Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xmtp/xmtp-js

Package Overview
Dependencies
Maintainers
7
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmtp/xmtp-js - npm Package Compare versions

Comparing version 11.0.0-beta.2 to 11.0.0-beta.3

35

dist/index.d.ts

@@ -5,2 +5,3 @@ import { signature, publicKey, ciphertext, privateKey, authn, keystore, conversationReference, messageApi, invitation, content, message } from '@xmtp/proto';

import { Envelope } from '@xmtp/proto/ts/dist/types/message_api/v1/message_api.pb';
import { SetRefreshJobResponse } from '@xmtp/proto/ts/dist/types/keystore_api/v1/keystore.pb';

@@ -253,2 +254,10 @@ interface Signer {

/**
* Get a refresh job from the persistence
*/
getRefreshJob(req: keystore.GetRefreshJobRequest): Promise<keystore.GetRefreshJobResponse>;
/**
* Sets the time of a refresh job
*/
setRefreshJob(req: keystore.SetRefeshJobRequest): Promise<keystore.SetRefreshJobResponse>;
/**
* Get a list of V2 conversations

@@ -281,7 +290,7 @@ */

declare class InviteStore {
private persistence?;
private persistence;
private mutex;
private topicMap;
constructor(persistence?: Persistence, initialData?: Map<string, TopicData>);
static create(persistence?: Persistence): Promise<InviteStore>;
constructor(persistence: Persistence, initialData?: Map<string, TopicData>);
static create(persistence: Persistence): Promise<InviteStore>;
add(topicData: TopicData[]): Promise<void>;

@@ -293,5 +302,6 @@ get topics(): TopicData[];

declare class LocalStoragePersistence implements Persistence {
declare class BrowserStoragePersistence implements Persistence {
storage: Storage;
constructor();
constructor(storage: Storage);
static create(): BrowserStoragePersistence;
getItem(key: string): Promise<Uint8Array | null>;

@@ -301,2 +311,6 @@ setItem(key: string, value: Uint8Array): Promise<void>;

declare class InMemoryPersistence extends BrowserStoragePersistence {
static create(): BrowserStoragePersistence;
}
declare class PrefixedPersistence {

@@ -336,4 +350,5 @@ prefix: string;

private accountAddress;
constructor(keys: PrivateKeyBundleV1, inviteStore: InviteStore);
static create(keys: PrivateKeyBundleV1, persistence?: Persistence): Promise<InMemoryKeystore>;
private jobStatePersistence;
constructor(keys: PrivateKeyBundleV1, inviteStore: InviteStore, persistence: Persistence);
static create(keys: PrivateKeyBundleV1, persistence: Persistence): Promise<InMemoryKeystore>;
decryptV1(req: keystore.DecryptV1Request): Promise<keystore.DecryptResponse>;

@@ -351,2 +366,6 @@ decryptV2(req: keystore.DecryptV2Request): Promise<keystore.DecryptResponse>;

getAccountAddress(): Promise<string>;
getRefreshJob({ jobType, }: keystore.GetRefreshJobRequest): Promise<keystore.GetRefreshJobResponse>;
setRefreshJob({ jobType, lastRunNs, }: keystore.SetRefeshJobRequest): Promise<SetRefreshJobResponse>;
private buildJobStorageKey;
private getLastRunTime;
lookupTopic(topic: string): WithoutUndefined<keystore.TopicMap_TopicData> | undefined;

@@ -1197,2 +1216,2 @@ }

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 };
export { ApiClient, ApiUrls, AuthCache, Authenticator, BrowserStoragePersistence, Ciphertext, Client, ClientOptions, CodecRegistry, Composite, CompositeCodec, Compression, ContentCodec, ContentOptions, ContentTypeComposite, ContentTypeFallback, ContentTypeId, ContentTypeText, ContentTypeTypingNotification, Conversation, ConversationV1, ConversationV2, Conversations, DecodedMessage, EncodedContent, EncryptedPersistence, HttpApiClient, InMemoryKeystore, InMemoryPersistence, InvitationContext, KeyGeneratorKeystoreProvider, KeyStoreOptions, Keystore, KeystoreProvider, LegacyOptions, ListMessagesOptions, ListMessagesPaginatedOptions, LocalAuthenticator, 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.2",
"version": "11.0.0-beta.3",
"description": "XMTP client SDK for interacting with XMTP networks.",

@@ -86,3 +86,3 @@ "type": "module",

"@noble/secp256k1": "^1.5.2",
"@xmtp/proto": "^3.24.0",
"@xmtp/proto": "^3.28.0-beta.1",
"async-mutex": "^0.4.0",

@@ -89,0 +89,0 @@ "elliptic": "^6.5.4",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc