UNPKG

@sphereon/ssi-sdk-waci-pex-qr-react

Version:
56 lines 1.51 kB
/// <reference types="react" /> import { IAgentContext, IPluginMethodMap } from '@veramo/core'; export interface WaciTypes extends IPluginMethodMap { createOobQrCode(oobQRProps: OobQRProps, context: IRequiredContext): Promise<JSX.Element>; } export declare enum QRType { DID_AUTH_SIOP_V2 = "siopv2", DIDCOMM_V2_OOB = "https://didcomm.org/out-of-band/2.0/invitation" } export interface QRContent { state?: string; nonce?: string; qrValue?: string; } export declare enum GoalCode { STREAMLINED_VP = "streamlined-vp", STREAMLINED_VC = "streamlined-vc" } export declare enum AcceptMode { OIDC4VP = "oidc4vp", SIOPV2_WITH_OIDC4VP = "siopv2+oidc4vp", SIOP_V2 = "siopv2", DIDCOMM_V2 = "didcomm/v2" } export declare enum StatusCode { OK = "OK", CREATED = "CREATED" } export interface Body { goalCode: GoalCode; accept: [AcceptMode]; } export interface OobQRProps { oobBaseUrl: string; type: QRType; body: Body; id: string; from: string; onGenerate?: (props: OobQRProps, payload: OobPayload) => void; bgColor?: string; fgColor?: string; level?: 'L' | 'M' | 'Q' | 'H'; size?: number; title?: string; } export interface OobPayload { type: QRType; id: string; from: string; body: Body; } export declare enum events { WACI_OOB_QR_CODE_CODE_CREATED = "WaciOobQrCodeCreated" } export declare type IRequiredContext = IAgentContext<Record<string, never>>; //# sourceMappingURL=WaciTypes.d.ts.map