@timeback/powerpath 0.1.2 → 0.1.4

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
  }
@@ -1279,43 +1673,43 @@ function escapeValue(value) {
1279
1673
  }
1280
1674
  return value.replaceAll("'", "''");
1281
1675
  }
1282
- function formatValue2(value) {
1676
+ function formatValue3(value) {
1283
1677
  const escaped = escapeValue(value);
1284
1678
  const needsQuotes = typeof value === "string" || value instanceof Date;
1285
1679
  return needsQuotes ? `'${escaped}'` : escaped;
1286
1680
  }
1287
1681
  function fieldToConditions(field, condition) {
1288
1682
  if (typeof condition === "string" || typeof condition === "number" || typeof condition === "boolean" || condition instanceof Date) {
1289
- return [`${field}=${formatValue2(condition)}`];
1683
+ return [`${field}=${formatValue3(condition)}`];
1290
1684
  }
1291
1685
  if (typeof condition === "object" && condition !== null) {
1292
1686
  const ops = condition;
1293
1687
  const conditions = [];
1294
1688
  if (ops.ne !== undefined) {
1295
- conditions.push(`${field}!=${formatValue2(ops.ne)}`);
1689
+ conditions.push(`${field}!=${formatValue3(ops.ne)}`);
1296
1690
  }
1297
1691
  if (ops.gt !== undefined) {
1298
- conditions.push(`${field}>${formatValue2(ops.gt)}`);
1692
+ conditions.push(`${field}>${formatValue3(ops.gt)}`);
1299
1693
  }
1300
1694
  if (ops.gte !== undefined) {
1301
- conditions.push(`${field}>=${formatValue2(ops.gte)}`);
1695
+ conditions.push(`${field}>=${formatValue3(ops.gte)}`);
1302
1696
  }
1303
1697
  if (ops.lt !== undefined) {
1304
- conditions.push(`${field}<${formatValue2(ops.lt)}`);
1698
+ conditions.push(`${field}<${formatValue3(ops.lt)}`);
1305
1699
  }
1306
1700
  if (ops.lte !== undefined) {
1307
- conditions.push(`${field}<=${formatValue2(ops.lte)}`);
1701
+ conditions.push(`${field}<=${formatValue3(ops.lte)}`);
1308
1702
  }
1309
1703
  if (ops.contains !== undefined) {
1310
- conditions.push(`${field}~${formatValue2(ops.contains)}`);
1704
+ conditions.push(`${field}~${formatValue3(ops.contains)}`);
1311
1705
  }
1312
1706
  if (ops.in !== undefined && ops.in.length > 0) {
1313
- const inConditions = ops.in.map((v) => `${field}=${formatValue2(v)}`);
1707
+ const inConditions = ops.in.map((v) => `${field}=${formatValue3(v)}`);
1314
1708
  const joined = inConditions.join(" OR ");
1315
1709
  conditions.push(inConditions.length > 1 ? `(${joined})` : joined);
1316
1710
  }
1317
1711
  if (ops.notIn !== undefined && ops.notIn.length > 0) {
1318
- const notInConditions = ops.notIn.map((v) => `${field}!=${formatValue2(v)}`);
1712
+ const notInConditions = ops.notIn.map((v) => `${field}!=${formatValue3(v)}`);
1319
1713
  conditions.push(notInConditions.join(" AND "));
1320
1714
  }
1321
1715
  return conditions;
@@ -1510,13 +1904,13 @@ function resolveToProvider2(config, registry = DEFAULT_PROVIDER_REGISTRY) {
1510
1904
  }
1511
1905
 
1512
1906
  // src/utils.ts
1513
- var log2 = createScopedLogger("powerpath");
1907
+ var log3 = createScopedLogger("powerpath");
1514
1908
 
1515
1909
  // src/lib/transport.ts
1516
1910
  class Transport extends BaseTransport {
1517
1911
  paths;
1518
1912
  constructor(config) {
1519
- super({ config, logger: log2 });
1913
+ super({ config, logger: log3 });
1520
1914
  this.paths = config.paths;
1521
1915
  }
1522
1916
  async requestPaginated(path, options = {}) {
@@ -1536,7 +1930,7 @@ __export(exports_external, {
1536
1930
  uuidv6: () => uuidv6,
1537
1931
  uuidv4: () => uuidv4,
1538
1932
  uuid: () => uuid2,
1539
- util: () => exports_util,
1933
+ util: () => exports_util2,
1540
1934
  url: () => url,
1541
1935
  uppercase: () => _uppercase,
1542
1936
  unknown: () => unknown,
@@ -1645,7 +2039,7 @@ __export(exports_external, {
1645
2039
  getErrorMap: () => getErrorMap,
1646
2040
  function: () => _function,
1647
2041
  fromJSONSchema: () => fromJSONSchema,
1648
- formatError: () => formatError,
2042
+ formatError: () => formatError2,
1649
2043
  float64: () => float64,
1650
2044
  float32: () => float32,
1651
2045
  flattenError: () => flattenError,
@@ -1771,7 +2165,7 @@ __export(exports_external, {
1771
2165
  var exports_core2 = {};
1772
2166
  __export(exports_core2, {
1773
2167
  version: () => version,
1774
- util: () => exports_util,
2168
+ util: () => exports_util2,
1775
2169
  treeifyError: () => treeifyError,
1776
2170
  toJSONSchema: () => toJSONSchema,
1777
2171
  toDotPath: () => toDotPath,
@@ -1795,7 +2189,7 @@ __export(exports_core2, {
1795
2189
  initializeContext: () => initializeContext,
1796
2190
  globalRegistry: () => globalRegistry,
1797
2191
  globalConfig: () => globalConfig,
1798
- formatError: () => formatError,
2192
+ formatError: () => formatError2,
1799
2193
  flattenError: () => flattenError,
1800
2194
  finalize: () => finalize,
1801
2195
  extractDefs: () => extractDefs,
@@ -2122,8 +2516,8 @@ function config(newConfig) {
2122
2516
  return globalConfig;
2123
2517
  }
2124
2518
  // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
2125
- var exports_util = {};
2126
- __export(exports_util, {
2519
+ var exports_util2 = {};
2520
+ __export(exports_util2, {
2127
2521
  unwrapMessage: () => unwrapMessage,
2128
2522
  uint8ArrayToHex: () => uint8ArrayToHex,
2129
2523
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -2153,7 +2547,7 @@ __export(exports_util, {
2153
2547
  joinValues: () => joinValues,
2154
2548
  issue: () => issue2,
2155
2549
  isPlainObject: () => isPlainObject,
2156
- isObject: () => isObject,
2550
+ isObject: () => isObject2,
2157
2551
  hexToUint8Array: () => hexToUint8Array,
2158
2552
  getSizableOrigin: () => getSizableOrigin,
2159
2553
  getParsedType: () => getParsedType,
@@ -2322,7 +2716,7 @@ function slugify(input) {
2322
2716
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
2323
2717
  }
2324
2718
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
2325
- function isObject(data) {
2719
+ function isObject2(data) {
2326
2720
  return typeof data === "object" && data !== null && !Array.isArray(data);
2327
2721
  }
2328
2722
  var allowsEval = cached(() => {
@@ -2338,7 +2732,7 @@ var allowsEval = cached(() => {
2338
2732
  }
2339
2733
  });
2340
2734
  function isPlainObject(o) {
2341
- if (isObject(o) === false)
2735
+ if (isObject2(o) === false)
2342
2736
  return false;
2343
2737
  const ctor = o.constructor;
2344
2738
  if (ctor === undefined)
@@ -2346,7 +2740,7 @@ function isPlainObject(o) {
2346
2740
  if (typeof ctor !== "function")
2347
2741
  return true;
2348
2742
  const prot = ctor.prototype;
2349
- if (isObject(prot) === false)
2743
+ if (isObject2(prot) === false)
2350
2744
  return false;
2351
2745
  if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
2352
2746
  return false;
@@ -2827,7 +3221,7 @@ function flattenError(error, mapper = (issue3) => issue3.message) {
2827
3221
  }
2828
3222
  return { formErrors, fieldErrors };
2829
3223
  }
2830
- function formatError(error, mapper = (issue3) => issue3.message) {
3224
+ function formatError2(error, mapper = (issue3) => issue3.message) {
2831
3225
  const fieldErrors = { _errors: [] };
2832
3226
  const processError = (error2) => {
2833
3227
  for (const issue3 of error2.issues) {
@@ -4352,15 +4746,15 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
4352
4746
  } catch (_err) {}
4353
4747
  }
4354
4748
  const input = payload.value;
4355
- const isDate = input instanceof Date;
4356
- const isValidDate = isDate && !Number.isNaN(input.getTime());
4749
+ const isDate2 = input instanceof Date;
4750
+ const isValidDate = isDate2 && !Number.isNaN(input.getTime());
4357
4751
  if (isValidDate)
4358
4752
  return payload;
4359
4753
  payload.issues.push({
4360
4754
  expected: "date",
4361
4755
  code: "invalid_type",
4362
4756
  input,
4363
- ...isDate ? { received: "Invalid Date" } : {},
4757
+ ...isDate2 ? { received: "Invalid Date" } : {},
4364
4758
  inst
4365
4759
  });
4366
4760
  return payload;
@@ -4499,13 +4893,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4499
4893
  }
4500
4894
  return propValues;
4501
4895
  });
4502
- const isObject2 = isObject;
4896
+ const isObject3 = isObject2;
4503
4897
  const catchall = def.catchall;
4504
4898
  let value;
4505
4899
  inst._zod.parse = (payload, ctx) => {
4506
4900
  value ?? (value = _normalized.value);
4507
4901
  const input = payload.value;
4508
- if (!isObject2(input)) {
4902
+ if (!isObject3(input)) {
4509
4903
  payload.issues.push({
4510
4904
  expected: "object",
4511
4905
  code: "invalid_type",
@@ -4603,7 +4997,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4603
4997
  return (payload, ctx) => fn(shape, payload, ctx);
4604
4998
  };
4605
4999
  let fastpass;
4606
- const isObject2 = isObject;
5000
+ const isObject3 = isObject2;
4607
5001
  const jit = !globalConfig.jitless;
4608
5002
  const allowsEval2 = allowsEval;
4609
5003
  const fastEnabled = jit && allowsEval2.value;
@@ -4612,7 +5006,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4612
5006
  inst._zod.parse = (payload, ctx) => {
4613
5007
  value ?? (value = _normalized.value);
4614
5008
  const input = payload.value;
4615
- if (!isObject2(input)) {
5009
+ if (!isObject3(input)) {
4616
5010
  payload.issues.push({
4617
5011
  expected: "object",
4618
5012
  code: "invalid_type",
@@ -4790,7 +5184,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4790
5184
  });
4791
5185
  inst._zod.parse = (payload, ctx) => {
4792
5186
  const input = payload.value;
4793
- if (!isObject(input)) {
5187
+ if (!isObject2(input)) {
4794
5188
  payload.issues.push({
4795
5189
  code: "invalid_type",
4796
5190
  expected: "object",
@@ -11884,10 +12278,10 @@ function _property(property, schema, params) {
11884
12278
  ...normalizeParams(params)
11885
12279
  });
11886
12280
  }
11887
- function _mime(types, params) {
12281
+ function _mime(types2, params) {
11888
12282
  return new $ZodCheckMimeType({
11889
12283
  check: "mime_type",
11890
- mime: types,
12284
+ mime: types2,
11891
12285
  ...normalizeParams(params)
11892
12286
  });
11893
12287
  }
@@ -12210,13 +12604,13 @@ function _stringbool(Classes, _params) {
12210
12604
  });
12211
12605
  return codec;
12212
12606
  }
12213
- function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12607
+ function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
12214
12608
  const params = normalizeParams(_params);
12215
12609
  const def = {
12216
12610
  ...normalizeParams(_params),
12217
12611
  check: "string_format",
12218
12612
  type: "string",
12219
- format,
12613
+ format: format2,
12220
12614
  fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
12221
12615
  ...params
12222
12616
  };
@@ -12582,16 +12976,16 @@ var formatMap = {
12582
12976
  var stringProcessor = (schema, ctx, _json, _params) => {
12583
12977
  const json = _json;
12584
12978
  json.type = "string";
12585
- const { minimum, maximum, format, patterns: patterns2, contentEncoding } = schema._zod.bag;
12979
+ const { minimum, maximum, format: format2, patterns: patterns2, contentEncoding } = schema._zod.bag;
12586
12980
  if (typeof minimum === "number")
12587
12981
  json.minLength = minimum;
12588
12982
  if (typeof maximum === "number")
12589
12983
  json.maxLength = maximum;
12590
- if (format) {
12591
- json.format = formatMap[format] ?? format;
12984
+ if (format2) {
12985
+ json.format = formatMap[format2] ?? format2;
12592
12986
  if (json.format === "")
12593
12987
  delete json.format;
12594
- if (format === "time") {
12988
+ if (format2 === "time") {
12595
12989
  delete json.format;
12596
12990
  }
12597
12991
  }
@@ -12613,8 +13007,8 @@ var stringProcessor = (schema, ctx, _json, _params) => {
12613
13007
  };
12614
13008
  var numberProcessor = (schema, ctx, _json, _params) => {
12615
13009
  const json = _json;
12616
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
12617
- 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"))
12618
13012
  json.type = "integer";
12619
13013
  else
12620
13014
  json.type = "number";
@@ -13427,7 +13821,7 @@ var initializer2 = (inst, issues) => {
13427
13821
  inst.name = "ZodError";
13428
13822
  Object.defineProperties(inst, {
13429
13823
  format: {
13430
- value: (mapper) => formatError(inst, mapper)
13824
+ value: (mapper) => formatError2(inst, mapper)
13431
13825
  },
13432
13826
  flatten: {
13433
13827
  value: (mapper) => flattenError(inst, mapper)
@@ -13484,7 +13878,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13484
13878
  inst.type = def.type;
13485
13879
  Object.defineProperty(inst, "_def", { value: def });
13486
13880
  inst.check = (...checks2) => {
13487
- return inst.clone(exports_util.mergeDefs(def, {
13881
+ return inst.clone(exports_util2.mergeDefs(def, {
13488
13882
  checks: [
13489
13883
  ...def.checks ?? [],
13490
13884
  ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
@@ -13657,7 +14051,7 @@ function httpUrl(params) {
13657
14051
  return _url(ZodURL, {
13658
14052
  protocol: /^https?$/,
13659
14053
  hostname: exports_regexes.domain,
13660
- ...exports_util.normalizeParams(params)
14054
+ ...exports_util2.normalizeParams(params)
13661
14055
  });
13662
14056
  }
13663
14057
  var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
@@ -13776,8 +14170,8 @@ var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat"
13776
14170
  $ZodCustomStringFormat.init(inst, def);
13777
14171
  ZodStringFormat.init(inst, def);
13778
14172
  });
13779
- function stringFormat(format, fnOrRegex, _params = {}) {
13780
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
14173
+ function stringFormat(format2, fnOrRegex, _params = {}) {
14174
+ return _stringFormat(ZodCustomStringFormat, format2, fnOrRegex, _params);
13781
14175
  }
13782
14176
  function hostname2(_params) {
13783
14177
  return _stringFormat(ZodCustomStringFormat, "hostname", exports_regexes.hostname, _params);
@@ -13787,11 +14181,11 @@ function hex2(_params) {
13787
14181
  }
13788
14182
  function hash(alg, params) {
13789
14183
  const enc = params?.enc ?? "hex";
13790
- const format = `${alg}_${enc}`;
13791
- const regex = exports_regexes[format];
14184
+ const format2 = `${alg}_${enc}`;
14185
+ const regex = exports_regexes[format2];
13792
14186
  if (!regex)
13793
- throw new Error(`Unrecognized hash format: ${format}`);
13794
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
14187
+ throw new Error(`Unrecognized hash format: ${format2}`);
14188
+ return _stringFormat(ZodCustomStringFormat, format2, regex, params);
13795
14189
  }
13796
14190
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
13797
14191
  $ZodNumber.init(inst, def);
@@ -13975,7 +14369,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13975
14369
  $ZodObjectJIT.init(inst, def);
13976
14370
  ZodType.init(inst, def);
13977
14371
  inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
13978
- exports_util.defineLazy(inst, "shape", () => {
14372
+ exports_util2.defineLazy(inst, "shape", () => {
13979
14373
  return def.shape;
13980
14374
  });
13981
14375
  inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
@@ -13985,22 +14379,22 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13985
14379
  inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
13986
14380
  inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
13987
14381
  inst.extend = (incoming) => {
13988
- return exports_util.extend(inst, incoming);
14382
+ return exports_util2.extend(inst, incoming);
13989
14383
  };
13990
14384
  inst.safeExtend = (incoming) => {
13991
- return exports_util.safeExtend(inst, incoming);
14385
+ return exports_util2.safeExtend(inst, incoming);
13992
14386
  };
13993
- inst.merge = (other) => exports_util.merge(inst, other);
13994
- inst.pick = (mask) => exports_util.pick(inst, mask);
13995
- inst.omit = (mask) => exports_util.omit(inst, mask);
13996
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
13997
- 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]);
13998
14392
  });
13999
14393
  function object(shape, params) {
14000
14394
  const def = {
14001
14395
  type: "object",
14002
14396
  shape: shape ?? {},
14003
- ...exports_util.normalizeParams(params)
14397
+ ...exports_util2.normalizeParams(params)
14004
14398
  };
14005
14399
  return new ZodObject(def);
14006
14400
  }
@@ -14009,7 +14403,7 @@ function strictObject(shape, params) {
14009
14403
  type: "object",
14010
14404
  shape,
14011
14405
  catchall: never(),
14012
- ...exports_util.normalizeParams(params)
14406
+ ...exports_util2.normalizeParams(params)
14013
14407
  });
14014
14408
  }
14015
14409
  function looseObject(shape, params) {
@@ -14017,7 +14411,7 @@ function looseObject(shape, params) {
14017
14411
  type: "object",
14018
14412
  shape,
14019
14413
  catchall: unknown(),
14020
- ...exports_util.normalizeParams(params)
14414
+ ...exports_util2.normalizeParams(params)
14021
14415
  });
14022
14416
  }
14023
14417
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
@@ -14030,7 +14424,7 @@ function union(options, params) {
14030
14424
  return new ZodUnion({
14031
14425
  type: "union",
14032
14426
  options,
14033
- ...exports_util.normalizeParams(params)
14427
+ ...exports_util2.normalizeParams(params)
14034
14428
  });
14035
14429
  }
14036
14430
  var ZodXor = /* @__PURE__ */ $constructor("ZodXor", (inst, def) => {
@@ -14044,7 +14438,7 @@ function xor(options, params) {
14044
14438
  type: "union",
14045
14439
  options,
14046
14440
  inclusive: false,
14047
- ...exports_util.normalizeParams(params)
14441
+ ...exports_util2.normalizeParams(params)
14048
14442
  });
14049
14443
  }
14050
14444
  var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
@@ -14056,7 +14450,7 @@ function discriminatedUnion(discriminator, options, params) {
14056
14450
  type: "union",
14057
14451
  options,
14058
14452
  discriminator,
14059
- ...exports_util.normalizeParams(params)
14453
+ ...exports_util2.normalizeParams(params)
14060
14454
  });
14061
14455
  }
14062
14456
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
@@ -14088,7 +14482,7 @@ function tuple(items, _paramsOrRest, _params) {
14088
14482
  type: "tuple",
14089
14483
  items,
14090
14484
  rest,
14091
- ...exports_util.normalizeParams(params)
14485
+ ...exports_util2.normalizeParams(params)
14092
14486
  });
14093
14487
  }
14094
14488
  var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
@@ -14103,7 +14497,7 @@ function record(keyType, valueType, params) {
14103
14497
  type: "record",
14104
14498
  keyType,
14105
14499
  valueType,
14106
- ...exports_util.normalizeParams(params)
14500
+ ...exports_util2.normalizeParams(params)
14107
14501
  });
14108
14502
  }
14109
14503
  function partialRecord(keyType, valueType, params) {
@@ -14113,7 +14507,7 @@ function partialRecord(keyType, valueType, params) {
14113
14507
  type: "record",
14114
14508
  keyType: k,
14115
14509
  valueType,
14116
- ...exports_util.normalizeParams(params)
14510
+ ...exports_util2.normalizeParams(params)
14117
14511
  });
14118
14512
  }
14119
14513
  function looseRecord(keyType, valueType, params) {
@@ -14122,7 +14516,7 @@ function looseRecord(keyType, valueType, params) {
14122
14516
  keyType,
14123
14517
  valueType,
14124
14518
  mode: "loose",
14125
- ...exports_util.normalizeParams(params)
14519
+ ...exports_util2.normalizeParams(params)
14126
14520
  });
14127
14521
  }
14128
14522
  var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
@@ -14141,7 +14535,7 @@ function map(keyType, valueType, params) {
14141
14535
  type: "map",
14142
14536
  keyType,
14143
14537
  valueType,
14144
- ...exports_util.normalizeParams(params)
14538
+ ...exports_util2.normalizeParams(params)
14145
14539
  });
14146
14540
  }
14147
14541
  var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
@@ -14157,7 +14551,7 @@ function set(valueType, params) {
14157
14551
  return new ZodSet({
14158
14552
  type: "set",
14159
14553
  valueType,
14160
- ...exports_util.normalizeParams(params)
14554
+ ...exports_util2.normalizeParams(params)
14161
14555
  });
14162
14556
  }
14163
14557
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
@@ -14178,7 +14572,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
14178
14572
  return new ZodEnum({
14179
14573
  ...def,
14180
14574
  checks: [],
14181
- ...exports_util.normalizeParams(params),
14575
+ ...exports_util2.normalizeParams(params),
14182
14576
  entries: newEntries
14183
14577
  });
14184
14578
  };
@@ -14193,7 +14587,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
14193
14587
  return new ZodEnum({
14194
14588
  ...def,
14195
14589
  checks: [],
14196
- ...exports_util.normalizeParams(params),
14590
+ ...exports_util2.normalizeParams(params),
14197
14591
  entries: newEntries
14198
14592
  });
14199
14593
  };
@@ -14203,14 +14597,14 @@ function _enum2(values, params) {
14203
14597
  return new ZodEnum({
14204
14598
  type: "enum",
14205
14599
  entries,
14206
- ...exports_util.normalizeParams(params)
14600
+ ...exports_util2.normalizeParams(params)
14207
14601
  });
14208
14602
  }
14209
14603
  function nativeEnum(entries, params) {
14210
14604
  return new ZodEnum({
14211
14605
  type: "enum",
14212
14606
  entries,
14213
- ...exports_util.normalizeParams(params)
14607
+ ...exports_util2.normalizeParams(params)
14214
14608
  });
14215
14609
  }
14216
14610
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
@@ -14231,7 +14625,7 @@ function literal(value, params) {
14231
14625
  return new ZodLiteral({
14232
14626
  type: "literal",
14233
14627
  values: Array.isArray(value) ? value : [value],
14234
- ...exports_util.normalizeParams(params)
14628
+ ...exports_util2.normalizeParams(params)
14235
14629
  });
14236
14630
  }
14237
14631
  var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
@@ -14240,7 +14634,7 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
14240
14634
  inst._zod.processJSONSchema = (ctx, json, params) => fileProcessor(inst, ctx, json, params);
14241
14635
  inst.min = (size, params) => inst.check(_minSize(size, params));
14242
14636
  inst.max = (size, params) => inst.check(_maxSize(size, params));
14243
- 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));
14244
14638
  });
14245
14639
  function file(params) {
14246
14640
  return _file(ZodFile, params);
@@ -14255,7 +14649,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14255
14649
  }
14256
14650
  payload.addIssue = (issue3) => {
14257
14651
  if (typeof issue3 === "string") {
14258
- payload.issues.push(exports_util.issue(issue3, payload.value, def));
14652
+ payload.issues.push(exports_util2.issue(issue3, payload.value, def));
14259
14653
  } else {
14260
14654
  const _issue = issue3;
14261
14655
  if (_issue.fatal)
@@ -14263,7 +14657,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14263
14657
  _issue.code ?? (_issue.code = "custom");
14264
14658
  _issue.input ?? (_issue.input = payload.value);
14265
14659
  _issue.inst ?? (_issue.inst = inst);
14266
- payload.issues.push(exports_util.issue(_issue));
14660
+ payload.issues.push(exports_util2.issue(_issue));
14267
14661
  }
14268
14662
  };
14269
14663
  const output = def.transform(payload.value, payload);
@@ -14334,7 +14728,7 @@ function _default2(innerType, defaultValue) {
14334
14728
  type: "default",
14335
14729
  innerType,
14336
14730
  get defaultValue() {
14337
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
14731
+ return typeof defaultValue === "function" ? defaultValue() : exports_util2.shallowClone(defaultValue);
14338
14732
  }
14339
14733
  });
14340
14734
  }
@@ -14349,7 +14743,7 @@ function prefault(innerType, defaultValue) {
14349
14743
  type: "prefault",
14350
14744
  innerType,
14351
14745
  get defaultValue() {
14352
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
14746
+ return typeof defaultValue === "function" ? defaultValue() : exports_util2.shallowClone(defaultValue);
14353
14747
  }
14354
14748
  });
14355
14749
  }
@@ -14363,7 +14757,7 @@ function nonoptional(innerType, params) {
14363
14757
  return new ZodNonOptional({
14364
14758
  type: "nonoptional",
14365
14759
  innerType,
14366
- ...exports_util.normalizeParams(params)
14760
+ ...exports_util2.normalizeParams(params)
14367
14761
  });
14368
14762
  }
14369
14763
  var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {
@@ -14448,7 +14842,7 @@ function templateLiteral(parts, params) {
14448
14842
  return new ZodTemplateLiteral({
14449
14843
  type: "template_literal",
14450
14844
  parts,
14451
- ...exports_util.normalizeParams(params)
14845
+ ...exports_util2.normalizeParams(params)
14452
14846
  });
14453
14847
  }
14454
14848
  var ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
@@ -14516,7 +14910,7 @@ function _instanceof(cls, params = {}) {
14516
14910
  check: "custom",
14517
14911
  fn: (data) => data instanceof cls,
14518
14912
  abort: true,
14519
- ...exports_util.normalizeParams(params)
14913
+ ...exports_util2.normalizeParams(params)
14520
14914
  });
14521
14915
  inst._zod.bag.Class = cls;
14522
14916
  inst._zod.check = (payload) => {
@@ -14750,52 +15144,52 @@ function convertBaseSchema(schema, ctx) {
14750
15144
  case "string": {
14751
15145
  let stringSchema = z.string();
14752
15146
  if (schema.format) {
14753
- const format = schema.format;
14754
- if (format === "email") {
15147
+ const format2 = schema.format;
15148
+ if (format2 === "email") {
14755
15149
  stringSchema = stringSchema.check(z.email());
14756
- } else if (format === "uri" || format === "uri-reference") {
15150
+ } else if (format2 === "uri" || format2 === "uri-reference") {
14757
15151
  stringSchema = stringSchema.check(z.url());
14758
- } else if (format === "uuid" || format === "guid") {
15152
+ } else if (format2 === "uuid" || format2 === "guid") {
14759
15153
  stringSchema = stringSchema.check(z.uuid());
14760
- } else if (format === "date-time") {
15154
+ } else if (format2 === "date-time") {
14761
15155
  stringSchema = stringSchema.check(z.iso.datetime());
14762
- } else if (format === "date") {
15156
+ } else if (format2 === "date") {
14763
15157
  stringSchema = stringSchema.check(z.iso.date());
14764
- } else if (format === "time") {
15158
+ } else if (format2 === "time") {
14765
15159
  stringSchema = stringSchema.check(z.iso.time());
14766
- } else if (format === "duration") {
15160
+ } else if (format2 === "duration") {
14767
15161
  stringSchema = stringSchema.check(z.iso.duration());
14768
- } else if (format === "ipv4") {
15162
+ } else if (format2 === "ipv4") {
14769
15163
  stringSchema = stringSchema.check(z.ipv4());
14770
- } else if (format === "ipv6") {
15164
+ } else if (format2 === "ipv6") {
14771
15165
  stringSchema = stringSchema.check(z.ipv6());
14772
- } else if (format === "mac") {
15166
+ } else if (format2 === "mac") {
14773
15167
  stringSchema = stringSchema.check(z.mac());
14774
- } else if (format === "cidr") {
15168
+ } else if (format2 === "cidr") {
14775
15169
  stringSchema = stringSchema.check(z.cidrv4());
14776
- } else if (format === "cidr-v6") {
15170
+ } else if (format2 === "cidr-v6") {
14777
15171
  stringSchema = stringSchema.check(z.cidrv6());
14778
- } else if (format === "base64") {
15172
+ } else if (format2 === "base64") {
14779
15173
  stringSchema = stringSchema.check(z.base64());
14780
- } else if (format === "base64url") {
15174
+ } else if (format2 === "base64url") {
14781
15175
  stringSchema = stringSchema.check(z.base64url());
14782
- } else if (format === "e164") {
15176
+ } else if (format2 === "e164") {
14783
15177
  stringSchema = stringSchema.check(z.e164());
14784
- } else if (format === "jwt") {
15178
+ } else if (format2 === "jwt") {
14785
15179
  stringSchema = stringSchema.check(z.jwt());
14786
- } else if (format === "emoji") {
15180
+ } else if (format2 === "emoji") {
14787
15181
  stringSchema = stringSchema.check(z.emoji());
14788
- } else if (format === "nanoid") {
15182
+ } else if (format2 === "nanoid") {
14789
15183
  stringSchema = stringSchema.check(z.nanoid());
14790
- } else if (format === "cuid") {
15184
+ } else if (format2 === "cuid") {
14791
15185
  stringSchema = stringSchema.check(z.cuid());
14792
- } else if (format === "cuid2") {
15186
+ } else if (format2 === "cuid2") {
14793
15187
  stringSchema = stringSchema.check(z.cuid2());
14794
- } else if (format === "ulid") {
15188
+ } else if (format2 === "ulid") {
14795
15189
  stringSchema = stringSchema.check(z.ulid());
14796
- } else if (format === "xid") {
15190
+ } else if (format2 === "xid") {
14797
15191
  stringSchema = stringSchema.check(z.xid());
14798
- } else if (format === "ksuid") {
15192
+ } else if (format2 === "ksuid") {
14799
15193
  stringSchema = stringSchema.check(z.ksuid());
14800
15194
  }
14801
15195
  }
@@ -15238,6 +15632,8 @@ var ActivityCompletedInput = exports_external.object({
15238
15632
  metricsId: exports_external.string().optional(),
15239
15633
  id: exports_external.string().optional(),
15240
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(),
15241
15637
  attempt: exports_external.number().int().min(1).optional(),
15242
15638
  generatedExtensions: exports_external.object({
15243
15639
  pctCompleteApp: exports_external.number().optional()
@@ -15250,7 +15646,9 @@ var TimeSpentInput = exports_external.object({
15250
15646
  eventTime: IsoDateTimeString.optional(),
15251
15647
  metricsId: exports_external.string().optional(),
15252
15648
  id: exports_external.string().optional(),
15253
- 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()
15254
15652
  }).strict();
15255
15653
  var TimebackEvent = exports_external.union([TimebackActivityEvent, TimebackTimeSpentEvent]);
15256
15654
  var CaliperEnvelope = exports_external.object({
@@ -15440,7 +15838,7 @@ var TimebackConfig = exports_external.object({
15440
15838
  path: ["courses"]
15441
15839
  });
15442
15840
  // ../../types/src/zod/edubridge.ts
15443
- var EdubridgeDateString = IsoDateTimeString;
15841
+ var EdubridgeDateString = exports_external.union([IsoDateTimeString, IsoDateString]);
15444
15842
  var EduBridgeEnrollment = exports_external.object({
15445
15843
  id: exports_external.string(),
15446
15844
  role: exports_external.string(),
@@ -16685,7 +17083,7 @@ class Paginator2 extends Paginator {
16685
17083
  params: requestParams,
16686
17084
  max,
16687
17085
  unwrapKey,
16688
- logger: log2,
17086
+ logger: log3,
16689
17087
  transform: transform2,
16690
17088
  paginationStyle: "offset"
16691
17089
  });
@@ -16779,7 +17177,7 @@ function createPowerPathClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16779
17177
  const resolved = resolveToProvider2(config3, registry2);
16780
17178
  if (resolved.mode === "transport") {
16781
17179
  this.transport = resolved.transport;
16782
- log2.info("Client initialized with custom transport");
17180
+ log3.info("Client initialized with custom transport");
16783
17181
  } else {
16784
17182
  const { provider } = resolved;
16785
17183
  const { baseUrl, paths } = provider.getEndpointWithPaths("powerpath");
@@ -16794,7 +17192,7 @@ function createPowerPathClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16794
17192
  timeout: provider.timeout,
16795
17193
  paths
16796
17194
  });
16797
- log2.info("Client initialized", {
17195
+ log3.info("Client initialized", {
16798
17196
  platform: provider.platform,
16799
17197
  env: provider.env,
16800
17198
  baseUrl