@uns-kit/core 3.0.5 → 3.0.7
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/MIGRATIONS.md +26 -3
- package/README.md +7 -7
- package/dist/config/project.config.extension.d.ts +1 -1
- package/dist/config/project.config.extension.d.ts.map +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +29 -30
- package/dist/logger.js.map +1 -1
- package/dist/tools/generate-config-schema.js +67 -11
- package/dist/tools/generate-config-schema.js.map +1 -1
- package/dist/uns/uns-attributes.d.ts +2 -2
- package/dist/uns/uns-interfaces.d.ts +5 -1
- package/dist/uns/uns-interfaces.d.ts.map +1 -1
- package/dist/uns/uns-interfaces.js.map +1 -1
- package/dist/uns-config/config-schema.d.ts +405 -5
- package/dist/uns-config/config-schema.d.ts.map +1 -1
- package/dist/uns-config/host-placeholders.d.ts +14 -98
- package/dist/uns-config/host-placeholders.d.ts.map +1 -1
- package/dist/uns-config/schema-tolls.d.ts +1 -2
- package/dist/uns-config/schema-tolls.d.ts.map +1 -1
- package/dist/uns-config/schema-tolls.js +2 -4
- package/dist/uns-config/schema-tolls.js.map +1 -1
- package/dist/uns-config/schema-tools.d.ts +6 -1
- package/dist/uns-config/schema-tools.d.ts.map +1 -1
- package/dist/uns-config/schema-tools.js +7 -8
- package/dist/uns-config/schema-tools.js.map +1 -1
- package/dist/uns-config/secret-placeholders.d.ts +8 -86
- package/dist/uns-config/secret-placeholders.d.ts.map +1 -1
- package/dist/uns-config/uns-core-schema.d.ts +191 -3106
- package/dist/uns-config/uns-core-schema.d.ts.map +1 -1
- package/dist/uns-config/uns-core-schema.js +61 -68
- package/dist/uns-config/uns-core-schema.js.map +1 -1
- package/package.json +18 -19
|
@@ -2,134 +2,50 @@ import { z } from "zod";
|
|
|
2
2
|
declare const inlineHostSchema: z.ZodObject<{
|
|
3
3
|
provider: z.ZodLiteral<"inline">;
|
|
4
4
|
value: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
provider?: "inline";
|
|
7
|
-
value?: string;
|
|
8
|
-
}, {
|
|
9
|
-
provider?: "inline";
|
|
10
|
-
value?: string;
|
|
11
|
-
}>;
|
|
5
|
+
}, z.core.$strict>;
|
|
12
6
|
declare const externalHostSchema: z.ZodObject<{
|
|
13
7
|
provider: z.ZodLiteral<"external">;
|
|
14
8
|
key: z.ZodString;
|
|
15
9
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
16
10
|
default: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
provider?: "external";
|
|
19
|
-
key?: string;
|
|
20
|
-
optional?: boolean;
|
|
21
|
-
default?: string;
|
|
22
|
-
}, {
|
|
23
|
-
provider?: "external";
|
|
24
|
-
key?: string;
|
|
25
|
-
optional?: boolean;
|
|
26
|
-
default?: string;
|
|
27
|
-
}>;
|
|
11
|
+
}, z.core.$strict>;
|
|
28
12
|
declare const systemHostSchema: z.ZodObject<{
|
|
29
13
|
provider: z.ZodLiteral<"system">;
|
|
30
|
-
family: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
14
|
+
family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
31
15
|
interfaceName: z.ZodOptional<z.ZodString>;
|
|
32
16
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
33
17
|
default: z.ZodOptional<z.ZodString>;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
optional?: boolean;
|
|
37
|
-
default?: string;
|
|
38
|
-
family?: "IPv4" | "IPv6";
|
|
39
|
-
interfaceName?: string;
|
|
40
|
-
}, {
|
|
41
|
-
provider?: "system";
|
|
42
|
-
optional?: boolean;
|
|
43
|
-
default?: string;
|
|
44
|
-
family?: "IPv4" | "IPv6";
|
|
45
|
-
interfaceName?: string;
|
|
46
|
-
}>;
|
|
47
|
-
export declare const hostPlaceholderSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
export declare const hostPlaceholderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
20
|
provider: z.ZodLiteral<"inline">;
|
|
49
21
|
value: z.ZodString;
|
|
50
|
-
},
|
|
51
|
-
provider?: "inline";
|
|
52
|
-
value?: string;
|
|
53
|
-
}, {
|
|
54
|
-
provider?: "inline";
|
|
55
|
-
value?: string;
|
|
56
|
-
}>, z.ZodObject<{
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
23
|
provider: z.ZodLiteral<"external">;
|
|
58
24
|
key: z.ZodString;
|
|
59
25
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
60
26
|
default: z.ZodOptional<z.ZodString>;
|
|
61
|
-
},
|
|
62
|
-
provider?: "external";
|
|
63
|
-
key?: string;
|
|
64
|
-
optional?: boolean;
|
|
65
|
-
default?: string;
|
|
66
|
-
}, {
|
|
67
|
-
provider?: "external";
|
|
68
|
-
key?: string;
|
|
69
|
-
optional?: boolean;
|
|
70
|
-
default?: string;
|
|
71
|
-
}>, z.ZodObject<{
|
|
27
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
28
|
provider: z.ZodLiteral<"system">;
|
|
73
|
-
family: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
29
|
+
family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
74
30
|
interfaceName: z.ZodOptional<z.ZodString>;
|
|
75
31
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
76
32
|
default: z.ZodOptional<z.ZodString>;
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
optional?: boolean;
|
|
80
|
-
default?: string;
|
|
81
|
-
family?: "IPv4" | "IPv6";
|
|
82
|
-
interfaceName?: string;
|
|
83
|
-
}, {
|
|
84
|
-
provider?: "system";
|
|
85
|
-
optional?: boolean;
|
|
86
|
-
default?: string;
|
|
87
|
-
family?: "IPv4" | "IPv6";
|
|
88
|
-
interfaceName?: string;
|
|
89
|
-
}>]>;
|
|
90
|
-
export declare const hostValueSchema: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
33
|
+
}, z.core.$strict>], "provider">;
|
|
34
|
+
export declare const hostValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
35
|
provider: z.ZodLiteral<"inline">;
|
|
92
36
|
value: z.ZodString;
|
|
93
|
-
},
|
|
94
|
-
provider?: "inline";
|
|
95
|
-
value?: string;
|
|
96
|
-
}, {
|
|
97
|
-
provider?: "inline";
|
|
98
|
-
value?: string;
|
|
99
|
-
}>, z.ZodObject<{
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
38
|
provider: z.ZodLiteral<"external">;
|
|
101
39
|
key: z.ZodString;
|
|
102
40
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
103
41
|
default: z.ZodOptional<z.ZodString>;
|
|
104
|
-
},
|
|
105
|
-
provider?: "external";
|
|
106
|
-
key?: string;
|
|
107
|
-
optional?: boolean;
|
|
108
|
-
default?: string;
|
|
109
|
-
}, {
|
|
110
|
-
provider?: "external";
|
|
111
|
-
key?: string;
|
|
112
|
-
optional?: boolean;
|
|
113
|
-
default?: string;
|
|
114
|
-
}>, z.ZodObject<{
|
|
42
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
115
43
|
provider: z.ZodLiteral<"system">;
|
|
116
|
-
family: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
44
|
+
family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
|
|
117
45
|
interfaceName: z.ZodOptional<z.ZodString>;
|
|
118
46
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
119
47
|
default: z.ZodOptional<z.ZodString>;
|
|
120
|
-
},
|
|
121
|
-
provider?: "system";
|
|
122
|
-
optional?: boolean;
|
|
123
|
-
default?: string;
|
|
124
|
-
family?: "IPv4" | "IPv6";
|
|
125
|
-
interfaceName?: string;
|
|
126
|
-
}, {
|
|
127
|
-
provider?: "system";
|
|
128
|
-
optional?: boolean;
|
|
129
|
-
default?: string;
|
|
130
|
-
family?: "IPv4" | "IPv6";
|
|
131
|
-
interfaceName?: string;
|
|
132
|
-
}>]>]>;
|
|
48
|
+
}, z.core.$strict>], "provider">]>;
|
|
133
49
|
export type HostPlaceholder = z.infer<typeof hostPlaceholderSchema>;
|
|
134
50
|
export type HostValue = z.infer<typeof hostValueSchema>;
|
|
135
51
|
export type InlineHostPlaceholder = z.infer<typeof inlineHostSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-placeholders.d.ts","sourceRoot":"","sources":["../../src/uns-config/host-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"host-placeholders.d.ts","sourceRoot":"","sources":["../../src/uns-config/host-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,gBAAgB;;;kBASyC,CAAC;AAEhE,QAAA,MAAM,kBAAkB;;;;;kBAiBmF,CAAC;AAE5G,QAAA,MAAM,gBAAgB;;;;;;kBAqB+C,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;gCAIhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;kCAM1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function composeConfigSchema<A extends z.AnyZodObject, B extends z.AnyZodObject>(a: A, b: B): z.ZodObject<A["shape"] & B["shape"]>;
|
|
1
|
+
export { composeConfigSchema } from "./schema-tools.js";
|
|
3
2
|
//# sourceMappingURL=schema-tolls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-tolls.d.ts","sourceRoot":"","sources":["../../src/uns-config/schema-tolls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-tolls.d.ts","sourceRoot":"","sources":["../../src/uns-config/schema-tolls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
//
|
|
2
|
-
export
|
|
3
|
-
return a.merge(b);
|
|
4
|
-
}
|
|
1
|
+
// Backwards-compatible export for the historical misspelled module path.
|
|
2
|
+
export { composeConfigSchema } from "./schema-tools.js";
|
|
5
3
|
//# sourceMappingURL=schema-tolls.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-tolls.js","sourceRoot":"","sources":["../../src/uns-config/schema-tolls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-tolls.js","sourceRoot":"","sources":["../../src/uns-config/schema-tolls.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["// Backwards-compatible export for the historical misspelled module path.\nexport { composeConfigSchema } from \"./schema-tools.js\";\n"]}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export
|
|
2
|
+
export type ConfigObjectSchema = z.ZodObject<z.ZodRawShape>;
|
|
3
|
+
type SchemaShape<TSchema extends ConfigObjectSchema> = TSchema extends z.ZodObject<infer TShape> ? TShape : never;
|
|
4
|
+
type MergedExtraShapes<TSchemas extends readonly ConfigObjectSchema[], TShape extends z.ZodRawShape = Record<never, never>> = TSchemas extends readonly [infer THead extends ConfigObjectSchema, ...infer TTail extends readonly ConfigObjectSchema[]] ? MergedExtraShapes<TTail, TShape & SchemaShape<THead>> : TShape;
|
|
5
|
+
export declare function composeConfigSchema(core: ConfigObjectSchema): ConfigObjectSchema;
|
|
6
|
+
export declare function composeConfigSchema<TCore extends ConfigObjectSchema, TExtras extends readonly ConfigObjectSchema[]>(core: TCore, ...extras: TExtras): z.ZodObject<SchemaShape<TCore> & MergedExtraShapes<TExtras>>;
|
|
7
|
+
export {};
|
|
3
8
|
//# sourceMappingURL=schema-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-tools.d.ts","sourceRoot":"","sources":["../../src/uns-config/schema-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schema-tools.d.ts","sourceRoot":"","sources":["../../src/uns-config/schema-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAE5D,KAAK,WAAW,CAAC,OAAO,SAAS,kBAAkB,IAAI,OAAO,SAAS,CAAC,CAAC,SAAS,CAAC,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC;AAElH,KAAK,iBAAiB,CACpB,QAAQ,SAAS,SAAS,kBAAkB,EAAE,EAC9C,MAAM,SAAS,CAAC,CAAC,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IACjD,QAAQ,SAAS,SAAS,CAAC,MAAM,KAAK,SAAS,kBAAkB,EAAE,GAAG,MAAM,KAAK,SAAS,SAAS,kBAAkB,EAAE,CAAC,GACxH,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,GACrD,MAAM,CAAC;AAMX,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,GAAG,kBAAkB,CAAC;AAClF,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,kBAAkB,EAAE,OAAO,SAAS,SAAS,kBAAkB,EAAE,EACjH,IAAI,EAAE,KAAK,EACX,GAAG,MAAM,EAAE,OAAO,GACjB,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const shape = obj?._def?.shape();
|
|
4
|
-
return Object.keys(shape ?? {});
|
|
1
|
+
function shapeKeys(schema) {
|
|
2
|
+
return Object.keys(schema.shape);
|
|
5
3
|
}
|
|
6
|
-
// Function in camelCase is fine
|
|
7
4
|
export function composeConfigSchema(core, ...extras) {
|
|
8
5
|
const coreKeys = new Set(shapeKeys(core));
|
|
6
|
+
let composed = core;
|
|
9
7
|
for (const ext of extras) {
|
|
10
8
|
const keys = shapeKeys(ext);
|
|
11
|
-
const overlaps = keys.filter(k => coreKeys.has(k));
|
|
9
|
+
const overlaps = keys.filter((k) => coreKeys.has(k));
|
|
12
10
|
if (overlaps.length) {
|
|
13
11
|
throw new Error(`Project extras overlap UNS core keys: ${overlaps.join(", ")}`);
|
|
14
12
|
}
|
|
15
|
-
keys.forEach(k => coreKeys.add(k));
|
|
13
|
+
keys.forEach((k) => coreKeys.add(k));
|
|
14
|
+
composed = composed.extend(ext.shape);
|
|
16
15
|
}
|
|
17
|
-
return
|
|
16
|
+
return composed;
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=schema-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-tools.js","sourceRoot":"","sources":["../../src/uns-config/schema-tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema-tools.js","sourceRoot":"","sources":["../../src/uns-config/schema-tools.ts"],"names":[],"mappings":"AAaA,SAAS,SAAS,CAAC,MAA0B;IAC3C,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAOD,MAAM,UAAU,mBAAmB,CAAC,IAAwB,EAAE,GAAG,MAA4B;IAC3F,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,IAAI,QAAQ,GAAG,IAAI,CAAC;IAEpB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACrD,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClF,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACrC,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { z } from \"zod\";\n\nexport type ConfigObjectSchema = z.ZodObject<z.ZodRawShape>;\n\ntype SchemaShape<TSchema extends ConfigObjectSchema> = TSchema extends z.ZodObject<infer TShape> ? TShape : never;\n\ntype MergedExtraShapes<\n TSchemas extends readonly ConfigObjectSchema[],\n TShape extends z.ZodRawShape = Record<never, never>,\n> = TSchemas extends readonly [infer THead extends ConfigObjectSchema, ...infer TTail extends readonly ConfigObjectSchema[]]\n ? MergedExtraShapes<TTail, TShape & SchemaShape<THead>>\n : TShape;\n\nfunction shapeKeys(schema: ConfigObjectSchema): string[] {\n return Object.keys(schema.shape);\n}\n\nexport function composeConfigSchema(core: ConfigObjectSchema): ConfigObjectSchema;\nexport function composeConfigSchema<TCore extends ConfigObjectSchema, TExtras extends readonly ConfigObjectSchema[]>(\n core: TCore,\n ...extras: TExtras\n): z.ZodObject<SchemaShape<TCore> & MergedExtraShapes<TExtras>>;\nexport function composeConfigSchema(core: ConfigObjectSchema, ...extras: ConfigObjectSchema[]): ConfigObjectSchema {\n const coreKeys = new Set(shapeKeys(core));\n let composed = core;\n\n for (const ext of extras) {\n const keys = shapeKeys(ext);\n const overlaps = keys.filter((k) => coreKeys.has(k));\n if (overlaps.length) {\n throw new Error(`Project extras overlap UNS core keys: ${overlaps.join(\", \")}`);\n }\n keys.forEach((k) => coreKeys.add(k));\n composed = composed.extend(ext.shape);\n }\n\n return composed;\n}\n"]}
|
|
@@ -4,17 +4,7 @@ declare const envSecretSchema: z.ZodObject<{
|
|
|
4
4
|
key: z.ZodString;
|
|
5
5
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
default: z.ZodOptional<z.ZodString>;
|
|
7
|
-
},
|
|
8
|
-
provider?: "env";
|
|
9
|
-
key?: string;
|
|
10
|
-
optional?: boolean;
|
|
11
|
-
default?: string;
|
|
12
|
-
}, {
|
|
13
|
-
provider?: "env";
|
|
14
|
-
key?: string;
|
|
15
|
-
optional?: boolean;
|
|
16
|
-
default?: string;
|
|
17
|
-
}>;
|
|
7
|
+
}, z.core.$strict>;
|
|
18
8
|
declare const infisicalSecretSchema: z.ZodObject<{
|
|
19
9
|
provider: z.ZodLiteral<"infisical">;
|
|
20
10
|
path: z.ZodString;
|
|
@@ -23,39 +13,13 @@ declare const infisicalSecretSchema: z.ZodObject<{
|
|
|
23
13
|
environment: z.ZodOptional<z.ZodString>;
|
|
24
14
|
projectId: z.ZodOptional<z.ZodString>;
|
|
25
15
|
default: z.ZodOptional<z.ZodString>;
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
key?: string;
|
|
29
|
-
optional?: boolean;
|
|
30
|
-
default?: string;
|
|
31
|
-
path?: string;
|
|
32
|
-
environment?: string;
|
|
33
|
-
projectId?: string;
|
|
34
|
-
}, {
|
|
35
|
-
provider?: "infisical";
|
|
36
|
-
key?: string;
|
|
37
|
-
optional?: boolean;
|
|
38
|
-
default?: string;
|
|
39
|
-
path?: string;
|
|
40
|
-
environment?: string;
|
|
41
|
-
projectId?: string;
|
|
42
|
-
}>;
|
|
43
|
-
export declare const secretPlaceholderSchema: z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export declare const secretPlaceholderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
18
|
provider: z.ZodLiteral<"env">;
|
|
45
19
|
key: z.ZodString;
|
|
46
20
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
47
21
|
default: z.ZodOptional<z.ZodString>;
|
|
48
|
-
},
|
|
49
|
-
provider?: "env";
|
|
50
|
-
key?: string;
|
|
51
|
-
optional?: boolean;
|
|
52
|
-
default?: string;
|
|
53
|
-
}, {
|
|
54
|
-
provider?: "env";
|
|
55
|
-
key?: string;
|
|
56
|
-
optional?: boolean;
|
|
57
|
-
default?: string;
|
|
58
|
-
}>, z.ZodObject<{
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
59
23
|
provider: z.ZodLiteral<"infisical">;
|
|
60
24
|
path: z.ZodString;
|
|
61
25
|
key: z.ZodString;
|
|
@@ -63,39 +27,13 @@ export declare const secretPlaceholderSchema: z.ZodDiscriminatedUnion<"provider"
|
|
|
63
27
|
environment: z.ZodOptional<z.ZodString>;
|
|
64
28
|
projectId: z.ZodOptional<z.ZodString>;
|
|
65
29
|
default: z.ZodOptional<z.ZodString>;
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
key?: string;
|
|
69
|
-
optional?: boolean;
|
|
70
|
-
default?: string;
|
|
71
|
-
path?: string;
|
|
72
|
-
environment?: string;
|
|
73
|
-
projectId?: string;
|
|
74
|
-
}, {
|
|
75
|
-
provider?: "infisical";
|
|
76
|
-
key?: string;
|
|
77
|
-
optional?: boolean;
|
|
78
|
-
default?: string;
|
|
79
|
-
path?: string;
|
|
80
|
-
environment?: string;
|
|
81
|
-
projectId?: string;
|
|
82
|
-
}>]>;
|
|
83
|
-
export declare const secretValueSchema: z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"provider", [z.ZodObject<{
|
|
30
|
+
}, z.core.$strict>], "provider">;
|
|
31
|
+
export declare const secretValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
32
|
provider: z.ZodLiteral<"env">;
|
|
85
33
|
key: z.ZodString;
|
|
86
34
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
87
35
|
default: z.ZodOptional<z.ZodString>;
|
|
88
|
-
},
|
|
89
|
-
provider?: "env";
|
|
90
|
-
key?: string;
|
|
91
|
-
optional?: boolean;
|
|
92
|
-
default?: string;
|
|
93
|
-
}, {
|
|
94
|
-
provider?: "env";
|
|
95
|
-
key?: string;
|
|
96
|
-
optional?: boolean;
|
|
97
|
-
default?: string;
|
|
98
|
-
}>, z.ZodObject<{
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
37
|
provider: z.ZodLiteral<"infisical">;
|
|
100
38
|
path: z.ZodString;
|
|
101
39
|
key: z.ZodString;
|
|
@@ -103,23 +41,7 @@ export declare const secretValueSchema: z.ZodUnion<[z.ZodString, z.ZodDiscrimina
|
|
|
103
41
|
environment: z.ZodOptional<z.ZodString>;
|
|
104
42
|
projectId: z.ZodOptional<z.ZodString>;
|
|
105
43
|
default: z.ZodOptional<z.ZodString>;
|
|
106
|
-
},
|
|
107
|
-
provider?: "infisical";
|
|
108
|
-
key?: string;
|
|
109
|
-
optional?: boolean;
|
|
110
|
-
default?: string;
|
|
111
|
-
path?: string;
|
|
112
|
-
environment?: string;
|
|
113
|
-
projectId?: string;
|
|
114
|
-
}, {
|
|
115
|
-
provider?: "infisical";
|
|
116
|
-
key?: string;
|
|
117
|
-
optional?: boolean;
|
|
118
|
-
default?: string;
|
|
119
|
-
path?: string;
|
|
120
|
-
environment?: string;
|
|
121
|
-
projectId?: string;
|
|
122
|
-
}>]>]>;
|
|
44
|
+
}, z.core.$strict>], "provider">]>;
|
|
123
45
|
export type SecretPlaceholder = z.infer<typeof secretPlaceholderSchema>;
|
|
124
46
|
export type SecretValue = z.infer<typeof secretValueSchema>;
|
|
125
47
|
export type EnvSecretPlaceholder = z.infer<typeof envSecretSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-placeholders.d.ts","sourceRoot":"","sources":["../../src/uns-config/secret-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"secret-placeholders.d.ts","sourceRoot":"","sources":["../../src/uns-config/secret-placeholders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,QAAA,MAAM,eAAe;;;;;kBAiBuC,CAAC;AAE7D,QAAA,MAAM,qBAAqB;;;;;;;;kBA6B+B,CAAC;AAE3D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;gCAGlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;kCAG5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACnE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE/E,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAE9E"}
|