@hey-api/openapi-ts 0.69.0 → 0.69.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-7JYB3OMB.js +13 -0
- package/dist/chunk-7JYB3OMB.js.map +1 -0
- package/dist/index.cjs +156 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +48 -48
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +10 -10
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/dist/{types.d-DaUN4Gwe.d.cts → types.d-CuSvND4p.d.cts} +77 -69
- package/dist/{types.d-DaUN4Gwe.d.ts → types.d-CuSvND4p.d.ts} +77 -69
- package/package.json +4 -1
- package/dist/chunk-ALAAQACG.js +0 -13
- package/dist/chunk-ALAAQACG.js.map +0 -1
package/dist/internal.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-CuSvND4p.cjs';
|
|
3
|
+
export { i as initConfigs } from './types.d-CuSvND4p.cjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSONSchema } from '@hey-api/json-schema-ref-parser';
|
|
2
|
-
import { c as Config, I as IR, W as WatchValues } from './types.d-
|
|
3
|
-
export { i as initConfigs } from './types.d-
|
|
2
|
+
import { c as Config, I as IR, W as WatchValues } from './types.d-CuSvND4p.js';
|
|
3
|
+
export { i as initConfigs } from './types.d-CuSvND4p.js';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'typescript';
|
|
6
6
|
|
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-
|
|
1
|
+
import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-7JYB3OMB.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
|
|
2
2
|
//# sourceMappingURL=internal.js.map
|
|
@@ -6491,9 +6491,9 @@ declare namespace Plugin {
|
|
|
6491
6491
|
Pick<Required<BaseConfig>, 'exportFromIndex' | 'output'>;
|
|
6492
6492
|
|
|
6493
6493
|
/**
|
|
6494
|
-
* @deprecated
|
|
6495
|
-
*
|
|
6496
6494
|
* Plugin implementation for legacy parser.
|
|
6495
|
+
*
|
|
6496
|
+
* @deprecated
|
|
6497
6497
|
*/
|
|
6498
6498
|
export type LegacyHandler<Config extends BaseConfig> = (args: {
|
|
6499
6499
|
client: Client$1;
|
|
@@ -6666,17 +6666,21 @@ interface Config$c extends Plugin.Name<'@hey-api/schemas'> {
|
|
|
6666
6666
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
6667
6667
|
* valid JavaScript/TypeScript identifier, e.g. if your schema name is
|
|
6668
6668
|
* "Foo-Bar", `name` value would be "FooBar".
|
|
6669
|
+
*
|
|
6670
|
+
* @default '{{name}}Schema'
|
|
6669
6671
|
*/
|
|
6670
|
-
nameBuilder?:
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6672
|
+
nameBuilder?:
|
|
6673
|
+
| string
|
|
6674
|
+
| ((
|
|
6675
|
+
name: string,
|
|
6676
|
+
schema:
|
|
6677
|
+
| OpenApiSchema
|
|
6678
|
+
| OpenApiSchema$1
|
|
6679
|
+
| SchemaObject$1
|
|
6680
|
+
| ReferenceObject
|
|
6681
|
+
| SchemaObject
|
|
6682
|
+
| SchemaObject$2,
|
|
6683
|
+
) => string);
|
|
6680
6684
|
/**
|
|
6681
6685
|
* Name of the generated file.
|
|
6682
6686
|
*
|
|
@@ -6764,7 +6768,7 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6764
6768
|
*
|
|
6765
6769
|
* @default '{{name}}Service'
|
|
6766
6770
|
*/
|
|
6767
|
-
serviceNameBuilder?: string;
|
|
6771
|
+
serviceNameBuilder?: string | ((name: string) => string);
|
|
6768
6772
|
/**
|
|
6769
6773
|
* Transform response data before returning. This is useful if you want to
|
|
6770
6774
|
* convert for example ISO strings into Date objects. However, transformation
|
|
@@ -6795,8 +6799,6 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6795
6799
|
// DEPRECATED OPTIONS BELOW
|
|
6796
6800
|
|
|
6797
6801
|
/**
|
|
6798
|
-
* @deprecated
|
|
6799
|
-
*
|
|
6800
6802
|
* **This feature works only with the legacy parser**
|
|
6801
6803
|
*
|
|
6802
6804
|
* Filter endpoints to be included in the generated SDK. The provided
|
|
@@ -6804,14 +6806,15 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6804
6806
|
* included in the output. The input pattern this string will be tested
|
|
6805
6807
|
* against is `{method} {path}`. For example, you can match
|
|
6806
6808
|
* `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
6809
|
+
*
|
|
6810
|
+
* @deprecated
|
|
6807
6811
|
*/
|
|
6808
6812
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
6809
6813
|
filter?: string;
|
|
6810
6814
|
/**
|
|
6811
|
-
* @deprecated
|
|
6812
|
-
*
|
|
6813
6815
|
* Define shape of returned value from service calls
|
|
6814
6816
|
*
|
|
6817
|
+
* @deprecated
|
|
6815
6818
|
* @default 'body'
|
|
6816
6819
|
*/
|
|
6817
6820
|
response?: 'body' | 'response';
|
|
@@ -6924,32 +6927,30 @@ interface Config$9 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
6924
6927
|
// DEPRECATED OPTIONS BELOW
|
|
6925
6928
|
|
|
6926
6929
|
/**
|
|
6927
|
-
* @deprecated
|
|
6928
|
-
*
|
|
6929
6930
|
* **This feature works only with the legacy parser**
|
|
6930
6931
|
*
|
|
6931
6932
|
* Include only types matching regular expression.
|
|
6933
|
+
*
|
|
6934
|
+
* @deprecated
|
|
6932
6935
|
*/
|
|
6933
6936
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
6934
6937
|
include?: string;
|
|
6935
6938
|
/**
|
|
6936
|
-
* @deprecated
|
|
6937
|
-
*
|
|
6938
6939
|
* **This feature works only with the legacy parser**
|
|
6939
6940
|
*
|
|
6940
6941
|
* Use your preferred naming pattern
|
|
6941
6942
|
*
|
|
6943
|
+
* @deprecated
|
|
6942
6944
|
* @default 'preserve'
|
|
6943
6945
|
*/
|
|
6944
6946
|
style?: 'PascalCase' | 'preserve';
|
|
6945
6947
|
/**
|
|
6946
|
-
* @deprecated
|
|
6947
|
-
*
|
|
6948
6948
|
* **This feature works only with the legacy parser**
|
|
6949
6949
|
*
|
|
6950
6950
|
* Generate a tree of types containing all operations? It will be named
|
|
6951
6951
|
* $OpenApiTs.
|
|
6952
6952
|
*
|
|
6953
|
+
* @deprecated
|
|
6953
6954
|
* @default false
|
|
6954
6955
|
*/
|
|
6955
6956
|
tree?: boolean;
|
|
@@ -7226,6 +7227,27 @@ type StringCase =
|
|
|
7226
7227
|
| 'snake_case'
|
|
7227
7228
|
| 'SCREAMING_SNAKE_CASE';
|
|
7228
7229
|
|
|
7230
|
+
interface Watch {
|
|
7231
|
+
/**
|
|
7232
|
+
* Regenerate the client when the input file changes?
|
|
7233
|
+
*
|
|
7234
|
+
* @default false
|
|
7235
|
+
*/
|
|
7236
|
+
enabled?: boolean;
|
|
7237
|
+
/**
|
|
7238
|
+
* How often should we attempt to detect the input file change? (in ms)
|
|
7239
|
+
*
|
|
7240
|
+
* @default 1000
|
|
7241
|
+
*/
|
|
7242
|
+
interval?: number;
|
|
7243
|
+
/**
|
|
7244
|
+
* How long will we wait before the request times out?
|
|
7245
|
+
*
|
|
7246
|
+
* @default 60_000
|
|
7247
|
+
*/
|
|
7248
|
+
timeout?: number;
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7229
7251
|
interface Input {
|
|
7230
7252
|
/**
|
|
7231
7253
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
@@ -7432,7 +7454,15 @@ interface Input {
|
|
|
7432
7454
|
* the first match will be returned.
|
|
7433
7455
|
*/
|
|
7434
7456
|
tags?: ReadonlyArray<string>;
|
|
7435
|
-
|
|
7457
|
+
/**
|
|
7458
|
+
* **This is an experimental feature.**
|
|
7459
|
+
*
|
|
7460
|
+
* Validate the input before generating output? This is an experimental,
|
|
7461
|
+
* lightweight feature and support will be added on an ad hoc basis.
|
|
7462
|
+
*
|
|
7463
|
+
* @default false
|
|
7464
|
+
*/
|
|
7465
|
+
validate_EXPERIMENTAL?: boolean;
|
|
7436
7466
|
/**
|
|
7437
7467
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7438
7468
|
*
|
|
@@ -7441,6 +7471,13 @@ interface Input {
|
|
|
7441
7471
|
* the value.
|
|
7442
7472
|
*/
|
|
7443
7473
|
version?: string;
|
|
7474
|
+
/**
|
|
7475
|
+
* Regenerate the client when the input file changes? You can alternatively
|
|
7476
|
+
* pass a numeric value for the interval in ms.
|
|
7477
|
+
*
|
|
7478
|
+
* @default false
|
|
7479
|
+
*/
|
|
7480
|
+
watch?: boolean | number | Watch;
|
|
7444
7481
|
}
|
|
7445
7482
|
|
|
7446
7483
|
interface UserConfig {
|
|
@@ -7576,90 +7613,59 @@ interface UserConfig {
|
|
|
7576
7613
|
* @default ['@hey-api/typescript', '@hey-api/sdk']
|
|
7577
7614
|
*/
|
|
7578
7615
|
plugins?: ReadonlyArray<UserPlugins['name'] | UserPlugins>;
|
|
7579
|
-
/**
|
|
7580
|
-
* Regenerate the client when the input file changes? You can alternatively
|
|
7581
|
-
* pass a numeric value for the interval in ms.
|
|
7582
|
-
*
|
|
7583
|
-
* @default false
|
|
7584
|
-
*/
|
|
7585
|
-
watch?:
|
|
7586
|
-
| boolean
|
|
7587
|
-
| number
|
|
7588
|
-
| {
|
|
7589
|
-
/**
|
|
7590
|
-
* Regenerate the client when the input file changes?
|
|
7591
|
-
*
|
|
7592
|
-
* @default false
|
|
7593
|
-
*/
|
|
7594
|
-
enabled?: boolean;
|
|
7595
|
-
/**
|
|
7596
|
-
* How often should we attempt to detect the input file change? (in ms)
|
|
7597
|
-
*
|
|
7598
|
-
* @default 1000
|
|
7599
|
-
*/
|
|
7600
|
-
interval?: number;
|
|
7601
|
-
/**
|
|
7602
|
-
* How long will we wait before the request times out?
|
|
7603
|
-
*
|
|
7604
|
-
* @default 60_000
|
|
7605
|
-
*/
|
|
7606
|
-
timeout?: number;
|
|
7607
|
-
};
|
|
7608
7616
|
|
|
7609
7617
|
// DEPRECATED OPTIONS BELOW
|
|
7610
7618
|
|
|
7611
7619
|
/**
|
|
7612
|
-
* @deprecated
|
|
7613
|
-
*
|
|
7614
7620
|
* Manually set base in OpenAPI config instead of inferring from server value
|
|
7621
|
+
*
|
|
7622
|
+
* @deprecated
|
|
7615
7623
|
*/
|
|
7616
7624
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
7617
7625
|
base?: string;
|
|
7618
7626
|
/**
|
|
7619
|
-
* @deprecated
|
|
7620
|
-
*
|
|
7621
7627
|
* Opt in to the experimental parser?
|
|
7622
7628
|
*
|
|
7629
|
+
* @deprecated
|
|
7623
7630
|
* @default true
|
|
7624
7631
|
*/
|
|
7625
7632
|
experimentalParser?: boolean;
|
|
7626
7633
|
/**
|
|
7627
|
-
* @deprecated
|
|
7628
|
-
*
|
|
7629
7634
|
* Generate core client classes?
|
|
7630
7635
|
*
|
|
7636
|
+
* @deprecated
|
|
7631
7637
|
* @default true
|
|
7632
7638
|
*/
|
|
7633
7639
|
exportCore?: boolean;
|
|
7634
7640
|
/**
|
|
7635
|
-
* @deprecated
|
|
7636
|
-
*
|
|
7637
7641
|
* Custom client class name. Please note this option is deprecated and
|
|
7638
7642
|
* will be removed in favor of clients.
|
|
7639
7643
|
*
|
|
7644
|
+
* @deprecated
|
|
7640
7645
|
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-name
|
|
7641
7646
|
*/
|
|
7642
7647
|
name?: string;
|
|
7643
7648
|
/**
|
|
7644
|
-
* @deprecated
|
|
7645
|
-
*
|
|
7646
7649
|
* Path to custom request file. Please note this option is deprecated and
|
|
7647
7650
|
* will be removed in favor of clients.
|
|
7648
7651
|
*
|
|
7652
|
+
* @deprecated
|
|
7649
7653
|
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-request
|
|
7650
7654
|
*/
|
|
7651
7655
|
request?: string;
|
|
7652
7656
|
/**
|
|
7653
|
-
* @deprecated
|
|
7654
|
-
*
|
|
7655
7657
|
* Use options or arguments functions. Please note this option is deprecated and
|
|
7656
7658
|
* will be removed in favor of clients.
|
|
7657
7659
|
*
|
|
7658
|
-
* @
|
|
7659
|
-
*
|
|
7660
|
+
* @deprecated
|
|
7660
7661
|
* @default true
|
|
7662
|
+
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-useoptions
|
|
7661
7663
|
*/
|
|
7662
7664
|
useOptions?: boolean;
|
|
7665
|
+
/**
|
|
7666
|
+
* @deprecated use `input.watch` instead
|
|
7667
|
+
*/
|
|
7668
|
+
watch?: boolean | number | Watch;
|
|
7663
7669
|
}
|
|
7664
7670
|
|
|
7665
7671
|
type Config = Omit<
|
|
@@ -7674,7 +7680,10 @@ type Config = Omit<
|
|
|
7674
7680
|
| 'watch'
|
|
7675
7681
|
> &
|
|
7676
7682
|
Pick<UserConfig, 'base' | 'name' | 'request'> & {
|
|
7677
|
-
input: Omit<Input, 'path'
|
|
7683
|
+
input: Omit<Input, 'path' | 'validate_EXPERIMENTAL' | 'watch'> &
|
|
7684
|
+
Pick<Required<Input>, 'path' | 'validate_EXPERIMENTAL'> & {
|
|
7685
|
+
watch: Extract<Required<Required<Input>['watch']>, object>;
|
|
7686
|
+
};
|
|
7678
7687
|
logs: Extract<Required<UserConfig['logs']>, object>;
|
|
7679
7688
|
output: Extract<UserConfig['output'], object>;
|
|
7680
7689
|
pluginOrder: ReadonlyArray<ClientPlugins['name']>;
|
|
@@ -7682,7 +7691,6 @@ type Config = Omit<
|
|
|
7682
7691
|
ExtractArrayOfObjects<ReadonlyArray<ClientPlugins>, { name: string }>,
|
|
7683
7692
|
'name'
|
|
7684
7693
|
>;
|
|
7685
|
-
watch: Extract<Required<UserConfig['watch']>, object>;
|
|
7686
7694
|
};
|
|
7687
7695
|
|
|
7688
7696
|
interface Identifier {
|
|
@@ -6491,9 +6491,9 @@ declare namespace Plugin {
|
|
|
6491
6491
|
Pick<Required<BaseConfig>, 'exportFromIndex' | 'output'>;
|
|
6492
6492
|
|
|
6493
6493
|
/**
|
|
6494
|
-
* @deprecated
|
|
6495
|
-
*
|
|
6496
6494
|
* Plugin implementation for legacy parser.
|
|
6495
|
+
*
|
|
6496
|
+
* @deprecated
|
|
6497
6497
|
*/
|
|
6498
6498
|
export type LegacyHandler<Config extends BaseConfig> = (args: {
|
|
6499
6499
|
client: Client$1;
|
|
@@ -6666,17 +6666,21 @@ interface Config$c extends Plugin.Name<'@hey-api/schemas'> {
|
|
|
6666
6666
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
6667
6667
|
* valid JavaScript/TypeScript identifier, e.g. if your schema name is
|
|
6668
6668
|
* "Foo-Bar", `name` value would be "FooBar".
|
|
6669
|
+
*
|
|
6670
|
+
* @default '{{name}}Schema'
|
|
6669
6671
|
*/
|
|
6670
|
-
nameBuilder?:
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6672
|
+
nameBuilder?:
|
|
6673
|
+
| string
|
|
6674
|
+
| ((
|
|
6675
|
+
name: string,
|
|
6676
|
+
schema:
|
|
6677
|
+
| OpenApiSchema
|
|
6678
|
+
| OpenApiSchema$1
|
|
6679
|
+
| SchemaObject$1
|
|
6680
|
+
| ReferenceObject
|
|
6681
|
+
| SchemaObject
|
|
6682
|
+
| SchemaObject$2,
|
|
6683
|
+
) => string);
|
|
6680
6684
|
/**
|
|
6681
6685
|
* Name of the generated file.
|
|
6682
6686
|
*
|
|
@@ -6764,7 +6768,7 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6764
6768
|
*
|
|
6765
6769
|
* @default '{{name}}Service'
|
|
6766
6770
|
*/
|
|
6767
|
-
serviceNameBuilder?: string;
|
|
6771
|
+
serviceNameBuilder?: string | ((name: string) => string);
|
|
6768
6772
|
/**
|
|
6769
6773
|
* Transform response data before returning. This is useful if you want to
|
|
6770
6774
|
* convert for example ISO strings into Date objects. However, transformation
|
|
@@ -6795,8 +6799,6 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6795
6799
|
// DEPRECATED OPTIONS BELOW
|
|
6796
6800
|
|
|
6797
6801
|
/**
|
|
6798
|
-
* @deprecated
|
|
6799
|
-
*
|
|
6800
6802
|
* **This feature works only with the legacy parser**
|
|
6801
6803
|
*
|
|
6802
6804
|
* Filter endpoints to be included in the generated SDK. The provided
|
|
@@ -6804,14 +6806,15 @@ interface Config$b extends Plugin.Name<'@hey-api/sdk'> {
|
|
|
6804
6806
|
* included in the output. The input pattern this string will be tested
|
|
6805
6807
|
* against is `{method} {path}`. For example, you can match
|
|
6806
6808
|
* `POST /api/v1/foo` with `^POST /api/v1/foo$`.
|
|
6809
|
+
*
|
|
6810
|
+
* @deprecated
|
|
6807
6811
|
*/
|
|
6808
6812
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
6809
6813
|
filter?: string;
|
|
6810
6814
|
/**
|
|
6811
|
-
* @deprecated
|
|
6812
|
-
*
|
|
6813
6815
|
* Define shape of returned value from service calls
|
|
6814
6816
|
*
|
|
6817
|
+
* @deprecated
|
|
6815
6818
|
* @default 'body'
|
|
6816
6819
|
*/
|
|
6817
6820
|
response?: 'body' | 'response';
|
|
@@ -6924,32 +6927,30 @@ interface Config$9 extends Plugin.Name<'@hey-api/typescript'> {
|
|
|
6924
6927
|
// DEPRECATED OPTIONS BELOW
|
|
6925
6928
|
|
|
6926
6929
|
/**
|
|
6927
|
-
* @deprecated
|
|
6928
|
-
*
|
|
6929
6930
|
* **This feature works only with the legacy parser**
|
|
6930
6931
|
*
|
|
6931
6932
|
* Include only types matching regular expression.
|
|
6933
|
+
*
|
|
6934
|
+
* @deprecated
|
|
6932
6935
|
*/
|
|
6933
6936
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
6934
6937
|
include?: string;
|
|
6935
6938
|
/**
|
|
6936
|
-
* @deprecated
|
|
6937
|
-
*
|
|
6938
6939
|
* **This feature works only with the legacy parser**
|
|
6939
6940
|
*
|
|
6940
6941
|
* Use your preferred naming pattern
|
|
6941
6942
|
*
|
|
6943
|
+
* @deprecated
|
|
6942
6944
|
* @default 'preserve'
|
|
6943
6945
|
*/
|
|
6944
6946
|
style?: 'PascalCase' | 'preserve';
|
|
6945
6947
|
/**
|
|
6946
|
-
* @deprecated
|
|
6947
|
-
*
|
|
6948
6948
|
* **This feature works only with the legacy parser**
|
|
6949
6949
|
*
|
|
6950
6950
|
* Generate a tree of types containing all operations? It will be named
|
|
6951
6951
|
* $OpenApiTs.
|
|
6952
6952
|
*
|
|
6953
|
+
* @deprecated
|
|
6953
6954
|
* @default false
|
|
6954
6955
|
*/
|
|
6955
6956
|
tree?: boolean;
|
|
@@ -7226,6 +7227,27 @@ type StringCase =
|
|
|
7226
7227
|
| 'snake_case'
|
|
7227
7228
|
| 'SCREAMING_SNAKE_CASE';
|
|
7228
7229
|
|
|
7230
|
+
interface Watch {
|
|
7231
|
+
/**
|
|
7232
|
+
* Regenerate the client when the input file changes?
|
|
7233
|
+
*
|
|
7234
|
+
* @default false
|
|
7235
|
+
*/
|
|
7236
|
+
enabled?: boolean;
|
|
7237
|
+
/**
|
|
7238
|
+
* How often should we attempt to detect the input file change? (in ms)
|
|
7239
|
+
*
|
|
7240
|
+
* @default 1000
|
|
7241
|
+
*/
|
|
7242
|
+
interval?: number;
|
|
7243
|
+
/**
|
|
7244
|
+
* How long will we wait before the request times out?
|
|
7245
|
+
*
|
|
7246
|
+
* @default 60_000
|
|
7247
|
+
*/
|
|
7248
|
+
timeout?: number;
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7229
7251
|
interface Input {
|
|
7230
7252
|
/**
|
|
7231
7253
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
@@ -7432,7 +7454,15 @@ interface Input {
|
|
|
7432
7454
|
* the first match will be returned.
|
|
7433
7455
|
*/
|
|
7434
7456
|
tags?: ReadonlyArray<string>;
|
|
7435
|
-
|
|
7457
|
+
/**
|
|
7458
|
+
* **This is an experimental feature.**
|
|
7459
|
+
*
|
|
7460
|
+
* Validate the input before generating output? This is an experimental,
|
|
7461
|
+
* lightweight feature and support will be added on an ad hoc basis.
|
|
7462
|
+
*
|
|
7463
|
+
* @default false
|
|
7464
|
+
*/
|
|
7465
|
+
validate_EXPERIMENTAL?: boolean;
|
|
7436
7466
|
/**
|
|
7437
7467
|
* **Requires `path` to start with `https://get.heyapi.dev` or be undefined**
|
|
7438
7468
|
*
|
|
@@ -7441,6 +7471,13 @@ interface Input {
|
|
|
7441
7471
|
* the value.
|
|
7442
7472
|
*/
|
|
7443
7473
|
version?: string;
|
|
7474
|
+
/**
|
|
7475
|
+
* Regenerate the client when the input file changes? You can alternatively
|
|
7476
|
+
* pass a numeric value for the interval in ms.
|
|
7477
|
+
*
|
|
7478
|
+
* @default false
|
|
7479
|
+
*/
|
|
7480
|
+
watch?: boolean | number | Watch;
|
|
7444
7481
|
}
|
|
7445
7482
|
|
|
7446
7483
|
interface UserConfig {
|
|
@@ -7576,90 +7613,59 @@ interface UserConfig {
|
|
|
7576
7613
|
* @default ['@hey-api/typescript', '@hey-api/sdk']
|
|
7577
7614
|
*/
|
|
7578
7615
|
plugins?: ReadonlyArray<UserPlugins['name'] | UserPlugins>;
|
|
7579
|
-
/**
|
|
7580
|
-
* Regenerate the client when the input file changes? You can alternatively
|
|
7581
|
-
* pass a numeric value for the interval in ms.
|
|
7582
|
-
*
|
|
7583
|
-
* @default false
|
|
7584
|
-
*/
|
|
7585
|
-
watch?:
|
|
7586
|
-
| boolean
|
|
7587
|
-
| number
|
|
7588
|
-
| {
|
|
7589
|
-
/**
|
|
7590
|
-
* Regenerate the client when the input file changes?
|
|
7591
|
-
*
|
|
7592
|
-
* @default false
|
|
7593
|
-
*/
|
|
7594
|
-
enabled?: boolean;
|
|
7595
|
-
/**
|
|
7596
|
-
* How often should we attempt to detect the input file change? (in ms)
|
|
7597
|
-
*
|
|
7598
|
-
* @default 1000
|
|
7599
|
-
*/
|
|
7600
|
-
interval?: number;
|
|
7601
|
-
/**
|
|
7602
|
-
* How long will we wait before the request times out?
|
|
7603
|
-
*
|
|
7604
|
-
* @default 60_000
|
|
7605
|
-
*/
|
|
7606
|
-
timeout?: number;
|
|
7607
|
-
};
|
|
7608
7616
|
|
|
7609
7617
|
// DEPRECATED OPTIONS BELOW
|
|
7610
7618
|
|
|
7611
7619
|
/**
|
|
7612
|
-
* @deprecated
|
|
7613
|
-
*
|
|
7614
7620
|
* Manually set base in OpenAPI config instead of inferring from server value
|
|
7621
|
+
*
|
|
7622
|
+
* @deprecated
|
|
7615
7623
|
*/
|
|
7616
7624
|
// eslint-disable-next-line typescript-sort-keys/interface
|
|
7617
7625
|
base?: string;
|
|
7618
7626
|
/**
|
|
7619
|
-
* @deprecated
|
|
7620
|
-
*
|
|
7621
7627
|
* Opt in to the experimental parser?
|
|
7622
7628
|
*
|
|
7629
|
+
* @deprecated
|
|
7623
7630
|
* @default true
|
|
7624
7631
|
*/
|
|
7625
7632
|
experimentalParser?: boolean;
|
|
7626
7633
|
/**
|
|
7627
|
-
* @deprecated
|
|
7628
|
-
*
|
|
7629
7634
|
* Generate core client classes?
|
|
7630
7635
|
*
|
|
7636
|
+
* @deprecated
|
|
7631
7637
|
* @default true
|
|
7632
7638
|
*/
|
|
7633
7639
|
exportCore?: boolean;
|
|
7634
7640
|
/**
|
|
7635
|
-
* @deprecated
|
|
7636
|
-
*
|
|
7637
7641
|
* Custom client class name. Please note this option is deprecated and
|
|
7638
7642
|
* will be removed in favor of clients.
|
|
7639
7643
|
*
|
|
7644
|
+
* @deprecated
|
|
7640
7645
|
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-name
|
|
7641
7646
|
*/
|
|
7642
7647
|
name?: string;
|
|
7643
7648
|
/**
|
|
7644
|
-
* @deprecated
|
|
7645
|
-
*
|
|
7646
7649
|
* Path to custom request file. Please note this option is deprecated and
|
|
7647
7650
|
* will be removed in favor of clients.
|
|
7648
7651
|
*
|
|
7652
|
+
* @deprecated
|
|
7649
7653
|
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-request
|
|
7650
7654
|
*/
|
|
7651
7655
|
request?: string;
|
|
7652
7656
|
/**
|
|
7653
|
-
* @deprecated
|
|
7654
|
-
*
|
|
7655
7657
|
* Use options or arguments functions. Please note this option is deprecated and
|
|
7656
7658
|
* will be removed in favor of clients.
|
|
7657
7659
|
*
|
|
7658
|
-
* @
|
|
7659
|
-
*
|
|
7660
|
+
* @deprecated
|
|
7660
7661
|
* @default true
|
|
7662
|
+
* @link https://heyapi.dev/openapi-ts/migrating.html#deprecated-useoptions
|
|
7661
7663
|
*/
|
|
7662
7664
|
useOptions?: boolean;
|
|
7665
|
+
/**
|
|
7666
|
+
* @deprecated use `input.watch` instead
|
|
7667
|
+
*/
|
|
7668
|
+
watch?: boolean | number | Watch;
|
|
7663
7669
|
}
|
|
7664
7670
|
|
|
7665
7671
|
type Config = Omit<
|
|
@@ -7674,7 +7680,10 @@ type Config = Omit<
|
|
|
7674
7680
|
| 'watch'
|
|
7675
7681
|
> &
|
|
7676
7682
|
Pick<UserConfig, 'base' | 'name' | 'request'> & {
|
|
7677
|
-
input: Omit<Input, 'path'
|
|
7683
|
+
input: Omit<Input, 'path' | 'validate_EXPERIMENTAL' | 'watch'> &
|
|
7684
|
+
Pick<Required<Input>, 'path' | 'validate_EXPERIMENTAL'> & {
|
|
7685
|
+
watch: Extract<Required<Required<Input>['watch']>, object>;
|
|
7686
|
+
};
|
|
7678
7687
|
logs: Extract<Required<UserConfig['logs']>, object>;
|
|
7679
7688
|
output: Extract<UserConfig['output'], object>;
|
|
7680
7689
|
pluginOrder: ReadonlyArray<ClientPlugins['name']>;
|
|
@@ -7682,7 +7691,6 @@ type Config = Omit<
|
|
|
7682
7691
|
ExtractArrayOfObjects<ReadonlyArray<ClientPlugins>, { name: string }>,
|
|
7683
7692
|
'name'
|
|
7684
7693
|
>;
|
|
7685
|
-
watch: Extract<Required<UserConfig['watch']>, object>;
|
|
7686
7694
|
};
|
|
7687
7695
|
|
|
7688
7696
|
interface Identifier {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hey-api/openapi-ts",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.2",
|
|
4
4
|
"description": "🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.",
|
|
5
5
|
"homepage": "https://heyapi.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -77,7 +77,9 @@
|
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@hey-api/json-schema-ref-parser": "1.0.6",
|
|
80
|
+
"ansi-colors": "4.1.3",
|
|
80
81
|
"c12": "2.0.1",
|
|
82
|
+
"color-support": "1.1.3",
|
|
81
83
|
"commander": "13.0.0",
|
|
82
84
|
"handlebars": "4.7.8"
|
|
83
85
|
},
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
"ts-node": "10.9.2",
|
|
98
100
|
"tslib": "2.8.1",
|
|
99
101
|
"typescript": "5.8.3",
|
|
102
|
+
"yaml": "2.8.0",
|
|
100
103
|
"@config/vite-base": "0.0.1",
|
|
101
104
|
"@hey-api/client-core": "0.1.4"
|
|
102
105
|
},
|