fix: integrate with signature
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user