Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

646 B
Raw Blame
import type { EnvironmentVariableItemResponse } from '@dify/contracts/api/console/apps/types.gen'
import type { EventEmitterValue } from '@/context/event-emitter'
import { DSL_EXPORT_CHECK } from './constants'

export type ExportSecretEnvironmentVariable = Pick<
  EnvironmentVariableItemResponse,
  'name' | 'value'
>

export type ExportSecretEnvironmentEvent = {
  type: typeof DSL_EXPORT_CHECK
  payload: { data: ExportSecretEnvironmentVariable[] }
}

export function isExportSecretEnvironmentEvent(
  event: EventEmitterValue,
): event is ExportSecretEnvironmentEvent {
  return typeof event !== 'string' && event.type === DSL_EXPORT_CHECK
}