chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动

演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-11-18 13:59:25 +08:00
1 parent 60158935f4
commit 6519682885
15831 files changed
+3063428

No files matched your search

@@ -0,0 +1,44 @@
// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import { zGetInitResponse, zPostInitBody, zPostInitResponse } from './zod.gen.ts'
/**
* Get initialization validation status.
*/
export const get = oc
.route({
inputStructure: 'detailed',
method: 'GET',
operationId: 'getInit',
path: '/init',
summary: 'Get initialization validation status.',
tags: ['console'],
})
.output(zGetInitResponse)
/**
* Validate initialization password.
*/
export const post = oc
.route({
inputStructure: 'detailed',
method: 'POST',
operationId: 'postInit',
path: '/init',
successStatus: 201,
summary: 'Validate initialization password.',
tags: ['console'],
})
.input(z.object({ body: zPostInitBody }))
.output(zPostInitResponse)
export const init = {
get,
post,
}
export const contract = {
init,
}
@@ -0,0 +1,43 @@
// This file is auto-generated by @hey-api/openapi-ts
export type ClientOptions = {
baseUrl: `${string}://${string}/console/api` | (string & {})
}
export type InitStatusResponse = {
status: 'finished' | 'not_started'
}
export type InitValidatePayload = {
password: string
}
export type InitValidateResponse = {
result: string
}
export type GetInitData = {
body?: never
path?: never
query?: never
url: '/init'
}
export type GetInitResponses = {
200: InitStatusResponse
}
export type GetInitResponse = GetInitResponses[keyof GetInitResponses]
export type PostInitData = {
body: InitValidatePayload
path?: never
query?: never
url: '/init'
}
export type PostInitResponses = {
201: InitValidateResponse
}
export type PostInitResponse = PostInitResponses[keyof PostInitResponses]
@@ -0,0 +1,36 @@
// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* InitStatusResponse
*/
export const zInitStatusResponse = z.object({
status: z.enum(['finished', 'not_started']),
})
/**
* InitValidatePayload
*/
export const zInitValidatePayload = z.object({
password: z.string().max(30),
})
/**
* InitValidateResponse
*/
export const zInitValidateResponse = z.object({
result: z.string(),
})
/**
* OK
*/
export const zGetInitResponse = zInitStatusResponse
export const zPostInitBody = zInitValidatePayload
/**
* Created
*/
export const zPostInitResponse = zInitValidateResponse