UNPKG

@sphereon/oid4vci-common

Version:

OpenID 4 Verifiable Credential Issuance Common Types

29 lines 1.55 kB
import { CommonAuthorizationRequest } from './Authorization.types'; import { CredentialOfferFormatV1_0_11 } from './Generic.types'; export interface CredentialOfferV1_0_09 { credential_offer: CredentialOfferPayloadV1_0_09; } export interface CredentialOfferPayloadV1_0_09 { /** * REQUIRED. The URL of the Credential Issuer, the Wallet is requested to obtain one or more Credentials from. */ issuer: string; /** * REQUIRED. A JSON array, where every entry is a JSON object or a JSON string. If the entry is an object, * the object contains the data related to a certain credential type the Wallet MAY request. * Each object MUST contain a format Claim determining the format of the credential to be requested and * further parameters characterising the type of the credential to be requested as defined in Appendix E. * If the entry is a string, the string value MUST be one of the id values in one of the objects in the * credentials_supported Credential Issuer metadata parameter. * When processing, the Wallet MUST resolve this string value to the respective object. */ credentials: (CredentialOfferFormatV1_0_11 | string)[]; 'pre-authorized_code'?: string; user_pin_required?: boolean | string; op_state?: string; } export interface AuthorizationRequestV1_0_09 extends CommonAuthorizationRequest { op_state?: string; } export declare function isAuthorizationRequestV1_0_09(request: CommonAuthorizationRequest): boolean; //# sourceMappingURL=v1_0_09.types.d.ts.map