fix: integrate with signature

This commit is contained in:
2025-12-04 02:09:33 +07:00
parent 5fe9b48f2d
commit 3ad93441b2
5 changed files with 32 additions and 47 deletions
+2 -4
View File
@@ -10,12 +10,11 @@ export const deviceCommandBody = z.object({
deviceType: z.string(),
commandType: z.string(),
towerNumber: z.string(),
timestamp: z.string().datetime(), // ISO8601
timestamp: z.string(),
nonce: z.string(),
payload: z.object({
action: z.string(),
}),
signature: z.string(),
})
export type DeviceCommandBody = z.infer<typeof deviceCommandBody>
@@ -29,9 +28,8 @@ export const deviceQueryParams = z.object({
deviceType: z.string(),
commandType: z.string(),
towerNumber: z.string(),
timestamp: z.string().datetime(), // ISO8601
timestamp: z.string(),
nonce: z.string(),
signature: z.string(),
})
export type DeviceQueryParams = z.infer<typeof deviceQueryParams>