mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 10:18:16 +00:00
37 lines
1.4 KiB
TypeScript
37 lines
1.4 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 IdentityOidcAuthsSchema = 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(),
|
|
oidcDiscoveryUrl: z.string(),
|
|
encryptedCaCert: z.string().nullable().optional(),
|
|
caCertIV: z.string().nullable().optional(),
|
|
caCertTag: z.string().nullable().optional(),
|
|
boundIssuer: z.string(),
|
|
boundAudiences: z.string(),
|
|
boundClaims: z.unknown(),
|
|
boundSubject: z.string().nullable().optional(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
encryptedCaCertificate: zodBuffer.nullable().optional(),
|
|
claimMetadataMapping: z.unknown().nullable().optional(),
|
|
accessTokenPeriod: z.coerce.number().default(0)
|
|
});
|
|
|
|
export type TIdentityOidcAuths = z.infer<typeof IdentityOidcAuthsSchema>;
|
|
export type TIdentityOidcAuthsInsert = Omit<z.input<typeof IdentityOidcAuthsSchema>, TImmutableDBKeys>;
|
|
export type TIdentityOidcAuthsUpdate = Partial<Omit<z.input<typeof IdentityOidcAuthsSchema>, TImmutableDBKeys>>;
|