@xmtp/xmtp-js
Advanced tools
Comparing version 11.0.0-beta.1 to 11.0.0-beta.2
@@ -200,2 +200,8 @@ import { signature, publicKey, ciphertext, privateKey, authn, keystore, conversationReference, messageApi, invitation, content, message } from '@xmtp/proto'; | ||
declare class LocalAuthenticator { | ||
private identityKey; | ||
constructor(identityKey: PrivateKey); | ||
createToken(timestamp?: Date): Promise<Token>; | ||
} | ||
declare type Flatten<T> = { | ||
@@ -439,2 +445,4 @@ [K in keyof T]: T[K]; | ||
declare type IsRetryable = (err?: Error) => boolean; | ||
declare function retry<T extends (...arg0: any[]) => any>(fn: T, args: Parameters<T>, maxRetries: number, sleepTime: number, isRetryableFn?: IsRetryable, retryCount?: number): Promise<Awaited<ReturnType<T>>>; | ||
declare type EnvelopeMapper<Out> = (env: messageApi.Envelope) => Promise<Out>; | ||
@@ -607,2 +615,4 @@ declare function mapPaginatedStream<Out>(gen: AsyncGenerator<messageApi.Envelope[]>, mapper: EnvelopeMapper<Out>): AsyncGenerator<Out[]>; | ||
privateKeyOverride?: Uint8Array; | ||
basePersistence: Persistence; | ||
disablePersistenceEncryption: boolean; | ||
} & PreEventCallbackOptions; | ||
@@ -738,2 +748,12 @@ /** | ||
privateKeyOverride?: Uint8Array; | ||
/** | ||
* Override the base persistence provider. | ||
* Defaults to LocalStoragePersistence, which is fine for most implementations | ||
*/ | ||
basePersistence: Persistence; | ||
/** | ||
* Whether or not the persistence provider should encrypt the values. | ||
* Only disable if you are using a secure datastore that already has encryption | ||
*/ | ||
disablePersistenceEncryption: boolean; | ||
}; | ||
@@ -1174,2 +1194,2 @@ declare type LegacyOptions = { | ||
export { ApiClient, ApiUrls, AuthCache, Authenticator, Ciphertext, Client, ClientOptions, CodecRegistry, Composite, CompositeCodec, Compression, ContentCodec, ContentOptions, ContentTypeComposite, ContentTypeFallback, ContentTypeId, ContentTypeText, ContentTypeTypingNotification, Conversation, ConversationV1, ConversationV2, Conversations, DecodedMessage, EncodedContent, EncryptedPersistence, HttpApiClient, InMemoryKeystore, InvitationContext, KeyGeneratorKeystoreProvider, KeyStoreOptions, Keystore, KeystoreProvider, LegacyOptions, ListMessagesOptions, ListMessagesPaginatedOptions, LocalStoragePersistence, Message, MessageV1, MessageV2, NetworkKeystoreProvider, NetworkOptions, OnConnectionLostCallback, Persistence, PrefixedPersistence, PrivateKey, PrivateKeyBundle, PrivateKeyBundleV1, PrivateKeyBundleV2, PublicKey, PublicKeyBundle, PublishParams, Query, QueryAllOptions, QueryParams, QueryStreamOptions, SealedInvitation, SendOptions, Signature, SignedPublicKey, SignedPublicKeyBundle, Signer, SortDirection, StaticKeystoreProvider, Stream, SubscribeCallback, SubscribeParams, SubscriptionManager, TextCodec, TopicData, TypingNotification, TypingNotificationCodec, UnsubscribeFn, buildContentTopic, buildDirectMessageTopic, buildDirectMessageTopicV2, buildUserContactTopic, buildUserIntroTopic, buildUserInviteTopic, buildUserPrivateStoreTopic, dateToNs, decodeContactBundle, decodeContent, decrypt, encrypt, fromNanoString, mapPaginatedStream, nsToDate, toNanoString }; | ||
export { ApiClient, ApiUrls, AuthCache, Authenticator, Ciphertext, Client, ClientOptions, CodecRegistry, Composite, CompositeCodec, Compression, ContentCodec, ContentOptions, ContentTypeComposite, ContentTypeFallback, ContentTypeId, ContentTypeText, ContentTypeTypingNotification, Conversation, ConversationV1, ConversationV2, Conversations, DecodedMessage, EncodedContent, EncryptedPersistence, HttpApiClient, InMemoryKeystore, InvitationContext, KeyGeneratorKeystoreProvider, KeyStoreOptions, Keystore, KeystoreProvider, LegacyOptions, ListMessagesOptions, ListMessagesPaginatedOptions, LocalAuthenticator, LocalStoragePersistence, Message, MessageV1, MessageV2, NetworkKeystoreProvider, NetworkOptions, OnConnectionLostCallback, Persistence, PrefixedPersistence, PrivateKey, PrivateKeyBundle, PrivateKeyBundleV1, PrivateKeyBundleV2, PublicKey, PublicKeyBundle, PublishParams, Query, QueryAllOptions, QueryParams, QueryStreamOptions, SealedInvitation, SendOptions, Signature, SignedPublicKey, SignedPublicKeyBundle, Signer, SortDirection, StaticKeystoreProvider, Stream, SubscribeCallback, SubscribeParams, SubscriptionManager, TextCodec, TopicData, TypingNotification, TypingNotificationCodec, UnsubscribeFn, buildContentTopic, buildDirectMessageTopic, buildDirectMessageTopicV2, buildUserContactTopic, buildUserIntroTopic, buildUserInviteTopic, buildUserPrivateStoreTopic, dateToNs, decodeContactBundle, decodeContent, decrypt, encrypt, fromNanoString, mapPaginatedStream, nsToDate, retry, toNanoString }; |
{ | ||
"name": "@xmtp/xmtp-js", | ||
"version": "11.0.0-beta.1", | ||
"version": "11.0.0-beta.2", | ||
"description": "XMTP client SDK for interacting with XMTP networks.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1646697
12729