@0xsequence/waas
Advanced tools
Comparing version 0.0.0-20240215172023 to 0.0.0-20240215191225
import { Observer } from "./base.js"; | ||
import { IntentResponseSignedMessage } from "./clients/intent.gen.js"; | ||
import { Store } from "./store.js"; | ||
import { SendDelayedEncodeArgs, SendERC1155Args, SendERC20Args, SendERC721Args, SignMessageArgs, SendTransactionsArgs } from "./intents/index.js"; | ||
import { MaySentTransactionResponse } from "./intents/responses.js"; | ||
import { MaySentTransactionResponse, SignedMessageResponse } from "./intents/responses.js"; | ||
import { Session, Chain } from "./clients/authenticator.gen.js"; | ||
@@ -76,3 +75,3 @@ import { SimpleNetwork, WithSimpleNetwork } from "./networks.js"; | ||
private trySendIntent; | ||
signMessage(args: WithSimpleNetwork<SignMessageArgs> & CommonAuthArgs): Promise<IntentResponseSignedMessage>; | ||
signMessage(args: WithSimpleNetwork<SignMessageArgs> & CommonAuthArgs): Promise<SignedMessageResponse>; | ||
sendTransaction(args: WithSimpleNetwork<SendTransactionsArgs> & CommonAuthArgs): Promise<MaySentTransactionResponse>; | ||
@@ -79,0 +78,0 @@ sendERC20(args: WithSimpleNetwork<SendERC20Args> & CommonAuthArgs): Promise<MaySentTransactionResponse>; |
@@ -1,5 +0,5 @@ | ||
import { IntentDataSendTransaction, IntentResponseGetSession, IntentResponseSessionClosed, IntentResponseSignedMessage, IntentResponseValidateSession, IntentResponseValidationFinished, IntentResponseValidationRequired } from "../clients/intent.gen.js"; | ||
export type PayloadResponse = { | ||
import { IntentDataSendTransaction } from "../clients/intent.gen.js"; | ||
export type PayloadResponse<T> = { | ||
code: string; | ||
data: any; | ||
data: T; | ||
}; | ||
@@ -99,8 +99,8 @@ export type ValidationRequiredResponse = { | ||
export declare function isMaySentTransactionResponse(receipt: any): receipt is MaySentTransactionResponse; | ||
export declare function isSignedMessageResponse(receipt: any): receipt is IntentResponseSignedMessage; | ||
export declare function isValidationRequiredResponse(receipt: any): receipt is IntentResponseValidationRequired; | ||
export declare function isValidateSessionResponse(receipt: any): receipt is IntentResponseValidateSession; | ||
export declare function isFinishValidateSessionResponse(receipt: any): receipt is IntentResponseValidationFinished; | ||
export declare function isCloseSessionResponse(receipt: any): receipt is IntentResponseSessionClosed; | ||
export declare function isGetSessionResponse(receipt: any): receipt is IntentResponseGetSession; | ||
export declare function isSignedMessageResponse(receipt: any): receipt is SignedMessageResponse; | ||
export declare function isValidationRequiredResponse(receipt: any): receipt is ValidationRequiredResponse; | ||
export declare function isValidateSessionResponse(receipt: any): receipt is ValidateSessionResponse; | ||
export declare function isFinishValidateSessionResponse(receipt: any): receipt is FinishValidateSessionResponse; | ||
export declare function isCloseSessionResponse(receipt: any): receipt is CloseSessionResponse; | ||
export declare function isGetSessionResponse(receipt: any): receipt is GetSessionResponse; | ||
export {}; |
{ | ||
"name": "@0xsequence/waas", | ||
"version": "0.0.0-20240215172023", | ||
"version": "0.0.0-20240215191225", | ||
"description": "waas session client", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/waas", | ||
"dependencies": { | ||
"@0xsequence/network": "0.0.0-20240215172023", | ||
"@0xsequence/network": "0.0.0-20240215191225", | ||
"@aws-sdk/client-cognito-identity-provider": "^3.445.0", | ||
@@ -15,0 +15,0 @@ "idb": "^7.1.1", |
@@ -388,3 +388,3 @@ import {Observer, SequenceWaaSBase} from './base' | ||
async signMessage(args: WithSimpleNetwork<SignMessageArgs> & CommonAuthArgs): Promise<IntentResponseSignedMessage> { | ||
async signMessage(args: WithSimpleNetwork<SignMessageArgs> & CommonAuthArgs): Promise<SignedMessageResponse> { | ||
const intent = await this.waas.signMessage(await this.useIdentifier(args)) | ||
@@ -391,0 +391,0 @@ return this.trySendIntent(args, intent, isSignedMessageResponse) |
@@ -12,5 +12,5 @@ import { | ||
export type PayloadResponse = { | ||
export type PayloadResponse<T> = { | ||
code: string | ||
data: any | ||
data: T | ||
} | ||
@@ -160,3 +160,3 @@ | ||
export function isSignedMessageResponse(receipt: any): receipt is IntentResponseSignedMessage { | ||
export function isSignedMessageResponse(receipt: any): receipt is SignedMessageResponse { | ||
return ( | ||
@@ -172,3 +172,3 @@ typeof receipt === 'object' && | ||
export function isValidationRequiredResponse(receipt: any): receipt is IntentResponseValidationRequired { | ||
export function isValidationRequiredResponse(receipt: any): receipt is ValidationRequiredResponse { | ||
return ( | ||
@@ -183,3 +183,3 @@ typeof receipt === 'object' && | ||
export function isValidateSessionResponse(receipt: any): receipt is IntentResponseValidateSession { | ||
export function isValidateSessionResponse(receipt: any): receipt is ValidateSessionResponse { | ||
return ( | ||
@@ -193,3 +193,3 @@ typeof receipt === 'object' && | ||
export function isFinishValidateSessionResponse(receipt: any): receipt is IntentResponseValidationFinished { | ||
export function isFinishValidateSessionResponse(receipt: any): receipt is FinishValidateSessionResponse { | ||
return ( | ||
@@ -203,3 +203,3 @@ typeof receipt === 'object' && | ||
export function isCloseSessionResponse(receipt: any): receipt is IntentResponseSessionClosed { | ||
export function isCloseSessionResponse(receipt: any): receipt is CloseSessionResponse { | ||
return ( | ||
@@ -212,3 +212,3 @@ typeof receipt === 'object' && | ||
export function isGetSessionResponse(receipt: any): receipt is IntentResponseGetSession { | ||
export function isGetSessionResponse(receipt: any): receipt is GetSessionResponse { | ||
return ( | ||
@@ -215,0 +215,0 @@ typeof receipt === 'object' && |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
265787
7727
4
+ Added@0xsequence/abi@0.0.0-20240215191225(transitive)
+ Added@0xsequence/core@0.0.0-20240215191225(transitive)
+ Added@0xsequence/indexer@0.0.0-20240215191225(transitive)
+ Added@0xsequence/network@0.0.0-20240215191225(transitive)
+ Added@0xsequence/relayer@0.0.0-20240215191225(transitive)
+ Added@0xsequence/utils@0.0.0-20240215191225(transitive)
+ Added@aws-sdk/client-cognito-identity-provider@3.741.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.741.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.741.0(transitive)
- Removed@0xsequence/abi@0.0.0-20240215172023(transitive)
- Removed@0xsequence/core@0.0.0-20240215172023(transitive)
- Removed@0xsequence/indexer@0.0.0-20240215172023(transitive)
- Removed@0xsequence/network@0.0.0-20240215172023(transitive)
- Removed@0xsequence/relayer@0.0.0-20240215172023(transitive)
- Removed@0xsequence/utils@0.0.0-20240215172023(transitive)
- Removed@aws-sdk/client-cognito-identity-provider@3.738.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.734.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.738.0(transitive)