feat: base shortcut code
This commit is contained in:
19
utils/types.ts
Normal file
19
utils/types.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export const RequestSchema = z.object({
|
||||
command: z.string(),
|
||||
parameters: z.record(z.string()).optional(),
|
||||
apiKey: z.string()
|
||||
});
|
||||
|
||||
export type ShortcutsRequest = z.infer<typeof RequestSchema>;
|
||||
|
||||
export interface ShortcutsResponse {
|
||||
success: boolean;
|
||||
message: string;
|
||||
data?: unknown;
|
||||
action?: {
|
||||
type: 'notification' | 'openUrl' | 'runShortcut' | 'wait';
|
||||
payload: unknown;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user