@uniswap/client-embeddedwallet
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -10,2 +10,4 @@ import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
* Initiates a challenge for given authenticator type | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.Challenge | ||
@@ -42,3 +44,3 @@ */ | ||
/** | ||
* readonly signin | ||
* readonly signin post authenticator verification | ||
* | ||
@@ -45,0 +47,0 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.WalletSignin |
@@ -14,2 +14,4 @@ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" | ||
/** | ||
* Initiates a challenge for given authenticator type | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.Challenge | ||
@@ -46,3 +48,3 @@ */ | ||
/** | ||
* readonly signin | ||
* readonly signin post authenticator verification | ||
* | ||
@@ -49,0 +51,0 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.WalletSignin |
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
/** | ||
* @generated from enum uniswap.embeddedwallet.v1.AuthenticationTypes | ||
*/ | ||
export declare enum AuthenticationTypes { | ||
/** | ||
* @generated from enum value: AUTHENTICATION_TYPE_UNSPECIFIED = 0; | ||
*/ | ||
AUTHENTICATION_TYPE_UNSPECIFIED = 0, | ||
/** | ||
* @generated from enum value: PASSKEY_REGISTRATION = 1; | ||
*/ | ||
PASSKEY_REGISTRATION = 1, | ||
/** | ||
* @generated from enum value: PASSKEY_AUTHENTICATION = 2; | ||
*/ | ||
PASSKEY_AUTHENTICATION = 2 | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ChallengeRequest | ||
@@ -10,3 +27,3 @@ */ | ||
*/ | ||
type?: AuthenticationTypes; | ||
type: AuthenticationTypes; | ||
constructor(data?: PartialMessage<ChallengeRequest>); | ||
@@ -22,25 +39,2 @@ static readonly runtime: typeof proto3; | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.AuthenticationTypes | ||
*/ | ||
export declare class AuthenticationTypes extends Message<AuthenticationTypes> { | ||
/** | ||
* More types can be added to support web2 signin | ||
* | ||
* @generated from field: string passkey_registration = 1; | ||
*/ | ||
passkeyRegistration: string; | ||
/** | ||
* @generated from field: string passkey_authentication = 2; | ||
*/ | ||
passkeyAuthentication: string; | ||
constructor(data?: PartialMessage<AuthenticationTypes>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "uniswap.embeddedwallet.v1.AuthenticationTypes"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthenticationTypes; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthenticationTypes; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthenticationTypes; | ||
static equals(a: AuthenticationTypes | PlainMessage<AuthenticationTypes> | undefined, b: AuthenticationTypes | PlainMessage<AuthenticationTypes> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ChallengeResponse | ||
@@ -101,5 +95,5 @@ */ | ||
/** | ||
* @generated from field: repeated string message = 1; | ||
* @generated from field: repeated string messages = 1; | ||
*/ | ||
message: string[]; | ||
messages: string[]; | ||
/** | ||
@@ -123,5 +117,5 @@ * @generated from field: string credential = 2; | ||
/** | ||
* @generated from field: repeated string signed_message = 1; | ||
* @generated from field: repeated string signed_messages = 1; | ||
*/ | ||
signedMessage: string[]; | ||
signedMessages: string[]; | ||
constructor(data?: PartialMessage<SignMessagesResponse>); | ||
@@ -128,0 +122,0 @@ static readonly runtime: typeof proto3; |
@@ -7,2 +7,26 @@ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts" | ||
/** | ||
* @generated from enum uniswap.embeddedwallet.v1.AuthenticationTypes | ||
*/ | ||
export var AuthenticationTypes; | ||
(function (AuthenticationTypes) { | ||
/** | ||
* @generated from enum value: AUTHENTICATION_TYPE_UNSPECIFIED = 0; | ||
*/ | ||
AuthenticationTypes[AuthenticationTypes["AUTHENTICATION_TYPE_UNSPECIFIED"] = 0] = "AUTHENTICATION_TYPE_UNSPECIFIED"; | ||
/** | ||
* @generated from enum value: PASSKEY_REGISTRATION = 1; | ||
*/ | ||
AuthenticationTypes[AuthenticationTypes["PASSKEY_REGISTRATION"] = 1] = "PASSKEY_REGISTRATION"; | ||
/** | ||
* @generated from enum value: PASSKEY_AUTHENTICATION = 2; | ||
*/ | ||
AuthenticationTypes[AuthenticationTypes["PASSKEY_AUTHENTICATION"] = 2] = "PASSKEY_AUTHENTICATION"; | ||
})(AuthenticationTypes || (AuthenticationTypes = {})); | ||
// Retrieve enum metadata with: proto3.getEnumType(AuthenticationTypes) | ||
proto3.util.setEnumType(AuthenticationTypes, "uniswap.embeddedwallet.v1.AuthenticationTypes", [ | ||
{ no: 0, name: "AUTHENTICATION_TYPE_UNSPECIFIED" }, | ||
{ no: 1, name: "PASSKEY_REGISTRATION" }, | ||
{ no: 2, name: "PASSKEY_AUTHENTICATION" }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ChallengeRequest | ||
@@ -13,2 +37,6 @@ */ | ||
super(); | ||
/** | ||
* @generated from field: uniswap.embeddedwallet.v1.AuthenticationTypes type = 1; | ||
*/ | ||
this.type = AuthenticationTypes.AUTHENTICATION_TYPE_UNSPECIFIED; | ||
proto3.util.initPartial(data, this); | ||
@@ -32,42 +60,5 @@ } | ||
ChallengeRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "type", kind: "message", T: AuthenticationTypes }, | ||
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AuthenticationTypes) }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.AuthenticationTypes | ||
*/ | ||
export class AuthenticationTypes extends Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* More types can be added to support web2 signin | ||
* | ||
* @generated from field: string passkey_registration = 1; | ||
*/ | ||
this.passkeyRegistration = ""; | ||
/** | ||
* @generated from field: string passkey_authentication = 2; | ||
*/ | ||
this.passkeyAuthentication = ""; | ||
proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new AuthenticationTypes().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new AuthenticationTypes().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new AuthenticationTypes().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return proto3.util.equals(AuthenticationTypes, a, b); | ||
} | ||
} | ||
AuthenticationTypes.runtime = proto3; | ||
AuthenticationTypes.typeName = "uniswap.embeddedwallet.v1.AuthenticationTypes"; | ||
AuthenticationTypes.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "passkey_registration", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
{ no: 2, name: "passkey_authentication", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
]); | ||
/** | ||
* @generated from message uniswap.embeddedwallet.v1.ChallengeResponse | ||
@@ -169,5 +160,5 @@ */ | ||
/** | ||
* @generated from field: repeated string message = 1; | ||
* @generated from field: repeated string messages = 1; | ||
*/ | ||
this.message = []; | ||
this.messages = []; | ||
/** | ||
@@ -195,3 +186,3 @@ * @generated from field: string credential = 2; | ||
SignMessagesRequest.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
{ no: 1, name: "messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
{ no: 2, name: "credential", kind: "scalar", T: 9 /* ScalarType.STRING */ }, | ||
@@ -206,5 +197,5 @@ ]); | ||
/** | ||
* @generated from field: repeated string signed_message = 1; | ||
* @generated from field: repeated string signed_messages = 1; | ||
*/ | ||
this.signedMessage = []; | ||
this.signedMessages = []; | ||
proto3.util.initPartial(data, this); | ||
@@ -228,3 +219,3 @@ } | ||
SignMessagesResponse.fields = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "signed_message", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
{ no: 1, name: "signed_messages", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, | ||
]); | ||
@@ -231,0 +222,0 @@ /** |
import { MethodKind } from "@bufbuild/protobuf"; | ||
import { ChallengeRequest, ChallengeResponse, CreateWalletRequest, CreateWalletResponse, SignMessagesRequest, SignMessagesResponse, WalletSigninRequest, WalletSigninResponse } from "./service_pb.js"; | ||
/** | ||
* Initiates a challenge for given authenticator type | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.Challenge | ||
@@ -47,3 +49,3 @@ */ | ||
/** | ||
* readonly signin | ||
* readonly signin post authenticator verification | ||
* | ||
@@ -50,0 +52,0 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.WalletSignin |
@@ -8,2 +8,4 @@ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts" | ||
/** | ||
* Initiates a challenge for given authenticator type | ||
* | ||
* @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.Challenge | ||
@@ -52,3 +54,3 @@ */ | ||
/** | ||
* readonly signin | ||
* readonly signin post authenticator verification | ||
* | ||
@@ -55,0 +57,0 @@ * @generated from rpc uniswap.embeddedwallet.v1.EmbeddedWalletService.WalletSignin |
{ | ||
"name": "@uniswap/client-embeddedwallet", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "restricted" |
27380
673