@uniswap/client-embeddedwallet
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,2 +0,2 @@ | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SecuredChallengeRequest, SecuredChallengeResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -21,2 +21,11 @@ /** | ||
/** | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SecuredChallenge | ||
*/ | ||
readonly securedChallenge: { | ||
readonly name: "SecuredChallenge"; | ||
readonly I: typeof SecuredChallengeRequest; | ||
readonly O: typeof SecuredChallengeResponse; | ||
readonly kind: MethodKind.Unary; | ||
}; | ||
/** | ||
* complete registration + wallet creation | ||
@@ -23,0 +32,0 @@ * |
@@ -5,3 +5,3 @@ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" | ||
// @ts-nocheck | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SecuredChallengeRequest, SecuredChallengeResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { MethodKind } from "@bufbuild/protobuf"; | ||
@@ -26,2 +26,11 @@ /** | ||
/** | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SecuredChallenge | ||
*/ | ||
securedChallenge: { | ||
name: "SecuredChallenge", | ||
I: SecuredChallengeRequest, | ||
O: SecuredChallengeResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* complete registration + wallet creation | ||
@@ -28,0 +37,0 @@ * |
@@ -82,17 +82,5 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
/** | ||
* base64 encoded public key, for extension based workflow | ||
* | ||
* @generated from field: optional string b64_encryption_public_key = 3; | ||
*/ | ||
b64EncryptionPublicKey?: string; | ||
/** | ||
* to enable limit the passkey pop to previously signed in passkey. | ||
* | ||
* @generated from field: optional string credential_id = 4; | ||
*/ | ||
credentialId?: string; | ||
/** | ||
* json formated optional field to customize the challenge for some authentication types. | ||
* | ||
* @generated from field: optional string options = 5; | ||
* @generated from field: optional string options = 3; | ||
*/ | ||
@@ -127,2 +115,52 @@ options?: string; | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SecuredChallengeRequest | ||
*/ | ||
export declare class SecuredChallengeRequest extends Message<SecuredChallengeRequest> { | ||
/** | ||
* @generated from field: uniswap.embeddedwallet.v1.AuthenticationTypes type = 1; | ||
*/ | ||
type: AuthenticationTypes; | ||
/** | ||
* @generated from field: uniswap.embeddedwallet.v1.Action action = 2; | ||
*/ | ||
action: Action; | ||
/** | ||
* json formated optional field to customize the challenge for some authentication types. | ||
* | ||
* @generated from field: optional string options = 3; | ||
*/ | ||
options?: string; | ||
/** | ||
* base64 encoded public key | ||
* | ||
* @generated from field: optional string b64_encryption_public_key = 4; | ||
*/ | ||
b64EncryptionPublicKey?: string; | ||
constructor(data?: PartialMessage<SecuredChallengeRequest>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.SecuredChallengeRequest"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecuredChallengeRequest; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecuredChallengeRequest; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecuredChallengeRequest; | ||
static equals(a: SecuredChallengeRequest | PlainMessage<SecuredChallengeRequest> | undefined, b: SecuredChallengeRequest | PlainMessage<SecuredChallengeRequest> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SecuredChallengeResponse | ||
*/ | ||
export declare class SecuredChallengeResponse extends Message<SecuredChallengeResponse> { | ||
/** | ||
* @generated from field: string challenge_options = 1; | ||
*/ | ||
challengeOptions: string; | ||
constructor(data?: PartialMessage<SecuredChallengeResponse>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.SecuredChallengeResponse"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SecuredChallengeResponse; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SecuredChallengeResponse; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SecuredChallengeResponse; | ||
static equals(a: SecuredChallengeResponse | PlainMessage<SecuredChallengeResponse> | undefined, b: SecuredChallengeResponse | PlainMessage<SecuredChallengeResponse> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.CreateWalletRequest | ||
@@ -129,0 +167,0 @@ */ |
@@ -127,5 +127,3 @@ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts" | ||
{ no: 2, name: "action", kind: "enum", T: proto3.getEnumType(Action) }, | ||
{ no: 3, name: "b64_encryption_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
{ no: 4, name: "credential_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
{ no: 5, name: "options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
{ no: 3, name: "options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
]); | ||
@@ -163,2 +161,69 @@ /** | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SecuredChallengeRequest | ||
*/ | ||
export class SecuredChallengeRequest extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: uniswap.embeddedwallet.v1.AuthenticationTypes type = 1; | ||
*/ | ||
this.type = AuthenticationTypes.AUTHENTICATION_TYPE_UNSPECIFIED; | ||
/** | ||
* @generated from field: uniswap.embeddedwallet.v1.Action action = 2; | ||
*/ | ||
this.action = Action.ACTION_UNSPECIFIED; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new SecuredChallengeRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new SecuredChallengeRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new SecuredChallengeRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(SecuredChallengeRequest, a, b); | ||
} | ||
} | ||
SecuredChallengeRequest.runtime = proto3; | ||
SecuredChallengeRequest.typeName = "uniswap.embeddedwallet.v1.SecuredChallengeRequest"; | ||
SecuredChallengeRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AuthenticationTypes) }, | ||
{ no: 2, name: "action", kind: "enum", T: proto3.getEnumType(Action) }, | ||
{ no: 3, name: "options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
{ no: 4, name: "b64_encryption_public_key", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.SecuredChallengeResponse | ||
*/ | ||
export class SecuredChallengeResponse extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: string challenge_options = 1; | ||
*/ | ||
this.challengeOptions = ""; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new SecuredChallengeResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new SecuredChallengeResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new SecuredChallengeResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(SecuredChallengeResponse, a, b); | ||
} | ||
} | ||
SecuredChallengeResponse.runtime = proto3; | ||
SecuredChallengeResponse.typeName = "uniswap.embeddedwallet.v1.SecuredChallengeResponse"; | ||
SecuredChallengeResponse.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "challenge_options", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.CreateWalletRequest | ||
@@ -165,0 +230,0 @@ */ |
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SecuredChallengeRequest, SecuredChallengeResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
@@ -19,2 +19,15 @@ * Initiates a challenge for given authenticator type | ||
/** | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SecuredChallenge | ||
*/ | ||
export declare const securedChallenge: { | ||
readonly localName: "securedChallenge"; | ||
readonly name: "SecuredChallenge"; | ||
readonly kind: MethodKind.Unary; | ||
readonly I: typeof SecuredChallengeRequest; | ||
readonly O: typeof SecuredChallengeResponse; | ||
readonly service: { | ||
readonly typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService"; | ||
}; | ||
}; | ||
/** | ||
* complete registration + wallet creation | ||
@@ -21,0 +34,0 @@ * |
@@ -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, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, DeleteAuthenticatorRequest, DeleteAuthenticatorResponse, DisconnectWalletRequest, DisconnectWalletResponse, ExportSeedPhraseRequest, ExportSeedPhraseResponse, ListAuthenticatorsRequest, ListAuthenticatorsResponse, RegisterNewAuthenticatorRequest, RegisterNewAuthenticatorResponse, SecuredChallengeRequest, SecuredChallengeResponse, SignMessagesRequest, SignMessagesResponse, SignTransactionsRequest, SignTransactionsResponse, SignTypedDataBatchRequest, SignTypedDataBatchResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
@@ -24,2 +24,15 @@ * Initiates a challenge for given authenticator type | ||
/** | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.SecuredChallenge | ||
*/ | ||
export const securedChallenge = { | ||
localName: "securedChallenge", | ||
name: "SecuredChallenge", | ||
kind: MethodKind.Unary, | ||
I: SecuredChallengeRequest, | ||
O: SecuredChallengeResponse, | ||
service: { | ||
typeName: "uniswap.embeddedwallet.v1.EmbeddedWalletService" | ||
} | ||
}; | ||
/** | ||
* complete registration + wallet creation | ||
@@ -26,0 +39,0 @@ * |
{ | ||
"name": "@uniswap/client-embeddedwallet", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
89514
2136