@uns-kit/core 3.0.6 → 3.0.9

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.
Files changed (57) hide show
  1. package/MIGRATIONS.md +57 -3
  2. package/dist/config/project.config.extension.d.ts +1 -1
  3. package/dist/config/project.config.extension.d.ts.map +1 -1
  4. package/dist/examples/datahub-client.js +6 -7
  5. package/dist/examples/datahub-client.js.map +1 -1
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/logger.d.ts.map +1 -1
  11. package/dist/logger.js +29 -30
  12. package/dist/logger.js.map +1 -1
  13. package/dist/tools/auth/auth-client.d.ts +2 -0
  14. package/dist/tools/auth/auth-client.d.ts.map +1 -1
  15. package/dist/tools/auth/auth-client.js +9 -7
  16. package/dist/tools/auth/auth-client.js.map +1 -1
  17. package/dist/tools/auth/index.d.ts +2 -0
  18. package/dist/tools/auth/index.d.ts.map +1 -1
  19. package/dist/tools/auth/index.js +1 -0
  20. package/dist/tools/auth/index.js.map +1 -1
  21. package/dist/tools/auth/service-token-provider.d.ts +44 -0
  22. package/dist/tools/auth/service-token-provider.d.ts.map +1 -0
  23. package/dist/tools/auth/service-token-provider.js +54 -0
  24. package/dist/tools/auth/service-token-provider.js.map +1 -0
  25. package/dist/tools/datahub/datahub-client.d.ts +4 -0
  26. package/dist/tools/datahub/datahub-client.d.ts.map +1 -1
  27. package/dist/tools/datahub/datahub-client.js +5 -0
  28. package/dist/tools/datahub/datahub-client.js.map +1 -1
  29. package/dist/tools/generate-config-schema.js +67 -11
  30. package/dist/tools/generate-config-schema.js.map +1 -1
  31. package/dist/uns/uns-attributes.d.ts +2 -2
  32. package/dist/uns/uns-interfaces.d.ts +5 -1
  33. package/dist/uns/uns-interfaces.d.ts.map +1 -1
  34. package/dist/uns/uns-interfaces.js.map +1 -1
  35. package/dist/uns-config/config-schema.d.ts +405 -5
  36. package/dist/uns-config/config-schema.d.ts.map +1 -1
  37. package/dist/uns-config/host-placeholders.d.ts +14 -98
  38. package/dist/uns-config/host-placeholders.d.ts.map +1 -1
  39. package/dist/uns-config/mqtt-channel.d.ts +18 -0
  40. package/dist/uns-config/mqtt-channel.d.ts.map +1 -0
  41. package/dist/uns-config/mqtt-channel.js +75 -0
  42. package/dist/uns-config/mqtt-channel.js.map +1 -0
  43. package/dist/uns-config/schema-tolls.d.ts +1 -2
  44. package/dist/uns-config/schema-tolls.d.ts.map +1 -1
  45. package/dist/uns-config/schema-tolls.js +2 -4
  46. package/dist/uns-config/schema-tolls.js.map +1 -1
  47. package/dist/uns-config/schema-tools.d.ts +6 -1
  48. package/dist/uns-config/schema-tools.d.ts.map +1 -1
  49. package/dist/uns-config/schema-tools.js +7 -8
  50. package/dist/uns-config/schema-tools.js.map +1 -1
  51. package/dist/uns-config/secret-placeholders.d.ts +8 -86
  52. package/dist/uns-config/secret-placeholders.d.ts.map +1 -1
  53. package/dist/uns-config/uns-core-schema.d.ts +191 -3106
  54. package/dist/uns-config/uns-core-schema.d.ts.map +1 -1
  55. package/dist/uns-config/uns-core-schema.js +61 -68
  56. package/dist/uns-config/uns-core-schema.js.map +1 -1
  57. package/package.json +3 -4
@@ -1,8 +1,408 @@
1
1
  import { z } from "zod";
