@hey-api/openapi-ts 0.86.2 → 0.86.4

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.
@@ -1,6 +1,5 @@
1
- import { IProject, Project, Selector, Symbol, SymbolIn } from "@hey-api/codegen-core";
1
+ import { IProject, Project, Selector, Symbol, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
2
2
  import fs from "node:fs";
3
- import * as typescript0 from "typescript";
4
3
  import ts from "typescript";
5
4
  import { RangeOptions, SemVer } from "semver";
6
5
 
@@ -2946,52 +2945,7 @@ type Package = {
2946
2945
  satisfies: (nameOrVersion: string | SemVer, range: string, optionsOrLoose?: boolean | RangeOptions) => boolean;
2947
2946
  };
2948
2947
  //#endregion
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
- };
2948
+ //#region src/graph/types/graph.d.ts
2995
2949
  /**
2996
2950
  * The main graph structure for OpenAPI node analysis.
2997
2951
  *
@@ -3027,6 +2981,116 @@ type Graph = {
3027
2981
  */
3028
2982
  transitiveDependencies: Map<string, Set<string>>;
3029
2983
  };
2984
+ /**
2985
+ * Information about a node in the OpenAPI graph.
2986
+ *
2987
+ * @property deprecated - Whether the node is deprecated. Optional.
2988
+ * @property key - The property name or array index in the parent, or null for root.
2989
+ * @property node - The actual object at this pointer in the spec.
2990
+ * @property parentPointer - The JSON Pointer of the parent node, or null for root.
2991
+ * @property scopes - The set of access scopes for this node, if any. Optional.
2992
+ * @property tags - The set of tags for this node, if any. Optional.
2993
+ */
2994
+ type NodeInfo = {
2995
+ /** Whether the node is deprecated. Optional. */
2996
+ deprecated?: boolean;
2997
+ /** The property name or array index in the parent, or null for root. */
2998
+ key: string | number | null;
2999
+ /** The actual object at this pointer in the spec. */
3000
+ node: unknown;
3001
+ /** The JSON Pointer of the parent node, or null for root. */
3002
+ parentPointer: string | null;
3003
+ /** The set of access scopes for this node, if any. Optional. */
3004
+ scopes?: Set<Scope>;
3005
+ /** The set of tags for this node, if any. Optional. */
3006
+ tags?: Set<string>;
3007
+ };
3008
+ //#endregion
3009
+ //#region src/graph/types/walk.d.ts
3010
+ type GetPointerPriorityFn = (pointer: string) => number;
3011
+ type MatchPointerToGroupFn<T$1 extends string = string> = (pointer: string, kind?: T$1) => PointerGroupMatch<T$1>;
3012
+ type PointerGroupMatch<T$1 extends string = string> = {
3013
+ kind: T$1;
3014
+ matched: true;
3015
+ } | {
3016
+ kind?: undefined;
3017
+ matched: false;
3018
+ };
3019
+ type WalkOptions<T$1 extends string = string> = {
3020
+ /**
3021
+ * Optional priority function used to compute a numeric priority for each
3022
+ * pointer. Lower values are emitted earlier. Useful to customize ordering
3023
+ * beyond the built-in group preferences.
3024
+ */
3025
+ getPointerPriority?: GetPointerPriorityFn;
3026
+ /**
3027
+ * Optional function to match a pointer to a group name.
3028
+ *
3029
+ * @param pointer The pointer string
3030
+ * @returns The group name, or undefined if no match
3031
+ */
3032
+ matchPointerToGroup?: MatchPointerToGroupFn<T$1>;
3033
+ /**
3034
+ * Order of walking schemas.
3035
+ *
3036
+ * The "declarations" option ensures that schemas are walked in the order
3037
+ * they are declared in the input document. This is useful for scenarios where
3038
+ * the order of declaration matters, such as when generating code that relies
3039
+ * on the sequence of schema definitions.
3040
+ *
3041
+ * The "topological" option ensures that schemas are walked in an order
3042
+ * where dependencies are visited before the schemas that depend on them.
3043
+ * This is useful for scenarios where you need to process or generate
3044
+ * schemas in a way that respects their interdependencies.
3045
+ *
3046
+ * @default 'topological'
3047
+ */
3048
+ order?: 'declarations' | 'topological';
3049
+ /**
3050
+ * Optional grouping preference for walking. When provided, walk function
3051
+ * will prefer emitting kinds listed earlier in this array when it is safe
3052
+ * to do so (it will only apply the preference when doing so does not
3053
+ * violate dependency ordering).
3054
+ */
3055
+ preferGroups?: ReadonlyArray<T$1>;
3056
+ };
3057
+ //#endregion
3058
+ //#region src/plugins/shared/types/refs.d.ts
3059
+ /**
3060
+ * Ref wrapper which ensures a stable reference for a value.
3061
+ *
3062
+ * @example
3063
+ * ```ts
3064
+ * type NumRef = Ref<number>; // { value: number }
3065
+ * const num: NumRef = { value: 42 };
3066
+ * console.log(num.value); // 42
3067
+ * ```
3068
+ */
3069
+ type Ref<T$1> = {
3070
+ value: T$1;
3071
+ };
3072
+
3073
+ /**
3074
+ * Utility type: wraps a value in a Ref.
3075
+ *
3076
+ * @example
3077
+ * ```ts
3078
+ * type R = ToRef<number>; // { value: number }
3079
+ * ```
3080
+ */
3081
+
3082
+ /**
3083
+ * Maps every property of `T` to a `Ref` of that property.
3084
+ *
3085
+ * @example
3086
+ * ```ts
3087
+ * type Foo = { a: number; b: string };
3088
+ * type Refs = ToRefs<Foo>; // { a: Ref<number>; b: Ref<string> }
3089
+ * const refs: Refs = { a: { value: 1 }, b: { value: 'x' } };
3090
+ * console.log(refs.a.value, refs.b.value); // 1 'x'
3091
+ * ```
3092
+ */
3093
+ type ToRefs<T$1> = { [K in keyof T$1]: Ref<T$1[K]> };
3030
3094
  //#endregion
3031
3095
  //#region src/config/utils/config.d.ts
3032
3096
  type ObjectType<T$1> = Extract<T$1, Record<string, any>> extends never ? Record<string, any> : Extract<T$1, Record<string, any>>;
@@ -6557,7 +6621,7 @@ interface OpenApiV3_1_XTypes {
6557
6621
  }
6558
6622
  //#endregion
6559
6623
  //#region src/openApi/types.d.ts
