@hey-api/openapi-ts 0.86.0 → 0.86.2
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/dist/{chunk-BJUc-MpE.js → chunk-C-EqMg7d.js} +1 -1
- package/dist/clients/axios/client.ts +8 -17
- package/dist/getSpec-54k1Qp12.js +24 -0
- package/dist/getSpec-54k1Qp12.js.map +1 -0
- package/dist/getSpec-BFMqYPd3.cjs +24 -0
- package/dist/getSpec-BFMqYPd3.cjs.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +47 -47
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/{types-CFN6tBkJ.d.cts → types-BT1ededZ.d.cts} +1137 -385
- package/dist/{types-BesMf-H-.d.ts → types-DGAzCzMG.d.ts} +1141 -390
- package/package.json +3 -8
- package/dist/getSpec-CZ8YOkGf.js +0 -24
- package/dist/getSpec-CZ8YOkGf.js.map +0 -1
- package/dist/getSpec-_5jk-wUD.cjs +0 -24
- package/dist/getSpec-_5jk-wUD.cjs.map +0 -1
|
@@ -5,6 +5,22 @@ import ts from "typescript";
|
|
|
5
5
|
import { RangeOptions, SemVer } from "semver";
|
|
6
6
|
|
|
7
7
|
//#region rolldown:runtime
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/openApi/shared/types/openapi-spec-extensions.d.ts
|
|
10
|
+
interface EnumExtensions {
|
|
11
|
+
/**
|
|
12
|
+
* `x-enum-descriptions` are {@link https://stackoverflow.com/a/66471626 supported} by OpenAPI Generator.
|
|
13
|
+
*/
|
|
14
|
+
'x-enum-descriptions'?: ReadonlyArray<string>;
|
|
15
|
+
/**
|
|
16
|
+
* `x-enum-varnames` are {@link https://stackoverflow.com/a/66471626 supported} by OpenAPI Generator.
|
|
17
|
+
*/
|
|
18
|
+
'x-enum-varnames'?: ReadonlyArray<string>;
|
|
19
|
+
/**
|
|
20
|
+
* {@link https://github.com/RicoSuter/NSwag NSwag} generates `x-enumNames` field containing custom enum names.
|
|
21
|
+
*/
|
|
22
|
+
'x-enumNames'?: ReadonlyArray<string>;
|
|
23
|
+
}
|
|
8
24
|
declare namespace types_d_exports {
|
|
9
25
|
export { AccessLevel, FunctionParameter, FunctionTypeParameter, ObjectValue, SyntaxKindKeyword, createAnonymousFunction, createArrayLiteralExpression, createArrowFunction, createAsExpression, createAssignment, createAwaitExpression, createBlock, createConditionalExpression, createEnumDeclaration, createForOfStatement, createFunctionTypeNode, createGetAccessorDeclaration, createIndexedAccessTypeNode, createKeywordTypeNode, createLiteralTypeNode, createMappedTypeNode, createNamespaceDeclaration, createNewExpression, createNull, createObjectType, createParameterDeclaration, createPropertyAccessChain, createPropertyAccessExpression, createPropertyAssignment, createRegularExpressionLiteral, createStringLiteral, createTemplateLiteralType, createTypeAliasDeclaration, createTypeNode, createTypeOfExpression, createTypeOperatorNode, createTypeParameterDeclaration, createTypeParenthesizedNode, createTypeReferenceNode, syntaxKindKeyword, toExpression, toParameterDeclarations, toTypeParameters };
|
|
10
26
|
}
|
|
@@ -514,22 +530,6 @@ type LazyOrAsync<T$1> = T$1 | (() => T$1) | (() => Promise<T$1>);
|
|
|
514
530
|
*/
|
|
515
531
|
type MaybeArray<T$1> = T$1 | ReadonlyArray<T$1>;
|
|
516
532
|
//#endregion
|
|
517
|
-
//#region src/openApi/shared/types/openapi-spec-extensions.d.ts
|
|
518
|
-
interface EnumExtensions {
|
|
519
|
-
/**
|
|
520
|
-
* `x-enum-descriptions` are {@link https://stackoverflow.com/a/66471626 supported} by OpenAPI Generator.
|
|
521
|
-
*/
|
|
522
|
-
'x-enum-descriptions'?: ReadonlyArray<string>;
|
|
523
|
-
/**
|
|
524
|
-
* `x-enum-varnames` are {@link https://stackoverflow.com/a/66471626 supported} by OpenAPI Generator.
|
|
525
|
-
*/
|
|
526
|
-
'x-enum-varnames'?: ReadonlyArray<string>;
|
|
527
|
-
/**
|
|
528
|
-
* {@link https://github.com/RicoSuter/NSwag NSwag} generates `x-enumNames` field containing custom enum names.
|
|
529
|
-
*/
|
|
530
|
-
'x-enumNames'?: ReadonlyArray<string>;
|
|
531
|
-
}
|
|
532
|
-
//#endregion
|
|
533
533
|
//#region src/openApi/3.1.x/types/spec.d.ts
|
|
534
534
|
/**
|
|
535
535
|
* This is the root object of the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#openapi-document OpenAPI document}.
|
|
@@ -2946,9 +2946,87 @@ type Package = {
|
|
|
2946
2946
|
satisfies: (nameOrVersion: string | SemVer, range: string, optionsOrLoose?: boolean | RangeOptions) => boolean;
|
|
2947
2947
|
};
|
|
2948
2948
|
//#endregion
|
|
2949
|
-
//#region src/
|
|
2950
|
-
|
|
2951
|
-
|
|
2949
|
+
//#region src/utils/logger.d.ts
|
|
2950
|
+
declare class Logger {
|
|
2951
|
+
private events;
|
|
2952
|
+
private end;
|
|
2953
|
+
report(print?: boolean): PerformanceMeasure | undefined;
|
|
2954
|
+
private reportEvent;
|
|
2955
|
+
private start;
|
|
2956
|
+
private storeEvent;
|
|
2957
|
+
timeEvent(name: string): {
|
|
2958
|
+
mark: PerformanceMark;
|
|
2959
|
+
timeEnd: () => void;
|
|
2960
|
+
};
|
|
2961
|
+
}
|
|
2962
|
+
//#endregion
|
|
2963
|
+
//#region src/openApi/shared/utils/graph.d.ts
|
|
2964
|
+
/**
|
|
2965
|
+
* Represents the possible access scopes for OpenAPI nodes.
|
|
2966
|
+
* - 'normal': Default scope for regular nodes.
|
|
2967
|
+
* - 'read': Node is read-only (e.g., readOnly: true).
|
|
2968
|
+
* - 'write': Node is write-only (e.g., writeOnly: true).
|
|
2969
|
+
*/
|
|
2970
|
+
type Scope = 'normal' | 'read' | 'write';
|
|
2971
|
+
/**
|
|
2972
|
+
* Information about a node in the OpenAPI graph.
|
|
2973
|
+
*
|
|
2974
|
+
* @property deprecated - Whether the node is deprecated. Optional.
|
|
2975
|
+
* @property key - The property name or array index in the parent, or null for root.
|
|
2976
|
+
* @property node - The actual object at this pointer in the spec.
|
|
2977
|
+
* @property parentPointer - The JSON Pointer of the parent node, or null for root.
|
|
2978
|
+
* @property scopes - The set of access scopes for this node, if any. Optional.
|
|
2979
|
+
* @property tags - The set of tags for this node, if any. Optional.
|
|
2980
|
+
*/
|
|
2981
|
+
type NodeInfo = {
|
|
2982
|
+
/** Whether the node is deprecated. Optional. */
|
|
2983
|
+
deprecated?: boolean;
|
|
2984
|
+
/** The property name or array index in the parent, or null for root. */
|
|
2985
|
+
key: string | number | null;
|
|
2986
|
+
/** The actual object at this pointer in the spec. */
|
|
2987
|
+
node: unknown;
|
|
2988
|
+
/** The JSON Pointer of the parent node, or null for root. */
|
|
2989
|
+
parentPointer: string | null;
|
|
2990
|
+
/** The set of access scopes for this node, if any. Optional. */
|
|
2991
|
+
scopes?: Set<Scope>;
|
|
2992
|
+
/** The set of tags for this node, if any. Optional. */
|
|
2993
|
+
tags?: Set<string>;
|
|
2994
|
+
};
|
|
2995
|
+
/**
|
|
2996
|
+
* The main graph structure for OpenAPI node analysis.
|
|
2997
|
+
*
|
|
2998
|
+
* @property nodeDependencies - For each node with at least one dependency, the set of normalized JSON Pointers it references via $ref. Nodes with no dependencies are omitted.
|
|
2999
|
+
* @property nodes - Map from normalized JSON Pointer to NodeInfo for every node in the spec.
|
|
3000
|
+
* @property reverseNodeDependencies - For each node with at least one dependent, the set of nodes that reference it via $ref. Nodes with no dependents are omitted.
|
|
3001
|
+
*/
|
|
3002
|
+
type Graph = {
|
|
3003
|
+
/**
|
|
3004
|
+
* For each node with at least one dependency, the set of normalized JSON Pointers it references via $ref.
|
|
3005
|
+
* Nodes with no dependencies are omitted from this map.
|
|
3006
|
+
*/
|
|
3007
|
+
nodeDependencies: Map<string, Set<string>>;
|
|
3008
|
+
/**
|
|
3009
|
+
* Map from normalized JSON Pointer to NodeInfo for every node in the spec.
|
|
3010
|
+
*/
|
|
3011
|
+
nodes: Map<string, NodeInfo>;
|
|
3012
|
+
/**
|
|
3013
|
+
* For each node with at least one dependent, the set of nodes that reference it via $ref.
|
|
3014
|
+
* Nodes with no dependents are omitted from this map.
|
|
3015
|
+
*/
|
|
3016
|
+
reverseNodeDependencies: Map<string, Set<string>>;
|
|
3017
|
+
/**
|
|
3018
|
+
* For each node, the set of direct $ref targets that appear anywhere inside the node's
|
|
3019
|
+
* subtree (the node itself and its children). This is populated during graph construction
|
|
3020
|
+
* and is used to compute top-level dependency relationships where $ref may be attached to
|
|
3021
|
+
* child pointers instead of the parent.
|
|
3022
|
+
*/
|
|
3023
|
+
subtreeDependencies: Map<string, Set<string>>;
|
|
3024
|
+
/**
|
|
3025
|
+
* For each node, the set of all (transitive) normalized JSON Pointers it references via $ref anywhere in its subtree.
|
|
3026
|
+
* This includes both direct and indirect dependencies, making it useful for filtering, codegen, and tree-shaking.
|
|
3027
|
+
*/
|
|
3028
|
+
transitiveDependencies: Map<string, Set<string>>;
|
|
3029
|
+
};
|
|
2952
3030
|
//#endregion
|
|
2953
3031
|
//#region src/config/utils/config.d.ts
|
|
2954
3032
|
type ObjectType<T$1> = Extract<T$1, Record<string, any>> extends never ? Record<string, any> : Extract<T$1, Record<string, any>>;
|
|
@@ -2972,6 +3050,148 @@ type ValueToObject = <T extends undefined | string | boolean | number | ((...arg
|
|
|
2972
3050
|
mappers: MappersType<T>;
|
|
2973
3051
|
})) => PlainObject<T>;
|
|
2974
3052
|
//#endregion
|
|
3053
|
+
//#region src/openApi/common/interfaces/Dictionary.d.ts
|
|
3054
|
+
interface Dictionary<T$1 = unknown> {
|
|
3055
|
+
[key: string]: T$1;
|
|
3056
|
+
}
|
|
3057
|
+
//#endregion
|
|
3058
|
+
//#region src/openApi/v3/interfaces/OpenApiReference.d.ts
|
|
3059
|
+
/**
|
|
3060
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#reference-object
|
|
3061
|
+
*/
|
|
3062
|
+
interface OpenApiReference {
|
|
3063
|
+
$ref?: string;
|
|
3064
|
+
}
|
|
3065
|
+
//#endregion
|
|
3066
|
+
//#region src/openApi/v3/interfaces/OpenApiExample.d.ts
|
|
3067
|
+
/**
|
|
3068
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object
|
|
3069
|
+
*/
|
|
3070
|
+
interface OpenApiExample extends OpenApiReference {
|
|
3071
|
+
description?: string;
|
|
3072
|
+
externalValue?: string;
|
|
3073
|
+
summary?: string;
|
|
3074
|
+
value?: unknown;
|
|
3075
|
+
}
|
|
3076
|
+
//#endregion
|
|
3077
|
+
//#region src/openApi/common/interfaces/WithEnumExtension.d.ts
|
|
3078
|
+
interface WithEnumExtension {
|
|
3079
|
+
'x-enum-descriptions'?: ReadonlyArray<string>;
|
|
3080
|
+
'x-enum-varnames'?: ReadonlyArray<string>;
|
|
3081
|
+
'x-enumNames'?: ReadonlyArray<string>;
|
|
3082
|
+
}
|
|
3083
|
+
//#endregion
|
|
3084
|
+
//#region src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts
|
|
3085
|
+
/**
|
|
3086
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminator-object
|
|
3087
|
+
*/
|
|
3088
|
+
interface OpenApiDiscriminator {
|
|
3089
|
+
mapping?: Dictionary<string>;
|
|
3090
|
+
propertyName: string;
|
|
3091
|
+
}
|
|
3092
|
+
//#endregion
|
|
3093
|
+
//#region src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts
|
|
3094
|
+
/**
|
|
3095
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#external-documentation-object
|
|
3096
|
+
*/
|
|
3097
|
+
interface OpenApiExternalDocs {
|
|
3098
|
+
description?: string;
|
|
3099
|
+
url: string;
|
|
3100
|
+
}
|
|
3101
|
+
//#endregion
|
|
3102
|
+
//#region src/openApi/v3/interfaces/OpenApiXml.d.ts
|
|
3103
|
+
/**
|
|
3104
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xml-object
|
|
3105
|
+
*/
|
|
3106
|
+
interface OpenApiXml$1 {
|
|
3107
|
+
attribute?: boolean;
|
|
3108
|
+
name?: string;
|
|
3109
|
+
namespace?: string;
|
|
3110
|
+
prefix?: string;
|
|
3111
|
+
wrapped?: boolean;
|
|
3112
|
+
}
|
|
3113
|
+
//#endregion
|
|
3114
|
+
//#region src/openApi/v3/interfaces/OpenApiSchema.d.ts
|
|
3115
|
+
/**
|
|
3116
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
|
|
3117
|
+
*/
|
|
3118
|
+
interface OpenApiSchema$1 extends OpenApiReference, WithEnumExtension {
|
|
3119
|
+
additionalProperties?: boolean | OpenApiSchema$1;
|
|
3120
|
+
allOf?: OpenApiSchema$1[];
|
|
3121
|
+
anyOf?: OpenApiSchema$1[];
|
|
3122
|
+
const?: string | number | boolean | null;
|
|
3123
|
+
default?: unknown;
|
|
3124
|
+
deprecated?: boolean;
|
|
3125
|
+
description?: string;
|
|
3126
|
+
discriminator?: OpenApiDiscriminator;
|
|
3127
|
+
enum?: (string | number)[];
|
|
3128
|
+
example?: unknown;
|
|
3129
|
+
exclusiveMaximum?: boolean;
|
|
3130
|
+
exclusiveMinimum?: boolean;
|
|
3131
|
+
externalDocs?: OpenApiExternalDocs;
|
|
3132
|
+
format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
|
|
3133
|
+
items?: OpenApiSchema$1;
|
|
3134
|
+
maxItems?: number;
|
|
3135
|
+
maxLength?: number;
|
|
3136
|
+
maxProperties?: number;
|
|
3137
|
+
maximum?: number;
|
|
3138
|
+
minItems?: number;
|
|
3139
|
+
minLength?: number;
|
|
3140
|
+
minProperties?: number;
|
|
3141
|
+
minimum?: number;
|
|
3142
|
+
multipleOf?: number;
|
|
3143
|
+
not?: OpenApiSchema$1[];
|
|
3144
|
+
nullable?: boolean;
|
|
3145
|
+
oneOf?: OpenApiSchema$1[];
|
|
3146
|
+
pattern?: string;
|
|
3147
|
+
prefixItems?: OpenApiSchema$1[];
|
|
3148
|
+
properties?: Dictionary<OpenApiSchema$1>;
|
|
3149
|
+
readOnly?: boolean;
|
|
3150
|
+
required?: string[];
|
|
3151
|
+
title?: string;
|
|
3152
|
+
type?: string | string[];
|
|
3153
|
+
uniqueItems?: boolean;
|
|
3154
|
+
writeOnly?: boolean;
|
|
3155
|
+
xml?: OpenApiXml$1;
|
|
3156
|
+
}
|
|
3157
|
+
//#endregion
|
|
3158
|
+
//#region src/openApi/v3/interfaces/OpenApiParameter.d.ts
|
|
3159
|
+
/**
|
|
3160
|
+
* add only one type for now as that's needed to resolve the reported issue,
|
|
3161
|
+
* more types should be added though
|
|
3162
|
+
* {@link https://github.com/hey-api/openapi-ts/issues/612}
|
|
3163
|
+
*/
|
|
3164
|
+
type MediaType = 'application/json';
|
|
3165
|
+
/**
|
|
3166
|
+
* encoding interface should be added, not adding it for now as it's not needed
|
|
3167
|
+
* to resolve the issue reported
|
|
3168
|
+
* {@link https://github.com/hey-api/openapi-ts/issues/612}
|
|
3169
|
+
*/
|
|
3170
|
+
interface MediaTypeObject$1 {
|
|
3171
|
+
example?: unknown;
|
|
3172
|
+
examples?: Dictionary<OpenApiExample>;
|
|
3173
|
+
schema: OpenApiSchema$1;
|
|
3174
|
+
}
|
|
3175
|
+
/**
|
|
3176
|
+
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object
|
|
3177
|
+
*/
|
|
3178
|
+
interface OpenApiParameter extends OpenApiReference {
|
|
3179
|
+
allowEmptyValue?: boolean;
|
|
3180
|
+
allowReserved?: boolean;
|
|
3181
|
+
content?: Record<MediaType, MediaTypeObject$1>;
|
|
3182
|
+
deprecated?: boolean;
|
|
3183
|
+
description?: string;
|
|
3184
|
+
example?: unknown;
|
|
3185
|
+
examples?: Dictionary<OpenApiExample>;
|
|
3186
|
+
explode?: boolean;
|
|
3187
|
+
in: 'cookie' | 'formData' | 'header' | 'path' | 'query';
|
|
3188
|
+
name: string;
|
|
3189
|
+
nullable?: boolean;
|
|
3190
|
+
required?: boolean;
|
|
3191
|
+
schema?: OpenApiSchema$1;
|
|
3192
|
+
style?: string;
|
|
3193
|
+
}
|
|
3194
|
+
//#endregion
|
|
2975
3195
|
//#region src/types/input.d.ts
|
|
2976
3196
|
type JsonSchema = Record<string, unknown>;
|
|
2977
3197
|
type ApiRegistryShorthands = `https://get.heyapi.dev/${string}/${string}` | `${string}/${string}` | `readme:@${string}/${string}#${string}` | `readme:${string}` | `scalar:@${string}/${string}`;
|
|
@@ -3189,6 +3409,10 @@ type Logs = {
|
|
|
3189
3409
|
path?: string;
|
|
3190
3410
|
};
|
|
3191
3411
|
//#endregion
|
|
3412
|
+
//#region src/types/case.d.ts
|
|
3413
|
+
type StringCase = 'camelCase' | 'PascalCase' | 'preserve' | 'snake_case' | 'SCREAMING_SNAKE_CASE';
|
|
3414
|
+
type StringName = string | ((name: string) => string);
|
|
3415
|
+
//#endregion
|
|
3192
3416
|
//#region src/types/output.d.ts
|
|
3193
3417
|
type Formatters = 'biome' | 'prettier';
|
|
3194
3418
|
type Linters = 'biome' | 'eslint' | 'oxlint';
|
|
@@ -5452,7 +5676,7 @@ interface LinkObject {
|
|
|
5452
5676
|
*
|
|
5453
5677
|
* TODO: examples
|
|
5454
5678
|
*/
|
|
5455
|
-
interface MediaTypeObject
|
|
5679
|
+
interface MediaTypeObject {
|
|
5456
5680
|
/**
|
|
5457
5681
|
* A map between a property name and its encoding information. The key, being the property name, MUST exist in the schema as a property. The `encoding` field SHALL only apply to {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#request-body-object Request Body Objects}, and only when the media type is `multipart` or `application/x-www-form-urlencoded`. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object.
|
|
5458
5682
|
*/
|
|
@@ -5631,7 +5855,7 @@ interface ParameterObject$1 {
|
|
|
5631
5855
|
/**
|
|
5632
5856
|
* A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.
|
|
5633
5857
|
*/
|
|
5634
|
-
content?: Record<string, MediaTypeObject
|
|
5858
|
+
content?: Record<string, MediaTypeObject>;
|
|
5635
5859
|
/**
|
|
5636
5860
|
* Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is `false`.
|
|
5637
5861
|
*/
|
|
@@ -5794,7 +6018,7 @@ interface RequestBodyObject$1 {
|
|
|
5794
6018
|
/**
|
|
5795
6019
|
* **REQUIRED**. The content of the request body. The key is a media type or {@link https://tools.ietf.org/html/rfc7231#appendix-D media type range} and the value describes it. For requests that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"`
|
|
5796
6020
|
*/
|
|
5797
|
-
content: Record<string, MediaTypeObject
|
|
6021
|
+
content: Record<string, MediaTypeObject>;
|
|
5798
6022
|
/**
|
|
5799
6023
|
* A brief description of the request body. This could contain examples of use. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
|
|
5800
6024
|
*/
|
|
@@ -5815,7 +6039,7 @@ interface ResponseObject$1 {
|
|
|
5815
6039
|
/**
|
|
5816
6040
|
* A map containing descriptions of potential response payloads. The key is a media type or {@link https://tools.ietf.org/html/rfc7231#appendix-D media type range} and the value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g. `"text/plain"` overrides `"text/*"`
|
|
5817
6041
|
*/
|
|
5818
|
-
content?: Record<string, MediaTypeObject
|
|
6042
|
+
content?: Record<string, MediaTypeObject>;
|
|
5819
6043
|
/**
|
|
5820
6044
|
* **REQUIRED**. A description of the response. {@link https://spec.commonmark.org/ CommonMark syntax} MAY be used for rich text representation.
|
|
5821
6045
|
*/
|
|
@@ -6920,7 +7144,7 @@ type Patch = {
|
|
|
6920
7144
|
};
|
|
6921
7145
|
//#endregion
|
|
6922
7146
|
//#region src/types/config.d.ts
|
|
6923
|
-
interface UserConfig$
|
|
7147
|
+
interface UserConfig$27 {
|
|
6924
7148
|
/**
|
|
6925
7149
|
* Path to the config file. Set this value if you don't use the default
|
|
6926
7150
|
* config file name, or it's not located in the project root.
|
|
@@ -7037,7 +7261,7 @@ interface UserConfig$26 {
|
|
|
7037
7261
|
*/
|
|
7038
7262
|
watch?: boolean | number | Watch;
|
|
7039
7263
|
}
|
|
7040
|
-
type Config$1 = Omit<Required<UserConfig$
|
|
7264
|
+
type Config$1 = Omit<Required<UserConfig$27>, 'base' | 'input' | 'logs' | 'name' | 'output' | 'parser' | 'plugins' | 'request' | 'watch'> & Pick<UserConfig$27, 'base' | 'name' | 'request'> & {
|
|
7041
7265
|
/**
|
|
7042
7266
|
* Path to the input specification.
|
|
7043
7267
|
*/
|
|
@@ -7056,173 +7280,17 @@ type Config$1 = Omit<Required<UserConfig$26>, 'base' | 'input' | 'logs' | 'name'
|
|
|
7056
7280
|
plugins: { [K in PluginNames]?: Plugin.ConfigWithName<PluginConfigMap[K]> };
|
|
7057
7281
|
};
|
|
7058
7282
|
//#endregion
|
|
7059
|
-
//#region src/
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
private start;
|
|
7066
|
-
private storeEvent;
|
|
7067
|
-
timeEvent(name: string): {
|
|
7068
|
-
mark: PerformanceMark;
|
|
7069
|
-
timeEnd: () => void;
|
|
7070
|
-
};
|
|
7071
|
-
}
|
|
7072
|
-
//#endregion
|
|
7073
|
-
//#region src/openApi/common/interfaces/Dictionary.d.ts
|
|
7074
|
-
interface Dictionary<T$1 = unknown> {
|
|
7075
|
-
[key: string]: T$1;
|
|
7283
|
+
//#region src/openApi/common/interfaces/client.d.ts
|
|
7284
|
+
interface Enum {
|
|
7285
|
+
customDescription?: string;
|
|
7286
|
+
customName?: string;
|
|
7287
|
+
description?: string;
|
|
7288
|
+
value: string | number;
|
|
7076
7289
|
}
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
*/
|
|
7082
|
-
interface OpenApiReference {
|
|
7083
|
-
$ref?: string;
|
|
7084
|
-
}
|
|
7085
|
-
//#endregion
|
|
7086
|
-
//#region src/openApi/v3/interfaces/OpenApiExample.d.ts
|
|
7087
|
-
/**
|
|
7088
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object
|
|
7089
|
-
*/
|
|
7090
|
-
interface OpenApiExample extends OpenApiReference {
|
|
7091
|
-
description?: string;
|
|
7092
|
-
externalValue?: string;
|
|
7093
|
-
summary?: string;
|
|
7094
|
-
value?: unknown;
|
|
7095
|
-
}
|
|
7096
|
-
//#endregion
|
|
7097
|
-
//#region src/openApi/common/interfaces/WithEnumExtension.d.ts
|
|
7098
|
-
interface WithEnumExtension {
|
|
7099
|
-
'x-enum-descriptions'?: ReadonlyArray<string>;
|
|
7100
|
-
'x-enum-varnames'?: ReadonlyArray<string>;
|
|
7101
|
-
'x-enumNames'?: ReadonlyArray<string>;
|
|
7102
|
-
}
|
|
7103
|
-
//#endregion
|
|
7104
|
-
//#region src/openApi/v3/interfaces/OpenApiDiscriminator.d.ts
|
|
7105
|
-
/**
|
|
7106
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminator-object
|
|
7107
|
-
*/
|
|
7108
|
-
interface OpenApiDiscriminator {
|
|
7109
|
-
mapping?: Dictionary<string>;
|
|
7110
|
-
propertyName: string;
|
|
7111
|
-
}
|
|
7112
|
-
//#endregion
|
|
7113
|
-
//#region src/openApi/v3/interfaces/OpenApiExternalDocs.d.ts
|
|
7114
|
-
/**
|
|
7115
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#external-documentation-object
|
|
7116
|
-
*/
|
|
7117
|
-
interface OpenApiExternalDocs {
|
|
7118
|
-
description?: string;
|
|
7119
|
-
url: string;
|
|
7120
|
-
}
|
|
7121
|
-
//#endregion
|
|
7122
|
-
//#region src/openApi/v3/interfaces/OpenApiXml.d.ts
|
|
7123
|
-
/**
|
|
7124
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#xml-object
|
|
7125
|
-
*/
|
|
7126
|
-
interface OpenApiXml$1 {
|
|
7127
|
-
attribute?: boolean;
|
|
7128
|
-
name?: string;
|
|
7129
|
-
namespace?: string;
|
|
7130
|
-
prefix?: string;
|
|
7131
|
-
wrapped?: boolean;
|
|
7132
|
-
}
|
|
7133
|
-
//#endregion
|
|
7134
|
-
//#region src/openApi/v3/interfaces/OpenApiSchema.d.ts
|
|
7135
|
-
/**
|
|
7136
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
|
|
7137
|
-
*/
|
|
7138
|
-
interface OpenApiSchema$1 extends OpenApiReference, WithEnumExtension {
|
|
7139
|
-
additionalProperties?: boolean | OpenApiSchema$1;
|
|
7140
|
-
allOf?: OpenApiSchema$1[];
|
|
7141
|
-
anyOf?: OpenApiSchema$1[];
|
|
7142
|
-
const?: string | number | boolean | null;
|
|
7143
|
-
default?: unknown;
|
|
7144
|
-
deprecated?: boolean;
|
|
7145
|
-
description?: string;
|
|
7146
|
-
discriminator?: OpenApiDiscriminator;
|
|
7147
|
-
enum?: (string | number)[];
|
|
7148
|
-
example?: unknown;
|
|
7149
|
-
exclusiveMaximum?: boolean;
|
|
7150
|
-
exclusiveMinimum?: boolean;
|
|
7151
|
-
externalDocs?: OpenApiExternalDocs;
|
|
7152
|
-
format?: 'binary' | 'boolean' | 'byte' | 'date-time' | 'date' | 'double' | 'float' | 'int32' | 'int64' | 'password' | 'string';
|
|
7153
|
-
items?: OpenApiSchema$1;
|
|
7154
|
-
maxItems?: number;
|
|
7155
|
-
maxLength?: number;
|
|
7156
|
-
maxProperties?: number;
|
|
7157
|
-
maximum?: number;
|
|
7158
|
-
minItems?: number;
|
|
7159
|
-
minLength?: number;
|
|
7160
|
-
minProperties?: number;
|
|
7161
|
-
minimum?: number;
|
|
7162
|
-
multipleOf?: number;
|
|
7163
|
-
not?: OpenApiSchema$1[];
|
|
7164
|
-
nullable?: boolean;
|
|
7165
|
-
oneOf?: OpenApiSchema$1[];
|
|
7166
|
-
pattern?: string;
|
|
7167
|
-
prefixItems?: OpenApiSchema$1[];
|
|
7168
|
-
properties?: Dictionary<OpenApiSchema$1>;
|
|
7169
|
-
readOnly?: boolean;
|
|
7170
|
-
required?: string[];
|
|
7171
|
-
title?: string;
|
|
7172
|
-
type?: string | string[];
|
|
7173
|
-
uniqueItems?: boolean;
|
|
7174
|
-
writeOnly?: boolean;
|
|
7175
|
-
xml?: OpenApiXml$1;
|
|
7176
|
-
}
|
|
7177
|
-
//#endregion
|
|
7178
|
-
//#region src/openApi/v3/interfaces/OpenApiParameter.d.ts
|
|
7179
|
-
/**
|
|
7180
|
-
* add only one type for now as that's needed to resolve the reported issue,
|
|
7181
|
-
* more types should be added though
|
|
7182
|
-
* {@link https://github.com/hey-api/openapi-ts/issues/612}
|
|
7183
|
-
*/
|
|
7184
|
-
type MediaType = 'application/json';
|
|
7185
|
-
/**
|
|
7186
|
-
* encoding interface should be added, not adding it for now as it's not needed
|
|
7187
|
-
* to resolve the issue reported
|
|
7188
|
-
* {@link https://github.com/hey-api/openapi-ts/issues/612}
|
|
7189
|
-
*/
|
|
7190
|
-
interface MediaTypeObject {
|
|
7191
|
-
example?: unknown;
|
|
7192
|
-
examples?: Dictionary<OpenApiExample>;
|
|
7193
|
-
schema: OpenApiSchema$1;
|
|
7194
|
-
}
|
|
7195
|
-
/**
|
|
7196
|
-
* {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-object
|
|
7197
|
-
*/
|
|
7198
|
-
interface OpenApiParameter extends OpenApiReference {
|
|
7199
|
-
allowEmptyValue?: boolean;
|
|
7200
|
-
allowReserved?: boolean;
|
|
7201
|
-
content?: Record<MediaType, MediaTypeObject>;
|
|
7202
|
-
deprecated?: boolean;
|
|
7203
|
-
description?: string;
|
|
7204
|
-
example?: unknown;
|
|
7205
|
-
examples?: Dictionary<OpenApiExample>;
|
|
7206
|
-
explode?: boolean;
|
|
7207
|
-
in: 'cookie' | 'formData' | 'header' | 'path' | 'query';
|
|
7208
|
-
name: string;
|
|
7209
|
-
nullable?: boolean;
|
|
7210
|
-
required?: boolean;
|
|
7211
|
-
schema?: OpenApiSchema$1;
|
|
7212
|
-
style?: string;
|
|
7213
|
-
}
|
|
7214
|
-
//#endregion
|
|
7215
|
-
//#region src/openApi/common/interfaces/client.d.ts
|
|
7216
|
-
interface Enum {
|
|
7217
|
-
customDescription?: string;
|
|
7218
|
-
customName?: string;
|
|
7219
|
-
description?: string;
|
|
7220
|
-
value: string | number;
|
|
7221
|
-
}
|
|
7222
|
-
interface OperationParameter extends Model {
|
|
7223
|
-
in: 'body' | 'cookie' | 'formData' | 'header' | 'path' | 'query';
|
|
7224
|
-
mediaType: string | null;
|
|
7225
|
-
prop: string;
|
|
7290
|
+
interface OperationParameter extends Model {
|
|
7291
|
+
in: 'body' | 'cookie' | 'formData' | 'header' | 'path' | 'query';
|
|
7292
|
+
mediaType: string | null;
|
|
7293
|
+
prop: string;
|
|
7226
7294
|
}
|
|
7227
7295
|
interface OperationParameters extends Pick<Model, '$refs' | 'imports'> {
|
|
7228
7296
|
parameters: OperationParameter[];
|
|
@@ -7937,16 +8005,9 @@ declare const parseOpenApiSpec: ({
|
|
|
7937
8005
|
spec: unknown;
|
|
7938
8006
|
}) => IR$1.Context | undefined;
|
|
7939
8007
|
//#endregion
|
|
7940
|
-
//#region src/
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
}
|
|
7944
|
-
interface Service extends Pick<Model, '$refs' | 'imports' | 'name'> {
|
|
7945
|
-
operations: Operation[];
|
|
7946
|
-
}
|
|
7947
|
-
interface Client$1 extends Omit<Client$2, 'operations'> {
|
|
7948
|
-
services: Service[];
|
|
7949
|
-
}
|
|
8008
|
+
//#region src/ir/graph.d.ts
|
|
8009
|
+
declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody", "schema", "server", "webhook"];
|
|
8010
|
+
type IrTopLevelKind = (typeof irTopLevelKinds)[number];
|
|
7950
8011
|
//#endregion
|
|
7951
8012
|
//#region src/plugins/shared/types/instance.d.ts
|
|
7952
8013
|
type WalkEvents = {
|
|
@@ -7954,40 +8015,57 @@ type WalkEvents = {
|
|
|
7954
8015
|
method: keyof IR$1.PathItemObject;
|
|
7955
8016
|
operation: IR$1.OperationObject;
|
|
7956
8017
|
path: string;
|
|
7957
|
-
type: 'operation'
|
|
8018
|
+
type: Extract<IrTopLevelKind, 'operation'>;
|
|
7958
8019
|
} | {
|
|
7959
8020
|
$ref: string;
|
|
7960
8021
|
_path: ReadonlyArray<string | number>;
|
|
7961
8022
|
name: string;
|
|
7962
8023
|
parameter: IR$1.ParameterObject;
|
|
7963
|
-
type: 'parameter'
|
|
8024
|
+
type: Extract<IrTopLevelKind, 'parameter'>;
|
|
7964
8025
|
} | {
|
|
7965
8026
|
$ref: string;
|
|
7966
8027
|
_path: ReadonlyArray<string | number>;
|
|
7967
8028
|
name: string;
|
|
7968
8029
|
requestBody: IR$1.RequestBodyObject;
|
|
7969
|
-
type: 'requestBody'
|
|
8030
|
+
type: Extract<IrTopLevelKind, 'requestBody'>;
|
|
7970
8031
|
} | {
|
|
7971
8032
|
$ref: string;
|
|
7972
8033
|
_path: ReadonlyArray<string | number>;
|
|
7973
8034
|
name: string;
|
|
7974
8035
|
schema: IR$1.SchemaObject;
|
|
7975
|
-
type: 'schema'
|
|
8036
|
+
type: Extract<IrTopLevelKind, 'schema'>;
|
|
7976
8037
|
} | {
|
|
7977
8038
|
_path: ReadonlyArray<string | number>;
|
|
7978
8039
|
server: IR$1.ServerObject;
|
|
7979
|
-
type: 'server'
|
|
8040
|
+
type: Extract<IrTopLevelKind, 'server'>;
|
|
7980
8041
|
} | {
|
|
7981
8042
|
_path: ReadonlyArray<string | number>;
|
|
7982
8043
|
key: string;
|
|
7983
8044
|
method: keyof IR$1.PathItemObject;
|
|
7984
8045
|
operation: IR$1.OperationObject;
|
|
7985
|
-
type: 'webhook'
|
|
8046
|
+
type: Extract<IrTopLevelKind, 'webhook'>;
|
|
7986
8047
|
};
|
|
7987
|
-
type
|
|
7988
|
-
type WalkEvent<T$1 extends WalkEventType = WalkEventType> = Extract<WalkEvents, {
|
|
8048
|
+
type WalkEvent<T$1 extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents, {
|
|
7989
8049
|
type: T$1;
|
|
7990
8050
|
}>;
|
|
8051
|
+
type WalkOptions = {
|
|
8052
|
+
/**
|
|
8053
|
+
* Order of walking schemas.
|
|
8054
|
+
*
|
|
8055
|
+
* The "declarations" option ensures that schemas are walked in the order
|
|
8056
|
+
* they are declared in the input document. This is useful for scenarios where
|
|
8057
|
+
* the order of declaration matters, such as when generating code that relies
|
|
8058
|
+
* on the sequence of schema definitions.
|
|
8059
|
+
*
|
|
8060
|
+
* The "topological" option ensures that schemas are walked in an order
|
|
8061
|
+
* where dependencies are visited before the schemas that depend on them.
|
|
8062
|
+
* This is useful for scenarios where you need to process or generate
|
|
8063
|
+
* schemas in a way that respects their interdependencies.
|
|
8064
|
+
*
|
|
8065
|
+
* @default 'topological'
|
|
8066
|
+
*/
|
|
8067
|
+
order?: 'declarations' | 'topological';
|
|
8068
|
+
};
|
|
7991
8069
|
//#endregion
|
|
7992
8070
|
//#region src/plugins/shared/utils/instance.d.ts
|
|
7993
8071
|
declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
|
|
@@ -8035,7 +8113,8 @@ declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
|
|
|
8035
8113
|
* }
|
|
8036
8114
|
* });
|
|
8037
8115
|
*/
|
|
8038
|
-
forEach<T extends
|
|
8116
|
+
forEach<T extends IrTopLevelKind = IrTopLevelKind>(...args: [...events: ReadonlyArray<T$1>, callback: (event: WalkEvent<T$1>) => void]): void;
|
|
8117
|
+
forEach<T extends IrTopLevelKind = IrTopLevelKind>(...args: [...events: ReadonlyArray<T$1>, callback: (event: WalkEvent<T$1>) => void, options: WalkOptions]): void;
|
|
8039
8118
|
private forEachError;
|
|
8040
8119
|
/**
|
|
8041
8120
|
* Retrieves a registered plugin instance by its name from the context. This
|
|
@@ -8069,6 +8148,7 @@ declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
|
|
|
8069
8148
|
};
|
|
8070
8149
|
};
|
|
8071
8150
|
private isOperationKind;
|
|
8151
|
+
isSymbolRegistered(symbolIdOrSelector: number | Selector): boolean;
|
|
8072
8152
|
referenceSymbol(symbolIdOrSelector: number | Selector): Symbol;
|
|
8073
8153
|
registerSymbol(symbol: SymbolIn): Symbol;
|
|
8074
8154
|
/**
|
|
@@ -8079,9 +8159,20 @@ declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
|
|
|
8079
8159
|
private symbolToId;
|
|
8080
8160
|
}
|
|
8081
8161
|
//#endregion
|
|
8162
|
+
//#region src/types/client.d.ts
|
|
8163
|
+
interface Operation extends Omit<Operation$1, 'tags'> {
|
|
8164
|
+
service: string;
|
|
8165
|
+
}
|
|
8166
|
+
interface Service extends Pick<Model, '$refs' | 'imports' | 'name'> {
|
|
8167
|
+
operations: Operation[];
|
|
8168
|
+
}
|
|
8169
|
+
interface Client$1 extends Omit<Client$2, 'operations'> {
|
|
8170
|
+
services: Service[];
|
|
8171
|
+
}
|
|
8172
|
+
//#endregion
|
|
8082
8173
|
//#region src/plugins/types.d.ts
|
|
8083
8174
|
type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch' | 'legacy/angular' | 'legacy/axios' | 'legacy/fetch' | 'legacy/node' | 'legacy/xhr';
|
|
8084
|
-
type PluginValidatorNames = 'valibot' | 'zod';
|
|
8175
|
+
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
8085
8176
|
type PluginNames = PluginClientNames | '@angular/common' | '@hey-api/schemas' | '@hey-api/sdk' | '@hey-api/transformers' | '@hey-api/typescript' | '@pinia/colada' | '@tanstack/angular-query-experimental' | '@tanstack/react-query' | '@tanstack/solid-query' | '@tanstack/svelte-query' | '@tanstack/vue-query' | 'fastify' | PluginValidatorNames;
|
|
8086
8177
|
type AnyPluginName = PluginNames | (string & {});
|
|
8087
8178
|
type PluginTag = 'client' | 'transformer' | 'validator';
|
|
@@ -8175,12 +8266,12 @@ declare namespace Plugin {
|
|
|
8175
8266
|
*/
|
|
8176
8267
|
export type UserConfig<Config extends BaseConfig> = Omit<Config, 'output'>;
|
|
8177
8268
|
}
|
|
8178
|
-
type DefinePlugin<Config$
|
|
8179
|
-
Config: Plugin.Config<Plugin.Types<Config$
|
|
8269
|
+
type DefinePlugin<Config$15 extends BaseConfig = BaseConfig, ResolvedConfig$1 extends BaseConfig = Config$15, Api$1 extends BaseApi = never> = {
|
|
8270
|
+
Config: Plugin.Config<Plugin.Types<Config$15, ResolvedConfig$1, Api$1>>;
|
|
8180
8271
|
Handler: (args: {
|
|
8181
|
-
plugin: PluginInstance<Plugin.Types<Config$
|
|
8272
|
+
plugin: PluginInstance<Plugin.Types<Config$15, ResolvedConfig$1, Api$1>>;
|
|
8182
8273
|
}) => void;
|
|
8183
|
-
Instance: PluginInstance<Plugin.Types<Config$
|
|
8274
|
+
Instance: PluginInstance<Plugin.Types<Config$15, ResolvedConfig$1, Api$1>>;
|
|
8184
8275
|
/**
|
|
8185
8276
|
* Plugin implementation for legacy parser.
|
|
8186
8277
|
*
|
|
@@ -8190,14 +8281,14 @@ type DefinePlugin<Config$14 extends BaseConfig = BaseConfig, ResolvedConfig$1 ex
|
|
|
8190
8281
|
client: Client$1;
|
|
8191
8282
|
files: Files;
|
|
8192
8283
|
openApi: OpenApi;
|
|
8193
|
-
plugin: PluginInstance<Plugin.Types<Config$
|
|
8284
|
+
plugin: PluginInstance<Plugin.Types<Config$15, ResolvedConfig$1, Api$1>>;
|
|
8194
8285
|
}) => void;
|
|
8195
|
-
Types: Plugin.Types<Config$
|
|
8286
|
+
Types: Plugin.Types<Config$15, ResolvedConfig$1, Api$1>;
|
|
8196
8287
|
};
|
|
8197
8288
|
//#endregion
|
|
8198
8289
|
//#region src/plugins/@angular/common/api.d.ts
|
|
8199
|
-
type SelectorType$
|
|
8200
|
-
type IApi$
|
|
8290
|
+
type SelectorType$20 = 'class' | 'httpRequest' | 'httpResource' | 'HttpRequest' | 'inject' | 'Injectable';
|
|
8291
|
+
type IApi$20 = {
|
|
8201
8292
|
/**
|
|
8202
8293
|
* @param type Selector type.
|
|
8203
8294
|
* @param value Depends on `type`:
|
|
@@ -8209,11 +8300,11 @@ type IApi$19 = {
|
|
|
8209
8300
|
* - `Injectable`: never
|
|
8210
8301
|
* @returns Selector array
|
|
8211
8302
|
*/
|
|
8212
|
-
|
|
8303
|
+
selector: (type: SelectorType$20, value?: string) => Selector;
|
|
8213
8304
|
};
|
|
8214
8305
|
//#endregion
|
|
8215
8306
|
//#region src/plugins/@angular/common/types.d.ts
|
|
8216
|
-
type UserConfig$
|
|
8307
|
+
type UserConfig$26 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
|
|
8217
8308
|
/**
|
|
8218
8309
|
* Should the exports from the generated files be re-exported in the index
|
|
8219
8310
|
* barrel file?
|
|
@@ -8281,7 +8372,7 @@ type UserConfig$25 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
|
|
|
8281
8372
|
methodNameBuilder?: (operation: IR.OperationObject) => string;
|
|
8282
8373
|
};
|
|
8283
8374
|
};
|
|
8284
|
-
type Config$
|
|
8375
|
+
type Config$14 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
|
|
8285
8376
|
/**
|
|
8286
8377
|
* Should the exports from the generated files be re-exported in the index
|
|
8287
8378
|
* barrel file?
|
|
@@ -8344,22 +8435,22 @@ type Config$13 = Plugin.Name<'@angular/common'> & Plugin.Hooks & {
|
|
|
8344
8435
|
methodNameBuilder: (operation: IR.OperationObject) => string;
|
|
8345
8436
|
};
|
|
8346
8437
|
};
|
|
8347
|
-
type AngularCommonPlugin = DefinePlugin<UserConfig$
|
|
8438
|
+
type AngularCommonPlugin = DefinePlugin<UserConfig$26, Config$14, IApi$20>;
|
|
8348
8439
|
//#endregion
|
|
8349
8440
|
//#region src/plugins/@hey-api/client-axios/api.d.ts
|
|
8350
|
-
type SelectorType$
|
|
8351
|
-
type IApi$
|
|
8441
|
+
type SelectorType$19 = 'client';
|
|
8442
|
+
type IApi$19 = {
|
|
8352
8443
|
/**
|
|
8353
8444
|
* @param type Selector type.
|
|
8354
8445
|
* @param value Depends on `type`:
|
|
8355
8446
|
* - `client`: never
|
|
8356
8447
|
* @returns Selector array
|
|
8357
8448
|
*/
|
|
8358
|
-
|
|
8449
|
+
selector: (type: SelectorType$19, value?: string) => Selector;
|
|
8359
8450
|
};
|
|
8360
8451
|
//#endregion
|
|
8361
8452
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
8362
|
-
type UserConfig$
|
|
8453
|
+
type UserConfig$25 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
8363
8454
|
/**
|
|
8364
8455
|
* Throw an error instead of returning it in the response?
|
|
8365
8456
|
*
|
|
@@ -8367,22 +8458,22 @@ type UserConfig$24 = Plugin.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
|
8367
8458
|
*/
|
|
8368
8459
|
throwOnError?: boolean;
|
|
8369
8460
|
};
|
|
8370
|
-
type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$
|
|
8461
|
+
type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$25, UserConfig$25, IApi$19>;
|
|
8371
8462
|
//#endregion
|
|
8372
8463
|
//#region src/plugins/@hey-api/client-fetch/api.d.ts
|
|
8373
|
-
type SelectorType$
|
|
8374
|
-
type IApi$
|
|
8464
|
+
type SelectorType$18 = 'client';
|
|
8465
|
+
type IApi$18 = {
|
|
8375
8466
|
/**
|
|
8376
8467
|
* @param type Selector type.
|
|
8377
8468
|
* @param value Depends on `type`:
|
|
8378
8469
|
* - `client`: never
|
|
8379
8470
|
* @returns Selector array
|
|
8380
8471
|
*/
|
|
8381
|
-
|
|
8472
|
+
selector: (type: SelectorType$18, value?: string) => Selector;
|
|
8382
8473
|
};
|
|
8383
8474
|
//#endregion
|
|
8384
8475
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
8385
|
-
type UserConfig$
|
|
8476
|
+
type UserConfig$24 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
8386
8477
|
/**
|
|
8387
8478
|
* Throw an error instead of returning it in the response?
|
|
8388
8479
|
*
|
|
@@ -8390,22 +8481,22 @@ type UserConfig$23 = Plugin.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
|
8390
8481
|
*/
|
|
8391
8482
|
throwOnError?: boolean;
|
|
8392
8483
|
};
|
|
8393
|
-
type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$
|
|
8484
|
+
type HeyApiClientFetchPlugin = DefinePlugin<UserConfig$24, UserConfig$24, IApi$18>;
|
|
8394
8485
|
//#endregion
|
|
8395
8486
|
//#region src/plugins/@hey-api/client-next/api.d.ts
|
|
8396
|
-
type SelectorType$
|
|
8397
|
-
type IApi$
|
|
8487
|
+
type SelectorType$17 = 'client';
|
|
8488
|
+
type IApi$17 = {
|
|
8398
8489
|
/**
|
|
8399
8490
|
* @param type Selector type.
|
|
8400
8491
|
* @param value Depends on `type`:
|
|
8401
8492
|
* - `client`: never
|
|
8402
8493
|
* @returns Selector array
|
|
8403
8494
|
*/
|
|
8404
|
-
|
|
8495
|
+
selector: (type: SelectorType$17, value?: string) => Selector;
|
|
8405
8496
|
};
|
|
8406
8497
|
//#endregion
|
|
8407
8498
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
8408
|
-
type UserConfig$
|
|
8499
|
+
type UserConfig$23 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
|
|
8409
8500
|
/**
|
|
8410
8501
|
* Throw an error instead of returning it in the response?
|
|
8411
8502
|
*
|
|
@@ -8413,38 +8504,38 @@ type UserConfig$22 = Plugin.Name<'@hey-api/client-next'> & Client.Config & {
|
|
|
8413
8504
|
*/
|
|
8414
8505
|
throwOnError?: boolean;
|
|
8415
8506
|
};
|
|
8416
|
-
type HeyApiClientNextPlugin = DefinePlugin<UserConfig$
|
|
8507
|
+
type HeyApiClientNextPlugin = DefinePlugin<UserConfig$23, UserConfig$23, IApi$17>;
|
|
8417
8508
|
//#endregion
|
|
8418
8509
|
//#region src/plugins/@hey-api/client-nuxt/api.d.ts
|
|
8419
|
-
type SelectorType$
|
|
8420
|
-
type IApi$
|
|
8510
|
+
type SelectorType$16 = 'client';
|
|
8511
|
+
type IApi$16 = {
|
|
8421
8512
|
/**
|
|
8422
8513
|
* @param type Selector type.
|
|
8423
8514
|
* @param value Depends on `type`:
|
|
8424
8515
|
* - `client`: never
|
|
8425
8516
|
* @returns Selector array
|
|
8426
8517
|
*/
|
|
8427
|
-
|
|
8518
|
+
selector: (type: SelectorType$16, value?: string) => Selector;
|
|
8428
8519
|
};
|
|
8429
8520
|
//#endregion
|
|
8430
8521
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
8431
|
-
type UserConfig$
|
|
8432
|
-
type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$
|
|
8522
|
+
type UserConfig$22 = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
8523
|
+
type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$22, UserConfig$22, IApi$16>;
|
|
8433
8524
|
//#endregion
|
|
8434
8525
|
//#region src/plugins/@hey-api/client-ofetch/api.d.ts
|
|
8435
|
-
type SelectorType$
|
|
8436
|
-
type IApi$
|
|
8526
|
+
type SelectorType$15 = 'client';
|
|
8527
|
+
type IApi$15 = {
|
|
8437
8528
|
/**
|
|
8438
8529
|
* @param type Selector type.
|
|
8439
8530
|
* @param value Depends on `type`:
|
|
8440
8531
|
* - `client`: never
|
|
8441
8532
|
* @returns Selector array
|
|
8442
8533
|
*/
|
|
8443
|
-
|
|
8534
|
+
selector: (type: SelectorType$15, value?: string) => Selector;
|
|
8444
8535
|
};
|
|
8445
8536
|
//#endregion
|
|
8446
8537
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
8447
|
-
type UserConfig$
|
|
8538
|
+
type UserConfig$21 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
8448
8539
|
/**
|
|
8449
8540
|
* Throw an error instead of returning it in the response?
|
|
8450
8541
|
*
|
|
@@ -8452,7 +8543,7 @@ type UserConfig$20 = Plugin.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
|
8452
8543
|
*/
|
|
8453
8544
|
throwOnError?: boolean;
|
|
8454
8545
|
};
|
|
8455
|
-
type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$
|
|
8546
|
+
type HeyApiClientOfetchPlugin = DefinePlugin<UserConfig$21, UserConfig$21, IApi$15>;
|
|
8456
8547
|
//#endregion
|
|
8457
8548
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
8458
8549
|
interface PluginHandler {
|
|
@@ -8522,19 +8613,19 @@ declare namespace Client {
|
|
|
8522
8613
|
}
|
|
8523
8614
|
//#endregion
|
|
8524
8615
|
//#region src/plugins/@hey-api/client-angular/api.d.ts
|
|
8525
|
-
type SelectorType$
|
|
8526
|
-
type IApi$
|
|
8616
|
+
type SelectorType$14 = 'client';
|
|
8617
|
+
type IApi$14 = {
|
|
8527
8618
|
/**
|
|
8528
8619
|
* @param type Selector type.
|
|
8529
8620
|
* @param value Depends on `type`:
|
|
8530
8621
|
* - `client`: never
|
|
8531
8622
|
* @returns Selector array
|
|
8532
8623
|
*/
|
|
8533
|
-
|
|
8624
|
+
selector: (type: SelectorType$14, value?: string) => Selector;
|
|
8534
8625
|
};
|
|
8535
8626
|
//#endregion
|
|
8536
8627
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
8537
|
-
type UserConfig$
|
|
8628
|
+
type UserConfig$20 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
8538
8629
|
/**
|
|
8539
8630
|
* Throw an error instead of returning it in the response?
|
|
8540
8631
|
*
|
|
@@ -8542,42 +8633,42 @@ type UserConfig$19 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
|
8542
8633
|
*/
|
|
8543
8634
|
throwOnError?: boolean;
|
|
8544
8635
|
};
|
|
8545
|
-
type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$
|
|
8636
|
+
type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$14>;
|
|
8546
8637
|
//#endregion
|
|
8547
8638
|
//#region src/plugins/@hey-api/legacy-angular/types.d.ts
|
|
8548
|
-
type UserConfig$
|
|
8549
|
-
type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$
|
|
8639
|
+
type UserConfig$19 = Plugin.Name<'legacy/angular'> & Pick<Client.Config, 'output'>;
|
|
8640
|
+
type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$19>;
|
|
8550
8641
|
//#endregion
|
|
8551
8642
|
//#region src/plugins/@hey-api/legacy-axios/types.d.ts
|
|
8552
|
-
type UserConfig$
|
|
8553
|
-
type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$
|
|
8643
|
+
type UserConfig$18 = Plugin.Name<'legacy/axios'> & Pick<Client.Config, 'output'>;
|
|
8644
|
+
type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$18>;
|
|
8554
8645
|
//#endregion
|
|
8555
8646
|
//#region src/plugins/@hey-api/legacy-fetch/types.d.ts
|
|
8556
|
-
type UserConfig$
|
|
8557
|
-
type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$
|
|
8647
|
+
type UserConfig$17 = Plugin.Name<'legacy/fetch'> & Pick<Client.Config, 'output'>;
|
|
8648
|
+
type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$17>;
|
|
8558
8649
|
//#endregion
|
|
8559
8650
|
//#region src/plugins/@hey-api/legacy-node/types.d.ts
|
|
8560
|
-
type UserConfig$
|
|
8561
|
-
type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$
|
|
8651
|
+
type UserConfig$16 = Plugin.Name<'legacy/node'> & Pick<Client.Config, 'output'>;
|
|
8652
|
+
type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$16>;
|
|
8562
8653
|
//#endregion
|
|
8563
8654
|
//#region src/plugins/@hey-api/legacy-xhr/types.d.ts
|
|
8564
|
-
type UserConfig$
|
|
8565
|
-
type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$
|
|
8655
|
+
type UserConfig$15 = Plugin.Name<'legacy/xhr'> & Pick<Client.Config, 'output'>;
|
|
8656
|
+
type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$15>;
|
|
8566
8657
|
//#endregion
|
|
8567
8658
|
//#region src/plugins/@hey-api/schemas/api.d.ts
|
|
8568
|
-
type SelectorType$
|
|
8569
|
-
type IApi$
|
|
8659
|
+
type SelectorType$13 = 'ref';
|
|
8660
|
+
type IApi$13 = {
|
|
8570
8661
|
/**
|
|
8571
8662
|
* @param type Selector type.
|
|
8572
8663
|
* @param value Depends on `type`:
|
|
8573
8664
|
* - `ref`: `$ref` JSON pointer
|
|
8574
8665
|
* @returns Selector array
|
|
8575
8666
|
*/
|
|
8576
|
-
|
|
8667
|
+
selector: (type: SelectorType$13, value?: string) => Selector;
|
|
8577
8668
|
};
|
|
8578
8669
|
//#endregion
|
|
8579
8670
|
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
8580
|
-
type UserConfig$
|
|
8671
|
+
type UserConfig$14 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
|
|
8581
8672
|
/**
|
|
8582
8673
|
* Should the exports from the generated files be re-exported in the index
|
|
8583
8674
|
* barrel file?
|
|
@@ -8602,7 +8693,7 @@ type UserConfig$13 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
|
|
|
8602
8693
|
*/
|
|
8603
8694
|
type?: 'form' | 'json';
|
|
8604
8695
|
};
|
|
8605
|
-
type HeyApiSchemasPlugin = DefinePlugin<UserConfig$
|
|
8696
|
+
type HeyApiSchemasPlugin = DefinePlugin<UserConfig$14, UserConfig$14, IApi$13>;
|
|
8606
8697
|
declare namespace module_d_exports {
|
|
8607
8698
|
export { ImportExportItem, createCallExpression, createConstVariable, createExportAllDeclaration, createNamedExportDeclarations, createNamedImportDeclarations };
|
|
8608
8699
|
}
|
|
@@ -9781,8 +9872,8 @@ declare const createOperationComment: ({
|
|
|
9781
9872
|
}) => Comments | undefined;
|
|
9782
9873
|
//#endregion
|
|
9783
9874
|
//#region src/plugins/@hey-api/sdk/api.d.ts
|
|
9784
|
-
type SelectorType$
|
|
9785
|
-
type IApi$
|
|
9875
|
+
type SelectorType$12 = 'buildClientParams' | 'class' | 'Client' | 'Composable' | 'formDataBodySerializer' | 'function' | 'Injectable' | 'Options' | 'urlSearchParamsBodySerializer';
|
|
9876
|
+
type IApi$12 = {
|
|
9786
9877
|
createOperationComment: typeof createOperationComment;
|
|
9787
9878
|
/**
|
|
9788
9879
|
* @param type Selector type.
|
|
@@ -9798,11 +9889,11 @@ type IApi$11 = {
|
|
|
9798
9889
|
* - `urlSearchParamsBodySerializer`: never
|
|
9799
9890
|
* @returns Selector array
|
|
9800
9891
|
*/
|
|
9801
|
-
|
|
9892
|
+
selector: (type: SelectorType$12, value?: string) => Selector;
|
|
9802
9893
|
};
|
|
9803
9894
|
//#endregion
|
|
9804
9895
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
9805
|
-
type UserConfig$
|
|
9896
|
+
type UserConfig$13 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
|
|
9806
9897
|
/**
|
|
9807
9898
|
* Group operation methods into classes? When enabled, you can select which
|
|
9808
9899
|
* classes to export with `sdk.include` and/or transform their names with
|
|
@@ -9967,7 +10058,7 @@ type UserConfig$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
|
|
|
9967
10058
|
*/
|
|
9968
10059
|
response?: 'body' | 'response';
|
|
9969
10060
|
};
|
|
9970
|
-
type Config$
|
|
10061
|
+
type Config$13 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
|
|
9971
10062
|
/**
|
|
9972
10063
|
* Group operation methods into classes? When enabled, you can select which
|
|
9973
10064
|
* classes to export with `sdk.include` and/or transform their names with
|
|
@@ -10114,11 +10205,11 @@ type Config$12 = Plugin.Name<'@hey-api/sdk'> & Plugin.Hooks & {
|
|
|
10114
10205
|
*/
|
|
10115
10206
|
response: 'body' | 'response';
|
|
10116
10207
|
};
|
|
10117
|
-
type HeyApiSdkPlugin = DefinePlugin<UserConfig$
|
|
10208
|
+
type HeyApiSdkPlugin = DefinePlugin<UserConfig$13, Config$13, IApi$12>;
|
|
10118
10209
|
//#endregion
|
|
10119
10210
|
//#region src/plugins/@hey-api/transformers/api.d.ts
|
|
10120
|
-
type SelectorType$
|
|
10121
|
-
type IApi$
|
|
10211
|
+
type SelectorType$11 = 'response' | 'response-ref';
|
|
10212
|
+
type IApi$11 = {
|
|
10122
10213
|
/**
|
|
10123
10214
|
* @param type Selector type.
|
|
10124
10215
|
* @param value Depends on `type`:
|
|
@@ -10126,7 +10217,7 @@ type IApi$10 = {
|
|
|
10126
10217
|
* - `response-ref`: `$ref` JSON pointer
|
|
10127
10218
|
* @returns Selector array
|
|
10128
10219
|
*/
|
|
10129
|
-
|
|
10220
|
+
selector: (type: SelectorType$11, value?: string) => Selector;
|
|
10130
10221
|
};
|
|
10131
10222
|
//#endregion
|
|
10132
10223
|
//#region src/plugins/@hey-api/transformers/expressions.d.ts
|
|
@@ -10135,7 +10226,7 @@ type ExpressionTransformer = ({
|
|
|
10135
10226
|
dataExpression,
|
|
10136
10227
|
schema
|
|
10137
10228
|
}: {
|
|
10138
|
-
config: Omit<UserConfig$
|
|
10229
|
+
config: Omit<UserConfig$12, 'name'>;
|
|
10139
10230
|
dataExpression?: ts.Expression | string;
|
|
10140
10231
|
schema: IR$1.SchemaObject;
|
|
10141
10232
|
}) => Array<ts.Expression> | undefined;
|
|
@@ -10150,7 +10241,7 @@ type TypeTransformer = ({
|
|
|
10150
10241
|
}: {
|
|
10151
10242
|
schema: IR$1.SchemaObject;
|
|
10152
10243
|
}) => ts.TypeNode | undefined;
|
|
10153
|
-
type UserConfig$
|
|
10244
|
+
type UserConfig$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
|
|
10154
10245
|
/**
|
|
10155
10246
|
* Convert long integers into BigInt values?
|
|
10156
10247
|
*
|
|
@@ -10179,7 +10270,7 @@ type UserConfig$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
|
|
|
10179
10270
|
*/
|
|
10180
10271
|
typeTransformers?: ReadonlyArray<TypeTransformer>;
|
|
10181
10272
|
};
|
|
10182
|
-
type Config$
|
|
10273
|
+
type Config$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
|
|
10183
10274
|
/**
|
|
10184
10275
|
* Convert long integers into BigInt values?
|
|
10185
10276
|
*
|
|
@@ -10208,7 +10299,7 @@ type Config$11 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
|
|
|
10208
10299
|
*/
|
|
10209
10300
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
10210
10301
|
};
|
|
10211
|
-
type HeyApiTransformersPlugin = DefinePlugin<UserConfig$
|
|
10302
|
+
type HeyApiTransformersPlugin = DefinePlugin<UserConfig$12, Config$12, IApi$11>;
|
|
10212
10303
|
//#endregion
|
|
10213
10304
|
//#region src/plugins/@hey-api/typescript/plugin.d.ts
|
|
10214
10305
|
declare const schemaToType: ({
|
|
@@ -10220,8 +10311,9 @@ declare const schemaToType: ({
|
|
|
10220
10311
|
}) => ts.TypeNode;
|
|
10221
10312
|
//#endregion
|
|
10222
10313
|
//#region src/plugins/@hey-api/typescript/api.d.ts
|
|
10223
|
-
type SelectorType$
|
|
10224
|
-
type IApi$
|
|
10314
|
+
type SelectorType$10 = 'ClientOptions' | 'data' | 'error' | 'errors' | 'ref' | 'response' | 'responses' | 'TypeID' | 'webhook-payload' | 'webhook-request' | 'Webhooks';
|
|
10315
|
+
type IApi$10 = {
|
|
10316
|
+
schemaToType: (args: Parameters<typeof schemaToType>[0]) => ts.TypeNode;
|
|
10225
10317
|
/**
|
|
10226
10318
|
* @param type Selector type.
|
|
10227
10319
|
* @param value Depends on `type`:
|
|
@@ -10238,13 +10330,12 @@ type IApi$9 = {
|
|
|
10238
10330
|
* - `Webhooks`: never
|
|
10239
10331
|
* @returns Selector array
|
|
10240
10332
|
*/
|
|
10241
|
-
|
|
10242
|
-
schemaToType: (args: Parameters<typeof schemaToType>[0]) => ts.TypeNode;
|
|
10333
|
+
selector: (type: SelectorType$10, value?: string) => Selector;
|
|
10243
10334
|
};
|
|
10244
10335
|
//#endregion
|
|
10245
10336
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
10246
10337
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
10247
|
-
type UserConfig$
|
|
10338
|
+
type UserConfig$11 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
|
|
10248
10339
|
/**
|
|
10249
10340
|
* The casing convention to use for generated names.
|
|
10250
10341
|
*
|
|
@@ -10497,7 +10588,7 @@ type UserConfig$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
|
|
|
10497
10588
|
*/
|
|
10498
10589
|
tree?: boolean;
|
|
10499
10590
|
};
|
|
10500
|
-
type Config$
|
|
10591
|
+
type Config$11 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
|
|
10501
10592
|
/**
|
|
10502
10593
|
* The casing convention to use for generated names.
|
|
10503
10594
|
*
|
|
@@ -10718,11 +10809,11 @@ type Config$10 = Plugin.Name<'@hey-api/typescript'> & Plugin.Hooks & {
|
|
|
10718
10809
|
*/
|
|
10719
10810
|
tree: boolean;
|
|
10720
10811
|
};
|
|
10721
|
-
type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$
|
|
10812
|
+
type HeyApiTypeScriptPlugin = DefinePlugin<UserConfig$11, Config$11, IApi$10>;
|
|
10722
10813
|
//#endregion
|
|
10723
10814
|
//#region src/plugins/@pinia/colada/api.d.ts
|
|
10724
|
-
type SelectorType$
|
|
10725
|
-
type IApi$
|
|
10815
|
+
type SelectorType$9 = '_JSONValue' | 'AxiosError' | 'createQueryKey' | 'defineQueryOptions' | 'QueryKey' | 'queryOptionsFn' | 'serializeQueryKeyValue' | 'UseMutationOptions' | 'UseQueryOptions';
|
|
10816
|
+
type IApi$9 = {
|
|
10726
10817
|
/**
|
|
10727
10818
|
* @param type Selector type.
|
|
10728
10819
|
* @param value Depends on `type`:
|
|
@@ -10737,11 +10828,11 @@ type IApi$8 = {
|
|
|
10737
10828
|
* - `UseQueryOptions`: never
|
|
10738
10829
|
* @returns Selector array
|
|
10739
10830
|
*/
|
|
10740
|
-
|
|
10831
|
+
selector: (type: SelectorType$9, value?: string) => Selector;
|
|
10741
10832
|
};
|
|
10742
10833
|
//#endregion
|
|
10743
10834
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
10744
|
-
type UserConfig$
|
|
10835
|
+
type UserConfig$10 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
|
|
10745
10836
|
/**
|
|
10746
10837
|
* The casing convention to use for generated names.
|
|
10747
10838
|
*
|
|
@@ -10919,7 +11010,7 @@ type UserConfig$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
|
|
|
10919
11010
|
name?: StringName;
|
|
10920
11011
|
};
|
|
10921
11012
|
};
|
|
10922
|
-
type Config$
|
|
11013
|
+
type Config$10 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
|
|
10923
11014
|
/**
|
|
10924
11015
|
* The casing convention to use for generated names.
|
|
10925
11016
|
*
|
|
@@ -11068,11 +11159,11 @@ type Config$9 = Plugin.Name<'@pinia/colada'> & Plugin.Hooks & {
|
|
|
11068
11159
|
name: StringName;
|
|
11069
11160
|
};
|
|
11070
11161
|
};
|
|
11071
|
-
type PiniaColadaPlugin = DefinePlugin<UserConfig$
|
|
11162
|
+
type PiniaColadaPlugin = DefinePlugin<UserConfig$10, Config$10, IApi$9>;
|
|
11072
11163
|
//#endregion
|
|
11073
11164
|
//#region src/plugins/@tanstack/angular-query-experimental/api.d.ts
|
|
11074
|
-
type SelectorType$
|
|
11075
|
-
type IApi$
|
|
11165
|
+
type SelectorType$8 = 'AxiosError' | 'createInfiniteParams' | 'createQueryKey' | 'DefaultError' | 'infiniteQueryOptions' | 'InfiniteData' | 'MutationOptions' | 'queryOptions' | 'queryOptionsFn' | 'QueryKey' | 'useQuery';
|
|
11166
|
+
type IApi$8 = {
|
|
11076
11167
|
/**
|
|
11077
11168
|
* @param type Selector type.
|
|
11078
11169
|
* @param value Depends on `type`:
|
|
@@ -11089,11 +11180,11 @@ type IApi$7 = {
|
|
|
11089
11180
|
* - `useQuery`: never
|
|
11090
11181
|
* @returns Selector array
|
|
11091
11182
|
*/
|
|
11092
|
-
|
|
11183
|
+
selector: (type: SelectorType$8, value?: string) => Selector;
|
|
11093
11184
|
};
|
|
11094
11185
|
//#endregion
|
|
11095
11186
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
11096
|
-
type UserConfig$
|
|
11187
|
+
type UserConfig$9 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
|
|
11097
11188
|
/**
|
|
11098
11189
|
* The casing convention to use for generated names.
|
|
11099
11190
|
*
|
|
@@ -11374,7 +11465,7 @@ type UserConfig$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin
|
|
|
11374
11465
|
name?: StringName;
|
|
11375
11466
|
};
|
|
11376
11467
|
};
|
|
11377
|
-
type Config$
|
|
11468
|
+
type Config$9 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hooks & {
|
|
11378
11469
|
/**
|
|
11379
11470
|
* The casing convention to use for generated names.
|
|
11380
11471
|
*
|
|
@@ -11615,11 +11706,11 @@ type Config$8 = Plugin.Name<'@tanstack/angular-query-experimental'> & Plugin.Hoo
|
|
|
11615
11706
|
name: StringName;
|
|
11616
11707
|
};
|
|
11617
11708
|
};
|
|
11618
|
-
type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$
|
|
11709
|
+
type TanStackAngularQueryPlugin = DefinePlugin<UserConfig$9, Config$9, IApi$8>;
|
|
11619
11710
|
//#endregion
|
|
11620
11711
|
//#region src/plugins/@tanstack/react-query/api.d.ts
|
|
11621
|
-
type SelectorType$
|
|
11622
|
-
type IApi$
|
|
11712
|
+
type SelectorType$7 = 'AxiosError' | 'createInfiniteParams' | 'createQueryKey' | 'DefaultError' | 'infiniteQueryOptions' | 'InfiniteData' | 'MutationOptions' | 'queryOptions' | 'queryOptionsFn' | 'QueryKey' | 'useQuery';
|
|
11713
|
+
type IApi$7 = {
|
|
11623
11714
|
/**
|
|
11624
11715
|
* @param type Selector type.
|
|
11625
11716
|
* @param value Depends on `type`:
|
|
@@ -11636,11 +11727,11 @@ type IApi$6 = {
|
|
|
11636
11727
|
* - `useQuery`: never
|
|
11637
11728
|
* @returns Selector array
|
|
11638
11729
|
*/
|
|
11639
|
-
|
|
11730
|
+
selector: (type: SelectorType$7, value?: string) => Selector;
|
|
11640
11731
|
};
|
|
11641
11732
|
//#endregion
|
|
11642
11733
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
11643
|
-
type UserConfig$
|
|
11734
|
+
type UserConfig$8 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
|
|
11644
11735
|
/**
|
|
11645
11736
|
* The casing convention to use for generated names.
|
|
11646
11737
|
*
|
|
@@ -11965,7 +12056,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
|
|
|
11965
12056
|
name?: StringName;
|
|
11966
12057
|
};
|
|
11967
12058
|
};
|
|
11968
|
-
type Config$
|
|
12059
|
+
type Config$8 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
|
|
11969
12060
|
/**
|
|
11970
12061
|
* The casing convention to use for generated names.
|
|
11971
12062
|
*
|
|
@@ -12237,11 +12328,11 @@ type Config$7 = Plugin.Name<'@tanstack/react-query'> & Plugin.Hooks & {
|
|
|
12237
12328
|
name: StringName;
|
|
12238
12329
|
};
|
|
12239
12330
|
};
|
|
12240
|
-
type TanStackReactQueryPlugin = DefinePlugin<UserConfig$
|
|
12331
|
+
type TanStackReactQueryPlugin = DefinePlugin<UserConfig$8, Config$8, IApi$7>;
|
|
12241
12332
|
//#endregion
|
|
12242
12333
|
//#region src/plugins/@tanstack/solid-query/api.d.ts
|
|
12243
|
-
type SelectorType$
|
|
12244
|
-
type IApi$
|
|
12334
|
+
type SelectorType$6 = 'AxiosError' | 'createInfiniteParams' | 'createQueryKey' | 'DefaultError' | 'infiniteQueryOptions' | 'InfiniteData' | 'MutationOptions' | 'queryOptions' | 'queryOptionsFn' | 'QueryKey' | 'useQuery';
|
|
12335
|
+
type IApi$6 = {
|
|
12245
12336
|
/**
|
|
12246
12337
|
* @param type Selector type.
|
|
12247
12338
|
* @param value Depends on `type`:
|
|
@@ -12258,11 +12349,11 @@ type IApi$5 = {
|
|
|
12258
12349
|
* - `useQuery`: never
|
|
12259
12350
|
* @returns Selector array
|
|
12260
12351
|
*/
|
|
12261
|
-
|
|
12352
|
+
selector: (type: SelectorType$6, value?: string) => Selector;
|
|
12262
12353
|
};
|
|
12263
12354
|
//#endregion
|
|
12264
12355
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
12265
|
-
type UserConfig$
|
|
12356
|
+
type UserConfig$7 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
|
|
12266
12357
|
/**
|
|
12267
12358
|
* The casing convention to use for generated names.
|
|
12268
12359
|
*
|
|
@@ -12544,7 +12635,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
|
|
|
12544
12635
|
name?: StringName;
|
|
12545
12636
|
};
|
|
12546
12637
|
};
|
|
12547
|
-
type Config$
|
|
12638
|
+
type Config$7 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
|
|
12548
12639
|
/**
|
|
12549
12640
|
* The casing convention to use for generated names.
|
|
12550
12641
|
*
|
|
@@ -12785,11 +12876,11 @@ type Config$6 = Plugin.Name<'@tanstack/solid-query'> & Plugin.Hooks & {
|
|
|
12785
12876
|
name: StringName;
|
|
12786
12877
|
};
|
|
12787
12878
|
};
|
|
12788
|
-
type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$
|
|
12879
|
+
type TanStackSolidQueryPlugin = DefinePlugin<UserConfig$7, Config$7, IApi$6>;
|
|
12789
12880
|
//#endregion
|
|
12790
12881
|
//#region src/plugins/@tanstack/svelte-query/api.d.ts
|
|
12791
|
-
type SelectorType$
|
|
12792
|
-
type IApi$
|
|
12882
|
+
type SelectorType$5 = 'AxiosError' | 'createInfiniteParams' | 'createQueryKey' | 'DefaultError' | 'infiniteQueryOptions' | 'InfiniteData' | 'MutationOptions' | 'queryOptions' | 'queryOptionsFn' | 'QueryKey' | 'useQuery';
|
|
12883
|
+
type IApi$5 = {
|
|
12793
12884
|
/**
|
|
12794
12885
|
* @param type Selector type.
|
|
12795
12886
|
* @param value Depends on `type`:
|
|
@@ -12806,11 +12897,11 @@ type IApi$4 = {
|
|
|
12806
12897
|
* - `useQuery`: never
|
|
12807
12898
|
* @returns Selector array
|
|
12808
12899
|
*/
|
|
12809
|
-
|
|
12900
|
+
selector: (type: SelectorType$5, value?: string) => Selector;
|
|
12810
12901
|
};
|
|
12811
12902
|
//#endregion
|
|
12812
12903
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
12813
|
-
type UserConfig$
|
|
12904
|
+
type UserConfig$6 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
|
|
12814
12905
|
/**
|
|
12815
12906
|
* The casing convention to use for generated names.
|
|
12816
12907
|
*
|
|
@@ -13091,7 +13182,7 @@ type UserConfig$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
|
|
|
13091
13182
|
name?: StringName;
|
|
13092
13183
|
};
|
|
13093
13184
|
};
|
|
13094
|
-
type Config$
|
|
13185
|
+
type Config$6 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
|
|
13095
13186
|
/**
|
|
13096
13187
|
* The casing convention to use for generated names.
|
|
13097
13188
|
*
|
|
@@ -13332,11 +13423,11 @@ type Config$5 = Plugin.Name<'@tanstack/svelte-query'> & Plugin.Hooks & {
|
|
|
13332
13423
|
name: StringName;
|
|
13333
13424
|
};
|
|
13334
13425
|
};
|
|
13335
|
-
type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$
|
|
13426
|
+
type TanStackSvelteQueryPlugin = DefinePlugin<UserConfig$6, Config$6, IApi$5>;
|
|
13336
13427
|
//#endregion
|
|
13337
13428
|
//#region src/plugins/@tanstack/vue-query/api.d.ts
|
|
13338
|
-
type SelectorType$
|
|
13339
|
-
type IApi$
|
|
13429
|
+
type SelectorType$4 = 'AxiosError' | 'createInfiniteParams' | 'createQueryKey' | 'DefaultError' | 'infiniteQueryOptions' | 'InfiniteData' | 'MutationOptions' | 'queryOptions' | 'queryOptionsFn' | 'QueryKey' | 'useQuery';
|
|
13430
|
+
type IApi$4 = {
|
|
13340
13431
|
/**
|
|
13341
13432
|
* @param type Selector type.
|
|
13342
13433
|
* @param value Depends on `type`:
|
|
@@ -13353,11 +13444,11 @@ type IApi$3 = {
|
|
|
13353
13444
|
* - `useQuery`: never
|
|
13354
13445
|
* @returns Selector array
|
|
13355
13446
|
*/
|
|
13356
|
-
|
|
13447
|
+
selector: (type: SelectorType$4, value?: string) => Selector;
|
|
13357
13448
|
};
|
|
13358
13449
|
//#endregion
|
|
13359
13450
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
13360
|
-
type UserConfig$
|
|
13451
|
+
type UserConfig$5 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
|
|
13361
13452
|
/**
|
|
13362
13453
|
* The casing convention to use for generated names.
|
|
13363
13454
|
*
|
|
@@ -13641,7 +13732,7 @@ type UserConfig$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
|
|
|
13641
13732
|
name?: StringName;
|
|
13642
13733
|
};
|
|
13643
13734
|
};
|
|
13644
|
-
type Config$
|
|
13735
|
+
type Config$5 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
|
|
13645
13736
|
/**
|
|
13646
13737
|
* The casing convention to use for generated names.
|
|
13647
13738
|
*
|
|
@@ -13885,64 +13976,726 @@ type Config$4 = Plugin.Name<'@tanstack/vue-query'> & Plugin.Hooks & {
|
|
|
13885
13976
|
name: StringName;
|
|
13886
13977
|
};
|
|
13887
13978
|
};
|
|
13888
|
-
type TanStackVueQueryPlugin = DefinePlugin<UserConfig$
|
|
13889
|
-
//#endregion
|
|
13890
|
-
//#region src/plugins/fastify/api.d.ts
|
|
13891
|
-
type SelectorType$2 = 'RouteHandler';
|
|
13892
|
-
type IApi$2 = {
|
|
13893
|
-
/**
|
|
13894
|
-
* @param type Selector type.
|
|
13895
|
-
* @param value Depends on `type`:
|
|
13896
|
-
* - `RouteHandler`: never
|
|
13897
|
-
* @returns Selector array
|
|
13898
|
-
*/
|
|
13899
|
-
getSelector: (type: SelectorType$2, value?: string) => Selector;
|
|
13900
|
-
};
|
|
13901
|
-
//#endregion
|
|
13902
|
-
//#region src/plugins/fastify/types.d.ts
|
|
13903
|
-
type UserConfig$3 = Plugin.Name<'fastify'> & Plugin.Hooks & {
|
|
13904
|
-
/**
|
|
13905
|
-
* Should the exports from the generated files be re-exported in the index
|
|
13906
|
-
* barrel file?
|
|
13907
|
-
*
|
|
13908
|
-
* @default false
|
|
13909
|
-
*/
|
|
13910
|
-
exportFromIndex?: boolean;
|
|
13911
|
-
};
|
|
13912
|
-
type FastifyPlugin = DefinePlugin<UserConfig$3, UserConfig$3, IApi$2>;
|
|
13979
|
+
type TanStackVueQueryPlugin = DefinePlugin<UserConfig$5, Config$5, IApi$4>;
|
|
13913
13980
|
//#endregion
|
|
13914
|
-
//#region src/plugins/
|
|
13915
|
-
type
|
|
13916
|
-
type ValidatorArgs$1 = {
|
|
13981
|
+
//#region src/plugins/arktype/shared/types.d.ts
|
|
13982
|
+
type ValidatorArgs$2 = {
|
|
13917
13983
|
operation: IR$1.OperationObject;
|
|
13918
|
-
plugin:
|
|
13984
|
+
plugin: ArktypePlugin['Instance'];
|
|
13919
13985
|
};
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13986
|
+
//#endregion
|
|
13987
|
+
//#region src/plugins/arktype/api.d.ts
|
|
13988
|
+
type SelectorType$3 = 'data' | 'external' | 'ref' | 'responses' | 'type-infer-data' | 'type-infer-ref' | 'type-infer-responses' | 'type-infer-webhook-request' | 'webhook-request';
|
|
13989
|
+
type IApi$3 = {
|
|
13990
|
+
createRequestValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
|
|
13991
|
+
createResponseValidator: (args: ValidatorArgs$2) => ts.ArrowFunction | undefined;
|
|
13923
13992
|
/**
|
|
13924
13993
|
* @param type Selector type.
|
|
13925
13994
|
* @param value Depends on `type`:
|
|
13926
13995
|
* - `data`: `operation.id` string
|
|
13927
|
-
* - `
|
|
13996
|
+
* - `external`: external modules
|
|
13928
13997
|
* - `ref`: `$ref` JSON pointer
|
|
13929
13998
|
* - `responses`: `operation.id` string
|
|
13999
|
+
* - `type-infer-data`: `operation.id` string
|
|
14000
|
+
* - `type-infer-ref`: `$ref` JSON pointer
|
|
14001
|
+
* - `type-infer-responses`: `operation.id` string
|
|
14002
|
+
* - `type-infer-webhook-request`: `operation.id` string
|
|
13930
14003
|
* - `webhook-request`: `operation.id` string
|
|
13931
14004
|
* @returns Selector array
|
|
13932
14005
|
*/
|
|
13933
|
-
|
|
14006
|
+
selector: (type: SelectorType$3, value?: string) => Selector;
|
|
13934
14007
|
};
|
|
13935
14008
|
//#endregion
|
|
13936
|
-
//#region src/plugins/
|
|
13937
|
-
type UserConfig$
|
|
14009
|
+
//#region src/plugins/arktype/types.d.ts
|
|
14010
|
+
type UserConfig$4 = Plugin.Name<'arktype'> & Plugin.Hooks & {
|
|
13938
14011
|
/**
|
|
13939
14012
|
* The casing convention to use for generated names.
|
|
13940
14013
|
*
|
|
13941
|
-
* @default '
|
|
14014
|
+
* @default 'PascalCase'
|
|
13942
14015
|
*/
|
|
13943
14016
|
case?: StringCase;
|
|
13944
14017
|
/**
|
|
13945
|
-
* Add comments from input to the generated
|
|
14018
|
+
* Add comments from input to the generated Arktype schemas?
|
|
14019
|
+
*
|
|
14020
|
+
* @default true
|
|
14021
|
+
*/
|
|
14022
|
+
comments?: boolean;
|
|
14023
|
+
/**
|
|
14024
|
+
* Configuration for reusable schema definitions.
|
|
14025
|
+
*
|
|
14026
|
+
* Controls generation of shared Arktype schemas that can be referenced
|
|
14027
|
+
* across requests and responses.
|
|
14028
|
+
*
|
|
14029
|
+
* Can be:
|
|
14030
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14031
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14032
|
+
* - `object`: Full configuration object
|
|
14033
|
+
*/
|
|
14034
|
+
definitions?: boolean | StringName | {
|
|
14035
|
+
/**
|
|
14036
|
+
* The casing convention to use for generated names.
|
|
14037
|
+
*
|
|
14038
|
+
* @default 'PascalCase'
|
|
14039
|
+
*/
|
|
14040
|
+
case?: StringCase;
|
|
14041
|
+
/**
|
|
14042
|
+
* Whether to generate Arktype schemas for reusable definitions.
|
|
14043
|
+
*
|
|
14044
|
+
* @default true
|
|
14045
|
+
*/
|
|
14046
|
+
enabled?: boolean;
|
|
14047
|
+
/**
|
|
14048
|
+
* Custom naming pattern for generated schema names. The name variable
|
|
14049
|
+
* is obtained from the schema name.
|
|
14050
|
+
*
|
|
14051
|
+
* @default '{{name}}'
|
|
14052
|
+
*/
|
|
14053
|
+
name?: StringName;
|
|
14054
|
+
/**
|
|
14055
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14056
|
+
*
|
|
14057
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14058
|
+
*/
|
|
14059
|
+
types?: {
|
|
14060
|
+
/**
|
|
14061
|
+
* Configuration for `infer` types.
|
|
14062
|
+
*
|
|
14063
|
+
* Can be:
|
|
14064
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14065
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14066
|
+
* - `object`: Full configuration object
|
|
14067
|
+
*
|
|
14068
|
+
* @default false
|
|
14069
|
+
*/
|
|
14070
|
+
infer?: boolean | StringName | {
|
|
14071
|
+
/**
|
|
14072
|
+
* The casing convention to use for generated type names.
|
|
14073
|
+
*
|
|
14074
|
+
* @default 'PascalCase'
|
|
14075
|
+
*/
|
|
14076
|
+
case?: StringCase;
|
|
14077
|
+
/**
|
|
14078
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14079
|
+
*
|
|
14080
|
+
* @default true
|
|
14081
|
+
*/
|
|
14082
|
+
enabled?: boolean;
|
|
14083
|
+
/**
|
|
14084
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14085
|
+
* obtained from the Arktype schema name.
|
|
14086
|
+
*
|
|
14087
|
+
* @default '{{name}}'
|
|
14088
|
+
*/
|
|
14089
|
+
name?: StringName;
|
|
14090
|
+
};
|
|
14091
|
+
};
|
|
14092
|
+
};
|
|
14093
|
+
/**
|
|
14094
|
+
* Should the exports from the generated files be re-exported in the index
|
|
14095
|
+
* barrel file?
|
|
14096
|
+
*
|
|
14097
|
+
* @default false
|
|
14098
|
+
*/
|
|
14099
|
+
exportFromIndex?: boolean;
|
|
14100
|
+
/**
|
|
14101
|
+
* Enable Arktype metadata support? It's often useful to associate a schema
|
|
14102
|
+
* with some additional metadata for documentation, code generation, AI
|
|
14103
|
+
* structured outputs, form validation, and other purposes.
|
|
14104
|
+
*
|
|
14105
|
+
* @default false
|
|
14106
|
+
*/
|
|
14107
|
+
metadata?: boolean;
|
|
14108
|
+
/**
|
|
14109
|
+
* Configuration for request-specific Arktype schemas.
|
|
14110
|
+
*
|
|
14111
|
+
* Controls generation of Arktype schemas for request bodies, query parameters, path
|
|
14112
|
+
* parameters, and headers.
|
|
14113
|
+
*
|
|
14114
|
+
* Can be:
|
|
14115
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14116
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14117
|
+
* - `object`: Full configuration object
|
|
14118
|
+
*
|
|
14119
|
+
* @default true
|
|
14120
|
+
*/
|
|
14121
|
+
requests?: boolean | StringName | {
|
|
14122
|
+
/**
|
|
14123
|
+
* The casing convention to use for generated names.
|
|
14124
|
+
*
|
|
14125
|
+
* @default 'PascalCase'
|
|
14126
|
+
*/
|
|
14127
|
+
case?: StringCase;
|
|
14128
|
+
/**
|
|
14129
|
+
* Whether to generate Arktype schemas for request definitions.
|
|
14130
|
+
*
|
|
14131
|
+
* @default true
|
|
14132
|
+
*/
|
|
14133
|
+
enabled?: boolean;
|
|
14134
|
+
/**
|
|
14135
|
+
* Custom naming pattern for generated schema names. The name variable
|
|
14136
|
+
* is obtained from the operation name.
|
|
14137
|
+
*
|
|
14138
|
+
* @default '{{name}}Data'
|
|
14139
|
+
*/
|
|
14140
|
+
name?: StringName;
|
|
14141
|
+
/**
|
|
14142
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14143
|
+
*
|
|
14144
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14145
|
+
*/
|
|
14146
|
+
types?: {
|
|
14147
|
+
/**
|
|
14148
|
+
* Configuration for `infer` types.
|
|
14149
|
+
*
|
|
14150
|
+
* Can be:
|
|
14151
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14152
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14153
|
+
* - `object`: Full configuration object
|
|
14154
|
+
*
|
|
14155
|
+
* @default false
|
|
14156
|
+
*/
|
|
14157
|
+
infer?: boolean | StringName | {
|
|
14158
|
+
/**
|
|
14159
|
+
* The casing convention to use for generated type names.
|
|
14160
|
+
*
|
|
14161
|
+
* @default 'PascalCase'
|
|
14162
|
+
*/
|
|
14163
|
+
case?: StringCase;
|
|
14164
|
+
/**
|
|
14165
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14166
|
+
*
|
|
14167
|
+
* @default true
|
|
14168
|
+
*/
|
|
14169
|
+
enabled?: boolean;
|
|
14170
|
+
/**
|
|
14171
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14172
|
+
* obtained from the Arktype schema name.
|
|
14173
|
+
*
|
|
14174
|
+
* @default '{{name}}Data'
|
|
14175
|
+
*/
|
|
14176
|
+
name?: StringName;
|
|
14177
|
+
};
|
|
14178
|
+
};
|
|
14179
|
+
};
|
|
14180
|
+
/**
|
|
14181
|
+
* Configuration for response-specific Arktype schemas.
|
|
14182
|
+
*
|
|
14183
|
+
* Controls generation of Arktype schemas for response bodies, error responses,
|
|
14184
|
+
* and status codes.
|
|
14185
|
+
*
|
|
14186
|
+
* Can be:
|
|
14187
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14188
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14189
|
+
* - `object`: Full configuration object
|
|
14190
|
+
*
|
|
14191
|
+
* @default true
|
|
14192
|
+
*/
|
|
14193
|
+
responses?: boolean | StringName | {
|
|
14194
|
+
/**
|
|
14195
|
+
* The casing convention to use for generated names.
|
|
14196
|
+
*
|
|
14197
|
+
* @default 'PascalCase'
|
|
14198
|
+
*/
|
|
14199
|
+
case?: StringCase;
|
|
14200
|
+
/**
|
|
14201
|
+
* Whether to generate Arktype schemas for response definitions.
|
|
14202
|
+
*
|
|
14203
|
+
* @default true
|
|
14204
|
+
*/
|
|
14205
|
+
enabled?: boolean;
|
|
14206
|
+
/**
|
|
14207
|
+
* Custom naming pattern for generated schema names. The name variable
|
|
14208
|
+
* is obtained from the operation name.
|
|
14209
|
+
*
|
|
14210
|
+
* @default '{{name}}Response'
|
|
14211
|
+
*/
|
|
14212
|
+
name?: StringName;
|
|
14213
|
+
/**
|
|
14214
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14215
|
+
*
|
|
14216
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14217
|
+
*/
|
|
14218
|
+
types?: {
|
|
14219
|
+
/**
|
|
14220
|
+
* Configuration for `infer` types.
|
|
14221
|
+
*
|
|
14222
|
+
* Can be:
|
|
14223
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14224
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14225
|
+
* - `object`: Full configuration object
|
|
14226
|
+
*
|
|
14227
|
+
* @default false
|
|
14228
|
+
*/
|
|
14229
|
+
infer?: boolean | StringName | {
|
|
14230
|
+
/**
|
|
14231
|
+
* The casing convention to use for generated type names.
|
|
14232
|
+
*
|
|
14233
|
+
* @default 'PascalCase'
|
|
14234
|
+
*/
|
|
14235
|
+
case?: StringCase;
|
|
14236
|
+
/**
|
|
14237
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14238
|
+
*
|
|
14239
|
+
* @default true
|
|
14240
|
+
*/
|
|
14241
|
+
enabled?: boolean;
|
|
14242
|
+
/**
|
|
14243
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14244
|
+
* obtained from the Arktype schema name.
|
|
14245
|
+
*
|
|
14246
|
+
* @default '{{name}}Response'
|
|
14247
|
+
*/
|
|
14248
|
+
name?: StringName;
|
|
14249
|
+
};
|
|
14250
|
+
};
|
|
14251
|
+
};
|
|
14252
|
+
/**
|
|
14253
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14254
|
+
*
|
|
14255
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14256
|
+
*/
|
|
14257
|
+
types?: {
|
|
14258
|
+
/**
|
|
14259
|
+
* Configuration for `infer` types.
|
|
14260
|
+
*
|
|
14261
|
+
* Can be:
|
|
14262
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14263
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14264
|
+
* - `object`: Full configuration object
|
|
14265
|
+
*
|
|
14266
|
+
* @default false
|
|
14267
|
+
*/
|
|
14268
|
+
infer?: boolean | StringName | {
|
|
14269
|
+
/**
|
|
14270
|
+
* The casing convention to use for generated type names.
|
|
14271
|
+
*
|
|
14272
|
+
* @default 'PascalCase'
|
|
14273
|
+
*/
|
|
14274
|
+
case?: StringCase;
|
|
14275
|
+
/**
|
|
14276
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14277
|
+
*
|
|
14278
|
+
* @default true
|
|
14279
|
+
*/
|
|
14280
|
+
enabled?: boolean;
|
|
14281
|
+
};
|
|
14282
|
+
};
|
|
14283
|
+
/**
|
|
14284
|
+
* Configuration for webhook-specific Arktype schemas.
|
|
14285
|
+
*
|
|
14286
|
+
* Controls generation of Arktype schemas for webhook payloads.
|
|
14287
|
+
*
|
|
14288
|
+
* Can be:
|
|
14289
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14290
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14291
|
+
* - `object`: Full configuration object
|
|
14292
|
+
*
|
|
14293
|
+
* @default true
|
|
14294
|
+
*/
|
|
14295
|
+
webhooks?: boolean | StringName | {
|
|
14296
|
+
/**
|
|
14297
|
+
* The casing convention to use for generated names.
|
|
14298
|
+
*
|
|
14299
|
+
* @default 'PascalCase'
|
|
14300
|
+
*/
|
|
14301
|
+
case?: StringCase;
|
|
14302
|
+
/**
|
|
14303
|
+
* Whether to generate Arktype schemas for webhook definitions.
|
|
14304
|
+
*
|
|
14305
|
+
* @default true
|
|
14306
|
+
*/
|
|
14307
|
+
enabled?: boolean;
|
|
14308
|
+
/**
|
|
14309
|
+
* Custom naming pattern for generated schema names. The name variable
|
|
14310
|
+
* is obtained from the webhook key.
|
|
14311
|
+
*
|
|
14312
|
+
* @default '{{name}}WebhookRequest'
|
|
14313
|
+
*/
|
|
14314
|
+
name?: StringName;
|
|
14315
|
+
/**
|
|
14316
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14317
|
+
*
|
|
14318
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14319
|
+
*/
|
|
14320
|
+
types?: {
|
|
14321
|
+
/**
|
|
14322
|
+
* Configuration for `infer` types.
|
|
14323
|
+
*
|
|
14324
|
+
* Can be:
|
|
14325
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
14326
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
14327
|
+
* - `object`: Full configuration object
|
|
14328
|
+
*
|
|
14329
|
+
* @default false
|
|
14330
|
+
*/
|
|
14331
|
+
infer?: boolean | StringName | {
|
|
14332
|
+
/**
|
|
14333
|
+
* The casing convention to use for generated type names.
|
|
14334
|
+
*
|
|
14335
|
+
* @default 'PascalCase'
|
|
14336
|
+
*/
|
|
14337
|
+
case?: StringCase;
|
|
14338
|
+
/**
|
|
14339
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14340
|
+
*
|
|
14341
|
+
* @default true
|
|
14342
|
+
*/
|
|
14343
|
+
enabled?: boolean;
|
|
14344
|
+
/**
|
|
14345
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14346
|
+
* obtained from the Arktype schema name.
|
|
14347
|
+
*
|
|
14348
|
+
* @default '{{name}}WebhookRequest'
|
|
14349
|
+
*/
|
|
14350
|
+
name?: StringName;
|
|
14351
|
+
};
|
|
14352
|
+
};
|
|
14353
|
+
};
|
|
14354
|
+
};
|
|
14355
|
+
type Config$4 = Plugin.Name<'arktype'> & Plugin.Hooks & {
|
|
14356
|
+
/**
|
|
14357
|
+
* The casing convention to use for generated names.
|
|
14358
|
+
*
|
|
14359
|
+
* @default 'PascalCase'
|
|
14360
|
+
*/
|
|
14361
|
+
case: StringCase;
|
|
14362
|
+
/**
|
|
14363
|
+
* Add comments from input to the generated Arktype schemas?
|
|
14364
|
+
*
|
|
14365
|
+
* @default true
|
|
14366
|
+
*/
|
|
14367
|
+
comments: boolean;
|
|
14368
|
+
/**
|
|
14369
|
+
* Configuration for reusable schema definitions.
|
|
14370
|
+
*
|
|
14371
|
+
* Controls generation of shared Arktype schemas that can be referenced across
|
|
14372
|
+
* requests and responses.
|
|
14373
|
+
*/
|
|
14374
|
+
definitions: {
|
|
14375
|
+
/**
|
|
14376
|
+
* The casing convention to use for generated names.
|
|
14377
|
+
*
|
|
14378
|
+
* @default 'PascalCase'
|
|
14379
|
+
*/
|
|
14380
|
+
case: StringCase;
|
|
14381
|
+
/**
|
|
14382
|
+
* Whether to generate Arktype schemas for reusable definitions.
|
|
14383
|
+
*
|
|
14384
|
+
* @default true
|
|
14385
|
+
*/
|
|
14386
|
+
enabled: boolean;
|
|
14387
|
+
/**
|
|
14388
|
+
* Custom naming pattern for generated schema names. The name variable is
|
|
14389
|
+
* obtained from the schema name.
|
|
14390
|
+
*
|
|
14391
|
+
* @default '{{name}}'
|
|
14392
|
+
*/
|
|
14393
|
+
name: StringName;
|
|
14394
|
+
/**
|
|
14395
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14396
|
+
*
|
|
14397
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14398
|
+
*/
|
|
14399
|
+
types: {
|
|
14400
|
+
/**
|
|
14401
|
+
* Configuration for `infer` types.
|
|
14402
|
+
*/
|
|
14403
|
+
infer: {
|
|
14404
|
+
/**
|
|
14405
|
+
* The casing convention to use for generated type names.
|
|
14406
|
+
*
|
|
14407
|
+
* @default 'PascalCase'
|
|
14408
|
+
*/
|
|
14409
|
+
case: StringCase;
|
|
14410
|
+
/**
|
|
14411
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14412
|
+
*
|
|
14413
|
+
* @default true
|
|
14414
|
+
*/
|
|
14415
|
+
enabled: boolean;
|
|
14416
|
+
/**
|
|
14417
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14418
|
+
* obtained from the Arktype schema name.
|
|
14419
|
+
*
|
|
14420
|
+
* @default '{{name}}'
|
|
14421
|
+
*/
|
|
14422
|
+
name: StringName;
|
|
14423
|
+
};
|
|
14424
|
+
};
|
|
14425
|
+
};
|
|
14426
|
+
/**
|
|
14427
|
+
* Should the exports from the generated files be re-exported in the index
|
|
14428
|
+
* barrel file?
|
|
14429
|
+
*
|
|
14430
|
+
* @default false
|
|
14431
|
+
*/
|
|
14432
|
+
exportFromIndex: boolean;
|
|
14433
|
+
/**
|
|
14434
|
+
* Enable Arktype metadata support? It's often useful to associate a schema with
|
|
14435
|
+
* some additional metadata for documentation, code generation, AI
|
|
14436
|
+
* structured outputs, form validation, and other purposes.
|
|
14437
|
+
*
|
|
14438
|
+
* @default false
|
|
14439
|
+
*/
|
|
14440
|
+
metadata: boolean;
|
|
14441
|
+
/**
|
|
14442
|
+
* Configuration for request-specific Arktype schemas.
|
|
14443
|
+
*
|
|
14444
|
+
* Controls generation of Arktype schemas for request bodies, query parameters, path
|
|
14445
|
+
* parameters, and headers.
|
|
14446
|
+
*/
|
|
14447
|
+
requests: {
|
|
14448
|
+
/**
|
|
14449
|
+
* The casing convention to use for generated names.
|
|
14450
|
+
*
|
|
14451
|
+
* @default 'PascalCase'
|
|
14452
|
+
*/
|
|
14453
|
+
case: StringCase;
|
|
14454
|
+
/**
|
|
14455
|
+
* Whether to generate Arktype schemas for request definitions.
|
|
14456
|
+
*
|
|
14457
|
+
* @default true
|
|
14458
|
+
*/
|
|
14459
|
+
enabled: boolean;
|
|
14460
|
+
/**
|
|
14461
|
+
* Custom naming pattern for generated schema names. The name variable is
|
|
14462
|
+
* obtained from the operation name.
|
|
14463
|
+
*
|
|
14464
|
+
* @default '{{name}}Data'
|
|
14465
|
+
*/
|
|
14466
|
+
name: StringName;
|
|
14467
|
+
/**
|
|
14468
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14469
|
+
*
|
|
14470
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14471
|
+
*/
|
|
14472
|
+
types: {
|
|
14473
|
+
/**
|
|
14474
|
+
* Configuration for `infer` types.
|
|
14475
|
+
*/
|
|
14476
|
+
infer: {
|
|
14477
|
+
/**
|
|
14478
|
+
* The casing convention to use for generated type names.
|
|
14479
|
+
*
|
|
14480
|
+
* @default 'PascalCase'
|
|
14481
|
+
*/
|
|
14482
|
+
case: StringCase;
|
|
14483
|
+
/**
|
|
14484
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14485
|
+
*
|
|
14486
|
+
* @default true
|
|
14487
|
+
*/
|
|
14488
|
+
enabled: boolean;
|
|
14489
|
+
/**
|
|
14490
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14491
|
+
* obtained from the Arktype schema name.
|
|
14492
|
+
*
|
|
14493
|
+
* @default '{{name}}Data'
|
|
14494
|
+
*/
|
|
14495
|
+
name: StringName;
|
|
14496
|
+
};
|
|
14497
|
+
};
|
|
14498
|
+
};
|
|
14499
|
+
/**
|
|
14500
|
+
* Configuration for response-specific Arktype schemas.
|
|
14501
|
+
*
|
|
14502
|
+
* Controls generation of Arktype schemas for response bodies, error responses,
|
|
14503
|
+
* and status codes.
|
|
14504
|
+
*/
|
|
14505
|
+
responses: {
|
|
14506
|
+
/**
|
|
14507
|
+
* The casing convention to use for generated names.
|
|
14508
|
+
*
|
|
14509
|
+
* @default 'PascalCase'
|
|
14510
|
+
*/
|
|
14511
|
+
case: StringCase;
|
|
14512
|
+
/**
|
|
14513
|
+
* Whether to generate Arktype schemas for response definitions.
|
|
14514
|
+
*
|
|
14515
|
+
* @default true
|
|
14516
|
+
*/
|
|
14517
|
+
enabled: boolean;
|
|
14518
|
+
/**
|
|
14519
|
+
* Custom naming pattern for generated schema names. The name variable is
|
|
14520
|
+
* obtained from the operation name.
|
|
14521
|
+
*
|
|
14522
|
+
* @default '{{name}}Response'
|
|
14523
|
+
*/
|
|
14524
|
+
name: StringName;
|
|
14525
|
+
/**
|
|
14526
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14527
|
+
*
|
|
14528
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14529
|
+
*/
|
|
14530
|
+
types: {
|
|
14531
|
+
/**
|
|
14532
|
+
* Configuration for `infer` types.
|
|
14533
|
+
*/
|
|
14534
|
+
infer: {
|
|
14535
|
+
/**
|
|
14536
|
+
* The casing convention to use for generated type names.
|
|
14537
|
+
*
|
|
14538
|
+
* @default 'PascalCase'
|
|
14539
|
+
*/
|
|
14540
|
+
case: StringCase;
|
|
14541
|
+
/**
|
|
14542
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14543
|
+
*
|
|
14544
|
+
* @default true
|
|
14545
|
+
*/
|
|
14546
|
+
enabled: boolean;
|
|
14547
|
+
/**
|
|
14548
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14549
|
+
* obtained from the Arktype schema name.
|
|
14550
|
+
*
|
|
14551
|
+
* @default '{{name}}Response'
|
|
14552
|
+
*/
|
|
14553
|
+
name: StringName;
|
|
14554
|
+
};
|
|
14555
|
+
};
|
|
14556
|
+
};
|
|
14557
|
+
/**
|
|
14558
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14559
|
+
*
|
|
14560
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14561
|
+
*/
|
|
14562
|
+
types: {
|
|
14563
|
+
/**
|
|
14564
|
+
* Configuration for `infer` types.
|
|
14565
|
+
*/
|
|
14566
|
+
infer: {
|
|
14567
|
+
/**
|
|
14568
|
+
* The casing convention to use for generated type names.
|
|
14569
|
+
*
|
|
14570
|
+
* @default 'PascalCase'
|
|
14571
|
+
*/
|
|
14572
|
+
case: StringCase;
|
|
14573
|
+
/**
|
|
14574
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14575
|
+
*
|
|
14576
|
+
* @default true
|
|
14577
|
+
*/
|
|
14578
|
+
enabled: boolean;
|
|
14579
|
+
};
|
|
14580
|
+
};
|
|
14581
|
+
/**
|
|
14582
|
+
* Configuration for webhook-specific Arktype schemas.
|
|
14583
|
+
*
|
|
14584
|
+
* Controls generation of Arktype schemas for webhook payloads.
|
|
14585
|
+
*/
|
|
14586
|
+
webhooks: {
|
|
14587
|
+
/**
|
|
14588
|
+
* The casing convention to use for generated names.
|
|
14589
|
+
*
|
|
14590
|
+
* @default 'PascalCase'
|
|
14591
|
+
*/
|
|
14592
|
+
case: StringCase;
|
|
14593
|
+
/**
|
|
14594
|
+
* Whether to generate Arktype schemas for webhook definitions.
|
|
14595
|
+
*
|
|
14596
|
+
* @default true
|
|
14597
|
+
*/
|
|
14598
|
+
enabled: boolean;
|
|
14599
|
+
/**
|
|
14600
|
+
* Custom naming pattern for generated schema names. The name variable is
|
|
14601
|
+
* is obtained from the webhook key.
|
|
14602
|
+
*
|
|
14603
|
+
* @default '{{name}}WebhookRequest'
|
|
14604
|
+
*/
|
|
14605
|
+
name: StringName;
|
|
14606
|
+
/**
|
|
14607
|
+
* Configuration for TypeScript type generation from Arktype schemas.
|
|
14608
|
+
*
|
|
14609
|
+
* Controls generation of TypeScript types based on the generated Arktype schemas.
|
|
14610
|
+
*/
|
|
14611
|
+
types: {
|
|
14612
|
+
/**
|
|
14613
|
+
* Configuration for `infer` types.
|
|
14614
|
+
*/
|
|
14615
|
+
infer: {
|
|
14616
|
+
/**
|
|
14617
|
+
* The casing convention to use for generated type names.
|
|
14618
|
+
*
|
|
14619
|
+
* @default 'PascalCase'
|
|
14620
|
+
*/
|
|
14621
|
+
case: StringCase;
|
|
14622
|
+
/**
|
|
14623
|
+
* Whether to generate TypeScript types from Arktype schemas.
|
|
14624
|
+
*
|
|
14625
|
+
* @default true
|
|
14626
|
+
*/
|
|
14627
|
+
enabled: boolean;
|
|
14628
|
+
/**
|
|
14629
|
+
* Custom naming pattern for generated type names. The name variable is
|
|
14630
|
+
* obtained from the Arktype schema name.
|
|
14631
|
+
*
|
|
14632
|
+
* @default '{{name}}WebhookRequest'
|
|
14633
|
+
*/
|
|
14634
|
+
name: StringName;
|
|
14635
|
+
};
|
|
14636
|
+
};
|
|
14637
|
+
};
|
|
14638
|
+
};
|
|
14639
|
+
type ArktypePlugin = DefinePlugin<UserConfig$4, Config$4, IApi$3>;
|
|
14640
|
+
//#endregion
|
|
14641
|
+
//#region src/plugins/fastify/api.d.ts
|
|
14642
|
+
type SelectorType$2 = 'RouteHandler';
|
|
14643
|
+
type IApi$2 = {
|
|
14644
|
+
/**
|
|
14645
|
+
* @param type Selector type.
|
|
14646
|
+
* @param value Depends on `type`:
|
|
14647
|
+
* - `RouteHandler`: never
|
|
14648
|
+
* @returns Selector array
|
|
14649
|
+
*/
|
|
14650
|
+
selector: (type: SelectorType$2, value?: string) => Selector;
|
|
14651
|
+
};
|
|
14652
|
+
//#endregion
|
|
14653
|
+
//#region src/plugins/fastify/types.d.ts
|
|
14654
|
+
type UserConfig$3 = Plugin.Name<'fastify'> & Plugin.Hooks & {
|
|
14655
|
+
/**
|
|
14656
|
+
* Should the exports from the generated files be re-exported in the index
|
|
14657
|
+
* barrel file?
|
|
14658
|
+
*
|
|
14659
|
+
* @default false
|
|
14660
|
+
*/
|
|
14661
|
+
exportFromIndex?: boolean;
|
|
14662
|
+
};
|
|
14663
|
+
type FastifyPlugin = DefinePlugin<UserConfig$3, UserConfig$3, IApi$2>;
|
|
14664
|
+
//#endregion
|
|
14665
|
+
//#region src/plugins/valibot/shared/types.d.ts
|
|
14666
|
+
type ValidatorArgs$1 = {
|
|
14667
|
+
operation: IR$1.OperationObject;
|
|
14668
|
+
plugin: ValibotPlugin['Instance'];
|
|
14669
|
+
};
|
|
14670
|
+
//#endregion
|
|
14671
|
+
//#region src/plugins/valibot/api.d.ts
|
|
14672
|
+
type SelectorType$1 = 'data' | 'external' | 'ref' | 'responses' | 'webhook-request';
|
|
14673
|
+
type IApi$1 = {
|
|
14674
|
+
createRequestValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
|
|
14675
|
+
createResponseValidator: (args: ValidatorArgs$1) => ts.ArrowFunction | undefined;
|
|
14676
|
+
/**
|
|
14677
|
+
* @param type Selector type.
|
|
14678
|
+
* @param value Depends on `type`:
|
|
14679
|
+
* - `data`: `operation.id` string
|
|
14680
|
+
* - `external`: external modules
|
|
14681
|
+
* - `ref`: `$ref` JSON pointer
|
|
14682
|
+
* - `responses`: `operation.id` string
|
|
14683
|
+
* - `webhook-request`: `operation.id` string
|
|
14684
|
+
* @returns Selector array
|
|
14685
|
+
*/
|
|
14686
|
+
selector: (type: SelectorType$1, value?: string) => Selector;
|
|
14687
|
+
};
|
|
14688
|
+
//#endregion
|
|
14689
|
+
//#region src/plugins/valibot/types.d.ts
|
|
14690
|
+
type UserConfig$2 = Plugin.Name<'valibot'> & Plugin.Hooks & {
|
|
14691
|
+
/**
|
|
14692
|
+
* The casing convention to use for generated names.
|
|
14693
|
+
*
|
|
14694
|
+
* @default 'camelCase'
|
|
14695
|
+
*/
|
|
14696
|
+
case?: StringCase;
|
|
14697
|
+
/**
|
|
14698
|
+
* Add comments from input to the generated Valibot schemas?
|
|
13946
14699
|
*
|
|
13947
14700
|
* @default true
|
|
13948
14701
|
*/
|
|
@@ -14230,12 +14983,14 @@ type Config$3 = Plugin.Name<'valibot'> & Plugin.Hooks & {
|
|
|
14230
14983
|
};
|
|
14231
14984
|
type ValibotPlugin = DefinePlugin<UserConfig$2, Config$3, IApi$1>;
|
|
14232
14985
|
//#endregion
|
|
14233
|
-
//#region src/plugins/zod/
|
|
14234
|
-
type SelectorType = 'data' | 'import' | 'ref' | 'responses' | 'type-infer-data' | 'type-infer-ref' | 'type-infer-responses' | 'type-infer-webhook-request' | 'webhook-request';
|
|
14986
|
+
//#region src/plugins/zod/shared/types.d.ts
|
|
14235
14987
|
type ValidatorArgs = {
|
|
14236
14988
|
operation: IR$1.OperationObject;
|
|
14237
14989
|
plugin: ZodPlugin['Instance'];
|
|
14238
14990
|
};
|
|
14991
|
+
//#endregion
|
|
14992
|
+
//#region src/plugins/zod/api.d.ts
|
|
14993
|
+
type SelectorType = 'data' | 'external' | 'ref' | 'responses' | 'type-infer-data' | 'type-infer-ref' | 'type-infer-responses' | 'type-infer-webhook-request' | 'webhook-request';
|
|
14239
14994
|
type IApi = {
|
|
14240
14995
|
createRequestValidator: (args: ValidatorArgs) => ts.ArrowFunction | undefined;
|
|
14241
14996
|
createResponseValidator: (args: ValidatorArgs) => ts.ArrowFunction | undefined;
|
|
@@ -14243,7 +14998,7 @@ type IApi = {
|
|
|
14243
14998
|
* @param type Selector type.
|
|
14244
14999
|
* @param value Depends on `type`:
|
|
14245
15000
|
* - `data`: `operation.id` string
|
|
14246
|
-
* - `
|
|
15001
|
+
* - `external`: external modules
|
|
14247
15002
|
* - `ref`: `$ref` JSON pointer
|
|
14248
15003
|
* - `responses`: `operation.id` string
|
|
14249
15004
|
* - `type-infer-data`: `operation.id` string
|
|
@@ -14253,7 +15008,7 @@ type IApi = {
|
|
|
14253
15008
|
* - `webhook-request`: `operation.id` string
|
|
14254
15009
|
* @returns Selector array
|
|
14255
15010
|
*/
|
|
14256
|
-
|
|
15011
|
+
selector: (type: SelectorType, value?: string) => Selector;
|
|
14257
15012
|
};
|
|
14258
15013
|
//#endregion
|
|
14259
15014
|
//#region src/plugins/zod/types.d.ts
|
|
@@ -14347,7 +15102,7 @@ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14347
15102
|
*/
|
|
14348
15103
|
types?: {
|
|
14349
15104
|
/**
|
|
14350
|
-
* Configuration for `
|
|
15105
|
+
* Configuration for `infer` types.
|
|
14351
15106
|
*
|
|
14352
15107
|
* Can be:
|
|
14353
15108
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -14434,7 +15189,7 @@ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14434
15189
|
*/
|
|
14435
15190
|
types?: {
|
|
14436
15191
|
/**
|
|
14437
|
-
* Configuration for `
|
|
15192
|
+
* Configuration for `infer` types.
|
|
14438
15193
|
*
|
|
14439
15194
|
* Can be:
|
|
14440
15195
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -14506,7 +15261,7 @@ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14506
15261
|
*/
|
|
14507
15262
|
types?: {
|
|
14508
15263
|
/**
|
|
14509
|
-
* Configuration for `
|
|
15264
|
+
* Configuration for `infer` types.
|
|
14510
15265
|
*
|
|
14511
15266
|
* Can be:
|
|
14512
15267
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -14545,7 +15300,7 @@ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14545
15300
|
*/
|
|
14546
15301
|
types?: {
|
|
14547
15302
|
/**
|
|
14548
|
-
* Configuration for `
|
|
15303
|
+
* Configuration for `infer` types.
|
|
14549
15304
|
*
|
|
14550
15305
|
* Can be:
|
|
14551
15306
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -14608,7 +15363,7 @@ type UserConfig$1 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14608
15363
|
*/
|
|
14609
15364
|
types?: {
|
|
14610
15365
|
/**
|
|
14611
|
-
* Configuration for `
|
|
15366
|
+
* Configuration for `infer` types.
|
|
14612
15367
|
*
|
|
14613
15368
|
* Can be:
|
|
14614
15369
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
@@ -14724,7 +15479,7 @@ type Config$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14724
15479
|
*/
|
|
14725
15480
|
types: {
|
|
14726
15481
|
/**
|
|
14727
|
-
* Configuration for `
|
|
15482
|
+
* Configuration for `infer` types.
|
|
14728
15483
|
*/
|
|
14729
15484
|
infer: {
|
|
14730
15485
|
/**
|
|
@@ -14797,7 +15552,7 @@ type Config$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14797
15552
|
*/
|
|
14798
15553
|
types: {
|
|
14799
15554
|
/**
|
|
14800
|
-
* Configuration for `
|
|
15555
|
+
* Configuration for `infer` types.
|
|
14801
15556
|
*/
|
|
14802
15557
|
infer: {
|
|
14803
15558
|
/**
|
|
@@ -14855,7 +15610,7 @@ type Config$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14855
15610
|
*/
|
|
14856
15611
|
types: {
|
|
14857
15612
|
/**
|
|
14858
|
-
* Configuration for `
|
|
15613
|
+
* Configuration for `infer` types.
|
|
14859
15614
|
*/
|
|
14860
15615
|
infer: {
|
|
14861
15616
|
/**
|
|
@@ -14887,7 +15642,7 @@ type Config$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14887
15642
|
*/
|
|
14888
15643
|
types: {
|
|
14889
15644
|
/**
|
|
14890
|
-
* Configuration for `
|
|
15645
|
+
* Configuration for `infer` types.
|
|
14891
15646
|
*/
|
|
14892
15647
|
infer: {
|
|
14893
15648
|
/**
|
|
@@ -14936,7 +15691,7 @@ type Config$2 = Plugin.Name<'zod'> & Plugin.Hooks & {
|
|
|
14936
15691
|
*/
|
|
14937
15692
|
types: {
|
|
14938
15693
|
/**
|
|
14939
|
-
* Configuration for `
|
|
15694
|
+
* Configuration for `infer` types.
|
|
14940
15695
|
*/
|
|
14941
15696
|
infer: {
|
|
14942
15697
|
/**
|
|
@@ -14983,6 +15738,7 @@ interface PluginConfigMap {
|
|
|
14983
15738
|
'@tanstack/solid-query': TanStackSolidQueryPlugin['Types'];
|
|
14984
15739
|
'@tanstack/svelte-query': TanStackSvelteQueryPlugin['Types'];
|
|
14985
15740
|
'@tanstack/vue-query': TanStackVueQueryPlugin['Types'];
|
|
15741
|
+
arktype: ArktypePlugin['Types'];
|
|
14986
15742
|
fastify: FastifyPlugin['Types'];
|
|
14987
15743
|
'legacy/angular': HeyApiClientLegacyAngularPlugin['Types'];
|
|
14988
15744
|
'legacy/axios': HeyApiClientLegacyAxiosPlugin['Types'];
|
|
@@ -15004,6 +15760,10 @@ declare class IRContext<Spec$1 extends Record<string, any> = any> {
|
|
|
15004
15760
|
* The code generation project instance used to manage files, symbols,
|
|
15005
15761
|
*/
|
|
15006
15762
|
gen: Project;
|
|
15763
|
+
/**
|
|
15764
|
+
* The dependency graph built from the intermediate representation.
|
|
15765
|
+
*/
|
|
15766
|
+
graph: Graph | undefined;
|
|
15007
15767
|
/**
|
|
15008
15768
|
* Intermediate representation model obtained from `spec`.
|
|
15009
15769
|
*/
|
|
@@ -15271,13 +16031,6 @@ interface IRSchemaObject extends Pick<JsonSchemaDraft2020_12, '$ref' | 'const' |
|
|
|
15271
16031
|
* properties altogether.
|
|
15272
16032
|
*/
|
|
15273
16033
|
additionalProperties?: IRSchemaObject | false;
|
|
15274
|
-
/**
|
|
15275
|
-
* If this schema is a $ref and is circular (points to itself or is in the current resolution stack),
|
|
15276
|
-
* this flag is set to true.
|
|
15277
|
-
*
|
|
15278
|
-
* @default undefined
|
|
15279
|
-
*/
|
|
15280
|
-
circular?: boolean;
|
|
15281
16034
|
/**
|
|
15282
16035
|
* Any string value is accepted as `format`.
|
|
15283
16036
|
*/
|
|
@@ -15303,7 +16056,6 @@ interface IRSchemaObject extends Pick<JsonSchemaDraft2020_12, '$ref' | 'const' |
|
|
|
15303
16056
|
* When type is `object`, `properties` will contain a map of its properties.
|
|
15304
16057
|
*/
|
|
15305
16058
|
properties?: Record<string, IRSchemaObject>;
|
|
15306
|
-
|
|
15307
16059
|
/**
|
|
15308
16060
|
* The names of `properties` can be validated against a schema, irrespective
|
|
15309
16061
|
* of their values. This can be useful if you don't want to enforce specific
|
|
@@ -15368,5 +16120,5 @@ interface WatchValues {
|
|
|
15368
16120
|
lastValue?: string;
|
|
15369
16121
|
}
|
|
15370
16122
|
//#endregion
|
|
15371
|
-
export {
|
|
15372
|
-
//# sourceMappingURL=types-
|
|
16123
|
+
export { StringCase as C, MaybeArray as D, LazyOrAsync as E, OpenApiSchemaObject as S, Logger as T, OpenApiMetaObject as _, ExpressionTransformer as a, OpenApiRequestBodyObject as b, Client as c, Plugin as d, Client$1 as f, OpenApi$1 as g, UserConfig$27 as h, TypeTransformer as i, PluginHandler as l, Config$1 as m, WatchValues as n, compiler as o, parseOpenApiSpec as p, IR$1 as r, tsc as s, LegacyIR as t, DefinePlugin as u, OpenApiOperationObject as v, Input as w, OpenApiResponseObject as x, OpenApiParameterObject as y };
|
|
16124
|
+
//# sourceMappingURL=types-BT1ededZ.d.cts.map
|