AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import * as z from "zod/mini";
import { TPropertyValue } from '../input/common';
import { PropertyType } from '../input/property-type';
import { BasePieceAuthSchema } from './common';
export const BasicAuthPropertyValue = z.object({
username: z.string(),
password: z.string(),
})
export type BasicAuthPropertyValue = z.infer<typeof BasicAuthPropertyValue>
export const BasicAuthProperty = z.object({
...BasePieceAuthSchema.shape,
username: z.object({
displayName: z.string(),
description: z.optional(z.string())
}),
password: z.object({
displayName: z.string(),
description: z.optional(z.string())
}),
...TPropertyValue(BasicAuthPropertyValue, PropertyType.BASIC_AUTH).shape,
})
export type BasicAuthProperty =
BasePieceAuthSchema<BasicAuthPropertyValue> & {
username: {
displayName: string;
description?: string;
};
password: {
displayName: string;
description?: string;
};
} &
TPropertyValue<
BasicAuthPropertyValue,
PropertyType.BASIC_AUTH,
true
>;