@timeback/powerpath 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,4 @@
1
- import { createRequire } from "node:module";
2
- var __create = Object.create;
3
- var __getProtoOf = Object.getPrototypeOf;
4
1
  var __defProp = Object.defineProperty;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __toESM = (mod, isNodeMode, target) => {
8
- target = mod != null ? __create(__getProtoOf(mod)) : {};
9
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
- for (let key of __getOwnPropNames(mod))
11
- if (!__hasOwnProp.call(to, key))
12
- __defProp(to, key, {
13
- get: () => mod[key],
14
- enumerable: true
15
- });
16
- return to;
17
- };
18
2
  var __export = (target, all) => {
19
3
  for (var name in all)
20
4
  __defProp(target, name, {
@@ -24,7 +8,417 @@ var __export = (target, all) => {
24
8
  set: (newValue) => all[name] = () => newValue
25
9
  });
26
10
  };
27
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
11
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
12
+
13
+ // node:util
14
+ var exports_util = {};
15
+ __export(exports_util, {
16
+ types: () => types,
17
+ promisify: () => promisify,
18
+ log: () => log,
19
+ isUndefined: () => isUndefined,
20
+ isSymbol: () => isSymbol,
21
+ isString: () => isString,
22
+ isRegExp: () => isRegExp,
23
+ isPrimitive: () => isPrimitive,
24
+ isObject: () => isObject,
25
+ isNumber: () => isNumber,
26
+ isNullOrUndefined: () => isNullOrUndefined,
27
+ isNull: () => isNull,
28
+ isFunction: () => isFunction,
29
+ isError: () => isError,
30
+ isDate: () => isDate,
31
+ isBuffer: () => isBuffer,
32
+ isBoolean: () => isBoolean,
33
+ isArray: () => isArray,
34
+ inspect: () => inspect,
35
+ inherits: () => inherits,
36
+ format: () => format,
37
+ deprecate: () => deprecate,
38
+ default: () => util_default,
39
+ debuglog: () => debuglog,
40
+ callbackifyOnRejected: () => callbackifyOnRejected,
41
+ callbackify: () => callbackify,
42
+ _extend: () => _extend,
43
+ TextEncoder: () => TextEncoder,
44
+ TextDecoder: () => TextDecoder
45
+ });
46
+ function format(f, ...args) {
47
+ if (!isString(f)) {
48
+ var objects = [f];
49
+ for (var i = 0;i < args.length; i++)
50
+ objects.push(inspect(args[i]));
51
+ return objects.join(" ");
52
+ }
53
+ var i = 0, len = args.length, str = String(f).replace(formatRegExp, function(x2) {
54
+ if (x2 === "%%")
55
+ return "%";
56
+ if (i >= len)
57
+ return x2;
58
+ switch (x2) {
59
+ case "%s":
60
+ return String(args[i++]);
61
+ case "%d":
62
+ return Number(args[i++]);
63
+ case "%j":
64
+ try {
65
+ return JSON.stringify(args[i++]);
66
+ } catch (_) {
67
+ return "[Circular]";
68
+ }
69
+ default:
70
+ return x2;
71
+ }
72
+ });
73
+ for (var x = args[i];i < len; x = args[++i])
74
+ if (isNull(x) || !isObject(x))
75
+ str += " " + x;
76
+ else
77
+ str += " " + inspect(x);
78
+ return str;
79
+ }
80
+ function deprecate(fn, msg) {
81
+ if (typeof process > "u" || process?.noDeprecation === true)
82
+ return fn;
83
+ var warned = false;
84
+ function deprecated(...args) {
85
+ if (!warned) {
86
+ if (process.throwDeprecation)
87
+ throw Error(msg);
88
+ else if (process.traceDeprecation)
89
+ console.trace(msg);
90
+ else
91
+ console.error(msg);
92
+ warned = true;
93
+ }
94
+ return fn.apply(this, ...args);
95
+ }
96
+ return deprecated;
97
+ }
98
+ function stylizeWithColor(str, styleType) {
99
+ var style = inspect.styles[styleType];
100
+ if (style)
101
+ return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
102
+ else
103
+ return str;
104
+ }
105
+ function stylizeNoColor(str, styleType) {
106
+ return str;
107
+ }
108
+ function arrayToHash(array) {
109
+ var hash = {};
110
+ return array.forEach(function(val, idx) {
111
+ hash[val] = true;
112
+ }), hash;
113
+ }
114
+ function formatValue(ctx, value, recurseTimes) {
115
+ if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== inspect && !(value.constructor && value.constructor.prototype === value)) {
116
+ var ret = value.inspect(recurseTimes, ctx);
117
+ if (!isString(ret))
118
+ ret = formatValue(ctx, ret, recurseTimes);
119
+ return ret;
120
+ }
121
+ var primitive = formatPrimitive(ctx, value);
122
+ if (primitive)
123
+ return primitive;
124
+ var keys = Object.keys(value), visibleKeys = arrayToHash(keys);
125
+ if (ctx.showHidden)
126
+ keys = Object.getOwnPropertyNames(value);
127
+ if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0))
128
+ return formatError(value);
129
+ if (keys.length === 0) {
130
+ if (isFunction(value)) {
131
+ var name = value.name ? ": " + value.name : "";
132
+ return ctx.stylize("[Function" + name + "]", "special");
133
+ }
134
+ if (isRegExp(value))
135
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
136
+ if (isDate(value))
137
+ return ctx.stylize(Date.prototype.toString.call(value), "date");
138
+ if (isError(value))
139
+ return formatError(value);
140
+ }
141
+ var base = "", array = false, braces = ["{", "}"];
142
+ if (isArray(value))
143
+ array = true, braces = ["[", "]"];
144
+ if (isFunction(value)) {
145
+ var n = value.name ? ": " + value.name : "";
146
+ base = " [Function" + n + "]";
147
+ }
148
+ if (isRegExp(value))
149
+ base = " " + RegExp.prototype.toString.call(value);
150
+ if (isDate(value))
151
+ base = " " + Date.prototype.toUTCString.call(value);
152
+ if (isError(value))
153
+ base = " " + formatError(value);
154
+ if (keys.length === 0 && (!array || value.length == 0))
155
+ return braces[0] + base + braces[1];
156
+ if (recurseTimes < 0)
157
+ if (isRegExp(value))
158
+ return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
159
+ else
160
+ return ctx.stylize("[Object]", "special");
161
+ ctx.seen.push(value);
162
+ var output;
163
+ if (array)
164
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
165
+ else
166
+ output = keys.map(function(key) {
167
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
168
+ });
169
+ return ctx.seen.pop(), reduceToSingleString(output, base, braces);
170
+ }
171
+ function formatPrimitive(ctx, value) {
172
+ if (isUndefined(value))
173
+ return ctx.stylize("undefined", "undefined");
174
+ if (isString(value)) {
175
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
176
+ return ctx.stylize(simple, "string");
177
+ }
178
+ if (isNumber(value))
179
+ return ctx.stylize("" + value, "number");
180
+ if (isBoolean(value))
181
+ return ctx.stylize("" + value, "boolean");
182
+ if (isNull(value))
183
+ return ctx.stylize("null", "null");
184
+ }
185
+ function formatError(value) {
186
+ return "[" + Error.prototype.toString.call(value) + "]";
187
+ }
188
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
189
+ var output = [];
190
+ for (var i = 0, l = value.length;i < l; ++i)
191
+ if (hasOwnProperty(value, String(i)))
192
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
193
+ else
194
+ output.push("");
195
+ return keys.forEach(function(key) {
196
+ if (!key.match(/^\d+$/))
197
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
198
+ }), output;
199
+ }
200
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
201
+ var name, str, desc;
202
+ if (desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }, desc.get)
203
+ if (desc.set)
204
+ str = ctx.stylize("[Getter/Setter]", "special");
205
+ else
206
+ str = ctx.stylize("[Getter]", "special");
207
+ else if (desc.set)
208
+ str = ctx.stylize("[Setter]", "special");
209
+ if (!hasOwnProperty(visibleKeys, key))
210
+ name = "[" + key + "]";
211
+ if (!str)
212
+ if (ctx.seen.indexOf(desc.value) < 0) {
213
+ if (isNull(recurseTimes))
214
+ str = formatValue(ctx, desc.value, null);
215
+ else
216
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
217
+ if (str.indexOf(`
218
+ `) > -1)
219
+ if (array)
220
+ str = str.split(`
221
+ `).map(function(line) {
222
+ return " " + line;
223
+ }).join(`
224
+ `).slice(2);
225
+ else
226
+ str = `
227
+ ` + str.split(`
228
+ `).map(function(line) {
229
+ return " " + line;
230
+ }).join(`
231
+ `);
232
+ } else
233
+ str = ctx.stylize("[Circular]", "special");
234
+ if (isUndefined(name)) {
235
+ if (array && key.match(/^\d+$/))
236
+ return str;
237
+ if (name = JSON.stringify("" + key), name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/))
238
+ name = name.slice(1, -1), name = ctx.stylize(name, "name");
239
+ else
240
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), name = ctx.stylize(name, "string");
241
+ }
242
+ return name + ": " + str;
243
+ }
244
+ function reduceToSingleString(output, base, braces) {
245
+ var numLinesEst = 0, length = output.reduce(function(prev, cur) {
246
+ if (numLinesEst++, cur.indexOf(`
247
+ `) >= 0)
248
+ numLinesEst++;
249
+ return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
250
+ }, 0);
251
+ if (length > 60)
252
+ return braces[0] + (base === "" ? "" : base + `
253
+ `) + " " + output.join(`,
254
+ `) + " " + braces[1];
255
+ return braces[0] + base + " " + output.join(", ") + " " + braces[1];
256
+ }
257
+ function isArray(ar) {
258
+ return Array.isArray(ar);
259
+ }
260
+ function isBoolean(arg) {
261
+ return typeof arg === "boolean";
262
+ }
263
+ function isNull(arg) {
264
+ return arg === null;
265
+ }
266
+ function isNullOrUndefined(arg) {
267
+ return arg == null;
268
+ }
269
+ function isNumber(arg) {
270
+ return typeof arg === "number";
271
+ }
272
+ function isString(arg) {
273
+ return typeof arg === "string";
274
+ }
275
+ function isSymbol(arg) {
276
+ return typeof arg === "symbol";
277
+ }
278
+ function isUndefined(arg) {
279
+ return arg === undefined;
280
+ }
281
+ function isRegExp(re) {
282
+ return isObject(re) && objectToString(re) === "[object RegExp]";
283
+ }
284
+ function isObject(arg) {
285
+ return typeof arg === "object" && arg !== null;
286
+ }
287
+ function isDate(d) {
288
+ return isObject(d) && objectToString(d) === "[object Date]";
289
+ }
290
+ function isError(e) {
291
+ return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
292
+ }
293
+ function isFunction(arg) {
294
+ return typeof arg === "function";
295
+ }
296
+ function isPrimitive(arg) {
297
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg > "u";
298
+ }
299
+ function isBuffer(arg) {
300
+ return arg instanceof Buffer;
301
+ }
302
+ function objectToString(o) {
303
+ return Object.prototype.toString.call(o);
304
+ }
305
+ function pad(n) {
306
+ return n < 10 ? "0" + n.toString(10) : n.toString(10);
307
+ }
308
+ function timestamp() {
309
+ var d = new Date, time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(":");
310
+ return [d.getDate(), months[d.getMonth()], time].join(" ");
311
+ }
312
+ function log(...args) {
313
+ console.log("%s - %s", timestamp(), format.apply(null, args));
314
+ }
315
+ function inherits(ctor, superCtor) {
316
+ if (superCtor)
317
+ ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, writable: true, configurable: true } });
318
+ }
319
+ function _extend(origin, add) {
320
+ if (!add || !isObject(add))
321
+ return origin;
322
+ var keys = Object.keys(add), i = keys.length;
323
+ while (i--)
324
+ origin[keys[i]] = add[keys[i]];
325
+ return origin;
326
+ }
327
+ function hasOwnProperty(obj, prop) {
328
+ return Object.prototype.hasOwnProperty.call(obj, prop);
329
+ }
330
+ function callbackifyOnRejected(reason, cb) {
331
+ if (!reason) {
332
+ var newReason = Error("Promise was rejected with a falsy value");
333
+ newReason.reason = reason, reason = newReason;
334
+ }
335
+ return cb(reason);
336
+ }
337
+ function callbackify(original) {
338
+ if (typeof original !== "function")
339
+ throw TypeError('The "original" argument must be of type Function');
340
+ function callbackified(...args) {
341
+ var maybeCb = args.pop();
342
+ if (typeof maybeCb !== "function")
343
+ throw TypeError("The last argument must be of type Function");
344
+ var self = this, cb = function(...args2) {
345
+ return maybeCb.apply(self, ...args2);
346
+ };
347
+ original.apply(this, args).then(function(ret) {
348
+ process.nextTick(cb.bind(null, null, ret));
349
+ }, function(rej) {
350
+ process.nextTick(callbackifyOnRejected.bind(null, rej, cb));
351
+ });
352
+ }
353
+ return Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)), Object.defineProperties(callbackified, Object.getOwnPropertyDescriptors(original)), callbackified;
354
+ }
355
+ var formatRegExp, debuglog, inspect, types = () => {}, months, promisify, TextEncoder, TextDecoder, util_default;
356
+ var init_util = __esm(() => {
357
+ formatRegExp = /%[sdj%]/g;
358
+ debuglog = ((debugs = {}, debugEnvRegex = {}, debugEnv) => ((debugEnv = typeof process < "u" && false) && (debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase()), debugEnvRegex = new RegExp("^" + debugEnv + "$", "i"), (set) => {
359
+ if (set = set.toUpperCase(), !debugs[set])
360
+ if (debugEnvRegex.test(set))
361
+ debugs[set] = function(...args) {
362
+ console.error("%s: %s", set, pid, format.apply(null, ...args));
363
+ };
364
+ else
365
+ debugs[set] = function() {};
366
+ return debugs[set];
367
+ }))();
368
+ inspect = ((i) => (i.colors = { bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90, 39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39], yellow: [33, 39] }, i.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, i.custom = Symbol.for("nodejs.util.inspect.custom"), i))(function(obj, opts, ...rest) {
369
+ var ctx = { seen: [], stylize: stylizeNoColor };
370
+ if (rest.length >= 1)
371
+ ctx.depth = rest[0];
372
+ if (rest.length >= 2)
373
+ ctx.colors = rest[1];
374
+ if (isBoolean(opts))
375
+ ctx.showHidden = opts;
376
+ else if (opts)
377
+ _extend(ctx, opts);
378
+ if (isUndefined(ctx.showHidden))
379
+ ctx.showHidden = false;
380
+ if (isUndefined(ctx.depth))
381
+ ctx.depth = 2;
382
+ if (isUndefined(ctx.colors))
383
+ ctx.colors = false;
384
+ if (ctx.colors)
385
+ ctx.stylize = stylizeWithColor;
386
+ return formatValue(ctx, obj, ctx.depth);
387
+ });
388
+ months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
389
+ promisify = ((x) => (x.custom = Symbol.for("nodejs.util.promisify.custom"), x))(function(original) {
390
+ if (typeof original !== "function")
391
+ throw TypeError('The "original" argument must be of type Function');
392
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
393
+ var fn = original[kCustomPromisifiedSymbol];
394
+ if (typeof fn !== "function")
395
+ throw TypeError('The "nodejs.util.promisify.custom" argument must be of type Function');
396
+ return Object.defineProperty(fn, kCustomPromisifiedSymbol, { value: fn, enumerable: false, writable: false, configurable: true }), fn;
397
+ }
398
+ function fn(...args) {
399
+ var promiseResolve, promiseReject, promise = new Promise(function(resolve, reject) {
400
+ promiseResolve = resolve, promiseReject = reject;
401
+ });
402
+ args.push(function(err, value) {
403
+ if (err)
404
+ promiseReject(err);
405
+ else
406
+ promiseResolve(value);
407
+ });
408
+ try {
409
+ original.apply(this, args);
410
+ } catch (err) {
411
+ promiseReject(err);
412
+ }
413
+ return promise;
414
+ }
415
+ if (Object.setPrototypeOf(fn, Object.getPrototypeOf(original)), kCustomPromisifiedSymbol)
416
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, { value: fn, enumerable: false, writable: false, configurable: true });
417
+ return Object.defineProperties(fn, Object.getOwnPropertyDescriptors(original));
418
+ });
419
+ ({ TextEncoder, TextDecoder } = globalThis);
420
+ util_default = { TextEncoder, TextDecoder, promisify, log, inherits, _extend, callbackifyOnRejected, callbackify };
421
+ });
28
422
 
