Function: unbrandCredentials()
Makaio Framework / contracts/config / unbrandCredentials
Function: unbrandCredentials()
Section titled “Function: unbrandCredentials()”unbrandCredentials(
credentials):Record<string,string> |undefined
Defined in: ../../../packages/contracts/src/config/credential-ref.ts:217
Strip the CredentialRef brand from a credential map for use in a
ProviderConfigInput upsert.
CredentialRef is a type-level brand only — at runtime the values are
plain ref strings (e.g. stored:providerConfig:xxx:apiKey). The storage
tier stores and re-brands them on read; this helper makes the type system
aware of the cast without changing values.
Parameters
Section titled “Parameters”credentials
Section titled “credentials”Record<string, string & $brand<"CredentialRef">> | undefined
Branded credential map from a storage record, or undefined.
Returns
Section titled “Returns”Record<string, string> | undefined
Plain string credential map, or undefined when absent.