···2233import * as v from 'valibot';
4455+/**
66+ * Testing multiline comments in string: First line
77+ * Second line
88+ *
99+ * Fourth line
1010+ */
511export const vCommentWithBreaks = v.pipe(v.number(), v.integer());
6121313+/**
1414+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
1515+ */
716export const vCommentWithBackticks = v.pipe(v.number(), v.integer());
8171818+/**
1919+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
2020+ */
921export const vCommentWithBackticksAndQuotes = v.pipe(v.number(), v.integer());
10222323+/**
2424+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
2525+ */
1126export const vCommentWithSlashes = v.pipe(v.number(), v.integer());
12272828+/**
2929+ * Testing expression placeholders in string: ${expression} should work
3030+ */
1331export const vCommentWithExpressionPlaceholders = v.pipe(v.number(), v.integer());
14323333+/**
3434+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
3535+ */
1536export const vCommentWithQuotes = v.pipe(v.number(), v.integer());
16373838+/**
3939+ * Testing reserved characters in string: * inline * and ** inline ** should work
4040+ */
1741export const vCommentWithReservedCharacters = v.pipe(v.number(), v.integer());
18424343+/**
4444+ * This is a simple number
4545+ */
1946export const vSimpleInteger = v.pipe(v.number(), v.integer());
20474848+/**
4949+ * This is a simple boolean
5050+ */
2151export const vSimpleBoolean = v.boolean();
22525353+/**
5454+ * This is a simple string
5555+ */
2356export const vSimpleString = v.string();
24575858+/**
5959+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
6060+ */
2561export const vNonAsciiStringæøåÆøÅöôêÊ字符串 = v.string();
26626363+/**
6464+ * This is a simple file
6565+ */
2766export const vSimpleFile = v.string();
28676868+/**
6969+ * This is a model with one string property
7070+ */
2971export const vModelWithString = v.object({
3072 prop: v.optional(v.string())
3173});
32743375export const vSimpleReference = vModelWithString;
34767777+/**
7878+ * This is a simple string
7979+ */
3580export const vSimpleStringWithPattern = v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/));
36818282+/**
8383+ * This is a simple enum with strings
8484+ */
3785export const vEnumWithStrings = v.picklist([
3886 'Success',
3987 'Warning',
···4391 'Non-ascii: øæåôöØÆÅÔÖ字符串'
4492]);
45939494+/**
9595+ * This is a simple enum with numbers
9696+ */
4697export const vEnumWithNumbers = v.unknown();
47989999+/**
100100+ * Success=1,Warning=2,Error=3
101101+ */
48102export const vEnumFromDescription = v.number();
49103104104+/**
105105+ * This is a simple enum with numbers
106106+ */
50107export const vEnumWithExtensions = v.unknown();
51108109109+/**
110110+ * This is a simple array with numbers
111111+ */
52112export const vArrayWithNumbers = v.array(v.pipe(v.number(), v.integer()));
53113114114+/**
115115+ * This is a simple array with booleans
116116+ */
54117export const vArrayWithBooleans = v.array(v.boolean());
55118119119+/**
120120+ * This is a simple array with strings
121121+ */
56122export const vArrayWithStrings = v.array(v.string());
57123124124+/**
125125+ * This is a simple array with references
126126+ */
58127export const vArrayWithReferences = v.array(vModelWithString);
59128129129+/**
130130+ * This is a simple array containing an array
131131+ */
60132export const vArrayWithArray = v.array(v.array(vModelWithString));
61133134134+/**
135135+ * This is a simple array with properties
136136+ */
62137export const vArrayWithProperties = v.array(v.object({
63138 foo: v.optional(v.string()),
64139 bar: v.optional(v.string())
65140}));
66141142142+/**
143143+ * This is a string dictionary
144144+ */
67145export const vDictionaryWithString = v.object({});
68146147147+/**
148148+ * This is a string reference
149149+ */
69150export const vDictionaryWithReference = v.object({});
70151152152+/**
153153+ * This is a complex dictionary
154154+ */
71155export const vDictionaryWithArray = v.object({});
72156157157+/**
158158+ * This is a string dictionary
159159+ */
73160export const vDictionaryWithDictionary = v.object({});
74161162162+/**
163163+ * This is a complex dictionary
164164+ */
75165export const vDictionaryWithProperties = v.object({});
76166167167+/**
168168+ * This is a type-only model that defines Date as a string
169169+ */
77170export const vDate = v.string();
78171172172+/**
173173+ * This is a model with one number property
174174+ */
79175export const vModelWithInteger = v.object({
80176 prop: v.optional(v.pipe(v.number(), v.integer()))
81177});
82178179179+/**
180180+ * This is a model with one boolean property
181181+ */
83182export const vModelWithBoolean = v.object({
84183 prop: v.optional(v.boolean())
85184});
86185186186+/**
187187+ * This is a model with one string property
188188+ */
87189export const vModelWithStringError = v.object({
88190 prop: v.optional(v.string())
89191});
90192193193+/**
194194+ * This is a model with one string property
195195+ */
91196export const vModelWithNullableString = v.object({
92197 nullableProp: v.optional(v.union([
93198 v.string(),
···99204 ])
100205});
101206207207+/**
208208+ * This is a model with one enum
209209+ */
102210export const vModelWithEnum = v.object({
103211 test: v.optional(v.picklist([
104212 'Success',
···117225 bool: v.optional(v.unknown())
118226});
119227228228+/**
229229+ * This is a model with one enum
230230+ */
120231export const vModelWithEnumFromDescription = v.object({
121232 test: v.optional(v.pipe(v.number(), v.integer()))
122233});
123234235235+/**
236236+ * This is a model with nested enums
237237+ */
124238export const vModelWithNestedEnums = v.object({
125239 dictionaryWithEnum: v.optional(v.object({})),
126240 dictionaryWithEnumFromDescription: v.optional(v.object({})),
···132246 arrayWithDescription: v.optional(v.array(v.pipe(v.number(), v.integer())))
133247});
134248249249+/**
250250+ * This is a model with one nested property
251251+ */
135252export const vModelWithProperties = v.object({
136253 required: v.string(),
137254 requiredAndReadOnly: v.pipe(v.string(), v.readonly()),
···146263 '@namespace.integer': v.optional(v.pipe(v.pipe(v.number(), v.integer()), v.readonly()))
147264});
148265266266+/**
267267+ * This is a model with one property containing a reference
268268+ */
149269export const vModelWithReference = v.object({
150270 prop: v.optional(vModelWithProperties)
151271});
152272273273+/**
274274+ * This is a model with one property containing an array
275275+ */
153276export const vModelWithArray = v.object({
154277 prop: v.optional(v.array(vModelWithString)),
155278 propWithFile: v.optional(v.array(v.string())),
156279 propWithNumber: v.optional(v.array(v.number()))
157280});
158281282282+/**
283283+ * This is a model with one property containing a dictionary
284284+ */
159285export const vModelWithDictionary = v.object({
160286 prop: v.optional(v.object({}))
161287});
162288289289+/**
290290+ * This is a model with one property containing a circular reference
291291+ */
163292export const vModelWithCircularReference: v.GenericSchema = v.object({
164293 prop: v.optional(v.lazy(() => {
165294 return vModelWithCircularReference;
166295 }))
167296});
168297298298+/**
299299+ * This is a model with one nested property
300300+ */
169301export const vModelWithNestedProperties = v.object({
170302 first: v.pipe(v.object({
171303 second: v.pipe(v.object({
···174306 }), v.readonly())
175307});
176308309309+/**
310310+ * This is a model with duplicated properties
311311+ */
177312export const vModelWithDuplicateProperties = v.object({
178313 prop: v.optional(vModelWithString)
179314});
180315316316+/**
317317+ * This is a model with ordered properties
318318+ */
181319export const vModelWithOrderedProperties = v.object({
182320 zebra: v.optional(v.string()),
183321 apple: v.optional(v.string()),
184322 hawaii: v.optional(v.string())
185323});
186324325325+/**
326326+ * This is a model with duplicated imports
327327+ */
187328export const vModelWithDuplicateImports = v.object({
188329 propA: v.optional(vModelWithString),
189330 propB: v.optional(vModelWithString),
190331 propC: v.optional(vModelWithString)
191332});
192333334334+/**
335335+ * This is a model that extends another model
336336+ */
193337export const vModelThatExtends = v.intersect([
194338 vModelWithString,
195339 v.object({
···198342 })
199343]);
200344345345+/**
346346+ * This is a model that extends another model
347347+ */
201348export const vModelThatExtendsExtends = v.intersect([
202349 vModelWithString,
203350 vModelThatExtends,
···211358 name: v.optional(v.string())
212359});
213360361361+/**
362362+ * This is a model that contains a some patterns
363363+ */
214364export const vModelWithPattern = v.object({
215365 key: v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/)),
216366 name: v.pipe(v.string(), v.maxLength(255)),
···250400 v.unknown()
251401]);
252402403403+/**
404404+ * Message for default response
405405+ */
253406export const vCallWithResponseResponse = vModelWithString;
254407408408+/**
409409+ * Message for 201 response
410410+ */
255411export const vCallWithDuplicateResponsesResponse = vModelWithString;
256412257413export const vCallWithResponsesResponse = v.union([
···271427 v.object({})
272428]);
273429430430+/**
431431+ * Successful response
432432+ */
274433export const vComplexTypesResponse = v.array(vModelWithString);
275434435435+/**
436436+ * Successful response
437437+ */
276438export const vNonAsciiæøåÆøÅöôêÊ字符串Response = vNonAsciiStringæøåÆøÅöôêÊ字符串;
277439440440+/**
441441+ * OK
442442+ */
278443export const vPostApiVbyApiVersionBodyResponse = vResponsePostActivityResponse;
···2233import { z } from 'zod';
4455+/**
66+ * Testing multiline comments in string: First line
77+ * Second line
88+ *
99+ * Fourth line
1010+ */
511export const zCommentWithBreaks = z.number().int();
6121313+/**
1414+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
1515+ */
716export const zCommentWithBackticks = z.number().int();
8171818+/**
1919+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
2020+ */
921export const zCommentWithBackticksAndQuotes = z.number().int();
10222323+/**
2424+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
2525+ */
1126export const zCommentWithSlashes = z.number().int();
12272828+/**
2929+ * Testing expression placeholders in string: ${expression} should work
3030+ */
1331export const zCommentWithExpressionPlaceholders = z.number().int();
14323333+/**
3434+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
3535+ */
1536export const zCommentWithQuotes = z.number().int();
16373838+/**
3939+ * Testing reserved characters in string: * inline * and ** inline ** should work
4040+ */
1741export const zCommentWithReservedCharacters = z.number().int();
18424343+/**
4444+ * This is a simple number
4545+ */
1946export const zSimpleInteger = z.number().int();
20474848+/**
4949+ * This is a simple boolean
5050+ */
2151export const zSimpleBoolean = z.boolean();
22525353+/**
5454+ * This is a simple string
5555+ */
2356export const zSimpleString = z.string();
24575858+/**
5959+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
6060+ */
2561export const zNonAsciiStringæøåÆøÅöôêÊ字符串 = z.string();
26626363+/**
6464+ * This is a simple file
6565+ */
2766export const zSimpleFile = z.string();
28676868+/**
6969+ * This is a model with one string property
7070+ */
2971export const zModelWithString = z.object({
3072 prop: z.string().optional()
3173});
32743375export const zSimpleReference = zModelWithString;
34767777+/**
7878+ * This is a simple string
7979+ */
3580export const zSimpleStringWithPattern = z.string().max(64).regex(/^[a-zA-Z0-9_]*$/);
36818282+/**
8383+ * This is a simple enum with strings
8484+ */
3785export const zEnumWithStrings = z.enum([
3886 'Success',
3987 'Warning',
···4391 'Non-ascii: øæåôöØÆÅÔÖ字符串'
4492]);
45939494+/**
9595+ * This is a simple enum with numbers
9696+ */
4697export const zEnumWithNumbers = z.unknown();
47989999+/**
100100+ * Success=1,Warning=2,Error=3
101101+ */
48102export const zEnumFromDescription = z.number();
49103104104+/**
105105+ * This is a simple enum with numbers
106106+ */
50107export const zEnumWithExtensions = z.unknown();
51108109109+/**
110110+ * This is a simple array with numbers
111111+ */
52112export const zArrayWithNumbers = z.array(z.number().int());
53113114114+/**
115115+ * This is a simple array with booleans
116116+ */
54117export const zArrayWithBooleans = z.array(z.boolean());
55118119119+/**
120120+ * This is a simple array with strings
121121+ */
56122export const zArrayWithStrings = z.array(z.string());
57123124124+/**
125125+ * This is a simple array with references
126126+ */
58127export const zArrayWithReferences = z.array(zModelWithString);
59128129129+/**
130130+ * This is a simple array containing an array
131131+ */
60132export const zArrayWithArray = z.array(z.array(zModelWithString));
61133134134+/**
135135+ * This is a simple array with properties
136136+ */
62137export const zArrayWithProperties = z.array(z.object({
63138 foo: z.string().optional(),
64139 bar: z.string().optional()
65140}));
66141142142+/**
143143+ * This is a string dictionary
144144+ */
67145export const zDictionaryWithString = z.object({});
68146147147+/**
148148+ * This is a string reference
149149+ */
69150export const zDictionaryWithReference = z.object({});
70151152152+/**
153153+ * This is a complex dictionary
154154+ */
71155export const zDictionaryWithArray = z.object({});
72156157157+/**
158158+ * This is a string dictionary
159159+ */
73160export const zDictionaryWithDictionary = z.object({});
74161162162+/**
163163+ * This is a complex dictionary
164164+ */
75165export const zDictionaryWithProperties = z.object({});
76166167167+/**
168168+ * This is a type-only model that defines Date as a string
169169+ */
77170export const zDate = z.string();
78171172172+/**
173173+ * This is a model with one number property
174174+ */
79175export const zModelWithInteger = z.object({
80176 prop: z.number().int().optional()
81177});
82178179179+/**
180180+ * This is a model with one boolean property
181181+ */
83182export const zModelWithBoolean = z.object({
84183 prop: z.boolean().optional()
85184});
86185186186+/**
187187+ * This is a model with one string property
188188+ */
87189export const zModelWithStringError = z.object({
88190 prop: z.string().optional()
89191});
90192193193+/**
194194+ * This is a model with one string property
195195+ */
91196export const zModelWithNullableString = z.object({
92197 nullableProp: z.union([
93198 z.string(),
···99204 ])
100205});
101206207207+/**
208208+ * This is a model with one enum
209209+ */
102210export const zModelWithEnum = z.object({
103211 test: z.enum([
104212 'Success',
···117225 bool: z.unknown().optional()
118226});
119227228228+/**
229229+ * This is a model with one enum
230230+ */
120231export const zModelWithEnumFromDescription = z.object({
121232 test: z.number().int().optional()
122233});
123234235235+/**
236236+ * This is a model with nested enums
237237+ */
124238export const zModelWithNestedEnums = z.object({
125239 dictionaryWithEnum: z.object({}).optional(),
126240 dictionaryWithEnumFromDescription: z.object({}).optional(),
···132246 arrayWithDescription: z.array(z.number().int()).optional()
133247});
134248249249+/**
250250+ * This is a model with one nested property
251251+ */
135252export const zModelWithProperties = z.object({
136253 required: z.string(),
137254 requiredAndReadOnly: z.string().readonly(),
···146263 '@namespace.integer': z.number().int().readonly().optional()
147264});
148265266266+/**
267267+ * This is a model with one property containing a reference
268268+ */
149269export const zModelWithReference = z.object({
150270 prop: zModelWithProperties.optional()
151271});
152272273273+/**
274274+ * This is a model with one property containing an array
275275+ */
153276export const zModelWithArray = z.object({
154277 prop: z.array(zModelWithString).optional(),
155278 propWithFile: z.array(z.string()).optional(),
156279 propWithNumber: z.array(z.number()).optional()
157280});
158281282282+/**
283283+ * This is a model with one property containing a dictionary
284284+ */
159285export const zModelWithDictionary = z.object({
160286 prop: z.object({}).optional()
161287});
162288289289+/**
290290+ * This is a model with one property containing a circular reference
291291+ */
163292export const zModelWithCircularReference: z.AnyZodObject = z.object({
164293 prop: z.lazy(() => {
165294 return zModelWithCircularReference;
166295 }).optional()
167296});
168297298298+/**
299299+ * This is a model with one nested property
300300+ */
169301export const zModelWithNestedProperties = z.object({
170302 first: z.object({
171303 second: z.object({
···174306 }).readonly()
175307});
176308309309+/**
310310+ * This is a model with duplicated properties
311311+ */
177312export const zModelWithDuplicateProperties = z.object({
178313 prop: zModelWithString.optional()
179314});
180315316316+/**
317317+ * This is a model with ordered properties
318318+ */
181319export const zModelWithOrderedProperties = z.object({
182320 zebra: z.string().optional(),
183321 apple: z.string().optional(),
184322 hawaii: z.string().optional()
185323});
186324325325+/**
326326+ * This is a model with duplicated imports
327327+ */
187328export const zModelWithDuplicateImports = z.object({
188329 propA: zModelWithString.optional(),
189330 propB: zModelWithString.optional(),
190331 propC: zModelWithString.optional()
191332});
192333334334+/**
335335+ * This is a model that extends another model
336336+ */
193337export const zModelThatExtends = zModelWithString.and(z.object({
194338 propExtendsA: z.string().optional(),
195339 propExtendsB: zModelWithString.optional()
196340}));
197341342342+/**
343343+ * This is a model that extends another model
344344+ */
198345export const zModelThatExtendsExtends = zModelWithString.and(zModelThatExtends).and(z.object({
199346 propExtendsC: z.string().optional(),
200347 propExtendsD: zModelWithString.optional()
···204351 name: z.string().optional()
205352});
206353354354+/**
355355+ * This is a model that contains a some patterns
356356+ */
207357export const zModelWithPattern = z.object({
208358 key: z.string().max(64).regex(/^[a-zA-Z0-9_]*$/),
209359 name: z.string().max(255),
···243393 z.unknown()
244394]);
245395396396+/**
397397+ * Message for default response
398398+ */
246399export const zCallWithResponseResponse = zModelWithString;
247400401401+/**
402402+ * Message for 201 response
403403+ */
248404export const zCallWithDuplicateResponsesResponse = zModelWithString;
249405250406export const zCallWithResponsesResponse = z.union([
···264420 z.object({})
265421]);
266422423423+/**
424424+ * Successful response
425425+ */
267426export const zComplexTypesResponse = z.array(zModelWithString);
268427428428+/**
429429+ * Successful response
430430+ */
269431export const zNonAsciiæøåÆøÅöôêÊ字符串Response = zNonAsciiStringæøåÆøÅöôêÊ字符串;
270432433433+/**
434434+ * OK
435435+ */
271436export const zPostApiVbyApiVersionBodyResponse = zResponsePostActivityResponse;
···2233import * as v from 'valibot';
4455+/**
66+ * Model with number-only name
77+ */
58export const v400 = v.string();
691010+/**
1111+ * Testing multiline comments in string: First line
1212+ * Second line
1313+ *
1414+ * Fourth line
1515+ */
716export const vCamelCaseCommentWithBreaks = v.pipe(v.number(), v.integer());
8171818+/**
1919+ * Testing multiline comments in string: First line
2020+ * Second line
2121+ *
2222+ * Fourth line
2323+ */
924export const vCommentWithBreaks = v.pipe(v.number(), v.integer());
10252626+/**
2727+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
2828+ */
1129export const vCommentWithBackticks = v.pipe(v.number(), v.integer());
12303131+/**
3232+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
3333+ */
1334export const vCommentWithBackticksAndQuotes = v.pipe(v.number(), v.integer());
14353636+/**
3737+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
3838+ */
1539export const vCommentWithSlashes = v.pipe(v.number(), v.integer());
16404141+/**
4242+ * Testing expression placeholders in string: ${expression} should work
4343+ */
1744export const vCommentWithExpressionPlaceholders = v.pipe(v.number(), v.integer());
18454646+/**
4747+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
4848+ */
1949export const vCommentWithQuotes = v.pipe(v.number(), v.integer());
20505151+/**
5252+ * Testing reserved characters in string: * inline * and ** inline ** should work
5353+ */
2154export const vCommentWithReservedCharacters = v.pipe(v.number(), v.integer());
22555656+/**
5757+ * This is a simple number
5858+ */
2359export const vSimpleInteger = v.pipe(v.number(), v.integer());
24606161+/**
6262+ * This is a simple boolean
6363+ */
2564export const vSimpleBoolean = v.boolean();
26656666+/**
6767+ * This is a simple string
6868+ */
2769export const vSimpleString = v.string();
28707171+/**
7272+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
7373+ */
2974export const vNonAsciiStringæøåÆøÅöôêÊ字符串 = v.string();
30757676+/**
7777+ * This is a simple file
7878+ */
3179export const vSimpleFile = v.string();
32808181+/**
8282+ * This is a model with one string property
8383+ */
3384export const vModelWithString = v.object({
3485 prop: v.optional(v.string())
3586});
36878888+/**
8989+ * This is a simple reference
9090+ */
3791export const vSimpleReference = vModelWithString;
38929393+/**
9494+ * This is a simple string
9595+ */
3996export const vSimpleStringWithPattern = v.union([
4097 v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/)),
4198 v.null()
4299]);
43100101101+/**
102102+ * This is a simple enum with strings
103103+ */
44104export const vEnumWithStrings = v.picklist([
45105 'Success',
46106 'Warning',
···57117 ''
58118]);
59119120120+/**
121121+ * This is a simple enum with numbers
122122+ */
60123export const vEnumWithNumbers = v.unknown();
61124125125+/**
126126+ * Success=1,Warning=2,Error=3
127127+ */
62128export const vEnumFromDescription = v.number();
63129130130+/**
131131+ * This is a simple enum with numbers
132132+ */
64133export const vEnumWithExtensions = v.unknown();
6513466135export const vEnumWithXEnumNames = v.unknown();
67136137137+/**
138138+ * This is a simple array with numbers
139139+ */
68140export const vArrayWithNumbers = v.array(v.pipe(v.number(), v.integer()));
69141142142+/**
143143+ * This is a simple array with booleans
144144+ */
70145export const vArrayWithBooleans = v.array(v.boolean());
71146147147+/**
148148+ * This is a simple array with strings
149149+ */
72150export const vArrayWithStrings = v.optional(v.array(v.string()), ['test']);
73151152152+/**
153153+ * This is a simple array with references
154154+ */
74155export const vArrayWithReferences = v.array(vModelWithString);
75156157157+/**
158158+ * This is a simple array containing an array
159159+ */
76160export const vArrayWithArray = v.array(v.array(vModelWithString));
77161162162+/**
163163+ * This is a simple array with properties
164164+ */
78165export const vArrayWithProperties = v.array(v.object({
79166 '16x16': v.optional(vCamelCaseCommentWithBreaks),
80167 bar: v.optional(v.string())
81168}));
82169170170+/**
171171+ * This is a simple array with any of properties
172172+ */
83173export const vArrayWithAnyOfProperties = v.array(v.unknown());
8417485175export const vAnyOfAnyAndNull = v.object({
86176 data: v.optional(v.unknown())
87177});
88178179179+/**
180180+ * This is a simple array with any of properties
181181+ */
89182export const vAnyOfArrays = v.object({
90183 results: v.optional(v.array(v.unknown()))
91184});
92185186186+/**
187187+ * This is a string dictionary
188188+ */
93189export const vDictionaryWithString = v.object({});
9419095191export const vDictionaryWithPropertiesAndAdditionalProperties = v.object({
···97193 bar: v.optional(v.boolean())
98194});
99195196196+/**
197197+ * This is a string reference
198198+ */
100199export const vDictionaryWithReference = v.object({});
101200201201+/**
202202+ * This is a complex dictionary
203203+ */
102204export const vDictionaryWithArray = v.object({});
103205206206+/**
207207+ * This is a string dictionary
208208+ */
104209export const vDictionaryWithDictionary = v.object({});
105210211211+/**
212212+ * This is a complex dictionary
213213+ */
106214export const vDictionaryWithProperties = v.object({});
107215216216+/**
217217+ * This is a model with one number property
218218+ */
108219export const vModelWithInteger = v.object({
109220 prop: v.optional(v.pipe(v.number(), v.integer()))
110221});
111222223223+/**
224224+ * This is a model with one boolean property
225225+ */
112226export const vModelWithBoolean = v.object({
113227 prop: v.optional(v.boolean())
114228});
115229230230+/**
231231+ * This is a model with one string property
232232+ */
116233export const vModelWithStringError = v.object({
117234 prop: v.optional(v.string())
118235});
119236237237+/**
238238+ * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets)
239239+ */
120240export const vModelFromZendesk = v.string();
121241242242+/**
243243+ * This is a model with one string property
244244+ */
122245export const vModelWithNullableString = v.object({
123246 nullableProp1: v.optional(v.union([
124247 v.string(),
···144267 ]))
145268});
146269270270+/**
271271+ * This is a model with one enum
272272+ */
147273export const vModelWithEnum = v.object({
148274 'foo_bar-enum': v.optional(v.picklist([
149275 'Success',
···162288 bool: v.optional(v.unknown())
163289});
164290291291+/**
292292+ * This is a model with one enum with escaped name
293293+ */
165294export const vModelWithEnumWithHyphen = v.object({
166295 'foo-bar-baz-qux': v.optional(v.picklist([
167296 '3.0'
168297 ]))
169298});
170299300300+/**
301301+ * This is a model with one enum
302302+ */
171303export const vModelWithEnumFromDescription = v.object({
172304 test: v.optional(v.pipe(v.number(), v.integer()))
173305});
174306307307+/**
308308+ * This is a model with nested enums
309309+ */
175310export const vModelWithNestedEnums = v.object({
176311 dictionaryWithEnum: v.optional(v.object({})),
177312 dictionaryWithEnumFromDescription: v.optional(v.object({})),
···189324 ]))
190325});
191326327327+/**
328328+ * This is a model with one nested property
329329+ */
192330export const vModelWithProperties = v.object({
193331 required: v.string(),
194332 requiredAndReadOnly: v.pipe(v.string(), v.readonly()),
···207345 '@namespace.integer': v.optional(v.pipe(v.pipe(v.number(), v.integer()), v.readonly()))
208346});
209347348348+/**
349349+ * This is a model with one property containing a reference
350350+ */
210351export const vModelWithReference = v.object({
211352 prop: v.optional(vModelWithProperties)
212353});
···217358 baz: v.string()
218359});
219360361361+/**
362362+ * This is a model with one property containing an array
363363+ */
220364export const vModelWithArrayReadOnlyAndWriteOnly = v.object({
221365 prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnly)),
222366 propWithFile: v.optional(v.array(v.string())),
223367 propWithNumber: v.optional(v.array(v.number()))
224368});
225369370370+/**
371371+ * This is a model with one property containing an array
372372+ */
226373export const vModelWithArray = v.object({
227374 prop: v.optional(v.array(vModelWithString)),
228375 propWithFile: v.optional(v.array(v.string())),
229376 propWithNumber: v.optional(v.array(v.number()))
230377});
231378379379+/**
380380+ * This is a model with one property containing a dictionary
381381+ */
232382export const vModelWithDictionary = v.object({
233383 prop: v.optional(v.object({}))
234384});
235385386386+/**
387387+ * This is a deprecated model with a deprecated property
388388+ * @deprecated
389389+ */
236390export const vDeprecatedModel = v.object({
237391 prop: v.optional(v.string())
238392});
239393394394+/**
395395+ * This is a model with one property containing a circular reference
396396+ */
240397export const vModelWithCircularReference: v.GenericSchema = v.object({
241398 prop: v.optional(v.lazy(() => {
242399 return vModelWithCircularReference;
243400 }))
244401});
245402403403+/**
404404+ * This is a model with one property with a 'one of' relationship
405405+ */
246406export const vCompositionWithOneOf = v.object({
247407 propA: v.optional(v.union([
248408 vModelWithString,
···252412 ]))
253413});
254414415415+/**
416416+ * This is a model with one property with a 'one of' relationship where the options are not $ref
417417+ */
255418export const vCompositionWithOneOfAnonymous = v.object({
256419 propA: v.optional(v.union([
257420 v.object({
···262425 ]))
263426});
264427428428+/**
429429+ * Circle
430430+ */
265431export const vModelCircle = v.object({
266432 kind: v.string(),
267433 radius: v.optional(v.number())
268434});
269435436436+/**
437437+ * Square
438438+ */
270439export const vModelSquare = v.object({
271440 kind: v.string(),
272441 sideLength: v.optional(v.number())
273442});
274443444444+/**
445445+ * This is a model with one property with a 'one of' relationship where the options are not $ref
446446+ */
275447export const vCompositionWithOneOfDiscriminator = v.union([
276448 v.intersect([
277449 v.object({
···287459 ])
288460]);
289461462462+/**
463463+ * This is a model with one property with a 'any of' relationship
464464+ */
290465export const vCompositionWithAnyOf = v.object({
291466 propA: v.optional(v.union([
292467 vModelWithString,
···296471 ]))
297472});
298473474474+/**
475475+ * This is a model with one property with a 'any of' relationship where the options are not $ref
476476+ */
299477export const vCompositionWithAnyOfAnonymous = v.object({
300478 propA: v.optional(v.union([
301479 v.object({
···306484 ]))
307485});
308486487487+/**
488488+ * This is a model with nested 'any of' property with a type null
489489+ */
309490export const vCompositionWithNestedAnyAndTypeNull = v.object({
310491 propA: v.optional(v.union([
311492 v.array(v.union([
···328509 'ConstValue'
329510]);
330511512512+/**
513513+ * This is a model with one property with a 'any of' relationship where the options are not $ref
514514+ */
331515export const vCompositionWithNestedAnyOfAndNull = v.object({
332516 propA: v.optional(v.union([
333517 v.array(v.unknown()),
···335519 ]))
336520});
337521522522+/**
523523+ * This is a model with one property with a 'one of' relationship
524524+ */
338525export const vCompositionWithOneOfAndNullable = v.object({
339526 propA: v.optional(v.union([
340527 v.object({
···347534 ]))
348535});
349536537537+/**
538538+ * This is a model that contains a simple dictionary within composition
539539+ */
350540export const vCompositionWithOneOfAndSimpleDictionary = v.object({
351541 propA: v.optional(v.union([
352542 v.boolean(),
···354544 ]))
355545});
356546547547+/**
548548+ * This is a model that contains a dictionary of simple arrays within composition
549549+ */
357550export const vCompositionWithOneOfAndSimpleArrayDictionary = v.object({
358551 propA: v.optional(v.union([
359552 v.boolean(),
···361554 ]))
362555});
363556557557+/**
558558+ * This is a model that contains a dictionary of complex arrays (composited) within composition
559559+ */
364560export const vCompositionWithOneOfAndComplexArrayDictionary = v.object({
365561 propA: v.optional(v.union([
366562 v.boolean(),
···368564 ]))
369565});
370566567567+/**
568568+ * This is a model with one property with a 'all of' relationship
569569+ */
371570export const vCompositionWithAllOfAndNullable = v.object({
372571 propA: v.optional(v.union([
373572 v.intersect([
···382581 ]))
383582});
384583584584+/**
585585+ * This is a model with one property with a 'any of' relationship
586586+ */
385587export const vCompositionWithAnyOfAndNullable = v.object({
386588 propA: v.optional(v.union([
387589 v.object({
···394596 ]))
395597});
396598599599+/**
600600+ * This is a base model with two simple optional properties
601601+ */
397602export const vCompositionBaseModel = v.object({
398603 firstName: v.optional(v.string()),
399604 lastname: v.optional(v.string())
400605});
401606607607+/**
608608+ * This is a model that extends the base model
609609+ */
402610export const vCompositionExtendedModel = v.intersect([
403611 vCompositionBaseModel,
404612 v.object({
···408616 })
409617]);
410618619619+/**
620620+ * This is a model with one nested property
621621+ */
411622export const vModelWithNestedProperties = v.object({
412623 first: v.pipe(v.union([
413624 v.pipe(v.object({
···425636 ]), v.readonly())
426637});
427638639639+/**
640640+ * This is a model with duplicated properties
641641+ */
428642export const vModelWithDuplicateProperties = v.object({
429643 prop: v.optional(vModelWithString)
430644});
431645646646+/**
647647+ * This is a model with ordered properties
648648+ */
432649export const vModelWithOrderedProperties = v.object({
433650 zebra: v.optional(v.string()),
434651 apple: v.optional(v.string()),
435652 hawaii: v.optional(v.string())
436653});
437654655655+/**
656656+ * This is a model with duplicated imports
657657+ */
438658export const vModelWithDuplicateImports = v.object({
439659 propA: v.optional(vModelWithString),
440660 propB: v.optional(vModelWithString),
441661 propC: v.optional(vModelWithString)
442662});
443663664664+/**
665665+ * This is a model that extends another model
666666+ */
444667export const vModelThatExtends = v.intersect([
445668 vModelWithString,
446669 v.object({
···449672 })
450673]);
451674675675+/**
676676+ * This is a model that extends another model
677677+ */
452678export const vModelThatExtendsExtends = v.intersect([
453679 vModelWithString,
454680 vModelThatExtends,
···458684 })
459685]);
460686687687+/**
688688+ * This is a model that contains a some patterns
689689+ */
461690export const vModelWithPattern = v.object({
462691 key: v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/)),
463692 name: v.pipe(v.string(), v.maxLength(255)),
···488717 sort: v.optional(v.array(v.string()))
489718});
490719720720+/**
721721+ * This is a free-form object without additionalProperties.
722722+ */
491723export const vFreeFormObjectWithoutAdditionalProperties = v.object({});
492724725725+/**
726726+ * This is a free-form object with additionalProperties: true.
727727+ */
493728export const vFreeFormObjectWithAdditionalPropertiesEqTrue = v.object({});
494729730730+/**
731731+ * This is a free-form object with additionalProperties: {}.
732732+ */
495733export const vFreeFormObjectWithAdditionalPropertiesEqEmptyObject = v.object({});
496734497735export const vModelWithConst = v.object({
···505743 ]))
506744});
507745746746+/**
747747+ * This is a model with one property and additionalProperties: true
748748+ */
508749export const vModelWithAdditionalPropertiesEqTrue = v.object({
509750 prop: v.optional(v.string())
510751});
···516757 ]))
517758});
518759760760+/**
761761+ * This is a reusable parameter
762762+ */
519763export const vSimpleParameter = v.unknown();
520764521765export const vCompositionWithOneOfAndProperties = v.intersect([
···536780 })
537781]);
538782783783+/**
784784+ * An object that can be null
785785+ */
539786export const vNullableObject = v.optional(v.union([
540787 v.object({
541788 foo: v.optional(v.string())
···543790 v.null()
544791]), null);
545792793793+/**
794794+ * Some % character
795795+ */
546796export const vCharactersInDescription = v.string();
547797548798export const vModelWithNullableObject = v.object({
···646896 ])
647897]);
648898899899+/**
900900+ * Model with restricted keyword name
901901+ */
649902export const vImport = v.string();
650903651904export const vModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = v.tuple([
···674927 value: v.optional(v.unknown())
675928});
676929930930+/**
931931+ * Some description with `back ticks`
932932+ */
677933export const vModelWithBackticksInDescription = v.object({
678934 template: v.optional(v.string())
679935});
···692948 })
693949]);
694950951951+/**
952952+ * Model used to test deduplication strategy (unused)
953953+ */
695954export const vParameterSimpleParameterUnused = v.string();
696955956956+/**
957957+ * Model used to test deduplication strategy
958958+ */
697959export const vPostServiceWithEmptyTagResponse = v.string();
698960961961+/**
962962+ * Model used to test deduplication strategy
963963+ */
699964export const vPostServiceWithEmptyTagResponse2 = v.string();
700965966966+/**
967967+ * Model used to test deduplication strategy
968968+ */
701969export const vDeleteFooData = v.string();
702970971971+/**
972972+ * Model used to test deduplication strategy
973973+ */
703974export const vDeleteFooData2 = v.string();
704975705976export const vSchemaWithFormRestrictedKeys = v.object({
···724995 })))
725996});
726997998998+/**
999999+ * This schema was giving PascalCase transformations a hard time
10001000+ */
7271001export const vIoK8sApimachineryPkgApisMetaV1Preconditions = v.object({
7281002 resourceVersion: v.optional(v.string()),
7291003 uid: v.optional(v.string())
7301004});
731100510061006+/**
10071007+ * This schema was giving PascalCase transformations a hard time
10081008+ */
7321009export const vIoK8sApimachineryPkgApisMetaV1DeleteOptions = v.object({
7331010 preconditions: v.optional(vIoK8sApimachineryPkgApisMetaV1Preconditions)
7341011});
···7861063 vModelWithReadOnlyAndWriteOnly
7871064]);
788106510661066+/**
10671067+ * Success
10681068+ */
7891069export const vApiVVersionODataControllerCountResponse = vModelFromZendesk;
790107010711071+/**
10721072+ * Response is a simple number
10731073+ */
7911074export const vGetApiVbyApiVersionSimpleOperationResponse = v.number();
79210757931076export const vPostCallWithOptionalParamResponse = v.union([
···7951078 v.void()
7961079]);
797108010811081+/**
10821082+ * Success
10831083+ */
7981084export const vCallWithNoContentResponseResponse = v.void();
79910858001086export const vCallWithResponseAndNoContentResponseResponse = v.union([
···80410908051091export const vDummyAResponse = v400;
806109210931093+/**
10941094+ * Success
10951095+ */
8071096export const vDummyBResponse = v.void();
80810978091098export const vCallWithResponseResponse = vImport;
···83511248361125export const vUploadFileResponse = v.boolean();
837112611271127+/**
11281128+ * Success
11291129+ */
8381130export const vFileResponseResponse = v.string();
839113111321132+/**
11331133+ * Successful response
11341134+ */
8401135export const vComplexTypesResponse = v.array(vModelWithString);
841113611371137+/**
11381138+ * OK
11391139+ */
8421140export const vMultipartResponseResponse = v.object({
8431141 file: v.optional(v.string()),
8441142 metadata: v.optional(v.object({
···8471145 }))
8481146});
849114711481148+/**
11491149+ * Success
11501150+ */
8501151export const vComplexParamsResponse = vModelWithString;
851115211531153+/**
11541154+ * Successful response
11551155+ */
8521156export const vNonAsciiæøåÆøÅöôêÊ字符串Response = v.array(vNonAsciiStringæøåÆøÅöôêÊ字符串);
···2233import { z } from 'zod';
4455+/**
66+ * Model with number-only name
77+ */
58export const z400 = z.string();
691010+/**
1111+ * Testing multiline comments in string: First line
1212+ * Second line
1313+ *
1414+ * Fourth line
1515+ */
716export const zCamelCaseCommentWithBreaks = z.number().int();
8171818+/**
1919+ * Testing multiline comments in string: First line
2020+ * Second line
2121+ *
2222+ * Fourth line
2323+ */
924export const zCommentWithBreaks = z.number().int();
10252626+/**
2727+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
2828+ */
1129export const zCommentWithBackticks = z.number().int();
12303131+/**
3232+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
3333+ */
1334export const zCommentWithBackticksAndQuotes = z.number().int();
14353636+/**
3737+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
3838+ */
1539export const zCommentWithSlashes = z.number().int();
16404141+/**
4242+ * Testing expression placeholders in string: ${expression} should work
4343+ */
1744export const zCommentWithExpressionPlaceholders = z.number().int();
18454646+/**
4747+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
4848+ */
1949export const zCommentWithQuotes = z.number().int();
20505151+/**
5252+ * Testing reserved characters in string: * inline * and ** inline ** should work
5353+ */
2154export const zCommentWithReservedCharacters = z.number().int();
22555656+/**
5757+ * This is a simple number
5858+ */
2359export const zSimpleInteger = z.number().int();
24606161+/**
6262+ * This is a simple boolean
6363+ */
2564export const zSimpleBoolean = z.boolean();
26656666+/**
6767+ * This is a simple string
6868+ */
2769export const zSimpleString = z.string();
28707171+/**
7272+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
7373+ */
2974export const zNonAsciiStringæøåÆøÅöôêÊ字符串 = z.string();
30757676+/**
7777+ * This is a simple file
7878+ */
3179export const zSimpleFile = z.string();
32808181+/**
8282+ * This is a model with one string property
8383+ */
3384export const zModelWithString = z.object({
3485 prop: z.string().optional()
3586});
36878888+/**
8989+ * This is a simple reference
9090+ */
3791export const zSimpleReference = zModelWithString;
38929393+/**
9494+ * This is a simple string
9595+ */
3996export const zSimpleStringWithPattern = z.union([
4097 z.string().max(64).regex(/^[a-zA-Z0-9_]*$/),
4198 z.null()
4299]);
43100101101+/**
102102+ * This is a simple enum with strings
103103+ */
44104export const zEnumWithStrings = z.enum([
45105 'Success',
46106 'Warning',
···57117 ''
58118]);
59119120120+/**
121121+ * This is a simple enum with numbers
122122+ */
60123export const zEnumWithNumbers = z.unknown();
61124125125+/**
126126+ * Success=1,Warning=2,Error=3
127127+ */
62128export const zEnumFromDescription = z.number();
63129130130+/**
131131+ * This is a simple enum with numbers
132132+ */
64133export const zEnumWithExtensions = z.unknown();
6513466135export const zEnumWithXEnumNames = z.unknown();
67136137137+/**
138138+ * This is a simple array with numbers
139139+ */
68140export const zArrayWithNumbers = z.array(z.number().int());
69141142142+/**
143143+ * This is a simple array with booleans
144144+ */
70145export const zArrayWithBooleans = z.array(z.boolean());
71146147147+/**
148148+ * This is a simple array with strings
149149+ */
72150export const zArrayWithStrings = z.array(z.string()).default(['test']);
73151152152+/**
153153+ * This is a simple array with references
154154+ */
74155export const zArrayWithReferences = z.array(zModelWithString);
75156157157+/**
158158+ * This is a simple array containing an array
159159+ */
76160export const zArrayWithArray = z.array(z.array(zModelWithString));
77161162162+/**
163163+ * This is a simple array with properties
164164+ */
78165export const zArrayWithProperties = z.array(z.object({
79166 '16x16': zCamelCaseCommentWithBreaks.optional(),
80167 bar: z.string().optional()
81168}));
82169170170+/**
171171+ * This is a simple array with any of properties
172172+ */
83173export const zArrayWithAnyOfProperties = z.array(z.unknown());
8417485175export const zAnyOfAnyAndNull = z.object({
86176 data: z.unknown().optional()
87177});
88178179179+/**
180180+ * This is a simple array with any of properties
181181+ */
89182export const zAnyOfArrays = z.object({
90183 results: z.array(z.unknown()).optional()
91184});
92185186186+/**
187187+ * This is a string dictionary
188188+ */
93189export const zDictionaryWithString = z.object({});
9419095191export const zDictionaryWithPropertiesAndAdditionalProperties = z.object({
···97193 bar: z.boolean().optional()
98194});
99195196196+/**
197197+ * This is a string reference
198198+ */
100199export const zDictionaryWithReference = z.object({});
101200201201+/**
202202+ * This is a complex dictionary
203203+ */
102204export const zDictionaryWithArray = z.object({});
103205206206+/**
207207+ * This is a string dictionary
208208+ */
104209export const zDictionaryWithDictionary = z.object({});
105210211211+/**
212212+ * This is a complex dictionary
213213+ */
106214export const zDictionaryWithProperties = z.object({});
107215216216+/**
217217+ * This is a model with one number property
218218+ */
108219export const zModelWithInteger = z.object({
109220 prop: z.number().int().optional()
110221});
111222223223+/**
224224+ * This is a model with one boolean property
225225+ */
112226export const zModelWithBoolean = z.object({
113227 prop: z.boolean().optional()
114228});
115229230230+/**
231231+ * This is a model with one string property
232232+ */
116233export const zModelWithStringError = z.object({
117234 prop: z.string().optional()
118235});
119236237237+/**
238238+ * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets)
239239+ */
120240export const zModelFromZendesk = z.string();
121241242242+/**
243243+ * This is a model with one string property
244244+ */
122245export const zModelWithNullableString = z.object({
123246 nullableProp1: z.union([
124247 z.string(),
···144267 ]).optional()
145268});
146269270270+/**
271271+ * This is a model with one enum
272272+ */
147273export const zModelWithEnum = z.object({
148274 'foo_bar-enum': z.enum([
149275 'Success',
···162288 bool: z.unknown().optional()
163289});
164290291291+/**
292292+ * This is a model with one enum with escaped name
293293+ */
165294export const zModelWithEnumWithHyphen = z.object({
166295 'foo-bar-baz-qux': z.enum([
167296 '3.0'
168297 ]).optional()
169298});
170299300300+/**
301301+ * This is a model with one enum
302302+ */
171303export const zModelWithEnumFromDescription = z.object({
172304 test: z.number().int().optional()
173305});
174306307307+/**
308308+ * This is a model with nested enums
309309+ */
175310export const zModelWithNestedEnums = z.object({
176311 dictionaryWithEnum: z.object({}).optional(),
177312 dictionaryWithEnumFromDescription: z.object({}).optional(),
···189324 ]).optional()
190325});
191326327327+/**
328328+ * This is a model with one nested property
329329+ */
192330export const zModelWithProperties = z.object({
193331 required: z.string(),
194332 requiredAndReadOnly: z.string().readonly(),
···207345 '@namespace.integer': z.number().int().readonly().optional()
208346});
209347348348+/**
349349+ * This is a model with one property containing a reference
350350+ */
210351export const zModelWithReference = z.object({
211352 prop: zModelWithProperties.optional()
212353});
···217358 baz: z.string()
218359});
219360361361+/**
362362+ * This is a model with one property containing an array
363363+ */
220364export const zModelWithArrayReadOnlyAndWriteOnly = z.object({
221365 prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(),
222366 propWithFile: z.array(z.string()).optional(),
223367 propWithNumber: z.array(z.number()).optional()
224368});
225369370370+/**
371371+ * This is a model with one property containing an array
372372+ */
226373export const zModelWithArray = z.object({
227374 prop: z.array(zModelWithString).optional(),
228375 propWithFile: z.array(z.string()).optional(),
229376 propWithNumber: z.array(z.number()).optional()
230377});
231378379379+/**
380380+ * This is a model with one property containing a dictionary
381381+ */
232382export const zModelWithDictionary = z.object({
233383 prop: z.object({}).optional()
234384});
235385386386+/**
387387+ * This is a deprecated model with a deprecated property
388388+ * @deprecated
389389+ */
236390export const zDeprecatedModel = z.object({
237391 prop: z.string().optional()
238392});
239393394394+/**
395395+ * This is a model with one property containing a circular reference
396396+ */
240397export const zModelWithCircularReference: z.AnyZodObject = z.object({
241398 prop: z.lazy(() => {
242399 return zModelWithCircularReference;
243400 }).optional()
244401});
245402403403+/**
404404+ * This is a model with one property with a 'one of' relationship
405405+ */
246406export const zCompositionWithOneOf = z.object({
247407 propA: z.union([
248408 zModelWithString,
···252412 ]).optional()
253413});
254414415415+/**
416416+ * This is a model with one property with a 'one of' relationship where the options are not $ref
417417+ */
255418export const zCompositionWithOneOfAnonymous = z.object({
256419 propA: z.union([
257420 z.object({
···262425 ]).optional()
263426});
264427428428+/**
429429+ * Circle
430430+ */
265431export const zModelCircle = z.object({
266432 kind: z.string(),
267433 radius: z.number().optional()
268434});
269435436436+/**
437437+ * Square
438438+ */
270439export const zModelSquare = z.object({
271440 kind: z.string(),
272441 sideLength: z.number().optional()
273442});
274443444444+/**
445445+ * This is a model with one property with a 'one of' relationship where the options are not $ref
446446+ */
275447export const zCompositionWithOneOfDiscriminator = z.union([
276448 z.object({
277449 kind: z.literal('circle')
···281453 }).and(zModelSquare)
282454]);
283455456456+/**
457457+ * This is a model with one property with a 'any of' relationship
458458+ */
284459export const zCompositionWithAnyOf = z.object({
285460 propA: z.union([
286461 zModelWithString,
···290465 ]).optional()
291466});
292467468468+/**
469469+ * This is a model with one property with a 'any of' relationship where the options are not $ref
470470+ */
293471export const zCompositionWithAnyOfAnonymous = z.object({
294472 propA: z.union([
295473 z.object({
···300478 ]).optional()
301479});
302480481481+/**
482482+ * This is a model with nested 'any of' property with a type null
483483+ */
303484export const zCompositionWithNestedAnyAndTypeNull = z.object({
304485 propA: z.union([
305486 z.array(z.union([
···322503 'ConstValue'
323504]);
324505506506+/**
507507+ * This is a model with one property with a 'any of' relationship where the options are not $ref
508508+ */
325509export const zCompositionWithNestedAnyOfAndNull = z.object({
326510 propA: z.union([
327511 z.array(z.unknown()),
···329513 ]).optional()
330514});
331515516516+/**
517517+ * This is a model with one property with a 'one of' relationship
518518+ */
332519export const zCompositionWithOneOfAndNullable = z.object({
333520 propA: z.union([
334521 z.object({
···341528 ]).optional()
342529});
343530531531+/**
532532+ * This is a model that contains a simple dictionary within composition
533533+ */
344534export const zCompositionWithOneOfAndSimpleDictionary = z.object({
345535 propA: z.union([
346536 z.boolean(),
···348538 ]).optional()
349539});
350540541541+/**
542542+ * This is a model that contains a dictionary of simple arrays within composition
543543+ */
351544export const zCompositionWithOneOfAndSimpleArrayDictionary = z.object({
352545 propA: z.union([
353546 z.boolean(),
···355548 ]).optional()
356549});
357550551551+/**
552552+ * This is a model that contains a dictionary of complex arrays (composited) within composition
553553+ */
358554export const zCompositionWithOneOfAndComplexArrayDictionary = z.object({
359555 propA: z.union([
360556 z.boolean(),
···362558 ]).optional()
363559});
364560561561+/**
562562+ * This is a model with one property with a 'all of' relationship
563563+ */
365564export const zCompositionWithAllOfAndNullable = z.object({
366565 propA: z.union([
367566 z.object({
···371570 ]).optional()
372571});
373572573573+/**
574574+ * This is a model with one property with a 'any of' relationship
575575+ */
374576export const zCompositionWithAnyOfAndNullable = z.object({
375577 propA: z.union([
376578 z.object({
···383585 ]).optional()
384586});
385587588588+/**
589589+ * This is a base model with two simple optional properties
590590+ */
386591export const zCompositionBaseModel = z.object({
387592 firstName: z.string().optional(),
388593 lastname: z.string().optional()
389594});
390595596596+/**
597597+ * This is a model that extends the base model
598598+ */
391599export const zCompositionExtendedModel = zCompositionBaseModel.and(z.object({
392600 age: z.number(),
393601 firstName: z.string(),
394602 lastname: z.string()
395603}));
396604605605+/**
606606+ * This is a model with one nested property
607607+ */
397608export const zModelWithNestedProperties = z.object({
398609 first: z.union([
399610 z.object({
···411622 ]).readonly()
412623});
413624625625+/**
626626+ * This is a model with duplicated properties
627627+ */
414628export const zModelWithDuplicateProperties = z.object({
415629 prop: zModelWithString.optional()
416630});
417631632632+/**
633633+ * This is a model with ordered properties
634634+ */
418635export const zModelWithOrderedProperties = z.object({
419636 zebra: z.string().optional(),
420637 apple: z.string().optional(),
421638 hawaii: z.string().optional()
422639});
423640641641+/**
642642+ * This is a model with duplicated imports
643643+ */
424644export const zModelWithDuplicateImports = z.object({
425645 propA: zModelWithString.optional(),
426646 propB: zModelWithString.optional(),
427647 propC: zModelWithString.optional()
428648});
429649650650+/**
651651+ * This is a model that extends another model
652652+ */
430653export const zModelThatExtends = zModelWithString.and(z.object({
431654 propExtendsA: z.string().optional(),
432655 propExtendsB: zModelWithString.optional()
433656}));
434657658658+/**
659659+ * This is a model that extends another model
660660+ */
435661export const zModelThatExtendsExtends = zModelWithString.and(zModelThatExtends).and(z.object({
436662 propExtendsC: z.string().optional(),
437663 propExtendsD: zModelWithString.optional()
438664}));
439665666666+/**
667667+ * This is a model that contains a some patterns
668668+ */
440669export const zModelWithPattern = z.object({
441670 key: z.string().max(64).regex(/^[a-zA-Z0-9_]*$/),
442671 name: z.string().max(255),
···467696 sort: z.array(z.string()).optional()
468697});
469698699699+/**
700700+ * This is a free-form object without additionalProperties.
701701+ */
470702export const zFreeFormObjectWithoutAdditionalProperties = z.object({});
471703704704+/**
705705+ * This is a free-form object with additionalProperties: true.
706706+ */
472707export const zFreeFormObjectWithAdditionalPropertiesEqTrue = z.object({});
473708709709+/**
710710+ * This is a free-form object with additionalProperties: {}.
711711+ */
474712export const zFreeFormObjectWithAdditionalPropertiesEqEmptyObject = z.object({});
475713476714export const zModelWithConst = z.object({
···484722 ]).optional()
485723});
486724725725+/**
726726+ * This is a model with one property and additionalProperties: true
727727+ */
487728export const zModelWithAdditionalPropertiesEqTrue = z.object({
488729 prop: z.string().optional()
489730});
···495736 ]).optional()
496737});
497738739739+/**
740740+ * This is a reusable parameter
741741+ */
498742export const zSimpleParameter = z.unknown();
499743500744export const zCompositionWithOneOfAndProperties = z.intersection(z.union([
···512756 qux: z.number().int().gte(0)
513757}));
514758759759+/**
760760+ * An object that can be null
761761+ */
515762export const zNullableObject = z.union([
516763 z.object({
517764 foo: z.string().optional()
···519766 z.null()
520767]).default(null);
521768769769+/**
770770+ * Some % character
771771+ */
522772export const zCharactersInDescription = z.string();
523773524774export const zModelWithNullableObject = z.object({
···595845 value: z.unknown().optional()
596846});
597847848848+/**
849849+ * Some description with `back ticks`
850850+ */
598851export const zModelWithBackticksInDescription = z.object({
599852 template: z.string().optional()
600853});
···610863 qux: z.number().int().gte(0)
611864}));
612865866866+/**
867867+ * Model used to test deduplication strategy (unused)
868868+ */
613869export const zParameterSimpleParameterUnused = z.string();
614870871871+/**
872872+ * Model used to test deduplication strategy
873873+ */
615874export const zPostServiceWithEmptyTagResponse = z.string();
616875876876+/**
877877+ * Model used to test deduplication strategy
878878+ */
617879export const zPostServiceWithEmptyTagResponse2 = z.string();
618880881881+/**
882882+ * Model used to test deduplication strategy
883883+ */
619884export const zDeleteFooData = z.string();
620885886886+/**
887887+ * Model used to test deduplication strategy
888888+ */
621889export const zDeleteFooData2 = z.string();
622890891891+/**
892892+ * Model with restricted keyword name
893893+ */
623894export const zImport = z.string();
624895625896export const zSchemaWithFormRestrictedKeys = z.object({
···644915 })).optional()
645916});
646917918918+/**
919919+ * This schema was giving PascalCase transformations a hard time
920920+ */
647921export const zIoK8sApimachineryPkgApisMetaV1Preconditions = z.object({
648922 resourceVersion: z.string().optional(),
649923 uid: z.string().optional()
650924});
651925926926+/**
927927+ * This schema was giving PascalCase transformations a hard time
928928+ */
652929export const zIoK8sApimachineryPkgApisMetaV1DeleteOptions = z.object({
653930 preconditions: zIoK8sApimachineryPkgApisMetaV1Preconditions.optional()
654931});
···700977 zModelWithReadOnlyAndWriteOnly
701978]);
702979980980+/**
981981+ * Success
982982+ */
703983export const zApiVVersionODataControllerCountResponse = zModelFromZendesk;
704984985985+/**
986986+ * Response is a simple number
987987+ */
705988export const zGetApiVbyApiVersionSimpleOperationResponse = z.number();
706989707990export const zPostCallWithOptionalParamResponse = z.union([
···709992 z.void()
710993]);
711994995995+/**
996996+ * Success
997997+ */
712998export const zCallWithNoContentResponseResponse = z.void();
7139997141000export const zCallWithResponseAndNoContentResponseResponse = z.union([
···71810047191005export const zDummyAResponse = z400;
720100610071007+/**
10081008+ * Success
10091009+ */
7211010export const zDummyBResponse = z.void();
72210117231012export const zCallWithResponseResponse = zImport;
···74610357471036export const zUploadFileResponse = z.boolean();
748103710381038+/**
10391039+ * Success
10401040+ */
7491041export const zFileResponseResponse = z.string();
750104210431043+/**
10441044+ * Successful response
10451045+ */
7511046export const zComplexTypesResponse = z.array(zModelWithString);
752104710481048+/**
10491049+ * OK
10501050+ */
7531051export const zMultipartResponseResponse = z.object({
7541052 file: z.string().optional(),
7551053 metadata: z.object({
···7581056 }).optional()
7591057});
760105810591059+/**
10601060+ * Success
10611061+ */
7611062export const zComplexParamsResponse = zModelWithString;
762106310641064+/**
10651065+ * Successful response
10661066+ */
7631067export const zNonAsciiæøåÆøÅöôêÊ字符串Response = z.array(zNonAsciiStringæøåÆøÅöôêÊ字符串);
···2233import * as v from 'valibot';
4455+/**
66+ * Model with number-only name
77+ */
58export const v400 = v.string();
691010+/**
1111+ * Testing multiline comments in string: First line
1212+ * Second line
1313+ *
1414+ * Fourth line
1515+ */
716export const vCamelCaseCommentWithBreaks = v.pipe(v.number(), v.integer());
8171818+/**
1919+ * Testing multiline comments in string: First line
2020+ * Second line
2121+ *
2222+ * Fourth line
2323+ */
924export const vCommentWithBreaks = v.pipe(v.number(), v.integer());
10252626+/**
2727+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
2828+ */
1129export const vCommentWithBackticks = v.pipe(v.number(), v.integer());
12303131+/**
3232+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
3333+ */
1334export const vCommentWithBackticksAndQuotes = v.pipe(v.number(), v.integer());
14353636+/**
3737+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
3838+ */
1539export const vCommentWithSlashes = v.pipe(v.number(), v.integer());
16404141+/**
4242+ * Testing expression placeholders in string: ${expression} should work
4343+ */
1744export const vCommentWithExpressionPlaceholders = v.pipe(v.number(), v.integer());
18454646+/**
4747+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
4848+ */
1949export const vCommentWithQuotes = v.pipe(v.number(), v.integer());
20505151+/**
5252+ * Testing reserved characters in string: * inline * and ** inline ** should work
5353+ */
2154export const vCommentWithReservedCharacters = v.pipe(v.number(), v.integer());
22555656+/**
5757+ * This is a simple number
5858+ */
2359export const vSimpleInteger = v.pipe(v.number(), v.integer());
24606161+/**
6262+ * This is a simple boolean
6363+ */
2564export const vSimpleBoolean = v.boolean();
26656666+/**
6767+ * This is a simple string
6868+ */
2769export const vSimpleString = v.string();
28707171+/**
7272+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
7373+ */
2974export const vNonAsciiStringæøåÆøÅöôêÊ字符串 = v.string();
30757676+/**
7777+ * This is a simple file
7878+ */
3179export const vSimpleFile = v.string();
32808181+/**
8282+ * This is a model with one string property
8383+ */
3384export const vModelWithString = v.object({
3485 prop: v.optional(v.string())
3586});
36878888+/**
8989+ * This is a simple reference
9090+ */
3791export const vSimpleReference = vModelWithString;
38929393+/**
9494+ * This is a simple string
9595+ */
3996export const vSimpleStringWithPattern = v.union([
4097 v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/)),
4198 v.null()
4299]);
43100101101+/**
102102+ * This is a simple enum with strings
103103+ */
44104export const vEnumWithStrings = v.picklist([
45105 'Success',
46106 'Warning',
···57117 ''
58118]);
59119120120+/**
121121+ * This is a simple enum with numbers
122122+ */
60123export const vEnumWithNumbers = v.unknown();
61124125125+/**
126126+ * Success=1,Warning=2,Error=3
127127+ */
62128export const vEnumFromDescription = v.number();
63129130130+/**
131131+ * This is a simple enum with numbers
132132+ */
64133export const vEnumWithExtensions = v.unknown();
6513466135export const vEnumWithXEnumNames = v.unknown();
67136137137+/**
138138+ * This is a simple array with numbers
139139+ */
68140export const vArrayWithNumbers = v.array(v.pipe(v.number(), v.integer()));
69141142142+/**
143143+ * This is a simple array with booleans
144144+ */
70145export const vArrayWithBooleans = v.array(v.boolean());
71146147147+/**
148148+ * This is a simple array with strings
149149+ */
72150export const vArrayWithStrings = v.optional(v.array(v.string()), ['test']);
73151152152+/**
153153+ * This is a simple array with references
154154+ */
74155export const vArrayWithReferences = v.array(vModelWithString);
75156157157+/**
158158+ * This is a simple array containing an array
159159+ */
76160export const vArrayWithArray = v.array(v.array(vModelWithString));
77161162162+/**
163163+ * This is a simple array with properties
164164+ */
78165export const vArrayWithProperties = v.array(v.object({
79166 '16x16': v.optional(vCamelCaseCommentWithBreaks),
80167 bar: v.optional(v.string())
81168}));
82169170170+/**
171171+ * This is a simple array with any of properties
172172+ */
83173export const vArrayWithAnyOfProperties = v.array(v.unknown());
8417485175export const vAnyOfAnyAndNull = v.object({
···89179 ]))
90180});
91181182182+/**
183183+ * This is a simple array with any of properties
184184+ */
92185export const vAnyOfArrays = v.object({
93186 results: v.optional(v.array(v.unknown()))
94187});
95188189189+/**
190190+ * This is a string dictionary
191191+ */
96192export const vDictionaryWithString = v.object({});
9719398194export const vDictionaryWithPropertiesAndAdditionalProperties = v.object({
···100196 bar: v.optional(v.boolean())
101197});
102198199199+/**
200200+ * This is a string reference
201201+ */
103202export const vDictionaryWithReference = v.object({});
104203204204+/**
205205+ * This is a complex dictionary
206206+ */
105207export const vDictionaryWithArray = v.object({});
106208209209+/**
210210+ * This is a string dictionary
211211+ */
107212export const vDictionaryWithDictionary = v.object({});
108213214214+/**
215215+ * This is a complex dictionary
216216+ */
109217export const vDictionaryWithProperties = v.object({});
110218219219+/**
220220+ * This is a model with one number property
221221+ */
111222export const vModelWithInteger = v.object({
112223 prop: v.optional(v.pipe(v.number(), v.integer()))
113224});
114225226226+/**
227227+ * This is a model with one boolean property
228228+ */
115229export const vModelWithBoolean = v.object({
116230 prop: v.optional(v.boolean())
117231});
118232233233+/**
234234+ * This is a model with one string property
235235+ */
119236export const vModelWithStringError = v.object({
120237 prop: v.optional(v.string())
121238});
122239240240+/**
241241+ * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets)
242242+ */
123243export const vModelFromZendesk = v.string();
124244245245+/**
246246+ * This is a model with one string property
247247+ */
125248export const vModelWithNullableString = v.object({
126249 nullableProp1: v.optional(v.union([
127250 v.string(),
···147270 ]))
148271});
149272273273+/**
274274+ * This is a model with one enum
275275+ */
150276export const vModelWithEnum = v.object({
151277 'foo_bar-enum': v.optional(v.picklist([
152278 'Success',
···165291 bool: v.optional(v.unknown())
166292});
167293294294+/**
295295+ * This is a model with one enum with escaped name
296296+ */
168297export const vModelWithEnumWithHyphen = v.object({
169298 'foo-bar-baz-qux': v.optional(v.picklist([
170299 '3.0'
171300 ]))
172301});
173302303303+/**
304304+ * This is a model with one enum
305305+ */
174306export const vModelWithEnumFromDescription = v.object({
175307 test: v.optional(v.pipe(v.number(), v.integer()))
176308});
177309310310+/**
311311+ * This is a model with nested enums
312312+ */
178313export const vModelWithNestedEnums = v.object({
179314 dictionaryWithEnum: v.optional(v.object({})),
180315 dictionaryWithEnumFromDescription: v.optional(v.object({})),
···192327 ]))
193328});
194329330330+/**
331331+ * This is a model with one nested property
332332+ */
195333export const vModelWithProperties = v.object({
196334 required: v.string(),
197335 requiredAndReadOnly: v.pipe(v.string(), v.readonly()),
···210348 '@namespace.integer': v.optional(v.pipe(v.pipe(v.number(), v.integer()), v.readonly()))
211349});
212350351351+/**
352352+ * This is a model with one property containing a reference
353353+ */
213354export const vModelWithReference = v.object({
214355 prop: v.optional(vModelWithProperties)
215356});
···220361 baz: v.string()
221362});
222363364364+/**
365365+ * This is a model with one property containing an array
366366+ */
223367export const vModelWithArrayReadOnlyAndWriteOnly = v.object({
224368 prop: v.optional(v.array(vModelWithReadOnlyAndWriteOnly)),
225369 propWithFile: v.optional(v.array(v.string())),
226370 propWithNumber: v.optional(v.array(v.number()))
227371});
228372373373+/**
374374+ * This is a model with one property containing an array
375375+ */
229376export const vModelWithArray = v.object({
230377 prop: v.optional(v.array(vModelWithString)),
231378 propWithFile: v.optional(v.array(v.string())),
232379 propWithNumber: v.optional(v.array(v.number()))
233380});
234381382382+/**
383383+ * This is a model with one property containing a dictionary
384384+ */
235385export const vModelWithDictionary = v.object({
236386 prop: v.optional(v.object({}))
237387});
238388389389+/**
390390+ * This is a deprecated model with a deprecated property
391391+ * @deprecated
392392+ */
239393export const vDeprecatedModel = v.object({
240394 prop: v.optional(v.string())
241395});
242396397397+/**
398398+ * This is a model with one property containing a circular reference
399399+ */
243400export const vModelWithCircularReference: v.GenericSchema = v.object({
244401 prop: v.optional(v.lazy(() => {
245402 return vModelWithCircularReference;
246403 }))
247404});
248405406406+/**
407407+ * This is a model with one property with a 'one of' relationship
408408+ */
249409export const vCompositionWithOneOf = v.object({
250410 propA: v.optional(v.union([
251411 vModelWithString,
···255415 ]))
256416});
257417418418+/**
419419+ * This is a model with one property with a 'one of' relationship where the options are not $ref
420420+ */
258421export const vCompositionWithOneOfAnonymous = v.object({
259422 propA: v.optional(v.union([
260423 v.object({
···265428 ]))
266429});
267430431431+/**
432432+ * Circle
433433+ */
268434export const vModelCircle = v.object({
269435 kind: v.string(),
270436 radius: v.optional(v.number())
271437});
272438439439+/**
440440+ * Square
441441+ */
273442export const vModelSquare = v.object({
274443 kind: v.string(),
275444 sideLength: v.optional(v.number())
276445});
277446447447+/**
448448+ * This is a model with one property with a 'one of' relationship where the options are not $ref
449449+ */
278450export const vCompositionWithOneOfDiscriminator = v.union([
279451 v.intersect([
280452 v.object({
···290462 ])
291463]);
292464465465+/**
466466+ * This is a model with one property with a 'any of' relationship
467467+ */
293468export const vCompositionWithAnyOf = v.object({
294469 propA: v.optional(v.union([
295470 vModelWithString,
···299474 ]))
300475});
301476477477+/**
478478+ * This is a model with one property with a 'any of' relationship where the options are not $ref
479479+ */
302480export const vCompositionWithAnyOfAnonymous = v.object({
303481 propA: v.optional(v.union([
304482 v.object({
···309487 ]))
310488});
311489490490+/**
491491+ * This is a model with nested 'any of' property with a type null
492492+ */
312493export const vCompositionWithNestedAnyAndTypeNull = v.object({
313494 propA: v.optional(v.union([
314495 v.array(v.unknown()),
···323504324505export const vConstValue = v.literal('ConstValue');
325506507507+/**
508508+ * This is a model with one property with a 'any of' relationship where the options are not $ref
509509+ */
326510export const vCompositionWithNestedAnyOfAndNull = v.object({
327511 propA: v.optional(v.union([
328512 v.array(v.unknown()),
···330514 ]))
331515});
332516517517+/**
518518+ * This is a model with one property with a 'one of' relationship
519519+ */
333520export const vCompositionWithOneOfAndNullable = v.object({
334521 propA: v.optional(v.union([
335522 v.object({
···342529 ]))
343530});
344531532532+/**
533533+ * This is a model that contains a simple dictionary within composition
534534+ */
345535export const vCompositionWithOneOfAndSimpleDictionary = v.object({
346536 propA: v.optional(v.union([
347537 v.boolean(),
···349539 ]))
350540});
351541542542+/**
543543+ * This is a model that contains a dictionary of simple arrays within composition
544544+ */
352545export const vCompositionWithOneOfAndSimpleArrayDictionary = v.object({
353546 propA: v.optional(v.union([
354547 v.boolean(),
···356549 ]))
357550});
358551552552+/**
553553+ * This is a model that contains a dictionary of complex arrays (composited) within composition
554554+ */
359555export const vCompositionWithOneOfAndComplexArrayDictionary = v.object({
360556 propA: v.optional(v.union([
361557 v.boolean(),
···363559 ]))
364560});
365561562562+/**
563563+ * This is a model with one property with a 'all of' relationship
564564+ */
366565export const vCompositionWithAllOfAndNullable = v.object({
367566 propA: v.optional(v.union([
368567 v.intersect([
···377576 ]))
378577});
379578579579+/**
580580+ * This is a model with one property with a 'any of' relationship
581581+ */
380582export const vCompositionWithAnyOfAndNullable = v.object({
381583 propA: v.optional(v.union([
382584 v.object({
···389591 ]))
390592});
391593594594+/**
595595+ * This is a base model with two simple optional properties
596596+ */
392597export const vCompositionBaseModel = v.object({
393598 firstName: v.optional(v.string()),
394599 lastname: v.optional(v.string())
395600});
396601602602+/**
603603+ * This is a model that extends the base model
604604+ */
397605export const vCompositionExtendedModel = v.intersect([
398606 vCompositionBaseModel,
399607 v.object({
···403611 })
404612]);
405613614614+/**
615615+ * This is a model with one nested property
616616+ */
406617export const vModelWithNestedProperties = v.object({
407618 first: v.pipe(v.union([
408619 v.pipe(v.object({
···420631 ]), v.readonly())
421632});
422633634634+/**
635635+ * This is a model with duplicated properties
636636+ */
423637export const vModelWithDuplicateProperties = v.object({
424638 prop: v.optional(vModelWithString)
425639});
426640641641+/**
642642+ * This is a model with ordered properties
643643+ */
427644export const vModelWithOrderedProperties = v.object({
428645 zebra: v.optional(v.string()),
429646 apple: v.optional(v.string()),
430647 hawaii: v.optional(v.string())
431648});
432649650650+/**
651651+ * This is a model with duplicated imports
652652+ */
433653export const vModelWithDuplicateImports = v.object({
434654 propA: v.optional(vModelWithString),
435655 propB: v.optional(vModelWithString),
436656 propC: v.optional(vModelWithString)
437657});
438658659659+/**
660660+ * This is a model that extends another model
661661+ */
439662export const vModelThatExtends = v.intersect([
440663 vModelWithString,
441664 v.object({
···444667 })
445668]);
446669670670+/**
671671+ * This is a model that extends another model
672672+ */
447673export const vModelThatExtendsExtends = v.intersect([
448674 vModelWithString,
449675 vModelThatExtends,
···453679 })
454680]);
455681682682+/**
683683+ * This is a model that contains a some patterns
684684+ */
456685export const vModelWithPattern = v.object({
457686 key: v.pipe(v.string(), v.maxLength(64), v.regex(/^[a-zA-Z0-9_]*$/)),
458687 name: v.pipe(v.string(), v.maxLength(255)),
···483712 sort: v.optional(v.array(v.string()))
484713});
485714715715+/**
716716+ * This is a free-form object without additionalProperties.
717717+ */
486718export const vFreeFormObjectWithoutAdditionalProperties = v.object({});
487719720720+/**
721721+ * This is a free-form object with additionalProperties: true.
722722+ */
488723export const vFreeFormObjectWithAdditionalPropertiesEqTrue = v.object({});
489724725725+/**
726726+ * This is a free-form object with additionalProperties: {}.
727727+ */
490728export const vFreeFormObjectWithAdditionalPropertiesEqEmptyObject = v.object({});
491729492730export const vModelWithConst = v.object({
···496734 withType: v.optional(v.literal('Some string'))
497735});
498736737737+/**
738738+ * This is a model with one property and additionalProperties: true
739739+ */
499740export const vModelWithAdditionalPropertiesEqTrue = v.object({
500741 prop: v.optional(v.string())
501742});
···507748 ]))
508749});
509750751751+/**
752752+ * This is a reusable parameter
753753+ */
510754export const vSimpleParameter = v.unknown();
511755512756export const vCompositionWithOneOfAndProperties = v.intersect([
···527771 })
528772]);
529773774774+/**
775775+ * An object that can be null
776776+ */
530777export const vNullableObject = v.optional(v.union([
531778 v.object({
532779 foo: v.optional(v.string())
···534781 v.null()
535782]), null);
536783784784+/**
785785+ * Some % character
786786+ */
537787export const vCharactersInDescription = v.string();
538788539789export const vModelWithNullableObject = v.object({
···644894 ])
645895]);
646896897897+/**
898898+ * Model with restricted keyword name
899899+ */
647900export const vImport = v.string();
648901649902export const vModelWithAnyOfConstantSizeArrayWithNSizeAndOptions = v.tuple([
···672925 value: v.optional(v.unknown())
673926});
674927928928+/**
929929+ * Some description with `back ticks`
930930+ */
675931export const vModelWithBackticksInDescription = v.object({
676932 template: v.optional(v.string())
677933});
···690946 })
691947]);
692948949949+/**
950950+ * Model used to test deduplication strategy (unused)
951951+ */
693952export const vParameterSimpleParameterUnused = v.string();
694953954954+/**
955955+ * Model used to test deduplication strategy
956956+ */
695957export const vPostServiceWithEmptyTagResponse = v.string();
696958959959+/**
960960+ * Model used to test deduplication strategy
961961+ */
697962export const vPostServiceWithEmptyTagResponse2 = v.string();
698963964964+/**
965965+ * Model used to test deduplication strategy
966966+ */
699967export const vDeleteFooData = v.string();
700968969969+/**
970970+ * Model used to test deduplication strategy
971971+ */
701972export const vDeleteFooData2 = v.string();
702973703974export const vSchemaWithFormRestrictedKeys = v.object({
···722993 })))
723994});
724995996996+/**
997997+ * This schema was giving PascalCase transformations a hard time
998998+ */
725999export const vIoK8sApimachineryPkgApisMetaV1Preconditions = v.object({
7261000 resourceVersion: v.optional(v.string()),
7271001 uid: v.optional(v.string())
7281002});
729100310041004+/**
10051005+ * This schema was giving PascalCase transformations a hard time
10061006+ */
7301007export const vIoK8sApimachineryPkgApisMetaV1DeleteOptions = v.object({
7311008 preconditions: v.optional(vIoK8sApimachineryPkgApisMetaV1Preconditions)
7321009});
···7841061 vModelWithReadOnlyAndWriteOnly
7851062]);
786106310641064+/**
10651065+ * Success
10661066+ */
7871067export const vApiVVersionODataControllerCountResponse = vModelFromZendesk;
788106810691069+/**
10701070+ * Response is a simple number
10711071+ */
7891072export const vGetApiVbyApiVersionSimpleOperationResponse = v.number();
79010737911074export const vPostCallWithOptionalParamResponse = v.union([
···7931076 v.void()
7941077]);
795107810791079+/**
10801080+ * Success
10811081+ */
7961082export const vCallWithNoContentResponseResponse = v.void();
79710837981084export const vCallWithResponseAndNoContentResponseResponse = v.union([
···80210888031089export const vDummyAResponse = v400;
804109010911091+/**
10921092+ * Success
10931093+ */
8051094export const vDummyBResponse = v.void();
80610958071096export const vCallWithResponseResponse = vImport;
···83311228341123export const vUploadFileResponse = v.boolean();
835112411251125+/**
11261126+ * Success
11271127+ */
8361128export const vFileResponseResponse = v.string();
837112911301130+/**
11311131+ * Successful response
11321132+ */
8381133export const vComplexTypesResponse = v.array(vModelWithString);
839113411351135+/**
11361136+ * OK
11371137+ */
8401138export const vMultipartResponseResponse = v.object({
8411139 file: v.optional(v.string()),
8421140 metadata: v.optional(v.object({
···8451143 }))
8461144});
847114511461146+/**
11471147+ * Success
11481148+ */
8481149export const vComplexParamsResponse = vModelWithString;
849115011511151+/**
11521152+ * Successful response
11531153+ */
8501154export const vNonAsciiæøåÆøÅöôêÊ字符串Response = v.array(vNonAsciiStringæøåÆøÅöôêÊ字符串);
···2233import { z } from 'zod';
4455+/**
66+ * Model with number-only name
77+ */
58export const z400 = z.string();
691010+/**
1111+ * Testing multiline comments in string: First line
1212+ * Second line
1313+ *
1414+ * Fourth line
1515+ */
716export const zCamelCaseCommentWithBreaks = z.number().int();
8171818+/**
1919+ * Testing multiline comments in string: First line
2020+ * Second line
2121+ *
2222+ * Fourth line
2323+ */
924export const zCommentWithBreaks = z.number().int();
10252626+/**
2727+ * Testing backticks in string: `backticks` and ```multiple backticks``` should work
2828+ */
1129export const zCommentWithBackticks = z.number().int();
12303131+/**
3232+ * Testing backticks and quotes in string: `backticks`, 'quotes', "double quotes" and ```multiple backticks``` should work
3333+ */
1334export const zCommentWithBackticksAndQuotes = z.number().int();
14353636+/**
3737+ * Testing slashes in string: \backwards\\\ and /forwards/// should work
3838+ */
1539export const zCommentWithSlashes = z.number().int();
16404141+/**
4242+ * Testing expression placeholders in string: ${expression} should work
4343+ */
1744export const zCommentWithExpressionPlaceholders = z.number().int();
18454646+/**
4747+ * Testing quotes in string: 'single quote''' and "double quotes""" should work
4848+ */
1949export const zCommentWithQuotes = z.number().int();
20505151+/**
5252+ * Testing reserved characters in string: * inline * and ** inline ** should work
5353+ */
2154export const zCommentWithReservedCharacters = z.number().int();
22555656+/**
5757+ * This is a simple number
5858+ */
2359export const zSimpleInteger = z.number().int();
24606161+/**
6262+ * This is a simple boolean
6363+ */
2564export const zSimpleBoolean = z.boolean();
26656666+/**
6767+ * This is a simple string
6868+ */
2769export const zSimpleString = z.string();
28707171+/**
7272+ * A string with non-ascii (unicode) characters valid in typescript identifiers (æøåÆØÅöÔèÈ字符串)
7373+ */
2974export const zNonAsciiStringæøåÆøÅöôêÊ字符串 = z.string();
30757676+/**
7777+ * This is a simple file
7878+ */
3179export const zSimpleFile = z.string();
32808181+/**
8282+ * This is a model with one string property
8383+ */
3384export const zModelWithString = z.object({
3485 prop: z.string().optional()
3586});
36878888+/**
8989+ * This is a simple reference
9090+ */
3791export const zSimpleReference = zModelWithString;
38929393+/**
9494+ * This is a simple string
9595+ */
3996export const zSimpleStringWithPattern = z.union([
4097 z.string().max(64).regex(/^[a-zA-Z0-9_]*$/),
4198 z.null()
4299]);
43100101101+/**
102102+ * This is a simple enum with strings
103103+ */
44104export const zEnumWithStrings = z.enum([
45105 'Success',
46106 'Warning',
···57117 ''
58118]);
59119120120+/**
121121+ * This is a simple enum with numbers
122122+ */
60123export const zEnumWithNumbers = z.unknown();
61124125125+/**
126126+ * Success=1,Warning=2,Error=3
127127+ */
62128export const zEnumFromDescription = z.number();
63129130130+/**
131131+ * This is a simple enum with numbers
132132+ */
64133export const zEnumWithExtensions = z.unknown();
6513466135export const zEnumWithXEnumNames = z.unknown();
67136137137+/**
138138+ * This is a simple array with numbers
139139+ */
68140export const zArrayWithNumbers = z.array(z.number().int());
69141142142+/**
143143+ * This is a simple array with booleans
144144+ */
70145export const zArrayWithBooleans = z.array(z.boolean());
71146147147+/**
148148+ * This is a simple array with strings
149149+ */
72150export const zArrayWithStrings = z.array(z.string()).default(['test']);
73151152152+/**
153153+ * This is a simple array with references
154154+ */
74155export const zArrayWithReferences = z.array(zModelWithString);
75156157157+/**
158158+ * This is a simple array containing an array
159159+ */
76160export const zArrayWithArray = z.array(z.array(zModelWithString));
77161162162+/**
163163+ * This is a simple array with properties
164164+ */
78165export const zArrayWithProperties = z.array(z.object({
79166 '16x16': zCamelCaseCommentWithBreaks.optional(),
80167 bar: z.string().optional()
81168}));
82169170170+/**
171171+ * This is a simple array with any of properties
172172+ */
83173export const zArrayWithAnyOfProperties = z.array(z.unknown());
8417485175export const zAnyOfAnyAndNull = z.object({
···89179 ]).optional()
90180});
91181182182+/**
183183+ * This is a simple array with any of properties
184184+ */
92185export const zAnyOfArrays = z.object({
93186 results: z.array(z.unknown()).optional()
94187});
95188189189+/**
190190+ * This is a string dictionary
191191+ */
96192export const zDictionaryWithString = z.object({});
9719398194export const zDictionaryWithPropertiesAndAdditionalProperties = z.object({
···100196 bar: z.boolean().optional()
101197});
102198199199+/**
200200+ * This is a string reference
201201+ */
103202export const zDictionaryWithReference = z.object({});
104203204204+/**
205205+ * This is a complex dictionary
206206+ */
105207export const zDictionaryWithArray = z.object({});
106208209209+/**
210210+ * This is a string dictionary
211211+ */
107212export const zDictionaryWithDictionary = z.object({});
108213214214+/**
215215+ * This is a complex dictionary
216216+ */
109217export const zDictionaryWithProperties = z.object({});
110218219219+/**
220220+ * This is a model with one number property
221221+ */
111222export const zModelWithInteger = z.object({
112223 prop: z.number().int().optional()
113224});
114225226226+/**
227227+ * This is a model with one boolean property
228228+ */
115229export const zModelWithBoolean = z.object({
116230 prop: z.boolean().optional()
117231});
118232233233+/**
234234+ * This is a model with one string property
235235+ */
119236export const zModelWithStringError = z.object({
120237 prop: z.string().optional()
121238});
122239240240+/**
241241+ * `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets)
242242+ */
123243export const zModelFromZendesk = z.string();
124244245245+/**
246246+ * This is a model with one string property
247247+ */
125248export const zModelWithNullableString = z.object({
126249 nullableProp1: z.union([
127250 z.string(),
···147270 ]).optional()
148271});
149272273273+/**
274274+ * This is a model with one enum
275275+ */
150276export const zModelWithEnum = z.object({
151277 'foo_bar-enum': z.enum([
152278 'Success',
···165291 bool: z.unknown().optional()
166292});
167293294294+/**
295295+ * This is a model with one enum with escaped name
296296+ */
168297export const zModelWithEnumWithHyphen = z.object({
169298 'foo-bar-baz-qux': z.enum([
170299 '3.0'
171300 ]).optional()
172301});
173302303303+/**
304304+ * This is a model with one enum
305305+ */
174306export const zModelWithEnumFromDescription = z.object({
175307 test: z.number().int().optional()
176308});
177309310310+/**
311311+ * This is a model with nested enums
312312+ */
178313export const zModelWithNestedEnums = z.object({
179314 dictionaryWithEnum: z.object({}).optional(),
180315 dictionaryWithEnumFromDescription: z.object({}).optional(),
···192327 ]).optional()
193328});
194329330330+/**
331331+ * This is a model with one nested property
332332+ */
195333export const zModelWithProperties = z.object({
196334 required: z.string(),
197335 requiredAndReadOnly: z.string().readonly(),
···210348 '@namespace.integer': z.number().int().readonly().optional()
211349});
212350351351+/**
352352+ * This is a model with one property containing a reference
353353+ */
213354export const zModelWithReference = z.object({
214355 prop: zModelWithProperties.optional()
215356});
···220361 baz: z.string()
221362});
222363364364+/**
365365+ * This is a model with one property containing an array
366366+ */
223367export const zModelWithArrayReadOnlyAndWriteOnly = z.object({
224368 prop: z.array(zModelWithReadOnlyAndWriteOnly).optional(),
225369 propWithFile: z.array(z.string()).optional(),
226370 propWithNumber: z.array(z.number()).optional()
227371});
228372373373+/**
374374+ * This is a model with one property containing an array
375375+ */
229376export const zModelWithArray = z.object({
230377 prop: z.array(zModelWithString).optional(),
231378 propWithFile: z.array(z.string()).optional(),
232379 propWithNumber: z.array(z.number()).optional()
233380});
234381382382+/**
383383+ * This is a model with one property containing a dictionary
384384+ */
235385export const zModelWithDictionary = z.object({
236386 prop: z.object({}).optional()
237387});
238388389389+/**
390390+ * This is a deprecated model with a deprecated property
391391+ * @deprecated
392392+ */
239393export const zDeprecatedModel = z.object({
240394 prop: z.string().optional()
241395});
242396397397+/**
398398+ * This is a model with one property containing a circular reference
399399+ */
243400export const zModelWithCircularReference: z.AnyZodObject = z.object({
244401 prop: z.lazy(() => {
245402 return zModelWithCircularReference;
246403 }).optional()
247404});
248405406406+/**
407407+ * This is a model with one property with a 'one of' relationship
408408+ */
249409export const zCompositionWithOneOf = z.object({
250410 propA: z.union([
251411 zModelWithString,
···255415 ]).optional()
256416});
257417418418+/**
419419+ * This is a model with one property with a 'one of' relationship where the options are not $ref
420420+ */
258421export const zCompositionWithOneOfAnonymous = z.object({
259422 propA: z.union([
260423 z.object({
···265428 ]).optional()
266429});
267430431431+/**
432432+ * Circle
433433+ */
268434export const zModelCircle = z.object({
269435 kind: z.string(),
270436 radius: z.number().optional()
271437});
272438439439+/**
440440+ * Square
441441+ */
273442export const zModelSquare = z.object({
274443 kind: z.string(),
275444 sideLength: z.number().optional()
276445});
277446447447+/**
448448+ * This is a model with one property with a 'one of' relationship where the options are not $ref
449449+ */
278450export const zCompositionWithOneOfDiscriminator = z.union([
279451 z.object({
280452 kind: z.literal('circle')
···284456 }).and(zModelSquare)
285457]);
286458459459+/**
460460+ * This is a model with one property with a 'any of' relationship
461461+ */
287462export const zCompositionWithAnyOf = z.object({
288463 propA: z.union([
289464 zModelWithString,
···293468 ]).optional()
294469});
295470471471+/**
472472+ * This is a model with one property with a 'any of' relationship where the options are not $ref
473473+ */
296474export const zCompositionWithAnyOfAnonymous = z.object({
297475 propA: z.union([
298476 z.object({
···303481 ]).optional()
304482});
305483484484+/**
485485+ * This is a model with nested 'any of' property with a type null
486486+ */
306487export const zCompositionWithNestedAnyAndTypeNull = z.object({
307488 propA: z.union([
308489 z.array(z.unknown()),
···317498318499export const zConstValue = z.literal('ConstValue');
319500501501+/**
502502+ * This is a model with one property with a 'any of' relationship where the options are not $ref
503503+ */
320504export const zCompositionWithNestedAnyOfAndNull = z.object({
321505 propA: z.union([
322506 z.array(z.unknown()),
···324508 ]).optional()
325509});
326510511511+/**
512512+ * This is a model with one property with a 'one of' relationship
513513+ */
327514export const zCompositionWithOneOfAndNullable = z.object({
328515 propA: z.union([
329516 z.object({
···336523 ]).optional()
337524});
338525526526+/**
527527+ * This is a model that contains a simple dictionary within composition
528528+ */
339529export const zCompositionWithOneOfAndSimpleDictionary = z.object({
340530 propA: z.union([
341531 z.boolean(),
···343533 ]).optional()
344534});
345535536536+/**
537537+ * This is a model that contains a dictionary of simple arrays within composition
538538+ */
346539export const zCompositionWithOneOfAndSimpleArrayDictionary = z.object({
347540 propA: z.union([
348541 z.boolean(),
···350543 ]).optional()
351544});
352545546546+/**
547547+ * This is a model that contains a dictionary of complex arrays (composited) within composition
548548+ */
353549export const zCompositionWithOneOfAndComplexArrayDictionary = z.object({
354550 propA: z.union([
355551 z.boolean(),
···357553 ]).optional()
358554});
359555556556+/**
557557+ * This is a model with one property with a 'all of' relationship
558558+ */
360559export const zCompositionWithAllOfAndNullable = z.object({
361560 propA: z.union([
362561 z.object({
···366565 ]).optional()
367566});
368567568568+/**
569569+ * This is a model with one property with a 'any of' relationship
570570+ */
369571export const zCompositionWithAnyOfAndNullable = z.object({
370572 propA: z.union([
371573 z.object({
···378580 ]).optional()
379581});
380582583583+/**
584584+ * This is a base model with two simple optional properties
585585+ */
381586export const zCompositionBaseModel = z.object({
382587 firstName: z.string().optional(),
383588 lastname: z.string().optional()
384589});
385590591591+/**
592592+ * This is a model that extends the base model
593593+ */
386594export const zCompositionExtendedModel = zCompositionBaseModel.and(z.object({
387595 age: z.number(),
388596 firstName: z.string(),
389597 lastname: z.string()
390598}));
391599600600+/**
601601+ * This is a model with one nested property
602602+ */
392603export const zModelWithNestedProperties = z.object({
393604 first: z.union([
394605 z.object({
···406617 ]).readonly()
407618});
408619620620+/**
621621+ * This is a model with duplicated properties
622622+ */
409623export const zModelWithDuplicateProperties = z.object({
410624 prop: zModelWithString.optional()
411625});
412626627627+/**
628628+ * This is a model with ordered properties
629629+ */
413630export const zModelWithOrderedProperties = z.object({
414631 zebra: z.string().optional(),
415632 apple: z.string().optional(),
416633 hawaii: z.string().optional()
417634});
418635636636+/**
637637+ * This is a model with duplicated imports
638638+ */
419639export const zModelWithDuplicateImports = z.object({
420640 propA: zModelWithString.optional(),
421641 propB: zModelWithString.optional(),
422642 propC: zModelWithString.optional()
423643});
424644645645+/**
646646+ * This is a model that extends another model
647647+ */
425648export const zModelThatExtends = zModelWithString.and(z.object({
426649 propExtendsA: z.string().optional(),
427650 propExtendsB: zModelWithString.optional()
428651}));
429652653653+/**
654654+ * This is a model that extends another model
655655+ */
430656export const zModelThatExtendsExtends = zModelWithString.and(zModelThatExtends).and(z.object({
431657 propExtendsC: z.string().optional(),
432658 propExtendsD: zModelWithString.optional()
433659}));
434660661661+/**
662662+ * This is a model that contains a some patterns
663663+ */
435664export const zModelWithPattern = z.object({
436665 key: z.string().max(64).regex(/^[a-zA-Z0-9_]*$/),
437666 name: z.string().max(255),
···462691 sort: z.array(z.string()).optional()
463692});
464693694694+/**
695695+ * This is a free-form object without additionalProperties.
696696+ */
465697export const zFreeFormObjectWithoutAdditionalProperties = z.object({});
466698699699+/**
700700+ * This is a free-form object with additionalProperties: true.
701701+ */
467702export const zFreeFormObjectWithAdditionalPropertiesEqTrue = z.object({});
468703704704+/**
705705+ * This is a free-form object with additionalProperties: {}.
706706+ */
469707export const zFreeFormObjectWithAdditionalPropertiesEqEmptyObject = z.object({});
470708471709export const zModelWithConst = z.object({
···475713 withType: z.literal('Some string').optional()
476714});
477715716716+/**
717717+ * This is a model with one property and additionalProperties: true
718718+ */
478719export const zModelWithAdditionalPropertiesEqTrue = z.object({
479720 prop: z.string().optional()
480721});
···486727 ]).optional()
487728});
488729730730+/**
731731+ * This is a reusable parameter
732732+ */
489733export const zSimpleParameter = z.unknown();
490734491735export const zCompositionWithOneOfAndProperties = z.intersection(z.union([
···503747 qux: z.number().int().gte(0)
504748}));
505749750750+/**
751751+ * An object that can be null
752752+ */
506753export const zNullableObject = z.union([
507754 z.object({
508755 foo: z.string().optional()
···510757 z.null()
511758]).default(null);
512759760760+/**
761761+ * Some % character
762762+ */
513763export const zCharactersInDescription = z.string();
514764515765export const zModelWithNullableObject = z.object({
···586836 value: z.unknown().optional()
587837});
588838839839+/**
840840+ * Some description with `back ticks`
841841+ */
589842export const zModelWithBackticksInDescription = z.object({
590843 template: z.string().optional()
591844});
···601854 qux: z.number().int().gte(0)
602855}));
603856857857+/**
858858+ * Model used to test deduplication strategy (unused)
859859+ */
604860export const zParameterSimpleParameterUnused = z.string();
605861862862+/**
863863+ * Model used to test deduplication strategy
864864+ */
606865export const zPostServiceWithEmptyTagResponse = z.string();
607866867867+/**
868868+ * Model used to test deduplication strategy
869869+ */
608870export const zPostServiceWithEmptyTagResponse2 = z.string();
609871872872+/**
873873+ * Model used to test deduplication strategy
874874+ */
610875export const zDeleteFooData = z.string();
611876877877+/**
878878+ * Model used to test deduplication strategy
879879+ */
612880export const zDeleteFooData2 = z.string();
613881882882+/**
883883+ * Model with restricted keyword name
884884+ */
614885export const zImport = z.string();
615886616887export const zSchemaWithFormRestrictedKeys = z.object({
···635906 })).optional()
636907});
637908909909+/**
910910+ * This schema was giving PascalCase transformations a hard time
911911+ */
638912export const zIoK8sApimachineryPkgApisMetaV1Preconditions = z.object({
639913 resourceVersion: z.string().optional(),
640914 uid: z.string().optional()
641915});
642916917917+/**
918918+ * This schema was giving PascalCase transformations a hard time
919919+ */
643920export const zIoK8sApimachineryPkgApisMetaV1DeleteOptions = z.object({
644921 preconditions: zIoK8sApimachineryPkgApisMetaV1Preconditions.optional()
645922});
···691968 zModelWithReadOnlyAndWriteOnly
692969]);
693970971971+/**
972972+ * Success
973973+ */
694974export const zApiVVersionODataControllerCountResponse = zModelFromZendesk;
695975976976+/**
977977+ * Response is a simple number
978978+ */
696979export const zGetApiVbyApiVersionSimpleOperationResponse = z.number();
697980698981export const zPostCallWithOptionalParamResponse = z.union([
···700983 z.void()
701984]);
702985986986+/**
987987+ * Success
988988+ */
703989export const zCallWithNoContentResponseResponse = z.void();
704990705991export const zCallWithResponseAndNoContentResponseResponse = z.union([
···709995710996export const zDummyAResponse = z400;
711997998998+/**
999999+ * Success
10001000+ */
7121001export const zDummyBResponse = z.void();
71310027141003export const zCallWithResponseResponse = zImport;
···73710267381027export const zUploadFileResponse = z.boolean();
739102810291029+/**
10301030+ * Success
10311031+ */
7401032export const zFileResponseResponse = z.string();
741103310341034+/**
10351035+ * Successful response
10361036+ */
7421037export const zComplexTypesResponse = z.array(zModelWithString);
743103810391039+/**
10401040+ * OK
10411041+ */
7441042export const zMultipartResponseResponse = z.object({
7451043 file: z.string().optional(),
7461044 metadata: z.object({
···7491047 }).optional()
7501048});
751104910501050+/**
10511051+ * Success
10521052+ */
7521053export const zComplexParamsResponse = zModelWithString;
753105410551055+/**
10561056+ * Successful response
10571057+ */
7541058export const zNonAsciiæøåÆøÅöôêÊ字符串Response = z.array(zNonAsciiStringæøåÆøÅöôêÊ字符串);
···3344export interface Config extends Plugin.Name<'valibot'> {
55 /**
66+ * Add comments from input to the generated Valibot schemas?
77+ *
88+ * @default true
99+ */
1010+ comments?: boolean;
1111+ /**
612 * Should the exports from the generated files be re-exported in the index
713 * barrel file?
814 *
···3344export interface Config extends Plugin.Name<'zod'> {
55 /**
66+ * Add comments from input to the generated Zod schemas?
77+ *
88+ * @default true
99+ */
1010+ comments?: boolean;
1111+ /**
612 * Should the exports from the generated files be re-exported in the index
713 * barrel file?
814 *