29
423
  // ../../internal/constants/src/endpoints.ts
30
424
  var DEFAULT_PLATFORM = "BEYOND_AI";
@@ -180,7 +574,7 @@ function detectEnvironment() {
180
574
  var nodeInspect;
181
575
  if (!isBrowser()) {
182
576
  try {
183
- const util = await import("node:util");
577
+ const util = await Promise.resolve().then(() => (init_util(), exports_util));
184
578
  nodeInspect = util.inspect;
185
579
  } catch {}
186
580
  }
@@ -233,10 +627,10 @@ var terminalFormatter = (entry) => {
233
627
  const consoleMethod = getConsoleMethod(entry.level);
234
628
  const levelUpper = entry.level.toUpperCase().padEnd(5);
235
629
  const isoString = entry.timestamp.toISOString().replace(/\.\d{3}Z$/, "");
236
- const timestamp = `${colors.dim}[${isoString}]${colors.reset}`;
630
+ const timestamp2 = `${colors.dim}[${isoString}]${colors.reset}`;
237
631
  const level = `${levelColor}${levelUpper}${colors.reset}`;
238
632
  const scope = entry.scope ? `${colors.bold}[${entry.scope}]${colors.reset} ` : "";
239
- const prefix = `${timestamp} ${level} ${scope}${entry.message}`;
633
+ const prefix = `${timestamp2} ${level} ${scope}${entry.message}`;
240
634
  if (entry.context && Object.keys(entry.context).length > 0) {
241
635
  consoleMethod(prefix, formatContext(entry.context));
242
636
  } else {
@@ -251,9 +645,9 @@ var LEVEL_PREFIX = {
251
645
  error: "[ERROR]"
252
646
  };
253
647
  function formatContext2(context) {
254
- return Object.entries(context).map(([key, value]) => `${key}=${formatValue(value)}`).join(" ");
648
+ return Object.entries(context).map(([key, value]) => `${key}=${formatValue2(value)}`).join(" ");
255
649
  }
256
- function formatValue(value) {
650
+ function formatValue2(value) {
257
651
  if (typeof value === "string")
258
652
  return value;
259
653
  if (typeof value === "number")
@@ -413,7 +807,7 @@ function isDebug() {
413
807
  return false;
414
808
  }
415
809
  }
416
- var log = createLogger({ scope: "auth", minLevel: isDebug() ? "debug" : "warn" });
810
+ var log2 = createLogger({ scope: "auth", minLevel: isDebug() ? "debug" : "warn" });
417
811
 
418
812
  class TokenManager {
419
813
  config;
@@ -427,11 +821,11 @@ class TokenManager {
427
821
  }
428
822
  async getToken() {
429
823
  if (this.accessToken && Date.now() < this.tokenExpiry) {
430
- log.debug("Using cached token");
824
+ log2.debug("Using cached token");
431
825
  return this.accessToken;
432
826
  }
433
827
  if (this.pendingRequest) {
434
- log.debug("Waiting for in-flight token request");
828
+ log2.debug("Waiting for in-flight token request");
435
829
  return this.pendingRequest;
436
830
  }
437
831
  this.pendingRequest = this.fetchToken();
@@ -442,7 +836,7 @@ class TokenManager {
442
836
  }
443
837
  }
444
838
  async fetchToken() {
445
- log.debug("Fetching new access token...");
839
+ log2.debug("Fetching new access token...");
446
840
  const { clientId, clientSecret } = this.config.credentials;
447
841
  const credentials = btoa(`${clientId}:${clientSecret}`);
448
842
  const start = performance.now();
@@ -456,17 +850,17 @@ class TokenManager {
456
850
  });
457
851
  const duration = Math.round(performance.now() - start);
458
852
  if (!response.ok) {
459
- log.error(`Token request failed: ${response.status} ${response.statusText}`);
853
+ log2.error(`Token request failed: ${response.status} ${response.statusText}`);
460
854
  throw new Error(`Failed to obtain access token: ${response.status} ${response.statusText}`);
461
855
  }
462
856
  const data = await response.json();
463
857
  this.accessToken = data.access_token;
464
858
  this.tokenExpiry = Date.now() + (data.expires_in - 60) * 1000;
465
- log.debug(`Token acquired (${duration}ms, expires in ${data.expires_in}s)`);
859
+ log2.debug(`Token acquired (${duration}ms, expires in ${data.expires_in}s)`);
466
860
  return this.accessToken;
467
861
  }
468
862
  invalidate() {
469
- log.debug("Token invalidated");
863
+ log2.debug("Token invalidated");
470
864
  this.accessToken = null;
471
865
  this.tokenExpiry = 0;
472
866
  }
@@ -704,7 +1098,17 @@ class TimebackProvider {
704
1098
  // ../../internal/client-infra/src/utils/utils.ts
705
1099
  function getEnv(key) {
706
1100
  try {
707
- return typeof process === "undefined" ? undefined : process.env[key];
1101
+ if (typeof process === "undefined")
1102
+ return;
1103
+ if (typeof key === "string") {
1104
+ return process.env[key];
1105
+ }
1106
+ for (const k of key) {
1107
+ const value = process.env[k];
1108
+ if (value !== undefined)
1109
+ return value;
1110
+ }
1111
+ return;
708
1112
  } catch {
709
1113
  return;
710
1114
  }
@@ -738,6 +1142,18 @@ var DEFAULT_PROVIDER_REGISTRY = {
738
1142
  };
739
1143
 
740
1144
  // ../../internal/client-infra/src/config/resolve.ts
1145
+ function primaryEnvVar(key) {
1146
+ if (typeof key === "string") {
1147
+ return key;
1148
+ }
1149
+ if (key.length === 0) {
1150
+ throw new Error(`Missing env var key: ${key}`);
1151
+ }
1152
+ return key[0];
1153
+ }
1154
+ function formatEnvVarKey(key) {
1155
+ return primaryEnvVar(key);
1156
+ }
741
1157
  function validateEnv(env) {
742
1158
  if (env !== "staging" && env !== "production") {
743
1159
  throw new Error(`Invalid env "${env}": must be "staging" or "production"`);
@@ -748,10 +1164,10 @@ function validateAuth(auth, envVars) {
748
1164
  const clientId = auth?.clientId ?? getEnv(envVars.clientId);
749
1165
  const clientSecret = auth?.clientSecret ?? getEnv(envVars.clientSecret);
750
1166
  if (!clientId) {
751
- throw new Error(`Missing clientId: provide in config or set ${envVars.clientId}`);
1167
+ throw new Error(`Missing clientId: provide in config or set ${formatEnvVarKey(envVars.clientId)}`);
752
1168
  }
753
1169
  if (!clientSecret) {
754
- throw new Error(`Missing clientSecret: provide in config or set ${envVars.clientSecret}`);
1170
+ throw new Error(`Missing clientSecret: provide in config or set ${formatEnvVarKey(envVars.clientSecret)}`);
755
1171
  }
756
1172
  return { clientId, clientSecret };
757
1173
  }
@@ -767,21 +1183,21 @@ function buildMissingEnvError(envVars) {
767
1183
  const clientId = getEnv(envVars.clientId);
768
1184
  const clientSecret = getEnv(envVars.clientSecret);
769
1185
  if (baseUrl === undefined && clientId === undefined) {
770
- const hint = envVars.env ?? envVars.baseUrl;
1186
+ const hint = formatEnvVarKey(envVars.env ?? envVars.baseUrl);
771
1187
  return `Missing env: provide in config or set ${hint}`;
772
1188
  }
773
1189
  const missing = [];
774
1190
  if (baseUrl === undefined) {
775
- missing.push(envVars.env ?? envVars.baseUrl);
1191
+ missing.push(formatEnvVarKey(envVars.env ?? envVars.baseUrl));
776
1192
  }
777
1193
  if (baseUrl !== undefined && authUrl === undefined) {
778
- missing.push(envVars.authUrl);
1194
+ missing.push(formatEnvVarKey(envVars.authUrl));
779
1195
  }
780
1196
  if (clientId === undefined) {
781
- missing.push(envVars.clientId);
1197
+ missing.push(formatEnvVarKey(envVars.clientId));
782
1198
  }
783
1199
  if (clientSecret === undefined) {
784
- missing.push(envVars.clientSecret);
1200
+ missing.push(formatEnvVarKey(envVars.clientSecret));
785
1201
  }
786
1202
  return `Missing environment variables: ${missing.join(", ")}`;
787
1203
  }
@@ -1257,43 +1673,43 @@ function escapeValue(value) {
1257
1673
  }
1258
1674
  return value.replaceAll("'", "''");
1259
1675
  }
1260
- function formatValue2(value) {
1676
+ function formatValue3(value) {
1261
1677
  const escaped = escapeValue(value);
1262
1678
  const needsQuotes = typeof value === "string" || value instanceof Date;
1263
1679
  return needsQuotes ? `'${escaped}'` : escaped;
1264
1680
  }
1265
1681
  function fieldToConditions(field, condition) {
1266
1682
  if (typeof condition === "string" || typeof condition === "number" || typeof condition === "boolean" || condition instanceof Date) {
1267
- return [`${field}=${formatValue2(condition)}`];
1683
+ return [`${field}=${formatValue3(condition)}`];
1268
1684
  }
1269
1685
  if (typeof condition === "object" && condition !== null) {
1270
1686
  const ops = condition;
1271
1687
  const conditions = [];
1272
1688
  if (ops.ne !== undefined) {
1273
- conditions.push(`${field}!=${formatValue2(ops.ne)}`);
1689
+ conditions.push(`${field}!=${formatValue3(ops.ne)}`);
1274
1690
  }
1275
1691
  if (ops.gt !== undefined) {
1276
- conditions.push(`${field}>${formatValue2(ops.gt)}`);
1692
+ conditions.push(`${field}>${formatValue3(ops.gt)}`);
1277
1693
  }
1278
1694
  if (ops.gte !== undefined) {
1279
- conditions.push(`${field}>=${formatValue2(ops.gte)}`);
1695
+ conditions.push(`${field}>=${formatValue3(ops.gte)}`);
1280
1696
  }
1281
1697
  if (ops.lt !== undefined) {
1282
- conditions.push(`${field}<${formatValue2(ops.lt)}`);
1698
+ conditions.push(`${field}<${formatValue3(ops.lt)}`);
1283
1699
  }
1284
1700
  if (ops.lte !== undefined) {
1285
- conditions.push(`${field}<=${formatValue2(ops.lte)}`);
1701
+ conditions.push(`${field}<=${formatValue3(ops.lte)}`);
1286
1702
  }
1287
1703
  if (ops.contains !== undefined) {
1288
- conditions.push(`${field}~${formatValue2(ops.contains)}`);
1704
+ conditions.push(`${field}~${formatValue3(ops.contains)}`);
1289
1705
  }
1290
1706
  if (ops.in !== undefined && ops.in.length > 0) {
1291
- const inConditions = ops.in.map((v) => `${field}=${formatValue2(v)}`);
1707
+ const inConditions = ops.in.map((v) => `${field}=${formatValue3(v)}`);
1292
1708
  const joined = inConditions.join(" OR ");
1293
1709
  conditions.push(inConditions.length > 1 ? `(${joined})` : joined);
1294
1710
  }
1295
1711
  if (ops.notIn !== undefined && ops.notIn.length > 0) {
1296
- const notInConditions = ops.notIn.map((v) => `${field}!=${formatValue2(v)}`);
1712
+ const notInConditions = ops.notIn.map((v) => `${field}!=${formatValue3(v)}`);
1297
1713
  conditions.push(notInConditions.join(" AND "));
1298
1714
  }
1299
1715
  return conditions;
@@ -1472,10 +1888,14 @@ function validateNonEmptyString(value, name) {
1472
1888
  }
1473
1889
  // src/constants.ts
1474
1890
  var POWERPATH_ENV_VARS = {
1475
- baseUrl: "POWERPATH_BASE_URL",
1476
- clientId: "POWERPATH_CLIENT_ID",
1477
- clientSecret: "POWERPATH_CLIENT_SECRET",
1478
- authUrl: "POWERPATH_TOKEN_URL"
1891
+ baseUrl: ["TIMEBACK_API_BASE_URL", "TIMEBACK_BASE_URL", "POWERPATH_BASE_URL"],
1892
+ clientId: ["TIMEBACK_API_CLIENT_ID", "TIMEBACK_CLIENT_ID", "POWERPATH_CLIENT_ID"],
1893
+ clientSecret: [
1894
+ "TIMEBACK_API_CLIENT_SECRET",
1895
+ "TIMEBACK_CLIENT_SECRET",
1896
+ "POWERPATH_CLIENT_SECRET"
1897
+ ],
1898
+ authUrl: ["TIMEBACK_API_AUTH_URL", "TIMEBACK_AUTH_URL", "POWERPATH_TOKEN_URL"]
1479
1899
  };
1480
1900
 
1481
1901
  // src/lib/resolve.ts
@@ -1484,13 +1904,13 @@ function resolveToProvider2(config, registry = DEFAULT_PROVIDER_REGISTRY) {
1484
1904
  }
1485
1905
 
1486
1906
  // src/utils.ts
1487
- var log2 = createScopedLogger("powerpath");
1907
+ var log3 = createScopedLogger("powerpath");
1488
1908
 
1489
1909
  // src/lib/transport.ts
1490
1910
  class Transport extends BaseTransport {
1491
1911
  paths;
1492
1912
  constructor(config) {
1493
- super({ config, logger: log2 });
1913
+ super({ config, logger: log3 });
1494
1914
  this.paths = config.paths;
1495
1915
  }
1496
1916
  async requestPaginated(path, options = {}) {
@@ -1500,7 +1920,7 @@ class Transport extends BaseTransport {
1500
1920
  }
1501
1921
  }
1502
1922
 
1503
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/external.js
1923
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
1504
1924
  var exports_external = {};
1505
1925
  __export(exports_external, {
1506
1926
  xor: () => xor,
@@ -1510,7 +1930,7 @@ __export(exports_external, {
1510
1930
  uuidv6: () => uuidv6,
1511
1931
  uuidv4: () => uuidv4,
1512
1932
  uuid: () => uuid2,
1513
- util: () => exports_util,
1933
+ util: () => exports_util2,
1514
1934
  url: () => url,
1515
1935
  uppercase: () => _uppercase,
1516
1936
  unknown: () => unknown,
@@ -1619,7 +2039,7 @@ __export(exports_external, {
1619
2039
  getErrorMap: () => getErrorMap,
1620
2040
  function: () => _function,
1621
2041
  fromJSONSchema: () => fromJSONSchema,
1622
- formatError: () => formatError,
2042
+ formatError: () => formatError2,
1623
2043
  float64: () => float64,
1624
2044
  float32: () => float32,
1625
2045
  flattenError: () => flattenError,
@@ -1741,11 +2161,11 @@ __export(exports_external, {
1741
2161
  $brand: () => $brand
1742
2162
  });
1743
2163
 
1744
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/index.js
2164
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/index.js
1745
2165
  var exports_core2 = {};
1746
2166
  __export(exports_core2, {
1747
2167
  version: () => version,
1748
- util: () => exports_util,
2168
+ util: () => exports_util2,
1749
2169
  treeifyError: () => treeifyError,
1750
2170
  toJSONSchema: () => toJSONSchema,
1751
2171
  toDotPath: () => toDotPath,
@@ -1769,7 +2189,7 @@ __export(exports_core2, {
1769
2189
  initializeContext: () => initializeContext,
1770
2190
  globalRegistry: () => globalRegistry,
1771
2191
  globalConfig: () => globalConfig,
1772
- formatError: () => formatError,
2192
+ formatError: () => formatError2,
1773
2193
  flattenError: () => flattenError,
1774
2194
  finalize: () => finalize,
1775
2195
  extractDefs: () => extractDefs,
@@ -2019,7 +2439,7 @@ __export(exports_core2, {
2019
2439
  $ZodAny: () => $ZodAny
2020
2440
  });
2021
2441
 
2022
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/core.js
2442
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
2023
2443
  var NEVER = Object.freeze({
2024
2444
  status: "aborted"
2025
2445
  });
@@ -2095,9 +2515,9 @@ function config(newConfig) {
2095
2515
  Object.assign(globalConfig, newConfig);
2096
2516
  return globalConfig;
2097
2517
  }
2098
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/util.js
2099
- var exports_util = {};
2100
- __export(exports_util, {
2518
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
2519
+ var exports_util2 = {};
2520
+ __export(exports_util2, {
2101
2521
  unwrapMessage: () => unwrapMessage,
2102
2522
  uint8ArrayToHex: () => uint8ArrayToHex,
2103
2523
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -2127,7 +2547,7 @@ __export(exports_util, {
2127
2547
  joinValues: () => joinValues,
2128
2548
  issue: () => issue2,
2129
2549
  isPlainObject: () => isPlainObject,
2130
- isObject: () => isObject,
2550
+ isObject: () => isObject2,
2131
2551
  hexToUint8Array: () => hexToUint8Array,
2132
2552
  getSizableOrigin: () => getSizableOrigin,
2133
2553
  getParsedType: () => getParsedType,
@@ -2296,7 +2716,7 @@ function slugify(input) {
2296
2716
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
2297
2717
  }
2298
2718
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
2299
- function isObject(data) {
2719
+ function isObject2(data) {
2300
2720
  return typeof data === "object" && data !== null && !Array.isArray(data);
2301
2721
  }
2302
2722
  var allowsEval = cached(() => {
@@ -2312,7 +2732,7 @@ var allowsEval = cached(() => {
2312
2732
  }
2313
2733
  });
2314
2734
  function isPlainObject(o) {
2315
- if (isObject(o) === false)
2735
+ if (isObject2(o) === false)
2316
2736
  return false;
2317
2737
  const ctor = o.constructor;
2318
2738
  if (ctor === undefined)
@@ -2320,7 +2740,7 @@ function isPlainObject(o) {
2320
2740
  if (typeof ctor !== "function")
2321
2741
  return true;
2322
2742
  const prot = ctor.prototype;
2323
- if (isObject(prot) === false)
2743
+ if (isObject2(prot) === false)
2324
2744
  return false;
2325
2745
  if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
2326
2746
  return false;
@@ -2769,7 +3189,7 @@ class Class {
2769
3189
  constructor(..._args) {}
2770
3190
  }
2771
3191
 
2772
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/errors.js
3192
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
2773
3193
  var initializer = (inst, def) => {
2774
3194
  inst.name = "$ZodError";
2775
3195
  Object.defineProperty(inst, "_zod", {
@@ -2801,7 +3221,7 @@ function flattenError(error, mapper = (issue3) => issue3.message) {
2801
3221
  }
2802
3222
  return { formErrors, fieldErrors };
2803
3223
  }
2804
- function formatError(error, mapper = (issue3) => issue3.message) {
3224
+ function formatError2(error, mapper = (issue3) => issue3.message) {
2805
3225
  const fieldErrors = { _errors: [] };
2806
3226
  const processError = (error2) => {
2807
3227
  for (const issue3 of error2.issues) {
@@ -2906,7 +3326,7 @@ function prettifyError(error) {
2906
3326
  `);
2907
3327
  }
2908
3328
 
2909
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/parse.js
3329
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
2910
3330
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
2911
3331
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
2912
3332
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -2993,7 +3413,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
2993
3413
  return _safeParseAsync(_Err)(schema, value, _ctx);
2994
3414
  };
2995
3415
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
2996
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/regexes.js
3416
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
2997
3417
  var exports_regexes = {};
2998
3418
  __export(exports_regexes, {
2999
3419
  xid: () => xid,
@@ -3150,7 +3570,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
3150
3570
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
3151
3571
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
3152
3572
 
3153
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/checks.js
3573
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
3154
3574
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
3155
3575
  var _a;
3156
3576
  inst._zod ?? (inst._zod = {});
@@ -3697,7 +4117,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
3697
4117
  };
3698
4118
  });
3699
4119
 
3700
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/doc.js
4120
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
3701
4121
  class Doc {
3702
4122
  constructor(args = []) {
3703
4123
  this.content = [];
@@ -3735,14 +4155,14 @@ class Doc {
3735
4155
  }
3736
4156
  }
3737
4157
 
3738
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/versions.js
4158
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
3739
4159
  var version = {
3740
4160
  major: 4,
3741
4161
  minor: 3,
3742
- patch: 5
4162
+ patch: 6
3743
4163
  };
3744
4164
 
3745
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/schemas.js
4165
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
3746
4166
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
3747
4167
  var _a;
3748
4168
  inst ?? (inst = {});
@@ -4326,15 +4746,15 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
4326
4746
  } catch (_err) {}
4327
4747
  }
4328
4748
  const input = payload.value;
4329
- const isDate = input instanceof Date;
4330
- const isValidDate = isDate && !Number.isNaN(input.getTime());
4749
+ const isDate2 = input instanceof Date;
4750
+ const isValidDate = isDate2 && !Number.isNaN(input.getTime());
4331
4751
  if (isValidDate)
4332
4752
  return payload;
4333
4753
  payload.issues.push({
4334
4754
  expected: "date",
4335
4755
  code: "invalid_type",
4336
4756
  input,
4337
- ...isDate ? { received: "Invalid Date" } : {},
4757
+ ...isDate2 ? { received: "Invalid Date" } : {},
4338
4758
  inst
4339
4759
  });
4340
4760
  return payload;
@@ -4473,13 +4893,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4473
4893
  }
4474
4894
  return propValues;
4475
4895
  });
4476
- const isObject2 = isObject;
4896
+ const isObject3 = isObject2;
4477
4897
  const catchall = def.catchall;
4478
4898
  let value;
4479
4899
  inst._zod.parse = (payload, ctx) => {
4480
4900
  value ?? (value = _normalized.value);
4481
4901
  const input = payload.value;
4482
- if (!isObject2(input)) {
4902
+ if (!isObject3(input)) {
4483
4903
  payload.issues.push({
4484
4904
  expected: "object",
4485
4905
  code: "invalid_type",
@@ -4577,7 +4997,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4577
4997
  return (payload, ctx) => fn(shape, payload, ctx);
4578
4998
  };
4579
4999
  let fastpass;
4580
- const isObject2 = isObject;
5000
+ const isObject3 = isObject2;
4581
5001
  const jit = !globalConfig.jitless;
4582
5002
  const allowsEval2 = allowsEval;
4583
5003
  const fastEnabled = jit && allowsEval2.value;
@@ -4586,7 +5006,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4586
5006
  inst._zod.parse = (payload, ctx) => {
4587
5007
  value ?? (value = _normalized.value);
4588
5008
  const input = payload.value;
4589
- if (!isObject2(input)) {
5009
+ if (!isObject3(input)) {
4590
5010
  payload.issues.push({
4591
5011
  expected: "object",
4592
5012
  code: "invalid_type",
@@ -4764,7 +5184,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4764
5184
  });
4765
5185
  inst._zod.parse = (payload, ctx) => {
4766
5186
  const input = payload.value;
4767
- if (!isObject(input)) {
5187
+ if (!isObject2(input)) {
4768
5188
  payload.issues.push({
4769
5189
  code: "invalid_type",
4770
5190
  expected: "object",
@@ -5025,7 +5445,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
5025
5445
  if (keyResult instanceof Promise) {
5026
5446
  throw new Error("Async schemas not supported in object keys currently");
5027
5447
  }
5028
- const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length && keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
5448
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
5029
5449
  if (checkNumericKey) {
5030
5450
  const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
5031
5451
  if (retryResult instanceof Promise) {
@@ -5704,7 +6124,7 @@ function handleRefineResult(result, payload, input, inst) {
5704
6124
  payload.issues.push(issue2(_iss));
5705
6125
  }
5706
6126
  }
5707
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/index.js
6127
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/index.js
5708
6128
  var exports_locales = {};
5709
6129
  __export(exports_locales, {
5710
6130
  zhTW: () => zh_TW_default,
@@ -5758,7 +6178,7 @@ __export(exports_locales, {
5758
6178
  ar: () => ar_default
5759
6179
  });
5760
6180
 
5761
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ar.js
6181
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ar.js
5762
6182
  var error = () => {
5763
6183
  const Sizable = {
5764
6184
  string: { unit: "حرف", verb: "أن يحوي" },
@@ -5864,7 +6284,7 @@ function ar_default() {
5864
6284
  localeError: error()
5865
6285
  };
5866
6286
  }
5867
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/az.js
6287
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/az.js
5868
6288
  var error2 = () => {
5869
6289
  const Sizable = {
5870
6290
  string: { unit: "simvol", verb: "olmalıdır" },
@@ -5969,7 +6389,7 @@ function az_default() {
5969
6389
  localeError: error2()
5970
6390
  };
5971
6391
  }
5972
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/be.js
6392
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/be.js
5973
6393
  function getBelarusianPlural(count, one, few, many) {
5974
6394
  const absCount = Math.abs(count);
5975
6395
  const lastDigit = absCount % 10;
@@ -6125,7 +6545,7 @@ function be_default() {
6125
6545
  localeError: error3()
6126
6546
  };
6127
6547
  }
6128
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/bg.js
6548
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/bg.js
6129
6549
  var error4 = () => {
6130
6550
  const Sizable = {
6131
6551
  string: { unit: "символа", verb: "да съдържа" },
@@ -6245,7 +6665,7 @@ function bg_default() {
6245
6665
  localeError: error4()
6246
6666
  };
6247
6667
  }
6248
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ca.js
6668
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ca.js
6249
6669
  var error5 = () => {
6250
6670
  const Sizable = {
6251
6671
  string: { unit: "caràcters", verb: "contenir" },
@@ -6352,7 +6772,7 @@ function ca_default() {
6352
6772
  localeError: error5()
6353
6773
  };
6354
6774
  }
6355
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/cs.js
6775
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/cs.js
6356
6776
  var error6 = () => {
6357
6777
  const Sizable = {
6358
6778
  string: { unit: "znaků", verb: "mít" },
@@ -6463,7 +6883,7 @@ function cs_default() {
6463
6883
  localeError: error6()
6464
6884
  };
6465
6885
  }
6466
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/da.js
6886
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/da.js
6467
6887
  var error7 = () => {
6468
6888
  const Sizable = {
6469
6889
  string: { unit: "tegn", verb: "havde" },
@@ -6578,7 +6998,7 @@ function da_default() {
6578
6998
  localeError: error7()
6579
6999
  };
6580
7000
  }
6581
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/de.js
7001
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/de.js
6582
7002
  var error8 = () => {
6583
7003
  const Sizable = {
6584
7004
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -6686,7 +7106,7 @@ function de_default() {
6686
7106
  localeError: error8()
6687
7107
  };
6688
7108
  }
6689
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/en.js
7109
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/en.js
6690
7110
  var error9 = () => {
6691
7111
  const Sizable = {
6692
7112
  string: { unit: "characters", verb: "to have" },
@@ -6792,7 +7212,7 @@ function en_default() {
6792
7212
  localeError: error9()
6793
7213
  };
6794
7214
  }
6795
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/eo.js
7215
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/eo.js
6796
7216
  var error10 = () => {
6797
7217
  const Sizable = {
6798
7218
  string: { unit: "karaktrojn", verb: "havi" },
@@ -6901,7 +7321,7 @@ function eo_default() {
6901
7321
  localeError: error10()
6902
7322
  };
6903
7323
  }
6904
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/es.js
7324
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/es.js
6905
7325
  var error11 = () => {
6906
7326
  const Sizable = {
6907
7327
  string: { unit: "caracteres", verb: "tener" },
@@ -7033,7 +7453,7 @@ function es_default() {
7033
7453
  localeError: error11()
7034
7454
  };
7035
7455
  }
7036
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/fa.js
7456
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fa.js
7037
7457
  var error12 = () => {
7038
7458
  const Sizable = {
7039
7459
  string: { unit: "کاراکتر", verb: "داشته باشد" },
@@ -7147,7 +7567,7 @@ function fa_default() {
7147
7567
  localeError: error12()
7148
7568
  };
7149
7569
  }
7150
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/fi.js
7570
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fi.js
7151
7571
  var error13 = () => {
7152
7572
  const Sizable = {
7153
7573
  string: { unit: "merkkiä", subject: "merkkijonon" },
@@ -7259,7 +7679,7 @@ function fi_default() {
7259
7679
  localeError: error13()
7260
7680
  };
7261
7681
  }
7262
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/fr.js
7682
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr.js
7263
7683
  var error14 = () => {
7264
7684
  const Sizable = {
7265
7685
  string: { unit: "caractères", verb: "avoir" },
@@ -7367,7 +7787,7 @@ function fr_default() {
7367
7787
  localeError: error14()
7368
7788
  };
7369
7789
  }
7370
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/fr-CA.js
7790
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/fr-CA.js
7371
7791
  var error15 = () => {
7372
7792
  const Sizable = {
7373
7793
  string: { unit: "caractères", verb: "avoir" },
@@ -7474,7 +7894,7 @@ function fr_CA_default() {
7474
7894
  localeError: error15()
7475
7895
  };
7476
7896
  }
7477
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/he.js
7897
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/he.js
7478
7898
  var error16 = () => {
7479
7899
  const TypeNames = {
7480
7900
  string: { label: "מחרוזת", gender: "f" },
@@ -7667,7 +8087,7 @@ function he_default() {
7667
8087
  localeError: error16()
7668
8088
  };
7669
8089
  }
7670
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/hu.js
8090
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hu.js
7671
8091
  var error17 = () => {
7672
8092
  const Sizable = {
7673
8093
  string: { unit: "karakter", verb: "legyen" },
@@ -7775,7 +8195,7 @@ function hu_default() {
7775
8195
  localeError: error17()
7776
8196
  };
7777
8197
  }
7778
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/hy.js
8198
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/hy.js
7779
8199
  function getArmenianPlural(count, one, many) {
7780
8200
  return Math.abs(count) === 1 ? one : many;
7781
8201
  }
@@ -7922,7 +8342,7 @@ function hy_default() {
7922
8342
  localeError: error18()
7923
8343
  };
7924
8344
  }
7925
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/id.js
8345
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/id.js
7926
8346
  var error19 = () => {
7927
8347
  const Sizable = {
7928
8348
  string: { unit: "karakter", verb: "memiliki" },
@@ -8028,7 +8448,7 @@ function id_default() {
8028
8448
  localeError: error19()
8029
8449
  };
8030
8450
  }
8031
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/is.js
8451
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/is.js
8032
8452
  var error20 = () => {
8033
8453
  const Sizable = {
8034
8454
  string: { unit: "stafi", verb: "að hafa" },
@@ -8137,7 +8557,7 @@ function is_default() {
8137
8557
  localeError: error20()
8138
8558
  };
8139
8559
  }
8140
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/it.js
8560
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/it.js
8141
8561
  var error21 = () => {
8142
8562
  const Sizable = {
8143
8563
  string: { unit: "caratteri", verb: "avere" },
@@ -8245,7 +8665,7 @@ function it_default() {
8245
8665
  localeError: error21()
8246
8666
  };
8247
8667
  }
8248
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ja.js
8668
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ja.js
8249
8669
  var error22 = () => {
8250
8670
  const Sizable = {
8251
8671
  string: { unit: "文字", verb: "である" },
@@ -8352,7 +8772,7 @@ function ja_default() {
8352
8772
  localeError: error22()
8353
8773
  };
8354
8774
  }
8355
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ka.js
8775
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ka.js
8356
8776
  var error23 = () => {
8357
8777
  const Sizable = {
8358
8778
  string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
@@ -8464,7 +8884,7 @@ function ka_default() {
8464
8884
  localeError: error23()
8465
8885
  };
8466
8886
  }
8467
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/km.js
8887
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/km.js
8468
8888
  var error24 = () => {
8469
8889
  const Sizable = {
8470
8890
  string: { unit: "តួអក្សរ", verb: "គួរមាន" },
@@ -8575,11 +8995,11 @@ function km_default() {
8575
8995
  };
8576
8996
  }
8577
8997
 
8578
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/kh.js
8998
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/kh.js
8579
8999
  function kh_default() {
8580
9000
  return km_default();
8581
9001
  }
8582
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ko.js
9002
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ko.js
8583
9003
  var error25 = () => {
8584
9004
  const Sizable = {
8585
9005
  string: { unit: "문자", verb: "to have" },
@@ -8690,7 +9110,7 @@ function ko_default() {
8690
9110
  localeError: error25()
8691
9111
  };
8692
9112
  }
8693
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/lt.js
9113
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/lt.js
8694
9114
  var capitalizeFirstCharacter = (text) => {
8695
9115
  return text.charAt(0).toUpperCase() + text.slice(1);
8696
9116
  };
@@ -8893,7 +9313,7 @@ function lt_default() {
8893
9313
  localeError: error26()
8894
9314
  };
8895
9315
  }
8896
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/mk.js
9316
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/mk.js
8897
9317
  var error27 = () => {
8898
9318
  const Sizable = {
8899
9319
  string: { unit: "знаци", verb: "да имаат" },
@@ -9002,7 +9422,7 @@ function mk_default() {
9002
9422
  localeError: error27()
9003
9423
  };
9004
9424
  }
9005
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ms.js
9425
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ms.js
9006
9426
  var error28 = () => {
9007
9427
  const Sizable = {
9008
9428
  string: { unit: "aksara", verb: "mempunyai" },
@@ -9109,7 +9529,7 @@ function ms_default() {
9109
9529
  localeError: error28()
9110
9530
  };
9111
9531
  }
9112
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/nl.js
9532
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/nl.js
9113
9533
  var error29 = () => {
9114
9534
  const Sizable = {
9115
9535
  string: { unit: "tekens", verb: "heeft" },
@@ -9219,7 +9639,7 @@ function nl_default() {
9219
9639
  localeError: error29()
9220
9640
  };
9221
9641
  }
9222
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/no.js
9642
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/no.js
9223
9643
  var error30 = () => {
9224
9644
  const Sizable = {
9225
9645
  string: { unit: "tegn", verb: "å ha" },
@@ -9327,7 +9747,7 @@ function no_default() {
9327
9747
  localeError: error30()
9328
9748
  };
9329
9749
  }
9330
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ota.js
9750
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ota.js
9331
9751
  var error31 = () => {
9332
9752
  const Sizable = {
9333
9753
  string: { unit: "harf", verb: "olmalıdır" },
@@ -9436,7 +9856,7 @@ function ota_default() {
9436
9856
  localeError: error31()
9437
9857
  };
9438
9858
  }
9439
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ps.js
9859
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ps.js
9440
9860
  var error32 = () => {
9441
9861
  const Sizable = {
9442
9862
  string: { unit: "توکي", verb: "ولري" },
@@ -9550,7 +9970,7 @@ function ps_default() {
9550
9970
  localeError: error32()
9551
9971
  };
9552
9972
  }
9553
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/pl.js
9973
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pl.js
9554
9974
  var error33 = () => {
9555
9975
  const Sizable = {
9556
9976
  string: { unit: "znaków", verb: "mieć" },
@@ -9659,7 +10079,7 @@ function pl_default() {
9659
10079
  localeError: error33()
9660
10080
  };
9661
10081
  }
9662
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/pt.js
10082
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/pt.js
9663
10083
  var error34 = () => {
9664
10084
  const Sizable = {
9665
10085
  string: { unit: "caracteres", verb: "ter" },
@@ -9767,7 +10187,7 @@ function pt_default() {
9767
10187
  localeError: error34()
9768
10188
  };
9769
10189
  }
9770
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ru.js
10190
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ru.js
9771
10191
  function getRussianPlural(count, one, few, many) {
9772
10192
  const absCount = Math.abs(count);
9773
10193
  const lastDigit = absCount % 10;
@@ -9923,7 +10343,7 @@ function ru_default() {
9923
10343
  localeError: error35()
9924
10344
  };
9925
10345
  }
9926
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/sl.js
10346
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sl.js
9927
10347
  var error36 = () => {
9928
10348
  const Sizable = {
9929
10349
  string: { unit: "znakov", verb: "imeti" },
@@ -10032,7 +10452,7 @@ function sl_default() {
10032
10452
  localeError: error36()
10033
10453
  };
10034
10454
  }
10035
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/sv.js
10455
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/sv.js
10036
10456
  var error37 = () => {
10037
10457
  const Sizable = {
10038
10458
  string: { unit: "tecken", verb: "att ha" },
@@ -10142,7 +10562,7 @@ function sv_default() {
10142
10562
  localeError: error37()
10143
10563
  };
10144
10564
  }
10145
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ta.js
10565
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ta.js
10146
10566
  var error38 = () => {
10147
10567
  const Sizable = {
10148
10568
  string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
@@ -10252,7 +10672,7 @@ function ta_default() {
10252
10672
  localeError: error38()
10253
10673
  };
10254
10674
  }
10255
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/th.js
10675
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/th.js
10256
10676
  var error39 = () => {
10257
10677
  const Sizable = {
10258
10678
  string: { unit: "ตัวอักษร", verb: "ควรมี" },
@@ -10362,7 +10782,7 @@ function th_default() {
10362
10782
  localeError: error39()
10363
10783
  };
10364
10784
  }
10365
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/tr.js
10785
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/tr.js
10366
10786
  var error40 = () => {
10367
10787
  const Sizable = {
10368
10788
  string: { unit: "karakter", verb: "olmalı" },
@@ -10467,7 +10887,7 @@ function tr_default() {
10467
10887
  localeError: error40()
10468
10888
  };
10469
10889
  }
10470
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/uk.js
10890
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uk.js
10471
10891
  var error41 = () => {
10472
10892
  const Sizable = {
10473
10893
  string: { unit: "символів", verb: "матиме" },
@@ -10576,11 +10996,11 @@ function uk_default() {
10576
10996
  };
10577
10997
  }
10578
10998
 
10579
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ua.js
10999
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ua.js
10580
11000
  function ua_default() {
10581
11001
  return uk_default();
10582
11002
  }
10583
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/ur.js
11003
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/ur.js
10584
11004
  var error42 = () => {
10585
11005
  const Sizable = {
10586
11006
  string: { unit: "حروف", verb: "ہونا" },
@@ -10690,7 +11110,7 @@ function ur_default() {
10690
11110
  localeError: error42()
10691
11111
  };
10692
11112
  }
10693
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/uz.js
11113
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/uz.js
10694
11114
  var error43 = () => {
10695
11115
  const Sizable = {
10696
11116
  string: { unit: "belgi", verb: "bo‘lishi kerak" },
@@ -10799,7 +11219,7 @@ function uz_default() {
10799
11219
  localeError: error43()
10800
11220
  };
10801
11221
  }
10802
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/vi.js
11222
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/vi.js
10803
11223
  var error44 = () => {
10804
11224
  const Sizable = {
10805
11225
  string: { unit: "ký tự", verb: "có" },
@@ -10907,7 +11327,7 @@ function vi_default() {
10907
11327
  localeError: error44()
10908
11328
  };
10909
11329
  }
10910
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/zh-CN.js
11330
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-CN.js
10911
11331
  var error45 = () => {
10912
11332
  const Sizable = {
10913
11333
  string: { unit: "字符", verb: "包含" },
@@ -11016,7 +11436,7 @@ function zh_CN_default() {
11016
11436
  localeError: error45()
11017
11437
  };
11018
11438
  }
11019
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/zh-TW.js
11439
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/zh-TW.js
11020
11440
  var error46 = () => {
11021
11441
  const Sizable = {
11022
11442
  string: { unit: "字元", verb: "擁有" },
@@ -11123,7 +11543,7 @@ function zh_TW_default() {
11123
11543
  localeError: error46()
11124
11544
  };
11125
11545
  }
11126
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/locales/yo.js
11546
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/locales/yo.js
11127
11547
  var error47 = () => {
11128
11548
  const Sizable = {
11129
11549
  string: { unit: "àmi", verb: "ní" },
@@ -11230,7 +11650,7 @@ function yo_default() {
11230
11650
  localeError: error47()
11231
11651
  };
11232
11652
  }
11233
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/registries.js
11653
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
11234
11654
  var _a;
11235
11655
  var $output = Symbol("ZodOutput");
11236
11656
  var $input = Symbol("ZodInput");
@@ -11280,7 +11700,7 @@ function registry() {
11280
11700
  }
11281
11701
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
11282
11702
  var globalRegistry = globalThis.__zod_globalRegistry;
11283
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/api.js
11703
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
11284
11704
  function _string(Class2, params) {
11285
11705
  return new Class2({
11286
11706
  type: "string",
@@ -11858,10 +12278,10 @@ function _property(property, schema, params) {
11858
12278
  ...normalizeParams(params)
11859
12279
  });
11860
12280
  }
11861
- function _mime(types, params) {
12281
+ function _mime(types2, params) {
11862
12282
  return new $ZodCheckMimeType({
11863
12283
  check: "mime_type",
11864
- mime: types,
12284
+ mime: types2,
11865
12285
  ...normalizeParams(params)
11866
12286
  });
11867
12287
  }
@@ -12184,13 +12604,13 @@ function _stringbool(Classes, _params) {
12184
12604
  });
12185
12605
  return codec;
12186
12606
  }
12187
- function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12607
+ function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
12188
12608
  const params = normalizeParams(_params);
12189
12609
  const def = {
12190
12610
  ...normalizeParams(_params),
12191
12611
  check: "string_format",
12192
12612
  type: "string",
12193
- format,
12613
+ format: format2,
12194
12614
  fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
12195
12615
  ...params
12196
12616
  };
@@ -12200,7 +12620,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12200
12620
  const inst = new Class2(def);
12201
12621
  return inst;
12202
12622
  }
12203
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.js
12623
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
12204
12624
  function initializeContext(params) {
12205
12625
  let target = params?.target ?? "draft-2020-12";
12206
12626
  if (target === "draft-4")
@@ -12396,7 +12816,7 @@ function finalize(ctx, schema) {
12396
12816
  }
12397
12817
  }
12398
12818
  }
12399
- if (refSchema.$ref) {
12819
+ if (refSchema.$ref && refSeen.def) {
12400
12820
  for (const key in schema2) {
12401
12821
  if (key === "$ref" || key === "allOf")
12402
12822
  continue;
@@ -12545,7 +12965,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
12545
12965
  extractDefs(ctx, schema);
12546
12966
  return finalize(ctx, schema);
12547
12967
  };
12548
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.js
12968
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
12549
12969
  var formatMap = {
12550
12970
  guid: "uuid",
12551
12971
  url: "uri",
@@ -12556,16 +12976,16 @@ var formatMap = {
12556
12976
  var stringProcessor = (schema, ctx, _json, _params) => {
12557
12977
  const json = _json;
12558
12978
  json.type = "string";
12559
- const { minimum, maximum, format, patterns: patterns2, contentEncoding } = schema._zod.bag;
12979
+ const { minimum, maximum, format: format2, patterns: patterns2, contentEncoding } = schema._zod.bag;
12560
12980
  if (typeof minimum === "number")
12561
12981
  json.minLength = minimum;
12562
12982
  if (typeof maximum === "number")
12563
12983
  json.maxLength = maximum;
12564
- if (format) {
12565
- json.format = formatMap[format] ?? format;
12984
+ if (format2) {
12985
+ json.format = formatMap[format2] ?? format2;
12566
12986
  if (json.format === "")
12567
12987
  delete json.format;
12568
- if (format === "time") {
12988
+ if (format2 === "time") {
12569
12989
  delete json.format;
12570
12990
  }
12571
12991
  }
@@ -12587,8 +13007,8 @@ var stringProcessor = (schema, ctx, _json, _params) => {
12587
13007
  };
12588
13008
  var numberProcessor = (schema, ctx, _json, _params) => {
12589
13009
  const json = _json;
12590
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
12591
- if (typeof format === "string" && format.includes("int"))
13010
+ const { minimum, maximum, format: format2, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
13011
+ if (typeof format2 === "string" && format2.includes("int"))
12592
13012
  json.type = "integer";
12593
13013
  else
12594
13014
  json.type = "number";
@@ -13090,7 +13510,7 @@ function toJSONSchema(input, params) {
13090
13510
  extractDefs(ctx, input);
13091
13511
  return finalize(ctx, input);
13092
13512
  }
13093
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/json-schema-generator.js
13513
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-generator.js
13094
13514
  class JSONSchemaGenerator {
13095
13515
  get metadataRegistry() {
13096
13516
  return this.ctx.metadataRegistry;
@@ -13149,9 +13569,9 @@ class JSONSchemaGenerator {
13149
13569
  return plainResult;
13150
13570
  }
13151
13571
  }
13152
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/core/json-schema.js
13572
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.js
13153
13573
  var exports_json_schema = {};
13154
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
13574
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13155
13575
  var exports_schemas2 = {};
13156
13576
  __export(exports_schemas2, {
13157
13577
  xor: () => xor,
@@ -13320,7 +13740,7 @@ __export(exports_schemas2, {
13320
13740
  ZodAny: () => ZodAny
13321
13741
  });
13322
13742
 
13323
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/checks.js
13743
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/checks.js
13324
13744
  var exports_checks2 = {};
13325
13745
  __export(exports_checks2, {
13326
13746
  uppercase: () => _uppercase,
@@ -13354,7 +13774,7 @@ __export(exports_checks2, {
13354
13774
  endsWith: () => _endsWith
13355
13775
  });
13356
13776
 
13357
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/iso.js
13777
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
13358
13778
  var exports_iso = {};
13359
13779
  __export(exports_iso, {
13360
13780
  time: () => time2,
@@ -13395,13 +13815,13 @@ function duration2(params) {
13395
13815
  return _isoDuration(ZodISODuration, params);
13396
13816
  }
13397
13817
 
13398
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/errors.js
13818
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
13399
13819
  var initializer2 = (inst, issues) => {
13400
13820
  $ZodError.init(inst, issues);
13401
13821
  inst.name = "ZodError";
13402
13822
  Object.defineProperties(inst, {
13403
13823
  format: {
13404
- value: (mapper) => formatError(inst, mapper)
13824
+ value: (mapper) => formatError2(inst, mapper)
13405
13825
  },
13406
13826
  flatten: {
13407
13827
  value: (mapper) => flattenError(inst, mapper)
@@ -13430,7 +13850,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
13430
13850
  Parent: Error
13431
13851
  });
13432
13852
 
13433
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/parse.js
13853
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
13434
13854
  var parse3 = /* @__PURE__ */ _parse(ZodRealError);
13435
13855
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
13436
13856
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -13444,7 +13864,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
13444
13864
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
13445
13865
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
13446
13866
 
13447
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/schemas.js
13867
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
13448
13868
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13449
13869
  $ZodType.init(inst, def);
13450
13870
  Object.assign(inst["~standard"], {
@@ -13458,7 +13878,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13458
13878
  inst.type = def.type;
13459
13879
  Object.defineProperty(inst, "_def", { value: def });
13460
13880
  inst.check = (...checks2) => {
13461
- return inst.clone(exports_util.mergeDefs(def, {
13881
+ return inst.clone(exports_util2.mergeDefs(def, {
13462
13882
  checks: [
13463
13883
  ...def.checks ?? [],
13464
13884
  ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
@@ -13631,7 +14051,7 @@ function httpUrl(params) {
13631
14051
  return _url(ZodURL, {
13632
14052
  protocol: /^https?$/,
13633
14053
  hostname: exports_regexes.domain,
13634
- ...exports_util.normalizeParams(params)
14054
+ ...exports_util2.normalizeParams(params)
13635
14055
  });
13636
14056
  }
13637
14057
  var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
@@ -13750,8 +14170,8 @@ var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat"
13750
14170
  $ZodCustomStringFormat.init(inst, def);
13751
14171
  ZodStringFormat.init(inst, def);
13752
14172
  });
13753
- function stringFormat(format, fnOrRegex, _params = {}) {
13754
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
14173
+ function stringFormat(format2, fnOrRegex, _params = {}) {
14174
+ return _stringFormat(ZodCustomStringFormat, format2, fnOrRegex, _params);
13755
14175
  }
13756
14176
  function hostname2(_params) {
13757
14177
  return _stringFormat(ZodCustomStringFormat, "hostname", exports_regexes.hostname, _params);
@@ -13761,11 +14181,11 @@ function hex2(_params) {
13761
14181
  }
13762
14182
  function hash(alg, params) {
13763
14183
  const enc = params?.enc ?? "hex";
13764
- const format = `${alg}_${enc}`;
13765
- const regex = exports_regexes[format];
14184
+ const format2 = `${alg}_${enc}`;
14185
+ const regex = exports_regexes[format2];
13766
14186
  if (!regex)
13767
- throw new Error(`Unrecognized hash format: ${format}`);
13768
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
14187
+ throw new Error(`Unrecognized hash format: ${format2}`);
14188
+ return _stringFormat(ZodCustomStringFormat, format2, regex, params);
13769
14189
  }
13770
14190
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
13771
14191
  $ZodNumber.init(inst, def);
@@ -13949,7 +14369,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13949
14369
  $ZodObjectJIT.init(inst, def);
13950
14370
  ZodType.init(inst, def);
13951
14371
  inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
13952
- exports_util.defineLazy(inst, "shape", () => {
14372
+ exports_util2.defineLazy(inst, "shape", () => {
13953
14373
  return def.shape;
13954
14374
  });
13955
14375
  inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
@@ -13959,22 +14379,22 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13959
14379
  inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13960
14380
  inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
13961
14381
  inst.extend = (incoming) => {
13962
- return exports_util.extend(inst, incoming);
14382
+ return exports_util2.extend(inst, incoming);
13963
14383
  };
13964
14384
  inst.safeExtend = (incoming) => {
13965
- return exports_util.safeExtend(inst, incoming);
14385
+ return exports_util2.safeExtend(inst, incoming);
13966
14386
  };
13967
- inst.merge = (other) => exports_util.merge(inst, other);
13968
- inst.pick = (mask) => exports_util.pick(inst, mask);
13969
- inst.omit = (mask) => exports_util.omit(inst, mask);
13970
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
13971
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
14387
+ inst.merge = (other) => exports_util2.merge(inst, other);
14388
+ inst.pick = (mask) => exports_util2.pick(inst, mask);
14389
+ inst.omit = (mask) => exports_util2.omit(inst, mask);
14390
+ inst.partial = (...args) => exports_util2.partial(ZodOptional, inst, args[0]);
14391
+ inst.required = (...args) => exports_util2.required(ZodNonOptional, inst, args[0]);
13972
14392
  });
13973
14393
  function object(shape, params) {
13974
14394
  const def = {
13975
14395
  type: "object",
13976
14396
  shape: shape ?? {},
13977
- ...exports_util.normalizeParams(params)
14397
+ ...exports_util2.normalizeParams(params)
13978
14398
  };
13979
14399
  return new ZodObject(def);
13980
14400
  }
@@ -13983,7 +14403,7 @@ function strictObject(shape, params) {
13983
14403
  type: "object",
13984
14404
  shape,
13985
14405
  catchall: never(),
13986
- ...exports_util.normalizeParams(params)
14406
+ ...exports_util2.normalizeParams(params)
13987
14407
  });
13988
14408
  }
13989
14409
  function looseObject(shape, params) {
@@ -13991,7 +14411,7 @@ function looseObject(shape, params) {
13991
14411
  type: "object",
13992
14412
  shape,
13993
14413
  catchall: unknown(),
13994
- ...exports_util.normalizeParams(params)
14414
+ ...exports_util2.normalizeParams(params)
13995
14415
  });
13996
14416
  }
13997
14417
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
@@ -14004,7 +14424,7 @@ function union(options, params) {
14004
14424
  return new ZodUnion({
14005
14425
  type: "union",
14006
14426
  options,
14007
- ...exports_util.normalizeParams(params)
14427
+ ...exports_util2.normalizeParams(params)
14008
14428
  });
14009
14429
  }
14010
14430
  var ZodXor = /* @__PURE__ */ $constructor("ZodXor", (inst, def) => {
@@ -14018,7 +14438,7 @@ function xor(options, params) {
14018
14438
  type: "union",
14019
14439
  options,
14020
14440
  inclusive: false,
14021
- ...exports_util.normalizeParams(params)
14441
+ ...exports_util2.normalizeParams(params)
14022
14442
  });
14023
14443
  }
14024
14444
  var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
@@ -14030,7 +14450,7 @@ function discriminatedUnion(discriminator, options, params) {
14030
14450
  type: "union",
14031
14451
  options,
14032
14452
  discriminator,
14033
- ...exports_util.normalizeParams(params)
14453
+ ...exports_util2.normalizeParams(params)
14034
14454
  });
14035
14455
  }
14036
14456
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
@@ -14062,7 +14482,7 @@ function tuple(items, _paramsOrRest, _params) {
14062
14482
  type: "tuple",
14063
14483
  items,
14064
14484
  rest,
14065
- ...exports_util.normalizeParams(params)
14485
+ ...exports_util2.normalizeParams(params)
14066
14486
  });
14067
14487
  }
14068
14488
  var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
@@ -14077,7 +14497,7 @@ function record(keyType, valueType, params) {
14077
14497
  type: "record",
14078
14498
  keyType,
14079
14499
  valueType,
14080
- ...exports_util.normalizeParams(params)
14500
+ ...exports_util2.normalizeParams(params)
14081
14501
  });
14082
14502
  }
14083
14503
  function partialRecord(keyType, valueType, params) {
@@ -14087,7 +14507,7 @@ function partialRecord(keyType, valueType, params) {
14087
14507
  type: "record",
14088
14508
  keyType: k,
14089
14509
  valueType,
14090
- ...exports_util.normalizeParams(params)
14510
+ ...exports_util2.normalizeParams(params)
14091
14511
  });
14092
14512
  }
14093
14513
  function looseRecord(keyType, valueType, params) {
@@ -14096,7 +14516,7 @@ function looseRecord(keyType, valueType, params) {
14096
14516
  keyType,
14097
14517
  valueType,
14098
14518
  mode: "loose",
14099
- ...exports_util.normalizeParams(params)
14519
+ ...exports_util2.normalizeParams(params)
14100
14520
  });
14101
14521
  }
14102
14522
  var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
@@ -14115,7 +14535,7 @@ function map(keyType, valueType, params) {
14115
14535
  type: "map",
14116
14536
  keyType,
14117
14537
  valueType,
14118
- ...exports_util.normalizeParams(params)
14538
+ ...exports_util2.normalizeParams(params)
14119
14539
  });
14120
14540
  }
14121
14541
  var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
@@ -14131,7 +14551,7 @@ function set(valueType, params) {
14131
14551
  return new ZodSet({
14132
14552
  type: "set",
14133
14553
  valueType,
14134
- ...exports_util.normalizeParams(params)
14554
+ ...exports_util2.normalizeParams(params)
14135
14555
  });
14136
14556
  }
14137
14557
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
@@ -14152,7 +14572,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
14152
14572
  return new ZodEnum({
14153
14573
  ...def,
14154
14574
  checks: [],
14155
- ...exports_util.normalizeParams(params),
14575
+ ...exports_util2.normalizeParams(params),
14156
14576
  entries: newEntries
14157
14577
  });
14158
14578
  };
@@ -14167,7 +14587,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
14167
14587
  return new ZodEnum({
14168
14588
  ...def,
14169
14589
  checks: [],
14170
- ...exports_util.normalizeParams(params),
14590
+ ...exports_util2.normalizeParams(params),
14171
14591
  entries: newEntries
14172
14592
  });
14173
14593
  };
@@ -14177,14 +14597,14 @@ function _enum2(values, params) {
14177
14597
  return new ZodEnum({
14178
14598
  type: "enum",
14179
14599
  entries,
14180
- ...exports_util.normalizeParams(params)
14600
+ ...exports_util2.normalizeParams(params)
14181
14601
  });
14182
14602
  }
14183
14603
  function nativeEnum(entries, params) {
14184
14604
  return new ZodEnum({
14185
14605
  type: "enum",
14186
14606
  entries,
14187
- ...exports_util.normalizeParams(params)
14607
+ ...exports_util2.normalizeParams(params)
14188
14608
  });
14189
14609
  }
14190
14610
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
@@ -14205,7 +14625,7 @@ function literal(value, params) {
14205
14625
  return new ZodLiteral({
14206
14626
  type: "literal",
14207
14627
  values: Array.isArray(value) ? value : [value],
14208
- ...exports_util.normalizeParams(params)
14628
+ ...exports_util2.normalizeParams(params)
14209
14629
  });
14210
14630
  }
14211
14631
  var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
@@ -14214,7 +14634,7 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
14214
14634
  inst._zod.processJSONSchema = (ctx, json, params) => fileProcessor(inst, ctx, json, params);
14215
14635
  inst.min = (size, params) => inst.check(_minSize(size, params));
14216
14636
  inst.max = (size, params) => inst.check(_maxSize(size, params));
14217
- inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
14637
+ inst.mime = (types2, params) => inst.check(_mime(Array.isArray(types2) ? types2 : [types2], params));
14218
14638
  });
14219
14639
  function file(params) {
14220
14640
  return _file(ZodFile, params);
@@ -14229,7 +14649,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14229
14649
  }
14230
14650
  payload.addIssue = (issue3) => {
14231
14651
  if (typeof issue3 === "string") {
14232
- payload.issues.push(exports_util.issue(issue3, payload.value, def));
14652
+ payload.issues.push(exports_util2.issue(issue3, payload.value, def));
14233
14653
  } else {
14234
14654
  const _issue = issue3;
14235
14655
  if (_issue.fatal)
@@ -14237,7 +14657,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14237
14657
  _issue.code ?? (_issue.code = "custom");
14238
14658
  _issue.input ?? (_issue.input = payload.value);
14239
14659
  _issue.inst ?? (_issue.inst = inst);
14240
- payload.issues.push(exports_util.issue(_issue));
14660
+ payload.issues.push(exports_util2.issue(_issue));
14241
14661
  }
14242
14662
  };
14243
14663
  const output = def.transform(payload.value, payload);
@@ -14308,7 +14728,7 @@ function _default2(innerType, defaultValue) {
14308
14728
  type: "default",
14309
14729
  innerType,
14310
14730
  get defaultValue() {
14311
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
14731
+ return typeof defaultValue === "function" ? defaultValue() : exports_util2.shallowClone(defaultValue);
14312
14732
  }
14313
14733
  });
14314
14734
  }
@@ -14323,7 +14743,7 @@ function prefault(innerType, defaultValue) {
14323
14743
  type: "prefault",
14324
14744
  innerType,
14325
14745
  get defaultValue() {
14326
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
14746
+ return typeof defaultValue === "function" ? defaultValue() : exports_util2.shallowClone(defaultValue);
14327
14747
  }
14328
14748
  });
14329
14749
  }
@@ -14337,7 +14757,7 @@ function nonoptional(innerType, params) {
14337
14757
  return new ZodNonOptional({
14338
14758
  type: "nonoptional",
14339
14759
  innerType,
14340
- ...exports_util.normalizeParams(params)
14760
+ ...exports_util2.normalizeParams(params)
14341
14761
  });
14342
14762
  }
14343
14763
  var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {
@@ -14422,7 +14842,7 @@ function templateLiteral(parts, params) {
14422
14842
  return new ZodTemplateLiteral({
14423
14843
  type: "template_literal",
14424
14844
  parts,
14425
- ...exports_util.normalizeParams(params)
14845
+ ...exports_util2.normalizeParams(params)
14426
14846
  });
14427
14847
  }
14428
14848
  var ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
@@ -14490,7 +14910,7 @@ function _instanceof(cls, params = {}) {
14490
14910
  check: "custom",
14491
14911
  fn: (data) => data instanceof cls,
14492
14912
  abort: true,
14493
- ...exports_util.normalizeParams(params)
14913
+ ...exports_util2.normalizeParams(params)
14494
14914
  });
14495
14915
  inst._zod.bag.Class = cls;
14496
14916
  inst._zod.check = (payload) => {
@@ -14520,7 +14940,7 @@ function json(params) {
14520
14940
  function preprocess(fn, schema) {
14521
14941
  return pipe(transform(fn), schema);
14522
14942
  }
14523
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/compat.js
14943
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
14524
14944
  var ZodIssueCode = {
14525
14945
  invalid_type: "invalid_type",
14526
14946
  too_big: "too_big",
@@ -14544,7 +14964,7 @@ function getErrorMap() {
14544
14964
  }
14545
14965
  var ZodFirstPartyTypeKind;
14546
14966
  (function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
14547
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/from-json-schema.js
14967
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js
14548
14968
  var z = {
14549
14969
  ...exports_schemas2,
14550
14970
  ...exports_checks2,
@@ -14724,52 +15144,52 @@ function convertBaseSchema(schema, ctx) {
14724
15144
  case "string": {
14725
15145
  let stringSchema = z.string();
14726
15146
  if (schema.format) {
14727
- const format = schema.format;
14728
- if (format === "email") {
15147
+ const format2 = schema.format;
15148
+ if (format2 === "email") {
14729
15149
  stringSchema = stringSchema.check(z.email());
14730
- } else if (format === "uri" || format === "uri-reference") {
15150
+ } else if (format2 === "uri" || format2 === "uri-reference") {
14731
15151
  stringSchema = stringSchema.check(z.url());
14732
- } else if (format === "uuid" || format === "guid") {
15152
+ } else if (format2 === "uuid" || format2 === "guid") {
14733
15153
  stringSchema = stringSchema.check(z.uuid());
14734
- } else if (format === "date-time") {
15154
+ } else if (format2 === "date-time") {
14735
15155
  stringSchema = stringSchema.check(z.iso.datetime());
14736
- } else if (format === "date") {
15156
+ } else if (format2 === "date") {
14737
15157
  stringSchema = stringSchema.check(z.iso.date());
14738
- } else if (format === "time") {
15158
+ } else if (format2 === "time") {
14739
15159
  stringSchema = stringSchema.check(z.iso.time());
14740
- } else if (format === "duration") {
15160
+ } else if (format2 === "duration") {
14741
15161
  stringSchema = stringSchema.check(z.iso.duration());
14742
- } else if (format === "ipv4") {
15162
+ } else if (format2 === "ipv4") {
14743
15163
  stringSchema = stringSchema.check(z.ipv4());
14744
- } else if (format === "ipv6") {
15164
+ } else if (format2 === "ipv6") {
14745
15165
  stringSchema = stringSchema.check(z.ipv6());
14746
- } else if (format === "mac") {
15166
+ } else if (format2 === "mac") {
14747
15167
  stringSchema = stringSchema.check(z.mac());
14748
- } else if (format === "cidr") {
15168
+ } else if (format2 === "cidr") {
14749
15169
  stringSchema = stringSchema.check(z.cidrv4());
14750
- } else if (format === "cidr-v6") {
15170
+ } else if (format2 === "cidr-v6") {
14751
15171
  stringSchema = stringSchema.check(z.cidrv6());
14752
- } else if (format === "base64") {
15172
+ } else if (format2 === "base64") {
14753
15173
  stringSchema = stringSchema.check(z.base64());
14754
- } else if (format === "base64url") {
15174
+ } else if (format2 === "base64url") {
14755
15175
  stringSchema = stringSchema.check(z.base64url());
14756
- } else if (format === "e164") {
15176
+ } else if (format2 === "e164") {
14757
15177
  stringSchema = stringSchema.check(z.e164());
14758
- } else if (format === "jwt") {
15178
+ } else if (format2 === "jwt") {
14759
15179
  stringSchema = stringSchema.check(z.jwt());
14760
- } else if (format === "emoji") {
15180
+ } else if (format2 === "emoji") {
14761
15181
  stringSchema = stringSchema.check(z.emoji());
14762
- } else if (format === "nanoid") {
15182
+ } else if (format2 === "nanoid") {
14763
15183
  stringSchema = stringSchema.check(z.nanoid());
14764
- } else if (format === "cuid") {
15184
+ } else if (format2 === "cuid") {
14765
15185
  stringSchema = stringSchema.check(z.cuid());
14766
- } else if (format === "cuid2") {
15186
+ } else if (format2 === "cuid2") {
14767
15187
  stringSchema = stringSchema.check(z.cuid2());
14768
- } else if (format === "ulid") {
15188
+ } else if (format2 === "ulid") {
14769
15189
  stringSchema = stringSchema.check(z.ulid());
14770
- } else if (format === "xid") {
15190
+ } else if (format2 === "xid") {
14771
15191
  stringSchema = stringSchema.check(z.xid());
14772
- } else if (format === "ksuid") {
15192
+ } else if (format2 === "ksuid") {
14773
15193
  stringSchema = stringSchema.check(z.ksuid());
14774
15194
  }
14775
15195
  }
@@ -15005,7 +15425,7 @@ function fromJSONSchema(schema, params) {
15005
15425
  };
15006
15426
  return convertSchema(schema, ctx);
15007
15427
  }
15008
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/coerce.js
15428
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
15009
15429
  var exports_coerce = {};
15010
15430
  __export(exports_coerce, {
15011
15431
  string: () => string3,
@@ -15030,7 +15450,7 @@ function date4(params) {
15030
15450
  return _coercedDate(ZodDate, params);
15031
15451
  }
15032
15452
 
15033
- // ../../../node_modules/.bun/zod@4.3.5/node_modules/zod/v4/classic/external.js
15453
+ // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
15034
15454
  config(en_default());
15035
15455
  // ../../types/src/zod/primitives.ts
15036
15456
  var IsoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
@@ -15047,7 +15467,7 @@ var TimebackSubject = exports_external.enum([
15047
15467
  "Math",
15048
15468
  "None",
15049
15469
  "Other"
15050
- ]);
15470
+ ]).meta({ id: "TimebackSubject", description: "Subject area" });
15051
15471
  var TimebackGrade = exports_external.union([
15052
15472
  exports_external.literal(-1),
15053
15473
  exports_external.literal(0),
@@ -15064,7 +15484,10 @@ var TimebackGrade = exports_external.union([
15064
15484
  exports_external.literal(11),
15065
15485
  exports_external.literal(12),
15066
15486
  exports_external.literal(13)
15067
- ]);
15487
+ ]).meta({
15488
+ id: "TimebackGrade",
15489
+ description: "Grade level (-1 = Pre-K, 0 = K, 1-12 = grades, 13 = AP)"
15490
+ });
15068
15491
  var ScoreStatus = exports_external.enum([
15069
15492
  "exempt",
15070
15493
  "fully graded",
@@ -15209,6 +15632,8 @@ var ActivityCompletedInput = exports_external.object({
15209
15632
  metricsId: exports_external.string().optional(),
15210
15633
  id: exports_external.string().optional(),
15211
15634
  extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
15635
+ edApp: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional(),
15636
+ session: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional(),
15212
15637
  attempt: exports_external.number().int().min(1).optional(),
15213
15638
  generatedExtensions: exports_external.object({
15214
15639
  pctCompleteApp: exports_external.number().optional()
@@ -15221,7 +15646,9 @@ var TimeSpentInput = exports_external.object({
15221
15646
  eventTime: IsoDateTimeString.optional(),
15222
15647
  metricsId: exports_external.string().optional(),
15223
15648
  id: exports_external.string().optional(),
15224
- extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
15649
+ extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
15650
+ edApp: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional(),
15651
+ session: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional()
15225
15652
  }).strict();
15226
15653
  var TimebackEvent = exports_external.union([TimebackActivityEvent, TimebackTimeSpentEvent]);
15227
15654
  var CaliperEnvelope = exports_external.object({
@@ -15296,62 +15723,84 @@ var CaliperListEventsParams = exports_external.object({
15296
15723
  }).strict();
15297
15724
  // ../../types/src/zod/config.ts
15298
15725
  var CourseIds = exports_external.object({
15299
- staging: exports_external.string().optional(),
15300
- production: exports_external.string().optional()
15301
- });
15302
- var CourseType = exports_external.enum(["base", "hole-filling", "optional"]);
15303
- var PublishStatus = exports_external.enum(["draft", "testing", "published", "deactivated"]);
15726
+ staging: exports_external.string().meta({ description: "Course ID in staging environment" }).optional(),
15727
+ production: exports_external.string().meta({ description: "Course ID in production environment" }).optional()
15728
+ }).meta({ id: "CourseIds", description: "Environment-specific course IDs (populated by sync)" });
15729
+ var CourseType = exports_external.enum(["base", "hole-filling", "optional"]).meta({ id: "CourseType", description: "Course classification type" });
15730
+ var PublishStatus = exports_external.enum(["draft", "testing", "published", "deactivated"]).meta({ id: "PublishStatus", description: "Course publication status" });
15304
15731
  var CourseGoals = exports_external.object({
15305
- dailyXp: exports_external.number().int().positive().optional(),
15306
- dailyLessons: exports_external.number().int().positive().optional(),
15307
- dailyActiveMinutes: exports_external.number().int().positive().optional(),
15308
- dailyAccuracy: exports_external.number().int().min(0).max(100).optional(),
15309
- dailyMasteredUnits: exports_external.number().int().positive().optional()
15310
- });
15732
+ dailyXp: exports_external.number().int().positive().meta({ description: "Target XP to earn per day" }).optional(),
15733
+ dailyLessons: exports_external.number().int().positive().meta({ description: "Target lessons to complete per day" }).optional(),
15734
+ dailyActiveMinutes: exports_external.number().int().positive().meta({ description: "Target active learning minutes per day" }).optional(),
15735
+ dailyAccuracy: exports_external.number().int().min(0).max(100).meta({ description: "Target accuracy percentage (0-100)" }).optional(),
15736
+ dailyMasteredUnits: exports_external.number().int().positive().meta({ description: "Target units to master per day" }).optional()
15737
+ }).meta({ id: "CourseGoals", description: "Daily learning goals for a course" });
15311
15738
  var CourseMetrics = exports_external.object({
15312
- totalXp: exports_external.number().int().positive().optional(),
15313
- totalLessons: exports_external.number().int().positive().optional(),
15314
- totalGrades: exports_external.number().int().positive().optional()
15315
- });
15739
+ totalXp: exports_external.number().int().positive().meta({ description: "Total XP available in the course" }).optional(),
15740
+ totalLessons: exports_external.number().int().positive().meta({ description: "Total number of lessons/activities" }).optional(),
15741
+ totalGrades: exports_external.number().int().positive().meta({ description: "Total grade levels covered" }).optional()
15742
+ }).meta({ id: "CourseMetrics", description: "Aggregate metrics for a course" });
15316
15743
  var CourseMetadata = exports_external.object({
15317
15744
  courseType: CourseType.optional(),
15318
- isSupplemental: exports_external.boolean().optional(),
15319
- isCustom: exports_external.boolean().optional(),
15745
+ isSupplemental: exports_external.boolean().meta({ description: "Whether this is supplemental to a base course" }).optional(),
15746
+ isCustom: exports_external.boolean().meta({ description: "Whether this is a custom course for an individual student" }).optional(),
15320
15747
  publishStatus: PublishStatus.optional(),
15321
- contactEmail: exports_external.email().optional(),
15322
- primaryApp: exports_external.string().optional(),
15748
+ contactEmail: exports_external.email().meta({ description: "Contact email for course issues" }).optional(),
15749
+ primaryApp: exports_external.string().meta({ description: "Primary application identifier" }).optional(),
15323
15750
  goals: CourseGoals.optional(),
15324
15751
  metrics: CourseMetrics.optional()
15325
- });
15752
+ }).meta({ id: "CourseMetadata", description: "Course metadata (matches API metadata object)" });
15326
15753
  var CourseDefaults = exports_external.object({
15327
- courseCode: exports_external.string().optional(),
15328
- level: exports_external.string().optional(),
15754
+ courseCode: exports_external.string().meta({ description: "Course code (e.g., 'MATH101')" }).optional(),
15755
+ level: exports_external.string().meta({ description: "Course level (e.g., 'AP', 'Honors')" }).optional(),
15329
15756
  metadata: CourseMetadata.optional()
15757
+ }).meta({
15758
+ id: "CourseDefaults",
15759
+ description: "Default properties that apply to all courses unless overridden"
15330
15760
  });
15331
15761
  var CourseEnvOverrides = exports_external.object({
15332
- level: exports_external.string().optional(),
15333
- sensor: exports_external.string().url().optional(),
15334
- launchUrl: exports_external.string().url().optional(),
15762
+ level: exports_external.string().meta({ description: "Course level for this environment" }).optional(),
15763
+ sensor: exports_external.url().meta({ description: "Caliper sensor endpoint URL for this environment" }).optional(),
15764
+ launchUrl: exports_external.url().meta({ description: "LTI launch URL for this environment" }).optional(),
15335
15765
  metadata: CourseMetadata.optional()
15766
+ }).meta({
15767
+ id: "CourseEnvOverrides",
15768
+ description: "Environment-specific course overrides (non-identity fields)"
15336
15769
  });
15337
15770
  var CourseOverrides = exports_external.object({
15338
- staging: CourseEnvOverrides.optional(),
15339
- production: CourseEnvOverrides.optional()
15340
- });
15771
+ staging: CourseEnvOverrides.meta({
15772
+ description: "Overrides for staging environment"
15773
+ }).optional(),
15774
+ production: CourseEnvOverrides.meta({
15775
+ description: "Overrides for production environment"
15776
+ }).optional()
15777
+ }).meta({ id: "CourseOverrides", description: "Per-environment course overrides" });
15341
15778
  var CourseConfig = CourseDefaults.extend({
15342
- subject: TimebackSubject,
15343
- grade: TimebackGrade.optional(),
15779
+ subject: TimebackSubject.meta({ description: "Subject area for this course" }),
15780
+ grade: TimebackGrade.meta({
15781
+ description: "Grade level (-1 = Pre-K, 0 = K, 1-12 = grades, 13 = AP)"
15782
+ }).optional(),
15344
15783
  ids: CourseIds.nullable().optional(),
15345
- sensor: exports_external.string().url().optional(),
15346
- launchUrl: exports_external.string().url().optional(),
15784
+ sensor: exports_external.url().meta({ description: "Caliper sensor endpoint URL for this course" }).optional(),
15785
+ launchUrl: exports_external.url().meta({ description: "LTI launch URL for this course" }).optional(),
15347
15786
  overrides: CourseOverrides.optional()
15787
+ }).meta({
15788
+ id: "CourseConfig",
15789
+ description: "Configuration for a single course. Must have either grade or courseCode (or both)."
15348
15790
  });
15349
15791
  var TimebackConfig = exports_external.object({
15350
- name: exports_external.string().min(1, "App name is required"),
15351
- defaults: CourseDefaults.optional(),
15352
- courses: exports_external.array(CourseConfig).min(1, "At least one course is required"),
15353
- sensor: exports_external.string().url().optional(),
15354
- launchUrl: exports_external.string().url().optional()
15792
+ $schema: exports_external.string().meta({ description: "JSON Schema reference for editor support" }).optional(),
15793
+ name: exports_external.string().min(1, "App name is required").meta({ description: "Display name for your app" }),
15794
+ defaults: CourseDefaults.meta({
15795
+ description: "Default properties applied to all courses"
15796
+ }).optional(),
15797
+ courses: exports_external.array(CourseConfig).min(1, "At least one course is required").meta({ description: "Courses available in this app" }),
15798
+ sensor: exports_external.url().meta({ description: "Default Caliper sensor endpoint URL for all courses" }).optional(),
15799
+ launchUrl: exports_external.url().meta({ description: "Default LTI launch URL for all courses" }).optional()
15800
+ }).meta({
15801
+ id: "TimebackConfig",
15802
+ title: "Timeback Config",
15803
+ description: "Configuration schema for timeback.config.json files"
15355
15804
  }).refine((config2) => {
15356
15805
  return config2.courses.every((c) => c.grade !== undefined || c.courseCode !== undefined);
15357
15806
  }, {
@@ -15372,18 +15821,24 @@ var TimebackConfig = exports_external.object({
15372
15821
  message: "Duplicate courseCode found; each must be unique",
15373
15822
  path: ["courses"]
15374
15823
  }).refine((config2) => {
15375
- return config2.courses.every((c) => c.sensor !== undefined || config2.sensor !== undefined);
15376
- }, {
15377
- message: "Each course must have an effective sensor; set a top-level `sensor` or per-course `sensor`",
15378
- path: ["courses"]
15379
- }).refine((config2) => {
15380
- return config2.courses.every((c) => c.launchUrl !== undefined || config2.launchUrl !== undefined);
15824
+ return config2.courses.every((c) => {
15825
+ if (c.sensor !== undefined || config2.sensor !== undefined) {
15826
+ return true;
15827
+ }
15828
+ const launchUrls = [
15829
+ c.launchUrl,
15830
+ config2.launchUrl,
15831
+ c.overrides?.staging?.launchUrl,
15832
+ c.overrides?.production?.launchUrl
15833
+ ].filter(Boolean);
15834
+ return launchUrls.length > 0;
15835
+ });
15381
15836
  }, {
15382
- message: "Each course must have an effective launchUrl; set a top-level `launchUrl` or per-course `launchUrl`",
15837
+ message: "Each course must have an effective sensor. Either set `sensor` explicitly (top-level or per-course), or provide a `launchUrl` so sensor can be derived from its origin.",
15383
15838
  path: ["courses"]
15384
15839
  });
15385
15840
  // ../../types/src/zod/edubridge.ts
15386
- var EdubridgeDateString = exports_external.union([IsoDateString, IsoDateTimeString]);
15841
+ var EdubridgeDateString = exports_external.union([IsoDateTimeString, IsoDateString]);
15387
15842
  var EduBridgeEnrollment = exports_external.object({
15388
15843
  id: exports_external.string(),
15389
15844
  role: exports_external.string(),
@@ -15447,12 +15902,9 @@ var EmailOrStudentId = exports_external.object({
15447
15902
  });
15448
15903
  var SubjectTrackInput = exports_external.object({
15449
15904
  subject: NonEmptyString,
15450
- gradeLevel: NonEmptyString,
15451
- targetCourseId: NonEmptyString,
15452
- metadata: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
15453
- });
15454
- var SubjectTrackUpsertInput = SubjectTrackInput.extend({
15455
- id: NonEmptyString
15905
+ grade: NonEmptyString,
15906
+ courseId: NonEmptyString,
15907
+ orgSourcedId: NonEmptyString.optional()
15456
15908
  });
15457
15909
  var EdubridgeListEnrollmentsParams = exports_external.object({
15458
15910
  userId: NonEmptyString
@@ -16631,7 +17083,7 @@ class Paginator2 extends Paginator {
16631
17083
  params: requestParams,
16632
17084
  max,
16633
17085
  unwrapKey,
16634
- logger: log2,
17086
+ logger: log3,
16635
17087
  transform: transform2,
16636
17088
  paginationStyle: "offset"
16637
17089
  });
@@ -16725,7 +17177,7 @@ function createPowerPathClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16725
17177
  const resolved = resolveToProvider2(config3, registry2);
16726
17178
  if (resolved.mode === "transport") {
16727
17179
  this.transport = resolved.transport;
16728
- log2.info("Client initialized with custom transport");
17180
+ log3.info("Client initialized with custom transport");
16729
17181
  } else {
16730
17182
  const { provider } = resolved;
16731
17183
  const { baseUrl, paths } = provider.getEndpointWithPaths("powerpath");
@@ -16740,7 +17192,7 @@ function createPowerPathClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16740
17192
  timeout: provider.timeout,
16741
17193
  paths
16742
17194
  });
16743
- log2.info("Client initialized", {
17195
+ log3.info("Client initialized", {
16744
17196
  platform: provider.platform,
16745
17197
  env: provider.env,
16746
17198
  baseUrl