@hey-api/openapi-ts 0.80.6 → 0.80.8

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,4 +1,4 @@
1
- import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Cpp7XW_3.cjs';
1
+ import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-5eps4CIa.cjs';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
@@ -1,4 +1,4 @@
1
- import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-Cpp7XW_3.js';
1
+ import { k as Config, c as IR, U as UserConfig, W as WatchValues } from './types.d-5eps4CIa.js';
2
2
  import { JSONSchema } from '@hey-api/json-schema-ref-parser';
3
3
  import 'semver';
4
4
  import 'node:fs';
package/dist/internal.js CHANGED
@@ -1,2 +1,2 @@
1
- import {createRequire}from'module';export{K as getSpec,J as initConfigs,H as parseOpenApiSpec}from'./chunk-CCWQBTYN.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
1
+ import {createRequire}from'module';export{K as getSpec,J as initConfigs,E as parseOpenApiSpec}from'./chunk-F4DKDLSY.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
2
  //# sourceMappingURL=internal.js.map
@@ -2753,7 +2753,7 @@ declare class GeneratedFile {
2753
2753
  isEmpty(): boolean;
2754
2754
  nameWithoutExtension(): string;
2755
2755
  relativePathToFile({ context, id, }: {
2756
- context: IR.Context;
2756
+ context: IR$1.Context;
2757
2757
  id: string;
2758
2758
  }): string;
2759
2759
  remove(options?: Parameters<typeof fs.rmSync>[1]): void;
@@ -6694,7 +6694,7 @@ type Patch = {
6694
6694
  version?: string | ((version: string) => string);
6695
6695
  };
6696
6696
 
6697
- interface UserConfig$l {
6697
+ interface UserConfig$n {
6698
6698
  /**
6699
6699
  * Path to the config file. Set this value if you don't use the default
6700
6700
  * config file name, or it's not located in the project root.
@@ -6810,8 +6810,8 @@ interface UserConfig$l {
6810
6810
  watch?: boolean | number | Watch;
6811
6811
  }
6812
6812
 
6813
- type Config$9 = Omit<
6814
- Required<UserConfig$l>,
6813
+ type Config$a = Omit<
6814
+ Required<UserConfig$n>,
6815
6815
  | 'base'
6816
6816
  | 'input'
6817
6817
  | 'logs'
@@ -6822,13 +6822,13 @@ type Config$9 = Omit<
6822
6822
  | 'request'
6823
6823
  | 'watch'
6824
6824
  > &
6825
- Pick<UserConfig$l, 'base' | 'name' | 'request'> & {
6825
+ Pick<UserConfig$n, 'base' | 'name' | 'request'> & {
6826
6826
  input: Omit<Input, 'path' | 'watch'> &
6827
6827
  Pick<Required<Input>, 'path'> & {
6828
6828
  watch: Extract<Required<Required<Input>['watch']>, object>;
6829
6829
  };
6830
- logs: Extract<Required<UserConfig$l['logs']>, object>;
6831
- output: Extract<UserConfig$l['output'], object>;
6830
+ logs: Extract<Required<UserConfig$n['logs']>, object>;
6831
+ output: Extract<UserConfig$n['output'], object>;
6832
6832
  /**
6833
6833
  * Customize how the input is parsed and transformed before it's passed to
6834
6834
  * plugins.
@@ -7079,7 +7079,7 @@ interface Client$2 {
7079
7079
  * Configuration for parsing and generating the output. This
7080
7080
  * is a mix of user-provided and default values.
7081
7081
  */
7082
- config: Config$9;
7082
+ config: Config$a;
7083
7083
  models: Model[];
7084
7084
  operations: Operation$1[];
7085
7085
  server: string;
@@ -7651,31 +7651,31 @@ type Files = Record<string, GeneratedFile>;
7651
7651
 
7652
7652
  type WalkEvents =
7653
7653
  | {
7654
- method: keyof IR.PathItemObject;
7655
- operation: IR.OperationObject;
7654
+ method: keyof IR$1.PathItemObject;
7655
+ operation: IR$1.OperationObject;
7656
7656
  path: string;
7657
7657
  type: 'operation';
7658
7658
  }
7659
7659
  | {
7660
7660
  $ref: string;
7661
7661
  name: string;
7662
- parameter: IR.ParameterObject;
7662
+ parameter: IR$1.ParameterObject;
7663
7663
  type: 'parameter';
7664
7664
  }
7665
7665
  | {
7666
7666
  $ref: string;
7667
7667
  name: string;
7668
- requestBody: IR.RequestBodyObject;
7668
+ requestBody: IR$1.RequestBodyObject;
7669
7669
  type: 'requestBody';
7670
7670
  }
7671
7671
  | {
7672
7672
  $ref: string;
7673
7673
  name: string;
7674
- schema: IR.SchemaObject;
7674
+ schema: IR$1.SchemaObject;
7675
7675
  type: 'schema';
7676
7676
  }
7677
7677
  | {
7678
- server: IR.ServerObject;
7678
+ server: IR$1.ServerObject;
7679
7679
  type: 'server';
7680
7680
  };
7681
7681
 
@@ -7688,7 +7688,7 @@ type WalkEvent<T extends WalkEventType = WalkEventType> = Extract<
7688
7688
  declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
7689
7689
  api: T['api'];
7690
7690
  config: Omit<T['resolvedConfig'], 'name' | 'output'>;
7691
- context: IR.Context;
7691
+ context: IR$1.Context;
7692
7692
  dependencies: Required<Plugin.Config<T>>['dependencies'];
7693
7693
  private handler;
7694
7694
  name: T['resolvedConfig']['name'];
@@ -7699,14 +7699,14 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
7699
7699
  * information such as name, version, and dependency resolution during
7700
7700
  * code generation.
7701
7701
  */
7702
- package: IR.Context['package'];
7702
+ package: IR$1.Context['package'];
7703
7703
  constructor(props: Pick<Required<Plugin.Config<T>>, 'config' | 'dependencies' | 'handler'> & {
7704
7704
  api?: T['api'];
7705
- context: IR.Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
7705
+ context: IR$1.Context<OpenApi$3.V2_0_X | OpenApi$3.V3_0_X | OpenApi$3.V3_1_X>;
7706
7706
  name: string;
7707
7707
  output: string;
7708
7708
  });
7709
- createFile(file: IR.ContextFile): GeneratedFile;
7709
+ createFile(file: IR$1.ContextFile): GeneratedFile;
7710
7710
  /**
7711
7711
  * Iterates over various input elements as specified by the event types, in
7712
7712
  * a specific order: servers, schemas, parameters, request bodies, then
@@ -7750,6 +7750,7 @@ declare class PluginInstance<T extends Plugin.Types = Plugin.Types> {
7750
7750
  }
7751
7751
 
7752
7752
  type PluginClientNames =
7753
+ | '@hey-api/client-angular'
7753
7754
  | '@hey-api/client-axios'
7754
7755
  | '@hey-api/client-fetch'
7755
7756
  | '@hey-api/client-next'
@@ -7764,6 +7765,7 @@ type PluginValidatorNames = 'valibot' | 'zod';
7764
7765
 
7765
7766
  type PluginNames =
7766
7767
  | PluginClientNames
7768
+ | '@hey-api/angular-resource'
7767
7769
  | '@hey-api/schemas'
7768
7770
  | '@hey-api/sdk'
7769
7771
  | '@hey-api/transformers'
@@ -7901,6 +7903,56 @@ type DefinePlugin<
7901
7903
  Types: Plugin.Types<Config, ResolvedConfig, Api>;
7902
7904
  };
7903
7905
 
7906
+ type UserConfig$m = Plugin.Name<'@hey-api/angular-resource'> & {
7907
+ /**
7908
+ * Whether to generate the resource as a class.
7909
+ * @default false
7910
+ */
7911
+ asClass?: boolean;
7912
+
7913
+ classNameBuilder?: (className: string) => string;
7914
+ methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7915
+
7916
+ /**
7917
+ * Name of the generated file.
7918
+ *
7919
+ * @default 'httpResource'
7920
+ */
7921
+ output?: string;
7922
+ };
7923
+
7924
+ type Config$9 = Plugin.Name<'@hey-api/angular-resource'> & {
7925
+ /**
7926
+ * Whether to generate the resource as a class.
7927
+ * @default false
7928
+ */
7929
+ asClass: boolean;
7930
+
7931
+ classNameBuilder?: (className: string) => string;
7932
+ methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
7933
+
7934
+ /**
7935
+ * Name of the generated file.
7936
+ *
7937
+ * @default 'httpResource'
7938
+ */
7939
+ output?: string;
7940
+ };
7941
+
7942
+ type HeyApiAngularResourcePlugin = DefinePlugin<UserConfig$m, Config$9>;
7943
+
7944
+ type UserConfig$l = Plugin.Name<'@hey-api/client-axios'> &
7945
+ Client.Config & {
7946
+ /**
7947
+ * Throw an error instead of returning it in the response?
7948
+ *
7949
+ * @default false
7950
+ */
7951
+ throwOnError?: boolean;
7952
+ };
7953
+
7954
+ type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$l>;
7955
+
7904
7956
  type UserConfig$k = Plugin.Name<'@hey-api/client-fetch'> &
7905
7957
  Client.Config & {
7906
7958
  /**
@@ -7930,6 +7982,7 @@ type UserConfig$i = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
7930
7982
  type HeyApiClientNuxtPlugin = DefinePlugin<UserConfig$i>;
7931
7983
 
7932
7984
  type PluginHandler =
7985
+ | HeyApiClientAngularPlugin['Handler']
7933
7986
  | HeyApiClientAxiosPlugin['Handler']
7934
7987
  | HeyApiClientFetchPlugin['Handler']
7935
7988
  | HeyApiClientNextPlugin['Handler']
@@ -7999,7 +8052,7 @@ declare namespace Client {
7999
8052
  };
8000
8053
  }
8001
8054
 
8002
- type UserConfig$h = Plugin.Name<'@hey-api/client-axios'> &
8055
+ type UserConfig$h = Plugin.Name<'@hey-api/client-angular'> &
8003
8056
  Client.Config & {
8004
8057
  /**
8005
8058
  * Throw an error instead of returning it in the response?
@@ -8009,7 +8062,7 @@ type UserConfig$h = Plugin.Name<'@hey-api/client-axios'> &
8009
8062
  throwOnError?: boolean;
8010
8063
  };
8011
8064
 
8012
- type HeyApiClientAxiosPlugin = DefinePlugin<UserConfig$h>;
8065
+ type HeyApiClientAngularPlugin = DefinePlugin<UserConfig$h>;
8013
8066
 
8014
8067
  type UserConfig$g = Plugin.Name<'legacy/angular'> &
8015
8068
  Pick<Client.Config, 'output'>;
@@ -8154,7 +8207,7 @@ type UserConfig$a = Plugin.Name<'@hey-api/sdk'> & {
8154
8207
  * Customise the name of methods within the service. By default,
8155
8208
  * {@link IR.OperationObject.id} or {@link Operation.name} is used.
8156
8209
  */
8157
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
8210
+ methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
8158
8211
  // TODO: parser - rename operationId option to something like inferId?: boolean
8159
8212
  /**
8160
8213
  * Use operation ID to generate operation names?
@@ -8329,7 +8382,7 @@ type Config$8 = Plugin.Name<'@hey-api/sdk'> & {
8329
8382
  * Customise the name of methods within the service. By default,
8330
8383
  * {@link IR.OperationObject.id} or {@link Operation.name} is used.
8331
8384
  */
8332
- methodNameBuilder?: (operation: IR.OperationObject | Operation) => string;
8385
+ methodNameBuilder?: (operation: IR$1.OperationObject | Operation) => string;
8333
8386
  // TODO: parser - rename operationId option to something like inferId?: boolean
8334
8387
  /**
8335
8388
  * Use operation ID to generate operation names?
@@ -8416,7 +8469,7 @@ type ExpressionTransformer = ({ config, dataExpression, file, schema, }: {
8416
8469
  config: Omit<UserConfig$9, 'name'>;
8417
8470
  dataExpression?: typescript__default.Expression | string;
8418
8471
  file: GeneratedFile;
8419
- schema: IR.SchemaObject;
8472
+ schema: IR$1.SchemaObject;
8420
8473
  }) => Array<typescript__default.Expression> | undefined;
8421
8474
 
8422
8475
  /**
@@ -8428,7 +8481,7 @@ type TypeTransformer = ({
8428
8481
  schema,
8429
8482
  }: {
8430
8483
  file: GeneratedFile;
8431
- schema: IR.SchemaObject;
8484
+ schema: IR$1.SchemaObject;
8432
8485
  }) => typescript__default.TypeNode | undefined;
8433
8486
 
8434
8487
  type UserConfig$9 = Plugin.Name<'@hey-api/transformers'> & {
@@ -8907,14 +8960,14 @@ declare const schemaToType: ({ onRef, plugin, schema, state, }: {
8907
8960
  */
8908
8961
  onRef: OnRef | undefined;
8909
8962
  plugin: HeyApiTypeScriptPlugin["Instance"];
8910
- schema: IR.SchemaObject;
8963
+ schema: IR$1.SchemaObject;
8911
8964
  state: PluginState;
8912
8965
  }) => typescript__default.TypeNode;
8913
8966
 
8914
8967
  type GetIdArgs$1 = {
8915
8968
  type: 'ClientOptions';
8916
8969
  } | {
8917
- operation: IR.OperationObject;
8970
+ operation: IR$1.OperationObject;
8918
8971
  type: 'data' | 'error' | 'errors' | 'response' | 'responses';
8919
8972
  } | {
8920
8973
  type: 'ref';
@@ -9037,7 +9090,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9037
9090
  *
9038
9091
  * @default false
9039
9092
  */
9040
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9093
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9041
9094
  /**
9042
9095
  * Custom naming pattern for generated infinite query options names. The name variable is
9043
9096
  * obtained from the SDK function name.
@@ -9096,7 +9149,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9096
9149
  *
9097
9150
  * @default false
9098
9151
  */
9099
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9152
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9100
9153
  /**
9101
9154
  * Custom naming pattern for generated mutation options names. The name variable is
9102
9155
  * obtained from the SDK function name.
@@ -9205,7 +9258,7 @@ type UserConfig$7 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9205
9258
  *
9206
9259
  * @default false
9207
9260
  */
9208
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9261
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9209
9262
  /**
9210
9263
  * Custom naming pattern for generated query options names. The name variable is
9211
9264
  * obtained from the SDK function name.
@@ -9309,7 +9362,7 @@ type Config$6 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9309
9362
  *
9310
9363
  * @default false
9311
9364
  */
9312
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9365
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9313
9366
  /**
9314
9367
  * Custom naming pattern for generated infinite query options names. The name variable is
9315
9368
  * obtained from the SDK function name.
@@ -9358,7 +9411,7 @@ type Config$6 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9358
9411
  *
9359
9412
  * @default false
9360
9413
  */
9361
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9414
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9362
9415
  /**
9363
9416
  * Custom naming pattern for generated mutation options names. The name variable is
9364
9417
  * obtained from the SDK function name.
@@ -9447,7 +9500,7 @@ type Config$6 = Plugin.Name<'@tanstack/angular-query-experimental'> & {
9447
9500
  *
9448
9501
  * @default false
9449
9502
  */
9450
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9503
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9451
9504
  /**
9452
9505
  * Custom naming pattern for generated query options names. The name variable is
9453
9506
  * obtained from the SDK function name.
@@ -9577,7 +9630,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> & {
9577
9630
  * })
9578
9631
  * ```
9579
9632
  */
9580
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9633
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9581
9634
  /**
9582
9635
  * Custom naming pattern for generated infinite query options names. The name variable is
9583
9636
  * obtained from the SDK function name.
@@ -9635,7 +9688,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> & {
9635
9688
  * })
9636
9689
  * ```
9637
9690
  */
9638
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9691
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9639
9692
  /**
9640
9693
  * Custom naming pattern for generated mutation options names. The name variable is
9641
9694
  * obtained from the SDK function name.
@@ -9743,7 +9796,7 @@ type UserConfig$6 = Plugin.Name<'@tanstack/react-query'> & {
9743
9796
  * })
9744
9797
  * ```
9745
9798
  */
9746
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9799
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9747
9800
 
9748
9801
  /**
9749
9802
  * Custom naming pattern for generated query options names. The name variable is
@@ -9846,7 +9899,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> & {
9846
9899
  * })
9847
9900
  * ```
9848
9901
  */
9849
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9902
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9850
9903
  /**
9851
9904
  * Custom naming pattern for generated infinite query options names. The name variable is obtained from the SDK function name.
9852
9905
  *
@@ -9893,7 +9946,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> & {
9893
9946
  * })
9894
9947
  * ```
9895
9948
  */
9896
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
9949
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9897
9950
  /**
9898
9951
  * Custom naming pattern for generated mutation options names. The name variable is obtained from the SDK function name.
9899
9952
  *
@@ -9979,7 +10032,7 @@ type Config$5 = Plugin.Name<'@tanstack/react-query'> & {
9979
10032
  * })
9980
10033
  * ```
9981
10034
  */
9982
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10035
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
9983
10036
  /**
9984
10037
  * Custom naming pattern for generated query options names. The name variable is obtained from the SDK function name.
9985
10038
  *
@@ -10103,7 +10156,7 @@ type UserConfig$5 = Plugin.Name<'@tanstack/solid-query'> & {
10103
10156
  * })
10104
10157
  * ```
10105
10158
  */
10106
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10159
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10107
10160
  /**
10108
10161
  * Custom naming pattern for generated infinite query options names. The name variable is
10109
10162
  * obtained from the SDK function name.
@@ -10162,7 +10215,7 @@ type UserConfig$5 = Plugin.Name<'@tanstack/solid-query'> & {
10162
10215
  *
10163
10216
  * @default false
10164
10217
  */
10165
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10218
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10166
10219
  /**
10167
10220
  * Custom naming pattern for generated mutation options names. The name variable is
10168
10221
  * obtained from the SDK function name.
@@ -10271,7 +10324,7 @@ type UserConfig$5 = Plugin.Name<'@tanstack/solid-query'> & {
10271
10324
  *
10272
10325
  * @default false
10273
10326
  */
10274
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10327
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10275
10328
  /**
10276
10329
  * Custom naming pattern for generated query options names. The name variable is
10277
10330
  * obtained from the SDK function name.
@@ -10375,7 +10428,7 @@ type Config$4 = Plugin.Name<'@tanstack/solid-query'> & {
10375
10428
  *
10376
10429
  * @default false
10377
10430
  */
10378
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10431
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10379
10432
  /**
10380
10433
  * Custom naming pattern for generated infinite query options names. The name variable is
10381
10434
  * obtained from the SDK function name.
@@ -10424,7 +10477,7 @@ type Config$4 = Plugin.Name<'@tanstack/solid-query'> & {
10424
10477
  *
10425
10478
  * @default false
10426
10479
  */
10427
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10480
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10428
10481
  /**
10429
10482
  * Custom naming pattern for generated mutation options names. The name variable is
10430
10483
  * obtained from the SDK function name.
@@ -10513,7 +10566,7 @@ type Config$4 = Plugin.Name<'@tanstack/solid-query'> & {
10513
10566
  *
10514
10567
  * @default false
10515
10568
  */
10516
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10569
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10517
10570
  /**
10518
10571
  * Custom naming pattern for generated query options names. The name variable is
10519
10572
  * obtained from the SDK function name.
@@ -10639,7 +10692,7 @@ type UserConfig$4 = Plugin.Name<'@tanstack/svelte-query'> & {
10639
10692
  *
10640
10693
  * @default false
10641
10694
  */
10642
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10695
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10643
10696
  /**
10644
10697
  * Custom naming pattern for generated infinite query options names. The name variable is
10645
10698
  * obtained from the SDK function name.
@@ -10698,7 +10751,7 @@ type UserConfig$4 = Plugin.Name<'@tanstack/svelte-query'> & {
10698
10751
  *
10699
10752
  * @default false
10700
10753
  */
10701
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10754
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10702
10755
  /**
10703
10756
  * Custom naming pattern for generated mutation options names. The name variable is
10704
10757
  * obtained from the SDK function name.
@@ -10807,7 +10860,7 @@ type UserConfig$4 = Plugin.Name<'@tanstack/svelte-query'> & {
10807
10860
  *
10808
10861
  * @default false
10809
10862
  */
10810
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10863
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10811
10864
  /**
10812
10865
  * Custom naming pattern for generated query options names. The name variable is
10813
10866
  * obtained from the SDK function name.
@@ -10911,7 +10964,7 @@ type Config$3 = Plugin.Name<'@tanstack/svelte-query'> & {
10911
10964
  *
10912
10965
  * @default false
10913
10966
  */
10914
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
10967
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10915
10968
  /**
10916
10969
  * Custom naming pattern for generated infinite query options names. The name variable is
10917
10970
  * obtained from the SDK function name.
@@ -10960,7 +11013,7 @@ type Config$3 = Plugin.Name<'@tanstack/svelte-query'> & {
10960
11013
  *
10961
11014
  * @default false
10962
11015
  */
10963
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11016
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
10964
11017
  /**
10965
11018
  * Custom naming pattern for generated mutation options names. The name variable is
10966
11019
  * obtained from the SDK function name.
@@ -11049,7 +11102,7 @@ type Config$3 = Plugin.Name<'@tanstack/svelte-query'> & {
11049
11102
  *
11050
11103
  * @default false
11051
11104
  */
11052
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11105
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11053
11106
  /**
11054
11107
  * Custom naming pattern for generated query options names. The name variable is
11055
11108
  * obtained from the SDK function name.
@@ -11174,7 +11227,7 @@ type UserConfig$3 = Plugin.Name<'@tanstack/vue-query'> & {
11174
11227
  * })
11175
11228
  * ```
11176
11229
  */
11177
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11230
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11178
11231
  /**
11179
11232
  * Custom naming pattern for generated infinite query options names. The name variable is
11180
11233
  * obtained from the SDK function name.
@@ -11232,7 +11285,7 @@ type UserConfig$3 = Plugin.Name<'@tanstack/vue-query'> & {
11232
11285
  * })
11233
11286
  * ```
11234
11287
  */
11235
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11288
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11236
11289
  /**
11237
11290
  * Custom naming pattern for generated mutation options names. The name variable is
11238
11291
  * obtained from the SDK function name.
@@ -11340,7 +11393,7 @@ type UserConfig$3 = Plugin.Name<'@tanstack/vue-query'> & {
11340
11393
  * })
11341
11394
  * ```
11342
11395
  */
11343
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11396
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11344
11397
  /**
11345
11398
  * Custom naming pattern for generated query options names. The name variable is
11346
11399
  * obtained from the SDK function name.
@@ -11443,7 +11496,7 @@ type Config$2 = Plugin.Name<'@tanstack/vue-query'> & {
11443
11496
  * })
11444
11497
  * ```
11445
11498
  */
11446
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11499
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11447
11500
  /**
11448
11501
  * Custom naming pattern for generated infinite query options names. The name variable is
11449
11502
  * obtained from the SDK function name.
@@ -11491,7 +11544,7 @@ type Config$2 = Plugin.Name<'@tanstack/vue-query'> & {
11491
11544
  * })
11492
11545
  * ```
11493
11546
  */
11494
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11547
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11495
11548
  /**
11496
11549
  * Custom naming pattern for generated mutation options names. The name variable is
11497
11550
  * obtained from the SDK function name.
@@ -11579,7 +11632,7 @@ type Config$2 = Plugin.Name<'@tanstack/vue-query'> & {
11579
11632
  * })
11580
11633
  * ```
11581
11634
  */
11582
- meta?: false | ((operation: IR.OperationObject) => Record<string, any>);
11635
+ meta?: false | ((operation: IR$1.OperationObject) => Record<string, any>);
11583
11636
  /**
11584
11637
  * Custom naming pattern for generated query options names. The name variable is
11585
11638
  * obtained from the SDK function name.
@@ -11874,12 +11927,12 @@ type ValibotPlugin = DefinePlugin<UserConfig$1, Config$1, Api$1>;
11874
11927
  type Api$1 = {
11875
11928
  createRequestValidator: (args: {
11876
11929
  file: GeneratedFile;
11877
- operation: IR.OperationObject;
11930
+ operation: IR$1.OperationObject;
11878
11931
  plugin: ValibotPlugin['Instance'];
11879
11932
  }) => typescript__default.ArrowFunction | undefined;
11880
11933
  createResponseValidator: (args: {
11881
11934
  file: GeneratedFile;
11882
- operation: IR.OperationObject;
11935
+ operation: IR$1.OperationObject;
11883
11936
  plugin: ValibotPlugin['Instance'];
11884
11937
  }) => typescript__default.ArrowFunction | undefined;
11885
11938
  };
@@ -12481,7 +12534,7 @@ type Config = Plugin.Name<'zod'> & {
12481
12534
  type ZodPlugin = DefinePlugin<UserConfig, Config, Api>;
12482
12535
 
12483
12536
  type GetIdArgs = {
12484
- operation: IR.OperationObject;
12537
+ operation: IR$1.OperationObject;
12485
12538
  type: 'data' | 'responses' | 'type-infer-data' | 'type-infer-responses';
12486
12539
  } | {
12487
12540
  type: 'ref' | 'type-infer-ref';
@@ -12490,18 +12543,20 @@ type GetIdArgs = {
12490
12543
  type Api = {
12491
12544
  createRequestValidator: (args: {
12492
12545
  file: GeneratedFile;
12493
- operation: IR.OperationObject;
12546
+ operation: IR$1.OperationObject;
12494
12547
  plugin: ZodPlugin['Instance'];
12495
12548
  }) => typescript__default.ArrowFunction | undefined;
12496
12549
  createResponseValidator: (args: {
12497
12550
  file: GeneratedFile;
12498
- operation: IR.OperationObject;
12551
+ operation: IR$1.OperationObject;
12499
12552
  plugin: ZodPlugin['Instance'];
12500
12553
  }) => typescript__default.ArrowFunction | undefined;
12501
12554
  getId: (args: GetIdArgs) => string;
12502
12555
  };
12503
12556
 
12504
12557
  interface PluginConfigMap {
12558
+ '@hey-api/angular-resource': HeyApiAngularResourcePlugin['Types'];
12559
+ '@hey-api/client-angular': HeyApiClientAngularPlugin['Types'];
12505
12560
  '@hey-api/client-axios': HeyApiClientAxiosPlugin['Types'];
12506
12561
  '@hey-api/client-fetch': HeyApiClientFetchPlugin['Types'];
12507
12562
  '@hey-api/client-next': HeyApiClientNextPlugin['Types'];
@@ -12551,7 +12606,7 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12551
12606
  * Configuration for parsing and generating the output. This
12552
12607
  * is a mix of user-provided and default values.
12553
12608
  */
12554
- config: Config$9;
12609
+ config: Config$a;
12555
12610
  /**
12556
12611
  * A map of files that will be generated from `spec`.
12557
12612
  */
@@ -12559,7 +12614,7 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12559
12614
  /**
12560
12615
  * Intermediate representation model obtained from `spec`.
12561
12616
  */
12562
- ir: IR.Model;
12617
+ ir: IR$1.Model;
12563
12618
  /**
12564
12619
  * The package metadata and utilities for the current context, constructed
12565
12620
  * from the provided dependencies. Used for managing package-related
@@ -12578,7 +12633,7 @@ declare class IRContext<Spec extends Record<string, any> = any> {
12578
12633
  */
12579
12634
  spec: Spec;
12580
12635
  constructor({ config, dependencies, spec, }: {
12581
- config: Config$9;
12636
+ config: Config$a;
12582
12637
  dependencies: Record<string, string>;
12583
12638
  spec: Spec;
12584
12639
  });
@@ -12829,7 +12884,7 @@ interface IRModel {
12829
12884
  servers?: ReadonlyArray<IRServerObject>;
12830
12885
  }
12831
12886
 
12832
- declare namespace IR {
12887
+ declare namespace IR$1 {
12833
12888
  export type BodyObject = IRBodyObject;
12834
12889
  export type ComponentsObject = IRComponentsObject;
12835
12890
  export type Context<Spec extends Record<string, any> = any> = IRContext<Spec>;
@@ -12870,4 +12925,4 @@ interface WatchValues {
12870
12925
  lastValue?: string;
12871
12926
  }
12872
12927
 
12873
- export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$l as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$9 as k, tsNodeToString as t };
12928
+ export { type Comments as C, type DefinePlugin as D, type ExpressionTransformer as E, type ImportExportItemObject as I, LegacyIR as L, OpenApi$3 as O, type PluginHandler as P, type StringCase as S, type TypeTransformer as T, type UserConfig$n as U, type WatchValues as W, Plugin as a, type Client$1 as b, IR$1 as c, OpenApiMetaObject as d, OpenApiOperationObject as e, OpenApiParameterObject as f, OpenApiRequestBodyObject as g, OpenApiResponseObject as h, OpenApiSchemaObject as i, Client as j, type Config$a as k, tsNodeToString as t };