@xmtp/node-sdk 3.1.1-dev.438f403 → 3.1.1-dev.c7bed91

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ContentCodec, ContentTypeId, EncodedContent } from '@xmtp/content-type-primitives';
2
2
  import * as _xmtp_node_bindings from '@xmtp/node-bindings';
3
- import { LogLevel, Message, Conversation as Conversation$1, ListMessagesOptions, ConsentState, PermissionUpdateType, PermissionPolicy, MetadataField, Identifier, Conversations as Conversations$1, CreateGroupOptions, CreateDmOptions, ListConversationsOptions, ConversationType, Client as Client$1, Consent, ConsentEntityType, SignatureRequestType } from '@xmtp/node-bindings';
4
- export { Consent, ConsentEntityType, ConsentState, ContentType, ContentTypeId, ConversationListItem, ConversationType, CreateDmOptions, CreateGroupOptions, DeliveryStatus, EncodedContent, GroupMember, GroupMembershipState, GroupMessageKind, GroupMetadata, GroupPermissions, GroupPermissionsOptions, HmacKey, Identifier, IdentifierKind, InboxState, Installation, KeyPackageStatus, Lifetime, ListConversationsOptions, ListMessagesOptions, LogLevel, LogOptions, Message, MessageDisappearingSettings, MetadataField, PermissionLevel, PermissionPolicy, PermissionPolicySet, PermissionUpdateType, SignatureRequestType, SortDirection } from '@xmtp/node-bindings';
3
+ import { LogLevel, Message, Conversation as Conversation$1, ListMessagesOptions, ConsentState, PermissionUpdateType, PermissionPolicy, MetadataField, Identifier, Conversations as Conversations$1, CreateGroupOptions, CreateDmOptions, ListConversationsOptions, ConversationType, Client as Client$1, Consent, ConsentEntityType, SignatureRequestHandle } from '@xmtp/node-bindings';
4
+ export { Consent, ConsentEntityType, ConsentState, ContentType, ContentTypeId, ConversationListItem, ConversationType, CreateDmOptions, CreateGroupOptions, DeliveryStatus, EncodedContent, GroupMember, GroupMembershipState, GroupMessageKind, GroupMetadata, GroupPermissions, GroupPermissionsOptions, HmacKey, Identifier, IdentifierKind, InboxState, Installation, KeyPackageStatus, Lifetime, ListConversationsOptions, ListMessagesOptions, LogLevel, LogOptions, Message, MessageDisappearingSettings, MetadataField, PermissionLevel, PermissionPolicy, PermissionPolicySet, PermissionUpdateType, SignatureRequestHandle, SortDirection } from '@xmtp/node-bindings';
5
5
  import { GroupUpdatedCodec } from '@xmtp/content-type-group-updated';
6
6
  import { TextCodec } from '@xmtp/content-type-text';
7
7
 
@@ -118,18 +118,18 @@ declare class AsyncStream<T> {
118
118
  onReturn: (() => void) | undefined;
119
119
  onError: ((error: Error) => void) | undefined;
120
120
  constructor();
121
- get error(): Error | null;
121
+ get error(): Error | undefined;
122
122
  get isDone(): boolean;
123
123
  callback: StreamCallback<T>;
124
124
  next: () => Promise<ResolveValue<T>>;
125
- return: (value?: T) => Promise<{
125
+ return: (value?: T) => {
126
126
  done: boolean;
127
127
  value: T | undefined;
128
- }>;
129
- end: () => Promise<{
128
+ };
129
+ end: () => {
130
130
  done: boolean;
131
131
  value: T | undefined;
132
- }>;
132
+ };
133
133
  [Symbol.asyncIterator](): this;
134
134
  }
135
135
 
