@privy-io/react-auth 1.17.0-beta.1 → 1.17.0

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
@@ -306,6 +306,10 @@ declare class WCWalletConnector extends WalletConnector {
306
306
  }): Promise<Wallet | null>;
307
307
  isConnected(): Promise<boolean>;
308
308
  promptConnection(): Promise<void>;
309
+ /**
310
+ * Perform personal_sign with the user's wallet.
311
+ */
312
+ sign(message: string): Promise<string>;
309
313
  disconnect(): void;
310
314
  }
311
315
  /**
@@ -540,27 +544,6 @@ declare const usePrivy: () => PrivyInterface;
540
544
 
541
545
  declare const VERSION: string;
542
546
 
543
- interface DefaultsType {
544
- baseURL: string;
545
- timeout: number;
546
- }
547
- /**
548
- * A raw http handler for making requests to the Privy API. It requires a Session
549
- * object, which is used for fetching and including any tokens that are required
550
- * for requests.
551
- */
552
- declare class Http {
553
- private appId;
554
- private client;
555
- private defaults;
556
- private sdkVersion;
557
- constructor(appId: string, client: PrivyClient, defaults: DefaultsType);
558
- get<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>): Promise<R>;
559
- post<T = any, R = AxiosResponse<T>, D = any>(path: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
560
- delete<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>): Promise<R>;
561
- private buildConfig;
562
- }
563
-
564
547
  interface ResponseEmailAccount {
565
548
  type: 'email';
566
549
  address: string;
@@ -614,6 +597,27 @@ interface GetCurrentUserResponse {
614
597
  linked_accounts: LinkedAccountsResponseType;
615
598
  }
616
599
 
600
+ interface DefaultsType {
601
+ baseURL: string;
602
+ timeout: number;
603
+ }
604
+ /**
605
+ * A raw http handler for making requests to the Privy API. It requires a Session
606
+ * object, which is used for fetching and including any tokens that are required
607
+ * for requests.
608
+ */
609
+ declare class Http {
610
+ private appId;
611
+ private client;
612
+ private defaults;
613
+ private sdkVersion;
614
+ constructor(appId: string, client: PrivyClient, defaults: DefaultsType);
615
+ get<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>): Promise<R>;
616
+ post<T = any, R = AxiosResponse<T>, D = any>(path: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>;
617
+ delete<T = any, R = AxiosResponse<T>, D = any>(path: string, config?: AxiosRequestConfig<D>): Promise<R>;
618
+ private buildConfig;
619
+ }
620
+
617
621
  /**
618
622
  * Valid /session and <>/authenticate calls will respond with a token
619
623
  * as well as a valid user object for streamlining.