mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
Some checks failed
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
Document deploy / sync-images (push) Has been cancelled
Document deploy / generate-timestamp (push) Has been cancelled
Document deploy / build-images (map[domain:https://fastgpt.cn suffix:cn]) (push) Has been cancelled
Document deploy / build-images (map[domain:https://fastgpt.io suffix:io]) (push) Has been cancelled
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.cn kube_config:KUBE_CONFIG_CN suffix:cn]) (push) Has been cancelled
Document deploy / update-images (map[deployment:fastgpt-docs domain:https://fastgpt.io kube_config:KUBE_CONFIG_IO suffix:io]) (push) Has been cancelled
* fix: openapi * fix: openapi * fix: default maxResponse load * fix: default maxResponse load * doc
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
import type { OutLinkChatAuthType } from '../../../support/permission/chat/type';
|
|
import { OutLinkChatAuthSchema } from '../../../support/permission/chat/type';
|
|
import { ObjectIdSchema } from '../../../common/type/mongo';
|
|
import z from 'zod';
|
|
|
|
export const PresignChatFileGetUrlSchema = z
|
|
.object({
|
|
key: z.string().min(1).describe('文件key'),
|
|
appId: ObjectIdSchema.describe('应用ID'),
|
|
outLinkAuthData: OutLinkChatAuthSchema.optional().describe('外链鉴权数据')
|
|
})
|
|
.meta({
|
|
example: {
|
|
key: '1234567890',
|
|
appId: '1234567890',
|
|
outLinkAuthData: {
|
|
shareId: '1234567890',
|
|
outLinkUid: '1234567890'
|
|
}
|
|
}
|
|
});
|
|
export type PresignChatFileGetUrlParams = z.infer<typeof PresignChatFileGetUrlSchema>;
|
|
|
|
export const PresignChatFilePostUrlSchema = z
|
|
.object({
|
|
filename: z.string().min(1).describe('文件名'),
|
|
appId: ObjectIdSchema.describe('应用ID'),
|
|
chatId: z.string().min(1).describe('对话ID'),
|
|
outLinkAuthData: OutLinkChatAuthSchema.optional().describe('外链鉴权数据')
|
|
})
|
|
.meta({
|
|
example: {
|
|
filename: '1234567890',
|
|
appId: '1234567890',
|
|
chatId: '1234567890',
|
|
outLinkAuthData: {
|
|
shareId: '1234567890',
|
|
outLinkUid: '1234567890'
|
|
}
|
|
}
|
|
});
|
|
export type PresignChatFilePostUrlParams = z.infer<typeof PresignChatFilePostUrlSchema>;
|