@@ -234,7 +234,7 @@ declare class Conversation<ContentTypes = unknown> {
234
234
  * @param callback - Optional callback function for handling new stream values
235
235
  * @returns Stream instance for new messages
236
236
  */
237
- stream(callback?: StreamCallback<DecodedMessage<ContentTypes>>): AsyncStream<DecodedMessage<ContentTypes>>;
237
+ stream(callback?: StreamCallback<DecodedMessage<ContentTypes>>, onFail?: () => void): AsyncStream<DecodedMessage<ContentTypes>>;
238
238
  /**
239
239
  * Publishes pending messages that were sent optimistically
240
240
  *
@@ -594,42 +594,42 @@ declare class Conversations<ContentTypes = unknown> {
594
594
  * @param callback - Optional callback function for handling new stream value
595
595
  * @returns Stream instance for new conversations
596
596
  */
597
- stream(callback?: StreamCallback<Group<ContentTypes> | Dm<ContentTypes>>): AsyncStream<Group<ContentTypes> | Dm<ContentTypes>>;
597
+ stream(callback?: StreamCallback<Group<ContentTypes> | Dm<ContentTypes>>, onFail?: () => void): AsyncStream<Group<ContentTypes> | Dm<ContentTypes>>;
598
598
  /**
599
599
  * Creates a stream for new group conversations
600
600
  *
601
601
  * @param callback - Optional callback function for handling new stream value
602
602
  * @returns Stream instance for new group conversations
603
603
  */
604
- streamGroups(callback?: StreamCallback<Group<ContentTypes>>): AsyncStream<Group<ContentTypes>>;
604
+ streamGroups(callback?: StreamCallback<Group<ContentTypes>>, onFail?: () => void): AsyncStream<Group<ContentTypes>>;
605
605
  /**
606
606
  * Creates a stream for new DM conversations
607
607
  *
608
608
  * @param callback - Optional callback function for handling new stream value
609
609
  * @returns Stream instance for new DM conversations
610
610
  */
611
- streamDms(callback?: StreamCallback<Dm<ContentTypes>>): AsyncStream<Dm<ContentTypes>>;
611
+ streamDms(callback?: StreamCallback<Dm<ContentTypes>>, onFail?: () => void): AsyncStream<Dm<ContentTypes>>;
612
612
  /**
613
613
  * Creates a stream for all new messages
614
614
  *
615
615
  * @param callback - Optional callback function for handling new stream value
616
616
  * @returns Stream instance for new messages
617
617
  */
618
- streamAllMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, conversationType?: ConversationType, consentStates?: ConsentState[]): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
618
+ streamAllMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, conversationType?: ConversationType, consentStates?: ConsentState[], onFail?: () => void): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
619
619
  /**
620
620
  * Creates a stream for all new group messages
621
621
  *
622
622
  * @param callback - Optional callback function for handling new stream value
623
623
  * @returns Stream instance for new group messages
624
624
  */
625
- streamAllGroupMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, consentStates?: ConsentState[]): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
625
+ streamAllGroupMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, consentStates?: ConsentState[], onFail?: () => void): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
626
626
  /**
627
627
  * Creates a stream for all new DM messages
628
628
  *
629
629
  * @param callback - Optional callback function for handling new stream value
630
630
  * @returns Stream instance for new DM messages
631
631
  */
