@composio/json-schema-to-zod 0.1.18 → 0.1.20

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.ts DELETED
@@ -1,27 +0,0 @@
1
- import { ZodTypeAny, z } from 'zod/v3';
2
- import { JSONSchema7 } from 'json-schema';
3
-
4
- type Serializable = {
5
- [key: string]: Serializable;
6
- } | Serializable[] | string | number | boolean | null;
7
- type JsonSchema = JsonSchemaObject | boolean;
8
- type JsonSchemaObject = JSONSchema7;
9
- type ParserSelector = (schema: JsonSchemaObject, refs: Refs) => ZodTypeAny;
10
- type ParserOverride = (schema: JsonSchemaObject, refs: Refs) => ZodTypeAny | undefined;
11
- type JsonSchemaToZodOptions = {
12
- withoutDefaults?: boolean;
13
- withoutDescribes?: boolean;
14
- parserOverride?: ParserOverride;
15
- depth?: number;
16
- };
17
- type Refs = JsonSchemaToZodOptions & {
18
- path: Array<string | number>;
19
- seen: Map<object | boolean, {
20
- n: number;
21
- r: ZodTypeAny | undefined;
22
- }>;
23
- };
24
-
25
- declare const jsonSchemaToZod: (schema: JsonSchema, options?: JsonSchemaToZodOptions) => z.ZodType;
26
-
27
- export { type JsonSchema, type JsonSchemaObject, type JsonSchemaToZodOptions, type ParserOverride, type ParserSelector, type Refs, type Serializable, jsonSchemaToZod };