mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 10:18:16 +00:00
24 lines
1.3 KiB
TypeScript
24 lines
1.3 KiB
TypeScript
import { z } from "zod";
|
|
|
|
import { Auth0ClientSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/auth0-client-secret";
|
|
import { AwsIamUserSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/aws-iam-user-secret";
|
|
import { AzureClientSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/azure-client-secret";
|
|
import { LdapPasswordRotationSchema } from "@app/ee/services/secret-rotation-v2/ldap-password";
|
|
import { MsSqlCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/mssql-credentials";
|
|
import { MySqlCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/mysql-credentials";
|
|
import { OktaClientSecretRotationSchema } from "@app/ee/services/secret-rotation-v2/okta-client-secret";
|
|
import { OracleDBCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/oracledb-credentials";
|
|
import { PostgresCredentialsRotationSchema } from "@app/ee/services/secret-rotation-v2/postgres-credentials";
|
|
|
|
export const SecretRotationV2Schema = z.discriminatedUnion("type", [
|
|
PostgresCredentialsRotationSchema,
|
|
MsSqlCredentialsRotationSchema,
|
|
MySqlCredentialsRotationSchema,
|
|
OracleDBCredentialsRotationSchema,
|
|
Auth0ClientSecretRotationSchema,
|
|
AzureClientSecretRotationSchema,
|
|
LdapPasswordRotationSchema,
|
|
AwsIamUserSecretRotationSchema,
|
|
OktaClientSecretRotationSchema
|
|
]);
|