PersistentAI API Documentation / @persistent-ai/fireflow-nodes / updateValuePortSchema
Function: updateValuePortSchema()
updateValuePortSchema(
node,port):void
Defined in: packages/fireflow-nodes/src/nodes/secret/utils.ts:82
Parameters
node
port
Returns
void
On Port Update
handler for VaultCreateNode (and similar nodes with a 'value' ObjectPort).
When the secretType enum changes, dynamically rebuilds the 'value' ObjectPort schema to show the expected fields for the selected secret type (e.g., apiKey for OpenAI, key + secretKey for xAPI). Each field uses ui: { isPassword: true } for masking.
Usage:
ts
@OnPortUpdate(updateValuePortSchema)
secretType?: string