632
- streamAllDmMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, consentStates?: ConsentState[]): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
632
+ streamAllDmMessages(callback?: StreamCallback<DecodedMessage<ContentTypes>>, consentStates?: ConsentState[], onFail?: () => void): Promise<AsyncStream<DecodedMessage<ContentTypes>>>;
633
633
  /**
634
634
  * Retrieves HMAC keys for all conversations
635
635
  *
@@ -638,6 +638,21 @@ declare class Conversations<ContentTypes = unknown> {
638
638
  hmacKeys(): Record<string, _xmtp_node_bindings.HmacKey[]>;
639
639
  }
640
640
 
641
+ /**
642
+ * Debug information helpers for the client
643
+ *
644
+ * This class is not intended to be initialized directly.
645
+ */
646
+ declare class DebugInformation {
647
+ #private;
648
+ constructor(client: Client$1, options?: ClientOptions);
649
+ apiStatistics(): _xmtp_node_bindings.ApiStats;
650
+ apiIdentityStatistics(): _xmtp_node_bindings.IdentityStats;
651
+ apiAggregateStatistics(): string;
652
+ clearAllStatistics(): void;
653
+ uploadDebugArchive(serverUrl?: string): Promise<string>;
654
+ }
655
+
641
656
  type PreferenceUpdate = {
642
657
  type: string;
643
658
  HmacKeyUpdate?: {
@@ -702,14 +717,14 @@ declare class Preferences {
702
717
  * @param callback - Optional callback function for handling stream updates
703
718
  * @returns Stream instance for consent updates
704
719
  */
705
- streamConsent(callback?: StreamCallback<Consent[]>): AsyncStream<Consent[]>;
720
+ streamConsent(callback?: StreamCallback<Consent[]>, onFail?: () => void): AsyncStream<Consent[]>;
706
721
  /**
707
722
  * Creates a stream of user preference updates
708
723
  *
709
724
  * @param callback - Optional callback function for handling stream updates
710
725
  * @returns Stream instance for preference updates
711
726
  */
712
- streamPreferences(callback?: StreamCallback<PreferenceUpdate>): AsyncStream<PreferenceUpdate>;
727
+ streamPreferences(callback?: StreamCallback<PreferenceUpdate>, onFail?: () => void): AsyncStream<PreferenceUpdate>;
713
728
  }
714
729
 
715
730
  type SignMessage = (message: string) => Promise<Uint8Array> | Uint8Array;
@@ -815,6 +830,12 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
815
830
  * @throws {ClientNotInitializedError} if the client is not initialized
816
831
  */
817
832
  get conversations(): Conversations<ContentTypes>;
833
+ /**
834
+ * Gets the debug information helpersfor this client
835
+ *
836
+ * @throws {ClientNotInitializedError} if the client is not initialized
837
+ */
838
+ get debugInformation(): DebugInformation;
818
839
  /**
819
840
  * Gets the preferences manager for this client
820
841
  *
@@ -822,7 +843,24 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
822
843
  */
823
844
  get preferences(): Preferences;
824
845
  /**
825
- * Creates signature text for creating a new inbox
846
+ * Adds a signature to a signature request using the client's signer (or the
847
+ * provided signer)
848
+ *
849
+ * WARNING: This function should be used with caution. It is only provided
850
+ * for use in special cases where the provided workflows do not meet the
851
+ * requirements of an application.
852
+ *
853
+ * It is highly recommended to use the `register`, `unsafe_addAccount`,
854
+ * `removeAccount`, `revokeAllOtherInstallations`, or `revokeInstallations`
855
+ * methods instead.
856
+ *
857
+ * @param signatureRequest - The signature request to add the signature to
858
+ * @throws {ClientNotInitializedError} if the client is not initialized
859
+ * @throws {SignerUnavailableError} if no signer is available
860
+ */
861
+ unsafe_addSignature(signatureRequest: SignatureRequestHandle, signer?: Signer): Promise<void>;
862
+ /**
863
+ * Returns a signature request handler for creating a new inbox
826
864
  *
827
865
  * WARNING: This function should be used with caution. It is only provided
828
866
  * for use in special cases where the provided workflows do not meet the
@@ -833,9 +871,10 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
833
871
  * @returns The signature text
834
872
  * @throws {ClientNotInitializedError} if the client is not initialized
835
873
  */
836
- unsafe_createInboxSignatureText(): Promise<string | null | undefined>;
874
+ unsafe_createInboxSignatureRequest(): Promise<SignatureRequestHandle | null>;
837
875
  /**
838
- * Creates signature text for adding a new account to the client's inbox
876
+ * Returns a signature request handler for adding a new account to the
877
+ * client's inbox
839
878
  *
840
879
  * WARNING: This function should be used with caution. It is only provided
841
880
  * for use in special cases where the provided workflows do not meet the
@@ -851,9 +890,10 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
851
890
  * @returns The signature text
852
891
  * @throws {ClientNotInitializedError} if the client is not initialized
853
892
  */
854
- unsafe_addAccountSignatureText(newAccountIdentifier: Identifier, allowInboxReassign?: boolean): Promise<string | undefined>;
893
+ unsafe_addAccountSignatureRequest(newAccountIdentifier: Identifier, allowInboxReassign?: boolean): Promise<SignatureRequestHandle>;
855
894
  /**
856
- * Creates signature text for removing an account from the client's inbox
895
+ * Returns a signature request handler for removing an account from the
896
+ * client's inbox
857
897
  *
858
898
  * WARNING: This function should be used with caution. It is only provided
859
899
  * for use in special cases where the provided workflows do not meet the
@@ -865,10 +905,10 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
865
905
  * @returns The signature text
866
906
  * @throws {ClientNotInitializedError} if the client is not initialized
867
907
  */
868
- unsafe_removeAccountSignatureText(identifier: Identifier): Promise<string | undefined>;
908
+ unsafe_removeAccountSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
869
909
  /**
870
- * Creates signature text for revoking all other installations of the
871
- * client's inbox
910
+ * Returns a signature request handler for revoking all other installations
911
+ * of the client's inbox
872
912
  *
873
913
  * WARNING: This function should be used with caution. It is only provided
874
914
  * for use in special cases where the provided workflows do not meet the
@@ -879,10 +919,10 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
879
919
  * @returns The signature text
880
920
  * @throws {ClientNotInitializedError} if the client is not initialized
881
921
  */
882
- unsafe_revokeAllOtherInstallationsSignatureText(): Promise<string | undefined>;
922
+ unsafe_revokeAllOtherInstallationsSignatureRequest(): Promise<SignatureRequestHandle>;
883
923
  /**
884
- * Creates signature text for revoking specific installations of the
885
- * client's inbox
924
+ * Returns a signature request handler for revoking specific installations
925
+ * of the client's inbox
886
926
  *
887
927
  * WARNING: This function should be used with caution. It is only provided
888
928
  * for use in special cases where the provided workflows do not meet the
@@ -894,10 +934,10 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
894
934
  * @returns The signature text
895
935
  * @throws {ClientNotInitializedError} if the client is not initialized
896
936
  */
897
- unsafe_revokeInstallationsSignatureText(installationIds: Uint8Array[]): Promise<string | undefined>;
937
+ unsafe_revokeInstallationsSignatureRequest(installationIds: Uint8Array[]): Promise<SignatureRequestHandle>;
898
938
  /**
899
- * Creates signature text for changing the recovery identifier for this
900
- * client's inbox
939
+ * Returns a signature request handler for changing the recovery identifier
940
+ * for this client's inbox
901
941
  *
902
942
  * WARNING: This function should be used with caution. It is only provided
903
943
  * for use in special cases where the provided workflows do not meet the
@@ -909,9 +949,9 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
909
949
  * @returns The signature text
910
950
  * @throws {ClientNotInitializedError} if the client is not initialized
911
951
  */
912
- unsafe_changeRecoveryIdentifierSignatureText(identifier: Identifier): Promise<string | undefined>;
952
+ unsafe_changeRecoveryIdentifierSignatureRequest(identifier: Identifier): Promise<SignatureRequestHandle>;
913
953
  /**
914
- * Adds a signature for a specific request type
954
+ * Applies a signature request to the client
915
955
  *
916
956
  * WARNING: This function should be used with caution. It is only provided
917
957
  * for use in special cases where the provided workflows do not meet the
@@ -921,26 +961,9 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
921
961
  * `removeAccount`, `revokeAllOtherInstallations`, or `revokeInstallations`
922
962
  * methods instead.
923
963
  *
924
- * @param signatureType - The type of signature request
925
- * @param signatureText - The text to sign
926
- * @param signer - The signer to use
927
964
  * @throws {ClientNotInitializedError} if the client is not initialized
928
965
  */
929
- unsafe_addSignature(signatureType: SignatureRequestType, signatureText: string, signer: Signer): Promise<void>;
930
- /**
931
- * Applies all pending signatures
932
- *
933
- * WARNING: This function should be used with caution. It is only provided
934
- * for use in special cases where the provided workflows do not meet the
935
- * requirements of an application.
936
- *
937
- * It is highly recommended to use the `register`, `unsafe_addAccount`,
938
- * `removeAccount`, `revokeAllOtherInstallations`, or `revokeInstallations`
939
- * methods instead.
940
- *
941
- * @throws {ClientNotInitializedError} if the client is not initialized
942
- */
943
- unsafe_applySignatures(): Promise<void>;
966
+ unsafe_applySignatureRequest(signatureRequest: SignatureRequestHandle): Promise<void>;
944
967
  /**
945
968
  * Registers the client with the XMTP network
946
969
  *
@@ -964,9 +987,8 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
964
987
  *
965
988
  * @param newAccountSigner - The signer for the new account
966
989
  * @param allowInboxReassign - Whether to allow inbox reassignment
967
- * @throws {ClientNotInitializedError} if the client is not initialized
968
990
  * @throws {AccountAlreadyAssociatedError} if the account is already associated with an inbox ID
969
- * @throws {GenerateSignatureError} if the signature cannot be generated
991
+ * @throws {ClientNotInitializedError} if the client is not initialized
970
992
  * @throws {SignerUnavailableError} if no signer is available
971
993
  */
972
994
  unsafe_addAccount(newAccountSigner: Signer, allowInboxReassign?: boolean): Promise<void>;
@@ -977,7 +999,6 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
977
999
  *
978
1000
  * @param identifier - The identifier of the account to remove
979
1001
  * @throws {ClientNotInitializedError} if the client is not initialized
980
- * @throws {GenerateSignatureError} if the signature cannot be generated
981
1002
  * @throws {SignerUnavailableError} if no signer is available
982
1003
  */
983
1004
  removeAccount(identifier: Identifier): Promise<void>;
@@ -987,7 +1008,6 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
987
1008
  * Requires a signer, use `Client.create` to create a client with a signer.
988
1009
  *
989
1010
  * @throws {ClientNotInitializedError} if the client is not initialized
990
- * @throws {GenerateSignatureError} if the signature cannot be generated
991
1011
  * @throws {SignerUnavailableError} if no signer is available
992
1012
  */
993
1013
  revokeAllOtherInstallations(): Promise<void>;
@@ -999,9 +1019,25 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
999
1019
  * @param installationIds - The installation IDs to revoke
1000
1020
  * @throws {ClientNotInitializedError} if the client is not initialized
1001
1021
  * @throws {SignerUnavailableError} if no signer is available
1002
- * @throws {GenerateSignatureError} if the signature cannot be generated
1003
1022
  */
1004
1023
  revokeInstallations(installationIds: Uint8Array[]): Promise<void>;
1024
+ /**
1025
+ * Revokes specific installations of the client's inbox without a client
1026
+ *
1027
+ * @param env - The environment to use
1028
+ * @param signer - The signer to use
1029
+ * @param inboxId - The inbox ID to revoke installations for
1030
+ * @param installationIds - The installation IDs to revoke
1031
+ */
1032
+ static revokeInstallations(signer: Signer, inboxId: string, installationIds: Uint8Array[], env?: XmtpEnv): Promise<void>;
1033
+ /**
1034
+ * Gets the inbox state for the specified inbox IDs without a client
1035
+ *
1036
+ * @param env - The environment to use
1037
+ * @param inboxIds - The inbox IDs to get the state for
1038
+ * @returns The inbox state for the specified inbox IDs
1039
+ */
1040
+ static inboxStateFromInboxIds(inboxIds: string[], env?: XmtpEnv): Promise<_xmtp_node_bindings.InboxState[]>;
1005
1041
  /**
1006
1042
  * Changes the recovery identifier for the client's inbox
1007
1043
  *
@@ -1010,7 +1046,6 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
1010
1046
  * @param identifier - The new recovery identifier
1011
1047
  * @throws {ClientNotInitializedError} if the client is not initialized
1012
1048
  * @throws {SignerUnavailableError} if no signer is available
1013
- * @throws {GenerateSignatureError} if the signature cannot be generated
1014
1049
  */
1015
1050
  changeRecoveryIdentifier(identifier: Identifier): Promise<void>;
1016
1051
  /**
@@ -1105,7 +1140,7 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
1105
1140
  * @param options - Optional network options
1106
1141
  * @returns Whether the address is authorized
1107
1142
  */
1108
- static isAddressAuthorized(inboxId: string, address: string, options?: NetworkOptions): Promise<boolean>;
1143
+ static isAddressAuthorized(inboxId: string, address: string, env?: XmtpEnv): Promise<boolean>;
1109
1144
  /**
1110
1145
  * Checks if an installation is authorized for an inbox
1111
1146
  *
@@ -1114,15 +1149,11 @@ declare class Client<ContentTypes = ExtractCodecContentTypes> {
1114
1149
  * @param options - Optional network options
1115
1150
  * @returns Whether the installation is authorized
1116
1151
  */
1117
- static isInstallationAuthorized(inboxId: string, installation: Uint8Array, options?: NetworkOptions): Promise<boolean>;
1152
+ static isInstallationAuthorized(inboxId: string, installation: Uint8Array, env?: XmtpEnv): Promise<boolean>;
1118
1153
  /**
1119
1154
  * Gets the version of the Node bindings
1120
1155
  */
1121
1156
  static get version(): string;
1122
- apiStatistics(): _xmtp_node_bindings.ApiStats;
1123
- apiIdentityStatistics(): _xmtp_node_bindings.IdentityStats;
1124
- apiAggregateStatistics(): string;
1125
- uploadDebugArchive(serverUrl?: string): Promise<string>;
1126
1157
  }
1127
1158
 
1128
1159
  declare const generateInboxId: (identifier: Identifier) => string;
@@ -1137,9 +1168,6 @@ declare class InboxReassignError extends Error {
1137
1168
  declare class AccountAlreadyAssociatedError extends Error {
1138
1169
  constructor(inboxId: string);
1139
1170
  }
1140
- declare class GenerateSignatureError extends Error {
1141
- constructor(signatureType: SignatureRequestType);
1142
- }
1143
1171
  declare class InvalidGroupMembershipChangeError extends Error {
1144
1172
  constructor(messageId: string);
1145
1173
  }
@@ -1153,4 +1181,4 @@ declare class ClientNotInitializedError extends Error {
1153
1181
  constructor();
1154
1182
  }
1155
1183
 
1156
- export { AccountAlreadyAssociatedError, ApiUrls, AsyncStream, Client, ClientNotInitializedError, type ClientOptions, CodecNotFoundError, Conversation, Conversations, DecodedMessage, Dm, type ExtractCodecContentTypes, GenerateSignatureError, Group, HistorySyncUrls, InboxReassignError, InvalidGroupMembershipChangeError, MissingContentTypeError, type NetworkOptions, type OtherOptions, type PreferenceUpdate, type Signer, SignerUnavailableError, type StorageOptions, type StreamCallback, type XmtpEnv, generateInboxId, getInboxIdForIdentifier };
1184
+ export { AccountAlreadyAssociatedError, ApiUrls, AsyncStream, Client, ClientNotInitializedError, type ClientOptions, CodecNotFoundError, Conversation, Conversations, DecodedMessage, Dm, type ExtractCodecContentTypes, Group, HistorySyncUrls, InboxReassignError, InvalidGroupMembershipChangeError, MissingContentTypeError, type NetworkOptions, type OtherOptions, type PreferenceUpdate, type Signer, SignerUnavailableError, type StorageOptions, type StreamCallback, type XmtpEnv, generateInboxId, getInboxIdForIdentifier };