@timeback/qti 0.1.2 → 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
  }
@@ -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;
@@ -1521,12 +1915,12 @@ function resolveToProvider2(config, registry = DEFAULT_PROVIDER_REGISTRY) {
1521
1915
  }
1522
1916
 
1523
1917
  // src/utils.ts
1524
- var log2 = createScopedLogger("qti");
1918
+ var log3 = createScopedLogger("qti");
1525
1919
 
1526
1920
  // src/lib/transport.ts
1527
1921
  class Transport extends BaseTransport {
1528
1922
  constructor(config) {
1529
- super({ config, logger: log2 });
1923
+ super({ config, logger: log3 });
1530
1924
  }
1531
1925
  async requestPaginated(path, options = {}) {
1532
1926
  const body = await this.request(path, options);
@@ -1551,7 +1945,7 @@ __export(exports_external, {
1551
1945
  uuidv6: () => uuidv6,
1552
1946
  uuidv4: () => uuidv4,
1553
1947
  uuid: () => uuid2,
1554
- util: () => exports_util,
1948
+ util: () => exports_util2,
1555
1949
  url: () => url,
1556
1950
  uppercase: () => _uppercase,
1557
1951
  unknown: () => unknown,
@@ -1660,7 +2054,7 @@ __export(exports_external, {
1660
2054
  getErrorMap: () => getErrorMap,
1661
2055
  function: () => _function,
1662
2056
  fromJSONSchema: () => fromJSONSchema,
1663
- formatError: () => formatError,
2057
+ formatError: () => formatError2,
1664
2058
  float64: () => float64,
1665
2059
  float32: () => float32,
1666
2060
  flattenError: () => flattenError,
@@ -1786,7 +2180,7 @@ __export(exports_external, {
1786
2180
  var exports_core2 = {};
1787
2181
  __export(exports_core2, {
1788
2182
  version: () => version,
1789
- util: () => exports_util,
2183
+ util: () => exports_util2,
1790
2184
  treeifyError: () => treeifyError,
1791
2185
  toJSONSchema: () => toJSONSchema,
1792
2186
  toDotPath: () => toDotPath,
@@ -1810,7 +2204,7 @@ __export(exports_core2, {
1810
2204
  initializeContext: () => initializeContext,
1811
2205
  globalRegistry: () => globalRegistry,
1812
2206
  globalConfig: () => globalConfig,
1813
- formatError: () => formatError,
2207
+ formatError: () => formatError2,
1814
2208
  flattenError: () => flattenError,
1815
2209
  finalize: () => finalize,
1816
2210
  extractDefs: () => extractDefs,
@@ -2137,8 +2531,8 @@ function config(newConfig) {
2137
2531
  return globalConfig;
2138
2532
  }
2139
2533
  // ../../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
2140
- var exports_util = {};
2141
- __export(exports_util, {
2534
+ var exports_util2 = {};
2535
+ __export(exports_util2, {
2142
2536
  unwrapMessage: () => unwrapMessage,
2143
2537
  uint8ArrayToHex: () => uint8ArrayToHex,
2144
2538
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -2168,7 +2562,7 @@ __export(exports_util, {
2168
2562
  joinValues: () => joinValues,
2169
2563
  issue: () => issue2,
2170
2564
  isPlainObject: () => isPlainObject,
2171
- isObject: () => isObject,
2565
+ isObject: () => isObject2,
2172
2566
  hexToUint8Array: () => hexToUint8Array,
2173
2567
  getSizableOrigin: () => getSizableOrigin,
2174
2568
  getParsedType: () => getParsedType,
@@ -2337,7 +2731,7 @@ function slugify(input) {
2337
2731
  return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
2338
2732
  }
2339
2733
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {};
2340
- function isObject(data) {
2734
+ function isObject2(data) {
2341
2735
  return typeof data === "object" && data !== null && !Array.isArray(data);
2342
2736
  }
2343
2737
  var allowsEval = cached(() => {
@@ -2353,7 +2747,7 @@ var allowsEval = cached(() => {
2353
2747
  }
2354
2748
  });
2355
2749
  function isPlainObject(o) {
2356
- if (isObject(o) === false)
2750
+ if (isObject2(o) === false)
2357
2751
  return false;
2358
2752
  const ctor = o.constructor;
2359
2753
  if (ctor === undefined)
@@ -2361,7 +2755,7 @@ function isPlainObject(o) {
2361
2755
  if (typeof ctor !== "function")
2362
2756
  return true;
2363
2757
  const prot = ctor.prototype;
2364
- if (isObject(prot) === false)
2758
+ if (isObject2(prot) === false)
2365
2759
  return false;
2366
2760
  if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
2367
2761
  return false;
@@ -2842,7 +3236,7 @@ function flattenError(error, mapper = (issue3) => issue3.message) {
2842
3236
  }
2843
3237
  return { formErrors, fieldErrors };
2844
3238
  }
2845
- function formatError(error, mapper = (issue3) => issue3.message) {
3239
+ function formatError2(error, mapper = (issue3) => issue3.message) {
2846
3240
  const fieldErrors = { _errors: [] };
2847
3241
  const processError = (error2) => {
2848
3242
  for (const issue3 of error2.issues) {
@@ -4367,15 +4761,15 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
4367
4761
  } catch (_err) {}
4368
4762
  }
4369
4763
  const input = payload.value;
4370
- const isDate = input instanceof Date;
4371
- const isValidDate = isDate && !Number.isNaN(input.getTime());
4764
+ const isDate2 = input instanceof Date;
4765
+ const isValidDate = isDate2 && !Number.isNaN(input.getTime());
4372
4766
  if (isValidDate)
4373
4767
  return payload;
4374
4768
  payload.issues.push({
4375
4769
  expected: "date",
4376
4770
  code: "invalid_type",
4377
4771
  input,
4378
- ...isDate ? { received: "Invalid Date" } : {},
4772
+ ...isDate2 ? { received: "Invalid Date" } : {},
4379
4773
  inst
4380
4774
  });
4381
4775
  return payload;
@@ -4514,13 +4908,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
4514
4908
  }
4515
4909
  return propValues;
4516
4910
  });
4517
- const isObject2 = isObject;
4911
+ const isObject3 = isObject2;
4518
4912
  const catchall = def.catchall;
4519
4913
  let value;
4520
4914
  inst._zod.parse = (payload, ctx) => {
4521
4915
  value ?? (value = _normalized.value);
4522
4916
  const input = payload.value;
4523
- if (!isObject2(input)) {
4917
+ if (!isObject3(input)) {
4524
4918
  payload.issues.push({
4525
4919
  expected: "object",
4526
4920
  code: "invalid_type",
@@ -4618,7 +5012,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4618
5012
  return (payload, ctx) => fn(shape, payload, ctx);
4619
5013
  };
4620
5014
  let fastpass;
4621
- const isObject2 = isObject;
5015
+ const isObject3 = isObject2;
4622
5016
  const jit = !globalConfig.jitless;
4623
5017
  const allowsEval2 = allowsEval;
4624
5018
  const fastEnabled = jit && allowsEval2.value;
@@ -4627,7 +5021,7 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
4627
5021
  inst._zod.parse = (payload, ctx) => {
4628
5022
  value ?? (value = _normalized.value);
4629
5023
  const input = payload.value;
4630
- if (!isObject2(input)) {
5024
+ if (!isObject3(input)) {
4631
5025
  payload.issues.push({
4632
5026
  expected: "object",
4633
5027
  code: "invalid_type",
@@ -4805,7 +5199,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
4805
5199
  });
4806
5200
  inst._zod.parse = (payload, ctx) => {
4807
5201
  const input = payload.value;
4808
- if (!isObject(input)) {
5202
+ if (!isObject2(input)) {
4809
5203
  payload.issues.push({
4810
5204
  code: "invalid_type",
4811
5205
  expected: "object",
@@ -11899,10 +12293,10 @@ function _property(property, schema, params) {
11899
12293
  ...normalizeParams(params)
11900
12294
  });
11901
12295
  }
11902
- function _mime(types, params) {
12296
+ function _mime(types2, params) {
11903
12297
  return new $ZodCheckMimeType({
11904
12298
  check: "mime_type",
11905
- mime: types,
12299
+ mime: types2,
11906
12300
  ...normalizeParams(params)
11907
12301
  });
11908
12302
  }
@@ -12225,13 +12619,13 @@ function _stringbool(Classes, _params) {
12225
12619
  });
12226
12620
  return codec;
12227
12621
  }
12228
- function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
12622
+ function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
12229
12623
  const params = normalizeParams(_params);
12230
12624
  const def = {
12231
12625
  ...normalizeParams(_params),
12232
12626
  check: "string_format",
12233
12627
  type: "string",
12234
- format,
12628
+ format: format2,
12235
12629
  fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
12236
12630
  ...params
12237
12631
  };
@@ -12597,16 +12991,16 @@ var formatMap = {
12597
12991
  var stringProcessor = (schema, ctx, _json, _params) => {
12598
12992
  const json = _json;
12599
12993
  json.type = "string";
12600
- const { minimum, maximum, format, patterns: patterns2, contentEncoding } = schema._zod.bag;
12994
+ const { minimum, maximum, format: format2, patterns: patterns2, contentEncoding } = schema._zod.bag;
12601
12995
  if (typeof minimum === "number")
12602
12996
  json.minLength = minimum;
12603
12997
  if (typeof maximum === "number")
12604
12998
  json.maxLength = maximum;
12605
- if (format) {
12606
- json.format = formatMap[format] ?? format;
12999
+ if (format2) {
13000
+ json.format = formatMap[format2] ?? format2;
12607
13001
  if (json.format === "")
12608
13002
  delete json.format;
12609
- if (format === "time") {
13003
+ if (format2 === "time") {
12610
13004
  delete json.format;
12611
13005
  }
12612
13006
  }
@@ -12628,8 +13022,8 @@ var stringProcessor = (schema, ctx, _json, _params) => {
12628
13022
  };
12629
13023
  var numberProcessor = (schema, ctx, _json, _params) => {
12630
13024
  const json = _json;
12631
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
12632
- if (typeof format === "string" && format.includes("int"))
13025
+ const { minimum, maximum, format: format2, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
13026
+ if (typeof format2 === "string" && format2.includes("int"))
12633
13027
  json.type = "integer";
12634
13028
  else
12635
13029
  json.type = "number";
@@ -13442,7 +13836,7 @@ var initializer2 = (inst, issues) => {
13442
13836
  inst.name = "ZodError";
13443
13837
  Object.defineProperties(inst, {
13444
13838
  format: {
13445
- value: (mapper) => formatError(inst, mapper)
13839
+ value: (mapper) => formatError2(inst, mapper)
13446
13840
  },
13447
13841
  flatten: {
13448
13842
  value: (mapper) => flattenError(inst, mapper)
@@ -13499,7 +13893,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
13499
13893
  inst.type = def.type;
13500
13894
  Object.defineProperty(inst, "_def", { value: def });
13501
13895
  inst.check = (...checks2) => {
13502
- return inst.clone(exports_util.mergeDefs(def, {
13896
+ return inst.clone(exports_util2.mergeDefs(def, {
13503
13897
  checks: [
13504
13898
  ...def.checks ?? [],
13505
13899
  ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
@@ -13672,7 +14066,7 @@ function httpUrl(params) {
13672
14066
  return _url(ZodURL, {
13673
14067
  protocol: /^https?$/,
13674
14068
  hostname: exports_regexes.domain,
13675
- ...exports_util.normalizeParams(params)
14069
+ ...exports_util2.normalizeParams(params)
13676
14070
  });
13677
14071
  }
13678
14072
  var ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
@@ -13791,8 +14185,8 @@ var ZodCustomStringFormat = /* @__PURE__ */ $constructor("ZodCustomStringFormat"
13791
14185
  $ZodCustomStringFormat.init(inst, def);
13792
14186
  ZodStringFormat.init(inst, def);
13793
14187
  });
13794
- function stringFormat(format, fnOrRegex, _params = {}) {
13795
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
14188
+ function stringFormat(format2, fnOrRegex, _params = {}) {
14189
+ return _stringFormat(ZodCustomStringFormat, format2, fnOrRegex, _params);
13796
14190
  }
13797
14191
  function hostname2(_params) {
13798
14192
  return _stringFormat(ZodCustomStringFormat, "hostname", exports_regexes.hostname, _params);
@@ -13802,11 +14196,11 @@ function hex2(_params) {
13802
14196
  }
13803
14197
  function hash(alg, params) {
13804
14198
  const enc = params?.enc ?? "hex";
13805
- const format = `${alg}_${enc}`;
13806
- const regex = exports_regexes[format];
14199
+ const format2 = `${alg}_${enc}`;
14200
+ const regex = exports_regexes[format2];
13807
14201
  if (!regex)
13808
- throw new Error(`Unrecognized hash format: ${format}`);
13809
- return _stringFormat(ZodCustomStringFormat, format, regex, params);
14202
+ throw new Error(`Unrecognized hash format: ${format2}`);
14203
+ return _stringFormat(ZodCustomStringFormat, format2, regex, params);
13810
14204
  }
13811
14205
  var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
13812
14206
  $ZodNumber.init(inst, def);
@@ -13990,7 +14384,7 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
13990
14384
  $ZodObjectJIT.init(inst, def);
13991
14385
  ZodType.init(inst, def);
13992
14386
  inst._zod.processJSONSchema = (ctx, json, params) => objectProcessor(inst, ctx, json, params);
13993
- exports_util.defineLazy(inst, "shape", () => {
14387
+ exports_util2.defineLazy(inst, "shape", () => {
13994
14388
  return def.shape;
13995
14389
  });
13996
14390
  inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
@@ -14000,22 +14394,22 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
14000
14394
  inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
14001
14395
  inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
14002
14396
  inst.extend = (incoming) => {
14003
- return exports_util.extend(inst, incoming);
14397
+ return exports_util2.extend(inst, incoming);
14004
14398
  };
14005
14399
  inst.safeExtend = (incoming) => {
14006
- return exports_util.safeExtend(inst, incoming);
14400
+ return exports_util2.safeExtend(inst, incoming);
14007
14401
  };
14008
- inst.merge = (other) => exports_util.merge(inst, other);
14009
- inst.pick = (mask) => exports_util.pick(inst, mask);
14010
- inst.omit = (mask) => exports_util.omit(inst, mask);
14011
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
14012
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
14402
+ inst.merge = (other) => exports_util2.merge(inst, other);
14403
+ inst.pick = (mask) => exports_util2.pick(inst, mask);
14404
+ inst.omit = (mask) => exports_util2.omit(inst, mask);
14405
+ inst.partial = (...args) => exports_util2.partial(ZodOptional, inst, args[0]);
14406
+ inst.required = (...args) => exports_util2.required(ZodNonOptional, inst, args[0]);
14013
14407
  });
14014
14408
  function object(shape, params) {
14015
14409
  const def = {
14016
14410
  type: "object",
14017
14411
  shape: shape ?? {},
14018
- ...exports_util.normalizeParams(params)
14412
+ ...exports_util2.normalizeParams(params)
14019
14413
  };
14020
14414
  return new ZodObject(def);
14021
14415
  }
@@ -14024,7 +14418,7 @@ function strictObject(shape, params) {
14024
14418
  type: "object",
14025
14419
  shape,
14026
14420
  catchall: never(),
14027
- ...exports_util.normalizeParams(params)
14421
+ ...exports_util2.normalizeParams(params)
14028
14422
  });
14029
14423
  }
14030
14424
  function looseObject(shape, params) {
@@ -14032,7 +14426,7 @@ function looseObject(shape, params) {
14032
14426
  type: "object",
14033
14427
  shape,
14034
14428
  catchall: unknown(),
14035
- ...exports_util.normalizeParams(params)
14429
+ ...exports_util2.normalizeParams(params)
14036
14430
  });
14037
14431
  }
14038
14432
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
@@ -14045,7 +14439,7 @@ function union(options, params) {
14045
14439
  return new ZodUnion({
14046
14440
  type: "union",
14047
14441
  options,
14048
- ...exports_util.normalizeParams(params)
14442
+ ...exports_util2.normalizeParams(params)
14049
14443
  });
14050
14444
  }
14051
14445
  var ZodXor = /* @__PURE__ */ $constructor("ZodXor", (inst, def) => {
@@ -14059,7 +14453,7 @@ function xor(options, params) {
14059
14453
  type: "union",
14060
14454
  options,
14061
14455
  inclusive: false,
14062
- ...exports_util.normalizeParams(params)
14456
+ ...exports_util2.normalizeParams(params)
14063
14457
  });
14064
14458
  }
14065
14459
  var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
@@ -14071,7 +14465,7 @@ function discriminatedUnion(discriminator, options, params) {
14071
14465
  type: "union",
14072
14466
  options,
14073
14467
  discriminator,
14074
- ...exports_util.normalizeParams(params)
14468
+ ...exports_util2.normalizeParams(params)
14075
14469
  });
14076
14470
  }
14077
14471
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
@@ -14103,7 +14497,7 @@ function tuple(items, _paramsOrRest, _params) {
14103
14497
  type: "tuple",
14104
14498
  items,
14105
14499
  rest,
14106
- ...exports_util.normalizeParams(params)
14500
+ ...exports_util2.normalizeParams(params)
14107
14501
  });
14108
14502
  }
14109
14503
  var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
@@ -14118,7 +14512,7 @@ function record(keyType, valueType, params) {
14118
14512
  type: "record",
14119
14513
  keyType,
14120
14514
  valueType,
14121
- ...exports_util.normalizeParams(params)
14515
+ ...exports_util2.normalizeParams(params)
14122
14516
  });
14123
14517
  }
14124
14518
  function partialRecord(keyType, valueType, params) {
@@ -14128,7 +14522,7 @@ function partialRecord(keyType, valueType, params) {
14128
14522
  type: "record",
14129
14523
  keyType: k,
14130
14524
  valueType,
14131
- ...exports_util.normalizeParams(params)
14525
+ ...exports_util2.normalizeParams(params)
14132
14526
  });
14133
14527
  }
14134
14528
  function looseRecord(keyType, valueType, params) {
@@ -14137,7 +14531,7 @@ function looseRecord(keyType, valueType, params) {
14137
14531
  keyType,
14138
14532
  valueType,
14139
14533
  mode: "loose",
14140
- ...exports_util.normalizeParams(params)
14534
+ ...exports_util2.normalizeParams(params)
14141
14535
  });
14142
14536
  }
14143
14537
  var ZodMap = /* @__PURE__ */ $constructor("ZodMap", (inst, def) => {
@@ -14156,7 +14550,7 @@ function map(keyType, valueType, params) {
14156
14550
  type: "map",
14157
14551
  keyType,
14158
14552
  valueType,
14159
- ...exports_util.normalizeParams(params)
14553
+ ...exports_util2.normalizeParams(params)
14160
14554
  });
14161
14555
  }
14162
14556
  var ZodSet = /* @__PURE__ */ $constructor("ZodSet", (inst, def) => {
@@ -14172,7 +14566,7 @@ function set(valueType, params) {
14172
14566
  return new ZodSet({
14173
14567
  type: "set",
14174
14568
  valueType,
14175
- ...exports_util.normalizeParams(params)
14569
+ ...exports_util2.normalizeParams(params)
14176
14570
  });
14177
14571
  }
14178
14572
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
@@ -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
  };
@@ -14208,7 +14602,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
14208
14602
  return new ZodEnum({
14209
14603
  ...def,
14210
14604
  checks: [],
14211
- ...exports_util.normalizeParams(params),
14605
+ ...exports_util2.normalizeParams(params),
14212
14606
  entries: newEntries
14213
14607
  });
14214
14608
  };
@@ -14218,14 +14612,14 @@ function _enum2(values, params) {
14218
14612
  return new ZodEnum({
14219
14613
  type: "enum",
14220
14614
  entries,
14221
- ...exports_util.normalizeParams(params)
14615
+ ...exports_util2.normalizeParams(params)
14222
14616
  });
14223
14617
  }
14224
14618
  function nativeEnum(entries, params) {
14225
14619
  return new ZodEnum({
14226
14620
  type: "enum",
14227
14621
  entries,
14228
- ...exports_util.normalizeParams(params)
14622
+ ...exports_util2.normalizeParams(params)
14229
14623
  });
14230
14624
  }
14231
14625
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
@@ -14246,7 +14640,7 @@ function literal(value, params) {
14246
14640
  return new ZodLiteral({
14247
14641
  type: "literal",
14248
14642
  values: Array.isArray(value) ? value : [value],
14249
- ...exports_util.normalizeParams(params)
14643
+ ...exports_util2.normalizeParams(params)
14250
14644
  });
14251
14645
  }
14252
14646
  var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
@@ -14255,7 +14649,7 @@ var ZodFile = /* @__PURE__ */ $constructor("ZodFile", (inst, def) => {
14255
14649
  inst._zod.processJSONSchema = (ctx, json, params) => fileProcessor(inst, ctx, json, params);
14256
14650
  inst.min = (size, params) => inst.check(_minSize(size, params));
14257
14651
  inst.max = (size, params) => inst.check(_maxSize(size, params));
14258
- inst.mime = (types, params) => inst.check(_mime(Array.isArray(types) ? types : [types], params));
14652
+ inst.mime = (types2, params) => inst.check(_mime(Array.isArray(types2) ? types2 : [types2], params));
14259
14653
  });
14260
14654
  function file(params) {
14261
14655
  return _file(ZodFile, params);
@@ -14270,7 +14664,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14270
14664
  }
14271
14665
  payload.addIssue = (issue3) => {
14272
14666
  if (typeof issue3 === "string") {
14273
- payload.issues.push(exports_util.issue(issue3, payload.value, def));
14667
+ payload.issues.push(exports_util2.issue(issue3, payload.value, def));
14274
14668
  } else {
14275
14669
  const _issue = issue3;
14276
14670
  if (_issue.fatal)
@@ -14278,7 +14672,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
14278
14672
  _issue.code ?? (_issue.code = "custom");
14279
14673
  _issue.input ?? (_issue.input = payload.value);
14280
14674
  _issue.inst ?? (_issue.inst = inst);
14281
- payload.issues.push(exports_util.issue(_issue));
14675
+ payload.issues.push(exports_util2.issue(_issue));
14282
14676
  }
14283
14677
  };
14284
14678
  const output = def.transform(payload.value, payload);
@@ -14349,7 +14743,7 @@ function _default2(innerType, defaultValue) {
14349
14743
  type: "default",
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
  }
@@ -14364,7 +14758,7 @@ function prefault(innerType, defaultValue) {
14364
14758
  type: "prefault",
14365
14759
  innerType,
14366
14760
  get defaultValue() {
14367
- return typeof defaultValue === "function" ? defaultValue() : exports_util.shallowClone(defaultValue);
14761
+ return typeof defaultValue === "function" ? defaultValue() : exports_util2.shallowClone(defaultValue);
14368
14762
  }
14369
14763
  });
14370
14764
  }
@@ -14378,7 +14772,7 @@ function nonoptional(innerType, params) {
14378
14772
  return new ZodNonOptional({
14379
14773
  type: "nonoptional",
14380
14774
  innerType,
14381
- ...exports_util.normalizeParams(params)
14775
+ ...exports_util2.normalizeParams(params)
14382
14776
  });
14383
14777
  }
14384
14778
  var ZodSuccess = /* @__PURE__ */ $constructor("ZodSuccess", (inst, def) => {
@@ -14463,7 +14857,7 @@ function templateLiteral(parts, params) {
14463
14857
  return new ZodTemplateLiteral({
14464
14858
  type: "template_literal",
14465
14859
  parts,
14466
- ...exports_util.normalizeParams(params)
14860
+ ...exports_util2.normalizeParams(params)
14467
14861
  });
14468
14862
  }
14469
14863
  var ZodLazy = /* @__PURE__ */ $constructor("ZodLazy", (inst, def) => {
@@ -14531,7 +14925,7 @@ function _instanceof(cls, params = {}) {
14531
14925
  check: "custom",
14532
14926
  fn: (data) => data instanceof cls,
14533
14927
  abort: true,
14534
- ...exports_util.normalizeParams(params)
14928
+ ...exports_util2.normalizeParams(params)
14535
14929
  });
14536
14930
  inst._zod.bag.Class = cls;
14537
14931
  inst._zod.check = (payload) => {
@@ -14765,52 +15159,52 @@ function convertBaseSchema(schema, ctx) {
14765
15159
  case "string": {
14766
15160
  let stringSchema = z.string();
14767
15161
  if (schema.format) {
14768
- const format = schema.format;
14769
- if (format === "email") {
15162
+ const format2 = schema.format;
15163
+ if (format2 === "email") {
14770
15164
  stringSchema = stringSchema.check(z.email());
14771
- } else if (format === "uri" || format === "uri-reference") {
15165
+ } else if (format2 === "uri" || format2 === "uri-reference") {
14772
15166
  stringSchema = stringSchema.check(z.url());
14773
- } else if (format === "uuid" || format === "guid") {
15167
+ } else if (format2 === "uuid" || format2 === "guid") {
14774
15168
  stringSchema = stringSchema.check(z.uuid());
14775
- } else if (format === "date-time") {
15169
+ } else if (format2 === "date-time") {
14776
15170
  stringSchema = stringSchema.check(z.iso.datetime());
14777
- } else if (format === "date") {
15171
+ } else if (format2 === "date") {
14778
15172
  stringSchema = stringSchema.check(z.iso.date());
14779
- } else if (format === "time") {
15173
+ } else if (format2 === "time") {
14780
15174
  stringSchema = stringSchema.check(z.iso.time());
14781
- } else if (format === "duration") {
15175
+ } else if (format2 === "duration") {
14782
15176
  stringSchema = stringSchema.check(z.iso.duration());
14783
- } else if (format === "ipv4") {
15177
+ } else if (format2 === "ipv4") {
14784
15178
  stringSchema = stringSchema.check(z.ipv4());
14785
- } else if (format === "ipv6") {
15179
+ } else if (format2 === "ipv6") {
14786
15180
  stringSchema = stringSchema.check(z.ipv6());
14787
- } else if (format === "mac") {
15181
+ } else if (format2 === "mac") {
14788
15182
  stringSchema = stringSchema.check(z.mac());
14789
- } else if (format === "cidr") {
15183
+ } else if (format2 === "cidr") {
14790
15184
  stringSchema = stringSchema.check(z.cidrv4());
14791
- } else if (format === "cidr-v6") {
15185
+ } else if (format2 === "cidr-v6") {
14792
15186
  stringSchema = stringSchema.check(z.cidrv6());
14793
- } else if (format === "base64") {
15187
+ } else if (format2 === "base64") {
14794
15188
  stringSchema = stringSchema.check(z.base64());
14795
- } else if (format === "base64url") {
15189
+ } else if (format2 === "base64url") {
14796
15190
  stringSchema = stringSchema.check(z.base64url());
14797
- } else if (format === "e164") {
15191
+ } else if (format2 === "e164") {
14798
15192
  stringSchema = stringSchema.check(z.e164());
14799
- } else if (format === "jwt") {
15193
+ } else if (format2 === "jwt") {
14800
15194
  stringSchema = stringSchema.check(z.jwt());
14801
- } else if (format === "emoji") {
15195
+ } else if (format2 === "emoji") {
14802
15196
  stringSchema = stringSchema.check(z.emoji());
14803
- } else if (format === "nanoid") {
15197
+ } else if (format2 === "nanoid") {
14804
15198
  stringSchema = stringSchema.check(z.nanoid());
14805
- } else if (format === "cuid") {
15199
+ } else if (format2 === "cuid") {
14806
15200
  stringSchema = stringSchema.check(z.cuid());
14807
- } else if (format === "cuid2") {
15201
+ } else if (format2 === "cuid2") {
14808
15202
  stringSchema = stringSchema.check(z.cuid2());
14809
- } else if (format === "ulid") {
15203
+ } else if (format2 === "ulid") {
14810
15204
  stringSchema = stringSchema.check(z.ulid());
14811
- } else if (format === "xid") {
15205
+ } else if (format2 === "xid") {
14812
15206
  stringSchema = stringSchema.check(z.xid());
14813
- } else if (format === "ksuid") {
15207
+ } else if (format2 === "ksuid") {
14814
15208
  stringSchema = stringSchema.check(z.ksuid());
14815
15209
  }
14816
15210
  }
@@ -15253,6 +15647,8 @@ var ActivityCompletedInput = exports_external.object({
15253
15647
  metricsId: exports_external.string().optional(),
15254
15648
  id: exports_external.string().optional(),
15255
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(),
15256
15652
  attempt: exports_external.number().int().min(1).optional(),
15257
15653
  generatedExtensions: exports_external.object({
15258
15654
  pctCompleteApp: exports_external.number().optional()
@@ -15265,7 +15661,9 @@ var TimeSpentInput = exports_external.object({
15265
15661
  eventTime: IsoDateTimeString.optional(),
15266
15662
  metricsId: exports_external.string().optional(),
15267
15663
  id: exports_external.string().optional(),
15268
- extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
15664
+ extensions: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
15665
+ edApp: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional(),
15666
+ session: exports_external.union([exports_external.string(), exports_external.record(exports_external.string(), exports_external.unknown())]).optional()
15269
15667
  }).strict();
15270
15668
  var TimebackEvent = exports_external.union([TimebackActivityEvent, TimebackTimeSpentEvent]);
15271
15669
  var CaliperEnvelope = exports_external.object({
@@ -15455,7 +15853,7 @@ var TimebackConfig = exports_external.object({
15455
15853
  path: ["courses"]
15456
15854
  });
15457
15855
  // ../../types/src/zod/edubridge.ts
15458
- var EdubridgeDateString = IsoDateTimeString;
15856
+ var EdubridgeDateString = exports_external.union([IsoDateTimeString, IsoDateString]);
15459
15857
  var EduBridgeEnrollment = exports_external.object({
15460
15858
  id: exports_external.string(),
15461
15859
  role: exports_external.string(),
@@ -16460,7 +16858,7 @@ class Paginator2 extends Paginator {
16460
16858
  path,
16461
16859
  params: requestParams,
16462
16860
  max,
16463
- logger: log2,
16861
+ logger: log3,
16464
16862
  paginationStyle: "page"
16465
16863
  });
16466
16864
  }
@@ -16879,7 +17277,7 @@ function createQtiClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16879
17277
  const resolved = resolveToProvider2(config3, registry2);
16880
17278
  if (resolved.mode === "transport") {
16881
17279
  this.transport = resolved.transport;
16882
- log2.info("Client initialized with custom transport");
17280
+ log3.info("Client initialized with custom transport");
16883
17281
  } else {
16884
17282
  const { provider } = resolved;
16885
17283
  const { baseUrl } = provider.getEndpoint("qti");
@@ -16893,7 +17291,7 @@ function createQtiClient(registry2 = DEFAULT_PROVIDER_REGISTRY) {
16893
17291
  tokenProvider,
16894
17292
  timeout: provider.timeout
16895
17293
  });
16896
- log2.info("Client initialized", {
17294
+ log3.info("Client initialized", {
16897
17295
  platform: provider.platform,
16898
17296
  env: provider.env,
16899
17297
  baseUrl