mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
chore: update to openapi v3 by change dep (#37316)
Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: Stephen Zhou <hi@hyoban.cc> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
67 files changed
+7054
-8673
No files matched your search
@@ -36,6 +36,12 @@ export type ImportAppResult = {
|
||||
readonly leakedDependencies: readonly PluginDependency[]
|
||||
}
|
||||
|
||||
type PluginDependencyLabelInput = {
|
||||
readonly current_identifier?: string | null
|
||||
readonly type?: PluginDependency['type']
|
||||
readonly value?: unknown
|
||||
}
|
||||
|
||||
export async function runImportApp(opts: ImportAppOptions, deps: ImportAppDeps): Promise<ImportAppResult> {
|
||||
const env = deps.envLookup ?? getEnv
|
||||
const io = deps.io ?? nullStreams()
|
||||
@@ -124,7 +130,7 @@ export async function runImportApp(opts: ImportAppOptions, deps: ImportAppDeps):
|
||||
|
||||
// `value` is a loosely-typed wire object (Github | Marketplace | Package); narrow it here to
|
||||
// surface a human-readable identifier without depending on which variant the server returned.
|
||||
export function pluginDependencyLabel(dep: PluginDependency): string {
|
||||
export function pluginDependencyLabel(dep: PluginDependencyLabelInput): string {
|
||||
const value = dep.value
|
||||
if (typeof value === 'object' && value !== null) {
|
||||
const fields = value as Record<string, unknown>
|
||||
|
||||
Reference in new issue
Block a user