mirror of
https://github.com/outline/outline.git
synced 2026-11-29 08:39:20 +03:00
* Initial plan * Fix SequelizeDatabaseError by adding UUID validation to oauthClientId Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
22 lines
547 B
TypeScript
22 lines
547 B
TypeScript
import { z } from "zod";
|
|
import { BaseSchema } from "@server/routes/api/schema";
|
|
|
|
export const OAuthAuthenticationsListSchema = BaseSchema.extend({
|
|
body: z.object({}),
|
|
});
|
|
|
|
export type OAuthAuthenticationsListReq = z.infer<
|
|
typeof OAuthAuthenticationsListSchema
|
|
>;
|
|
|
|
export const OAuthAuthenticationsDeleteSchema = BaseSchema.extend({
|
|
body: z.object({
|
|
oauthClientId: z.string().uuid(),
|
|
scope: z.array(z.string()).optional(),
|
|
}),
|
|
});
|
|
|
|
export type OAuthAuthenticationsDeleteReq = z.infer<
|
|
typeof OAuthAuthenticationsDeleteSchema
|
|
>;
|