@vladimirdev635/gql-codegen 0.0.113 → 0.0.116
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/actors/text-diff.js +7 -7
- package/actors/ts/graphql/generators/client/fragments/spec/shared.d.ts +18 -1
- package/actors/ts/graphql/generators/server/inputs.d.ts +2 -2
- package/actors/ts/graphql/generators/server/inputs.js +1 -1
- package/actors/utils.js +3 -1
- package/package.json +2 -2
- package/schema/client/argument.d.ts +36 -2
- package/schema/client/argument.js +2 -1
- package/schema/client/directive.d.ts +19 -2
- package/schema/client/fragment.d.ts +36 -2
- package/schema/client/operation.d.ts +19 -2
- package/schema/client/root.d.ts +38 -4
- package/schema/server.d.ts +133 -14
- package/schema/shared.d.ts +75 -7
- package/schema/shared.js +26 -7
- package/schema/schema.spec.d.ts +0 -1
- package/schema/schema.spec.js +0 -17
- package/schema/test-client.json +0 -52031
- package/schema/test-server.json +0 -38289
package/actors/text-diff.js
CHANGED
|
@@ -58,30 +58,30 @@ const n = 10;
|
|
|
58
58
|
function printLine(state, part, line) {
|
|
59
59
|
if (part.added) {
|
|
60
60
|
if (state.beforeBufferList.length !== 0) {
|
|
61
|
-
process.
|
|
61
|
+
process.stderr.write(buildSeparatorLine(state.newLineNumber, state.oldLineNumber) +
|
|
62
62
|
'\n');
|
|
63
|
-
process.
|
|
63
|
+
process.stderr.write(state.beforeBufferList.join('\n') + '\n');
|
|
64
64
|
state.beforeBufferList = [];
|
|
65
65
|
}
|
|
66
66
|
state.nextN = n;
|
|
67
|
-
process.
|
|
67
|
+
process.stderr.write(formatLine(state.newLineNumber, state.oldLineNumber, LineType.Added, line) + '\n');
|
|
68
68
|
state.newLineNumber++;
|
|
69
69
|
}
|
|
70
70
|
else if (part.removed) {
|
|
71
71
|
if (state.beforeBufferList.length !== 0) {
|
|
72
|
-
process.
|
|
72
|
+
process.stderr.write(buildSeparatorLine(state.newLineNumber, state.oldLineNumber) +
|
|
73
73
|
'\n');
|
|
74
|
-
process.
|
|
74
|
+
process.stderr.write(state.beforeBufferList.join('\n') + '\n');
|
|
75
75
|
state.beforeBufferList = [];
|
|
76
76
|
}
|
|
77
77
|
state.nextN = n;
|
|
78
|
-
process.
|
|
78
|
+
process.stderr.write(formatLine(state.newLineNumber, state.oldLineNumber, LineType.Removed, line) + '\n');
|
|
79
79
|
state.oldLineNumber++;
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
82
|
const formattedLine = formatLine(state.newLineNumber, state.oldLineNumber, LineType.Unchanged, line);
|
|
83
83
|
if (state.nextN !== 0) {
|
|
84
|
-
process.
|
|
84
|
+
process.stderr.write(formattedLine + '\n');
|
|
85
85
|
state.nextN -= 1;
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
@@ -23,7 +23,24 @@ export declare function resolveSelections(specSelections: z.infer<typeof objectS
|
|
|
23
23
|
name: string;
|
|
24
24
|
} | {
|
|
25
25
|
_type: "literal";
|
|
26
|
-
|
|
26
|
+
literal: {
|
|
27
|
+
_type: "string";
|
|
28
|
+
value: string;
|
|
29
|
+
} | {
|
|
30
|
+
_type: "enum-value";
|
|
31
|
+
value: string;
|
|
32
|
+
} | {
|
|
33
|
+
_type: "null";
|
|
34
|
+
} | {
|
|
35
|
+
_type: "int";
|
|
36
|
+
value: number;
|
|
37
|
+
} | {
|
|
38
|
+
_type: "float";
|
|
39
|
+
value: number;
|
|
40
|
+
} | {
|
|
41
|
+
_type: "boolean";
|
|
42
|
+
value: boolean;
|
|
43
|
+
};
|
|
27
44
|
};
|
|
28
45
|
}>;
|
|
29
46
|
selection: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
|
-
import ts from 'typescript';
|
|
3
1
|
import { inputSchema } from '../../../../../schema/server.js';
|
|
4
2
|
import { inputFieldSchema } from '../../../../../schema/shared.js';
|
|
3
|
+
import ts from 'typescript';
|
|
4
|
+
import { z } from 'zod/v4';
|
|
5
5
|
import { ScalarsMapping } from './scalars/index.js';
|
|
6
6
|
export declare function generateInputTypeDefinitionFields(scalarsMapping: ScalarsMapping, fields: Record<string, z.infer<typeof inputFieldSchema>>, insideLazy: boolean): (ts.PropertyAssignment | ts.GetAccessorDeclaration)[];
|
|
7
7
|
export declare function generateInputTypeDefinitions(scalarsMapping: ScalarsMapping, input: z.infer<typeof inputSchema>): ts.Node[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { getScalarSpecFromMapping } from './scalars/index.js';
|
|
3
2
|
import { invokeMethod } from '../../../shared.js';
|
|
3
|
+
import { getScalarSpecFromMapping } from './scalars/index.js';
|
|
4
4
|
import { generateSchemaName, generateZodInferInterfaceType } from './shared.js';
|
|
5
5
|
function generateZodInputTypeSpec(scalarsMapping, type) {
|
|
6
6
|
switch (type._type) {
|
package/actors/utils.js
CHANGED
|
@@ -14,9 +14,11 @@ export function executeRunAction(outPath, action, code) {
|
|
|
14
14
|
const fileCode = fs.readFileSync(outPath).toString();
|
|
15
15
|
if (fileCode !== code) {
|
|
16
16
|
const changes = diffLines(fileCode, code);
|
|
17
|
-
process.
|
|
17
|
+
process.stderr.write(pc.blue(`${path.relative(process.cwd(), outPath.toString())}:\n`));
|
|
18
18
|
printChanges(changes);
|
|
19
|
+
process.exit(1);
|
|
19
20
|
}
|
|
21
|
+
process.stdout.write('Code is up to date\n');
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vladimirdev635/gql-codegen",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/Voldemat/graphql-plus-plus#readme",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"lint": "oxlint .",
|
|
23
23
|
"lint:fix": "oxlint --fix .",
|
|
24
24
|
"lint:ci": "npm run fmt:check && npm run lint",
|
|
25
|
-
"test": "vitest",
|
|
25
|
+
"test": "vitest --passWithNoTests",
|
|
26
26
|
"build": "tsc && tsc-alias && cp package.json ./dist/package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
@@ -4,7 +4,24 @@ export declare const argumentValue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
}, z.core.$strip>, z.ZodObject<{
|
|
6
6
|
_type: z.ZodLiteral<"literal">;
|
|
7
|
-
|
|
7
|
+
literal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
_type: z.ZodLiteral<"string">;
|
|
9
|
+
value: z.ZodString;
|
|
10
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
12
|
+
value: z.ZodString;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
_type: z.ZodLiteral<"null">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
_type: z.ZodLiteral<"int">;
|
|
17
|
+
value: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
_type: z.ZodLiteral<"float">;
|
|
20
|
+
value: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
_type: z.ZodLiteral<"boolean">;
|
|
23
|
+
value: z.ZodBoolean;
|
|
24
|
+
}, z.core.$strip>], "_type">;
|
|
8
25
|
}, z.core.$strip>], "_type">;
|
|
9
26
|
export declare const argument: z.ZodObject<{
|
|
10
27
|
name: z.ZodString;
|
|
@@ -13,6 +30,23 @@ export declare const argument: z.ZodObject<{
|
|
|
13
30
|
name: z.ZodString;
|
|
14
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
15
32
|
_type: z.ZodLiteral<"literal">;
|
|
16
|
-
|
|
33
|
+
literal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
34
|
+
_type: z.ZodLiteral<"string">;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
38
|
+
value: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
_type: z.ZodLiteral<"null">;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
_type: z.ZodLiteral<"int">;
|
|
43
|
+
value: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
_type: z.ZodLiteral<"float">;
|
|
46
|
+
value: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
_type: z.ZodLiteral<"boolean">;
|
|
49
|
+
value: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>], "_type">;
|
|
17
51
|
}, z.core.$strip>], "_type">;
|
|
18
52
|
}, z.core.$strip>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
import { literalSchema } from '../shared.js';
|
|
2
3
|
export const argumentValue = z.discriminatedUnion('_type', [
|
|
3
4
|
z.object({
|
|
4
5
|
_type: z.literal('ref'),
|
|
@@ -6,7 +7,7 @@ export const argumentValue = z.discriminatedUnion('_type', [
|
|
|
6
7
|
}),
|
|
7
8
|
z.object({
|
|
8
9
|
_type: z.literal('literal'),
|
|
9
|
-
|
|
10
|
+
literal: literalSchema,
|
|
10
11
|
}),
|
|
11
12
|
]);
|
|
12
13
|
export const argument = z.object({
|
|
@@ -17,11 +17,28 @@ export declare const directiveSchema: z.ZodObject<{
|
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
$ref: z.ZodString;
|
|
19
19
|
}, z.core.$strip>], "_type">;
|
|
20
|
-
defaultValue: z.
|
|
20
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
|
+
_type: z.ZodLiteral<"string">;
|
|
22
|
+
value: z.ZodString;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
25
|
+
value: z.ZodString;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
_type: z.ZodLiteral<"null">;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
_type: z.ZodLiteral<"int">;
|
|
30
|
+
value: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
_type: z.ZodLiteral<"float">;
|
|
33
|
+
value: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
_type: z.ZodLiteral<"boolean">;
|
|
36
|
+
value: z.ZodBoolean;
|
|
37
|
+
}, z.core.$strip>], "_type">>;
|
|
21
38
|
}, z.core.$strip>, z.ZodObject<{
|
|
22
39
|
_type: z.ZodLiteral<"array">;
|
|
23
40
|
nullable: z.ZodBoolean;
|
|
24
|
-
defaultValue: z.
|
|
41
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
25
42
|
type: z.ZodDiscriminatedUnion<[typeof import("../shared.js").inputLiteralSpecSchema, typeof import("../shared.js").inputArraySpecSchema]>;
|
|
26
43
|
}, z.core.$strip>], "_type">;
|
|
27
44
|
}, z.core.$strip>>;
|
|
@@ -33,7 +33,24 @@ export declare const fieldSelection: z.ZodObject<{
|
|
|
33
33
|
name: z.ZodString;
|
|
34
34
|
}, z.core.$strip>, z.ZodObject<{
|
|
35
35
|
_type: z.ZodLiteral<"literal">;
|
|
36
|
-
|
|
36
|
+
literal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
_type: z.ZodLiteral<"string">;
|
|
38
|
+
value: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
41
|
+
value: z.ZodString;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
_type: z.ZodLiteral<"null">;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
_type: z.ZodLiteral<"int">;
|
|
46
|
+
value: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
+
_type: z.ZodLiteral<"float">;
|
|
49
|
+
value: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
_type: z.ZodLiteral<"boolean">;
|
|
52
|
+
value: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>], "_type">;
|
|
37
54
|
}, z.core.$strip>], "_type">;
|
|
38
55
|
}, z.core.$strip>>;
|
|
39
56
|
selection: z.ZodNullable<FragmentSpecSchemaZodType>;
|
|
@@ -75,7 +92,24 @@ export declare const objectSelection: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
75
92
|
name: z.ZodString;
|
|
76
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
94
|
_type: z.ZodLiteral<"literal">;
|
|
78
|
-
|
|
95
|
+
literal: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
96
|
+
_type: z.ZodLiteral<"string">;
|
|
97
|
+
value: z.ZodString;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
100
|
+
value: z.ZodString;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
_type: z.ZodLiteral<"null">;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
_type: z.ZodLiteral<"int">;
|
|
105
|
+
value: z.ZodNumber;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
_type: z.ZodLiteral<"float">;
|
|
108
|
+
value: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
_type: z.ZodLiteral<"boolean">;
|
|
111
|
+
value: z.ZodBoolean;
|
|
112
|
+
}, z.core.$strip>], "_type">;
|
|
79
113
|
}, z.core.$strip>], "_type">;
|
|
80
114
|
}, z.core.$strip>>;
|
|
81
115
|
selection: z.ZodNullable<FragmentSpecSchemaZodType>;
|
|
@@ -22,11 +22,28 @@ export declare const operationSchema: z.ZodObject<{
|
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
$ref: z.ZodString;
|
|
24
24
|
}, z.core.$strip>], "_type">;
|
|
25
|
-
defaultValue: z.
|
|
25
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
_type: z.ZodLiteral<"string">;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
_type: z.ZodLiteral<"null">;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
_type: z.ZodLiteral<"int">;
|
|
35
|
+
value: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
_type: z.ZodLiteral<"float">;
|
|
38
|
+
value: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
_type: z.ZodLiteral<"boolean">;
|
|
41
|
+
value: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>], "_type">>;
|
|
26
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
27
44
|
_type: z.ZodLiteral<"array">;
|
|
28
45
|
nullable: z.ZodBoolean;
|
|
29
|
-
defaultValue: z.
|
|
46
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
30
47
|
type: z.ZodDiscriminatedUnion<[typeof import("../shared.js").inputLiteralSpecSchema, typeof import("../shared.js").inputArraySpecSchema]>;
|
|
31
48
|
}, z.core.$strip>], "_type">;
|
|
32
49
|
}, z.core.$strip>>;
|
package/schema/client/root.d.ts
CHANGED
|
@@ -35,11 +35,28 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
35
35
|
name: z.ZodString;
|
|
36
36
|
$ref: z.ZodString;
|
|
37
37
|
}, z.core.$strip>], "_type">;
|
|
38
|
-
defaultValue: z.
|
|
38
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
_type: z.ZodLiteral<"string">;
|
|
40
|
+
value: z.ZodString;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
43
|
+
value: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
_type: z.ZodLiteral<"null">;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
_type: z.ZodLiteral<"int">;
|
|
48
|
+
value: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
_type: z.ZodLiteral<"float">;
|
|
51
|
+
value: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
_type: z.ZodLiteral<"boolean">;
|
|
54
|
+
value: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>], "_type">>;
|
|
39
56
|
}, z.core.$strip>, z.ZodObject<{
|
|
40
57
|
_type: z.ZodLiteral<"array">;
|
|
41
58
|
nullable: z.ZodBoolean;
|
|
42
|
-
defaultValue: z.
|
|
59
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
43
60
|
type: z.ZodDiscriminatedUnion<[typeof import("../shared.js").inputLiteralSpecSchema, typeof import("../shared.js").inputArraySpecSchema]>;
|
|
44
61
|
}, z.core.$strip>], "_type">;
|
|
45
62
|
}, z.core.$strip>>;
|
|
@@ -72,11 +89,28 @@ export declare const clientSchema: z.ZodObject<{
|
|
|
72
89
|
name: z.ZodString;
|
|
73
90
|
$ref: z.ZodString;
|
|
74
91
|
}, z.core.$strip>], "_type">;
|
|
75
|
-
defaultValue: z.
|
|
92
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
_type: z.ZodLiteral<"string">;
|
|
94
|
+
value: z.ZodString;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
97
|
+
value: z.ZodString;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
_type: z.ZodLiteral<"null">;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
_type: z.ZodLiteral<"int">;
|
|
102
|
+
value: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
_type: z.ZodLiteral<"float">;
|
|
105
|
+
value: z.ZodNumber;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
_type: z.ZodLiteral<"boolean">;
|
|
108
|
+
value: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strip>], "_type">>;
|
|
76
110
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
111
|
_type: z.ZodLiteral<"array">;
|
|
78
112
|
nullable: z.ZodBoolean;
|
|
79
|
-
defaultValue: z.
|
|
113
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
80
114
|
type: z.ZodDiscriminatedUnion<[typeof import("../shared.js").inputLiteralSpecSchema, typeof import("../shared.js").inputArraySpecSchema]>;
|
|
81
115
|
}, z.core.$strip>], "_type">;
|
|
82
116
|
}, z.core.$strip>>;
|
package/schema/server.d.ts
CHANGED
|
@@ -119,11 +119,28 @@ export declare const callableSpecSchema: z.ZodObject<{
|
|
|
119
119
|
name: z.ZodString;
|
|
120
120
|
$ref: z.ZodString;
|
|
121
121
|
}, z.core.$strip>], "_type">;
|
|
122
|
-
defaultValue: z.
|
|
122
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
123
|
+
_type: z.ZodLiteral<"string">;
|
|
124
|
+
value: z.ZodString;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
127
|
+
value: z.ZodString;
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
+
_type: z.ZodLiteral<"null">;
|
|
130
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
+
_type: z.ZodLiteral<"int">;
|
|
132
|
+
value: z.ZodNumber;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
_type: z.ZodLiteral<"float">;
|
|
135
|
+
value: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
137
|
+
_type: z.ZodLiteral<"boolean">;
|
|
138
|
+
value: z.ZodBoolean;
|
|
139
|
+
}, z.core.$strip>], "_type">>;
|
|
123
140
|
}, z.core.$strip>, z.ZodObject<{
|
|
124
141
|
_type: z.ZodLiteral<"array">;
|
|
125
142
|
nullable: z.ZodBoolean;
|
|
126
|
-
defaultValue: z.
|
|
143
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
127
144
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
128
145
|
}, z.core.$strip>], "_type">;
|
|
129
146
|
}, z.core.$strip>>;
|
|
@@ -199,11 +216,28 @@ export declare const objectFieldSpecSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
199
216
|
name: z.ZodString;
|
|
200
217
|
$ref: z.ZodString;
|
|
201
218
|
}, z.core.$strip>], "_type">;
|
|
202
|
-
defaultValue: z.
|
|
219
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
|
+
_type: z.ZodLiteral<"string">;
|
|
221
|
+
value: z.ZodString;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
224
|
+
value: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
_type: z.ZodLiteral<"null">;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
_type: z.ZodLiteral<"int">;
|
|
229
|
+
value: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
231
|
+
_type: z.ZodLiteral<"float">;
|
|
232
|
+
value: z.ZodNumber;
|
|
233
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
234
|
+
_type: z.ZodLiteral<"boolean">;
|
|
235
|
+
value: z.ZodBoolean;
|
|
236
|
+
}, z.core.$strip>], "_type">>;
|
|
203
237
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
238
|
_type: z.ZodLiteral<"array">;
|
|
205
239
|
nullable: z.ZodBoolean;
|
|
206
|
-
defaultValue: z.
|
|
240
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
207
241
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
208
242
|
}, z.core.$strip>], "_type">;
|
|
209
243
|
}, z.core.$strip>>;
|
|
@@ -281,11 +315,28 @@ export declare const objectFieldSchema: z.ZodObject<{
|
|
|
281
315
|
name: z.ZodString;
|
|
282
316
|
$ref: z.ZodString;
|
|
283
317
|
}, z.core.$strip>], "_type">;
|
|
284
|
-
defaultValue: z.
|
|
318
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
319
|
+
_type: z.ZodLiteral<"string">;
|
|
320
|
+
value: z.ZodString;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
323
|
+
value: z.ZodString;
|
|
324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
+
_type: z.ZodLiteral<"null">;
|
|
326
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
+
_type: z.ZodLiteral<"int">;
|
|
328
|
+
value: z.ZodNumber;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
_type: z.ZodLiteral<"float">;
|
|
331
|
+
value: z.ZodNumber;
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
_type: z.ZodLiteral<"boolean">;
|
|
334
|
+
value: z.ZodBoolean;
|
|
335
|
+
}, z.core.$strip>], "_type">>;
|
|
285
336
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
337
|
_type: z.ZodLiteral<"array">;
|
|
287
338
|
nullable: z.ZodBoolean;
|
|
288
|
-
defaultValue: z.
|
|
339
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
289
340
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
290
341
|
}, z.core.$strip>], "_type">;
|
|
291
342
|
}, z.core.$strip>>;
|
|
@@ -367,11 +418,28 @@ export declare const objectSchema: z.ZodObject<{
|
|
|
367
418
|
name: z.ZodString;
|
|
368
419
|
$ref: z.ZodString;
|
|
369
420
|
}, z.core.$strip>], "_type">;
|
|
370
|
-
defaultValue: z.
|
|
421
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
422
|
+
_type: z.ZodLiteral<"string">;
|
|
423
|
+
value: z.ZodString;
|
|
424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
425
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
426
|
+
value: z.ZodString;
|
|
427
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
+
_type: z.ZodLiteral<"null">;
|
|
429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
430
|
+
_type: z.ZodLiteral<"int">;
|
|
431
|
+
value: z.ZodNumber;
|
|
432
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
433
|
+
_type: z.ZodLiteral<"float">;
|
|
434
|
+
value: z.ZodNumber;
|
|
435
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
436
|
+
_type: z.ZodLiteral<"boolean">;
|
|
437
|
+
value: z.ZodBoolean;
|
|
438
|
+
}, z.core.$strip>], "_type">>;
|
|
371
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
440
|
_type: z.ZodLiteral<"array">;
|
|
373
441
|
nullable: z.ZodBoolean;
|
|
374
|
-
defaultValue: z.
|
|
442
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
375
443
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
376
444
|
}, z.core.$strip>], "_type">;
|
|
377
445
|
}, z.core.$strip>>;
|
|
@@ -396,11 +464,28 @@ export declare const inputSchema: z.ZodObject<{
|
|
|
396
464
|
name: z.ZodString;
|
|
397
465
|
$ref: z.ZodString;
|
|
398
466
|
}, z.core.$strip>], "_type">;
|
|
399
|
-
defaultValue: z.
|
|
467
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
468
|
+
_type: z.ZodLiteral<"string">;
|
|
469
|
+
value: z.ZodString;
|
|
470
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
471
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
472
|
+
value: z.ZodString;
|
|
473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
474
|
+
_type: z.ZodLiteral<"null">;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
_type: z.ZodLiteral<"int">;
|
|
477
|
+
value: z.ZodNumber;
|
|
478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
479
|
+
_type: z.ZodLiteral<"float">;
|
|
480
|
+
value: z.ZodNumber;
|
|
481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
+
_type: z.ZodLiteral<"boolean">;
|
|
483
|
+
value: z.ZodBoolean;
|
|
484
|
+
}, z.core.$strip>], "_type">>;
|
|
400
485
|
}, z.core.$strip>, z.ZodObject<{
|
|
401
486
|
_type: z.ZodLiteral<"array">;
|
|
402
487
|
nullable: z.ZodBoolean;
|
|
403
|
-
defaultValue: z.
|
|
488
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
404
489
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
405
490
|
}, z.core.$strip>], "_type">;
|
|
406
491
|
}, z.core.$strip>>;
|
|
@@ -519,11 +604,28 @@ export declare const serverSchema: z.ZodObject<{
|
|
|
519
604
|
name: z.ZodString;
|
|
520
605
|
$ref: z.ZodString;
|
|
521
606
|
}, z.core.$strip>], "_type">;
|
|
522
|
-
defaultValue: z.
|
|
607
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
608
|
+
_type: z.ZodLiteral<"string">;
|
|
609
|
+
value: z.ZodString;
|
|
610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
611
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
612
|
+
value: z.ZodString;
|
|
613
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
614
|
+
_type: z.ZodLiteral<"null">;
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
616
|
+
_type: z.ZodLiteral<"int">;
|
|
617
|
+
value: z.ZodNumber;
|
|
618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
+
_type: z.ZodLiteral<"float">;
|
|
620
|
+
value: z.ZodNumber;
|
|
621
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
622
|
+
_type: z.ZodLiteral<"boolean">;
|
|
623
|
+
value: z.ZodBoolean;
|
|
624
|
+
}, z.core.$strip>], "_type">>;
|
|
523
625
|
}, z.core.$strip>, z.ZodObject<{
|
|
524
626
|
_type: z.ZodLiteral<"array">;
|
|
525
627
|
nullable: z.ZodBoolean;
|
|
526
|
-
defaultValue: z.
|
|
628
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
527
629
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
528
630
|
}, z.core.$strip>], "_type">;
|
|
529
631
|
}, z.core.$strip>>;
|
|
@@ -573,11 +675,28 @@ export declare const serverSchema: z.ZodObject<{
|
|
|
573
675
|
name: z.ZodString;
|
|
574
676
|
$ref: z.ZodString;
|
|
575
677
|
}, z.core.$strip>], "_type">;
|
|
576
|
-
defaultValue: z.
|
|
678
|
+
defaultValue: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
679
|
+
_type: z.ZodLiteral<"string">;
|
|
680
|
+
value: z.ZodString;
|
|
681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
682
|
+
_type: z.ZodLiteral<"enum-value">;
|
|
683
|
+
value: z.ZodString;
|
|
684
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
+
_type: z.ZodLiteral<"null">;
|
|
686
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
687
|
+
_type: z.ZodLiteral<"int">;
|
|
688
|
+
value: z.ZodNumber;
|
|
689
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
+
_type: z.ZodLiteral<"float">;
|
|
691
|
+
value: z.ZodNumber;
|
|
692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
693
|
+
_type: z.ZodLiteral<"boolean">;
|
|
694
|
+
value: z.ZodBoolean;
|
|
695
|
+
}, z.core.$strip>], "_type">>;
|
|
577
696
|
}, z.core.$strip>, z.ZodObject<{
|
|
578
697
|
_type: z.ZodLiteral<"array">;
|
|
579
698
|
nullable: z.ZodBoolean;
|
|
580
|
-
defaultValue: z.
|
|
699
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodArray<z.ZodInt>, z.ZodArray<z.ZodFloat32>, z.ZodArray<z.ZodBoolean>]>>;
|
|
581
700
|
type: z.ZodDiscriminatedUnion<[typeof import("./shared.js").inputLiteralSpecSchema, typeof import("./shared.js").inputArraySpecSchema]>;
|
|
582
701
|
}, z.core.$strip>], "_type">;
|
|
583
702
|
}, z.core.$strip>>;
|