trigger-events-dto.tsβ’637 B
import { Static, Type } from '@sinclair/typebox'
import { Cursor } from '../../common/seek-page'
import { FlowId } from '../flow'
export const ListTriggerEventsRequest = Type.Object({
flowId: Type.String({}),
limit: Type.Optional(Type.Number({})),
cursor: Type.Optional(Type.String({})),
})
export type ListTriggerEventsRequest = Omit<Static<typeof ListTriggerEventsRequest>, 'flowId' | 'cursor'> & {
flowId: FlowId
cursor: Cursor | undefined
}
export const TestPollingTriggerRequest = Type.Object({
flowId: Type.String({}),
})
export type TestPollingTriggerRequest = Static<typeof TestPollingTriggerRequest>