-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
28 lines (24 loc) · 1.41 KB
/
types.d.ts
File metadata and controls
28 lines (24 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Automatically generated types for motia
* Do NOT edit this file manually.
*
* Consider adding this file to .prettierignore and eslint ignore.
*/
import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream, CronHandler } from 'motia'
declare module 'motia' {
interface FlowContextStateStreams {
}
interface Handlers {
'FlowGuardUI': ApiRouteHandler<Record<string, unknown>, unknown, never>
'ProcessGreeting': EventHandler<unknown, never>
'HelloAPI': ApiRouteHandler<Record<string, unknown>, ApiResponse<200, { message: string; status: string; appName: string }>, { topic: 'process-greeting'; data: unknown }>
'ResolveIncident': ApiRouteHandler<{ incidentId: string; resolution: string }, ApiResponse<200, { incidentId: string; status: string }>, { topic: 'incident.resolved'; data: unknown }>
'ReportIncident': ApiRouteHandler<{ service: string; severity: 'low' | 'medium' | 'high'; message: string }, ApiResponse<200, { incidentId: string; status: string }>, { topic: 'incident.reported'; data: never }>
'NotifySlack': EventHandler<unknown, never>
'ListIncidents': ApiRouteHandler<Record<string, unknown>, unknown, never>
'IncidentSuggested': EventHandler<unknown, never>
'IncidentResolved': EventHandler<unknown, never>
'IncidentReported': EventHandler<unknown, never>
'AISuggestResolution': EventHandler<unknown, { topic: 'incident.suggested'; data: unknown }>
}
}