@hey-api/openapi-ts 0.54.4 → 0.55.0

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/index.d.cts CHANGED
@@ -3965,6 +3965,10 @@ interface Config$7 extends PluginName<'@hey-api/services'> {
3965
3965
  * results will be included in the output. The input pattern this
3966
3966
  * string will be tested against is `{method} {path}`. For example,
3967
3967
  * you can match `POST /api/v1/foo` with `^POST /api/v1/foo$`.
3968
+ *
3969
+ * This option does not work with the experimental parser.
3970
+ *
3971
+ * @deprecated
3968
3972
  */
3969
3973
  filter?: string;
3970
3974
  /**
@@ -4024,7 +4028,11 @@ interface Config$5 extends PluginName<'@hey-api/types'> {
4024
4028
  */
4025
4029
  enums?: 'javascript' | 'typescript' | 'typescript+namespace' | false;
4026
4030
  /**
4027
- * Include only types matching regular expression
4031
+ * Include only types matching regular expression.
4032
+ *
4033
+ * This option does not work with the experimental parser.
4034
+ *
4035
+ * @deprecated
4028
4036
  */
4029
4037
  include?: string;
4030
4038
  /**
@@ -4224,9 +4232,29 @@ interface ClientConfig {
4224
4232
  */
4225
4233
  exportCore?: boolean;
4226
4234
  /**
4227
- * The relative location of the OpenAPI spec
4235
+ * Path to the OpenAPI specification. This can be either local or remote path.
4236
+ * Both JSON and YAML file formats are supported. You can also pass the parsed
4237
+ * object directly if you're fetching the file yourself.
4238
+ *
4239
+ * Alternatively, you can define a configuration object with more options.
4228
4240
  */
4229
- input: string | Record<string, unknown>;
4241
+ input: string | Record<string, unknown> | {
4242
+ /**
4243
+ * Process only parts matching the regular expression. You can select both
4244
+ * operations and components by reference within the bundled input.
4245
+ *
4246
+ * @example
4247
+ * operation: '^#/paths/api/v1/foo/get$'
4248
+ * schema: '^#/components/schemas/Foo$'
4249
+ */
4250
+ include?: string;
4251
+ /**
4252
+ * Path to the OpenAPI specification. This can be either local or remote path.
4253
+ * Both JSON and YAML file formats are supported. You can also pass the parsed
4254
+ * object directly if you're fetching the file yourself.
4255
+ */
4256
+ path: string | Record<string, unknown>;
4257
+ };
4230
4258
  /**
4231
4259
  * Custom client class name. Please note this option is deprecated and
4232
4260
  * will be removed in favor of clients.
package/dist/index.d.ts CHANGED
@@ -3965,6 +3965,10 @@ interface Config$7 extends PluginName<'@hey-api/services'> {
3965
3965
  * results will be included in the output. The input pattern this
3966
3966
  * string will be tested against is `{method} {path}`. For example,
3967
3967
  * you can match `POST /api/v1/foo` with `^POST /api/v1/foo$`.
3968
+ *
3969
+ * This option does not work with the experimental parser.
3970
+ *
3971
+ * @deprecated
3968
3972
  */
3969
3973
  filter?: string;
3970
3974
  /**
@@ -4024,7 +4028,11 @@ interface Config$5 extends PluginName<'@hey-api/types'> {
4024
4028
  */
4025
4029
  enums?: 'javascript' | 'typescript' | 'typescript+namespace' | false;
4026
4030
  /**
4027
- * Include only types matching regular expression
4031
+ * Include only types matching regular expression.
4032
+ *
4033
+ * This option does not work with the experimental parser.
4034
+ *
4035
+ * @deprecated
4028
4036
  */
4029
4037
  include?: string;
4030
4038
  /**
@@ -4224,9 +4232,29 @@ interface ClientConfig {
4224
4232
  */
4225
4233
  exportCore?: boolean;
4226
4234
  /**
4227
- * The relative location of the OpenAPI spec
4235
+ * Path to the OpenAPI specification. This can be either local or remote path.
4236
+ * Both JSON and YAML file formats are supported. You can also pass the parsed
4237
+ * object directly if you're fetching the file yourself.
4238
+ *
4239
+ * Alternatively, you can define a configuration object with more options.
4228
4240
  */
4229
- input: string | Record<string, unknown>;
4241
+ input: string | Record<string, unknown> | {
4242
+ /**
4243
+ * Process only parts matching the regular expression. You can select both
4244
+ * operations and components by reference within the bundled input.
4245
+ *
4246
+ * @example
4247
+ * operation: '^#/paths/api/v1/foo/get$'
4248
+ * schema: '^#/components/schemas/Foo$'
4249
+ */
4250
+ include?: string;
4251
+ /**
4252
+ * Path to the OpenAPI specification. This can be either local or remote path.
4253
+ * Both JSON and YAML file formats are supported. You can also pass the parsed
4254
+ * object directly if you're fetching the file yourself.
4255
+ */
4256
+ path: string | Record<string, unknown>;
4257
+ };
4230
4258
  /**
4231
4259
  * Custom client class name. Please note this option is deprecated and
4232
4260
  * will be removed in favor of clients.