mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 12:02:24 -04:00
48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
|
|
import { zGetNotificationResponse, zPostNotificationDismissResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Mark a notification as dismissed for the current user.
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
description: 'Mark a notification as dismissed for the current user.',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postNotificationDismiss',
|
|
path: '/notification/dismiss',
|
|
tags: ['console'],
|
|
})
|
|
.output(zPostNotificationDismissResponse)
|
|
|
|
export const dismiss = {
|
|
post,
|
|
}
|
|
|
|
/**
|
|
* Return the active in-product notification for the current user in their interface language (falls back to English if unavailable). The notification is NOT marked as seen here; call POST /notification/dismiss when the user explicitly closes the modal.
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description:
|
|
'Return the active in-product notification for the current user in their interface language (falls back to English if unavailable). The notification is NOT marked as seen here; call POST /notification/dismiss when the user explicitly closes the modal.',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getNotification',
|
|
path: '/notification',
|
|
tags: ['console'],
|
|
})
|
|
.output(zGetNotificationResponse)
|
|
|
|
export const notification = {
|
|
get,
|
|
dismiss,
|
|
}
|
|
|
|
export const contract = {
|
|
notification,
|
|
}
|