import { OpenId4VciAuthorizationServerConfig, OpenId4VciChainedAuthorizationServerConfig, OpenId4VciDirectAuthorizationServerConfig } from "../../shared/models/OpenId4VciAuthorizationServerConfig.mjs"; import { OpenId4VcJwtIssuerEncoded } from "../../shared/models/OpenId4VcJwtIssuer.mjs"; import { OpenId4VciCredentialConfigurationsSupportedWithFormats, OpenId4VciCredentialIssuerMetadataDisplay } from "../../shared/models/index.mjs"; import "../../shared/index.mjs"; import { OpenId4VciBatchCredentialIssuanceOptions } from "../OpenId4VcIssuerServiceOptions.mjs"; import "../../index.mjs"; import { BaseRecord, Kms, RecordTags, TagsBase } from "@credo-ts/core"; //#region src/openid4vc-issuer/repository/OpenId4VcIssuerRecord.d.ts type OpenId4VcIssuerRecordTags = RecordTags; type DefaultOpenId4VcIssuerRecordTags = { issuerId: string; }; type OpenId4VcIssuerRecordSignedMetadata = { signer: OpenId4VcJwtIssuerEncoded; /** * The credential issuer metadata as a signed JWT */ jwt: string; }; type OpenId4VcIssuerRecordProps = { id?: string; createdAt?: Date; tags?: TagsBase; issuerId: string; /** * The public jwk of the key used to sign access tokens for this issuer. Must include a `kid` parameter. */ accessTokenPublicJwk: Kms.KmsJwkPublicAsymmetric; /** * The DPoP signing algorithms supported by this issuer. * If not provided, dPoP is considered unsupported. */ dpopSigningAlgValuesSupported?: [Kms.KnownJwaSignatureAlgorithm, ...Kms.KnownJwaSignatureAlgorithm[]]; display?: OpenId4VciCredentialIssuerMetadataDisplay[]; authorizationServerConfigs?: OpenId4VciAuthorizationServerConfig[]; credentialConfigurationsSupported: OpenId4VciCredentialConfigurationsSupportedWithFormats; /** * Indicate support for batch issuance of credentials */ batchCredentialIssuance?: OpenId4VciBatchCredentialIssuanceOptions; /** * When signed metadata is supported, this stores the * signed jwt and signer information to update the JWT in the future. */ signedMetadata?: OpenId4VcIssuerRecordSignedMetadata; }; /** * For OID4VC you need to expose metadata files. Each issuer needs to host this metadata. This is not the case for DIDComm where we can just have one /didcomm endpoint. * So we create a record per openid issuer/verifier that you want, and each tenant can create multiple issuers/verifiers which have different endpoints * and metadata files * */ declare class OpenId4VcIssuerRecord extends BaseRecord { static readonly type = "OpenId4VcIssuerRecord"; readonly type = "OpenId4VcIssuerRecord"; issuerId: string; /** * @deprecated accessTokenPublicJwk should be used * @todo remove in migration */ accessTokenPublicKeyFingerprint?: string; accessTokenPublicJwk?: Kms.KmsJwkPublicAsymmetric; /** * Only here for class transformation. If credentialsSupported is set we transform * it to the new credentialConfigurationsSupported format */ private set credentialsSupported(value); credentialConfigurationsSupported: OpenId4VciCredentialConfigurationsSupportedWithFormats; display?: OpenId4VciCredentialIssuerMetadataDisplay[]; authorizationServerConfigs?: OpenId4VciAuthorizationServerConfig[]; dpopSigningAlgValuesSupported?: [Kms.KnownJwaSignatureAlgorithm, ...Kms.KnownJwaSignatureAlgorithm[]]; batchCredentialIssuance?: OpenId4VciBatchCredentialIssuanceOptions; signedMetadata?: OpenId4VcIssuerRecordSignedMetadata; get directAuthorizationServerConfigs(): OpenId4VciDirectAuthorizationServerConfig[] | undefined; get chainedAuthorizationServerConfigs(): OpenId4VciChainedAuthorizationServerConfig[] | undefined; get resolvedAccessTokenPublicJwk(): Kms.PublicJwk; constructor(props: OpenId4VcIssuerRecordProps); getTags(): { issuerId: string; }; } //#endregion export { DefaultOpenId4VcIssuerRecordTags, OpenId4VcIssuerRecord, OpenId4VcIssuerRecordProps, OpenId4VcIssuerRecordSignedMetadata, OpenId4VcIssuerRecordTags }; //# sourceMappingURL=OpenId4VcIssuerRecord.d.mts.map