tempest.games 0.2.95 → 0.2.97

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.
@@ -5598,7 +5598,7 @@ async function migrate(db, config) {
5598
5598
  await db.dialect.migrate(migrations, db.session, config);
5599
5599
  }
5600
5600
 
5601
- // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.28_typescript@5.9.3_zod@4.1.13/node_modules/@t3-oss/env-core/dist/src-Bb3GbGAa.js
5601
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.2.0/node_modules/@t3-oss/env-core/dist/standard.js
5602
5602
  function ensureSynchronous(value, message) {
5603
5603
  if (value instanceof Promise)
5604
5604
  throw new Error(message);
@@ -5623,17 +5623,21 @@ function parseWithDictionary(dictionary, value) {
5623
5623
  return { issues };
5624
5624
  return { value: result };
5625
5625
  }
5626
+
5627
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.13.10_arktype@2.1.29_typescript@5.9.3_zod@4.2.0/node_modules/@t3-oss/env-core/dist/index.js
5626
5628
  function createEnv(opts) {
5627
5629
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
5628
- const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;
5629
- if (emptyStringAsUndefined) {
5630
+ if (opts.emptyStringAsUndefined ?? false) {
5630
5631
  for (const [key, value] of Object.entries(runtimeEnv))
5631
5632
  if (value === "")
5632
5633
  delete runtimeEnv[key];
5633
5634
  }
5634
- const skip = !!opts.skipValidation;
5635
- if (skip)
5635
+ if (!!opts.skipValidation) {
5636
+ if (opts.extends)
5637
+ for (const preset of opts.extends)
5638
+ preset.skipValidation = true;
5636
5639
  return runtimeEnv;
5640
+ }
5637
5641
  const _client = typeof opts.client === "object" ? opts.client : {};
5638
5642
  const _server = typeof opts.server === "object" ? opts.server : {};
5639
5643
  const _shared = typeof opts.shared === "object" ? opts.shared : {};
@@ -5646,7 +5650,7 @@ function createEnv(opts) {
5646
5650
  ..._client,
5647
5651
  ..._shared
5648
5652
  };
5649
- const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
5653
+ const parsed = opts.createFinalSchema?.(finalSchemaShape, isServer)?.["~standard"].validate(runtimeEnv) ?? parseWithDictionary(finalSchemaShape, runtimeEnv);
5650
5654
  ensureSynchronous(parsed, "Validation must be synchronous");
5651
5655
  const onValidationError = opts.onValidationError ?? ((issues) => {
5652
5656
  console.error("\u274C Invalid environment variables:", issues);
@@ -5672,7 +5676,7 @@ function createEnv(opts) {
5672
5676
  return Object.assign(acc, curr);
5673
5677
  }, {});
5674
5678
  const fullObj = Object.assign(extendedObj, parsed.value);
5675
- const env = new Proxy(fullObj, { get(target, prop) {
5679
+ return new Proxy(fullObj, { get(target, prop) {
5676
5680
  if (typeof prop !== "string")
5677
5681
  return;
5678
5682
  if (ignoreProp(prop))
@@ -5681,7 +5685,6 @@ function createEnv(opts) {
5681
5685
  return onInvalidAccess(prop);
5682
5686
  return Reflect.get(target, prop);
5683
5687
  } });
5684
- return env;
5685
5688
  }
5686
5689
 
5687
5690
  // ../../node_modules/.pnpm/@ark+util@0.56.0/node_modules/@ark/util/out/arrays.js
@@ -12113,10 +12116,10 @@ var intrinsic = {
12113
12116
  emptyStructure: node("structure", {}, { prereduced: true })
12114
12117
  };
12115
12118
  $ark.intrinsic = { ...intrinsic };
12116
- // ../../node_modules/.pnpm/arkregex@0.0.4/node_modules/arkregex/out/regex.js
12119
+ // ../../node_modules/.pnpm/arkregex@0.0.5/node_modules/arkregex/out/regex.js
12117
12120
  var regex = (src, flags) => new RegExp(src, flags);
12118
12121
  Object.assign(regex, { as: regex });
12119
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operand/date.js
12122
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operand/date.js
12120
12123
  var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value[value.length - 1] === value[1];
12121
12124
  var isValidDate = (d) => d.toString() !== "Invalid Date";
12122
12125
  var extractDateLiteralSource = (literal) => literal.slice(2, -1);
@@ -12135,7 +12138,7 @@ var maybeParseDate = (source, errorOnFail) => {
12135
12138
  return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
12136
12139
  };
12137
12140
 
12138
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operand/enclosed.js
12141
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operand/enclosed.js
12139
12142
  var regexExecArray = rootSchema({
12140
12143
  proto: "Array",
12141
12144
  sequence: "string",
@@ -12209,12 +12212,12 @@ var enclosingCharDescriptions = {
12209
12212
  };
12210
12213
  var writeUnterminatedEnclosedMessage = (fragment2, enclosingStart) => `${enclosingStart}${fragment2} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
12211
12214
 
12212
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/ast/validate.js
12215
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/ast/validate.js
12213
12216
  var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
12214
12217
  var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
12215
12218
  var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
12216
12219
 
12217
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/tokens.js
12220
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/tokens.js
12218
12221
  var terminatingChars = {
12219
12222
  "<": 1,
12220
12223
  ">": 1,
@@ -12232,7 +12235,7 @@ var terminatingChars = {
12232
12235
  };
12233
12236
  var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
12234
12237
 
12235
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operand/genericArgs.js
12238
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operand/genericArgs.js
12236
12239
  var parseGenericArgs = (name, g, s) => _parseGenericArgs(name, g, s, []);
12237
12240
  var _parseGenericArgs = (name, g, s, argNodes) => {
12238
12241
  const argState = s.parseUntilFinalizer();
@@ -12249,7 +12252,7 @@ var _parseGenericArgs = (name, g, s, argNodes) => {
12249
12252
  };
12250
12253
  var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
12251
12254
 
12252
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operand/unenclosed.js
12255
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operand/unenclosed.js
12253
12256
  var parseUnenclosed = (s) => {
12254
12257
  const token = s.scanner.shiftUntilLookahead(terminatingChars);
12255
12258
  if (token === "keyof")
@@ -12297,10 +12300,10 @@ var writeMissingOperandMessage = (s) => {
12297
12300
  var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
12298
12301
  var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
12299
12302
 
12300
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operand/operand.js
12303
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operand/operand.js
12301
12304
  var parseOperand = (s) => s.scanner.lookahead === "" ? s.error(writeMissingOperandMessage(s)) : s.scanner.lookahead === "(" ? s.shiftedBy(1).reduceGroupOpen() : s.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s, s.scanner.shift()) : s.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s.shiftedBy(1)) : s.scanner.lookahead === "d" ? s.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s, `${s.scanner.shift()}${s.scanner.shift()}`) : parseUnenclosed(s) : s.scanner.lookahead === "x" ? s.scanner.nextLookahead === "/" ? s.shiftedBy(2) && parseEnclosed(s, "x/") : parseUnenclosed(s) : parseUnenclosed(s);
12302
12305
 
12303
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/reduce/shared.js
12306
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/reduce/shared.js
12304
12307
  var minComparators = {
12305
12308
  ">": true,
12306
12309
  ">=": true
@@ -12320,7 +12323,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
12320
12323
  var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
12321
12324
  var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
12322
12325
 
12323
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operator/bounds.js
12326
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operator/bounds.js
12324
12327
  var parseBound = (s, start) => {
12325
12328
  const comparator = shiftComparator(s, start);
12326
12329
  if (s.root.hasKind("unit")) {
@@ -12391,14 +12394,14 @@ var parseRightBound = (s, comparator) => {
12391
12394
  };
12392
12395
  var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
12393
12396
 
12394
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operator/brand.js
12397
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operator/brand.js
12395
12398
  var parseBrand = (s) => {
12396
12399
  s.scanner.shiftUntilNonWhitespace();
12397
12400
  const brandName = s.scanner.shiftUntilLookahead(terminatingChars);
12398
12401
  s.root = s.root.brand(brandName);
12399
12402
  };
12400
12403
 
12401
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operator/divisor.js
12404
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operator/divisor.js
12402
12405
  var parseDivisor = (s) => {
12403
12406
  s.scanner.shiftUntilNonWhitespace();
12404
12407
  const divisorToken = s.scanner.shiftUntilLookahead(terminatingChars);
@@ -12411,7 +12414,7 @@ var parseDivisor = (s) => {
12411
12414
  };
12412
12415
  var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
12413
12416
 
12414
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operator/operator.js
12417
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operator/operator.js
12415
12418
  var parseOperator = (s) => {
12416
12419
  const lookahead = s.scanner.shift();
12417
12420
  return lookahead === "" ? s.finalize("") : lookahead === "[" ? s.scanner.shift() === "]" ? s.setRoot(s.root.array()) : s.error(incompleteArrayTokenMessage) : lookahead === "|" ? s.scanner.lookahead === ">" ? s.shiftedBy(1).pushRootToBranch("|>") : s.pushRootToBranch(lookahead) : lookahead === "&" ? s.pushRootToBranch(lookahead) : lookahead === ")" ? s.finalizeGroup() : lookaheadIsFinalizing(lookahead, s.scanner.unscanned) ? s.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s, lookahead) : lookahead === "%" ? parseDivisor(s) : lookahead === "#" ? parseBrand(s) : (lookahead in whitespaceChars) ? parseOperator(s) : s.error(writeUnexpectedCharacterMessage(lookahead));
@@ -12419,7 +12422,7 @@ var parseOperator = (s) => {
12419
12422
  var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
12420
12423
  var incompleteArrayTokenMessage = `Missing expected ']'`;
12421
12424
 
12422
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/shift/operator/default.js
12425
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/shift/operator/default.js
12423
12426
  var parseDefault = (s) => {
12424
12427
  const baseNode = s.unsetRoot();
12425
12428
  s.parseOperand();
@@ -12431,7 +12434,7 @@ var parseDefault = (s) => {
12431
12434
  };
12432
12435
  var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
12433
12436
 
12434
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/string.js
12437
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/string.js
12435
12438
  var parseString = (def, ctx) => {
12436
12439
  const aliasResolution = ctx.$.maybeResolveRoot(def);
12437
12440
  if (aliasResolution)
@@ -12470,7 +12473,7 @@ var parseUntilFinalizer = (s) => {
12470
12473
  };
12471
12474
  var next = (s) => s.hasRoot() ? s.parseOperator() : s.parseOperand();
12472
12475
 
12473
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/reduce/dynamic.js
12476
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/reduce/dynamic.js
12474
12477
  class RuntimeState {
12475
12478
  root;
12476
12479
  branches = {
@@ -12607,7 +12610,7 @@ class RuntimeState {
12607
12610
  }
12608
12611
  }
12609
12612
 
12610
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/generic.js
12613
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/generic.js
12611
12614
  var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
12612
12615
  var parseGenericParamName = (scanner2, result, ctx) => {
12613
12616
  scanner2.shiftUntilNonWhitespace();
@@ -12635,7 +12638,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
12635
12638
  result.push([name, s.root]);
12636
12639
  return parseGenericParamName(scanner2, result, ctx);
12637
12640
  };
12638
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/fn.js
12641
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/fn.js
12639
12642
  class InternalFnParser extends Callable {
12640
12643
  constructor($) {
12641
12644
  const attach = {
@@ -12687,7 +12690,7 @@ class InternalTypedFn extends Callable {
12687
12690
  var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
12688
12691
  fn("string", ":", "number")(s => s.length)`;
12689
12692
 
12690
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/match.js
12693
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/match.js
12691
12694
  class InternalMatchParser extends Callable {
12692
12695
  $;
12693
12696
  constructor($) {
@@ -12781,7 +12784,7 @@ var throwOnDefault = (errors3) => errors3.throw();
12781
12784
  var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
12782
12785
  var doubleAtMessage = `At most one key matcher may be specified per expression`;
12783
12786
 
12784
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/property.js
12787
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/property.js
12785
12788
  var parseProperty = (def, ctx) => {
12786
12789
  if (isArray(def)) {
12787
12790
  if (def[1] === "=")
@@ -12794,7 +12797,7 @@ var parseProperty = (def, ctx) => {
12794
12797
  var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
12795
12798
  var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
12796
12799
 
12797
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/objectLiteral.js
12800
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/objectLiteral.js
12798
12801
  var parseObjectLiteral = (def, ctx) => {
12799
12802
  let spread;
12800
12803
  const structure3 = {};
@@ -12879,7 +12882,7 @@ var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normali
12879
12882
  };
12880
12883
  var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
12881
12884
 
12882
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/tupleExpressions.js
12885
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/tupleExpressions.js
12883
12886
  var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
12884
12887
  var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
12885
12888
  var parseBranchTuple = (def, ctx) => {
@@ -12940,7 +12943,7 @@ var indexZeroParsers = defineIndexZeroParsers({
12940
12943
  var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
12941
12944
  var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
12942
12945
 
12943
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/tupleLiteral.js
12946
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/tupleLiteral.js
12944
12947
  var parseTupleLiteral = (def, ctx) => {
12945
12948
  let sequences = [{}];
12946
12949
  let i = 0;
@@ -13036,7 +13039,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
13036
13039
  var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
13037
13040
  var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
13038
13041
 
13039
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/parser/definition.js
13042
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/parser/definition.js
13040
13043
  var parseCache = {};
13041
13044
  var parseInnerDefinition = (def, ctx) => {
13042
13045
  if (typeof def === "string") {
@@ -13100,7 +13103,7 @@ var parseStandardSchema = (def, ctx) => ctx.$.intrinsic.unknown.pipe((v, ctx2) =
13100
13103
  var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
13101
13104
  var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
13102
13105
 
13103
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/type.js
13106
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/type.js
13104
13107
  class InternalTypeParser extends Callable {
13105
13108
  constructor($) {
13106
13109
  const attach = Object.assign({
@@ -13142,7 +13145,7 @@ class InternalTypeParser extends Callable {
13142
13145
  }
13143
13146
  }
13144
13147
 
13145
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/scope.js
13148
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/scope.js
13146
13149
  var $arkTypeRegistry = $ark;
13147
13150
 
13148
13151
  class InternalScope extends BaseScope {
@@ -13236,7 +13239,7 @@ var scope2 = Object.assign(InternalScope.scope, {
13236
13239
  });
13237
13240
  var Scope = InternalScope;
13238
13241
 
13239
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/builtins.js
13242
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/builtins.js
13240
13243
  class MergeHkt extends Hkt {
13241
13244
  description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
13242
13245
  }
@@ -13246,7 +13249,7 @@ var arkBuiltins = Scope.module({
13246
13249
  Merge
13247
13250
  });
13248
13251
 
13249
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/Array.js
13252
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/Array.js
13250
13253
  class liftFromHkt extends Hkt {
13251
13254
  }
13252
13255
  var liftFrom = genericNode("element")((args2) => {
@@ -13263,7 +13266,7 @@ var arkArray = Scope.module({
13263
13266
  name: "Array"
13264
13267
  });
13265
13268
 
13266
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/FormData.js
13269
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/FormData.js
13267
13270
  var value = rootSchema(["string", registry.FileConstructor]);
13268
13271
  var parsedFormDataValue = value.rawOr(value.array());
13269
13272
  var parsed = rootSchema({
@@ -13300,7 +13303,7 @@ var arkFormData = Scope.module({
13300
13303
  name: "FormData"
13301
13304
  });
13302
13305
 
13303
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/TypedArray.js
13306
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/TypedArray.js
13304
13307
  var TypedArray = Scope.module({
13305
13308
  Int8: ["instanceof", Int8Array],
13306
13309
  Uint8: ["instanceof", Uint8Array],
@@ -13317,7 +13320,7 @@ var TypedArray = Scope.module({
13317
13320
  name: "TypedArray"
13318
13321
  });
13319
13322
 
13320
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/constructors.js
13323
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/constructors.js
13321
13324
  var omittedPrototypes = {
13322
13325
  Boolean: 1,
13323
13326
  Number: 1,
@@ -13330,7 +13333,7 @@ var arkPrototypes = Scope.module({
13330
13333
  FormData: arkFormData
13331
13334
  });
13332
13335
 
13333
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/number.js
13336
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/number.js
13334
13337
  var epoch = rootSchema({
13335
13338
  domain: {
13336
13339
  domain: "number",
@@ -13373,7 +13376,7 @@ var number = Scope.module({
13373
13376
  name: "number"
13374
13377
  });
13375
13378
 
13376
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/string.js
13379
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/string.js
13377
13380
  var regexStringNode = (regex2, description, jsonSchemaFormat) => {
13378
13381
  const schema = {
13379
13382
  domain: "string",
@@ -13764,7 +13767,7 @@ var string = Scope.module({
13764
13767
  name: "string"
13765
13768
  });
13766
13769
 
13767
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/ts.js
13770
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/ts.js
13768
13771
  var arkTsKeywords = Scope.module({
13769
13772
  bigint: intrinsic.bigint,
13770
13773
  boolean: intrinsic.boolean,
@@ -13852,7 +13855,7 @@ var arkTsGenerics = Scope.module({
13852
13855
  Required: Required2
13853
13856
  });
13854
13857
 
13855
- // ../../node_modules/.pnpm/arktype@2.1.28/node_modules/arktype/out/keywords/keywords.js
13858
+ // ../../node_modules/.pnpm/arktype@2.1.29/node_modules/arktype/out/keywords/keywords.js
13856
13859
  var ark = scope2({
13857
13860
  ...arkTsKeywords,
13858
13861
  ...arkTsGenerics,
@@ -0,0 +1,11 @@
1
+ CREATE TABLE "userSessions" (
2
+ "userId" uuid NOT NULL,
3
+ "sessionKey" uuid NOT NULL,
4
+ "createdAtIso" varchar(24) DEFAULT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"') NOT NULL
5
+ );
6
+ --> statement-breakpoint
7
+ ALTER TABLE "banishedIps" ALTER COLUMN "banishedAtIso" SET DEFAULT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"');--> statement-breakpoint
8
+ ALTER TABLE "passwordResetAttempts" ALTER COLUMN "requestedAtIso" SET DEFAULT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"');--> statement-breakpoint
9
+ ALTER TABLE "signInHistory" ALTER COLUMN "signInTimeIso" SET DEFAULT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"');--> statement-breakpoint
10
+ ALTER TABLE "users" ALTER COLUMN "createdAtIso" SET DEFAULT TO_CHAR(NOW() AT TIME ZONE 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"');--> statement-breakpoint
11
+ ALTER TABLE "userSessions" ADD CONSTRAINT "userSessions_userId_users_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;
@@ -0,0 +1,2 @@
1
+ ALTER TABLE "userSessions" ADD PRIMARY KEY ("sessionKey");--> statement-breakpoint
2
+ CREATE INDEX "userIdIndex" ON "userSessions" USING btree ("userId");