2
- export declare const baseSchema: z.ZodObject<any, "strict", any, {
3
- [x: string]: any;
4
- }, {
5
- [x: string]: any;
6
- }>;
2
+ export declare const baseSchema: z.ZodObject<{
3
+ uns: z.ZodObject<{
4
+ graphql: z.ZodString;
5
+ rest: z.ZodString;
6
+ token: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
7
+ provider: z.ZodLiteral<"env">;
8
+ key: z.ZodString;
9
+ optional: z.ZodOptional<z.ZodBoolean>;
10
+ default: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strict>, z.ZodObject<{
12
+ provider: z.ZodLiteral<"infisical">;
13
+ path: z.ZodString;
14
+ key: z.ZodString;
15
+ optional: z.ZodOptional<z.ZodBoolean>;
16
+ environment: z.ZodOptional<z.ZodString>;
17
+ projectId: z.ZodOptional<z.ZodString>;
18
+ default: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strict>], "provider">]>>;
20
+ email: z.ZodOptional<z.ZodString>;
21
+ password: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
22
+ provider: z.ZodLiteral<"env">;
23
+ key: z.ZodString;
24
+ optional: z.ZodOptional<z.ZodBoolean>;
25
+ default: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ provider: z.ZodLiteral<"infisical">;
28
+ path: z.ZodString;
29
+ key: z.ZodString;
30
+ optional: z.ZodOptional<z.ZodBoolean>;
31
+ environment: z.ZodOptional<z.ZodString>;
32
+ projectId: z.ZodOptional<z.ZodString>;
33
+ default: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$strict>], "provider">]>>;
35
+ instanceMode: z.ZodDefault<z.ZodEnum<{
36
+ wait: "wait";
37
+ force: "force";
38
+ handover: "handover";
39
+ }>>;
40
+ processName: z.ZodString;
41
+ handover: z.ZodDefault<z.ZodBoolean>;
42
+ supervisor: z.ZodOptional<z.ZodObject<{
43
+ enabled: z.ZodDefault<z.ZodBoolean>;
44
+ restartOnExit: z.ZodDefault<z.ZodBoolean>;
45
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
46
+ restartOnUnhealthy: z.ZodDefault<z.ZodBoolean>;
47
+ unhealthyAfterMs: z.ZodDefault<z.ZodNumber>;
48
+ restartCooldownMs: z.ZodDefault<z.ZodNumber>;
49
+ }, z.core.$strict>>;
50
+ jwksWellKnownUrl: z.ZodOptional<z.ZodString>;
51
+ kidWellKnownUrl: z.ZodOptional<z.ZodString>;
52
+ env: z.ZodDefault<z.ZodEnum<{
53
+ dev: "dev";
54
+ staging: "staging";
55
+ test: "test";
56
+ prod: "prod";
57
+ }>>;
58
+ }, z.core.$strict>;
59
+ logging: z.ZodOptional<z.ZodObject<{
60
+ adapter: z.ZodDefault<z.ZodString>;
61
+ host: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ provider: z.ZodLiteral<"inline">;
63
+ value: z.ZodString;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ provider: z.ZodLiteral<"external">;
66
+ key: z.ZodString;
67
+ optional: z.ZodOptional<z.ZodBoolean>;
68
+ default: z.ZodOptional<z.ZodString>;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ provider: z.ZodLiteral<"system">;
71
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
72
+ interfaceName: z.ZodOptional<z.ZodString>;
73
+ optional: z.ZodOptional<z.ZodBoolean>;
74
+ default: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strict>], "provider">]>;
76
+ port: z.ZodDefault<z.ZodNumber>;
77
+ level: z.ZodDefault<z.ZodEnum<{
78
+ error: "error";
79
+ warn: "warn";
80
+ info: "info";
81
+ http: "http";
82
+ verbose: "verbose";
83
+ debug: "debug";
84
+ silly: "silly";
85
+ }>>;
86
+ }, z.core.$strict>>;
87
+ input: z.ZodOptional<z.ZodObject<{
88
+ host: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
89
+ provider: z.ZodLiteral<"inline">;
90
+ value: z.ZodString;
91
+ }, z.core.$strict>, z.ZodObject<{
92
+ provider: z.ZodLiteral<"external">;
93
+ key: z.ZodString;
94
+ optional: z.ZodOptional<z.ZodBoolean>;
95
+ default: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ provider: z.ZodLiteral<"system">;
98
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
99
+ interfaceName: z.ZodOptional<z.ZodString>;
100
+ optional: z.ZodOptional<z.ZodBoolean>;
101
+ default: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strict>], "provider">]>>;
103
+ hosts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
104
+ provider: z.ZodLiteral<"inline">;
105
+ value: z.ZodString;
106
+ }, z.core.$strict>, z.ZodObject<{
107
+ provider: z.ZodLiteral<"external">;
108
+ key: z.ZodString;
109
+ optional: z.ZodOptional<z.ZodBoolean>;
110
+ default: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ provider: z.ZodLiteral<"system">;
113
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
114
+ interfaceName: z.ZodOptional<z.ZodString>;
115
+ optional: z.ZodOptional<z.ZodBoolean>;
116
+ default: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strict>], "provider">]>>>;
118
+ servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ host: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
120
+ provider: z.ZodLiteral<"inline">;
121
+ value: z.ZodString;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ provider: z.ZodLiteral<"external">;
124
+ key: z.ZodString;
125
+ optional: z.ZodOptional<z.ZodBoolean>;
126
+ default: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strict>, z.ZodObject<{
128
+ provider: z.ZodLiteral<"system">;
129
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
130
+ interfaceName: z.ZodOptional<z.ZodString>;
131
+ optional: z.ZodOptional<z.ZodBoolean>;
132
+ default: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strict>], "provider">]>;
134
+ port: z.ZodOptional<z.ZodNumber>;
135
+ protocol: z.ZodOptional<z.ZodEnum<{
136
+ mqtt: "mqtt";
137
+ mqtts: "mqtts";
138
+ ws: "ws";
139
+ wss: "wss";
140
+ tcp: "tcp";
141
+ ssl: "ssl";
142
+ }>>;
143
+ }, z.core.$strict>>>;
144
+ port: z.ZodOptional<z.ZodNumber>;
145
+ protocol: z.ZodOptional<z.ZodEnum<{
146
+ mqtt: "mqtt";
147
+ mqtts: "mqtts";
148
+ ws: "ws";
149
+ wss: "wss";
150
+ tcp: "tcp";
151
+ ssl: "ssl";
152
+ }>>;
153
+ username: z.ZodOptional<z.ZodString>;
154
+ password: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ provider: z.ZodLiteral<"env">;
156
+ key: z.ZodString;
157
+ optional: z.ZodOptional<z.ZodBoolean>;
158
+ default: z.ZodOptional<z.ZodString>;
159
+ }, z.core.$strict>, z.ZodObject<{
160
+ provider: z.ZodLiteral<"infisical">;
161
+ path: z.ZodString;
162
+ key: z.ZodString;
163
+ optional: z.ZodOptional<z.ZodBoolean>;
164
+ environment: z.ZodOptional<z.ZodString>;
165
+ projectId: z.ZodOptional<z.ZodString>;
166
+ default: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strict>], "provider">]>>;
168
+ clientId: z.ZodOptional<z.ZodString>;
169
+ clean: z.ZodOptional<z.ZodBoolean>;
170
+ keepalive: z.ZodOptional<z.ZodNumber>;
171
+ connectTimeout: z.ZodOptional<z.ZodNumber>;
172
+ reconnectPeriod: z.ZodOptional<z.ZodNumber>;
173
+ reconnectOnConnackError: z.ZodOptional<z.ZodBoolean>;
174
+ resubscribe: z.ZodOptional<z.ZodBoolean>;
175
+ queueQoSZero: z.ZodOptional<z.ZodBoolean>;
176
+ rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
177
+ properties: z.ZodOptional<z.ZodObject<{
178
+ sessionExpiryInterval: z.ZodOptional<z.ZodNumber>;
179
+ receiveMaximum: z.ZodOptional<z.ZodNumber>;
180
+ maximumPacketSize: z.ZodOptional<z.ZodNumber>;
181
+ topicAliasMaximum: z.ZodOptional<z.ZodNumber>;
182
+ requestResponseInformation: z.ZodOptional<z.ZodBoolean>;
183
+ requestProblemInformation: z.ZodOptional<z.ZodBoolean>;
184
+ userProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
185
+ }, z.core.$strict>>;
186
+ ca: z.ZodOptional<z.ZodString>;
187
+ cert: z.ZodOptional<z.ZodString>;
188
+ key: z.ZodOptional<z.ZodString>;
189
+ servername: z.ZodOptional<z.ZodString>;
190
+ }, z.core.$strict>>;
191
+ output: z.ZodOptional<z.ZodObject<{
192
+ host: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
193
+ provider: z.ZodLiteral<"inline">;
194
+ value: z.ZodString;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ provider: z.ZodLiteral<"external">;
197
+ key: z.ZodString;
198
+ optional: z.ZodOptional<z.ZodBoolean>;
199
+ default: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>, z.ZodObject<{
201
+ provider: z.ZodLiteral<"system">;
202
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
203
+ interfaceName: z.ZodOptional<z.ZodString>;
204
+ optional: z.ZodOptional<z.ZodBoolean>;
205
+ default: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strict>], "provider">]>>;
207
+ hosts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
208
+ provider: z.ZodLiteral<"inline">;
209
+ value: z.ZodString;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ provider: z.ZodLiteral<"external">;
212
+ key: z.ZodString;
213
+ optional: z.ZodOptional<z.ZodBoolean>;
214
+ default: z.ZodOptional<z.ZodString>;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ provider: z.ZodLiteral<"system">;
217
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
218
+ interfaceName: z.ZodOptional<z.ZodString>;
219
+ optional: z.ZodOptional<z.ZodBoolean>;
220
+ default: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strict>], "provider">]>>>;
222
+ servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
223
+ host: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
224
+ provider: z.ZodLiteral<"inline">;
225
+ value: z.ZodString;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ provider: z.ZodLiteral<"external">;
228
+ key: z.ZodString;
229
+ optional: z.ZodOptional<z.ZodBoolean>;
230
+ default: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strict>, z.ZodObject<{
232
+ provider: z.ZodLiteral<"system">;
233
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
234
+ interfaceName: z.ZodOptional<z.ZodString>;
235
+ optional: z.ZodOptional<z.ZodBoolean>;
236
+ default: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$strict>], "provider">]>;
238
+ port: z.ZodOptional<z.ZodNumber>;
239
+ protocol: z.ZodOptional<z.ZodEnum<{
240
+ mqtt: "mqtt";
241
+ mqtts: "mqtts";
242
+ ws: "ws";
243
+ wss: "wss";
244
+ tcp: "tcp";
245
+ ssl: "ssl";
246
+ }>>;
247
+ }, z.core.$strict>>>;
248
+ port: z.ZodOptional<z.ZodNumber>;
249
+ protocol: z.ZodOptional<z.ZodEnum<{
250
+ mqtt: "mqtt";
251
+ mqtts: "mqtts";
252
+ ws: "ws";
253
+ wss: "wss";
254
+ tcp: "tcp";
255
+ ssl: "ssl";
256
+ }>>;
257
+ username: z.ZodOptional<z.ZodString>;
258
+ password: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ provider: z.ZodLiteral<"env">;
260
+ key: z.ZodString;
261
+ optional: z.ZodOptional<z.ZodBoolean>;
262
+ default: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strict>, z.ZodObject<{
264
+ provider: z.ZodLiteral<"infisical">;
265
+ path: z.ZodString;
266
+ key: z.ZodString;
267
+ optional: z.ZodOptional<z.ZodBoolean>;
268
+ environment: z.ZodOptional<z.ZodString>;
269
+ projectId: z.ZodOptional<z.ZodString>;
270
+ default: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>], "provider">]>>;
272
+ clientId: z.ZodOptional<z.ZodString>;
273
+ clean: z.ZodOptional<z.ZodBoolean>;
274
+ keepalive: z.ZodOptional<z.ZodNumber>;
275
+ connectTimeout: z.ZodOptional<z.ZodNumber>;
276
+ reconnectPeriod: z.ZodOptional<z.ZodNumber>;
277
+ reconnectOnConnackError: z.ZodOptional<z.ZodBoolean>;
278
+ resubscribe: z.ZodOptional<z.ZodBoolean>;
279
+ queueQoSZero: z.ZodOptional<z.ZodBoolean>;
280
+ rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
281
+ properties: z.ZodOptional<z.ZodObject<{
282
+ sessionExpiryInterval: z.ZodOptional<z.ZodNumber>;
283
+ receiveMaximum: z.ZodOptional<z.ZodNumber>;
284
+ maximumPacketSize: z.ZodOptional<z.ZodNumber>;
285
+ topicAliasMaximum: z.ZodOptional<z.ZodNumber>;
286
+ requestResponseInformation: z.ZodOptional<z.ZodBoolean>;
287
+ requestProblemInformation: z.ZodOptional<z.ZodBoolean>;
288
+ userProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
+ }, z.core.$strict>>;
290
+ ca: z.ZodOptional<z.ZodString>;
291
+ cert: z.ZodOptional<z.ZodString>;
292
+ key: z.ZodOptional<z.ZodString>;
293
+ servername: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strict>>;
295
+ infra: z.ZodObject<{
296
+ host: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
297
+ provider: z.ZodLiteral<"inline">;
298
+ value: z.ZodString;
299
+ }, z.core.$strict>, z.ZodObject<{
300
+ provider: z.ZodLiteral<"external">;
301
+ key: z.ZodString;
302
+ optional: z.ZodOptional<z.ZodBoolean>;
303
+ default: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ provider: z.ZodLiteral<"system">;
306
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
307
+ interfaceName: z.ZodOptional<z.ZodString>;
308
+ optional: z.ZodOptional<z.ZodBoolean>;
309
+ default: z.ZodOptional<z.ZodString>;
310
+ }, z.core.$strict>], "provider">]>>;
311
+ hosts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
312
+ provider: z.ZodLiteral<"inline">;
313
+ value: z.ZodString;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ provider: z.ZodLiteral<"external">;
316
+ key: z.ZodString;
317
+ optional: z.ZodOptional<z.ZodBoolean>;
318
+ default: z.ZodOptional<z.ZodString>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ provider: z.ZodLiteral<"system">;
321
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
322
+ interfaceName: z.ZodOptional<z.ZodString>;
323
+ optional: z.ZodOptional<z.ZodBoolean>;
324
+ default: z.ZodOptional<z.ZodString>;
325
+ }, z.core.$strict>], "provider">]>>>;
326
+ servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ host: z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
328
+ provider: z.ZodLiteral<"inline">;
329
+ value: z.ZodString;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ provider: z.ZodLiteral<"external">;
332
+ key: z.ZodString;
333
+ optional: z.ZodOptional<z.ZodBoolean>;
334
+ default: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strict>, z.ZodObject<{
336
+ provider: z.ZodLiteral<"system">;
337
+ family: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"IPv4">, z.ZodLiteral<"IPv6">]>>;
338
+ interfaceName: z.ZodOptional<z.ZodString>;
339
+ optional: z.ZodOptional<z.ZodBoolean>;
340
+ default: z.ZodOptional<z.ZodString>;
341
+ }, z.core.$strict>], "provider">]>;
342
+ port: z.ZodOptional<z.ZodNumber>;
343
+ protocol: z.ZodOptional<z.ZodEnum<{
344
+ mqtt: "mqtt";
345
+ mqtts: "mqtts";
346
+ ws: "ws";
347
+ wss: "wss";
348
+ tcp: "tcp";
349
+ ssl: "ssl";
350
+ }>>;
351
+ }, z.core.$strict>>>;
352
+ port: z.ZodOptional<z.ZodNumber>;
353
+ protocol: z.ZodOptional<z.ZodEnum<{
354
+ mqtt: "mqtt";
355
+ mqtts: "mqtts";
356
+ ws: "ws";
357
+ wss: "wss";
358
+ tcp: "tcp";
359
+ ssl: "ssl";
360
+ }>>;
361
+ username: z.ZodOptional<z.ZodString>;
362
+ password: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
363
+ provider: z.ZodLiteral<"env">;
364
+ key: z.ZodString;
365
+ optional: z.ZodOptional<z.ZodBoolean>;
366
+ default: z.ZodOptional<z.ZodString>;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ provider: z.ZodLiteral<"infisical">;
369
+ path: z.ZodString;
370
+ key: z.ZodString;
371
+ optional: z.ZodOptional<z.ZodBoolean>;
372
+ environment: z.ZodOptional<z.ZodString>;
373
+ projectId: z.ZodOptional<z.ZodString>;
374
+ default: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strict>], "provider">]>>;
376
+ clientId: z.ZodOptional<z.ZodString>;
377
+ clean: z.ZodOptional<z.ZodBoolean>;
378
+ keepalive: z.ZodOptional<z.ZodNumber>;
379
+ connectTimeout: z.ZodOptional<z.ZodNumber>;
380
+ reconnectPeriod: z.ZodOptional<z.ZodNumber>;
381
+ reconnectOnConnackError: z.ZodOptional<z.ZodBoolean>;
382
+ resubscribe: z.ZodOptional<z.ZodBoolean>;
383
+ queueQoSZero: z.ZodOptional<z.ZodBoolean>;
384
+ rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
385
+ properties: z.ZodOptional<z.ZodObject<{
386
+ sessionExpiryInterval: z.ZodOptional<z.ZodNumber>;
387
+ receiveMaximum: z.ZodOptional<z.ZodNumber>;
388
+ maximumPacketSize: z.ZodOptional<z.ZodNumber>;
389
+ topicAliasMaximum: z.ZodOptional<z.ZodNumber>;
390
+ requestResponseInformation: z.ZodOptional<z.ZodBoolean>;
391
+ requestProblemInformation: z.ZodOptional<z.ZodBoolean>;
392
+ userProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
393
+ }, z.core.$strict>>;
394
+ ca: z.ZodOptional<z.ZodString>;
395
+ cert: z.ZodOptional<z.ZodString>;
396
+ key: z.ZodOptional<z.ZodString>;
397
+ servername: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strict>;
399
+ devops: z.ZodOptional<z.ZodObject<{
400
+ provider: z.ZodDefault<z.ZodEnum<{
401
+ "azure-devops": "azure-devops";
402
+ }>>;
403
+ organization: z.ZodString;
404
+ project: z.ZodOptional<z.ZodString>;
405
+ }, z.core.$strict>>;
406
+ } & Record<never, never> & {}, z.core.$strict>;
7
407
  export type AppConfigFromZod = z.infer<typeof baseSchema>;
