n8n
Version:
n8n Workflow Automation Tool
7 lines (6 loc) • 405 B
TypeScript
import { type PublicApiCredentialResponse } from '@n8n/api-types';
import type { ICredentialsDb } from '@n8n/db';
export declare function toPublicApiCredentialResponse(credential: Pick<ICredentialsDb, 'id' | 'name' | 'type' | 'isManaged' | 'isGlobal' | 'isResolvable' | 'createdAt' | 'updatedAt'> & {
resolvableAllowFallback?: boolean;
resolverId?: string | null;
}): PublicApiCredentialResponse;