6560
- declare namespace OpenApi$1 {
6624
+ declare namespace OpenApi$3 {
6561
6625
  export type V2_0_X = OpenApiV2_0_X;
6562
6626
  export type V3_0_X = OpenApiV3_0_X;
6563
6627
  export type V3_1_X = OpenApiV3_1_X;
@@ -6590,51 +6654,372 @@ declare namespace OpenApiSchemaObject {
6590
6654
  export type V3_1_X = OpenApiV3_1_XTypes['SchemaObject'];
6591
6655
  }
6592
6656
  //#endregion
6593
- //#region src/types/parser.d.ts
6594
- type EnumsMode = 'inline' | 'root';
6595
- type UserParser = {
6657
+ //#region src/ir/graph.d.ts
6658
+ declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody", "schema", "server", "webhook"];
6659
+ type IrTopLevelKind = (typeof irTopLevelKinds)[number];
6660
+ //#endregion
6661
+ //#region src/plugins/shared/types/instance.d.ts
6662
+ type BaseEvent = {
6596
6663
  /**
6597
- * Filters can be used to select a subset of your input before it's passed
6598
- * to plugins.
6664
+ * Path to the node, derived from the pointer.
6599
6665
  */
6600
- filters?: Filters;
6666
+ _path: ReadonlyArray<string | number>;
6601
6667
  /**
6602
- * Optional hooks to override default plugin behavior.
6668
+ * Pointer to the node in the graph.
6669
+ */
6670
+ pointer: string;
6671
+ /**
6672
+ * Tags associated with the node.
6673
+ */
6674
+ tags?: Set<string>;
6675
+ };
6676
+ type WalkEvents = BaseEvent & ({
6677
+ method: keyof IR$1.PathItemObject;
6678
+ operation: IR$1.OperationObject;
6679
+ path: string;
6680
+ type: Extract<IrTopLevelKind, 'operation'>;
6681
+ } | {
6682
+ name: string;
6683
+ parameter: IR$1.ParameterObject;
6684
+ type: Extract<IrTopLevelKind, 'parameter'>;
6685
+ } | {
6686
+ name: string;
6687
+ requestBody: IR$1.RequestBodyObject;
6688
+ type: Extract<IrTopLevelKind, 'requestBody'>;
6689
+ } | {
6690
+ name: string;
6691
+ schema: IR$1.SchemaObject;
6692
+ type: Extract<IrTopLevelKind, 'schema'>;
6693
+ } | {
6694
+ server: IR$1.ServerObject;
6695
+ type: Extract<IrTopLevelKind, 'server'>;
6696
+ } | {
6697
+ key: string;
6698
+ method: keyof IR$1.PathItemObject;
6699
+ operation: IR$1.OperationObject;
6700
+ type: Extract<IrTopLevelKind, 'webhook'>;
6701
+ });
6702
+ type WalkEvent<T$1 extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents, {
6703
+ type: T$1;
6704
+ }>;
6705
+ //#endregion
6706
+ //#region src/plugins/shared/utils/instance.d.ts
6707
+ declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
6708
+ api: T$1['api'];
6709
+ config: Omit<T$1['resolvedConfig'], 'name' | 'output'>;
6710
+ context: IR$1.Context;
6711
+ dependencies: Required<Plugin.Config<T$1>>['dependencies'];
6712
+ private eventHooks;
6713
+ gen: IProject;
6714
+ private handler;
6715
+ name: T$1['resolvedConfig']['name'];
6716
+ output: string;
6717
+ /**
6718
+ * The package metadata and utilities for the current context, constructed
6719
+ * from the provided dependencies. Used for managing package-related
6720
+ * information such as name, version, and dependency resolution during
6721
+ * code generation.
6722
+ */
6723
+ package: IR$1.Context['package'];
6724
+ constructor(props: Pick<Required<Plugin.Config<T$1>>, 'config' | 'dependencies' | 'handler'> & {
6725
+ api?: T$1['api'];
6726
+ context: IR$1.Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
6727
+ gen: IProject;
6728
+ name: string;
6729
+ output: string;
6730
+ });
6731
+ /**
6732
+ * Iterates over various input elements as specified by the event types, in
6733
+ * a specific order: servers, schemas, parameters, request bodies, then
6734
+ * operations.
6603
6735
  *
6604
- * Use these to classify resources, control which outputs are generated,
6605
- * or provide custom behavior for specific resources.
6736
+ * This ensures, for example, that schemas are always processed before
6737
+ * operations, which may reference them.
6738
+ *
6739
+ * @template T - The event type(s) to yield. Defaults to all event types.
6740
+ * @param events - The event types to walk over. If none are provided, all event types are included.
6741
+ * @param callback - Function to execute for each event.
6742
+ *
6743
+ * @example
6744
+ * // Iterate over all operations and schemas
6745
+ * plugin.forEach('operation', 'schema', (event) => {
6746
+ * if (event.type === 'operation') {
6747
+ * // handle operation
6748
+ * } else if (event.type === 'schema') {
6749
+ * // handle schema
6750
+ * }
6751
+ * });
6606
6752
  */
6607
- hooks?: IR$1.Hooks;
6753
+ forEach<T extends IrTopLevelKind = IrTopLevelKind>(...args: [...events: ReadonlyArray<T$1>, callback: (event: WalkEvent<T$1>) => void]): void;
6754
+ forEach<T extends IrTopLevelKind = IrTopLevelKind>(...args: [...events: ReadonlyArray<T$1>, callback: (event: WalkEvent<T$1>) => void, options: WalkOptions<T$1>]): void;
6608
6755
  /**
6609
- * Pagination configuration.
6756
+ * Retrieves a registered plugin instance by its name from the context. This
6757
+ * allows plugins to access other plugins that have been registered in the
6758
+ * same context, enabling cross-plugin communication and dependencies.
6759
+ *
6760
+ * @param name Plugin name as defined in the configuration.
6761
+ * @returns The plugin instance if found, undefined otherwise.
6610
6762
  */
6611
- pagination?: {
6612
- /**
6613
- * Array of keywords to be considered as pagination field names.
6614
- * These will be used to detect pagination fields in schemas and parameters.
6615
- *
6616
- * @default ['after', 'before', 'cursor', 'offset', 'page', 'start']
6617
- */
6618
- keywords?: ReadonlyArray<string>;
6763
+ getPlugin<T extends keyof PluginConfigMap>(name: T$1): T$1 extends any ? PluginInstance<PluginConfigMap[T$1]> | undefined : never;
6764
+ /**
6765
+ * Retrieves a registered plugin instance by its name from the context. This
6766
+ * allows plugins to access other plugins that have been registered in the
6767
+ * same context, enabling cross-plugin communication and dependencies.
6768
+ *
6769
+ * @param name Plugin name as defined in the configuration.
6770
+ * @returns The plugin instance if found, throw otherwise.
6771
+ */
6772
+ getPluginOrThrow<T extends keyof PluginConfigMap>(name: T$1): T$1 extends any ? PluginInstance<PluginConfigMap[T$1]> : never;
6773
+ getSymbol(symbolIdOrSelector: number | Selector): Symbol | undefined;
6774
+ hooks: {
6775
+ operation: {
6776
+ isMutation: (operation: IR$1.OperationObject) => boolean;
6777
+ isQuery: (operation: IR$1.OperationObject) => boolean;
6778
+ };
6619
6779
  };
6780
+ isSymbolRegistered(symbolIdOrSelector: number | Selector): boolean;
6781
+ referenceSymbol(symbolIdOrSelector: number | Selector): Symbol;
6782
+ registerSymbol(symbol: SymbolIn): Symbol;
6620
6783
  /**
6621
- * Custom input transformations to execute before parsing. Use this
6622
- * to modify, fix, or enhance input before it's passed to plugins.
6784
+ * Executes plugin's handler function.
6623
6785
  */
6624
- patch?: Patch;
6786
+ run(): Promise<void>;
6787
+ setSymbolValue(symbol: Symbol, value: unknown): void;
6788
+ private buildEventHooks;
6789
+ private forEachError;
6790
+ private getSymbolFilePath;
6791
+ private isOperationKind;
6792
+ }
6793
+ //#endregion
6794
+ //#region src/parser/types/hooks.d.ts
6795
+ type Hooks = {
6625
6796
  /**
6626
- * Built-in transformations that modify or normalize the input before it's
6627
- * passed to plugins. These options enable predictable, documented behaviors
6628
- * and are distinct from custom patches. Use this to perform structural
6629
- * changes to input in a standardized way.
6797
+ * Event hooks.
6630
6798
  */
6631
- transforms?: {
6799
+ events?: {
6632
6800
  /**
6633
- * Your input might contain two types of enums:
6634
- * - enums defined as reusable components (root enums)
6635
- * - non-reusable enums nested within other schemas (inline enums)
6801
+ * Triggered after executing a plugin handler.
6636
6802
  *
6637
- * You may want all enums to be reusable. This is because only root enums
6803
+ * @param args Arguments object.
6804
+ * @returns void
6805
+ */
6806
+ 'plugin:handler:after'?: (args: {
6807
+ /** Plugin that just executed. */
6808
+ plugin: PluginInstance;
6809
+ }) => void;
6810
+ /**
6811
+ * Triggered before executing a plugin handler.
6812
+ *
6813
+ * @param args Arguments object.
6814
+ * @returns void
6815
+ */
6816
+ 'plugin:handler:before'?: (args: {
6817
+ /** Plugin about to execute. */
6818
+ plugin: PluginInstance;
6819
+ }) => void;
6820
+ /**
6821
+ * Triggered after registering a symbol.
6822
+ *
6823
+ * You can use this to perform actions after a symbol is registered.
6824
+ *
6825
+ * @param args Arguments object.
6826
+ * @returns void
6827
+ */
6828
+ 'symbol:register:after'?: (args: {
6829
+ /** Plugin that registered the symbol. */
6830
+ plugin: PluginInstance;
6831
+ /** The registered symbol. */
6832
+ symbol: Symbol;
6833
+ }) => void;
6834
+ /**
6835
+ * Triggered before registering a symbol.
6836
+ *
6837
+ * You can use this to modify the symbol before it's registered.
6838
+ *
6839
+ * @param args Arguments object.
6840
+ * @returns void
6841
+ */
6842
+ 'symbol:register:before'?: (args: {
6843
+ /** Plugin registering the symbol. */
6844
+ plugin: PluginInstance;
6845
+ /** Symbol to register. */
6846
+ symbol: SymbolIn;
6847
+ }) => void;
6848
+ /**
6849
+ * Triggered after setting a symbol value.
6850
+ *
6851
+ * You can use this to perform actions after a symbol's value is set.
6852
+ *
6853
+ * @param args Arguments object.
6854
+ * @returns void
6855
+ */
6856
+ 'symbol:setValue:after'?: (args: {
6857
+ /** Plugin that set the symbol value. */
6858
+ plugin: PluginInstance;
6859
+ /** The symbol. */
6860
+ symbol: Symbol;
6861
+ /** The value that was set. */
6862
+ value: unknown;
6863
+ }) => void;
6864
+ /**
6865
+ * Triggered before setting a symbol value.
6866
+ *
6867
+ * You can use this to modify the value before it's set.
6868
+ *
6869
+ * @param args Arguments object.
6870
+ * @returns void
6871
+ */
6872
+ 'symbol:setValue:before'?: (args: {
6873
+ /** Plugin setting the symbol value. */
6874
+ plugin: PluginInstance;
6875
+ /** The symbol. */
6876
+ symbol: Symbol;
6877
+ /** The value to set. */
6878
+ value: unknown;
6879
+ }) => void;
6880
+ };
6881
+ /**
6882
+ * Hooks specifically for overriding operations behavior.
6883
+ *
6884
+ * Use these to classify operations, decide which outputs to generate,
6885
+ * or apply custom behavior to individual operations.
6886
+ */
6887
+ operations?: {
6888
+ /**
6889
+ * Classify the given operation into one or more kinds.
6890
+ *
6891
+ * Each kind determines how we treat the operation (e.g., generating queries or mutations).
6892
+ *
6893
+ * **Default behavior:**
6894
+ * - GET → 'query'
6895
+ * - DELETE, PATCH, POST, PUT → 'mutation'
6896
+ *
6897
+ * **Resolution order:**
6898
+ * 1. If `isQuery` or `isMutation` returns `true` or `false`, that overrides `getKind`.
6899
+ * 2. If `isQuery` or `isMutation` returns `undefined`, the result of `getKind` is used.
6900
+ *
6901
+ * @param operation - The operation object to classify.
6902
+ * @returns An array containing one or more of 'query' or 'mutation', or undefined to fallback to default behavior.
6903
+ * @example
6904
+ * ```ts
6905
+ * getKind: (operation) => {
6906
+ * if (operation.method === 'get' && operation.path === '/search') {
6907
+ * return ['query', 'mutation'];
6908
+ * }
6909
+ * return; // fallback to default behavior
6910
+ * }
6911
+ * ```
6912
+ */
6913
+ getKind?: (operation: IROperationObject) => ReadonlyArray<'mutation' | 'query'> | undefined;
6914
+ /**
6915
+ * Check if the given operation should be treated as a mutation.
6916
+ *
6917
+ * This affects which outputs are generated for the operation.
6918
+ *
6919
+ * **Default behavior:** DELETE, PATCH, POST, and PUT operations are treated as mutations.
6920
+ *
6921
+ * **Resolution order:** If this returns `true` or `false`, it overrides `getKind`.
6922
+ * If it returns `undefined`, `getKind` is used instead.
6923
+ *
6924
+ * @param operation - The operation object to check.
6925
+ * @returns true if the operation is a mutation, false otherwise, or undefined to fallback to `getKind`.
6926
+ * @example
6927
+ * ```ts
6928
+ * isMutation: (operation) => {
6929
+ * if (operation.method === 'post' && operation.path === '/search') {
6930
+ * return true;
6931
+ * }
6932
+ * return; // fallback to default behavior
6933
+ * }
6934
+ * ```
6935
+ */
6936
+ isMutation?: (operation: IROperationObject) => boolean | undefined;
6937
+ /**
6938
+ * Check if the given operation should be treated as a query.
6939
+ *
6940
+ * This affects which outputs are generated for the operation.
6941
+ *
6942
+ * **Default behavior:** GET operations are treated as queries.
6943
+ *
6944
+ * **Resolution order:** If this returns `true` or `false`, it overrides `getKind`.
6945
+ * If it returns `undefined`, `getKind` is used instead.
6946
+ *
6947
+ * @param operation - The operation object to check.
6948
+ * @returns true if the operation is a query, false otherwise, or undefined to fallback to `getKind`.
6949
+ * @example
6950
+ * ```ts
6951
+ * isQuery: (operation) => {
6952
+ * if (operation.method === 'post' && operation.path === '/search') {
6953
+ * return true;
6954
+ * }
6955
+ * return; // fallback to default behavior
6956
+ * }
6957
+ * ```
6958
+ */
6959
+ isQuery?: (operation: IROperationObject) => boolean | undefined;
6960
+ };
6961
+ /**
6962
+ * Hooks specifically for overriding symbols behavior.
6963
+ *
6964
+ * Use these to customize file placement.
6965
+ */
6966
+ symbols?: {
6967
+ /**
6968
+ * Optional output strategy to override default plugin behavior.
6969
+ *
6970
+ * Use this to route generated symbols to specific files.
6971
+ *
6972
+ * @returns The file path to output the symbol to, or undefined to fallback to default behavior.
6973
+ */
6974
+ getFilePath?: (symbol: Symbol) => string | undefined;
6975
+ };
6976
+ };
6977
+ //#endregion
6978
+ //#region src/types/parser.d.ts
6979
+ type EnumsMode = 'inline' | 'root';
6980
+ type UserParser = {
6981
+ /**
6982
+ * Filters can be used to select a subset of your input before it's passed
6983
+ * to plugins.
6984
+ */
6985
+ filters?: Filters;
6986
+ /**
6987
+ * Optional hooks to override default plugin behavior.
6988
+ *
6989
+ * Use these to classify resources, control which outputs are generated,
6990
+ * or provide custom behavior for specific resources.
6991
+ */
6992
+ hooks?: Hooks;
6993
+ /**
6994
+ * Pagination configuration.
6995
+ */
6996
+ pagination?: {
6997
+ /**
6998
+ * Array of keywords to be considered as pagination field names.
6999
+ * These will be used to detect pagination fields in schemas and parameters.
7000
+ *
7001
+ * @default ['after', 'before', 'cursor', 'offset', 'page', 'start']
7002
+ */
7003
+ keywords?: ReadonlyArray<string>;
7004
+ };
7005
+ /**
7006
+ * Custom input transformations to execute before parsing. Use this
7007
+ * to modify, fix, or enhance input before it's passed to plugins.
7008
+ */
7009
+ patch?: Patch;
7010
+ /**
7011
+ * Built-in transformations that modify or normalize the input before it's
7012
+ * passed to plugins. These options enable predictable, documented behaviors
7013
+ * and are distinct from custom patches. Use this to perform structural
7014
+ * changes to input in a standardized way.
7015
+ */
7016
+ transforms?: {
7017
+ /**
7018
+ * Your input might contain two types of enums:
7019
+ * - enums defined as reusable components (root enums)
7020
+ * - non-reusable enums nested within other schemas (inline enums)
7021
+ *
7022
+ * You may want all enums to be reusable. This is because only root enums
6638
7023
  * are typically exported by plugins. Inline enums will never be directly
6639
7024
  * importable since they're nested inside other schemas.
6640
7025
  *
@@ -6776,7 +7161,7 @@ type Parser = {
6776
7161
  * Use these to classify resources, control which outputs are generated,
6777
7162
  * or provide custom behavior for specific resources.
6778
7163
  */
6779
- hooks: IR$1.Hooks;
7164
+ hooks: Hooks;
6780
7165
  /**
6781
7166
  * Pagination configuration.
6782
7167
  */
@@ -7401,6 +7786,20 @@ interface Client$2 {
7401
7786
  version: string;
7402
7787
  }
7403
7788
  //#endregion
7789
+ //#region src/utils/logger.d.ts
7790
+ declare class Logger {
7791
+ private events;
7792
+ private end;
7793
+ report(print?: boolean): PerformanceMeasure | undefined;
7794
+ private reportEvent;
7795
+ private start;
7796
+ private storeEvent;
7797
+ timeEvent(name: string): {
7798
+ mark: PerformanceMark;
7799
+ timeEnd: () => void;
7800
+ };
7801
+ }
7802
+ //#endregion
7404
7803
  //#region src/openApi/v2/interfaces/OpenApiExternalDocs.d.ts
7405
7804
  /**
7406
7805
  * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#external-documentation-object
@@ -7685,7 +8084,7 @@ interface OpenApiTag$1 {
7685
8084
  /**
7686
8085
  * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
7687
8086
  */
7688
- interface OpenApi$2 {
8087
+ interface OpenApi$1 {
7689
8088
  basePath?: string;
7690
8089
  consumes?: string[];
7691
8090
  definitions?: Dictionary<OpenApiSchema>;
@@ -7973,7 +8372,7 @@ interface OpenApiTag {
7973
8372
  /**
7974
8373
  * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md
7975
8374
  */
7976
- interface OpenApi$3 {
8375
+ interface OpenApi$2 {
7977
8376
  components?: OpenApiComponents;
7978
8377
  externalDocs?: OpenApiExternalDocs;
7979
8378
  info: OpenApiInfo;
@@ -7985,7 +8384,7 @@ interface OpenApi$3 {
7985
8384
  }
7986
8385
  //#endregion
7987
8386
  //#region src/openApi/common/interfaces/OpenApi.d.ts
7988
- type OpenApi = OpenApi$2 | OpenApi$3;
8387
+ type OpenApi = OpenApi$1 | OpenApi$2;
7989
8388
  //#endregion
7990
8389
  //#region src/openApi/index.d.ts
7991
8390
  /**
@@ -8005,160 +8404,6 @@ declare const parseOpenApiSpec: ({
8005
8404
  spec: unknown;
8006
8405
  }) => IR$1.Context | undefined;
8007
8406
  //#endregion
8008
- //#region src/ir/graph.d.ts
8009
- declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody", "schema", "server", "webhook"];
8010
- type IrTopLevelKind = (typeof irTopLevelKinds)[number];
8011
- //#endregion
8012
- //#region src/plugins/shared/types/instance.d.ts
8013
- type WalkEvents = {
8014
- _path: ReadonlyArray<string | number>;
8015
- method: keyof IR$1.PathItemObject;
8016
- operation: IR$1.OperationObject;
8017
- path: string;
8018
- type: Extract<IrTopLevelKind, 'operation'>;
8019
- } | {
8020
- $ref: string;
8021
- _path: ReadonlyArray<string | number>;
8022
- name: string;
8023
- parameter: IR$1.ParameterObject;
8024
- type: Extract<IrTopLevelKind, 'parameter'>;
8025
- } | {
8026
- $ref: string;
8027
- _path: ReadonlyArray<string | number>;
8028
- name: string;
8029
- requestBody: IR$1.RequestBodyObject;
8030
- type: Extract<IrTopLevelKind, 'requestBody'>;
8031
- } | {
8032
- $ref: string;
8033
- _path: ReadonlyArray<string | number>;
8034
- name: string;
8035
- schema: IR$1.SchemaObject;
8036
- type: Extract<IrTopLevelKind, 'schema'>;
8037
- } | {
8038
- _path: ReadonlyArray<string | number>;
8039
- server: IR$1.ServerObject;
8040
- type: Extract<IrTopLevelKind, 'server'>;
8041
- } | {
8042
- _path: ReadonlyArray<string | number>;
8043
- key: string;
8044
- method: keyof IR$1.PathItemObject;
8045
- operation: IR$1.OperationObject;
8046
- type: Extract<IrTopLevelKind, 'webhook'>;
8047
- };
8048
- type WalkEvent<T$1 extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents, {
8049
- type: T$1;
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
- };
8069
- //#endregion
8070
- //#region src/plugins/shared/utils/instance.d.ts
8071
- declare class PluginInstance<T$1 extends Plugin.Types = Plugin.Types> {
8072
- api: T$1['api'];
8073
- config: Omit<T$1['resolvedConfig'], 'name' | 'output'>;
8074
- context: IR$1.Context;
8075
- dependencies: Required<Plugin.Config<T$1>>['dependencies'];
8076
- gen: IProject;
8077
- private handler;
8078
- name: T$1['resolvedConfig']['name'];
8079
- output: string;
8080
- /**
8081
- * The package metadata and utilities for the current context, constructed
8082
- * from the provided dependencies. Used for managing package-related
8083
- * information such as name, version, and dependency resolution during
8084
- * code generation.
8085
- */
8086
- package: IR$1.Context['package'];
8087
- constructor(props: Pick<Required<Plugin.Config<T$1>>, 'config' | 'dependencies' | 'handler'> & {
8088
- api?: T$1['api'];
8089
- context: IR$1.Context<OpenApi$1.V2_0_X | OpenApi$1.V3_0_X | OpenApi$1.V3_1_X>;
8090
- gen: IProject;
8091
- name: string;
8092
- output: string;
8093
- });
8094
- /**
8095
- * Iterates over various input elements as specified by the event types, in
8096
- * a specific order: servers, schemas, parameters, request bodies, then
8097
- * operations.
8098
- *
8099
- * This ensures, for example, that schemas are always processed before
8100
- * operations, which may reference them.
8101
- *
8102
- * @template T - The event type(s) to yield. Defaults to all event types.
8103
- * @param events - The event types to walk over. If none are provided, all event types are included.
8104
- * @param callback - Function to execute for each event.
8105
- *
8106
- * @example
8107
- * // Iterate over all operations and schemas
8108
- * plugin.forEach('operation', 'schema', (event) => {
8109
- * if (event.type === 'operation') {
8110
- * // handle operation
8111
- * } else if (event.type === 'schema') {
8112
- * // handle schema
8113
- * }
8114
- * });
8115
- */
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;
8118
- private forEachError;
8119
- /**
8120
- * Retrieves a registered plugin instance by its name from the context. This
8121
- * allows plugins to access other plugins that have been registered in the
8122
- * same context, enabling cross-plugin communication and dependencies.
8123
- *
8124
- * @param name Plugin name as defined in the configuration.
8125
- * @returns The plugin instance if found, undefined otherwise.
8126
- */
8127
- getPlugin<T extends keyof PluginConfigMap>(name: T$1): T$1 extends any ? PluginInstance<PluginConfigMap[T$1]> | undefined : never;
8128
- /**
8129
- * Retrieves a registered plugin instance by its name from the context. This
8130
- * allows plugins to access other plugins that have been registered in the
8131
- * same context, enabling cross-plugin communication and dependencies.
8132
- *
8133
- * @param name Plugin name as defined in the configuration.
8134
- * @returns The plugin instance if found, throw otherwise.
8135
- */
8136
- getPluginOrThrow<T extends keyof PluginConfigMap>(name: T$1): T$1 extends any ? PluginInstance<PluginConfigMap[T$1]> : never;
8137
- getSymbol(symbolIdOrSelector: number | Selector): Symbol | undefined;
8138
- private getSymbolFilePath;
8139
- getSymbolValue(idOrSymbol: number | Symbol): unknown;
8140
- hasSymbolValue(idOrSymbol: number | Symbol): boolean;
8141
- hooks: {
8142
- operation: {
8143
- isMutation: (operation: IR$1.OperationObject) => boolean;
8144
- isQuery: (operation: IR$1.OperationObject) => boolean;
8145
- };
8146
- symbol: {
8147
- getFilePath: (symbol: Symbol) => string | undefined;
8148
- };
8149
- };
8150
- private isOperationKind;
8151
- isSymbolRegistered(symbolIdOrSelector: number | Selector): boolean;
8152
- referenceSymbol(symbolIdOrSelector: number | Selector): Symbol;
8153
- registerSymbol(symbol: SymbolIn): Symbol;
8154
- /**
8155
- * Executes plugin's handler function.
8156
- */
8157
- run(): Promise<void>;
8158
- setSymbolValue(idOrSymbol: number | Symbol, value: unknown): Map<number, unknown>;
8159
- private symbolToId;
8160
- }
8161
- //#endregion
8162
8407
  //#region src/types/client.d.ts
8163
8408
  interface Operation extends Omit<Operation$1, 'tags'> {
8164
8409
  service: string;
@@ -8198,7 +8443,7 @@ type BaseConfig = {
8198
8443
  * Use these to classify resources, control which outputs are generated,
8199
8444
  * or provide custom behavior for specific resources.
8200
8445
  */
8201
- '~hooks'?: IR$1.Hooks;
8446
+ '~hooks'?: Hooks;
8202
8447
  };
8203
8448
 
8204
8449
  /**
@@ -8597,1284 +8842,107 @@ declare namespace Client {
8597
8842
  * `setConfig()`. This is useful for example if you're using Next.js
8598
8843
  * to ensure your client always has the correct values.
8599
8844
  */
8600
- runtimeConfigPath?: string;
8601
- /**
8602
- * Should the type helper for base URL allow only values matching the
8603
- * server(s) defined in the input? By default, `strictBaseUrl` is `false`
8604
- * which will provide type hints and allow you to pass any string.
8605
- *
8606
- * Note that setting `strictBaseUrl` to `true` can produce an invalid
8607
- * build if you specify `baseUrl` which doesn't conform to the type helper.
8608
- *
8609
- * @default false
8610
- */
8611
- strictBaseUrl?: boolean;
8612
- };
8613
- }
8614
- //#endregion
8615
- //#region src/plugins/@hey-api/client-angular/api.d.ts
8616
- type SelectorType$14 = 'client';
8617
- type IApi$14 = {
8618
- /**
8619
- * @param type Selector type.
8620
- * @param value Depends on `type`:
8621
- * - `client`: never
8622
- * @returns Selector array
8623
- */
8624
- selector: (type: SelectorType$14, value?: string) => Selector;
8625
- };
8626
- //#endregion
8627
- //#region src/plugins/@hey-api/client-angular/types.d.ts
8628
- type UserConfig$20 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
8629
- /**
8630
- * Throw an error instead of returning it in the response?
8631
- *
8632
- * @default false
8633
- */
8634
- throwOnError?: boolean;
8635
- };
8636
- type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$14>;
8637
- //#endregion
8638
- //#region src/plugins/@hey-api/legacy-angular/types.d.ts
8639
- type UserConfig$19 = Plugin.Name<'legacy/angular'> & Pick<Client.Config, 'output'>;
8640
- type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$19>;
8641
- //#endregion
8642
- //#region src/plugins/@hey-api/legacy-axios/types.d.ts
8643
- type UserConfig$18 = Plugin.Name<'legacy/axios'> & Pick<Client.Config, 'output'>;
8644
- type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$18>;
8645
- //#endregion
8646
- //#region src/plugins/@hey-api/legacy-fetch/types.d.ts
8647
- type UserConfig$17 = Plugin.Name<'legacy/fetch'> & Pick<Client.Config, 'output'>;
8648
- type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$17>;
8649
- //#endregion
8650
- //#region src/plugins/@hey-api/legacy-node/types.d.ts
8651
- type UserConfig$16 = Plugin.Name<'legacy/node'> & Pick<Client.Config, 'output'>;
8652
- type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$16>;
8653
- //#endregion
8654
- //#region src/plugins/@hey-api/legacy-xhr/types.d.ts
8655
- type UserConfig$15 = Plugin.Name<'legacy/xhr'> & Pick<Client.Config, 'output'>;
8656
- type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$15>;
8657
- //#endregion
8658
- //#region src/plugins/@hey-api/schemas/api.d.ts
8659
- type SelectorType$13 = 'ref';
8660
- type IApi$13 = {
8661
- /**
8662
- * @param type Selector type.
8663
- * @param value Depends on `type`:
8664
- * - `ref`: `$ref` JSON pointer
8665
- * @returns Selector array
8666
- */
8667
- selector: (type: SelectorType$13, value?: string) => Selector;
8668
- };
8669
- //#endregion
8670
- //#region src/plugins/@hey-api/schemas/types.d.ts
8671
- type UserConfig$14 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
8672
- /**
8673
- * Should the exports from the generated files be re-exported in the index
8674
- * barrel file?
8675
- *
8676
- * @default false
8677
- */
8678
- exportFromIndex?: boolean;
8679
- /**
8680
- * Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
8681
- * valid JavaScript/TypeScript identifier, e.g. if your schema name is
8682
- * "Foo-Bar", `name` value would be "FooBar".
8683
- *
8684
- * @default '{{name}}Schema'
8685
- */
8686
- nameBuilder?: string | ((name: string, schema: OpenApiSchema | OpenApiSchema$1 | OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
8687
- /**
8688
- * Choose schema type to generate. Select 'form' if you don't want
8689
- * descriptions to reduce bundle size and you plan to use schemas
8690
- * for form validation
8691
- *
8692
- * @default 'json'
8693
- */
8694
- type?: 'form' | 'json';
8695
- };
8696
- type HeyApiSchemasPlugin = DefinePlugin<UserConfig$14, UserConfig$14, IApi$13>;
8697
- declare namespace module_d_exports {
8698
- export { ImportExportItem, createCallExpression, createConstVariable, createExportAllDeclaration, createNamedExportDeclarations, createNamedImportDeclarations };
8699
- }
8700
- /**
8701
- * Create export all declaration. Example: `export * from './y'`.
8702
- * @param module - module containing exports
8703
- * @returns ts.ExportDeclaration
8704
- */
8705
- declare const createExportAllDeclaration: ({
8706
- module,
8707
- shouldAppendJs
8708
- }: {
8709
- module: string;
8710
- shouldAppendJs?: boolean;
8711
- }) => ts.ExportDeclaration;
8712
- type ImportExportItem = ImportExportItemObject | string;
8713
- declare const createCallExpression: ({
8714
- functionName,
8715
- parameters,
8716
- types
8717
- }: {
8718
- functionName: string | ts.PropertyAccessExpression | ts.PropertyAccessChain | ts.ElementAccessExpression | ts.Expression;
8719
- parameters?: Array<string | ts.Expression | undefined>;
8720
- types?: ReadonlyArray<ts.TypeNode>;
8721
- }) => ts.CallExpression;
8722
- /**
8723
- * Create a named export declaration. Example: `export { X } from './y'`.
8724
- * @param exports - named imports to export
8725
- * @param module - module containing exports
8726
- * @returns ts.ExportDeclaration
8727
- */
8728
- declare const createNamedExportDeclarations: ({
8729
- exports,
8730
- module
8731
- }: {
8732
- exports: Array<ImportExportItem> | ImportExportItem;
8733
- module: string;
8734
- }) => ts.ExportDeclaration;
8735
- /**
8736
- * Create a const variable. Optionally, it can use const assertion or export
8737
- * statement. Example: `export x = {} as const`.
8738
- * @param assertion use const assertion?
8739
- * @param exportConst export created variable?
8740
- * @param expression expression for the variable.
8741
- * @param name name of the variable.
8742
- * @returns ts.VariableStatement
8743
- */
8744
- declare const createConstVariable: ({
8745
- assertion,
8746
- comment,
8747
- destructure,
8748
- exportConst,
8749
- expression,
8750
- name,
8751
- typeName
8752
- }: {
8753
- assertion?: "const" | ts.TypeNode;
8754
- comment?: Comments;
8755
- destructure?: boolean;
8756
- exportConst?: boolean;
8757
- expression: ts.Expression;
8758
- name: string | ts.TypeReferenceNode;
8759
- typeName?: string | ts.IndexedAccessTypeNode | ts.TypeNode;
8760
- }) => ts.VariableStatement;
8761
- /**
8762
- * Create a named import declaration. Example: `import { X } from './y'`.
8763
- * @param imports - named exports to import
8764
- * @param module - module containing imports
8765
- * @returns ts.ImportDeclaration
8766
- */
8767
- declare const createNamedImportDeclarations: ({
8768
- imports,
8769
- module
8770
- }: {
8771
- imports: Array<ImportExportItem> | ImportExportItem;
8772
- module: string;
8773
- }) => ts.ImportDeclaration;
8774
- //#endregion
8775
- //#region src/tsc/typedef.d.ts
8776
- type Property = {
8777
- comment?: Comments;
8778
- isReadOnly?: boolean;
8779
- isRequired?: boolean;
8780
- name: string | ts.PropertyName;
8781
- type: any | ts.TypeNode;
8782
- };
8783
- //#endregion
8784
- //#region src/tsc/index.d.ts
8785
- declare const tsc: {
8786
- anonymousFunction: ({
8787
- async,
8788
- comment,
8789
- multiLine,
8790
- parameters,
8791
- returnType,
8792
- statements,
8793
- types: types_d_exports
8794
- }: {
8795
- async?: boolean;
8796
- comment?: Comments;
8797
- multiLine?: boolean;
8798
- parameters?: FunctionParameter[];
8799
- returnType?: string | typescript0.TypeNode;
8800
- statements?: ReadonlyArray<typescript0.Statement>;
8801
- types?: FunctionTypeParameter[];
8802
- }) => typescript0.FunctionExpression;
8803
- arrayLiteralExpression: <T>({
8804
- elements,
8805
- multiLine
8806
- }: {
8807
- elements: T[];
8808
- multiLine?: boolean;
8809
- }) => typescript0.ArrayLiteralExpression;
8810
- arrowFunction: ({
8811
- async,
8812
- comment,
8813
- multiLine,
8814
- parameters,
8815
- returnType,
8816
- statements,
8817
- types: types_d_exports
8818
- }: {
8819
- async?: boolean;
8820
- comment?: Comments;
8821
- multiLine?: boolean;
8822
- parameters?: ReadonlyArray<FunctionParameter>;
8823
- returnType?: string | typescript0.TypeNode;
8824
- statements?: typescript0.Statement[] | typescript0.Expression;
8825
- types?: FunctionTypeParameter[];
8826
- }) => typescript0.ArrowFunction;
8827
- asExpression: ({
8828
- expression,
8829
- type
8830
- }: {
8831
- expression: typescript0.Expression;
8832
- type: typescript0.TypeNode;
8833
- }) => typescript0.AsExpression;
8834
- assignment: ({
8835
- left,
8836
- right
8837
- }: {
8838
- left: typescript0.Expression;
8839
- right: typescript0.Expression;
8840
- }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
8841
- awaitExpression: ({
8842
- expression
8843
- }: {
8844
- expression: typescript0.Expression;
8845
- }) => typescript0.AwaitExpression;
8846
- binaryExpression: ({
8847
- left,
8848
- operator,
8849
- right
8850
- }: {
8851
- left: typescript0.Expression;
8852
- operator?: "=" | "===" | "!==" | "in" | "??";
8853
- right: typescript0.Expression | string;
8854
- }) => typescript0.BinaryExpression;
8855
- block: ({
8856
- multiLine,
8857
- statements
8858
- }: {
8859
- multiLine?: boolean;
8860
- statements: ReadonlyArray<typescript0.Statement>;
8861
- }) => typescript0.Block;
8862
- callExpression: ({
8863
- functionName,
8864
- parameters,
8865
- types: types_d_exports
8866
- }: {
8867
- functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
8868
- parameters?: Array<string | typescript0.Expression | undefined>;
8869
- types?: ReadonlyArray<typescript0.TypeNode>;
8870
- }) => typescript0.CallExpression;
8871
- classDeclaration: ({
8872
- decorator,
8873
- exportClass,
8874
- extendedClasses,
8875
- name,
8876
- nodes
8877
- }: {
8878
- decorator?: {
8879
- args: any[];
8880
- name: string;
8881
- };
8882
- exportClass?: boolean;
8883
- extendedClasses?: ReadonlyArray<string>;
8884
- name: string;
8885
- nodes: ReadonlyArray<typescript0.ClassElement>;
8886
- }) => typescript0.ClassDeclaration;
8887
- conditionalExpression: ({
8888
- condition,
8889
- whenFalse,
8890
- whenTrue
8891
- }: {
8892
- condition: typescript0.Expression;
8893
- whenFalse: typescript0.Expression;
8894
- whenTrue: typescript0.Expression;
8895
- }) => typescript0.ConditionalExpression;
8896
- constVariable: ({
8897
- assertion,
8898
- comment,
8899
- destructure,
8900
- exportConst,
8901
- expression,
8902
- name,
8903
- typeName
8904
- }: {
8905
- assertion?: "const" | typescript0.TypeNode;
8906
- comment?: Comments;
8907
- destructure?: boolean;
8908
- exportConst?: boolean;
8909
- expression: typescript0.Expression;
8910
- name: string | typescript0.TypeReferenceNode;
8911
- typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
8912
- }) => typescript0.VariableStatement;
8913
- constructorDeclaration: ({
8914
- accessLevel,
8915
- comment,
8916
- multiLine,
8917
- parameters,
8918
- statements
8919
- }: {
8920
- accessLevel?: AccessLevel;
8921
- comment?: Comments;
8922
- multiLine?: boolean;
8923
- parameters?: FunctionParameter[];
8924
- statements?: typescript0.Statement[];
8925
- }) => typescript0.ConstructorDeclaration;
8926
- enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
8927
- asConst,
8928
- comments: enumMemberComments,
8929
- leadingComment: comments,
8930
- name,
8931
- obj
8932
- }: {
8933
- asConst: boolean;
8934
- comments?: Record<string | number, Comments>;
8935
- leadingComment?: Comments;
8936
- name: string | typescript0.TypeReferenceNode;
8937
- obj: T;
8938
- }) => typescript0.EnumDeclaration;
8939
- exportAllDeclaration: ({
8940
- module: module_d_exports,
8941
- shouldAppendJs
8942
- }: {
8943
- module: string;
8944
- shouldAppendJs?: boolean;
8945
- }) => typescript0.ExportDeclaration;
8946
- exportNamedDeclaration: ({
8947
- exports,
8948
- module: module_d_exports
8949
- }: {
8950
- exports: Array<ImportExportItem> | ImportExportItem;
8951
- module: string;
8952
- }) => typescript0.ExportDeclaration;
8953
- expressionToStatement: ({
8954
- expression
8955
- }: {
8956
- expression: typescript0.Expression;
8957
- }) => typescript0.ExpressionStatement;
8958
- forOfStatement: ({
8959
- awaitModifier,
8960
- expression,
8961
- initializer,
8962
- statement
8963
- }: {
8964
- awaitModifier?: typescript0.AwaitKeyword;
8965
- expression: typescript0.Expression;
8966
- initializer: typescript0.ForInitializer;
8967
- statement: typescript0.Statement;
8968
- }) => typescript0.ForOfStatement;
8969
- functionTypeNode: ({
8970
- parameters,
8971
- returnType,
8972
- typeParameters
8973
- }: {
8974
- parameters?: typescript0.ParameterDeclaration[];
8975
- returnType: typescript0.TypeNode;
8976
- typeParameters?: typescript0.TypeParameterDeclaration[];
8977
- }) => typescript0.FunctionTypeNode;
8978
- getAccessorDeclaration: ({
8979
- name,
8980
- returnType,
8981
- statements
8982
- }: {
8983
- name: string | typescript0.PropertyName;
8984
- returnType?: string | typescript0.Identifier;
8985
- statements: ReadonlyArray<typescript0.Statement>;
8986
- }) => typescript0.GetAccessorDeclaration;
8987
- identifier: ({
8988
- text
8989
- }: {
8990
- text: string;
8991
- }) => typescript0.Identifier;
8992
- ifStatement: ({
8993
- elseStatement,
8994
- expression,
8995
- thenStatement
8996
- }: {
8997
- elseStatement?: typescript0.Statement;
8998
- expression: typescript0.Expression;
8999
- thenStatement: typescript0.Statement;
9000
- }) => typescript0.IfStatement;
9001
- indexedAccessTypeNode: ({
9002
- indexType,
9003
- objectType
9004
- }: {
9005
- indexType: typescript0.TypeNode;
9006
- objectType: typescript0.TypeNode;
9007
- }) => typescript0.IndexedAccessTypeNode;
9008
- isTsNode: (node: any) => node is typescript0.Expression;
9009
- keywordTypeNode: ({
9010
- keyword
9011
- }: {
9012
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
9013
- }) => typescript0.KeywordTypeNode<typescript0.SyntaxKind.VoidKeyword | typescript0.SyntaxKind.AnyKeyword | typescript0.SyntaxKind.BooleanKeyword | typescript0.SyntaxKind.NeverKeyword | typescript0.SyntaxKind.NumberKeyword | typescript0.SyntaxKind.StringKeyword | typescript0.SyntaxKind.UndefinedKeyword | typescript0.SyntaxKind.UnknownKeyword>;
9014
- literalTypeNode: ({
9015
- literal
9016
- }: {
9017
- literal: typescript0.LiteralTypeNode["literal"];
9018
- }) => typescript0.LiteralTypeNode;
9019
- mappedTypeNode: ({
9020
- members,
9021
- nameType,
9022
- questionToken,
9023
- readonlyToken,
9024
- type,
9025
- typeParameter
9026
- }: {
9027
- members?: typescript0.NodeArray<typescript0.TypeElement>;
9028
- nameType?: typescript0.TypeNode;
9029
- questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
9030
- readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
9031
- type?: typescript0.TypeNode;
9032
- typeParameter: typescript0.TypeParameterDeclaration;
9033
- }) => typescript0.MappedTypeNode;
9034
- methodDeclaration: ({
9035
- accessLevel,
9036
- comment,
9037
- isStatic,
9038
- multiLine,
9039
- name,
9040
- parameters,
9041
- returnType,
9042
- statements,
9043
- types: types_d_exports
9044
- }: {
9045
- accessLevel?: AccessLevel;
9046
- comment?: Comments;
9047
- isStatic?: boolean;
9048
- multiLine?: boolean;
9049
- name: string;
9050
- parameters?: ReadonlyArray<FunctionParameter>;
9051
- returnType?: string | typescript0.TypeNode;
9052
- statements?: typescript0.Statement[];
9053
- types?: FunctionTypeParameter[];
9054
- }) => typescript0.MethodDeclaration;
9055
- namedImportDeclarations: ({
9056
- imports,
9057
- module: module_d_exports
9058
- }: {
9059
- imports: Array<ImportExportItem> | ImportExportItem;
9060
- module: string;
9061
- }) => typescript0.ImportDeclaration;
9062
- namespaceDeclaration: ({
9063
- name,
9064
- statements
9065
- }: {
9066
- name: string;
9067
- statements: Array<typescript0.Statement>;
9068
- }) => typescript0.ModuleDeclaration;
9069
- newExpression: ({
9070
- argumentsArray,
9071
- expression,
9072
- typeArguments
9073
- }: {
9074
- argumentsArray?: Array<typescript0.Expression>;
9075
- expression: typescript0.Expression;
9076
- typeArguments?: Array<typescript0.TypeNode>;
9077
- }) => typescript0.NewExpression;
9078
- nodeToString: typeof tsNodeToString;
9079
- null: () => typescript0.NullLiteral;
9080
- objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
9081
- comments,
9082
- identifiers,
9083
- multiLine,
9084
- obj,
9085
- shorthand,
9086
- unescape
9087
- }: {
9088
- comments?: Comments;
9089
- identifiers?: string[];
9090
- multiLine?: boolean;
9091
- obj: T;
9092
- shorthand?: boolean;
9093
- unescape?: boolean;
9094
- }) => typescript0.ObjectLiteralExpression;
9095
- ots: {
9096
- boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
9097
- export: ({
9098
- alias,
9099
- asType,
9100
- name
9101
- }: ImportExportItemObject) => typescript0.ExportSpecifier;
9102
- import: ({
9103
- alias,
9104
- asType,
9105
- name
9106
- }: ImportExportItemObject) => typescript0.ImportSpecifier;
9107
- number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
9108
- string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
9109
- };
9110
- parameterDeclaration: ({
9111
- initializer,
9112
- modifiers,
9113
- name,
9114
- required,
9115
- type
9116
- }: {
9117
- initializer?: typescript0.Expression;
9118
- modifiers?: ReadonlyArray<typescript0.ModifierLike>;
9119
- name: string | typescript0.BindingName;
9120
- required?: boolean;
9121
- type?: typescript0.TypeNode;
9122
- }) => typescript0.ParameterDeclaration;
9123
- propertyAccessExpression: ({
9124
- expression,
9125
- isOptional,
9126
- name
9127
- }: {
9128
- expression: string | typescript0.Expression;
9129
- isOptional?: boolean;
9130
- name: string | number | typescript0.MemberName;
9131
- }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
9132
- propertyAccessExpressions: ({
9133
- expressions
9134
- }: {
9135
- expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
9136
- }) => typescript0.PropertyAccessExpression;
9137
- propertyAssignment: ({
9138
- initializer,
9139
- name
9140
- }: {
9141
- initializer: typescript0.Expression;
9142
- name: string | typescript0.PropertyName;
9143
- }) => typescript0.PropertyAssignment;
9144
- propertyDeclaration: ({
9145
- initializer,
9146
- modifier,
9147
- name,
9148
- type
9149
- }: {
9150
- initializer?: typescript0.Expression;
9151
- modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
9152
- name: string | typescript0.PropertyName;
9153
- type?: typescript0.TypeNode;
9154
- }) => typescript0.PropertyDeclaration;
9155
- regularExpressionLiteral: ({
9156
- flags,
9157
- text
9158
- }: {
9159
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
9160
- text: string;
9161
- }) => typescript0.RegularExpressionLiteral;
9162
- returnFunctionCall: ({
9163
- args,
9164
- name,
9165
- types: types_d_exports
9166
- }: {
9167
- args: any[];
9168
- name: string | typescript0.Expression;
9169
- types?: ReadonlyArray<string | typescript0.StringLiteral>;
9170
- }) => typescript0.ReturnStatement;
9171
- returnStatement: ({
9172
- expression
9173
- }: {
9174
- expression?: typescript0.Expression;
9175
- }) => typescript0.ReturnStatement;
9176
- returnVariable: ({
9177
- expression
9178
- }: {
9179
- expression: string | typescript0.Expression;
9180
- }) => typescript0.ReturnStatement;
9181
- safeAccessExpression: (path: string[]) => typescript0.Expression;
9182
- stringLiteral: ({
9183
- isSingleQuote,
9184
- text
9185
- }: {
9186
- isSingleQuote?: boolean;
9187
- text: string;
9188
- }) => typescript0.StringLiteral;
9189
- templateLiteralType: ({
9190
- value
9191
- }: {
9192
- value: ReadonlyArray<string | typescript0.TypeNode>;
9193
- }) => typescript0.TemplateLiteralTypeNode;
9194
- this: () => typescript0.ThisExpression;
9195
- transformArrayMap: ({
9196
- path,
9197
- transformExpression
9198
- }: {
9199
- path: string[];
9200
- transformExpression: typescript0.Expression;
9201
- }) => typescript0.IfStatement;
9202
- transformArrayMutation: ({
9203
- path,
9204
- transformerName
9205
- }: {
9206
- path: string[];
9207
- transformerName: string;
9208
- }) => typescript0.Statement;
9209
- transformDateMutation: ({
9210
- path
9211
- }: {
9212
- path: string[];
9213
- }) => typescript0.Statement;
9214
- transformFunctionMutation: ({
9215
- path,
9216
- transformerName
9217
- }: {
9218
- path: string[];
9219
- transformerName: string;
9220
- }) => typescript0.IfStatement[];
9221
- transformNewDate: ({
9222
- parameterName
9223
- }: {
9224
- parameterName: string;
9225
- }) => typescript0.NewExpression;
9226
- typeAliasDeclaration: ({
9227
- comment,
9228
- exportType,
9229
- name,
9230
- type,
9231
- typeParameters
9232
- }: {
9233
- comment?: Comments;
9234
- exportType?: boolean;
9235
- name: string | typescript0.TypeReferenceNode;
9236
- type: string | typescript0.TypeNode | typescript0.Identifier;
9237
- typeParameters?: FunctionTypeParameter[];
9238
- }) => typescript0.TypeAliasDeclaration;
9239
- typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
9240
- typeInterfaceNode: ({
9241
- indexKey,
9242
- indexProperty,
9243
- isNullable,
9244
- properties,
9245
- useLegacyResolution
9246
- }: {
9247
- indexKey?: typescript0.TypeReferenceNode;
9248
- indexProperty?: Property;
9249
- isNullable?: boolean;
9250
- properties: Property[];
9251
- useLegacyResolution: boolean;
9252
- }) => typescript0.TypeNode;
9253
- typeIntersectionNode: ({
9254
- isNullable,
9255
- types: types_d_exports
9256
- }: {
9257
- isNullable?: boolean;
9258
- types: (any | typescript0.TypeNode)[];
9259
- }) => typescript0.TypeNode;
9260
- typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
9261
- typeOfExpression: ({
9262
- text
9263
- }: {
9264
- text: string | typescript0.Identifier;
9265
- }) => typescript0.TypeOfExpression;
9266
- typeOperatorNode: ({
9267
- operator,
9268
- type
9269
- }: {
9270
- operator: "keyof" | "readonly" | "unique";
9271
- type: typescript0.TypeNode;
9272
- }) => typescript0.TypeOperatorNode;
9273
- typeParameterDeclaration: ({
9274
- constraint,
9275
- defaultType,
9276
- modifiers,
9277
- name
9278
- }: {
9279
- constraint?: typescript0.TypeNode;
9280
- defaultType?: typescript0.TypeNode;
9281
- modifiers?: Array<typescript0.Modifier>;
9282
- name: string | typescript0.Identifier;
9283
- }) => typescript0.TypeParameterDeclaration;
9284
- typeParenthesizedNode: ({
9285
- type
9286
- }: {
9287
- type: typescript0.TypeNode;
9288
- }) => typescript0.ParenthesizedTypeNode;
9289
- typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
9290
- typeReferenceNode: ({
9291
- typeArguments,
9292
- typeName
9293
- }: {
9294
- typeArguments?: typescript0.TypeNode[];
9295
- typeName: string | typescript0.EntityName;
9296
- }) => typescript0.TypeReferenceNode;
9297
- typeTupleNode: ({
9298
- isNullable,
9299
- types: types_d_exports
9300
- }: {
9301
- isNullable?: boolean;
9302
- types: Array<any | typescript0.TypeNode>;
9303
- }) => typescript0.TypeNode;
9304
- typeUnionNode: ({
9305
- isNullable,
9306
- types: types_d_exports
9307
- }: {
9308
- isNullable?: boolean;
9309
- types: ReadonlyArray<any | typescript0.TypeNode>;
9310
- }) => typescript0.TypeNode;
9311
- valueToExpression: <T = unknown>({
9312
- identifiers,
9313
- isValueAccess,
9314
- shorthand,
9315
- unescape,
9316
- value
9317
- }: {
9318
- identifiers?: string[];
9319
- isValueAccess?: boolean;
9320
- shorthand?: boolean;
9321
- unescape?: boolean;
9322
- value: T;
9323
- }) => typescript0.Expression | undefined;
8845
+ runtimeConfigPath?: string;
8846
+ /**
8847
+ * Should the type helper for base URL allow only values matching the
8848
+ * server(s) defined in the input? By default, `strictBaseUrl` is `false`
8849
+ * which will provide type hints and allow you to pass any string.
8850
+ *
8851
+ * Note that setting `strictBaseUrl` to `true` can produce an invalid
8852
+ * build if you specify `baseUrl` which doesn't conform to the type helper.
8853
+ *
8854
+ * @default false
8855
+ */
8856
+ strictBaseUrl?: boolean;
8857
+ };
8858
+ }
8859
+ //#endregion
8860
+ //#region src/plugins/@hey-api/client-angular/api.d.ts
8861
+ type SelectorType$14 = 'client';
8862
+ type IApi$14 = {
8863
+ /**
8864
+ * @param type Selector type.
8865
+ * @param value Depends on `type`:
8866
+ * - `client`: never
8867
+ * @returns Selector array
8868
+ */
8869
+ selector: (type: SelectorType$14, value?: string) => Selector;
9324
8870
  };
9325
- /** @deprecated use tsc */
9326
- declare const compiler: {
9327
- anonymousFunction: ({
9328
- async,
9329
- comment,
9330
- multiLine,
9331
- parameters,
9332
- returnType,
9333
- statements,
9334
- types: types_d_exports
9335
- }: {
9336
- async?: boolean;
9337
- comment?: Comments;
9338
- multiLine?: boolean;
9339
- parameters?: FunctionParameter[];
9340
- returnType?: string | typescript0.TypeNode;
9341
- statements?: ReadonlyArray<typescript0.Statement>;
9342
- types?: FunctionTypeParameter[];
9343
- }) => typescript0.FunctionExpression;
9344
- arrayLiteralExpression: <T>({
9345
- elements,
9346
- multiLine
9347
- }: {
9348
- elements: T[];
9349
- multiLine?: boolean;
9350
- }) => typescript0.ArrayLiteralExpression;
9351
- arrowFunction: ({
9352
- async,
9353
- comment,
9354
- multiLine,
9355
- parameters,
9356
- returnType,
9357
- statements,
9358
- types: types_d_exports
9359
- }: {
9360
- async?: boolean;
9361
- comment?: Comments;
9362
- multiLine?: boolean;
9363
- parameters?: ReadonlyArray<FunctionParameter>;
9364
- returnType?: string | typescript0.TypeNode;
9365
- statements?: typescript0.Statement[] | typescript0.Expression;
9366
- types?: FunctionTypeParameter[];
9367
- }) => typescript0.ArrowFunction;
9368
- asExpression: ({
9369
- expression,
9370
- type
9371
- }: {
9372
- expression: typescript0.Expression;
9373
- type: typescript0.TypeNode;
9374
- }) => typescript0.AsExpression;
9375
- assignment: ({
9376
- left,
9377
- right
9378
- }: {
9379
- left: typescript0.Expression;
9380
- right: typescript0.Expression;
9381
- }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
9382
- awaitExpression: ({
9383
- expression
9384
- }: {
9385
- expression: typescript0.Expression;
9386
- }) => typescript0.AwaitExpression;
9387
- binaryExpression: ({
9388
- left,
9389
- operator,
9390
- right
9391
- }: {
9392
- left: typescript0.Expression;
9393
- operator?: "=" | "===" | "!==" | "in" | "??";
9394
- right: typescript0.Expression | string;
9395
- }) => typescript0.BinaryExpression;
9396
- block: ({
9397
- multiLine,
9398
- statements
9399
- }: {
9400
- multiLine?: boolean;
9401
- statements: ReadonlyArray<typescript0.Statement>;
9402
- }) => typescript0.Block;
9403
- callExpression: ({
9404
- functionName,
9405
- parameters,
9406
- types: types_d_exports
9407
- }: {
9408
- functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
9409
- parameters?: Array<string | typescript0.Expression | undefined>;
9410
- types?: ReadonlyArray<typescript0.TypeNode>;
9411
- }) => typescript0.CallExpression;
9412
- classDeclaration: ({
9413
- decorator,
9414
- exportClass,
9415
- extendedClasses,
9416
- name,
9417
- nodes
9418
- }: {
9419
- decorator?: {
9420
- args: any[];
9421
- name: string;
9422
- };
9423
- exportClass?: boolean;
9424
- extendedClasses?: ReadonlyArray<string>;
9425
- name: string;
9426
- nodes: ReadonlyArray<typescript0.ClassElement>;
9427
- }) => typescript0.ClassDeclaration;
9428
- conditionalExpression: ({
9429
- condition,
9430
- whenFalse,
9431
- whenTrue
9432
- }: {
9433
- condition: typescript0.Expression;
9434
- whenFalse: typescript0.Expression;
9435
- whenTrue: typescript0.Expression;
9436
- }) => typescript0.ConditionalExpression;
9437
- constVariable: ({
9438
- assertion,
9439
- comment,
9440
- destructure,
9441
- exportConst,
9442
- expression,
9443
- name,
9444
- typeName
9445
- }: {
9446
- assertion?: "const" | typescript0.TypeNode;
9447
- comment?: Comments;
9448
- destructure?: boolean;
9449
- exportConst?: boolean;
9450
- expression: typescript0.Expression;
9451
- name: string | typescript0.TypeReferenceNode;
9452
- typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
9453
- }) => typescript0.VariableStatement;
9454
- constructorDeclaration: ({
9455
- accessLevel,
9456
- comment,
9457
- multiLine,
9458
- parameters,
9459
- statements
9460
- }: {
9461
- accessLevel?: AccessLevel;
9462
- comment?: Comments;
9463
- multiLine?: boolean;
9464
- parameters?: FunctionParameter[];
9465
- statements?: typescript0.Statement[];
9466
- }) => typescript0.ConstructorDeclaration;
9467
- enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
9468
- asConst,
9469
- comments: enumMemberComments,
9470
- leadingComment: comments,
9471
- name,
9472
- obj
9473
- }: {
9474
- asConst: boolean;
9475
- comments?: Record<string | number, Comments>;
9476
- leadingComment?: Comments;
9477
- name: string | typescript0.TypeReferenceNode;
9478
- obj: T;
9479
- }) => typescript0.EnumDeclaration;
9480
- exportAllDeclaration: ({
9481
- module: module_d_exports,
9482
- shouldAppendJs
9483
- }: {
9484
- module: string;
9485
- shouldAppendJs?: boolean;
9486
- }) => typescript0.ExportDeclaration;
9487
- exportNamedDeclaration: ({
9488
- exports,
9489
- module: module_d_exports
9490
- }: {
9491
- exports: Array<ImportExportItem> | ImportExportItem;
9492
- module: string;
9493
- }) => typescript0.ExportDeclaration;
9494
- expressionToStatement: ({
9495
- expression
9496
- }: {
9497
- expression: typescript0.Expression;
9498
- }) => typescript0.ExpressionStatement;
9499
- forOfStatement: ({
9500
- awaitModifier,
9501
- expression,
9502
- initializer,
9503
- statement
9504
- }: {
9505
- awaitModifier?: typescript0.AwaitKeyword;
9506
- expression: typescript0.Expression;
9507
- initializer: typescript0.ForInitializer;
9508
- statement: typescript0.Statement;
9509
- }) => typescript0.ForOfStatement;
9510
- functionTypeNode: ({
9511
- parameters,
9512
- returnType,
9513
- typeParameters
9514
- }: {
9515
- parameters?: typescript0.ParameterDeclaration[];
9516
- returnType: typescript0.TypeNode;
9517
- typeParameters?: typescript0.TypeParameterDeclaration[];
9518
- }) => typescript0.FunctionTypeNode;
9519
- getAccessorDeclaration: ({
9520
- name,
9521
- returnType,
9522
- statements
9523
- }: {
9524
- name: string | typescript0.PropertyName;
9525
- returnType?: string | typescript0.Identifier;
9526
- statements: ReadonlyArray<typescript0.Statement>;
9527
- }) => typescript0.GetAccessorDeclaration;
9528
- identifier: ({
9529
- text
9530
- }: {
9531
- text: string;
9532
- }) => typescript0.Identifier;
9533
- ifStatement: ({
9534
- elseStatement,
9535
- expression,
9536
- thenStatement
9537
- }: {
9538
- elseStatement?: typescript0.Statement;
9539
- expression: typescript0.Expression;
9540
- thenStatement: typescript0.Statement;
9541
- }) => typescript0.IfStatement;
9542
- indexedAccessTypeNode: ({
9543
- indexType,
9544
- objectType
9545
- }: {
9546
- indexType: typescript0.TypeNode;
9547
- objectType: typescript0.TypeNode;
9548
- }) => typescript0.IndexedAccessTypeNode;
9549
- isTsNode: (node: any) => node is typescript0.Expression;
9550
- keywordTypeNode: ({
9551
- keyword
9552
- }: {
9553
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
9554
- }) => typescript0.KeywordTypeNode<typescript0.SyntaxKind.VoidKeyword | typescript0.SyntaxKind.AnyKeyword | typescript0.SyntaxKind.BooleanKeyword | typescript0.SyntaxKind.NeverKeyword | typescript0.SyntaxKind.NumberKeyword | typescript0.SyntaxKind.StringKeyword | typescript0.SyntaxKind.UndefinedKeyword | typescript0.SyntaxKind.UnknownKeyword>;
9555
- literalTypeNode: ({
9556
- literal
9557
- }: {
9558
- literal: typescript0.LiteralTypeNode["literal"];
9559
- }) => typescript0.LiteralTypeNode;
9560
- mappedTypeNode: ({
9561
- members,
9562
- nameType,
9563
- questionToken,
9564
- readonlyToken,
9565
- type,
9566
- typeParameter
9567
- }: {
9568
- members?: typescript0.NodeArray<typescript0.TypeElement>;
9569
- nameType?: typescript0.TypeNode;
9570
- questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
9571
- readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
9572
- type?: typescript0.TypeNode;
9573
- typeParameter: typescript0.TypeParameterDeclaration;
9574
- }) => typescript0.MappedTypeNode;
9575
- methodDeclaration: ({
9576
- accessLevel,
9577
- comment,
9578
- isStatic,
9579
- multiLine,
9580
- name,
9581
- parameters,
9582
- returnType,
9583
- statements,
9584
- types: types_d_exports
9585
- }: {
9586
- accessLevel?: AccessLevel;
9587
- comment?: Comments;
9588
- isStatic?: boolean;
9589
- multiLine?: boolean;
9590
- name: string;
9591
- parameters?: ReadonlyArray<FunctionParameter>;
9592
- returnType?: string | typescript0.TypeNode;
9593
- statements?: typescript0.Statement[];
9594
- types?: FunctionTypeParameter[];
9595
- }) => typescript0.MethodDeclaration;
9596
- namedImportDeclarations: ({
9597
- imports,
9598
- module: module_d_exports
9599
- }: {
9600
- imports: Array<ImportExportItem> | ImportExportItem;
9601
- module: string;
9602
- }) => typescript0.ImportDeclaration;
9603
- namespaceDeclaration: ({
9604
- name,
9605
- statements
9606
- }: {
9607
- name: string;
9608
- statements: Array<typescript0.Statement>;
9609
- }) => typescript0.ModuleDeclaration;
9610
- newExpression: ({
9611
- argumentsArray,
9612
- expression,
9613
- typeArguments
9614
- }: {
9615
- argumentsArray?: Array<typescript0.Expression>;
9616
- expression: typescript0.Expression;
9617
- typeArguments?: Array<typescript0.TypeNode>;
9618
- }) => typescript0.NewExpression;
9619
- nodeToString: typeof tsNodeToString;
9620
- null: () => typescript0.NullLiteral;
9621
- objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
9622
- comments,
9623
- identifiers,
9624
- multiLine,
9625
- obj,
9626
- shorthand,
9627
- unescape
9628
- }: {
9629
- comments?: Comments;
9630
- identifiers?: string[];
9631
- multiLine?: boolean;
9632
- obj: T;
9633
- shorthand?: boolean;
9634
- unescape?: boolean;
9635
- }) => typescript0.ObjectLiteralExpression;
9636
- ots: {
9637
- boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
9638
- export: ({
9639
- alias,
9640
- asType,
9641
- name
9642
- }: ImportExportItemObject) => typescript0.ExportSpecifier;
9643
- import: ({
9644
- alias,
9645
- asType,
9646
- name
9647
- }: ImportExportItemObject) => typescript0.ImportSpecifier;
9648
- number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
9649
- string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
9650
- };
9651
- parameterDeclaration: ({
9652
- initializer,
9653
- modifiers,
9654
- name,
9655
- required,
9656
- type
9657
- }: {
9658
- initializer?: typescript0.Expression;
9659
- modifiers?: ReadonlyArray<typescript0.ModifierLike>;
9660
- name: string | typescript0.BindingName;
9661
- required?: boolean;
9662
- type?: typescript0.TypeNode;
9663
- }) => typescript0.ParameterDeclaration;
9664
- propertyAccessExpression: ({
9665
- expression,
9666
- isOptional,
9667
- name
9668
- }: {
9669
- expression: string | typescript0.Expression;
9670
- isOptional?: boolean;
9671
- name: string | number | typescript0.MemberName;
9672
- }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
9673
- propertyAccessExpressions: ({
9674
- expressions
9675
- }: {
9676
- expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
9677
- }) => typescript0.PropertyAccessExpression;
9678
- propertyAssignment: ({
9679
- initializer,
9680
- name
9681
- }: {
9682
- initializer: typescript0.Expression;
9683
- name: string | typescript0.PropertyName;
9684
- }) => typescript0.PropertyAssignment;
9685
- propertyDeclaration: ({
9686
- initializer,
9687
- modifier,
9688
- name,
9689
- type
9690
- }: {
9691
- initializer?: typescript0.Expression;
9692
- modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
9693
- name: string | typescript0.PropertyName;
9694
- type?: typescript0.TypeNode;
9695
- }) => typescript0.PropertyDeclaration;
9696
- regularExpressionLiteral: ({
9697
- flags,
9698
- text
9699
- }: {
9700
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
9701
- text: string;
9702
- }) => typescript0.RegularExpressionLiteral;
9703
- returnFunctionCall: ({
9704
- args,
9705
- name,
9706
- types: types_d_exports
9707
- }: {
9708
- args: any[];
9709
- name: string | typescript0.Expression;
9710
- types?: ReadonlyArray<string | typescript0.StringLiteral>;
9711
- }) => typescript0.ReturnStatement;
9712
- returnStatement: ({
9713
- expression
9714
- }: {
9715
- expression?: typescript0.Expression;
9716
- }) => typescript0.ReturnStatement;
9717
- returnVariable: ({
9718
- expression
9719
- }: {
9720
- expression: string | typescript0.Expression;
9721
- }) => typescript0.ReturnStatement;
9722
- safeAccessExpression: (path: string[]) => typescript0.Expression;
9723
- stringLiteral: ({
9724
- isSingleQuote,
9725
- text
9726
- }: {
9727
- isSingleQuote?: boolean;
9728
- text: string;
9729
- }) => typescript0.StringLiteral;
9730
- templateLiteralType: ({
9731
- value
9732
- }: {
9733
- value: ReadonlyArray<string | typescript0.TypeNode>;
9734
- }) => typescript0.TemplateLiteralTypeNode;
9735
- this: () => typescript0.ThisExpression;
9736
- transformArrayMap: ({
9737
- path,
9738
- transformExpression
9739
- }: {
9740
- path: string[];
9741
- transformExpression: typescript0.Expression;
9742
- }) => typescript0.IfStatement;
9743
- transformArrayMutation: ({
9744
- path,
9745
- transformerName
9746
- }: {
9747
- path: string[];
9748
- transformerName: string;
9749
- }) => typescript0.Statement;
9750
- transformDateMutation: ({
9751
- path
9752
- }: {
9753
- path: string[];
9754
- }) => typescript0.Statement;
9755
- transformFunctionMutation: ({
9756
- path,
9757
- transformerName
9758
- }: {
9759
- path: string[];
9760
- transformerName: string;
9761
- }) => typescript0.IfStatement[];
9762
- transformNewDate: ({
9763
- parameterName
9764
- }: {
9765
- parameterName: string;
9766
- }) => typescript0.NewExpression;
9767
- typeAliasDeclaration: ({
9768
- comment,
9769
- exportType,
9770
- name,
9771
- type,
9772
- typeParameters
9773
- }: {
9774
- comment?: Comments;
9775
- exportType?: boolean;
9776
- name: string | typescript0.TypeReferenceNode;
9777
- type: string | typescript0.TypeNode | typescript0.Identifier;
9778
- typeParameters?: FunctionTypeParameter[];
9779
- }) => typescript0.TypeAliasDeclaration;
9780
- typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
9781
- typeInterfaceNode: ({
9782
- indexKey,
9783
- indexProperty,
9784
- isNullable,
9785
- properties,
9786
- useLegacyResolution
9787
- }: {
9788
- indexKey?: typescript0.TypeReferenceNode;
9789
- indexProperty?: Property;
9790
- isNullable?: boolean;
9791
- properties: Property[];
9792
- useLegacyResolution: boolean;
9793
- }) => typescript0.TypeNode;
9794
- typeIntersectionNode: ({
9795
- isNullable,
9796
- types: types_d_exports
9797
- }: {
9798
- isNullable?: boolean;
9799
- types: (any | typescript0.TypeNode)[];
9800
- }) => typescript0.TypeNode;
9801
- typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
9802
- typeOfExpression: ({
9803
- text
9804
- }: {
9805
- text: string | typescript0.Identifier;
9806
- }) => typescript0.TypeOfExpression;
9807
- typeOperatorNode: ({
9808
- operator,
9809
- type
9810
- }: {
9811
- operator: "keyof" | "readonly" | "unique";
9812
- type: typescript0.TypeNode;
9813
- }) => typescript0.TypeOperatorNode;
9814
- typeParameterDeclaration: ({
9815
- constraint,
9816
- defaultType,
9817
- modifiers,
9818
- name
9819
- }: {
9820
- constraint?: typescript0.TypeNode;
9821
- defaultType?: typescript0.TypeNode;
9822
- modifiers?: Array<typescript0.Modifier>;
9823
- name: string | typescript0.Identifier;
9824
- }) => typescript0.TypeParameterDeclaration;
9825
- typeParenthesizedNode: ({
9826
- type
9827
- }: {
9828
- type: typescript0.TypeNode;
9829
- }) => typescript0.ParenthesizedTypeNode;
9830
- typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
9831
- typeReferenceNode: ({
9832
- typeArguments,
9833
- typeName
9834
- }: {
9835
- typeArguments?: typescript0.TypeNode[];
9836
- typeName: string | typescript0.EntityName;
9837
- }) => typescript0.TypeReferenceNode;
9838
- typeTupleNode: ({
9839
- isNullable,
9840
- types: types_d_exports
9841
- }: {
9842
- isNullable?: boolean;
9843
- types: Array<any | typescript0.TypeNode>;
9844
- }) => typescript0.TypeNode;
9845
- typeUnionNode: ({
9846
- isNullable,
9847
- types: types_d_exports
9848
- }: {
9849
- isNullable?: boolean;
9850
- types: ReadonlyArray<any | typescript0.TypeNode>;
9851
- }) => typescript0.TypeNode;
9852
- valueToExpression: <T = unknown>({
9853
- identifiers,
9854
- isValueAccess,
9855
- shorthand,
9856
- unescape,
9857
- value
9858
- }: {
9859
- identifiers?: string[];
9860
- isValueAccess?: boolean;
9861
- shorthand?: boolean;
9862
- unescape?: boolean;
9863
- value: T;
9864
- }) => typescript0.Expression | undefined;
8871
+ //#endregion
8872
+ //#region src/plugins/@hey-api/client-angular/types.d.ts
8873
+ type UserConfig$20 = Plugin.Name<'@hey-api/client-angular'> & Client.Config & {
8874
+ /**
8875
+ * Throw an error instead of returning it in the response?
8876
+ *
8877
+ * @default false
8878
+ */
8879
+ throwOnError?: boolean;
9865
8880
  };
8881
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$20, UserConfig$20, IApi$14>;
9866
8882
  //#endregion
9867
- //#region src/plugins/@hey-api/sdk/comment.d.ts
9868
- declare const createOperationComment: ({
9869
- operation
9870
- }: {
9871
- operation: IR$1.OperationObject;
9872
- }) => Comments | undefined;
8883
+ //#region src/plugins/@hey-api/legacy-angular/types.d.ts
8884
+ type UserConfig$19 = Plugin.Name<'legacy/angular'> & Pick<Client.Config, 'output'>;
8885
+ type HeyApiClientLegacyAngularPlugin = DefinePlugin<UserConfig$19>;
8886
+ //#endregion
8887
+ //#region src/plugins/@hey-api/legacy-axios/types.d.ts
8888
+ type UserConfig$18 = Plugin.Name<'legacy/axios'> & Pick<Client.Config, 'output'>;
8889
+ type HeyApiClientLegacyAxiosPlugin = DefinePlugin<UserConfig$18>;
8890
+ //#endregion
8891
+ //#region src/plugins/@hey-api/legacy-fetch/types.d.ts
8892
+ type UserConfig$17 = Plugin.Name<'legacy/fetch'> & Pick<Client.Config, 'output'>;
8893
+ type HeyApiClientLegacyFetchPlugin = DefinePlugin<UserConfig$17>;
8894
+ //#endregion
8895
+ //#region src/plugins/@hey-api/legacy-node/types.d.ts
8896
+ type UserConfig$16 = Plugin.Name<'legacy/node'> & Pick<Client.Config, 'output'>;
8897
+ type HeyApiClientLegacyNodePlugin = DefinePlugin<UserConfig$16>;
8898
+ //#endregion
8899
+ //#region src/plugins/@hey-api/legacy-xhr/types.d.ts
8900
+ type UserConfig$15 = Plugin.Name<'legacy/xhr'> & Pick<Client.Config, 'output'>;
8901
+ type HeyApiClientLegacyXhrPlugin = DefinePlugin<UserConfig$15>;
8902
+ //#endregion
8903
+ //#region src/plugins/@hey-api/schemas/api.d.ts
8904
+ type SelectorType$13 = 'ref';
8905
+ type IApi$13 = {
8906
+ /**
8907
+ * @param type Selector type.
8908
+ * @param value Depends on `type`:
8909
+ * - `ref`: `$ref` JSON pointer
8910
+ * @returns Selector array
8911
+ */
8912
+ selector: (type: SelectorType$13, value?: string) => Selector;
8913
+ };
8914
+ //#endregion
8915
+ //#region src/plugins/@hey-api/schemas/types.d.ts
8916
+ type UserConfig$14 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
8917
+ /**
8918
+ * Should the exports from the generated files be re-exported in the index
8919
+ * barrel file?
8920
+ *
8921
+ * @default false
8922
+ */
8923
+ exportFromIndex?: boolean;
8924
+ /**
8925
+ * Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
8926
+ * valid JavaScript/TypeScript identifier, e.g. if your schema name is
8927
+ * "Foo-Bar", `name` value would be "FooBar".
8928
+ *
8929
+ * @default '{{name}}Schema'
8930
+ */
8931
+ nameBuilder?: string | ((name: string, schema: OpenApiSchema | OpenApiSchema$1 | OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
8932
+ /**
8933
+ * Choose schema type to generate. Select 'form' if you don't want
8934
+ * descriptions to reduce bundle size and you plan to use schemas
8935
+ * for form validation
8936
+ *
8937
+ * @default 'json'
8938
+ */
8939
+ type?: 'form' | 'json';
8940
+ };
8941
+ type HeyApiSchemasPlugin = DefinePlugin<UserConfig$14, UserConfig$14, IApi$13>;
9873
8942
  //#endregion
9874
8943
  //#region src/plugins/@hey-api/sdk/api.d.ts
9875
8944
  type SelectorType$12 = 'buildClientParams' | 'class' | 'Client' | 'Composable' | 'formDataBodySerializer' | 'function' | 'Injectable' | 'Options' | 'urlSearchParamsBodySerializer';
9876
8945
  type IApi$12 = {
9877
- createOperationComment: typeof createOperationComment;
9878
8946
  /**
9879
8947
  * @param type Selector type.
9880
8948
  * @param value Depends on `type`:
@@ -10301,19 +9369,26 @@ type Config$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
10301
9369
  };
10302
9370
  type HeyApiTransformersPlugin = DefinePlugin<UserConfig$12, Config$12, IApi$11>;
10303
9371
  //#endregion
10304
- //#region src/plugins/@hey-api/typescript/plugin.d.ts
10305
- declare const schemaToType: ({
9372
+ //#region src/plugins/@hey-api/typescript/shared/types.d.ts
9373
+ type IrSchemaToAstOptions = {
9374
+ plugin: HeyApiTypeScriptPlugin['Instance'];
9375
+ state: ToRefs<PluginState>;
9376
+ };
9377
+ type PluginState = Pick<Required<SymbolMeta>, 'path'> & Pick<Partial<SymbolMeta>, 'tags'>;
9378
+ //#endregion
9379
+ //#region src/plugins/@hey-api/typescript/v1/plugin.d.ts
9380
+ declare const irSchemaToAst: ({
10306
9381
  plugin,
10307
- schema
10308
- }: {
10309
- plugin: HeyApiTypeScriptPlugin["Instance"];
9382
+ schema,
9383
+ state
9384
+ }: IrSchemaToAstOptions & {
10310
9385
  schema: IR$1.SchemaObject;
10311
9386
  }) => ts.TypeNode;
10312
9387
  //#endregion
10313
9388
  //#region src/plugins/@hey-api/typescript/api.d.ts
10314
9389
  type SelectorType$10 = 'ClientOptions' | 'data' | 'error' | 'errors' | 'ref' | 'response' | 'responses' | 'TypeID' | 'webhook-payload' | 'webhook-request' | 'Webhooks';
10315
9390
  type IApi$10 = {
10316
- schemaToType: (args: Parameters<typeof schemaToType>[0]) => ts.TypeNode;
9391
+ schemaToType: (args: Parameters<typeof irSchemaToAst>[0]) => ts.TypeNode;
10317
9392
  /**
10318
9393
  * @param type Selector type.
10319
9394
  * @param value Depends on `type`:
@@ -15848,97 +14923,6 @@ interface IRComponentsObject {
15848
14923
  requestBodies?: Record<string, IRRequestBodyObject>;
15849
14924
  schemas?: Record<string, IRSchemaObject>;
15850
14925
  }
15851
- interface IRHooks {
15852
- /**
15853
- * Hooks specifically for overriding operations behavior.
15854
- *
15855
- * Use these to classify operations, decide which outputs to generate,
15856
- * or apply custom behavior to individual operations.
15857
- */
15858
- operations?: {
15859
- /**
15860
- * Classify the given operation into one or more kinds.
15861
- *
15862
- * Each kind determines how we treat the operation (e.g., generating queries or mutations).
15863
- *
15864
- * **Default behavior:**
15865
- * - GET → 'query'
15866
- * - DELETE, PATCH, POST, PUT → 'mutation'
15867
- *
15868
- * **Resolution order:**
15869
- * 1. If `isQuery` or `isMutation` returns `true` or `false`, that overrides `getKind`.
15870
- * 2. If `isQuery` or `isMutation` returns `undefined`, the result of `getKind` is used.
15871
- *
15872
- * @param operation - The operation object to classify.
15873
- * @returns An array containing one or more of 'query' or 'mutation', or undefined to fallback to default behavior.
15874
- * @example
15875
- * getKind: (operation) => {
15876
- * if (operation.method === 'get' && operation.path === '/search') {
15877
- * return ['query', 'mutation'];
15878
- * }
15879
- * return; // fallback to default behavior
15880
- * }
15881
- */
15882
- getKind?: (operation: IROperationObject) => ReadonlyArray<'mutation' | 'query'> | undefined;
15883
- /**
15884
- * Check if the given operation should be treated as a mutation.
15885
- *
15886
- * This affects which outputs are generated for the operation.
15887
- *
15888
- * **Default behavior:** DELETE, PATCH, POST, and PUT operations are treated as mutations.
15889
- *
15890
- * **Resolution order:** If this returns `true` or `false`, it overrides `getKind`.
15891
- * If it returns `undefined`, `getKind` is used instead.
15892
- *
15893
- * @param operation - The operation object to check.
15894
- * @returns true if the operation is a mutation, false otherwise, or undefined to fallback to `getKind`.
15895
- * @example
15896
- * isMutation: (operation) => {
15897
- * if (operation.method === 'post' && operation.path === '/search') {
15898
- * return true;
15899
- * }
15900
- * return; // fallback to default behavior
15901
- }
15902
- */
15903
- isMutation?: (operation: IROperationObject) => boolean | undefined;
15904
- /**
15905
- * Check if the given operation should be treated as a query.
15906
- *
15907
- * This affects which outputs are generated for the operation.
15908
- *
15909
- * **Default behavior:** GET operations are treated as queries.
15910
- *
15911
- * **Resolution order:** If this returns `true` or `false`, it overrides `getKind`.
15912
- * If it returns `undefined`, `getKind` is used instead.
15913
- *
15914
- * @param operation - The operation object to check.
15915
- * @returns true if the operation is a query, false otherwise, or undefined to fallback to `getKind`.
15916
- * @example
15917
- * isQuery: (operation) => {
15918
- * if (operation.method === 'post' && operation.path === '/search') {
15919
- * return true;
15920
- * }
15921
- * return; // fallback to default behavior
15922
- }
15923
- */
15924
- isQuery?: (operation: IROperationObject) => boolean | undefined;
15925
- };
15926
- /**
15927
- * Hooks specifically for overriding symbols behavior.
15928
- *
15929
- * Use these to customize file placement.
15930
- */
15931
- symbols?: {
15932
- /**
15933
- * Optional output strategy to override default plugin behavior.
15934
- *
15935
- * Use this to route generated symbols to specific files.
15936
- *
15937
- * @returns The file path to output the symbol to, or undefined to fallback to default behavior.
15938
- */
15939
- getFilePath?: (symbol: Symbol) => string | undefined;
15940
- };
15941
- }
15942
14926
  interface IROperationObject {
15943
14927
  body?: IRBodyObject;
15944
14928
  deprecated?: boolean;
@@ -16081,7 +15065,6 @@ declare namespace IR$1 {
16081
15065
  export type BodyObject = IRBodyObject;
16082
15066
  export type ComponentsObject = IRComponentsObject;
16083
15067
  export type Context<Spec extends Record<string, any> = any> = IRContext<Spec>;
16084
- export type Hooks = IRHooks;
16085
15068
  export type Model = IRModel;
16086
15069
  export type OperationObject = IROperationObject;
16087
15070
  export type ParameterObject = IRParameterObject;
@@ -16120,5 +15103,5 @@ interface WatchValues {
16120
15103
  lastValue?: string;
16121
15104
  }
16122
15105
  //#endregion
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
15106
+ export { FunctionParameter as A, Input as C, ImportExportItemObject as D, Comments as E, __export as F, ObjectValue as M, SyntaxKindKeyword as N, tsNodeToString as O, types_d_exports as P, StringCase as S, MaybeArray as T, OpenApiOperationObject as _, ExpressionTransformer as a, OpenApiResponseObject as b, DefinePlugin as c, parseOpenApiSpec as d, Logger as f, OpenApiMetaObject as g, OpenApi$3 as h, TypeTransformer as i, FunctionTypeParameter as j, AccessLevel as k, Plugin as l, UserConfig$27 as m, WatchValues as n, Client as o, Config$1 as p, IR$1 as r, PluginHandler as s, LegacyIR as t, Client$1 as u, OpenApiParameterObject as v, LazyOrAsync as w, OpenApiSchemaObject as x, OpenApiRequestBodyObject as y };
15107
+ //# sourceMappingURL=types-CQZml4KE.d.cts.map