/** * Serializer for ExternalCredentialMapping model. * * Serializes external credential mappings including credential, platform, * provider, external_template_id, and metadata. */ export type ExternalCredentialMapping = { readonly id: number; readonly credential_id: string; readonly credential_name: string; readonly platform_key: string; readonly platform_name: string; /** * The credential provider */ readonly provider: number | null; /** * The credential provider name (references CredentialProvider.name) */ provider_name: string; /** * Get display name from provider if available, otherwise use provider_name. */ readonly provider_name_display: string; /** * The template ID in the external system (e.g., Accredible template ID) */ external_template_id?: string | null; /** * The group ID in the external system (e.g., Accredible group ID). If not set, will fall back to the provider config's group_id. */ group_id?: string | null; /** * Additional metadata stored as JSON (for general mapping information, not sync status) */ metadata?: any; readonly created: string; readonly updated: string; };