The shape of the credential values (defaults to Record<string, string>)
The credential entity if loaded from database. Will be null if directValues was provided.
OptionalexpiresOptional expiration date from the credential. Null if no expiration is set.
Where the credential came from.
The decrypted credential values, typed according to the credential type's FieldSchema.
For example, for an "API Key" type credential:
interface APIKeyValues {
apiKey: string;
}
const cred = await engine.getCredential<APIKeyValues>('OpenAI', options);
console.log(cred.values.apiKey); // Strongly typed!
The resolved credential with its values and source information.