Skip to main content

zodAsyncAPICodegenConfiguration

@the-codegen-project/cliDocs


Home / zodAsyncAPICodegenConfiguration

Variable: zodAsyncAPICodegenConfiguration

const zodAsyncAPICodegenConfiguration: ZodObject<{
$schema: ZodOptional<ZodString>;
generators: ZodArray<ZodUnion<[ZodObject<{
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
enum: ZodDefault<ZodOptional<ZodEnum<[..., ...]>>>;
id: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
map: ZodDefault<ZodOptional<ZodEnum<[..., ..., ...]>>>;
outputPath: ZodDefault<ZodOptional<ZodString>>;
preset: ZodDefault<ZodLiteral<"payloads">>;
rawPropertyNames: ZodDefault<ZodOptional<ZodBoolean>>;
serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>;
useForJavaScript: ZodDefault<ZodOptional<ZodBoolean>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}, {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}>, ZodObject<{
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
id: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
outputPath: ZodDefault<ZodString>;
preset: ZodDefault<ZodLiteral<"parameters">>;
serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>;
}, "strip", ZodTypeAny, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}, {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}>, ZodObject<{
asyncapiGenerateForOperations: ZodDefault<ZodOptional<ZodBoolean>>;
asyncapiReverseOperations: ZodDefault<ZodOptional<ZodBoolean>>;
dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>;
functionTypeMapping: ZodDefault<ZodOptional<ZodRecord<ZodString, ZodOptional<...>>>>;
id: ZodDefault<ZodOptional<ZodString>>;
kafkaTopicSeparator: ZodDefault<ZodOptional<ZodString>>;
language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>;
outputPath: ZodDefault<ZodString>;
parameterGeneratorId: ZodDefault<ZodOptional<ZodString>>;
payloadGeneratorId: ZodDefault<ZodOptional<ZodString>>;
preset: ZodDefault<ZodLiteral<"channels">>;
protocols: ZodDefault<ZodArray<ZodEnum<[..., ..., ..., ...]>, "many">>;
}, "strip", ZodTypeAny, {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}, {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ...[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}>]>, "many">;
inputPath: ZodString;
inputType: ZodLiteral<"asyncapi">;
language: ZodOptional<ZodEnum<["typescript"]>>;
}, "strip", ZodTypeAny, {
$schema: string;
generators: (
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}, {
$schema: string;
generators: (
| {
dependencies: string[];
enum: "enum" | "union";
id: string;
language: "typescript";
map: "map" | "indexedObject" | "record";
outputPath: string;
preset: "payloads";
rawPropertyNames: boolean;
serializationType: "json";
useForJavaScript: boolean;
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "parameters";
serializationType: "json";
}
| {
asyncapiGenerateForOperations: boolean;
asyncapiReverseOperations: boolean;
dependencies: string[];
functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>;
id: string;
kafkaTopicSeparator: string;
language: "typescript";
outputPath: string;
parameterGeneratorId: string;
payloadGeneratorId: string;
preset: "channels";
protocols: ("nats" | "kafka" | "mqtt" | "amqp")[];
}
| {
channelsGeneratorId: string;
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "client";
protocols: "nats"[];
}
| {
dependencies: string[];
id: string;
language: "typescript";
outputPath: string;
preset: "headers";
serializationType: "json";
}
| {
dependencies: string[];
id: string;
options: any;
preset: "custom";
renderFunction: (...args) => any;
})[];
inputPath: string;
inputType: "asyncapi";
language: "typescript";
}>;

Type declaration

NameTypeDefined in
$schemaZodOptional<ZodString>src/codegen/types.ts:108
generatorsZodArray<ZodUnion<[ZodObject<{ dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>; enum: ZodDefault<ZodOptional<ZodEnum<[..., ...]>>>; id: ZodDefault<ZodOptional<ZodString>>; language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>; map: ZodDefault<ZodOptional<ZodEnum<[..., ..., ...]>>>; outputPath: ZodDefault<ZodOptional<ZodString>>; preset: ZodDefault<ZodLiteral<"payloads">>; rawPropertyNames: ZodDefault<ZodOptional<ZodBoolean>>; serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>; useForJavaScript: ZodDefault<ZodOptional<ZodBoolean>>; }, "strip", ZodTypeAny, { dependencies: string[]; enum: "enum" | "union"; id: string; language: "typescript"; map: "map" | "indexedObject" | "record"; outputPath: string; preset: "payloads"; rawPropertyNames: boolean; serializationType: "json"; useForJavaScript: boolean; }, { dependencies: string[]; enum: "enum" | "union"; id: string; language: "typescript"; map: "map" | "indexedObject" | "record"; outputPath: string; preset: "payloads"; rawPropertyNames: boolean; serializationType: "json"; useForJavaScript: boolean; }>, ZodObject<{ dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>; id: ZodDefault<ZodOptional<ZodString>>; language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>; outputPath: ZodDefault<ZodString>; preset: ZodDefault<ZodLiteral<"parameters">>; serializationType: ZodDefault<ZodOptional<ZodLiteral<"json">>>; }, "strip", ZodTypeAny, { dependencies: string[]; id: string; language: "typescript"; outputPath: string; preset: "parameters"; serializationType: "json"; }, { dependencies: string[]; id: string; language: "typescript"; outputPath: string; preset: "parameters"; serializationType: "json"; }>, ZodObject<{ asyncapiGenerateForOperations: ZodDefault<ZodOptional<ZodBoolean>>; asyncapiReverseOperations: ZodDefault<ZodOptional<ZodBoolean>>; dependencies: ZodDefault<ZodOptional<ZodArray<ZodString, "many">>>; functionTypeMapping: ZodDefault<ZodOptional<ZodRecord<ZodString, ZodOptional<...>>>>; id: ZodDefault<ZodOptional<ZodString>>; kafkaTopicSeparator: ZodDefault<ZodOptional<ZodString>>; language: ZodDefault<ZodOptional<ZodLiteral<"typescript">>>; outputPath: ZodDefault<ZodString>; parameterGeneratorId: ZodDefault<ZodOptional<ZodString>>; payloadGeneratorId: ZodDefault<ZodOptional<ZodString>>; preset: ZodDefault<ZodLiteral<"channels">>; protocols: ZodDefault<ZodArray<ZodEnum<[..., ..., ..., ...]>, "many">>; }, "strip", ZodTypeAny, { asyncapiGenerateForOperations: boolean; asyncapiReverseOperations: boolean; dependencies: string[]; functionTypeMapping: Record<string, undefined | ChannelFunctionTypes[]>; id: string; kafkaTopicSeparator: string; language: "typescript"; outputPath: string; parameterGeneratorId: string; payloadGeneratorId: string; preset: "channels"; protocols: ("nats" | "kafka" | "mqtt" | "amqp")[]; }, { asyncapiGenerateForOperations: boolean; asyncapiReverseOperations: boolean; dependencies: string[]; functionTypeMapping: Record<string, undefined | ...[]>; id: string; kafkaTopicSeparator: string; language: "typescript"; outputPath: string; parameterGeneratorId: string; payloadGeneratorId: string; preset: "channels"; protocols: ("nats" | "kafka" | "mqtt" | "amqp")[]; }>]>, "many">src/codegen/types.ts:122
inputPathZodStringsrc/codegen/types.ts:115
inputTypeZodLiteral<"asyncapi">src/codegen/types.ts:114
languageZodOptional<ZodEnum<["typescript"]>>src/codegen/types.ts:116

Defined in

src/codegen/types.ts:107