@dainprotocol/service-sdk 1.0.14 → 1.0.15
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/__tests__/convertToVercelTool.test.js +126 -162
- package/dist/__tests__/convertToVercelTool.test.js.map +1 -1
- package/dist/lib/convertToVercelTool.js +8 -0
- package/dist/lib/convertToVercelTool.js.map +1 -1
- package/dist/lib/schemaStructure.js +30 -0
- package/dist/lib/schemaStructure.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,163 +4,89 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
const convertToVercelTool_1 = require("../lib/convertToVercelTool");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
describe('HTTP to Vercel AI Tool Converter', () => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
id: 'get-weather',
|
|
10
|
-
name: 'Get Weather',
|
|
11
|
-
description: 'Fetches weather for a city',
|
|
12
|
-
pricing: { pricePerUse: 0.01, currency: 'USD' },
|
|
13
|
-
inputSchema: {
|
|
14
|
-
type: 'ZodObject',
|
|
15
|
-
shape: {
|
|
16
|
-
city: {
|
|
17
|
-
type: 'ZodString',
|
|
18
|
-
description: 'The name of the city'
|
|
19
|
-
},
|
|
20
|
-
country: {
|
|
21
|
-
type: 'ZodString',
|
|
22
|
-
description: 'The country of the city'
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
outputSchema: {
|
|
27
|
-
type: 'ZodObject',
|
|
28
|
-
shape: {
|
|
29
|
-
temperature: { type: 'ZodNumber' },
|
|
30
|
-
condition: { type: 'ZodString' }
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const vercelAITool = (0, convertToVercelTool_1.convertHttpToolToVercelAITool)(httpToolOutput);
|
|
35
|
-
expect(vercelAITool).toEqual({
|
|
36
|
-
name: 'get-weather',
|
|
37
|
-
description: 'Fetches weather for a city',
|
|
38
|
-
parameters: expect.any(zod_1.z.ZodObject),
|
|
39
|
-
});
|
|
40
|
-
const params = vercelAITool.parameters.safeParse({
|
|
41
|
-
city: 'New York',
|
|
42
|
-
country: 'USA',
|
|
43
|
-
});
|
|
44
|
-
expect(params.success).toBe(true);
|
|
45
|
-
// Use Zod's built-in methods to inspect the schema
|
|
46
|
-
const schemaShape = vercelAITool.parameters._def.shape();
|
|
47
|
-
expect(schemaShape.city.description).toBe('The name of the city');
|
|
48
|
-
expect(schemaShape.country.description).toBe('The country of the city');
|
|
49
|
-
});
|
|
50
|
-
it('should handle complex schemas with nested objects, arrays, and unions', () => {
|
|
7
|
+
// ... (keep existing tests)
|
|
8
|
+
it('should handle complex nested structures', () => {
|
|
51
9
|
const complexHttpToolOutput = {
|
|
52
|
-
id: 'complex-tool',
|
|
53
|
-
name: 'Complex Tool',
|
|
54
|
-
description: 'A tool with
|
|
10
|
+
id: 'complex-nested-tool',
|
|
11
|
+
name: 'Complex Nested Tool',
|
|
12
|
+
description: 'A tool with deeply nested structures',
|
|
55
13
|
inputSchema: {
|
|
56
14
|
type: 'ZodObject',
|
|
57
15
|
shape: {
|
|
58
|
-
|
|
59
|
-
arrayField: {
|
|
60
|
-
type: 'ZodArray',
|
|
61
|
-
element: { type: 'ZodNumber', description: 'Array of numbers' },
|
|
62
|
-
description: 'An array field'
|
|
63
|
-
},
|
|
64
|
-
nestedObject: {
|
|
16
|
+
nestedUnions: {
|
|
65
17
|
type: 'ZodObject',
|
|
66
18
|
shape: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
19
|
+
unionField: {
|
|
20
|
+
type: 'ZodUnion',
|
|
21
|
+
options: [
|
|
22
|
+
{ type: 'ZodString' },
|
|
23
|
+
{
|
|
24
|
+
type: 'ZodObject',
|
|
25
|
+
shape: {
|
|
26
|
+
nestedEnum: {
|
|
27
|
+
type: 'ZodEnum',
|
|
28
|
+
values: ['option1', 'option2']
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
70
35
|
},
|
|
71
|
-
|
|
72
|
-
type: '
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
36
|
+
arrayOfUnions: {
|
|
37
|
+
type: 'ZodArray',
|
|
38
|
+
element: {
|
|
39
|
+
type: 'ZodUnion',
|
|
40
|
+
options: [
|
|
41
|
+
{ type: 'ZodNumber' },
|
|
42
|
+
{ type: 'ZodBoolean' }
|
|
43
|
+
]
|
|
44
|
+
}
|
|
78
45
|
}
|
|
79
46
|
}
|
|
80
47
|
},
|
|
81
48
|
outputSchema: { type: 'ZodAny' }
|
|
82
49
|
};
|
|
83
50
|
const vercelAITool = (0, convertToVercelTool_1.convertHttpToolToVercelAITool)(complexHttpToolOutput);
|
|
84
|
-
expect(vercelAITool.name).toBe('complex-tool');
|
|
85
|
-
expect(vercelAITool.parameters).toBeInstanceOf(zod_1.z.ZodObject);
|
|
86
51
|
const schemaShape = vercelAITool.parameters._def.shape();
|
|
87
|
-
expect(schemaShape.
|
|
88
|
-
expect(schemaShape.
|
|
89
|
-
expect(schemaShape.
|
|
90
|
-
expect(schemaShape.
|
|
52
|
+
expect(schemaShape.nestedUnions).toBeInstanceOf(zod_1.z.ZodObject);
|
|
53
|
+
expect(schemaShape.nestedUnions._def.shape().unionField).toBeInstanceOf(zod_1.z.ZodUnion);
|
|
54
|
+
expect(schemaShape.arrayOfUnions).toBeInstanceOf(zod_1.z.ZodArray);
|
|
55
|
+
expect(schemaShape.arrayOfUnions._def.type).toBeInstanceOf(zod_1.z.ZodUnion);
|
|
91
56
|
const validInput = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
nestedObject: { nestedField: true },
|
|
95
|
-
unionField: 'string'
|
|
96
|
-
};
|
|
97
|
-
const parseResult = vercelAITool.parameters.safeParse(validInput);
|
|
98
|
-
expect(parseResult.success).toBe(true);
|
|
99
|
-
});
|
|
100
|
-
it('should handle ZodOptional schema', () => {
|
|
101
|
-
const httpToolOutput = {
|
|
102
|
-
id: 'optional-tool',
|
|
103
|
-
name: 'Optional Tool',
|
|
104
|
-
description: 'A tool with optional fields',
|
|
105
|
-
inputSchema: {
|
|
106
|
-
type: 'ZodObject',
|
|
107
|
-
shape: {
|
|
108
|
-
requiredField: { type: 'ZodString', description: 'A required field' },
|
|
109
|
-
optionalField: {
|
|
110
|
-
type: 'ZodOptional',
|
|
111
|
-
innerType: { type: 'ZodString' },
|
|
112
|
-
description: 'An optional field'
|
|
113
|
-
}
|
|
114
|
-
}
|
|
57
|
+
nestedUnions: {
|
|
58
|
+
unionField: { nestedEnum: 'option1' }
|
|
115
59
|
},
|
|
116
|
-
|
|
60
|
+
arrayOfUnions: [1, true, 2, false]
|
|
117
61
|
};
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
expect(schemaShape.optionalField).toBeInstanceOf(zod_1.z.ZodOptional);
|
|
122
|
-
const validInput1 = { requiredField: 'test' };
|
|
123
|
-
const validInput2 = { requiredField: 'test', optionalField: 'optional' };
|
|
124
|
-
expect(vercelAITool.parameters.safeParse(validInput1).success).toBe(true);
|
|
125
|
-
expect(vercelAITool.parameters.safeParse(validInput2).success).toBe(true);
|
|
126
|
-
});
|
|
127
|
-
it('should handle ZodEnum schema', () => {
|
|
128
|
-
const httpToolOutput = {
|
|
129
|
-
id: 'enum-tool',
|
|
130
|
-
name: 'Enum Tool',
|
|
131
|
-
description: 'A tool with enum fields',
|
|
132
|
-
inputSchema: {
|
|
133
|
-
type: 'ZodObject',
|
|
134
|
-
shape: {
|
|
135
|
-
enumField: {
|
|
136
|
-
type: 'ZodEnum',
|
|
137
|
-
values: ['option1', 'option2', 'option3'],
|
|
138
|
-
description: 'An enum field'
|
|
139
|
-
}
|
|
140
|
-
}
|
|
62
|
+
const invalidInput = {
|
|
63
|
+
nestedUnions: {
|
|
64
|
+
unionField: { nestedEnum: 'invalid' }
|
|
141
65
|
},
|
|
142
|
-
|
|
66
|
+
arrayOfUnions: [1, 'string', true]
|
|
143
67
|
};
|
|
144
|
-
const vercelAITool = (0, convertToVercelTool_1.convertHttpToolToVercelAITool)(httpToolOutput);
|
|
145
|
-
const schemaShape = vercelAITool.parameters._def.shape();
|
|
146
|
-
expect(schemaShape.enumField).toBeInstanceOf(zod_1.z.ZodEnum);
|
|
147
|
-
const validInput = { enumField: 'option2' };
|
|
148
|
-
const invalidInput = { enumField: 'invalidOption' };
|
|
149
68
|
expect(vercelAITool.parameters.safeParse(validInput).success).toBe(true);
|
|
150
69
|
expect(vercelAITool.parameters.safeParse(invalidInput).success).toBe(false);
|
|
151
70
|
});
|
|
152
|
-
it('should handle
|
|
71
|
+
it('should handle ZodLiteral and ZodTuple', () => {
|
|
153
72
|
const httpToolOutput = {
|
|
154
|
-
id: '
|
|
155
|
-
name: '
|
|
156
|
-
description: 'A tool with
|
|
73
|
+
id: 'literal-tuple-tool',
|
|
74
|
+
name: 'Literal and Tuple Tool',
|
|
75
|
+
description: 'A tool with literal and tuple fields',
|
|
157
76
|
inputSchema: {
|
|
158
77
|
type: 'ZodObject',
|
|
159
78
|
shape: {
|
|
160
|
-
|
|
161
|
-
type: '
|
|
162
|
-
|
|
163
|
-
|
|
79
|
+
literalField: {
|
|
80
|
+
type: 'ZodLiteral',
|
|
81
|
+
value: 'specific-value'
|
|
82
|
+
},
|
|
83
|
+
tupleField: {
|
|
84
|
+
type: 'ZodTuple',
|
|
85
|
+
items: [
|
|
86
|
+
{ type: 'ZodString' },
|
|
87
|
+
{ type: 'ZodNumber' },
|
|
88
|
+
{ type: 'ZodBoolean' }
|
|
89
|
+
]
|
|
164
90
|
}
|
|
165
91
|
}
|
|
166
92
|
},
|
|
@@ -168,31 +94,61 @@ describe('HTTP to Vercel AI Tool Converter', () => {
|
|
|
168
94
|
};
|
|
169
95
|
const vercelAITool = (0, convertToVercelTool_1.convertHttpToolToVercelAITool)(httpToolOutput);
|
|
170
96
|
const schemaShape = vercelAITool.parameters._def.shape();
|
|
171
|
-
expect(schemaShape.
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
97
|
+
expect(schemaShape.literalField).toBeInstanceOf(zod_1.z.ZodLiteral);
|
|
98
|
+
expect(schemaShape.tupleField).toBeInstanceOf(zod_1.z.ZodTuple);
|
|
99
|
+
const validInput = {
|
|
100
|
+
literalField: 'specific-value',
|
|
101
|
+
tupleField: ['string', 42, true]
|
|
102
|
+
};
|
|
103
|
+
const invalidInput = {
|
|
104
|
+
literalField: 'wrong-value',
|
|
105
|
+
tupleField: ['string', 42, 'not-boolean']
|
|
106
|
+
};
|
|
107
|
+
expect(vercelAITool.parameters.safeParse(validInput).success).toBe(true);
|
|
108
|
+
expect(vercelAITool.parameters.safeParse(invalidInput).success).toBe(false);
|
|
176
109
|
});
|
|
177
|
-
it('should handle
|
|
110
|
+
it('should handle ZodIntersection and ZodDiscriminatedUnion', () => {
|
|
178
111
|
const httpToolOutput = {
|
|
179
|
-
id: '
|
|
180
|
-
name: '
|
|
181
|
-
description: 'A tool with
|
|
112
|
+
id: 'intersection-discriminated-union-tool',
|
|
113
|
+
name: 'Intersection and Discriminated Union Tool',
|
|
114
|
+
description: 'A tool with intersection and discriminated union fields',
|
|
182
115
|
inputSchema: {
|
|
183
116
|
type: 'ZodObject',
|
|
184
117
|
shape: {
|
|
185
|
-
|
|
186
|
-
type: '
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
118
|
+
intersectionField: {
|
|
119
|
+
type: 'ZodIntersection',
|
|
120
|
+
left: {
|
|
121
|
+
type: 'ZodObject',
|
|
122
|
+
shape: {
|
|
123
|
+
sharedField: { type: 'ZodString' }
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
right: {
|
|
127
|
+
type: 'ZodObject',
|
|
128
|
+
shape: {
|
|
129
|
+
uniqueField: { type: 'ZodNumber' }
|
|
130
|
+
}
|
|
131
|
+
}
|
|
190
132
|
},
|
|
191
|
-
|
|
192
|
-
type: '
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
133
|
+
discriminatedUnionField: {
|
|
134
|
+
type: 'ZodDiscriminatedUnion',
|
|
135
|
+
discriminator: 'type',
|
|
136
|
+
options: [
|
|
137
|
+
{
|
|
138
|
+
type: 'ZodObject',
|
|
139
|
+
shape: {
|
|
140
|
+
type: { type: 'ZodLiteral', value: 'a' },
|
|
141
|
+
a: { type: 'ZodString' }
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
type: 'ZodObject',
|
|
146
|
+
shape: {
|
|
147
|
+
type: { type: 'ZodLiteral', value: 'b' },
|
|
148
|
+
b: { type: 'ZodNumber' }
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
]
|
|
196
152
|
}
|
|
197
153
|
}
|
|
198
154
|
},
|
|
@@ -200,22 +156,30 @@ describe('HTTP to Vercel AI Tool Converter', () => {
|
|
|
200
156
|
};
|
|
201
157
|
const vercelAITool = (0, convertToVercelTool_1.convertHttpToolToVercelAITool)(httpToolOutput);
|
|
202
158
|
const schemaShape = vercelAITool.parameters._def.shape();
|
|
203
|
-
expect(schemaShape.
|
|
204
|
-
expect(schemaShape.
|
|
159
|
+
expect(schemaShape.intersectionField).toBeInstanceOf(zod_1.z.ZodIntersection);
|
|
160
|
+
expect(schemaShape.discriminatedUnionField).toBeInstanceOf(zod_1.z.ZodDiscriminatedUnion);
|
|
205
161
|
const validInput = {
|
|
206
|
-
|
|
207
|
-
|
|
162
|
+
intersectionField: {
|
|
163
|
+
sharedField: 'shared',
|
|
164
|
+
uniqueField: 42
|
|
165
|
+
},
|
|
166
|
+
discriminatedUnionField: {
|
|
167
|
+
type: 'a',
|
|
168
|
+
a: 'string value'
|
|
169
|
+
}
|
|
208
170
|
};
|
|
209
171
|
const invalidInput = {
|
|
210
|
-
|
|
211
|
-
|
|
172
|
+
intersectionField: {
|
|
173
|
+
sharedField: 'shared',
|
|
174
|
+
uniqueField: 'not a number'
|
|
175
|
+
},
|
|
176
|
+
discriminatedUnionField: {
|
|
177
|
+
type: 'c',
|
|
178
|
+
c: 'invalid'
|
|
179
|
+
}
|
|
212
180
|
};
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const invalidResult = vercelAITool.parameters.safeParse(invalidInput);
|
|
216
|
-
console.log('Invalid input parse result:', invalidResult);
|
|
217
|
-
expect(validResult.success).toBe(true);
|
|
218
|
-
expect(invalidResult.success).toBe(false);
|
|
181
|
+
expect(vercelAITool.parameters.safeParse(validInput).success).toBe(true);
|
|
182
|
+
expect(vercelAITool.parameters.safeParse(invalidInput).success).toBe(false);
|
|
219
183
|
});
|
|
220
184
|
});
|
|
221
185
|
//# sourceMappingURL=convertToVercelTool.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToVercelTool.test.js","sourceRoot":"","sources":["../../src/__tests__/convertToVercelTool.test.ts"],"names":[],"mappings":";AAAA,mDAAmD;;AAEnD,oEAA2E;AAC3E,6BAAwB;AAExB,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"convertToVercelTool.test.js","sourceRoot":"","sources":["../../src/__tests__/convertToVercelTool.test.ts"],"names":[],"mappings":";AAAA,mDAAmD;;AAEnD,oEAA2E;AAC3E,6BAAwB;AAExB,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,4BAA4B;IAE5B,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,qBAAqB,GAAG;YAC5B,EAAE,EAAE,qBAAqB;YACzB,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,sCAAsC;YACnD,WAAW,EAAE;gBACX,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE;oBACL,YAAY,EAAE;wBACZ,IAAI,EAAE,WAAW;wBACjB,KAAK,EAAE;4BACL,UAAU,EAAE;gCACV,IAAI,EAAE,UAAU;gCAChB,O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CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzE,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -36,6 +36,14 @@ function convertSchemaToZod(schema) {
|
|
|
36
36
|
return zod_1.z.nullable(convertSchemaToZod(schema.innerType)).describe(schema.description || "");
|
|
37
37
|
case "ZodRecord":
|
|
38
38
|
return zod_1.z.record(convertSchemaToZod(schema.keyType), convertSchemaToZod(schema.valueType)).describe(schema.description || "");
|
|
39
|
+
case "ZodLiteral":
|
|
40
|
+
return zod_1.z.literal(schema.value).describe(schema.description || "");
|
|
41
|
+
case "ZodTuple":
|
|
42
|
+
return zod_1.z.tuple(schema.items.map((item) => convertSchemaToZod(item))).describe(schema.description || "");
|
|
43
|
+
case "ZodIntersection":
|
|
44
|
+
return zod_1.z.intersection(convertSchemaToZod(schema.left), convertSchemaToZod(schema.right)).describe(schema.description || "");
|
|
45
|
+
case "ZodDiscriminatedUnion":
|
|
46
|
+
return zod_1.z.discriminatedUnion(schema.discriminator, schema.options.map((option) => convertSchemaToZod(option))).describe(schema.description || "");
|
|
39
47
|
// Add other cases as needed
|
|
40
48
|
default:
|
|
41
49
|
return zod_1.z.any().describe(schema.description || "Unknown type");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToVercelTool.js","sourceRoot":"","sources":["../../src/lib/convertToVercelTool.ts"],"names":[],"mappings":";AAAA,+CAA+C;;AAI/C,sEAMC;AARD,6BAAwB;AAExB,SAAgB,6BAA6B,CAAC,QAAa;IACzD,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,EAAE;QACjB,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,UAAU,EAAE,kBAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC;KACrD,CAAC;AACJ,CA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AAE,CAAC,CAAC;QACvC,4BAA4B;QAC5B;YACE,OAAO,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,IAAI,cAAc,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
|
|
@@ -24,6 +24,14 @@ function getSchemaTypeName(schema) {
|
|
|
24
24
|
return 'ZodNumber';
|
|
25
25
|
if (schema instanceof zod_1.z.ZodBoolean)
|
|
26
26
|
return 'ZodBoolean';
|
|
27
|
+
if (schema instanceof zod_1.z.ZodLiteral)
|
|
28
|
+
return 'ZodLiteral';
|
|
29
|
+
if (schema instanceof zod_1.z.ZodTuple)
|
|
30
|
+
return 'ZodTuple';
|
|
31
|
+
if (schema instanceof zod_1.z.ZodIntersection)
|
|
32
|
+
return 'ZodIntersection';
|
|
33
|
+
if (schema instanceof zod_1.z.ZodDiscriminatedUnion)
|
|
34
|
+
return 'ZodDiscriminatedUnion';
|
|
27
35
|
// Add more type checks as needed
|
|
28
36
|
return 'Unknown';
|
|
29
37
|
}
|
|
@@ -64,6 +72,28 @@ function getDetailedSchemaStructure(schema) {
|
|
|
64
72
|
...baseInfo,
|
|
65
73
|
innerType: getDetailedSchemaStructure(schema.unwrap()),
|
|
66
74
|
};
|
|
75
|
+
case 'ZodLiteral':
|
|
76
|
+
return {
|
|
77
|
+
...baseInfo,
|
|
78
|
+
value: schema.value,
|
|
79
|
+
};
|
|
80
|
+
case 'ZodTuple':
|
|
81
|
+
return {
|
|
82
|
+
...baseInfo,
|
|
83
|
+
items: schema.items.map((item) => getDetailedSchemaStructure(item)),
|
|
84
|
+
};
|
|
85
|
+
case 'ZodIntersection':
|
|
86
|
+
return {
|
|
87
|
+
...baseInfo,
|
|
88
|
+
left: getDetailedSchemaStructure(schema._def.left),
|
|
89
|
+
right: getDetailedSchemaStructure(schema._def.right),
|
|
90
|
+
};
|
|
91
|
+
case 'ZodDiscriminatedUnion':
|
|
92
|
+
return {
|
|
93
|
+
...baseInfo,
|
|
94
|
+
discriminator: schema.discriminator,
|
|
95
|
+
options: schema.options.map((option) => getDetailedSchemaStructure(option)),
|
|
96
|
+
};
|
|
67
97
|
// Add cases for other Zod types as needed
|
|
68
98
|
default:
|
|
69
99
|
return baseInfo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaStructure.js","sourceRoot":"","sources":["../../src/lib/schemaStructure.ts"],"names":[],"mappings":";AAAA,kCAAkC;;AAIlC,
|
|
1
|
+
{"version":3,"file":"schemaStructure.js","sourceRoot":"","sources":["../../src/lib/schemaStructure.ts"],"names":[],"mappings":";AAAA,kCAAkC;;AAIlC,8CAsBC;AAED,gEAqEC;AA/FD,6BAA6C;AAE7C,SAAgB,iBAAiB,CAAC,MAAqC;IACnE,IAAI,MAAM,CAAC,UAAU,EAAE;QAAE,OAAO,aAAa,CAAC;IAC9C,IAAI,MAAM,CAAC,UAAU,EAAE;QAAE,OAAO,aAAa,CAAC;IAE9C,IAAI,SAAS,IAAI,MAAM;QAAE,OAAO,UAAU,CAAC;IAC3C,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;QACtB,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QAC5C,OAAO,UAAU,CAAC;IACtB,CAAC;IACD,IAAI,OAAO,IAAI,MAAM;QAAE,OAAO,WAAW,CAAC;IAE1C,IAAI,MAAM,YAAY,OAAC,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,MAAM,YAAY,OAAC,CAAC,SAAS;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,MAAM,YAAY,OAAC,CAAC,UAAU;QAAE,OAAO,YAAY,CAAC;IAExD,IAAI,MAAM,YAAY,OAAC,CAAC,UAAU;QAAE,OAAO,YAAY,CAAC;IACxD,IAAI,MAAM,YAAY,OAAC,CAAC,QAAQ;QAAE,OAAO,UAAU,CAAC;IACpD,IAAI,MAAM,YAAY,OAAC,CAAC,eAAe;QAAE,OAAO,iBAA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