Files
dify/web/contract/console/notification.ts
2026-03-09 14:59:33 +08:00

25 lines
515 B
TypeScript

import { type } from '@orpc/contract'
import { base } from '../base'
export type ConsoleNotification = {
body: string
frequency: 'once' | 'always'
lang: string
notification_id: string
subtitle: string
title: string
title_pic_url?: string
}
export type ConsoleNotificationResponse = {
notifications: ConsoleNotification[]
should_show: boolean
}
export const notificationContract = base
.route({
path: '/notification',
method: 'GET',
})
.output(type<ConsoleNotificationResponse>())