File size: 766 Bytes
c09f67c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | import { z } from "@hono/zod-openapi";
export const ErrorSchema = z.object({
code: z.string().openapi({
example: "disconnected",
}),
message: z.string().openapi({
example:
"The login details of this item have changed (credentials, MFA, or required user action) and a user login is required to update this information.",
}),
});
export const GeneralErrorSchema = z.object({
code: z.string().openapi({
example: "internal_server_error",
}),
message: z.string().openapi({
example: "Internal server error",
}),
});
export const Providers = z.enum([
"teller",
"plaid",
"gocardless",
"enablebanking",
]);
export const HeadersSchema = z.object({
authorization: z.string().openapi({
example: "Bearer SECRET",
}),
});
|