mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 16:52:38 +00:00
27 lines
1003 B
TypeScript
27 lines
1003 B
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 { TImmutableDBKeys } from "./models";
|
|
|
|
export const IdentityAzureAuthsSchema = 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(),
|
|
createdAt: z.date(),
|
|
updatedAt: z.date(),
|
|
identityId: z.string().uuid(),
|
|
tenantId: z.string(),
|
|
resource: z.string(),
|
|
allowedServicePrincipalIds: z.string()
|
|
});
|
|
|
|
export type TIdentityAzureAuths = z.infer<typeof IdentityAzureAuthsSchema>;
|
|
export type TIdentityAzureAuthsInsert = Omit<z.input<typeof IdentityAzureAuthsSchema>, TImmutableDBKeys>;
|
|
export type TIdentityAzureAuthsUpdate = Partial<Omit<z.input<typeof IdentityAzureAuthsSchema>, TImmutableDBKeys>>;
|