@hey-api/openapi-ts 0.66.2 → 0.66.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.
@@ -0,0 +1,37 @@
1
+ import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-CuJUnztx.cjs';
3
+ export { i as initConfigs } from './types.d-CuJUnztx.cjs';
4
+ import 'node:fs';
5
+ import 'typescript';
6
+
7
+ /**
8
+ * @internal
9
+ * Parse the resolved OpenAPI specification. This will populate and return
10
+ * `context` with intermediate representation obtained from the parsed spec.
11
+ */
12
+ declare const parseOpenApiSpec: ({ config, spec, }: {
13
+ config: Config;
14
+ spec: unknown;
15
+ }) => IR.Context | undefined;
16
+
17
+ interface SpecResponse {
18
+ data: JSONSchema;
19
+ error?: undefined;
20
+ response?: undefined;
21
+ }
22
+ interface SpecError {
23
+ data?: undefined;
24
+ error: 'not-modified' | 'not-ok';
25
+ response: Response;
26
+ }
27
+ /**
28
+ * @internal
29
+ */
30
+ declare const getSpec: ({ fetchOptions, inputPath, timeout, watch, }: {
31
+ fetchOptions?: RequestInit;
32
+ inputPath: Config["input"]["path"];
33
+ timeout: number;
34
+ watch: WatchValues;
35
+ }) => Promise<SpecResponse | SpecError>;
36
+
37
+ export { getSpec, parseOpenApiSpec };
@@ -0,0 +1,37 @@
1
+ import { JSONSchema } from '@hey-api/json-schema-ref-parser';
2
+ import { c as Config, I as IR, W as WatchValues } from './types.d-CuJUnztx.js';
3
+ export { i as initConfigs } from './types.d-CuJUnztx.js';
4
+ import 'node:fs';
5
+ import 'typescript';
6
+
7
+ /**
8
+ * @internal
9
+ * Parse the resolved OpenAPI specification. This will populate and return
10
+ * `context` with intermediate representation obtained from the parsed spec.
11
+ */
12
+ declare const parseOpenApiSpec: ({ config, spec, }: {
13
+ config: Config;
14
+ spec: unknown;
15
+ }) => IR.Context | undefined;
16
+
17
+ interface SpecResponse {
18
+ data: JSONSchema;
19
+ error?: undefined;
20
+ response?: undefined;
21
+ }
22
+ interface SpecError {
23
+ data?: undefined;
24
+ error: 'not-modified' | 'not-ok';
25
+ response: Response;
26
+ }
27
+ /**
28
+ * @internal
29
+ */
30
+ declare const getSpec: ({ fetchOptions, inputPath, timeout, watch, }: {
31
+ fetchOptions?: RequestInit;
32
+ inputPath: Config["input"]["path"];
33
+ timeout: number;
34
+ watch: WatchValues;
35
+ }) => Promise<SpecResponse | SpecError>;
36
+
37
+ export { getSpec, parseOpenApiSpec };
@@ -0,0 +1,2 @@
1
+ import {createRequire}from'module';export{o as getSpec,x as initConfigs,r as parseOpenApiSpec}from'./chunk-SZXCPR5B.js';createRequire(import.meta.url);//# sourceMappingURL=internal.js.map
2
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"internal.js"}