UNPKG

@worldcoin/idkit-core

Version:

The identity SDK. Privacy-preserving identity and proof of personhood with World ID.

42 lines (40 loc) 1.73 kB
declare const brand: unique symbol; type Brand<T, TBrand extends string> = T & { [brand]: TBrand; }; type AbiEncodedValue = Brand<{ types: string[]; values: unknown[]; }, 'AbiEncodedValue'>; /** * @deprecated in IDKit@1.0.0, use VerificationLevel instead */ declare enum CredentialType { Orb = "orb", SecureDocument = "secure_document", Document = "document", Device = "device" } declare enum VerificationLevel { Orb = "orb", SecureDocument = "secure_document", Document = "document", Device = "device" } type IDKitConfig = { /** Unique identifier for the app verifying the action. This should be the app ID obtained from the Developer Portal. */ app_id: `app_${string}`; /** Identifier for the action the user is performing. Should be left blank for [Sign in with Worldcoin](https://docs.world.org/id/sign-in). */ action: AbiEncodedValue | string; /** The description of the specific action (shown to users in World App). Only recommended for actions created on-the-fly. */ action_description?: string; /** Encodes data into a proof that must match when validating. Read more on the [On-chain section](https://docs.world.org/advanced/on-chain). */ signal?: AbiEncodedValue | string; /** URL to a third-party bridge to use when connecting to the World App. Optional. */ bridge_url?: string; /** The minimum required level of verification. Defaults to "orb". */ verification_level?: VerificationLevel; /** Whether the app is a partner app and should allow deferred verification. Defaults to false. */ partner?: boolean; }; export { type AbiEncodedValue as A, CredentialType as C, type IDKitConfig as I, VerificationLevel as V };