@worldcoin/idkit-core 2.1.0 → 4.0.0-dev.777cdbe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +0,0 @@
1
- import {
2
- encodeAction,
3
- generateSignal,
4
- hashToField,
5
- packAndEncode,
6
- solidityEncode
7
- } from "../chunk-HZ2SQA5V.js";
8
- export {
9
- encodeAction,
10
- generateSignal,
11
- hashToField,
12
- packAndEncode,
13
- solidityEncode
14
- };
@@ -1,35 +0,0 @@
1
- import { V as VerificationLevel } from './config-fuwC_Hia.cjs';
2
-
3
- declare enum AppErrorCodes {
4
- ConnectionFailed = "connection_failed",
5
- VerificationRejected = "verification_rejected",
6
- MaxVerificationsReached = "max_verifications_reached",
7
- CredentialUnavailable = "credential_unavailable",
8
- MalformedRequest = "malformed_request",
9
- InvalidNetwork = "invalid_network",
10
- InclusionProofFailed = "inclusion_proof_failed",
11
- InclusionProofPending = "inclusion_proof_pending",
12
- UnexpectedResponse = "unexpected_response",// NOTE: when the World app returns an unexpected response
13
- FailedByHostApp = "failed_by_host_app",// NOTE: Host app failed/rejected verification (does not come from World App / simulator)
14
- GenericError = "generic_error"
15
- }
16
- declare enum VerificationState {
17
- PreparingClient = "loading_widget",
18
- WaitingForConnection = "awaiting_connection",// Awaiting connection from the wallet
19
- WaitingForApp = "awaiting_app",// Awaiting user confirmation in wallet
20
- Confirmed = "confirmed",
21
- Failed = "failed"
22
- }
23
-
24
- interface ISuccessResult {
25
- proof: string;
26
- merkle_root: string;
27
- nullifier_hash: string;
28
- verification_level: VerificationLevel;
29
- }
30
- interface IErrorState {
31
- code: AppErrorCodes;
32
- message?: string;
33
- }
34
-
35
- export { AppErrorCodes as A, type ISuccessResult as I, VerificationState as V, type IErrorState as a };
@@ -1,35 +0,0 @@
1
- import { V as VerificationLevel } from './config-fuwC_Hia.js';
2
-
3
- declare enum AppErrorCodes {
4
- ConnectionFailed = "connection_failed",
5
- VerificationRejected = "verification_rejected",
6
- MaxVerificationsReached = "max_verifications_reached",
7
- CredentialUnavailable = "credential_unavailable",
8
- MalformedRequest = "malformed_request",
9
- InvalidNetwork = "invalid_network",
10
- InclusionProofFailed = "inclusion_proof_failed",
11
- InclusionProofPending = "inclusion_proof_pending",
12
- UnexpectedResponse = "unexpected_response",// NOTE: when the World app returns an unexpected response
13
- FailedByHostApp = "failed_by_host_app",// NOTE: Host app failed/rejected verification (does not come from World App / simulator)
14
- GenericError = "generic_error"
15
- }
16
- declare enum VerificationState {
17
- PreparingClient = "loading_widget",
18
- WaitingForConnection = "awaiting_connection",// Awaiting connection from the wallet
19
- WaitingForApp = "awaiting_app",// Awaiting user confirmation in wallet
20
- Confirmed = "confirmed",
21
- Failed = "failed"
22
- }
23
-
24
- interface ISuccessResult {
25
- proof: string;
26
- merkle_root: string;
27
- nullifier_hash: string;
28
- verification_level: VerificationLevel;
29
- }
30
- interface IErrorState {
31
- code: AppErrorCodes;
32
- message?: string;
33
- }
34
-
35
- export { AppErrorCodes as A, type ISuccessResult as I, VerificationState as V, type IErrorState as a };