@vite-hub/env 0.5.0 → 0.6.0
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/README.md +1 -1
- package/dist/{access-C5sPO6C2.js → access-DIErLk3w.js} +2 -3
- package/dist/{bridge-Cs9YfQWk.d.ts → bridge-BWwIooe0.d.ts} +0 -12
- package/dist/{bridge-error-t9bc6xvE.js → bridge-error-DEqzARPJ.js} +1 -2
- package/dist/bridge.d.ts +1 -1
- package/dist/bridge.js +6 -9
- package/dist/{cli-DJtQF4Wi.d.ts → cli-B-LW6l_J.d.ts} +0 -6
- package/dist/{cli-BctSFldY.js → cli-BXzUIcnA.js} +19 -25
- package/dist/cli.d.ts +3 -6
- package/dist/cli.js +1 -2
- package/dist/database.d.ts +2 -4
- package/dist/database.js +2 -3
- package/dist/{declarations-BEL0yvEY.d.ts → declarations-DNjO52_s.d.ts} +1 -3
- package/dist/{schema-CnCp0Muw.js → declarations-meg4Rmgd.js} +6 -71
- package/dist/{object-DICxAEoH.js → error-diagnostics-5BceFRdD.js} +52 -13
- package/dist/{error-diagnostics-CwQGNVnK.js → error-diagnostics-BFzFaXcH.js} +1 -2
- package/dist/index.d.ts +3 -13
- package/dist/index.js +8 -12
- package/dist/internal/agent.d.ts +2 -4
- package/dist/internal/agent.js +3 -4
- package/dist/internal/connections.d.ts +2 -4
- package/dist/internal/connections.js +3 -4
- package/dist/internal/server.d.ts +2 -2
- package/dist/internal/server.js +1 -2
- package/dist/{operation-definition-CI2PJGqu.d.ts → operation-definition-CqZkx1Rm.d.ts} +0 -4
- package/dist/{operations-LVaCzpR0.js → operations-BftegDMd.js} +2 -3
- package/dist/operations.d.ts +2 -6
- package/dist/operations.js +6 -721
- package/dist/runtime/public-env.d.ts +2 -4
- package/dist/runtime/public-env.js +2 -3
- package/dist/runtime/server-env.d.ts +2 -3
- package/dist/runtime/server-env.js +2 -3
- package/dist/seal.d.ts +1 -3
- package/dist/seal.js +1 -2
- package/dist/{secret-DJd-fy5T.js → secret-VhbE53Vm.js} +1 -2
- package/dist/{server-OvARy_y9.d.ts → server-CPEywepM.d.ts} +1 -11
- package/dist/{server-Ct3uvhf9.js → server-pTqnkM7n.js} +209 -152
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -2
- package/dist/vite.d.ts +4 -16
- package/dist/vite.js +20 -21
- package/package.json +12 -10
package/dist/operations.js
CHANGED
|
@@ -1,719 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as isRecordOrFunction, n as standardJsonSchema, t as internalErrorDiagnostics } from "./error-diagnostics-5BceFRdD.js";
|
|
2
2
|
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (value === null || Object(value) !== value) return;
|
|
6
|
-
try {
|
|
7
|
-
return Reflect.get(Object(value), key);
|
|
8
|
-
} catch {
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Read a Standard JSON Schema projection without throwing.
|
|
14
|
-
*
|
|
15
|
-
* Returns `undefined` when the schema has no `~standard.jsonSchema`, when the library cannot represent the type
|
|
16
|
-
* (Zod throws for `Date`), or when the projection is not an object. Callers decide how to fall back.
|
|
17
|
-
*/
|
|
18
|
-
function standardJsonSchema(schema, direction, target = "draft-2020-12", libraryOptions) {
|
|
19
|
-
const jsonSchema = readOwn(readOwn(schema, "~standard"), "jsonSchema");
|
|
20
|
-
const project = readOwn(jsonSchema, direction);
|
|
21
|
-
if (typeof project !== "function") return;
|
|
22
|
-
try {
|
|
23
|
-
const result = project.call(jsonSchema, libraryOptions ? {
|
|
24
|
-
target,
|
|
25
|
-
libraryOptions
|
|
26
|
-
} : { target });
|
|
27
|
-
return isRecordOrFunction(result) ? result : void 0;
|
|
28
|
-
} catch {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.pnpm/@valibot+to-json-schema@1.8.0_valibot@1.5.0_typescript@6.0.3_/node_modules/@valibot/to-json-schema/dist/index.mjs
|
|
34
|
-
/**
|
|
35
|
-
* Adds an error message to the errors array.
|
|
36
|
-
*
|
|
37
|
-
* @param errors The array of error messages.
|
|
38
|
-
* @param message The error message to add.
|
|
39
|
-
*
|
|
40
|
-
* @returns The new errors.
|
|
41
|
-
*/
|
|
42
|
-
function addError(errors, message) {
|
|
43
|
-
if (errors) {
|
|
44
|
-
errors.push(message);
|
|
45
|
-
return errors;
|
|
46
|
-
}
|
|
47
|
-
return [message];
|
|
48
|
-
}
|
|
49
|
-
const ESCAPE_REGEX = /[.*+?^${}()|[\]\\]/g;
|
|
50
|
-
/**
|
|
51
|
-
* Escapes special regex characters in a string.
|
|
52
|
-
*
|
|
53
|
-
* @param string The string to escape.
|
|
54
|
-
*
|
|
55
|
-
* @returns The escaped string.
|
|
56
|
-
*/
|
|
57
|
-
function escapeRegExp(string) {
|
|
58
|
-
return string.replace(ESCAPE_REGEX, "\\$&");
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Throws an error or logs a warning based on the configuration.
|
|
62
|
-
*
|
|
63
|
-
* @param message The message to throw or log.
|
|
64
|
-
* @param config The conversion configuration.
|
|
65
|
-
*/
|
|
66
|
-
function handleError(message, config) {
|
|
67
|
-
switch (config?.errorMode) {
|
|
68
|
-
case "ignore": break;
|
|
69
|
-
case "warn":
|
|
70
|
-
console.warn(message);
|
|
71
|
-
break;
|
|
72
|
-
default: throw new Error(message);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Whether a value is JSON compatible for a const keyword.
|
|
77
|
-
*
|
|
78
|
-
* @param value The value to check.
|
|
79
|
-
*
|
|
80
|
-
* @returns Whether the value is JSON compatible.
|
|
81
|
-
*/
|
|
82
|
-
function isJsonConstValue(value) {
|
|
83
|
-
return typeof value === "boolean" || typeof value === "number" && Number.isFinite(value) || typeof value === "string";
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Whether values are JSON compatible for an enum keyword.
|
|
87
|
-
*
|
|
88
|
-
* @param values The values to check.
|
|
89
|
-
*
|
|
90
|
-
* @returns Whether the values are JSON compatible.
|
|
91
|
-
*/
|
|
92
|
-
function isJsonEnumValues(values) {
|
|
93
|
-
return values.every(isJsonConstValue);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Schema reference map with collision-free reference ID allocation.
|
|
97
|
-
*/
|
|
98
|
-
var ReferenceMap = class extends Map {
|
|
99
|
-
/**
|
|
100
|
-
* Creates an empty schema reference map.
|
|
101
|
-
*/
|
|
102
|
-
constructor() {
|
|
103
|
-
super();
|
|
104
|
-
this.count = 0;
|
|
105
|
-
this.usedIds = /* @__PURE__ */ new Set();
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Adds a schema reference and reserves its ID.
|
|
109
|
-
*
|
|
110
|
-
* @param schema The Valibot schema.
|
|
111
|
-
* @param referenceId The reference ID.
|
|
112
|
-
*
|
|
113
|
-
* @returns The reference map.
|
|
114
|
-
*/
|
|
115
|
-
set(schema, referenceId) {
|
|
116
|
-
this.usedIds.add(referenceId);
|
|
117
|
-
return super.set(schema, referenceId);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Creates a reference ID that is not yet used.
|
|
121
|
-
*
|
|
122
|
-
* @param definitions The JSON Schema definitions.
|
|
123
|
-
*
|
|
124
|
-
* @returns The unused reference ID.
|
|
125
|
-
*/
|
|
126
|
-
createId(definitions) {
|
|
127
|
-
while (this.usedIds.has(`${this.count}`) || `${this.count}` in definitions) this.count++;
|
|
128
|
-
return `${this.count++}`;
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Returns the stricter lower bound.
|
|
133
|
-
*
|
|
134
|
-
* @param current The current lower bound.
|
|
135
|
-
* @param value The new lower bound.
|
|
136
|
-
*
|
|
137
|
-
* @returns The stricter lower bound.
|
|
138
|
-
*/
|
|
139
|
-
function getLowerBound(current, value) {
|
|
140
|
-
if (typeof current !== "number" || !Number.isFinite(current) || value > current) return value;
|
|
141
|
-
return current;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Returns the stricter upper bound.
|
|
145
|
-
*
|
|
146
|
-
* @param current The current upper bound.
|
|
147
|
-
* @param value The new upper bound.
|
|
148
|
-
*
|
|
149
|
-
* @returns The stricter upper bound.
|
|
150
|
-
*/
|
|
151
|
-
function getUpperBound(current, value) {
|
|
152
|
-
if (typeof current !== "number" || !Number.isFinite(current) || value < current) return value;
|
|
153
|
-
return current;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Returns the combined not restriction.
|
|
157
|
-
*
|
|
158
|
-
* @param current The current not restriction.
|
|
159
|
-
* @param value The new not restriction.
|
|
160
|
-
*
|
|
161
|
-
* @returns The combined not restriction.
|
|
162
|
-
*/
|
|
163
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
164
|
-
function getNotRestriction(current, value) {
|
|
165
|
-
return current !== void 0 ? { anyOf: [current, value] } : value;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Intersects allowed values with an existing enum restriction.
|
|
169
|
-
*
|
|
170
|
-
* @param jsonSchema The JSON Schema object.
|
|
171
|
-
* @param values The allowed values.
|
|
172
|
-
*/
|
|
173
|
-
function intersectEnum(jsonSchema, values) {
|
|
174
|
-
let enumValues = jsonSchema.enum ?? values;
|
|
175
|
-
if (jsonSchema.enum) {
|
|
176
|
-
const valueSet = new Set(values);
|
|
177
|
-
enumValues = enumValues.filter((value) => valueSet.has(value));
|
|
178
|
-
}
|
|
179
|
-
if (enumValues.length) jsonSchema.enum = [...new Set(enumValues)];
|
|
180
|
-
else {
|
|
181
|
-
delete jsonSchema.enum;
|
|
182
|
-
jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, {});
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Converts any supported Valibot action to the JSON Schema format.
|
|
187
|
-
*
|
|
188
|
-
* @param jsonSchema The JSON Schema object.
|
|
189
|
-
* @param valibotAction The Valibot action object.
|
|
190
|
-
* @param config The conversion configuration.
|
|
191
|
-
*
|
|
192
|
-
* @returns The converted JSON Schema.
|
|
193
|
-
*/
|
|
194
|
-
function convertAction(jsonSchema, valibotAction, config) {
|
|
195
|
-
if (config?.ignoreActions?.includes(valibotAction.type)) return jsonSchema;
|
|
196
|
-
let errors;
|
|
197
|
-
switch (valibotAction.type) {
|
|
198
|
-
case "base64":
|
|
199
|
-
jsonSchema.contentEncoding = "base64";
|
|
200
|
-
break;
|
|
201
|
-
case "bic":
|
|
202
|
-
case "cuid2":
|
|
203
|
-
case "decimal":
|
|
204
|
-
case "digits":
|
|
205
|
-
case "domain":
|
|
206
|
-
case "emoji":
|
|
207
|
-
case "hash":
|
|
208
|
-
case "hexadecimal":
|
|
209
|
-
case "hex_color":
|
|
210
|
-
case "isrc":
|
|
211
|
-
case "iso_time_second":
|
|
212
|
-
case "iso_week":
|
|
213
|
-
case "ksuid":
|
|
214
|
-
case "mac":
|
|
215
|
-
case "mac48":
|
|
216
|
-
case "mac64":
|
|
217
|
-
case "nanoid":
|
|
218
|
-
case "octal":
|
|
219
|
-
case "slug":
|
|
220
|
-
case "ulid":
|
|
221
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
222
|
-
else jsonSchema.pattern = valibotAction.requirement.source;
|
|
223
|
-
break;
|
|
224
|
-
case "description":
|
|
225
|
-
jsonSchema.description = valibotAction.description;
|
|
226
|
-
break;
|
|
227
|
-
case "email":
|
|
228
|
-
case "rfc_email":
|
|
229
|
-
jsonSchema.format = "email";
|
|
230
|
-
break;
|
|
231
|
-
case "ends_with":
|
|
232
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
233
|
-
else jsonSchema.pattern = `${escapeRegExp(valibotAction.requirement)}$`;
|
|
234
|
-
break;
|
|
235
|
-
case "empty":
|
|
236
|
-
if (jsonSchema.type === "array") jsonSchema.maxItems = 0;
|
|
237
|
-
else {
|
|
238
|
-
if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
|
|
239
|
-
jsonSchema.maxLength = 0;
|
|
240
|
-
}
|
|
241
|
-
break;
|
|
242
|
-
case "entries":
|
|
243
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
244
|
-
errors = addError(errors, "The requirement of the \"entries\" action must be a non-negative integer.");
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
jsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);
|
|
248
|
-
jsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);
|
|
249
|
-
break;
|
|
250
|
-
case "examples":
|
|
251
|
-
if (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.examples];
|
|
252
|
-
else jsonSchema.examples = valibotAction.examples;
|
|
253
|
-
break;
|
|
254
|
-
case "gt_value":
|
|
255
|
-
if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
|
|
256
|
-
errors = addError(errors, `The "gt_value" action is not supported on type "${jsonSchema.type}".`);
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
if (!Number.isFinite(valibotAction.requirement)) {
|
|
260
|
-
errors = addError(errors, "The requirement of the \"gt_value\" action is not JSON compatible.");
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
if (config?.target === "openapi-3.0") {
|
|
264
|
-
errors = addError(errors, "The \"gt_value\" action is not supported for OpenAPI 3.0.");
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
jsonSchema.exclusiveMinimum = getLowerBound(jsonSchema.exclusiveMinimum, valibotAction.requirement);
|
|
268
|
-
break;
|
|
269
|
-
case "includes":
|
|
270
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
271
|
-
else jsonSchema.pattern = escapeRegExp(valibotAction.requirement);
|
|
272
|
-
break;
|
|
273
|
-
case "integer":
|
|
274
|
-
jsonSchema.type = "integer";
|
|
275
|
-
break;
|
|
276
|
-
case "ipv4":
|
|
277
|
-
jsonSchema.format = "ipv4";
|
|
278
|
-
break;
|
|
279
|
-
case "ipv6":
|
|
280
|
-
jsonSchema.format = "ipv6";
|
|
281
|
-
break;
|
|
282
|
-
case "iso_date":
|
|
283
|
-
jsonSchema.format = "date";
|
|
284
|
-
break;
|
|
285
|
-
case "iso_date_time":
|
|
286
|
-
case "iso_timestamp":
|
|
287
|
-
jsonSchema.format = "date-time";
|
|
288
|
-
break;
|
|
289
|
-
case "iso_time":
|
|
290
|
-
jsonSchema.format = "time";
|
|
291
|
-
break;
|
|
292
|
-
case "jws_compact":
|
|
293
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
294
|
-
else jsonSchema.pattern = valibotAction.requirement.source;
|
|
295
|
-
break;
|
|
296
|
-
case "length":
|
|
297
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
298
|
-
errors = addError(errors, "The requirement of the \"length\" action must be a non-negative integer.");
|
|
299
|
-
break;
|
|
300
|
-
}
|
|
301
|
-
if (jsonSchema.type === "array") {
|
|
302
|
-
jsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);
|
|
303
|
-
jsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);
|
|
304
|
-
} else {
|
|
305
|
-
if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
|
|
306
|
-
jsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);
|
|
307
|
-
jsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);
|
|
308
|
-
}
|
|
309
|
-
break;
|
|
310
|
-
case "lt_value":
|
|
311
|
-
if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
|
|
312
|
-
errors = addError(errors, `The "lt_value" action is not supported on type "${jsonSchema.type}".`);
|
|
313
|
-
break;
|
|
314
|
-
}
|
|
315
|
-
if (!Number.isFinite(valibotAction.requirement)) {
|
|
316
|
-
errors = addError(errors, "The requirement of the \"lt_value\" action is not JSON compatible.");
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
if (config?.target === "openapi-3.0") {
|
|
320
|
-
errors = addError(errors, "The \"lt_value\" action is not supported for OpenAPI 3.0.");
|
|
321
|
-
break;
|
|
322
|
-
}
|
|
323
|
-
jsonSchema.exclusiveMaximum = getUpperBound(jsonSchema.exclusiveMaximum, valibotAction.requirement);
|
|
324
|
-
break;
|
|
325
|
-
case "max_entries":
|
|
326
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
327
|
-
errors = addError(errors, "The requirement of the \"max_entries\" action must be a non-negative integer.");
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
jsonSchema.maxProperties = getUpperBound(jsonSchema.maxProperties, valibotAction.requirement);
|
|
331
|
-
break;
|
|
332
|
-
case "max_length":
|
|
333
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
334
|
-
errors = addError(errors, "The requirement of the \"max_length\" action must be a non-negative integer.");
|
|
335
|
-
break;
|
|
336
|
-
}
|
|
337
|
-
if (jsonSchema.type === "array") jsonSchema.maxItems = getUpperBound(jsonSchema.maxItems, valibotAction.requirement);
|
|
338
|
-
else {
|
|
339
|
-
if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
|
|
340
|
-
jsonSchema.maxLength = getUpperBound(jsonSchema.maxLength, valibotAction.requirement);
|
|
341
|
-
}
|
|
342
|
-
break;
|
|
343
|
-
case "max_value":
|
|
344
|
-
if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
|
|
345
|
-
errors = addError(errors, `The "max_value" action is not supported on type "${jsonSchema.type}".`);
|
|
346
|
-
break;
|
|
347
|
-
}
|
|
348
|
-
if (!Number.isFinite(valibotAction.requirement)) {
|
|
349
|
-
errors = addError(errors, "The requirement of the \"max_value\" action is not JSON compatible.");
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
jsonSchema.maximum = getUpperBound(jsonSchema.maximum, valibotAction.requirement);
|
|
353
|
-
break;
|
|
354
|
-
case "metadata":
|
|
355
|
-
if (typeof valibotAction.metadata.title === "string") jsonSchema.title = valibotAction.metadata.title;
|
|
356
|
-
if (typeof valibotAction.metadata.description === "string") jsonSchema.description = valibotAction.metadata.description;
|
|
357
|
-
if (Array.isArray(valibotAction.metadata.examples)) if (Array.isArray(jsonSchema.examples)) jsonSchema.examples = [...jsonSchema.examples, ...valibotAction.metadata.examples];
|
|
358
|
-
else jsonSchema.examples = valibotAction.metadata.examples;
|
|
359
|
-
for (const key of Object.keys(valibotAction.metadata)) if (key !== "title" && key !== "description" && key !== "examples" && key !== "__proto__") jsonSchema[key] = valibotAction.metadata[key];
|
|
360
|
-
break;
|
|
361
|
-
case "min_entries":
|
|
362
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
363
|
-
errors = addError(errors, "The requirement of the \"min_entries\" action must be a non-negative integer.");
|
|
364
|
-
break;
|
|
365
|
-
}
|
|
366
|
-
jsonSchema.minProperties = getLowerBound(jsonSchema.minProperties, valibotAction.requirement);
|
|
367
|
-
break;
|
|
368
|
-
case "min_length":
|
|
369
|
-
if (!Number.isInteger(valibotAction.requirement) || valibotAction.requirement < 0) {
|
|
370
|
-
errors = addError(errors, "The requirement of the \"min_length\" action must be a non-negative integer.");
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
if (jsonSchema.type === "array") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, valibotAction.requirement);
|
|
374
|
-
else {
|
|
375
|
-
if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
|
|
376
|
-
jsonSchema.minLength = getLowerBound(jsonSchema.minLength, valibotAction.requirement);
|
|
377
|
-
}
|
|
378
|
-
break;
|
|
379
|
-
case "min_value":
|
|
380
|
-
if (jsonSchema.type !== "number" && jsonSchema.type !== "integer") {
|
|
381
|
-
errors = addError(errors, `The "min_value" action is not supported on type "${jsonSchema.type}".`);
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
if (!Number.isFinite(valibotAction.requirement)) {
|
|
385
|
-
errors = addError(errors, "The requirement of the \"min_value\" action is not JSON compatible.");
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
jsonSchema.minimum = getLowerBound(jsonSchema.minimum, valibotAction.requirement);
|
|
389
|
-
break;
|
|
390
|
-
case "multiple_of":
|
|
391
|
-
jsonSchema.multipleOf = valibotAction.requirement;
|
|
392
|
-
break;
|
|
393
|
-
case "non_empty":
|
|
394
|
-
if (jsonSchema.type === "array") jsonSchema.minItems = getLowerBound(jsonSchema.minItems, 1);
|
|
395
|
-
else {
|
|
396
|
-
if (jsonSchema.type !== "string") errors = addError(errors, `The "${valibotAction.type}" action is not supported on type "${jsonSchema.type}".`);
|
|
397
|
-
jsonSchema.minLength = getLowerBound(jsonSchema.minLength, 1);
|
|
398
|
-
}
|
|
399
|
-
break;
|
|
400
|
-
case "not_value":
|
|
401
|
-
if (!isJsonConstValue(valibotAction.requirement)) {
|
|
402
|
-
errors = addError(errors, "The requirement of the \"not_value\" action is not JSON compatible.");
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, config?.target === "openapi-3.0" ? { enum: [valibotAction.requirement] } : { const: valibotAction.requirement });
|
|
406
|
-
break;
|
|
407
|
-
case "not_values":
|
|
408
|
-
if (!isJsonEnumValues(valibotAction.requirement)) {
|
|
409
|
-
errors = addError(errors, "A requirement of the \"not_values\" action is not JSON compatible.");
|
|
410
|
-
break;
|
|
411
|
-
}
|
|
412
|
-
if (valibotAction.requirement.length) jsonSchema.not = /* @__PURE__ */ getNotRestriction(jsonSchema.not, { enum: [...new Set(valibotAction.requirement)] });
|
|
413
|
-
break;
|
|
414
|
-
case "regex":
|
|
415
|
-
if (valibotAction.requirement.flags) errors = addError(errors, "RegExp flags are not supported by JSON Schema.");
|
|
416
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
417
|
-
else jsonSchema.pattern = valibotAction.requirement.source;
|
|
418
|
-
break;
|
|
419
|
-
case "safe_integer":
|
|
420
|
-
jsonSchema.type = "integer";
|
|
421
|
-
jsonSchema.minimum = getLowerBound(jsonSchema.minimum, Number.MIN_SAFE_INTEGER);
|
|
422
|
-
jsonSchema.maximum = getUpperBound(jsonSchema.maximum, Number.MAX_SAFE_INTEGER);
|
|
423
|
-
break;
|
|
424
|
-
case "starts_with":
|
|
425
|
-
if (jsonSchema.pattern) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with another regex action.`);
|
|
426
|
-
else jsonSchema.pattern = `^${escapeRegExp(valibotAction.requirement)}`;
|
|
427
|
-
break;
|
|
428
|
-
case "title":
|
|
429
|
-
jsonSchema.title = valibotAction.title;
|
|
430
|
-
break;
|
|
431
|
-
case "url":
|
|
432
|
-
jsonSchema.format = "uri";
|
|
433
|
-
break;
|
|
434
|
-
case "uuid":
|
|
435
|
-
jsonSchema.format = "uuid";
|
|
436
|
-
break;
|
|
437
|
-
case "value":
|
|
438
|
-
if (!isJsonConstValue(valibotAction.requirement)) {
|
|
439
|
-
errors = addError(errors, "The requirement of the \"value\" action is not JSON compatible.");
|
|
440
|
-
break;
|
|
441
|
-
}
|
|
442
|
-
if (config?.target === "openapi-3.0") intersectEnum(jsonSchema, [valibotAction.requirement]);
|
|
443
|
-
else if ("const" in jsonSchema && jsonSchema.const !== valibotAction.requirement) errors = addError(errors, `The "${valibotAction.type}" action is not supported in combination with a different "const" restriction.`);
|
|
444
|
-
else jsonSchema.const = valibotAction.requirement;
|
|
445
|
-
break;
|
|
446
|
-
case "values":
|
|
447
|
-
if (!isJsonEnumValues(valibotAction.requirement)) {
|
|
448
|
-
errors = addError(errors, "A requirement of the \"values\" action is not JSON compatible.");
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
intersectEnum(jsonSchema, valibotAction.requirement);
|
|
452
|
-
break;
|
|
453
|
-
default: errors = addError(errors, `The "${valibotAction.type}" action cannot be converted to JSON Schema.`);
|
|
454
|
-
}
|
|
455
|
-
if (config?.overrideAction) {
|
|
456
|
-
const actionOverride = config.overrideAction({
|
|
457
|
-
valibotAction,
|
|
458
|
-
jsonSchema,
|
|
459
|
-
errors
|
|
460
|
-
});
|
|
461
|
-
if (actionOverride) return { ...actionOverride };
|
|
462
|
-
}
|
|
463
|
-
if (errors) for (const message of errors) handleError(message, config);
|
|
464
|
-
return jsonSchema;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Flattens a Valibot pipe by recursively expanding nested pipes.
|
|
468
|
-
*
|
|
469
|
-
* @param pipe The pipeline to flatten.
|
|
470
|
-
*
|
|
471
|
-
* @returns A flat pipeline.
|
|
472
|
-
*/
|
|
473
|
-
function flattenPipe(pipe) {
|
|
474
|
-
return pipe.flatMap((item) => "pipe" in item ? flattenPipe(item.pipe) : item);
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Returns the JSON Pointer reference for a definition key.
|
|
478
|
-
*
|
|
479
|
-
* @param referenceId The unescaped definition key.
|
|
480
|
-
*
|
|
481
|
-
* @returns The encoded JSON Pointer fragment.
|
|
482
|
-
*/
|
|
483
|
-
function getDefinitionRef(referenceId) {
|
|
484
|
-
return `#/$defs/${referenceId.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Converts any supported Valibot schema to the JSON Schema format.
|
|
488
|
-
*
|
|
489
|
-
* @param jsonSchema The JSON Schema object.
|
|
490
|
-
* @param valibotSchema The Valibot schema object.
|
|
491
|
-
* @param config The conversion configuration.
|
|
492
|
-
* @param context The conversion context.
|
|
493
|
-
* @param skipRef Whether to skip using a reference.
|
|
494
|
-
*
|
|
495
|
-
* @returns The converted JSON Schema.
|
|
496
|
-
*/
|
|
497
|
-
function convertSchema(jsonSchema, valibotSchema, config, context, skipRef = false) {
|
|
498
|
-
if (!skipRef) {
|
|
499
|
-
const referenceId = context.referenceMap.get(valibotSchema);
|
|
500
|
-
if (referenceId) {
|
|
501
|
-
jsonSchema.$ref = getDefinitionRef(referenceId);
|
|
502
|
-
if (config?.overrideRef) {
|
|
503
|
-
const refOverride = config.overrideRef({
|
|
504
|
-
...context,
|
|
505
|
-
referenceId,
|
|
506
|
-
valibotSchema,
|
|
507
|
-
jsonSchema
|
|
508
|
-
});
|
|
509
|
-
if (refOverride) jsonSchema.$ref = refOverride;
|
|
510
|
-
}
|
|
511
|
-
return jsonSchema;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
if ("pipe" in valibotSchema) {
|
|
515
|
-
const flatPipe = flattenPipe(valibotSchema.pipe);
|
|
516
|
-
let startIndex = 0;
|
|
517
|
-
let stopIndex = flatPipe.length - 1;
|
|
518
|
-
if (config?.typeMode === "input") {
|
|
519
|
-
const inputStopIndex = flatPipe.slice(1).findIndex((item) => item.kind === "schema" || item.kind === "transformation" && (item.type === "find_item" || item.type === "parse_json" || item.type === "raw_transform" || item.type === "reduce_items" || item.type === "stringify_json" || item.type === "to_bigint" || item.type === "to_boolean" || item.type === "to_date" || item.type === "to_number" || item.type === "to_string" || item.type === "transform"));
|
|
520
|
-
if (inputStopIndex !== -1) stopIndex = inputStopIndex;
|
|
521
|
-
} else if (config?.typeMode === "output") {
|
|
522
|
-
const outputStartIndex = flatPipe.findLastIndex((item) => item.kind === "schema");
|
|
523
|
-
if (outputStartIndex !== -1) startIndex = outputStartIndex;
|
|
524
|
-
}
|
|
525
|
-
for (let index = startIndex; index <= stopIndex; index++) {
|
|
526
|
-
const valibotPipeItem = flatPipe[index];
|
|
527
|
-
if (valibotPipeItem.kind === "schema") {
|
|
528
|
-
if (index > startIndex) handleError("Set the \"typeMode\" config to \"input\" or \"output\" to convert pipelines with multiple schemas.", config);
|
|
529
|
-
jsonSchema = convertSchema(jsonSchema, valibotPipeItem, config, context, true);
|
|
530
|
-
} else jsonSchema = convertAction(jsonSchema, valibotPipeItem, config);
|
|
531
|
-
}
|
|
532
|
-
return jsonSchema;
|
|
533
|
-
}
|
|
534
|
-
let errors;
|
|
535
|
-
switch (valibotSchema.type) {
|
|
536
|
-
case "boolean":
|
|
537
|
-
jsonSchema.type = "boolean";
|
|
538
|
-
break;
|
|
539
|
-
case "null":
|
|
540
|
-
if (config?.target === "openapi-3.0") jsonSchema.enum = [null];
|
|
541
|
-
else jsonSchema.type = "null";
|
|
542
|
-
break;
|
|
543
|
-
case "number":
|
|
544
|
-
jsonSchema.type = "number";
|
|
545
|
-
break;
|
|
546
|
-
case "string":
|
|
547
|
-
jsonSchema.type = "string";
|
|
548
|
-
break;
|
|
549
|
-
case "array":
|
|
550
|
-
jsonSchema.type = "array";
|
|
551
|
-
jsonSchema.items = convertSchema({}, valibotSchema.item, config, context);
|
|
552
|
-
break;
|
|
553
|
-
case "tuple":
|
|
554
|
-
case "tuple_with_rest":
|
|
555
|
-
case "loose_tuple":
|
|
556
|
-
case "strict_tuple":
|
|
557
|
-
jsonSchema.type = "array";
|
|
558
|
-
if (config?.target === "openapi-3.0") {
|
|
559
|
-
jsonSchema.items = { anyOf: [] };
|
|
560
|
-
jsonSchema.minItems = valibotSchema.items.length;
|
|
561
|
-
for (const item of valibotSchema.items) jsonSchema.items.anyOf.push(convertSchema({}, item, config, context));
|
|
562
|
-
if (valibotSchema.type === "tuple_with_rest") jsonSchema.items.anyOf.push(convertSchema({}, valibotSchema.rest, config, context));
|
|
563
|
-
else if (valibotSchema.type === "strict_tuple" || valibotSchema.type === "tuple") jsonSchema.maxItems = valibotSchema.items.length;
|
|
564
|
-
} else if (config?.target === "draft-2020-12") {
|
|
565
|
-
jsonSchema.prefixItems = [];
|
|
566
|
-
jsonSchema.minItems = valibotSchema.items.length;
|
|
567
|
-
for (const item of valibotSchema.items) jsonSchema.prefixItems.push(convertSchema({}, item, config, context));
|
|
568
|
-
if (valibotSchema.type === "tuple_with_rest") jsonSchema.items = convertSchema({}, valibotSchema.rest, config, context);
|
|
569
|
-
else if (valibotSchema.type === "strict_tuple") jsonSchema.items = false;
|
|
570
|
-
} else {
|
|
571
|
-
jsonSchema.items = [];
|
|
572
|
-
jsonSchema.minItems = valibotSchema.items.length;
|
|
573
|
-
for (const item of valibotSchema.items) jsonSchema.items.push(convertSchema({}, item, config, context));
|
|
574
|
-
if (valibotSchema.type === "tuple_with_rest") jsonSchema.additionalItems = convertSchema({}, valibotSchema.rest, config, context);
|
|
575
|
-
else if (valibotSchema.type === "strict_tuple") jsonSchema.additionalItems = false;
|
|
576
|
-
}
|
|
577
|
-
break;
|
|
578
|
-
case "object":
|
|
579
|
-
case "object_with_rest":
|
|
580
|
-
case "loose_object":
|
|
581
|
-
case "strict_object":
|
|
582
|
-
jsonSchema.type = "object";
|
|
583
|
-
jsonSchema.properties = {};
|
|
584
|
-
jsonSchema.required = [];
|
|
585
|
-
for (const key in valibotSchema.entries) {
|
|
586
|
-
const entry = valibotSchema.entries[key];
|
|
587
|
-
jsonSchema.properties[key] = convertSchema({}, entry, config, context);
|
|
588
|
-
if (entry.type !== "exact_optional" && entry.type !== "nullish" && entry.type !== "optional") jsonSchema.required.push(key);
|
|
589
|
-
}
|
|
590
|
-
if (valibotSchema.type === "object_with_rest") jsonSchema.additionalProperties = convertSchema({}, valibotSchema.rest, config, context);
|
|
591
|
-
else if (valibotSchema.type === "strict_object") jsonSchema.additionalProperties = false;
|
|
592
|
-
break;
|
|
593
|
-
case "record":
|
|
594
|
-
if (config?.target === "openapi-3.0" && "pipe" in valibotSchema.key) errors = addError(errors, "The \"record\" schema with a schema for the key that contains a \"pipe\" cannot be converted to JSON Schema.");
|
|
595
|
-
if (valibotSchema.key.type !== "string") errors = addError(errors, `The "record" schema with the "${valibotSchema.key.type}" schema for the key cannot be converted to JSON Schema.`);
|
|
596
|
-
jsonSchema.type = "object";
|
|
597
|
-
if (config?.target !== "openapi-3.0") jsonSchema.propertyNames = convertSchema({}, valibotSchema.key, config, context);
|
|
598
|
-
jsonSchema.additionalProperties = convertSchema({}, valibotSchema.value, config, context);
|
|
599
|
-
break;
|
|
600
|
-
case "any":
|
|
601
|
-
case "unknown": break;
|
|
602
|
-
case "never":
|
|
603
|
-
jsonSchema.not = {};
|
|
604
|
-
break;
|
|
605
|
-
case "nullable":
|
|
606
|
-
case "nullish":
|
|
607
|
-
if (config?.target === "openapi-3.0") {
|
|
608
|
-
const innerSchema = convertSchema({}, valibotSchema.wrapped, config, context);
|
|
609
|
-
Object.assign(jsonSchema, innerSchema);
|
|
610
|
-
jsonSchema.nullable = true;
|
|
611
|
-
} else jsonSchema.anyOf = [convertSchema({}, valibotSchema.wrapped, config, context), { type: "null" }];
|
|
612
|
-
if (valibotSchema.default !== void 0) jsonSchema.default = typeof valibotSchema.default === "function" ? valibotSchema.default() : valibotSchema.default;
|
|
613
|
-
break;
|
|
614
|
-
case "exact_optional":
|
|
615
|
-
case "optional":
|
|
616
|
-
case "undefinedable":
|
|
617
|
-
jsonSchema = convertSchema(jsonSchema, valibotSchema.wrapped, config, context);
|
|
618
|
-
if (valibotSchema.default !== void 0) jsonSchema.default = typeof valibotSchema.default === "function" ? valibotSchema.default() : valibotSchema.default;
|
|
619
|
-
break;
|
|
620
|
-
case "literal":
|
|
621
|
-
if (!isJsonConstValue(valibotSchema.literal)) {
|
|
622
|
-
errors = addError(errors, "The value of the \"literal\" schema is not JSON compatible.");
|
|
623
|
-
break;
|
|
624
|
-
}
|
|
625
|
-
if (config?.target === "openapi-3.0") jsonSchema.enum = [valibotSchema.literal];
|
|
626
|
-
else jsonSchema.const = valibotSchema.literal;
|
|
627
|
-
break;
|
|
628
|
-
case "enum":
|
|
629
|
-
case "picklist": {
|
|
630
|
-
const options = valibotSchema.options;
|
|
631
|
-
if (!options.every((option) => typeof option === "string" || typeof option === "number" && Number.isFinite(option))) {
|
|
632
|
-
errors = addError(errors, `An option of the "${valibotSchema.type}" schema is not JSON compatible.`);
|
|
633
|
-
break;
|
|
634
|
-
}
|
|
635
|
-
jsonSchema.enum = options;
|
|
636
|
-
if (options.every((option) => typeof option === "string")) jsonSchema.type = "string";
|
|
637
|
-
else if (options.every((option) => typeof option === "number")) jsonSchema.type = "number";
|
|
638
|
-
else if (config?.target !== "openapi-3.0") jsonSchema.type = ["string", "number"];
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
case "union":
|
|
642
|
-
jsonSchema.anyOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));
|
|
643
|
-
break;
|
|
644
|
-
case "variant":
|
|
645
|
-
jsonSchema.oneOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));
|
|
646
|
-
break;
|
|
647
|
-
case "intersect":
|
|
648
|
-
jsonSchema.allOf = valibotSchema.options.map((option) => convertSchema({}, option, config, context));
|
|
649
|
-
break;
|
|
650
|
-
case "lazy": {
|
|
651
|
-
let wrappedValibotSchema = context.getterMap.get(valibotSchema.getter);
|
|
652
|
-
if (!wrappedValibotSchema) {
|
|
653
|
-
wrappedValibotSchema = valibotSchema.getter(void 0);
|
|
654
|
-
context.getterMap.set(valibotSchema.getter, wrappedValibotSchema);
|
|
655
|
-
}
|
|
656
|
-
let referenceId = context.referenceMap.get(wrappedValibotSchema);
|
|
657
|
-
if (!referenceId) {
|
|
658
|
-
referenceId = context.referenceMap.createId(context.definitions);
|
|
659
|
-
context.referenceMap.set(wrappedValibotSchema, referenceId);
|
|
660
|
-
context.definitions[referenceId] = convertSchema({}, wrappedValibotSchema, config, context, true);
|
|
661
|
-
}
|
|
662
|
-
jsonSchema.$ref = getDefinitionRef(referenceId);
|
|
663
|
-
if (config?.overrideRef) {
|
|
664
|
-
const refOverride = config.overrideRef({
|
|
665
|
-
...context,
|
|
666
|
-
referenceId,
|
|
667
|
-
valibotSchema: wrappedValibotSchema,
|
|
668
|
-
jsonSchema
|
|
669
|
-
});
|
|
670
|
-
if (refOverride) jsonSchema.$ref = refOverride;
|
|
671
|
-
}
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
default: errors = addError(errors, `The "${valibotSchema.type}" schema cannot be converted to JSON Schema.`);
|
|
675
|
-
}
|
|
676
|
-
if (config?.overrideSchema) {
|
|
677
|
-
const schemaOverride = config.overrideSchema({
|
|
678
|
-
...context,
|
|
679
|
-
referenceId: context.referenceMap.get(valibotSchema),
|
|
680
|
-
valibotSchema,
|
|
681
|
-
jsonSchema,
|
|
682
|
-
errors
|
|
683
|
-
});
|
|
684
|
-
if (schemaOverride) return { ...schemaOverride };
|
|
685
|
-
}
|
|
686
|
-
if (errors) for (const message of errors) handleError(message, config);
|
|
687
|
-
return jsonSchema;
|
|
688
|
-
}
|
|
689
|
-
/**
|
|
690
|
-
* Converts a Valibot schema to the JSON Schema format.
|
|
691
|
-
*
|
|
692
|
-
* @param schema The Valibot schema object.
|
|
693
|
-
* @param config The JSON Schema configuration.
|
|
694
|
-
*
|
|
695
|
-
* @returns The converted JSON Schema.
|
|
696
|
-
*/
|
|
697
|
-
function toJsonSchema(schema, config) {
|
|
698
|
-
const context = {
|
|
699
|
-
definitions: {},
|
|
700
|
-
referenceMap: new ReferenceMap(),
|
|
701
|
-
getterMap: /* @__PURE__ */ new Map()
|
|
702
|
-
};
|
|
703
|
-
const definitions = config?.definitions ?? void 0;
|
|
704
|
-
if (definitions) {
|
|
705
|
-
for (const key in definitions) context.referenceMap.set(definitions[key], key);
|
|
706
|
-
for (const key in definitions) context.definitions[key] = convertSchema({}, definitions[key], config, context, true);
|
|
707
|
-
}
|
|
708
|
-
const jsonSchema = convertSchema({}, schema, config, context);
|
|
709
|
-
const target = config?.target ?? "draft-07";
|
|
710
|
-
if (target === "draft-2020-12") jsonSchema.$schema = "https://json-schema.org/draft/2020-12/schema";
|
|
711
|
-
else if (target === "draft-07") jsonSchema.$schema = "http://json-schema.org/draft-07/schema#";
|
|
712
|
-
if (context.referenceMap.size) jsonSchema.$defs = context.definitions;
|
|
713
|
-
return jsonSchema;
|
|
714
|
-
}
|
|
715
|
-
//#endregion
|
|
716
|
-
//#region ../internal/src/valibot.ts
|
|
3
|
+
import { toJsonSchema } from "@valibot/to-json-schema";
|
|
4
|
+
// ../internal/src/valibot.ts
|
|
717
5
|
const valibotTargets = /* @__PURE__ */ new Set([
|
|
718
6
|
"draft-07",
|
|
719
7
|
"draft-2020-12",
|
|
@@ -754,8 +42,7 @@ function withValibotJsonSchema(schema, options = {}) {
|
|
|
754
42
|
}
|
|
755
43
|
};
|
|
756
44
|
}
|
|
757
|
-
|
|
758
|
-
//#region ../internal/src/operation-definition.ts
|
|
45
|
+
// ../internal/src/operation-definition.ts
|
|
759
46
|
const nameFormat = /^[a-z][a-z0-9-]*\.[a-z][a-z0-9-]*$/;
|
|
760
47
|
const kinds = /* @__PURE__ */ new Set([
|
|
761
48
|
"read",
|
|
@@ -815,9 +102,8 @@ function isSectionId(section) {
|
|
|
815
102
|
function operationInputJsonSchema(operation) {
|
|
816
103
|
return standardJsonSchema(operation.input, "input") ?? { type: "object" };
|
|
817
104
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
const runtime = () => import("./operations-LVaCzpR0.js");
|
|
105
|
+
// src/operations.ts
|
|
106
|
+
const runtime = () => import("./operations-BftegDMd.js");
|
|
821
107
|
/** The `env.*` operations. The Console, the CLI, and agents run them on the signed `POST /_vitehub/rpc` endpoint. */
|
|
822
108
|
const envOperations = [defineOperation({
|
|
823
109
|
cli: { command: "list" },
|
|
@@ -829,5 +115,4 @@ const envOperations = [defineOperation({
|
|
|
829
115
|
section: "env",
|
|
830
116
|
user: false
|
|
831
117
|
})];
|
|
832
|
-
//#endregion
|
|
833
118
|
export { envOperations };
|