@hey-api/openapi-ts 0.95.0 → 0.96.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -2
- package/dist/clients/angular/types.ts +1 -0
- package/dist/clients/core/serverSentEvents.ts +4 -5
- package/dist/clients/fetch/types.ts +1 -0
- package/dist/clients/ky/types.ts +1 -0
- package/dist/clients/next/client.ts +1 -1
- package/dist/clients/next/types.ts +1 -0
- package/dist/clients/ofetch/types.ts +1 -0
- package/dist/index.d.mts +542 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/{init-C3GzFcQR.mjs → init-D4xuNKgu.mjs} +983 -840
- package/dist/init-D4xuNKgu.mjs.map +1 -0
- package/dist/internal.mjs +2 -3
- package/dist/run.mjs +4 -9
- package/dist/run.mjs.map +1 -1
- package/dist/{src-BzTu1krN.mjs → src-DlsTSwMY.mjs} +33 -21
- package/dist/src-DlsTSwMY.mjs.map +1 -0
- package/package.json +18 -19
- package/dist/init-C3GzFcQR.mjs.map +0 -1
- package/dist/src-BzTu1krN.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -2778,6 +2778,7 @@ interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
2778
2778
|
url: Url;
|
|
2779
2779
|
}
|
|
2780
2780
|
interface ResolvedRequestOptions$4<TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$6<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
2781
|
+
headers: HttpHeaders;
|
|
2781
2782
|
serializedBody?: string;
|
|
2782
2783
|
}
|
|
2783
2784
|
type RequestResult$6<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$3 = 'fields'> = Promise<ThrowOnError extends true ? TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
@@ -2984,6 +2985,7 @@ interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
2984
2985
|
url: Url;
|
|
2985
2986
|
}
|
|
2986
2987
|
interface ResolvedRequestOptions$3<TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$4<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
2988
|
+
headers: Headers;
|
|
2987
2989
|
serializedBody?: string;
|
|
2988
2990
|
}
|
|
2989
2991
|
type RequestResult$4<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$2 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
@@ -3104,6 +3106,7 @@ interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boole
|
|
|
3104
3106
|
url: Url;
|
|
3105
3107
|
}
|
|
3106
3108
|
interface ResolvedRequestOptions$2<ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$3<unknown, ThrowOnError, Url> {
|
|
3109
|
+
headers: Headers;
|
|
3107
3110
|
serializedBody?: string;
|
|
3108
3111
|
}
|
|
3109
3112
|
type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean> = ThrowOnError extends true ? Promise<{
|
|
@@ -3368,6 +3371,7 @@ interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle
|
|
|
3368
3371
|
url: Url;
|
|
3369
3372
|
}
|
|
3370
3373
|
interface ResolvedRequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$1<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
3374
|
+
headers: Headers;
|
|
3371
3375
|
serializedBody?: string;
|
|
3372
3376
|
}
|
|
3373
3377
|
type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
@@ -3600,6 +3604,7 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
|
|
|
3600
3604
|
url: Url;
|
|
3601
3605
|
}
|
|
3602
3606
|
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
3607
|
+
headers: Headers;
|
|
3603
3608
|
serializedBody?: string;
|
|
3604
3609
|
}
|
|
3605
3610
|
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
@@ -4116,7 +4121,7 @@ interface BaseTransformer extends DollarTsDsl {
|
|
|
4116
4121
|
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4117
4122
|
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$16, 'name'>;
|
|
4118
4123
|
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4119
|
-
}) => Array<TsDsl<ts.Expression>> | undefined;
|
|
4124
|
+
}) => Array<TsDsl<ts.Expression> | ReturnType<typeof $.return>> | undefined;
|
|
4120
4125
|
/**
|
|
4121
4126
|
* Returns the TypeScript type node for a schema with a specific format.
|
|
4122
4127
|
* If undefined is returned, the default type will be used.
|
|
@@ -9561,6 +9566,8 @@ type ValidatorArgs = {
|
|
|
9561
9566
|
type TypeOptions = {
|
|
9562
9567
|
types: {
|
|
9563
9568
|
infer: NamingOptions & FeatureToggle;
|
|
9569
|
+
input: NamingOptions & FeatureToggle;
|
|
9570
|
+
output: NamingOptions & FeatureToggle;
|
|
9564
9571
|
};
|
|
9565
9572
|
};
|
|
9566
9573
|
/**
|
|
@@ -9860,8 +9867,7 @@ interface IntersectionResolverContext extends BaseContext {
|
|
|
9860
9867
|
};
|
|
9861
9868
|
parentSchema: IR$1.SchemaObject;
|
|
9862
9869
|
schema: IR$1.SchemaObject;
|
|
9863
|
-
|
|
9864
|
-
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
9870
|
+
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
9865
9871
|
}
|
|
9866
9872
|
interface NeverResolverContext extends BaseContext {
|
|
9867
9873
|
/**
|
|
@@ -10033,8 +10039,6 @@ interface UnionResolverContext extends BaseContext {
|
|
|
10033
10039
|
parentSchema: IR$1.SchemaObject;
|
|
10034
10040
|
schema: IR$1.SchemaObject;
|
|
10035
10041
|
schemas: ReadonlyArray<IR$1.SchemaObject>;
|
|
10036
|
-
walk: Walker<ZodResult, ZodPlugin['Instance']>;
|
|
10037
|
-
walkerCtx: SchemaVisitorContext<ZodPlugin['Instance']>;
|
|
10038
10042
|
}
|
|
10039
10043
|
interface UnknownResolverContext extends BaseContext {
|
|
10040
10044
|
/**
|
|
@@ -10229,6 +10233,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10229
10233
|
*/
|
|
10230
10234
|
name?: NameTransformer;
|
|
10231
10235
|
};
|
|
10236
|
+
/**
|
|
10237
|
+
* Configuration for `input` types.
|
|
10238
|
+
*
|
|
10239
|
+
* Can be:
|
|
10240
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10241
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10242
|
+
* - `object`: Full configuration object
|
|
10243
|
+
*
|
|
10244
|
+
* @default false
|
|
10245
|
+
*/
|
|
10246
|
+
input?: boolean | NameTransformer | {
|
|
10247
|
+
/**
|
|
10248
|
+
* Casing convention for generated names.
|
|
10249
|
+
*
|
|
10250
|
+
* @default 'PascalCase'
|
|
10251
|
+
*/
|
|
10252
|
+
case?: Casing;
|
|
10253
|
+
/**
|
|
10254
|
+
* Whether this feature is enabled.
|
|
10255
|
+
*
|
|
10256
|
+
* @default true
|
|
10257
|
+
*/
|
|
10258
|
+
enabled?: boolean;
|
|
10259
|
+
/**
|
|
10260
|
+
* Naming pattern for generated names.
|
|
10261
|
+
*
|
|
10262
|
+
* @default '{{name}}ZodInput'
|
|
10263
|
+
*/
|
|
10264
|
+
name?: NameTransformer;
|
|
10265
|
+
};
|
|
10266
|
+
/**
|
|
10267
|
+
* Configuration for `output` types.
|
|
10268
|
+
*
|
|
10269
|
+
* Can be:
|
|
10270
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10271
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10272
|
+
* - `object`: Full configuration object
|
|
10273
|
+
*
|
|
10274
|
+
* @default false
|
|
10275
|
+
*/
|
|
10276
|
+
output?: boolean | NameTransformer | {
|
|
10277
|
+
/**
|
|
10278
|
+
* Casing convention for generated names.
|
|
10279
|
+
*
|
|
10280
|
+
* @default 'PascalCase'
|
|
10281
|
+
*/
|
|
10282
|
+
case?: Casing;
|
|
10283
|
+
/**
|
|
10284
|
+
* Whether this feature is enabled.
|
|
10285
|
+
*
|
|
10286
|
+
* @default true
|
|
10287
|
+
*/
|
|
10288
|
+
enabled?: boolean;
|
|
10289
|
+
/**
|
|
10290
|
+
* Naming pattern for generated names.
|
|
10291
|
+
*
|
|
10292
|
+
* @default '{{name}}ZodOutput'
|
|
10293
|
+
*/
|
|
10294
|
+
name?: NameTransformer;
|
|
10295
|
+
};
|
|
10232
10296
|
};
|
|
10233
10297
|
};
|
|
10234
10298
|
/**
|
|
@@ -10331,6 +10395,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10331
10395
|
*/
|
|
10332
10396
|
name?: NameTransformer;
|
|
10333
10397
|
};
|
|
10398
|
+
/**
|
|
10399
|
+
* Configuration for `input` types.
|
|
10400
|
+
*
|
|
10401
|
+
* Can be:
|
|
10402
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10403
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10404
|
+
* - `object`: Full configuration object
|
|
10405
|
+
*
|
|
10406
|
+
* @default false
|
|
10407
|
+
*/
|
|
10408
|
+
input?: boolean | NameTransformer | {
|
|
10409
|
+
/**
|
|
10410
|
+
* Casing convention for generated names.
|
|
10411
|
+
*
|
|
10412
|
+
* @default 'PascalCase'
|
|
10413
|
+
*/
|
|
10414
|
+
case?: Casing;
|
|
10415
|
+
/**
|
|
10416
|
+
* Whether this feature is enabled.
|
|
10417
|
+
*
|
|
10418
|
+
* @default true
|
|
10419
|
+
*/
|
|
10420
|
+
enabled?: boolean;
|
|
10421
|
+
/**
|
|
10422
|
+
* Naming pattern for generated names.
|
|
10423
|
+
*
|
|
10424
|
+
* @default '{{name}}BodyZodInput'
|
|
10425
|
+
*/
|
|
10426
|
+
name?: NameTransformer;
|
|
10427
|
+
};
|
|
10428
|
+
/**
|
|
10429
|
+
* Configuration for `output` types.
|
|
10430
|
+
*
|
|
10431
|
+
* Can be:
|
|
10432
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10433
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10434
|
+
* - `object`: Full configuration object
|
|
10435
|
+
*
|
|
10436
|
+
* @default false
|
|
10437
|
+
*/
|
|
10438
|
+
output?: boolean | NameTransformer | {
|
|
10439
|
+
/**
|
|
10440
|
+
* Casing convention for generated names.
|
|
10441
|
+
*
|
|
10442
|
+
* @default 'PascalCase'
|
|
10443
|
+
*/
|
|
10444
|
+
case?: Casing;
|
|
10445
|
+
/**
|
|
10446
|
+
* Whether this feature is enabled.
|
|
10447
|
+
*
|
|
10448
|
+
* @default true
|
|
10449
|
+
*/
|
|
10450
|
+
enabled?: boolean;
|
|
10451
|
+
/**
|
|
10452
|
+
* Naming pattern for generated names.
|
|
10453
|
+
*
|
|
10454
|
+
* @default '{{name}}BodyZodOutput'
|
|
10455
|
+
*/
|
|
10456
|
+
name?: NameTransformer;
|
|
10457
|
+
};
|
|
10334
10458
|
};
|
|
10335
10459
|
};
|
|
10336
10460
|
/**
|
|
@@ -10410,6 +10534,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10410
10534
|
*/
|
|
10411
10535
|
name?: NameTransformer;
|
|
10412
10536
|
};
|
|
10537
|
+
/**
|
|
10538
|
+
* Configuration for `input` types.
|
|
10539
|
+
*
|
|
10540
|
+
* Can be:
|
|
10541
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10542
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10543
|
+
* - `object`: Full configuration object
|
|
10544
|
+
*
|
|
10545
|
+
* @default false
|
|
10546
|
+
*/
|
|
10547
|
+
input?: boolean | NameTransformer | {
|
|
10548
|
+
/**
|
|
10549
|
+
* Casing convention for generated names.
|
|
10550
|
+
*
|
|
10551
|
+
* @default 'PascalCase'
|
|
10552
|
+
*/
|
|
10553
|
+
case?: Casing;
|
|
10554
|
+
/**
|
|
10555
|
+
* Whether this feature is enabled.
|
|
10556
|
+
*
|
|
10557
|
+
* @default true
|
|
10558
|
+
*/
|
|
10559
|
+
enabled?: boolean;
|
|
10560
|
+
/**
|
|
10561
|
+
* Naming pattern for generated names.
|
|
10562
|
+
*
|
|
10563
|
+
* @default '{{name}}HeadersZodInput'
|
|
10564
|
+
*/
|
|
10565
|
+
name?: NameTransformer;
|
|
10566
|
+
};
|
|
10567
|
+
/**
|
|
10568
|
+
* Configuration for `output` types.
|
|
10569
|
+
*
|
|
10570
|
+
* Can be:
|
|
10571
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10572
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10573
|
+
* - `object`: Full configuration object
|
|
10574
|
+
*
|
|
10575
|
+
* @default false
|
|
10576
|
+
*/
|
|
10577
|
+
output?: boolean | NameTransformer | {
|
|
10578
|
+
/**
|
|
10579
|
+
* Casing convention for generated names.
|
|
10580
|
+
*
|
|
10581
|
+
* @default 'PascalCase'
|
|
10582
|
+
*/
|
|
10583
|
+
case?: Casing;
|
|
10584
|
+
/**
|
|
10585
|
+
* Whether this feature is enabled.
|
|
10586
|
+
*
|
|
10587
|
+
* @default true
|
|
10588
|
+
*/
|
|
10589
|
+
enabled?: boolean;
|
|
10590
|
+
/**
|
|
10591
|
+
* Naming pattern for generated names.
|
|
10592
|
+
*
|
|
10593
|
+
* @default '{{name}}HeadersZodOutput'
|
|
10594
|
+
*/
|
|
10595
|
+
name?: NameTransformer;
|
|
10596
|
+
};
|
|
10413
10597
|
};
|
|
10414
10598
|
};
|
|
10415
10599
|
/**
|
|
@@ -10483,6 +10667,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10483
10667
|
*/
|
|
10484
10668
|
name?: NameTransformer;
|
|
10485
10669
|
};
|
|
10670
|
+
/**
|
|
10671
|
+
* Configuration for `input` types.
|
|
10672
|
+
*
|
|
10673
|
+
* Can be:
|
|
10674
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10675
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10676
|
+
* - `object`: Full configuration object
|
|
10677
|
+
*
|
|
10678
|
+
* @default false
|
|
10679
|
+
*/
|
|
10680
|
+
input?: boolean | NameTransformer | {
|
|
10681
|
+
/**
|
|
10682
|
+
* Casing convention for generated names.
|
|
10683
|
+
*
|
|
10684
|
+
* @default 'PascalCase'
|
|
10685
|
+
*/
|
|
10686
|
+
case?: Casing;
|
|
10687
|
+
/**
|
|
10688
|
+
* Whether this feature is enabled.
|
|
10689
|
+
*
|
|
10690
|
+
* @default true
|
|
10691
|
+
*/
|
|
10692
|
+
enabled?: boolean;
|
|
10693
|
+
/**
|
|
10694
|
+
* Naming pattern for generated names.
|
|
10695
|
+
*
|
|
10696
|
+
* @default '{{name}}PathZodInput'
|
|
10697
|
+
*/
|
|
10698
|
+
name?: NameTransformer;
|
|
10699
|
+
};
|
|
10700
|
+
/**
|
|
10701
|
+
* Configuration for `output` types.
|
|
10702
|
+
*
|
|
10703
|
+
* Can be:
|
|
10704
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10705
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10706
|
+
* - `object`: Full configuration object
|
|
10707
|
+
*
|
|
10708
|
+
* @default false
|
|
10709
|
+
*/
|
|
10710
|
+
output?: boolean | NameTransformer | {
|
|
10711
|
+
/**
|
|
10712
|
+
* Casing convention for generated names.
|
|
10713
|
+
*
|
|
10714
|
+
* @default 'PascalCase'
|
|
10715
|
+
*/
|
|
10716
|
+
case?: Casing;
|
|
10717
|
+
/**
|
|
10718
|
+
* Whether this feature is enabled.
|
|
10719
|
+
*
|
|
10720
|
+
* @default true
|
|
10721
|
+
*/
|
|
10722
|
+
enabled?: boolean;
|
|
10723
|
+
/**
|
|
10724
|
+
* Naming pattern for generated names.
|
|
10725
|
+
*
|
|
10726
|
+
* @default '{{name}}PathZodOutput'
|
|
10727
|
+
*/
|
|
10728
|
+
name?: NameTransformer;
|
|
10729
|
+
};
|
|
10486
10730
|
};
|
|
10487
10731
|
};
|
|
10488
10732
|
/**
|
|
@@ -10550,6 +10794,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10550
10794
|
*/
|
|
10551
10795
|
name?: NameTransformer;
|
|
10552
10796
|
};
|
|
10797
|
+
/**
|
|
10798
|
+
* Configuration for `input` types.
|
|
10799
|
+
*
|
|
10800
|
+
* Can be:
|
|
10801
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10802
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10803
|
+
* - `object`: Full configuration object
|
|
10804
|
+
*
|
|
10805
|
+
* @default false
|
|
10806
|
+
*/
|
|
10807
|
+
input?: boolean | NameTransformer | {
|
|
10808
|
+
/**
|
|
10809
|
+
* Casing convention for generated names.
|
|
10810
|
+
*
|
|
10811
|
+
* @default 'PascalCase'
|
|
10812
|
+
*/
|
|
10813
|
+
case?: Casing;
|
|
10814
|
+
/**
|
|
10815
|
+
* Whether this feature is enabled.
|
|
10816
|
+
*
|
|
10817
|
+
* @default true
|
|
10818
|
+
*/
|
|
10819
|
+
enabled?: boolean;
|
|
10820
|
+
/**
|
|
10821
|
+
* Naming pattern for generated names.
|
|
10822
|
+
*
|
|
10823
|
+
* @default '{{name}}QueryZodInput'
|
|
10824
|
+
*/
|
|
10825
|
+
name?: NameTransformer;
|
|
10826
|
+
};
|
|
10827
|
+
/**
|
|
10828
|
+
* Configuration for `output` types.
|
|
10829
|
+
*
|
|
10830
|
+
* Can be:
|
|
10831
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10832
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10833
|
+
* - `object`: Full configuration object
|
|
10834
|
+
*
|
|
10835
|
+
* @default false
|
|
10836
|
+
*/
|
|
10837
|
+
output?: boolean | NameTransformer | {
|
|
10838
|
+
/**
|
|
10839
|
+
* Casing convention for generated names.
|
|
10840
|
+
*
|
|
10841
|
+
* @default 'PascalCase'
|
|
10842
|
+
*/
|
|
10843
|
+
case?: Casing;
|
|
10844
|
+
/**
|
|
10845
|
+
* Whether this feature is enabled.
|
|
10846
|
+
*
|
|
10847
|
+
* @default true
|
|
10848
|
+
*/
|
|
10849
|
+
enabled?: boolean;
|
|
10850
|
+
/**
|
|
10851
|
+
* Naming pattern for generated names.
|
|
10852
|
+
*
|
|
10853
|
+
* @default '{{name}}QueryZodOutput'
|
|
10854
|
+
*/
|
|
10855
|
+
name?: NameTransformer;
|
|
10856
|
+
};
|
|
10553
10857
|
};
|
|
10554
10858
|
};
|
|
10555
10859
|
/**
|
|
@@ -10614,6 +10918,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10614
10918
|
*/
|
|
10615
10919
|
name?: NameTransformer;
|
|
10616
10920
|
};
|
|
10921
|
+
/**
|
|
10922
|
+
* Configuration for `input` types.
|
|
10923
|
+
*
|
|
10924
|
+
* Can be:
|
|
10925
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10926
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10927
|
+
* - `object`: Full configuration object
|
|
10928
|
+
*
|
|
10929
|
+
* @default false
|
|
10930
|
+
*/
|
|
10931
|
+
input?: boolean | NameTransformer | {
|
|
10932
|
+
/**
|
|
10933
|
+
* Casing convention for generated names.
|
|
10934
|
+
*
|
|
10935
|
+
* @default 'PascalCase'
|
|
10936
|
+
*/
|
|
10937
|
+
case?: Casing;
|
|
10938
|
+
/**
|
|
10939
|
+
* Whether this feature is enabled.
|
|
10940
|
+
*
|
|
10941
|
+
* @default true
|
|
10942
|
+
*/
|
|
10943
|
+
enabled?: boolean;
|
|
10944
|
+
/**
|
|
10945
|
+
* Naming pattern for generated names.
|
|
10946
|
+
*
|
|
10947
|
+
* @default '{{name}}DataZodInput'
|
|
10948
|
+
*/
|
|
10949
|
+
name?: NameTransformer;
|
|
10950
|
+
};
|
|
10951
|
+
/**
|
|
10952
|
+
* Configuration for `output` types.
|
|
10953
|
+
*
|
|
10954
|
+
* Can be:
|
|
10955
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10956
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10957
|
+
* - `object`: Full configuration object
|
|
10958
|
+
*
|
|
10959
|
+
* @default false
|
|
10960
|
+
*/
|
|
10961
|
+
output?: boolean | NameTransformer | {
|
|
10962
|
+
/**
|
|
10963
|
+
* Casing convention for generated names.
|
|
10964
|
+
*
|
|
10965
|
+
* @default 'PascalCase'
|
|
10966
|
+
*/
|
|
10967
|
+
case?: Casing;
|
|
10968
|
+
/**
|
|
10969
|
+
* Whether this feature is enabled.
|
|
10970
|
+
*
|
|
10971
|
+
* @default true
|
|
10972
|
+
*/
|
|
10973
|
+
enabled?: boolean;
|
|
10974
|
+
/**
|
|
10975
|
+
* Naming pattern for generated names.
|
|
10976
|
+
*
|
|
10977
|
+
* @default '{{name}}DataZodOutput'
|
|
10978
|
+
*/
|
|
10979
|
+
name?: NameTransformer;
|
|
10980
|
+
};
|
|
10617
10981
|
};
|
|
10618
10982
|
};
|
|
10619
10983
|
/**
|
|
@@ -10684,6 +11048,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10684
11048
|
*/
|
|
10685
11049
|
name?: NameTransformer;
|
|
10686
11050
|
};
|
|
11051
|
+
/**
|
|
11052
|
+
* Configuration for `input` types.
|
|
11053
|
+
*
|
|
11054
|
+
* Can be:
|
|
11055
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11056
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
11057
|
+
* - `object`: Full configuration object
|
|
11058
|
+
*
|
|
11059
|
+
* @default false
|
|
11060
|
+
*/
|
|
11061
|
+
input?: boolean | NameTransformer | {
|
|
11062
|
+
/**
|
|
11063
|
+
* Casing convention for generated names.
|
|
11064
|
+
*
|
|
11065
|
+
* @default 'PascalCase'
|
|
11066
|
+
*/
|
|
11067
|
+
case?: Casing;
|
|
11068
|
+
/**
|
|
11069
|
+
* Whether this feature is enabled.
|
|
11070
|
+
*
|
|
11071
|
+
* @default true
|
|
11072
|
+
*/
|
|
11073
|
+
enabled?: boolean;
|
|
11074
|
+
/**
|
|
11075
|
+
* Naming pattern for generated names.
|
|
11076
|
+
*
|
|
11077
|
+
* @default '{{name}}ResponseZodInput'
|
|
11078
|
+
*/
|
|
11079
|
+
name?: NameTransformer;
|
|
11080
|
+
};
|
|
11081
|
+
/**
|
|
11082
|
+
* Configuration for `output` types.
|
|
11083
|
+
*
|
|
11084
|
+
* Can be:
|
|
11085
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11086
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
11087
|
+
* - `object`: Full configuration object
|
|
11088
|
+
*
|
|
11089
|
+
* @default false
|
|
11090
|
+
*/
|
|
11091
|
+
output?: boolean | NameTransformer | {
|
|
11092
|
+
/**
|
|
11093
|
+
* Casing convention for generated names.
|
|
11094
|
+
*
|
|
11095
|
+
* @default 'PascalCase'
|
|
11096
|
+
*/
|
|
11097
|
+
case?: Casing;
|
|
11098
|
+
/**
|
|
11099
|
+
* Whether this feature is enabled.
|
|
11100
|
+
*
|
|
11101
|
+
* @default true
|
|
11102
|
+
*/
|
|
11103
|
+
enabled?: boolean;
|
|
11104
|
+
/**
|
|
11105
|
+
* Naming pattern for generated names.
|
|
11106
|
+
*
|
|
11107
|
+
* @default '{{name}}ResponseZodOutput'
|
|
11108
|
+
*/
|
|
11109
|
+
name?: NameTransformer;
|
|
11110
|
+
};
|
|
10687
11111
|
};
|
|
10688
11112
|
};
|
|
10689
11113
|
/**
|
|
@@ -10697,12 +11121,57 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10697
11121
|
*
|
|
10698
11122
|
* Can be:
|
|
10699
11123
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10700
|
-
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10701
11124
|
* - `object`: Full configuration object
|
|
10702
11125
|
*
|
|
10703
11126
|
* @default false
|
|
10704
11127
|
*/
|
|
10705
|
-
infer?: boolean |
|
|
11128
|
+
infer?: boolean | {
|
|
11129
|
+
/**
|
|
11130
|
+
* Casing convention for generated names.
|
|
11131
|
+
*
|
|
11132
|
+
* @default 'PascalCase'
|
|
11133
|
+
*/
|
|
11134
|
+
case?: Casing;
|
|
11135
|
+
/**
|
|
11136
|
+
* Whether this feature is enabled.
|
|
11137
|
+
*
|
|
11138
|
+
* @default true
|
|
11139
|
+
*/
|
|
11140
|
+
enabled?: boolean;
|
|
11141
|
+
};
|
|
11142
|
+
/**
|
|
11143
|
+
* Configuration for `input` types.
|
|
11144
|
+
*
|
|
11145
|
+
* Can be:
|
|
11146
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11147
|
+
* - `object`: Full configuration object
|
|
11148
|
+
*
|
|
11149
|
+
* @default false
|
|
11150
|
+
*/
|
|
11151
|
+
input?: boolean | {
|
|
11152
|
+
/**
|
|
11153
|
+
* Casing convention for generated names.
|
|
11154
|
+
*
|
|
11155
|
+
* @default 'PascalCase'
|
|
11156
|
+
*/
|
|
11157
|
+
case?: Casing;
|
|
11158
|
+
/**
|
|
11159
|
+
* Whether this feature is enabled.
|
|
11160
|
+
*
|
|
11161
|
+
* @default true
|
|
11162
|
+
*/
|
|
11163
|
+
enabled?: boolean;
|
|
11164
|
+
};
|
|
11165
|
+
/**
|
|
11166
|
+
* Configuration for `output` types.
|
|
11167
|
+
*
|
|
11168
|
+
* Can be:
|
|
11169
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11170
|
+
* - `object`: Full configuration object
|
|
11171
|
+
*
|
|
11172
|
+
* @default false
|
|
11173
|
+
*/
|
|
11174
|
+
output?: boolean | {
|
|
10706
11175
|
/**
|
|
10707
11176
|
* Casing convention for generated names.
|
|
10708
11177
|
*
|
|
@@ -10784,6 +11253,66 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10784
11253
|
*/
|
|
10785
11254
|
name?: NameTransformer;
|
|
10786
11255
|
};
|
|
11256
|
+
/**
|
|
11257
|
+
* Configuration for `input` types.
|
|
11258
|
+
*
|
|
11259
|
+
* Can be:
|
|
11260
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11261
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
11262
|
+
* - `object`: Full configuration object
|
|
11263
|
+
*
|
|
11264
|
+
* @default false
|
|
11265
|
+
*/
|
|
11266
|
+
input?: boolean | NameTransformer | {
|
|
11267
|
+
/**
|
|
11268
|
+
* Casing convention for generated names.
|
|
11269
|
+
*
|
|
11270
|
+
* @default 'PascalCase'
|
|
11271
|
+
*/
|
|
11272
|
+
case?: Casing;
|
|
11273
|
+
/**
|
|
11274
|
+
* Whether this feature is enabled.
|
|
11275
|
+
*
|
|
11276
|
+
* @default true
|
|
11277
|
+
*/
|
|
11278
|
+
enabled?: boolean;
|
|
11279
|
+
/**
|
|
11280
|
+
* Naming pattern for generated names.
|
|
11281
|
+
*
|
|
11282
|
+
* @default '{{name}}WebhookRequestZodInput'
|
|
11283
|
+
*/
|
|
11284
|
+
name?: NameTransformer;
|
|
11285
|
+
};
|
|
11286
|
+
/**
|
|
11287
|
+
* Configuration for `output` types.
|
|
11288
|
+
*
|
|
11289
|
+
* Can be:
|
|
11290
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
11291
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
11292
|
+
* - `object`: Full configuration object
|
|
11293
|
+
*
|
|
11294
|
+
* @default false
|
|
11295
|
+
*/
|
|
11296
|
+
output?: boolean | NameTransformer | {
|
|
11297
|
+
/**
|
|
11298
|
+
* Casing convention for generated names.
|
|
11299
|
+
*
|
|
11300
|
+
* @default 'PascalCase'
|
|
11301
|
+
*/
|
|
11302
|
+
case?: Casing;
|
|
11303
|
+
/**
|
|
11304
|
+
* Whether this feature is enabled.
|
|
11305
|
+
*
|
|
11306
|
+
* @default true
|
|
11307
|
+
*/
|
|
11308
|
+
enabled?: boolean;
|
|
11309
|
+
/**
|
|
11310
|
+
* Naming pattern for generated names.
|
|
11311
|
+
*
|
|
11312
|
+
* @default '{{name}}WebhookRequestZodOutput'
|
|
11313
|
+
*/
|
|
11314
|
+
name?: NameTransformer;
|
|
11315
|
+
};
|
|
10787
11316
|
};
|
|
10788
11317
|
};
|
|
10789
11318
|
};
|
|
@@ -10812,6 +11341,12 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
|
|
|
10812
11341
|
types: {
|
|
10813
11342
|
/** Configuration for `infer` types. */infer: FeatureToggle & {
|
|
10814
11343
|
/** Casing convention for generated names. */case: Casing;
|
|
11344
|
+
}; /** Configuration for `input` types. */
|
|
11345
|
+
input: FeatureToggle & {
|
|
11346
|
+
/** Casing convention for generated names. */case: Casing;
|
|
11347
|
+
}; /** Configuration for `output` types. */
|
|
11348
|
+
output: FeatureToggle & {
|
|
11349
|
+
/** Casing convention for generated names. */case: Casing;
|
|
10815
11350
|
};
|
|
10816
11351
|
}; /** Configuration for webhook-specific Zod schemas. */
|
|
10817
11352
|
webhooks: NamingOptions & FeatureToggle & TypeOptions;
|