@uniswap/client-embeddedwallet
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -32,3 +32,3 @@ /** | ||
/** | ||
* authentication + signing messages | ||
* Authenticate + signing messages | ||
* | ||
@@ -44,2 +44,13 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignMessages | ||
/** | ||
* Authenticate + sign transaction | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignTransactions | ||
*/ | ||
readonly signTransactions: { | ||
readonly name: "SignTransactions"; | ||
readonly I: typeof SignTransactionsRequest; | ||
readonly O: typeof SignTransactionsResponse; | ||
readonly kind: MethodKind.Unary; | ||
}; | ||
/** | ||
* readonly signin post authenticator verification | ||
@@ -55,3 +66,14 @@ * | ||
}; | ||
/** | ||
* Authenticate + Securely export the seed phrase using a temporary encryption key | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.ExportSeedPhrase | ||
*/ | ||
readonly exportSeedPhrase: { | ||
readonly name: "ExportSeedPhrase"; | ||
readonly I: typeof ExportSeedPhraseRequest; | ||
readonly O: typeof ExportSeedPhraseResponse; | ||
readonly kind: MethodKind.Unary; | ||
}; | ||
}; | ||
}; |
@@ -5,3 +5,3 @@ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" | ||
// @ts-nocheck | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -37,3 +37,3 @@ /** | ||
/** | ||
* authentication + signing messages | ||
* Authenticate + signing messages | ||
* | ||
@@ -49,2 +49,13 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignMessages | ||
/** | ||
* Authenticate + sign transaction | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignTransactions | ||
*/ | ||
signTransactions: { | ||
name: "SignTransactions", | ||
I: SignTransactionsRequest, | ||
O: SignTransactionsResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* readonly signin post authenticator verification | ||
@@ -60,3 +71,14 @@ * | ||
}, | ||
/** | ||
* Authenticate + Securely export the seed phrase using a temporary encryption key | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.ExportSeedPhrase | ||
*/ | ||
exportSeedPhrase: { | ||
name: "ExportSeedPhrase", | ||
I: ExportSeedPhraseRequest, | ||
O: ExportSeedPhraseResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
} | ||
}; |
@@ -89,2 +89,40 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignTransactionsRequest | ||
*/ | ||
export declare class SignTransactionsRequest extends Message<SignTransactionsRequest> { | ||
/** | ||
* @generated from field: string credential = 1; | ||
*/ | ||
credential: string; | ||
/** | ||
* @generated from field: repeated string transactions = 2; | ||
*/ | ||
transactions: string[]; | ||
constructor(data?: PartialMessage<SignTransactionsRequest>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.SignTransactionsRequest"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignTransactionsRequest; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignTransactionsRequest; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignTransactionsRequest; | ||
static equals(a: SignTransactionsRequest | PlainMessage<SignTransactionsRequest> | undefined, b: SignTransactionsRequest | PlainMessage<SignTransactionsRequest> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignTransactionsResponse | ||
*/ | ||
export declare class SignTransactionsResponse extends Message<SignTransactionsResponse> { | ||
/** | ||
* @generated from field: repeated string signed_transactions = 1; | ||
*/ | ||
signedTransactions: string[]; | ||
constructor(data?: PartialMessage<SignTransactionsResponse>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.SignTransactionsResponse"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignTransactionsResponse; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignTransactionsResponse; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignTransactionsResponse; | ||
static equals(a: SignTransactionsResponse | PlainMessage<SignTransactionsResponse> | undefined, b: SignTransactionsResponse | PlainMessage<SignTransactionsResponse> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignMessagesRequest | ||
@@ -94,9 +132,9 @@ */ | ||
/** | ||
* @generated from field: repeated string messages = 1; | ||
* @generated from field: string credential = 1; | ||
*/ | ||
messages: string[]; | ||
credential: string; | ||
/** | ||
* @generated from field: string credential = 2; | ||
* @generated from field: repeated string messages = 2; | ||
*/ | ||
credential: string; | ||
messages: string[]; | ||
constructor(data?: PartialMessage<SignMessagesRequest>); | ||
@@ -162,1 +200,41 @@ static readonly runtime: typeof proto3; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ExportSeedPhraseRequest | ||
*/ | ||
export declare class ExportSeedPhraseRequest extends Message<ExportSeedPhraseRequest> { | ||
/** | ||
* @generated from field: string credential = 1; | ||
*/ | ||
credential: string; | ||
/** | ||
* base64 encoded public key | ||
* | ||
* @generated from field: string encryption_key = 2; | ||
*/ | ||
encryptionKey: string; | ||
constructor(data?: PartialMessage<ExportSeedPhraseRequest>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.ExportSeedPhraseRequest"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportSeedPhraseRequest; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportSeedPhraseRequest; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportSeedPhraseRequest; | ||
static equals(a: ExportSeedPhraseRequest | PlainMessage<ExportSeedPhraseRequest> | undefined, b: ExportSeedPhraseRequest | PlainMessage<ExportSeedPhraseRequest> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ExportSeedPhraseResponse | ||
*/ | ||
export declare class ExportSeedPhraseResponse extends Message<ExportSeedPhraseResponse> { | ||
/** | ||
* @generated from field: string encrypted_seed_phrase = 1; | ||
*/ | ||
encryptedSeedPhrase: string; | ||
constructor(data?: PartialMessage<ExportSeedPhraseResponse>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.ExportSeedPhraseResponse"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExportSeedPhraseResponse; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExportSeedPhraseResponse; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExportSeedPhraseResponse; | ||
static equals(a: ExportSeedPhraseResponse | PlainMessage<ExportSeedPhraseResponse> | undefined, b: ExportSeedPhraseResponse | PlainMessage<ExportSeedPhraseResponse> | undefined): boolean; | ||
} |
@@ -151,2 +151,67 @@ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts" | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignTransactionsRequest | ||
*/ | ||
export class SignTransactionsRequest extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: string credential = 1; | ||
*/ | ||
this.credential = ""; | ||
/** | ||
* @generated from field: repeated string transactions = 2; | ||
*/ | ||
this.transactions = []; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new SignTransactionsRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new SignTransactionsRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new SignTransactionsRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(SignTransactionsRequest, a, b); | ||
} | ||
} | ||
SignTransactionsRequest.runtime = proto3; | ||
SignTransactionsRequest.typeName = "uniswap.embeddedwallet.v1.SignTransactionsRequest"; | ||
SignTransactionsRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "transactions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignTransactionsResponse | ||
*/ | ||
export class SignTransactionsResponse extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: repeated string signed_transactions = 1; | ||
*/ | ||
this.signedTransactions = []; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new SignTransactionsResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new SignTransactionsResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new SignTransactionsResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(SignTransactionsResponse, a, b); | ||
} | ||
} | ||
SignTransactionsResponse.runtime = proto3; | ||
SignTransactionsResponse.typeName = "uniswap.embeddedwallet.v1.SignTransactionsResponse"; | ||
SignTransactionsResponse.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "signed_transactions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SignMessagesRequest | ||
@@ -158,9 +223,9 @@ */ | ||
/** | ||
* @generated from field: repeated string messages = 1; | ||
* @generated from field: string credential = 1; | ||
*/ | ||
this.messages = []; | ||
this.credential = ""; | ||
/** | ||
* @generated from field: string credential = 2; | ||
* @generated from field: repeated string messages = 2; | ||
*/ | ||
this.credential = ""; | ||
this.messages = []; | ||
proto3.util.initPartial(data, this); | ||
@@ -184,4 +249,4 @@ } | ||
SignMessagesRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
{ no: 2, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 1, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
]); | ||
@@ -278,1 +343,68 @@ /** | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ExportSeedPhraseRequest | ||
*/ | ||
export class ExportSeedPhraseRequest extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: string credential = 1; | ||
*/ | ||
this.credential = ""; | ||
/** | ||
* base64 encoded public key | ||
* | ||
* @generated from field: string encryption_key = 2; | ||
*/ | ||
this.encryptionKey = ""; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new ExportSeedPhraseRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new ExportSeedPhraseRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new ExportSeedPhraseRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(ExportSeedPhraseRequest, a, b); | ||
} | ||
} | ||
ExportSeedPhraseRequest.runtime = proto3; | ||
ExportSeedPhraseRequest.typeName = "uniswap.embeddedwallet.v1.ExportSeedPhraseRequest"; | ||
ExportSeedPhraseRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "encryption_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ExportSeedPhraseResponse | ||
*/ | ||
export class ExportSeedPhraseResponse extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: string encrypted_seed_phrase = 1; | ||
*/ | ||
this.encryptedSeedPhrase = ""; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new ExportSeedPhraseResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new ExportSeedPhraseResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new ExportSeedPhraseResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(ExportSeedPhraseResponse, a, b); | ||
} | ||
} | ||
ExportSeedPhraseResponse.runtime = proto3; | ||
ExportSeedPhraseResponse.typeName = "uniswap.embeddedwallet.v1.ExportSeedPhraseResponse"; | ||
ExportSeedPhraseResponse.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "encrypted_seed_phrase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); |
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
@@ -34,3 +34,3 @@ * Initiates a challenge for given authenticator type | ||
/** | ||
* authentication + signing messages | ||
* Authenticate + signing messages | ||
* | ||
@@ -50,2 +50,17 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignMessages | ||
/** | ||
* Authenticate + sign transaction | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignTransactions | ||
*/ | ||
export declare const signTransactions: { | ||
readonly localName: "signTransactions"; | ||
readonly name: "SignTransactions"; | ||
readonly kind: MethodKind.Unary; | ||
readonly I: typeof SignTransactionsRequest; | ||
readonly O: typeof SignTransactionsResponse; | ||
readonly service: { | ||
readonly typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService"; | ||
}; | ||
}; | ||
/** | ||
* readonly signin post authenticator verification | ||
@@ -65,1 +80,16 @@ * | ||
}; | ||
/** | ||
* Authenticate + Securely export the seed phrase using a temporary encryption key | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.ExportSeedPhrase | ||
*/ | ||
export declare const exportSeedPhrase: { | ||
readonly localName: "exportSeedPhrase"; | ||
readonly name: "ExportSeedPhrase"; | ||
readonly kind: MethodKind.Unary; | ||
readonly I: typeof ExportSeedPhraseRequest; | ||
readonly O: typeof ExportSeedPhraseResponse; | ||
readonly service: { | ||
readonly typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService"; | ||
}; | ||
}; |
@@ -6,3 +6,3 @@ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts" | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
@@ -39,3 +39,3 @@ * Initiates a challenge for given authenticator type | ||
/** | ||
* authentication + signing messages | ||
* Authenticate + signing messages | ||
* | ||
@@ -55,2 +55,17 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignMessages | ||
/** | ||
* Authenticate + sign transaction | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SignTransactions | ||
*/ | ||
export const signTransactions = { | ||
localName: "signTransactions", | ||
name: "SignTransactions", | ||
kind: MethodKind.Unary, | ||
I: SignTransactionsRequest, | ||
O: SignTransactionsResponse, | ||
service: { | ||
typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService" | ||
} | ||
}; | ||
/** | ||
* readonly signin post authenticator verification | ||
@@ -70,1 +85,16 @@ * | ||
}; | ||
/** | ||
* Authenticate + Securely export the seed phrase using a temporary encryption key | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.ExportSeedPhrase | ||
*/ | ||
export const exportSeedPhrase = { | ||
localName: "exportSeedPhrase", | ||
name: "ExportSeedPhrase", | ||
kind: MethodKind.Unary, | ||
I: ExportSeedPhraseRequest, | ||
O: ExportSeedPhraseResponse, | ||
service: { | ||
typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService" | ||
} | ||
}; |
{ | ||
"name": "@uniswap/client-embeddedwallet", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "restricted" |
40734
991