@motiadev/core 0.5.5-beta.113 → 0.5.5-beta.114-291584

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ const generateTypesString = (handlers, streams) => {
12
12
  *
13
13
  * Consider adding this file to .prettierignore and eslint ignore.
14
14
  */
15
- import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream } from 'motia'
15
+ import { EventHandler, ApiRouteHandler, ApiResponse, MotiaStream, CronHandler } from 'motia'
16
16
 
17
17
  declare module 'motia' {
18
18
  interface FlowContextStateStreams {
@@ -77,12 +77,12 @@ export type ApiRouteConfig = {
77
77
  */
78
78
  includeFiles?: string[];
79
79
  };
80
- export type ApiRequest<TBody = unknown> = {
80
+ export interface ApiRequest<TBody = unknown> {
81
81
  pathParams: Record<string, string>;
82
82
  queryParams: Record<string, string | string[]>;
83
83
  body: TBody;
84
84
  headers: Record<string, string | string[]>;
85
- };
85
+ }
86
86
  export type ApiResponse<TStatus extends number = number, TBody = string | Buffer | Record<string, unknown>> = {
87
87
  status: TStatus;
88
88
  headers?: Record<string, string>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@motiadev/core",
3
3
  "description": "Core functionality for the Motia framework, providing the foundation for building event-driven workflows.",
4
4
  "main": "dist/index.js",
5
- "version": "0.5.5-beta.113",
5
+ "version": "0.5.5-beta.114-291584",
6
6
  "dependencies": {
7
7
  "@amplitude/analytics-node": "^1.3.8",
8
8
  "body-parser": "^1.20.3",