@pooflabs/web 0.0.5 → 0.0.7

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.
@@ -1,4 +1,5 @@
1
1
  export declare function genNonce(): Promise<any>;
2
+ export declare function genAuthNonce(): Promise<any>;
2
3
  export declare function createSessionWithSignature(address: string, message: string, signature: string): Promise<any>;
3
4
  export declare function createSessionWithPrivy(authToken: string, address: string, idToken: string): Promise<any>;
4
5
  export declare function refreshSession(refreshToken: string): Promise<any>;
package/dist/global.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { ClientConfig } from './client/config';
2
2
  import { User } from './types';
3
+ import { Transaction, VersionedTransaction } from '@solana/web3.js';
3
4
  export declare function init(newConfig: Partial<ClientConfig>): Promise<void>;
4
5
  export declare function onAuthStateChanged(callback: (user: User | null) => void): void;
5
6
  export declare function login(): Promise<User | null>;
6
7
  export declare function logout(): Promise<void>;
7
8
  export declare function setCurrentUser(user: User | null): void;
8
9
  export declare function getCurrentUser(): User | null;
10
+ export declare function signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { init, getCurrentUser, onAuthStateChanged, login, logout } from "./global";
1
+ export { init, getCurrentUser, onAuthStateChanged, login, logout, signTransaction } from "./global";
2
2
  export { getConfig } from './client/config';
3
3
  export { getAuthProvider, deserializeTransaction } from './auth';
4
4
  export { get, set, setMany, setFile, getFiles, runQuery, runQueryMany, syncItems } from './client/operations';