mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 10:45:58 +00:00
23 lines
751 B
TypeScript
23 lines
751 B
TypeScript
import { z } from "zod";
|
|
|
|
import { BaseSecretSyncSchema } from "@app/components/secret-syncs/forms/schemas/base-secret-sync-schema";
|
|
import { SecretSync } from "@app/hooks/api/secretSyncs";
|
|
|
|
export const AzureAppConfigurationSyncDestinationSchema = BaseSecretSyncSchema().merge(
|
|
z.object({
|
|
destination: z.literal(SecretSync.AzureAppConfiguration),
|
|
destinationConfig: z.object({
|
|
configurationUrl: z
|
|
.string()
|
|
.trim()
|
|
.min(1, { message: "Azure App Configuration URL is required" })
|
|
.url()
|
|
.refine(
|
|
(val) => val.endsWith(".azconfig.io"),
|
|
"URL should have the following format: https://resource-name-here.azconfig.io"
|
|
),
|
|
label: z.string().optional()
|
|
})
|
|
})
|
|
);
|