@sphereon/oid4vci-client
Version:
OpenID for Verifiable Credential Issuance (OpenID4VCI) client
24 lines • 2 kB
TypeScript
import { AuthorizationChallengeCodeResponse, AuthorizationChallengeRequestOpts, AuthorizationRequestOpts, CommonAuthorizationChallengeRequest, CredentialConfigurationSupportedV1_0_13, CredentialOfferRequestWithBaseUrl, EndpointMetadata, EndpointMetadataResultV1_0_13, IssuerOpts, OpenId4VCIVersion, OpenIDResponse, PKCEOpts, RequestObjectOpts } from '@sphereon/oid4vci-common';
export declare function createSignedAuthRequestWhenNeeded(requestObject: Record<string, any>, opts: RequestObjectOpts & {
aud?: string;
}): Promise<void>;
export declare const createAuthorizationRequestUrl: ({ pkce, endpointMetadata, authorizationRequest, credentialOffer, credentialConfigurationSupported, clientId, version, }: {
pkce: PKCEOpts;
endpointMetadata: EndpointMetadataResultV1_0_13;
authorizationRequest: AuthorizationRequestOpts;
credentialOffer?: CredentialOfferRequestWithBaseUrl;
credentialConfigurationSupported?: Record<string, CredentialConfigurationSupportedV1_0_13>;
clientId?: string;
version?: OpenId4VCIVersion;
}) => Promise<string>;
export declare const acquireAuthorizationChallengeAuthCode: (opts: AuthorizationChallengeRequestOpts) => Promise<OpenIDResponse<AuthorizationChallengeCodeResponse>>;
export declare const acquireAuthorizationChallengeAuthCodeUsingRequest: (opts: {
authorizationChallengeRequest: CommonAuthorizationChallengeRequest;
metadata?: EndpointMetadata;
issuerOpts?: IssuerOpts;
}) => Promise<OpenIDResponse<AuthorizationChallengeCodeResponse>>;
export declare const createAuthorizationChallengeRequest: (opts: AuthorizationChallengeRequestOpts) => Promise<CommonAuthorizationChallengeRequest>;
export declare const sendAuthorizationChallengeRequest: (authorizationChallengeCodeUrl: string, authorizationChallengeRequest: CommonAuthorizationChallengeRequest, opts?: {
headers?: Record<string, string>;
}) => Promise<OpenIDResponse<AuthorizationChallengeCodeResponse>>;
//# sourceMappingURL=AuthorizationCodeClient.d.ts.map