@haechi-labs/face-types
Advanced tools
Comparing version 1.9.2 to 1.9.3-alpha.0
@@ -1,2 +0,2 @@ | ||
export type LoginProviderType = 'google.com' | 'facebook.com' | 'apple.com' | 'kakao.com'; | ||
export type LoginProviderType = 'google.com' | 'facebook.com' | 'apple.com' | 'kakao.com' | 'twitter.com'; | ||
export interface LoginWithIdTokenRequest { | ||
@@ -3,0 +3,0 @@ idToken: string; |
@@ -28,2 +28,3 @@ import { JsonRpcError, RpcErrorCode } from './json-rpc'; | ||
ALREADY_CONNECTED_OTHER_BAPP_USN = 4909, | ||
BORA_SERVICE_REGION_IS_WRONG = 4910, | ||
INTERNAL = 5000 | ||
@@ -62,2 +63,3 @@ } | ||
export declare function alreadyConnectedToOtherBappusn(origin?: any): FaceError; | ||
export declare function boraServiceRegionIsWrong(origin?: any): FaceError; | ||
export declare function unsupportedChainError(origin?: any): FaceError; | ||
@@ -64,0 +66,0 @@ export declare function invalidAddressWithWalletError(origin?: any): FaceError; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.oauthError = exports.noUserDataError = exports.pinCodeTrialLimitExceededError = exports.wrongPinCodeError = exports.invalidAddressWithWalletError = exports.unsupportedChainError = exports.alreadyConnectedToOtherBappusn = exports.invalidBoraPortalIdAndSecretKey = exports.invalidSignatureError = exports.invalidHostNameError = exports.invalidApiKeyError = exports.unknownError = exports.notImplementedError = exports.localStorageError = exports.invalidParameterError = exports.invalidFormatError = exports.cryptoError = exports.invalidEnvironmentError = exports.firebaseError = exports.nitroEnclaveError = exports.faceServerError = exports.jsonRpcError = exports.sendTransactionError = exports.FaceError = exports.FaceErrorCode = exports.HttpStatus = void 0; | ||
exports.oauthError = exports.noUserDataError = exports.pinCodeTrialLimitExceededError = exports.wrongPinCodeError = exports.invalidAddressWithWalletError = exports.unsupportedChainError = exports.boraServiceRegionIsWrong = exports.alreadyConnectedToOtherBappusn = exports.invalidBoraPortalIdAndSecretKey = exports.invalidSignatureError = exports.invalidHostNameError = exports.invalidApiKeyError = exports.unknownError = exports.notImplementedError = exports.localStorageError = exports.invalidParameterError = exports.invalidFormatError = exports.cryptoError = exports.invalidEnvironmentError = exports.firebaseError = exports.nitroEnclaveError = exports.faceServerError = exports.jsonRpcError = exports.sendTransactionError = exports.FaceError = exports.FaceErrorCode = exports.HttpStatus = void 0; | ||
const typeGuards_1 = require("./utils/typeGuards"); | ||
@@ -33,2 +33,3 @@ var HttpStatus; | ||
FaceErrorCode[FaceErrorCode["ALREADY_CONNECTED_OTHER_BAPP_USN"] = 4909] = "ALREADY_CONNECTED_OTHER_BAPP_USN"; | ||
FaceErrorCode[FaceErrorCode["BORA_SERVICE_REGION_IS_WRONG"] = 4910] = "BORA_SERVICE_REGION_IS_WRONG"; | ||
FaceErrorCode[FaceErrorCode["INTERNAL"] = 5000] = "INTERNAL"; | ||
@@ -198,2 +199,10 @@ })(FaceErrorCode = exports.FaceErrorCode || (exports.FaceErrorCode = {})); | ||
exports.alreadyConnectedToOtherBappusn = alreadyConnectedToOtherBappusn; | ||
function boraServiceRegionIsWrong(origin) { | ||
return new FaceError({ | ||
message: `bora service region is wrong`, | ||
code: FaceErrorCode.BORA_SERVICE_REGION_IS_WRONG, | ||
origin, | ||
}); | ||
} | ||
exports.boraServiceRegionIsWrong = boraServiceRegionIsWrong; | ||
function unsupportedChainError(origin) { | ||
@@ -200,0 +209,0 @@ return new FaceError({ |
@@ -35,3 +35,6 @@ import { BigNumber, BigNumberish } from 'ethers'; | ||
} | ||
export interface FaceIdTokenResponse { | ||
idToken: string; | ||
} | ||
export type AccountsResponse = string[]; | ||
//# sourceMappingURL=face-event.d.ts.map |
@@ -17,2 +17,3 @@ import { Network } from './blockchain'; | ||
face_directSocialLogin = "face_directSocialLogin", | ||
face_getIdToken = "face_getIdToken", | ||
face_loginWithIdToken = "face_loginWithIdToken", | ||
@@ -19,0 +20,0 @@ bora_connect = "bora_connect", |
@@ -19,2 +19,3 @@ "use strict"; | ||
JsonRpcMethod["face_directSocialLogin"] = "face_directSocialLogin"; | ||
JsonRpcMethod["face_getIdToken"] = "face_getIdToken"; | ||
JsonRpcMethod["face_loginWithIdToken"] = "face_loginWithIdToken"; | ||
@@ -21,0 +22,0 @@ JsonRpcMethod["bora_connect"] = "bora_connect"; |
{ | ||
"name": "@haechi-labs/face-types", | ||
"version": "1.9.2", | ||
"version": "1.9.3-alpha.0", | ||
"description": "", | ||
@@ -27,3 +27,3 @@ "author": "", | ||
}, | ||
"gitHead": "b6f98aff0ed8c8e354d8a4b449a6cb59c9694739", | ||
"gitHead": "e9b0277e5fd7b40bddf896a7f0ce8d01af642744", | ||
"publishConfig": { | ||
@@ -30,0 +30,0 @@ "access": "public" |
@@ -6,3 +6,8 @@ /* | ||
export type LoginProviderType = 'google.com' | 'facebook.com' | 'apple.com' | 'kakao.com'; | ||
export type LoginProviderType = | ||
| 'google.com' | ||
| 'facebook.com' | ||
| 'apple.com' | ||
| 'kakao.com' | ||
| 'twitter.com'; | ||
@@ -9,0 +14,0 @@ export interface LoginWithIdTokenRequest { |
@@ -31,2 +31,3 @@ import { JsonRpcError, RpcErrorCode } from './json-rpc'; | ||
ALREADY_CONNECTED_OTHER_BAPP_USN = 4909, | ||
BORA_SERVICE_REGION_IS_WRONG = 4910, | ||
INTERNAL = 5000, | ||
@@ -210,2 +211,10 @@ } | ||
export function boraServiceRegionIsWrong(origin?: any) { | ||
return new FaceError({ | ||
message: `bora service region is wrong`, | ||
code: FaceErrorCode.BORA_SERVICE_REGION_IS_WRONG, | ||
origin, | ||
}); | ||
} | ||
export function unsupportedChainError(origin?: any) { | ||
@@ -212,0 +221,0 @@ return new FaceError({ |
@@ -57,2 +57,6 @@ import { BigNumber, BigNumberish } from 'ethers'; | ||
export interface FaceIdTokenResponse { | ||
idToken: string; | ||
} | ||
export type AccountsResponse = string[]; |
@@ -18,2 +18,3 @@ import { Network } from './blockchain'; | ||
face_directSocialLogin = 'face_directSocialLogin', | ||
face_getIdToken = 'face_getIdToken', | ||
face_loginWithIdToken = 'face_loginWithIdToken', | ||
@@ -20,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100157
2048
2