Now calling run endpoints with GET, POST will check against the API key, whether there is org_id or not, if the operation workflow doesnt match with the user org or user id, will return with workflow not found, run not found
10 lines
225 B
TypeScript
10 lines
225 B
TypeScript
import { z } from "zod";
|
|
|
|
export const APIKeyBodyRequest = z.object({
|
|
user_id: z.string().optional(),
|
|
org_id: z.string().optional(),
|
|
iat: z.number(),
|
|
});
|
|
|
|
export type APIKeyUserType = z.infer<typeof APIKeyBodyRequest>;
|