UNPKG

@sphereon/oid4vci-issuer

Version:

OpenID 4 Verifiable Credential Issuance issuer REST endpoints

53 lines 3.38 kB
import { AuthorizationServerMetadata, ClientMetadata, ClientResponseType, CNonceState, CredentialConfigurationSupportedV1_0_13, CredentialIssuerMetadataOptsV1_0_13, CredentialOfferSession, IssuerMetadata, IStateManager, JWTVerifyCallback, MetadataDisplay, TxCode, URIState } from '@sphereon/oid4vci-common'; import { VcIssuer } from '../VcIssuer'; import { CredentialDataSupplier, CredentialSignerCallback } from '../types'; import { IssuerMetadataBuilderV1_13 } from './IssuerMetadataBuilderV1_13'; export declare class VcIssuerBuilder { issuerMetadataBuilder?: IssuerMetadataBuilderV1_13; issuerMetadata: Partial<CredentialIssuerMetadataOptsV1_0_13>; authorizationServerMetadata: Partial<AuthorizationServerMetadata>; asClientOpts?: ClientMetadata; txCode?: TxCode; defaultCredentialOfferBaseUri?: string; userPinRequired?: boolean; cNonceExpiresIn?: number; credentialOfferStateManager?: IStateManager<CredentialOfferSession>; credentialOfferURIManager?: IStateManager<URIState>; cNonceStateManager?: IStateManager<CNonceState>; credentialSignerCallback?: CredentialSignerCallback; jwtVerifyCallback?: JWTVerifyCallback; credentialDataSupplier?: CredentialDataSupplier; withIssuerMetadata(issuerMetadata: IssuerMetadata): this; withASClientMetadata(clientMetadata: ClientMetadata): this; withASClientMetadataParams({ client_id, client_secret, redirect_uris, response_types, ...other }: { client_id: string; client_secret?: string; redirect_uris?: string[]; response_types?: ClientResponseType[]; } & ClientMetadata): this; withAuthorizationMetadata(authorizationServerMetadata: AuthorizationServerMetadata): this; withIssuerMetadataBuilder(builder: IssuerMetadataBuilderV1_13): this; withDefaultCredentialOfferBaseUri(baseUri: string): this; withCredentialIssuer(issuer: string): this; withAuthorizationServers(authorizationServers: string | string[]): this; withCredentialEndpoint(credentialEndpoint: string): this; withBatchCredentialEndpoint(batchCredentialEndpoint: string): this; withTokenEndpoint(tokenEndpoint: string): this; withIssuerDisplay(issuerDisplay: MetadataDisplay[] | MetadataDisplay): this; addIssuerDisplay(issuerDisplay: MetadataDisplay): this; withCredentialConfigurationsSupported(credentialConfigurationsSupported: Record<string, CredentialConfigurationSupportedV1_0_13>): this; addCredentialConfigurationsSupported(id: string, supportedCredential: CredentialConfigurationSupportedV1_0_13): this; withTXCode(txCode: TxCode): this; withCredentialOfferURIStateManager(credentialOfferURIManager: IStateManager<URIState>): this; withInMemoryCredentialOfferURIState(): this; withCredentialOfferStateManager(credentialOfferManager: IStateManager<CredentialOfferSession>): this; withInMemoryCredentialOfferState(): this; withCNonceStateManager(cNonceManager: IStateManager<CNonceState>): this; withInMemoryCNonceState(): this; withCNonceExpiresIn(cNonceExpiresIn: number): this; withCredentialSignerCallback(cb: CredentialSignerCallback): this; withJWTVerifyCallback(verifyCallback: JWTVerifyCallback): this; withCredentialDataSupplier(credentialDataSupplier: CredentialDataSupplier): this; build(): VcIssuer; } //# sourceMappingURL=VcIssuerBuilder.d.ts.map