8
408
  //# sourceMappingURL=config-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/uns-config/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,UAAU;;;;EAAmE,CAAC;AAG3F,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/uns-config/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAAmE,CAAC;AAG3F,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
35
- provider?: "system";
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
78
- provider?: "system";
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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
- }, "strict", z.ZodTypeAny, {
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;;;;;;;;;EASyC,CAAC;AAEhE,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;EAiBmF,CAAC;AAE5G,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAqB+C,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAM1B,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
+ {"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"}
@@ -0,0 +1,18 @@
1
+ import type { IMqttConnectProperties, IMqttParameters, IMqttServerConfig, MqttProtocol } from "../uns-mqtt/mqtt-interfaces.js";
2
+ /** A config-file MQTT channel before its optional override is merged with infra. */
3
+ export type MqttChannelConfig = Pick<IMqttParameters, "username" | "password" | "clientId" | "hosts" | "servers" | "port" | "protocol" | "keepalive" | "clean" | "connectTimeout" | "reconnectPeriod" | "reconnectOnConnackError" | "resubscribe" | "queueQoSZero" | "rejectUnauthorized" | "properties" | "ca" | "cert" | "key" | "servername"> & {
4
+ host?: string;
5
+ };
6
+ export type ResolvedMqttChannel = MqttChannelConfig & {
7
+ host: string;
8
+ };
9
+ /**
10
+ * Resolves `input` or `output` as an overlay on the full `infra` MQTT
11
+ * connection. This preserves credentials, TLS, reconnect behaviour, and
12
+ * multi-host configuration when a service only needs to override one field.
13
+ */
14
+ export declare function resolveMqttChannel(infra: MqttChannelConfig, override?: MqttChannelConfig): ResolvedMqttChannel;
15
+ /** Returns the connection options accepted by UnsProxyProcess/UnsMqttProxy. */
16
+ export declare function mqttChannelParameters(channel: ResolvedMqttChannel): IMqttParameters;
17
+ export type { IMqttConnectProperties, IMqttServerConfig, MqttProtocol };
18
+ //# sourceMappingURL=mqtt-channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mqtt-channel.d.ts","sourceRoot":"","sources":["../../src/uns-config/mqtt-channel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACb,MAAM,gCAAgC,CAAC;AAExC,oFAAoF;AACpF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,eAAe,EACb,UAAU,GACV,UAAU,GACV,UAAU,GACV,OAAO,GACP,SAAS,GACT,MAAM,GACN,UAAU,GACV,WAAW,GACX,OAAO,GACP,gBAAgB,GAChB,iBAAiB,GACjB,yBAAyB,GACzB,aAAa,GACb,cAAc,GACd,oBAAoB,GACpB,YAAY,GACZ,IAAI,GACJ,MAAM,GACN,KAAK,GACL,YAAY,CACf,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG;IACpD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAyBF;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,mBAAmB,CAmCrB;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,GAAG,eAAe,CAGnF;AAuBD,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}