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.

549 B
Raw Blame
/** Shared by contract generation and the mapper's in-memory type exporter. */
export const typescriptPlugin = (enterprise = false) => ({
  name: '@hey-api/typescript' as const,
  comments: false,
  ...(enterprise ? { enums: { mode: 'javascript' as const } } : {}),
})

export const stripEnterpriseSchemaNamePrefix = (name: string) =>
  name
    .replace(/^dify\.enterprise\.api\.enterprise\./, '')
    .replace(/^dify\.enterprise\.api\.appdeploy\.v1\./, '')
    .replace(/^dify\.enterprise\.api\.appdeploy\./, '')
    .replace(/^pagination\./, '')