// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
// Source: OpenAPI 3.1 components.schemas
// DO NOT EDIT — re-run `make gen-clients`.

import { z } from "zod";
import { OAuthProviderEnumSchema } from "./OAuthProviderEnum";

export const OAuthConnectionSchema = z.object({
  id: z.number().int(),
  provider: OAuthProviderEnumSchema,
  provider_display: z.string(),
  provider_username: z.string(),
  provider_email: z.email(),
  provider_avatar_url: z.string(),
  connected_at: z.string().datetime({ offset: true }),
  last_login_at: z.string().datetime({ offset: true }),
});

export type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
