mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-13 18:29:28 +00:00
34 lines
1.2 KiB
TypeScript
34 lines
1.2 KiB
TypeScript
// Code generated by automation script, DO NOT EDIT.
|
|
// Automated by pulling database and generating zod schema
|
|
// To update. Just run npm run generate:schema
|
|
// Written by akhilmhdh.
|
|
|
|
import { z } from "zod";
|
|
|
|
import { zodBuffer } from "@app/lib/zod";
|
|
|
|
import { TImmutableDBKeys } from "./models";
|
|
|
|
export const IdentityJwtAuthsSchema = z.object({
|
|
id: z.string().uuid(),
|
|
accessTokenTTL: z.coerce.number().default(7200),
|
|
accessTokenMaxTTL: z.coerce.number().default(7200),
|
|
accessTokenNumUsesLimit: z.coerce.number().default(0),
|
|
accessTokenTrustedIps: z.unknown(),
|
|
identityId: z.string().uuid(),
|
|
configurationType: z.string(),
|
|
jwksUrl: z.string(),
|
|
encryptedJwksCaCert: zodBuffer,
|
|
encryptedPublicKeys: zodBuffer,
|
|
boundIssuer: z.string(),
|
|
boundAudiences: z.string(),
|
|
boundClaims: z.unknown(),
|
|
boundSubject: z.string(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date()
|
|
});
|
|
|
|
export type TIdentityJwtAuths = z.infer<typeof IdentityJwtAuthsSchema>;
|
|
export type TIdentityJwtAuthsInsert = Omit<z.input<typeof IdentityJwtAuthsSchema>, TImmutableDBKeys>;
|
|
export type TIdentityJwtAuthsUpdate = Partial<Omit<z.input<typeof IdentityJwtAuthsSchema>, TImmutableDBKeys>>;
|