Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
364 B
Raw Blame
export type ProducerSecretSummary = {
  name: string
  keys: string[]
}

export function buildSecretSummary(input: {
  name: string
  keys?: readonly string[]
}): ProducerSecretSummary {
  return { name: input.name, keys: [...(input.keys ?? [])] }
}

export function buildSecretList(items: readonly ProducerSecretSummary[] = []) {
  return { items: [...items] }
}