import { ManagedHttpResolver, IKeyStore, KeyReference } from '../lib/index'; import IValidatorOptions from '../lib/options/IValidatorOptions'; /** * Class that creates resources needed for unit tests */ export default class TestSetup { /** * Test audience */ AUDIENCE: string; /** * Http mock */ fetchMock: any; /** * Resolver url */ resolverUrl: string; /** * TestSetup environment */ resolver: ManagedHttpResolver; /** * Constant for default id token configuration */ defaultIdTokenConfiguration: string; /** * Constant for default id token jwks configuration */ defaultIdTokenJwksConfiguration: string; /** * Constant for the default user did */ defaultUserDid: string; /** * Constant for the default issuer did */ defaultIssuerDid: string; /** * Constant for default kid for user DID */ defaulSigKey: KeyReference; /** * Constant for default kid for user DID */ defaulUserDidKid: string; /** * Constant for default kid for issuer DID */ defaulIssuerDidKid: string; /** * Constant for token audience */ tokenAudience: string; /** * Constant for token issuer url */ tokenIssuer: string; /** * SubtleCrypto instance */ defaultSubtleCrypto: SubtleCrypto; /** * CryptoFactory instance */ crypto: import("verifiablecredentials-crypto-sdk-typescript/dist/lib/Crypto").default; /** * TestSetup crypto properties */ keyStore: IKeyStore; /** * Validator options */ validatorOptions: IValidatorOptions; /** * Set the keys */ keys: { kid: string; didKid: string; kty: string; use: string; alg: string; extractable: boolean; }[]; /** * test input request */ body: { did: string; sub: string; sub_jwk: { defaultSignAlgorithm: string; crv: string; x: string; y: string; alg: string; kid: string; kty: string; use: string; }; nonce: string; schema: string; claims: { _claim_names: { name: string; 'https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/.well-known/openid-configuration': string; }; _claim_sources: { selfIssued: { JWT: string; }; idtoken1: { JWT: string; }; }; }; jti: string; aud: string; iss: string; iat: number; exp: number; }; /** * Create keys for tests */ generateKeys(): Promise; }