tempest.games 0.1.20 → 0.1.22

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.
@@ -1955,7 +1955,7 @@ function osUsername() {
1955
1955
  }
1956
1956
  }
1957
1957
 
1958
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/entity.js
1958
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/entity.js
1959
1959
  var entityKind = Symbol.for("drizzle:entityKind");
1960
1960
  var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
1961
1961
  function is(value, type) {
@@ -1980,7 +1980,7 @@ function is(value, type) {
1980
1980
  return false;
1981
1981
  }
1982
1982
 
1983
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/logger.js
1983
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/logger.js
1984
1984
  class ConsoleLogWriter {
1985
1985
  static [entityKind] = "ConsoleLogWriter";
1986
1986
  write(message) {
@@ -2013,7 +2013,7 @@ class NoopLogger {
2013
2013
  }
2014
2014
  }
2015
2015
 
2016
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/query-promise.js
2016
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/query-promise.js
2017
2017
  class QueryPromise {
2018
2018
  static [entityKind] = "QueryPromise";
2019
2019
  [Symbol.toStringTag] = "QueryPromise";
@@ -2034,10 +2034,10 @@ class QueryPromise {
2034
2034
  }
2035
2035
  }
2036
2036
 
2037
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/table.utils.js
2037
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/table.utils.js
2038
2038
  var TableName = Symbol.for("drizzle:Name");
2039
2039
 
2040
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/table.js
2040
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/table.js
2041
2041
  var Schema = Symbol.for("drizzle:Schema");
2042
2042
  var Columns = Symbol.for("drizzle:Columns");
2043
2043
  var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
@@ -2081,15 +2081,15 @@ function getTableUniqueName(table) {
2081
2081
  return `${table[Schema] ?? "public"}.${table[TableName]}`;
2082
2082
  }
2083
2083
 
2084
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/tracing-utils.js
2084
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/tracing-utils.js
2085
2085
  function iife(fn, ...args) {
2086
2086
  return fn(...args);
2087
2087
  }
2088
2088
 
2089
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/version.js
2090
- var version = "0.36.3";
2089
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/version.js
2090
+ var version = "0.38.3";
2091
2091
 
2092
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/tracing.js
2092
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/tracing.js
2093
2093
  var otel;
2094
2094
  var rawTracer;
2095
2095
  var tracer = {
@@ -2116,7 +2116,7 @@ var tracer = {
2116
2116
  }
2117
2117
  };
2118
2118
 
2119
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/column.js
2119
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/column.js
2120
2120
  class Column {
2121
2121
  constructor(table, config) {
2122
2122
  this.table = table;
@@ -2166,12 +2166,12 @@ class Column {
2166
2166
  }
2167
2167
  }
2168
2168
 
2169
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/unique-constraint.js
2169
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/unique-constraint.js
2170
2170
  function uniqueKeyName(table, columns) {
2171
2171
  return `${table[TableName]}_${columns.join("_")}_unique`;
2172
2172
  }
2173
2173
 
2174
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/common.js
2174
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/common.js
2175
2175
  class PgColumn extends Column {
2176
2176
  constructor(table, config) {
2177
2177
  if (!config.uniqueName) {
@@ -2220,7 +2220,7 @@ class ExtraConfigColumn extends PgColumn {
2220
2220
  }
2221
2221
  }
2222
2222
 
2223
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/enum.js
2223
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/enum.js
2224
2224
  var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
2225
2225
  function isPgEnum(obj) {
2226
2226
  return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
@@ -2238,7 +2238,7 @@ class PgEnumColumn extends PgColumn {
2238
2238
  }
2239
2239
  }
2240
2240
 
2241
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/subquery.js
2241
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/subquery.js
2242
2242
  class Subquery {
2243
2243
  static [entityKind] = "Subquery";
2244
2244
  constructor(sql, selection, alias, isWith = false) {
@@ -2256,10 +2256,10 @@ class WithSubquery extends Subquery {
2256
2256
  static [entityKind] = "WithSubquery";
2257
2257
  }
2258
2258
 
2259
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/view-common.js
2259
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/view-common.js
2260
2260
  var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
2261
2261
 
2262
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/sql/sql.js
2262
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/sql.js
2263
2263
  function isSQLWrapper(value) {
2264
2264
  return value !== null && value !== undefined && typeof value.getSQL === "function";
2265
2265
  }
@@ -2601,10 +2601,12 @@ function fillPlaceholders(params, values2) {
2601
2601
  return p;
2602
2602
  });
2603
2603
  }
2604
+ var IsDrizzleView = Symbol.for("drizzle:IsDrizzleView");
2604
2605
 
2605
2606
  class View {
2606
2607
  static [entityKind] = "View";
2607
2608
  [ViewBaseConfig];
2609
+ [IsDrizzleView] = true;
2608
2610
  constructor({ name: name2, schema, selectedFields, query }) {
2609
2611
  this[ViewBaseConfig] = {
2610
2612
  name: name2,
@@ -2630,7 +2632,7 @@ Subquery.prototype.getSQL = function() {
2630
2632
  return new SQL([this]);
2631
2633
  };
2632
2634
 
2633
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/utils.js
2635
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/utils.js
2634
2636
  function mapResultRow(columns, row, joinsNotNullableMap) {
2635
2637
  const nullifyMap = {};
2636
2638
  const result = columns.reduce((result2, { path, field }, columnIndex) => {
@@ -2775,7 +2777,7 @@ function isConfig(data) {
2775
2777
  return false;
2776
2778
  }
2777
2779
 
2778
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/delete.js
2780
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/delete.js
2779
2781
  class PgDeleteBase extends QueryPromise {
2780
2782
  constructor(table, session, dialect, withList) {
2781
2783
  super();
@@ -2808,9 +2810,14 @@ class PgDeleteBase extends QueryPromise {
2808
2810
  prepare(name) {
2809
2811
  return this._prepare(name);
2810
2812
  }
2813
+ authToken;
2814
+ setToken(token) {
2815
+ this.authToken = token;
2816
+ return this;
2817
+ }
2811
2818
  execute = (placeholderValues) => {
2812
2819
  return tracer.startActiveSpan("drizzle.operation", () => {
2813
- return this._prepare().execute(placeholderValues);
2820
+ return this._prepare().execute(placeholderValues, this.authToken);
2814
2821
  });
2815
2822
  };
2816
2823
  $dynamic() {
@@ -2818,7 +2825,7 @@ class PgDeleteBase extends QueryPromise {
2818
2825
  }
2819
2826
  }
2820
2827
 
2821
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/alias.js
2828
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/alias.js
2822
2829
  class ColumnAliasProxyHandler {
2823
2830
  constructor(table) {
2824
2831
  this.table = table;
@@ -2897,7 +2904,7 @@ function mapColumnsInSQLToAlias(query, alias) {
2897
2904
  }));
2898
2905
  }
2899
2906
 
2900
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/casing.js
2907
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/casing.js
2901
2908
  function toSnakeCase(input) {
2902
2909
  const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
2903
2910
  return words.map((word) => word.toLowerCase()).join("_");
@@ -2950,7 +2957,7 @@ class CasingCache {
2950
2957
  }
2951
2958
  }
2952
2959
 
2953
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/errors.js
2960
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/errors.js
2954
2961
  class DrizzleError extends Error {
2955
2962
  static [entityKind] = "DrizzleError";
2956
2963
  constructor({ message, cause }) {
@@ -2967,7 +2974,7 @@ class TransactionRollbackError extends DrizzleError {
2967
2974
  }
2968
2975
  }
2969
2976
 
2970
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/date.js
2977
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/date.js
2971
2978
  class PgDate extends PgColumn {
2972
2979
  static [entityKind] = "PgDate";
2973
2980
  getSQLType() {
@@ -2987,7 +2994,7 @@ class PgDateString extends PgColumn {
2987
2994
  }
2988
2995
  }
2989
2996
 
2990
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/json.js
2997
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/json.js
2991
2998
  class PgJson extends PgColumn {
2992
2999
  static [entityKind] = "PgJson";
2993
3000
  constructor(table, config) {
@@ -3011,7 +3018,7 @@ class PgJson extends PgColumn {
3011
3018
  }
3012
3019
  }
3013
3020
 
3014
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/jsonb.js
3021
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/jsonb.js
3015
3022
  class PgJsonb extends PgColumn {
3016
3023
  static [entityKind] = "PgJsonb";
3017
3024
  constructor(table, config) {
@@ -3035,7 +3042,7 @@ class PgJsonb extends PgColumn {
3035
3042
  }
3036
3043
  }
3037
3044
 
3038
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/numeric.js
3045
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/numeric.js
3039
3046
  class PgNumeric extends PgColumn {
3040
3047
  static [entityKind] = "PgNumeric";
3041
3048
  precision;
@@ -3056,7 +3063,7 @@ class PgNumeric extends PgColumn {
3056
3063
  }
3057
3064
  }
3058
3065
 
3059
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/time.js
3066
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/time.js
3060
3067
  class PgTime extends PgColumn {
3061
3068
  static [entityKind] = "PgTime";
3062
3069
  withTimezone;
@@ -3072,7 +3079,7 @@ class PgTime extends PgColumn {
3072
3079
  }
3073
3080
  }
3074
3081
 
3075
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/timestamp.js
3082
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/timestamp.js
3076
3083
  class PgTimestamp extends PgColumn {
3077
3084
  static [entityKind] = "PgTimestamp";
3078
3085
  withTimezone;
@@ -3108,7 +3115,7 @@ class PgTimestampString extends PgColumn {
3108
3115
  }
3109
3116
  }
3110
3117
 
3111
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/columns/uuid.js
3118
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/columns/uuid.js
3112
3119
  class PgUUID extends PgColumn {
3113
3120
  static [entityKind] = "PgUUID";
3114
3121
  getSQLType() {
@@ -3116,7 +3123,7 @@ class PgUUID extends PgColumn {
3116
3123
  }
3117
3124
  }
3118
3125
 
3119
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/table.js
3126
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/table.js
3120
3127
  var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
3121
3128
  var EnableRLS = Symbol.for("drizzle:EnableRLS");
3122
3129
 
@@ -3131,7 +3138,7 @@ class PgTable extends Table {
3131
3138
  [Table.Symbol.ExtraConfigBuilder] = undefined;
3132
3139
  }
3133
3140
 
3134
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/primary-keys.js
3141
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/primary-keys.js
3135
3142
  class PrimaryKeyBuilder {
3136
3143
  static [entityKind] = "PgPrimaryKeyBuilder";
3137
3144
  columns;
@@ -3159,7 +3166,7 @@ class PrimaryKey {
3159
3166
  }
3160
3167
  }
3161
3168
 
3162
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/sql/expressions/conditions.js
3169
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/expressions/conditions.js
3163
3170
  function bindIfParam(value, column) {
3164
3171
  if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
3165
3172
  return new Param(value, column);
@@ -3264,7 +3271,7 @@ function notIlike(column, value) {
3264
3271
  return sql`${column} not ilike ${value}`;
3265
3272
  }
3266
3273
 
3267
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/sql/expressions/select.js
3274
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/sql/expressions/select.js
3268
3275
  function asc(column) {
3269
3276
  return sql`${column} asc`;
3270
3277
  }
@@ -3272,7 +3279,7 @@ function desc(column) {
3272
3279
  return sql`${column} desc`;
3273
3280
  }
3274
3281
 
3275
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/relations.js
3282
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/relations.js
3276
3283
  class Relation {
3277
3284
  constructor(sourceTable, referencedTable, relationName) {
3278
3285
  this.sourceTable = sourceTable;
@@ -3492,12 +3499,12 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
3492
3499
  return result;
3493
3500
  }
3494
3501
 
3495
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/view-base.js
3502
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/view-base.js
3496
3503
  class PgViewBase extends View {
3497
3504
  static [entityKind] = "PgViewBase";
3498
3505
  }
3499
3506
 
3500
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/dialect.js
3507
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/dialect.js
3501
3508
  class PgDialect {
3502
3509
  static [entityKind] = "PgDialect";
3503
3510
  casing;
@@ -3766,7 +3773,7 @@ class PgDialect {
3766
3773
  const offsetSql = offset ? sql` offset ${offset}` : undefined;
3767
3774
  return sql`${leftChunk}${operatorChunk}${rightChunk}${orderBySql}${limitSql}${offsetSql}`;
3768
3775
  }
3769
- buildInsertQuery({ table, values: valuesOrSelect, onConflict, returning, withList, select: select2 }) {
3776
+ buildInsertQuery({ table, values: valuesOrSelect, onConflict, returning, withList, select: select2, overridingSystemValue_ }) {
3770
3777
  const valuesSqlList = [];
3771
3778
  const columns = table[Table.Symbol.Columns];
3772
3779
  const colEntries = Object.entries(columns).filter(([_, col]) => !col.shouldDisableInsert());
@@ -3811,7 +3818,8 @@ class PgDialect {
3811
3818
  const valuesSql = sql.join(valuesSqlList);
3812
3819
  const returningSql = returning ? sql` returning ${this.buildSelection(returning, { isSingleTable: true })}` : undefined;
3813
3820
  const onConflictSql = onConflict ? sql` on conflict ${onConflict}` : undefined;
3814
- return sql`${withSql}insert into ${table} ${insertOrder} ${valuesSql}${onConflictSql}${returningSql}`;
3821
+ const overridingSql = overridingSystemValue_ === true ? sql`overriding system value ` : undefined;
3822
+ return sql`${withSql}insert into ${table} ${insertOrder} ${overridingSql}${valuesSql}${onConflictSql}${returningSql}`;
3815
3823
  }
3816
3824
  buildRefreshMaterializedViewQuery({ view, concurrently, withNoData }) {
3817
3825
  const concurrentlySql = concurrently ? sql` concurrently` : undefined;
@@ -4053,7 +4061,7 @@ class PgDialect {
4053
4061
  }
4054
4062
  }
4055
4063
 
4056
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/selection-proxy.js
4064
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/selection-proxy.js
4057
4065
  class SelectionProxyHandler {
4058
4066
  static [entityKind] = "SelectionProxyHandler";
4059
4067
  config;
@@ -4105,7 +4113,7 @@ class SelectionProxyHandler {
4105
4113
  }
4106
4114
  }
4107
4115
 
4108
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/query-builders/query-builder.js
4116
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/query-builders/query-builder.js
4109
4117
  class TypedQueryBuilder {
4110
4118
  static [entityKind] = "TypedQueryBuilder";
4111
4119
  getSelectedFields() {
@@ -4113,7 +4121,7 @@ class TypedQueryBuilder {
4113
4121
  }
4114
4122
  }
4115
4123
 
4116
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/select.js
4124
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/select.js
4117
4125
  class PgSelectBuilder {
4118
4126
  static [entityKind] = "PgSelectBuilder";
4119
4127
  fields;
@@ -4130,6 +4138,11 @@ class PgSelectBuilder {
4130
4138
  }
4131
4139
  this.distinct = config.distinct;
4132
4140
  }
4141
+ authToken;
4142
+ setToken(token) {
4143
+ this.authToken = token;
4144
+ return this;
4145
+ }
4133
4146
  from(source) {
4134
4147
  const isPartialSelect = !!this.fields;
4135
4148
  let fields;
@@ -4152,7 +4165,7 @@ class PgSelectBuilder {
4152
4165
  dialect: this.dialect,
4153
4166
  withList: this.withList,
4154
4167
  distinct: this.distinct
4155
- });
4168
+ }).setToken(this.authToken);
4156
4169
  }
4157
4170
  }
4158
4171
 
@@ -4340,7 +4353,7 @@ class PgSelectQueryBuilderBase extends TypedQueryBuilder {
4340
4353
  class PgSelectBase extends PgSelectQueryBuilderBase {
4341
4354
  static [entityKind] = "PgSelect";
4342
4355
  _prepare(name) {
4343
- const { session, config, dialect, joinsNotNullableMap } = this;
4356
+ const { session, config, dialect, joinsNotNullableMap, authToken } = this;
4344
4357
  if (!session) {
4345
4358
  throw new Error("Cannot execute a query on a query builder. Please use a database instance instead.");
4346
4359
  }
@@ -4348,15 +4361,20 @@ class PgSelectBase extends PgSelectQueryBuilderBase {
4348
4361
  const fieldsList = orderSelectedFields(config.fields);
4349
4362
  const query = session.prepareQuery(dialect.sqlToQuery(this.getSQL()), fieldsList, name, true);
4350
4363
  query.joinsNotNullableMap = joinsNotNullableMap;
4351
- return query;
4364
+ return query.setToken(authToken);
4352
4365
  });
4353
4366
  }
4354
4367
  prepare(name) {
4355
4368
  return this._prepare(name);
4356
4369
  }
4370
+ authToken;
4371
+ setToken(token) {
4372
+ this.authToken = token;
4373
+ return this;
4374
+ }
4357
4375
  execute = (placeholderValues) => {
4358
4376
  return tracer.startActiveSpan("drizzle.operation", () => {
4359
- return this._prepare().execute(placeholderValues);
4377
+ return this._prepare().execute(placeholderValues, this.authToken);
4360
4378
  });
4361
4379
  };
4362
4380
  }
@@ -4391,7 +4409,7 @@ var intersectAll = createSetOperator("intersect", true);
4391
4409
  var except = createSetOperator("except", false);
4392
4410
  var exceptAll = createSetOperator("except", true);
4393
4411
 
4394
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4412
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
4395
4413
  class QueryBuilder {
4396
4414
  static [entityKind] = "PgQueryBuilder";
4397
4415
  dialect;
@@ -4470,15 +4488,25 @@ class QueryBuilder {
4470
4488
  }
4471
4489
  }
4472
4490
 
4473
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/insert.js
4491
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/insert.js
4474
4492
  class PgInsertBuilder {
4475
- constructor(table, session, dialect, withList) {
4493
+ constructor(table, session, dialect, withList, overridingSystemValue_) {
4476
4494
  this.table = table;
4477
4495
  this.session = session;
4478
4496
  this.dialect = dialect;
4479
4497
  this.withList = withList;
4498
+ this.overridingSystemValue_ = overridingSystemValue_;
4480
4499
  }
4481
4500
  static [entityKind] = "PgInsertBuilder";
4501
+ authToken;
4502
+ setToken(token) {
4503
+ this.authToken = token;
4504
+ return this;
4505
+ }
4506
+ overridingSystemValue() {
4507
+ this.overridingSystemValue_ = true;
4508
+ return this;
4509
+ }
4482
4510
  values(values2) {
4483
4511
  values2 = Array.isArray(values2) ? values2 : [values2];
4484
4512
  if (values2.length === 0) {
@@ -4493,7 +4521,7 @@ class PgInsertBuilder {
4493
4521
  }
4494
4522
  return result;
4495
4523
  });
4496
- return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList);
4524
+ return new PgInsertBase(this.table, mappedValues, this.session, this.dialect, this.withList, false, this.overridingSystemValue_).setToken(this.authToken);
4497
4525
  }
4498
4526
  select(selectQuery) {
4499
4527
  const select2 = typeof selectQuery === "function" ? selectQuery(new QueryBuilder) : selectQuery;
@@ -4505,11 +4533,11 @@ class PgInsertBuilder {
4505
4533
  }
4506
4534
 
4507
4535
  class PgInsertBase extends QueryPromise {
4508
- constructor(table, values2, session, dialect, withList, select2) {
4536
+ constructor(table, values2, session, dialect, withList, select2, overridingSystemValue_) {
4509
4537
  super();
4510
4538
  this.session = session;
4511
4539
  this.dialect = dialect;
4512
- this.config = { table, values: values2, withList, select: select2 };
4540
+ this.config = { table, values: values2, withList, select: select2, overridingSystemValue_ };
4513
4541
  }
4514
4542
  static [entityKind] = "PgInsert";
4515
4543
  config;
@@ -4556,9 +4584,14 @@ class PgInsertBase extends QueryPromise {
4556
4584
  prepare(name) {
4557
4585
  return this._prepare(name);
4558
4586
  }
4587
+ authToken;
4588
+ setToken(token) {
4589
+ this.authToken = token;
4590
+ return this;
4591
+ }
4559
4592
  execute = (placeholderValues) => {
4560
4593
  return tracer.startActiveSpan("drizzle.operation", () => {
4561
- return this._prepare().execute(placeholderValues);
4594
+ return this._prepare().execute(placeholderValues, this.authToken);
4562
4595
  });
4563
4596
  };
4564
4597
  $dynamic() {
@@ -4566,7 +4599,7 @@ class PgInsertBase extends QueryPromise {
4566
4599
  }
4567
4600
  }
4568
4601
 
4569
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4602
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
4570
4603
  class PgRefreshMaterializedView extends QueryPromise {
4571
4604
  constructor(view, session, dialect) {
4572
4605
  super();
@@ -4605,14 +4638,19 @@ class PgRefreshMaterializedView extends QueryPromise {
4605
4638
  prepare(name) {
4606
4639
  return this._prepare(name);
4607
4640
  }
4641
+ authToken;
4642
+ setToken(token) {
4643
+ this.authToken = token;
4644
+ return this;
4645
+ }
4608
4646
  execute = (placeholderValues) => {
4609
4647
  return tracer.startActiveSpan("drizzle.operation", () => {
4610
- return this._prepare().execute(placeholderValues);
4648
+ return this._prepare().execute(placeholderValues, this.authToken);
4611
4649
  });
4612
4650
  };
4613
4651
  }
4614
4652
 
4615
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/update.js
4653
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/update.js
4616
4654
  class PgUpdateBuilder {
4617
4655
  constructor(table, session, dialect, withList) {
4618
4656
  this.table = table;
@@ -4621,8 +4659,13 @@ class PgUpdateBuilder {
4621
4659
  this.withList = withList;
4622
4660
  }
4623
4661
  static [entityKind] = "PgUpdateBuilder";
4662
+ authToken;
4663
+ setToken(token) {
4664
+ this.authToken = token;
4665
+ return this;
4666
+ }
4624
4667
  set(values2) {
4625
- return new PgUpdateBase(this.table, mapUpdateSet(this.table, values2), this.session, this.dialect, this.withList);
4668
+ return new PgUpdateBase(this.table, mapUpdateSet(this.table, values2), this.session, this.dialect, this.withList).setToken(this.authToken);
4626
4669
  }
4627
4670
  }
4628
4671
 
@@ -4735,15 +4778,20 @@ class PgUpdateBase extends QueryPromise {
4735
4778
  prepare(name) {
4736
4779
  return this._prepare(name);
4737
4780
  }
4781
+ authToken;
4782
+ setToken(token) {
4783
+ this.authToken = token;
4784
+ return this;
4785
+ }
4738
4786
  execute = (placeholderValues) => {
4739
- return this._prepare().execute(placeholderValues);
4787
+ return this._prepare().execute(placeholderValues, this.authToken);
4740
4788
  };
4741
4789
  $dynamic() {
4742
4790
  return this;
4743
4791
  }
4744
4792
  }
4745
4793
 
4746
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/count.js
4794
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/count.js
4747
4795
  class PgCountBuilder extends SQL {
4748
4796
  constructor(params) {
4749
4797
  super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
@@ -4753,6 +4801,7 @@ class PgCountBuilder extends SQL {
4753
4801
  this.sql = PgCountBuilder.buildCount(params.source, params.filters);
4754
4802
  }
4755
4803
  sql;
4804
+ token;
4756
4805
  static [entityKind] = "PgCountBuilder";
4757
4806
  [Symbol.toStringTag] = "PgCountBuilder";
4758
4807
  session;
@@ -4762,8 +4811,12 @@ class PgCountBuilder extends SQL {
4762
4811
  static buildCount(source, filters) {
4763
4812
  return sql`select count(*) as count from ${source}${sql.raw(" where ").if(filters)}${filters};`;
4764
4813
  }
4814
+ setToken(token) {
4815
+ this.token = token;
4816
+ return this;
4817
+ }
4765
4818
  then(onfulfilled, onrejected) {
4766
- return Promise.resolve(this.session.count(this.sql)).then(onfulfilled, onrejected);
4819
+ return Promise.resolve(this.session.count(this.sql, this.token)).then(onfulfilled, onrejected);
4767
4820
  }
4768
4821
  catch(onRejected) {
4769
4822
  return this.then(undefined, onRejected);
@@ -4779,7 +4832,7 @@ class PgCountBuilder extends SQL {
4779
4832
  }
4780
4833
  }
4781
4834
 
4782
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/query.js
4835
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/query.js
4783
4836
  class RelationalQueryBuilder {
4784
4837
  constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
4785
4838
  this.fullSchema = fullSchema;
@@ -4850,14 +4903,19 @@ class PgRelationalQuery extends QueryPromise {
4850
4903
  toSQL() {
4851
4904
  return this._toSQL().builtQuery;
4852
4905
  }
4906
+ authToken;
4907
+ setToken(token) {
4908
+ this.authToken = token;
4909
+ return this;
4910
+ }
4853
4911
  execute() {
4854
4912
  return tracer.startActiveSpan("drizzle.operation", () => {
4855
- return this._prepare().execute();
4913
+ return this._prepare().execute(undefined, this.authToken);
4856
4914
  });
4857
4915
  }
4858
4916
  }
4859
4917
 
4860
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/query-builders/raw.js
4918
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/query-builders/raw.js
4861
4919
  class PgRaw extends QueryPromise {
4862
4920
  constructor(execute, sql2, query, mapBatchResult) {
4863
4921
  super();
@@ -4884,7 +4942,7 @@ class PgRaw extends QueryPromise {
4884
4942
  }
4885
4943
  }
4886
4944
 
4887
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/db.js
4945
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/db.js
4888
4946
  class PgDatabase {
4889
4947
  constructor(dialect, session, schema) {
4890
4948
  this.dialect = dialect;
@@ -4997,28 +5055,34 @@ class PgDatabase {
4997
5055
  refreshMaterializedView(view) {
4998
5056
  return new PgRefreshMaterializedView(view, this.session, this.dialect);
4999
5057
  }
5058
+ authToken;
5000
5059
  execute(query) {
5001
5060
  const sequel = typeof query === "string" ? sql.raw(query) : query.getSQL();
5002
5061
  const builtQuery = this.dialect.sqlToQuery(sequel);
5003
5062
  const prepared = this.session.prepareQuery(builtQuery, undefined, undefined, false);
5004
- return new PgRaw(() => prepared.execute(), sequel, builtQuery, (result) => prepared.mapResult(result, true));
5063
+ return new PgRaw(() => prepared.execute(undefined, this.authToken), sequel, builtQuery, (result) => prepared.mapResult(result, true));
5005
5064
  }
5006
5065
  transaction(transaction, config) {
5007
5066
  return this.session.transaction(transaction, config);
5008
5067
  }
5009
5068
  }
5010
5069
 
5011
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/pg-core/session.js
5070
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/pg-core/session.js
5012
5071
  class PgPreparedQuery {
5013
5072
  constructor(query) {
5014
5073
  this.query = query;
5015
5074
  }
5075
+ authToken;
5016
5076
  getQuery() {
5017
5077
  return this.query;
5018
5078
  }
5019
5079
  mapResult(response, _isFromBatch) {
5020
5080
  return response;
5021
5081
  }
5082
+ setToken(token) {
5083
+ this.authToken = token;
5084
+ return this;
5085
+ }
5022
5086
  static [entityKind] = "PgPreparedQuery";
5023
5087
  joinsNotNullableMap;
5024
5088
  }
@@ -5028,19 +5092,19 @@ class PgSession {
5028
5092
  this.dialect = dialect;
5029
5093
  }
5030
5094
  static [entityKind] = "PgSession";
5031
- execute(query) {
5095
+ execute(query, token) {
5032
5096
  return tracer.startActiveSpan("drizzle.operation", () => {
5033
5097
  const prepared = tracer.startActiveSpan("drizzle.prepareQuery", () => {
5034
5098
  return this.prepareQuery(this.dialect.sqlToQuery(query), undefined, undefined, false);
5035
5099
  });
5036
- return prepared.execute();
5100
+ return prepared.setToken(token).execute(undefined, token);
5037
5101
  });
5038
5102
  }
5039
5103
  all(query) {
5040
5104
  return this.prepareQuery(this.dialect.sqlToQuery(query), undefined, undefined, false).all();
5041
5105
  }
5042
- async count(sql2) {
5043
- const res = await this.execute(sql2);
5106
+ async count(sql2, token) {
5107
+ const res = await this.execute(sql2, token);
5044
5108
  return Number(res[0]["count"]);
5045
5109
  }
5046
5110
  }
@@ -5073,7 +5137,7 @@ class PgTransaction extends PgDatabase {
5073
5137
  }
5074
5138
  }
5075
5139
 
5076
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/postgres-js/session.js
5140
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/session.js
5077
5141
  class PostgresJsPreparedQuery extends PgPreparedQuery {
5078
5142
  constructor(client, queryString, params, logger, fields, _isResponseInArrayMode, customResultMapper) {
5079
5143
  super({ sql: queryString, params });
@@ -5181,7 +5245,7 @@ class PostgresJsTransaction extends PgTransaction {
5181
5245
  }
5182
5246
  }
5183
5247
 
5184
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/postgres-js/driver.js
5248
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/driver.js
5185
5249
  class PostgresJsDatabase extends PgDatabase {
5186
5250
  static [entityKind] = "PostgresJsDatabase";
5187
5251
  }
@@ -5235,12 +5299,17 @@ function drizzle(...params) {
5235
5299
  }
5236
5300
  ((drizzle2) => {
5237
5301
  function mock(config) {
5238
- return construct({}, config);
5302
+ return construct({
5303
+ options: {
5304
+ parsers: {},
5305
+ serializers: {}
5306
+ }
5307
+ }, config);
5239
5308
  }
5240
5309
  drizzle2.mock = mock;
5241
5310
  })(drizzle || (drizzle = {}));
5242
5311
 
5243
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/migrator.js
5312
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/migrator.js
5244
5313
  import crypto2 from "crypto";
5245
5314
  import fs2 from "fs";
5246
5315
  function readMigrationFiles(config) {
@@ -5272,13 +5341,13 @@ function readMigrationFiles(config) {
5272
5341
  return migrationQueries;
5273
5342
  }
5274
5343
 
5275
- // ../../node_modules/.pnpm/drizzle-orm@0.36.3_@types+react@18.3.12_bun-types@1.1.35_postgres@3.4.5_react@18.3.1/node_modules/drizzle-orm/postgres-js/migrator.js
5344
+ // ../../node_modules/.pnpm/drizzle-orm@0.38.3_@types+react@19.0.2_bun-types@1.1.42_postgres@3.4.5_react@19.0.0/node_modules/drizzle-orm/postgres-js/migrator.js
5276
5345
  async function migrate(db, config) {
5277
5346
  const migrations = readMigrationFiles(config);
5278
5347
  await db.dialect.migrate(migrations, db.session, config);
5279
5348
  }
5280
5349
 
5281
- // ../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
5350
+ // ../../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/index.mjs
5282
5351
  var util;
5283
5352
  (function(util2) {
5284
5353
  util2.assertEqual = (val) => val;
@@ -5433,6 +5502,9 @@ var quotelessJson = (obj) => {
5433
5502
  };
5434
5503
 
5435
5504
  class ZodError extends Error {
5505
+ get errors() {
5506
+ return this.issues;
5507
+ }
5436
5508
  constructor(issues) {
5437
5509
  super();
5438
5510
  this.issues = [];
@@ -5451,9 +5523,6 @@ class ZodError extends Error {
5451
5523
  this.name = "ZodError";
5452
5524
  this.issues = issues;
5453
5525
  }
5454
- get errors() {
5455
- return this.issues;
5456
- }
5457
5526
  format(_mapper) {
5458
5527
  const mapper = _mapper || function(issue) {
5459
5528
  return issue.message;
@@ -5823,34 +5892,6 @@ function processCreateParams(params) {
5823
5892
  }
5824
5893
 
5825
5894
  class ZodType {
5826
- constructor(def) {
5827
- this.spa = this.safeParseAsync;
5828
- this._def = def;
5829
- this.parse = this.parse.bind(this);
5830
- this.safeParse = this.safeParse.bind(this);
5831
- this.parseAsync = this.parseAsync.bind(this);
5832
- this.safeParseAsync = this.safeParseAsync.bind(this);
5833
- this.spa = this.spa.bind(this);
5834
- this.refine = this.refine.bind(this);
5835
- this.refinement = this.refinement.bind(this);
5836
- this.superRefine = this.superRefine.bind(this);
5837
- this.optional = this.optional.bind(this);
5838
- this.nullable = this.nullable.bind(this);
5839
- this.nullish = this.nullish.bind(this);
5840
- this.array = this.array.bind(this);
5841
- this.promise = this.promise.bind(this);
5842
- this.or = this.or.bind(this);
5843
- this.and = this.and.bind(this);
5844
- this.transform = this.transform.bind(this);
5845
- this.brand = this.brand.bind(this);
5846
- this.default = this.default.bind(this);
5847
- this.catch = this.catch.bind(this);
5848
- this.describe = this.describe.bind(this);
5849
- this.pipe = this.pipe.bind(this);
5850
- this.readonly = this.readonly.bind(this);
5851
- this.isNullable = this.isNullable.bind(this);
5852
- this.isOptional = this.isOptional.bind(this);
5853
- }
5854
5895
  get description() {
5855
5896
  return this._def.description;
5856
5897
  }
@@ -5914,6 +5955,43 @@ class ZodType {
5914
5955
  const result = this._parseSync({ data, path: ctx.path, parent: ctx });
5915
5956
  return handleResult(ctx, result);
5916
5957
  }
5958
+ "~validate"(data) {
5959
+ var _a, _b;
5960
+ const ctx = {
5961
+ common: {
5962
+ issues: [],
5963
+ async: !!this["~standard"].async
5964
+ },
5965
+ path: [],
5966
+ schemaErrorMap: this._def.errorMap,
5967
+ parent: null,
5968
+ data,
5969
+ parsedType: getParsedType(data)
5970
+ };
5971
+ if (!this["~standard"].async) {
5972
+ try {
5973
+ const result = this._parseSync({ data, path: [], parent: ctx });
5974
+ return isValid(result) ? {
5975
+ value: result.value
5976
+ } : {
5977
+ issues: ctx.common.issues
5978
+ };
5979
+ } catch (err) {
5980
+ if ((_b = (_a = err === null || err === undefined ? undefined : err.message) === null || _a === undefined ? undefined : _a.toLowerCase()) === null || _b === undefined ? undefined : _b.includes("encountered")) {
5981
+ this["~standard"].async = true;
5982
+ }
5983
+ ctx.common = {
5984
+ issues: [],
5985
+ async: true
5986
+ };
5987
+ }
5988
+ }
5989
+ return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {
5990
+ value: result.value
5991
+ } : {
5992
+ issues: ctx.common.issues
5993
+ });
5994
+ }
5917
5995
  async parseAsync(data, params) {
5918
5996
  const result = await this.safeParseAsync(data, params);
5919
5997
  if (result.success)
@@ -5991,6 +6069,39 @@ class ZodType {
5991
6069
  superRefine(refinement) {
5992
6070
  return this._refinement(refinement);
5993
6071
  }
6072
+ constructor(def) {
6073
+ this.spa = this.safeParseAsync;
6074
+ this._def = def;
6075
+ this.parse = this.parse.bind(this);
6076
+ this.safeParse = this.safeParse.bind(this);
6077
+ this.parseAsync = this.parseAsync.bind(this);
6078
+ this.safeParseAsync = this.safeParseAsync.bind(this);
6079
+ this.spa = this.spa.bind(this);
6080
+ this.refine = this.refine.bind(this);
6081
+ this.refinement = this.refinement.bind(this);
6082
+ this.superRefine = this.superRefine.bind(this);
6083
+ this.optional = this.optional.bind(this);
6084
+ this.nullable = this.nullable.bind(this);
6085
+ this.nullish = this.nullish.bind(this);
6086
+ this.array = this.array.bind(this);
6087
+ this.promise = this.promise.bind(this);
6088
+ this.or = this.or.bind(this);
6089
+ this.and = this.and.bind(this);
6090
+ this.transform = this.transform.bind(this);
6091
+ this.brand = this.brand.bind(this);
6092
+ this.default = this.default.bind(this);
6093
+ this.catch = this.catch.bind(this);
6094
+ this.describe = this.describe.bind(this);
6095
+ this.pipe = this.pipe.bind(this);
6096
+ this.readonly = this.readonly.bind(this);
6097
+ this.isNullable = this.isNullable.bind(this);
6098
+ this.isOptional = this.isOptional.bind(this);
6099
+ this["~standard"] = {
6100
+ version: 1,
6101
+ vendor: "zod",
6102
+ validate: (data) => this["~validate"](data)
6103
+ };
6104
+ }
5994
6105
  optional() {
5995
6106
  return ZodOptional.create(this, this._def);
5996
6107
  }
@@ -6001,7 +6112,7 @@ class ZodType {
6001
6112
  return this.nullable().optional();
6002
6113
  }
6003
6114
  array() {
6004
- return ZodArray.create(this, this._def);
6115
+ return ZodArray.create(this);
6005
6116
  }
6006
6117
  promise() {
6007
6118
  return ZodPromise.create(this, this._def);
@@ -6067,16 +6178,20 @@ class ZodType {
6067
6178
  }
6068
6179
  var cuidRegex = /^c[^\s-]{8,}$/i;
6069
6180
  var cuid2Regex = /^[0-9a-z]+$/;
6070
- var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;
6181
+ var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
6071
6182
  var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
6072
6183
  var nanoidRegex = /^[a-z0-9_-]{21}$/i;
6184
+ var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
6073
6185
  var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
6074
6186
  var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
6075
6187
  var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
6076
6188
  var emojiRegex;
6077
6189
  var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
6078
- var ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
6190
+ var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
6191
+ var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
6192
+ var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
6079
6193
  var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
6194
+ var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
6080
6195
  var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
6081
6196
  var dateRegex = new RegExp(`^${dateRegexSource}$`);
6082
6197
  function timeRegexSource(args) {
@@ -6109,6 +6224,33 @@ function isValidIP(ip, version2) {
6109
6224
  }
6110
6225
  return false;
6111
6226
  }
6227
+ function isValidJWT(jwt, alg) {
6228
+ if (!jwtRegex.test(jwt))
6229
+ return false;
6230
+ try {
6231
+ const [header] = jwt.split(".");
6232
+ const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
6233
+ const decoded = JSON.parse(atob(base64));
6234
+ if (typeof decoded !== "object" || decoded === null)
6235
+ return false;
6236
+ if (!decoded.typ || !decoded.alg)
6237
+ return false;
6238
+ if (alg && decoded.alg !== alg)
6239
+ return false;
6240
+ return true;
6241
+ } catch (_a) {
6242
+ return false;
6243
+ }
6244
+ }
6245
+ function isValidCidr(ip, version2) {
6246
+ if ((version2 === "v4" || !version2) && ipv4CidrRegex.test(ip)) {
6247
+ return true;
6248
+ }
6249
+ if ((version2 === "v6" || !version2) && ipv6CidrRegex.test(ip)) {
6250
+ return true;
6251
+ }
6252
+ return false;
6253
+ }
6112
6254
 
6113
6255
  class ZodString extends ZodType {
6114
6256
  _parse(input) {
@@ -6366,6 +6508,26 @@ class ZodString extends ZodType {
6366
6508
  });
6367
6509
  status.dirty();
6368
6510
  }
6511
+ } else if (check.kind === "jwt") {
6512
+ if (!isValidJWT(input.data, check.alg)) {
6513
+ ctx = this._getOrReturnCtx(input, ctx);
6514
+ addIssueToContext(ctx, {
6515
+ validation: "jwt",
6516
+ code: ZodIssueCode.invalid_string,
6517
+ message: check.message
6518
+ });
6519
+ status.dirty();
6520
+ }
6521
+ } else if (check.kind === "cidr") {
6522
+ if (!isValidCidr(input.data, check.version)) {
6523
+ ctx = this._getOrReturnCtx(input, ctx);
6524
+ addIssueToContext(ctx, {
6525
+ validation: "cidr",
6526
+ code: ZodIssueCode.invalid_string,
6527
+ message: check.message
6528
+ });
6529
+ status.dirty();
6530
+ }
6369
6531
  } else if (check.kind === "base64") {
6370
6532
  if (!base64Regex.test(input.data)) {
6371
6533
  ctx = this._getOrReturnCtx(input, ctx);
@@ -6376,6 +6538,16 @@ class ZodString extends ZodType {
6376
6538
  });
6377
6539
  status.dirty();
6378
6540
  }
6541
+ } else if (check.kind === "base64url") {
6542
+ if (!base64urlRegex.test(input.data)) {
6543
+ ctx = this._getOrReturnCtx(input, ctx);
6544
+ addIssueToContext(ctx, {
6545
+ validation: "base64url",
6546
+ code: ZodIssueCode.invalid_string,
6547
+ message: check.message
6548
+ });
6549
+ status.dirty();
6550
+ }
6379
6551
  } else {
6380
6552
  util.assertNever(check);
6381
6553
  }
@@ -6422,9 +6594,21 @@ class ZodString extends ZodType {
6422
6594
  base64(message) {
6423
6595
  return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
6424
6596
  }
6597
+ base64url(message) {
6598
+ return this._addCheck({
6599
+ kind: "base64url",
6600
+ ...errorUtil.errToObj(message)
6601
+ });
6602
+ }
6603
+ jwt(options) {
6604
+ return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
6605
+ }
6425
6606
  ip(options) {
6426
6607
  return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
6427
6608
  }
6609
+ cidr(options) {
6610
+ return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
6611
+ }
6428
6612
  datetime(options) {
6429
6613
  var _a, _b;
6430
6614
  if (typeof options === "string") {
@@ -6574,9 +6758,15 @@ class ZodString extends ZodType {
6574
6758
  get isIP() {
6575
6759
  return !!this._def.checks.find((ch) => ch.kind === "ip");
6576
6760
  }
6761
+ get isCIDR() {
6762
+ return !!this._def.checks.find((ch) => ch.kind === "cidr");
6763
+ }
6577
6764
  get isBase64() {
6578
6765
  return !!this._def.checks.find((ch) => ch.kind === "base64");
6579
6766
  }
6767
+ get isBase64url() {
6768
+ return !!this._def.checks.find((ch) => ch.kind === "base64url");
6769
+ }
6580
6770
  get minLength() {
6581
6771
  let min = null;
6582
6772
  for (const ch of this._def.checks) {
@@ -6856,17 +7046,15 @@ class ZodBigInt extends ZodType {
6856
7046
  }
6857
7047
  _parse(input) {
6858
7048
  if (this._def.coerce) {
6859
- input.data = BigInt(input.data);
7049
+ try {
7050
+ input.data = BigInt(input.data);
7051
+ } catch (_a) {
7052
+ return this._getInvalidInput(input);
7053
+ }
6860
7054
  }
6861
7055
  const parsedType = this._getType(input);
6862
7056
  if (parsedType !== ZodParsedType.bigint) {
6863
- const ctx2 = this._getOrReturnCtx(input);
6864
- addIssueToContext(ctx2, {
6865
- code: ZodIssueCode.invalid_type,
6866
- expected: ZodParsedType.bigint,
6867
- received: ctx2.parsedType
6868
- });
6869
- return INVALID;
7057
+ return this._getInvalidInput(input);
6870
7058
  }
6871
7059
  let ctx = undefined;
6872
7060
  const status = new ParseStatus;
@@ -6913,6 +7101,15 @@ class ZodBigInt extends ZodType {
6913
7101
  }
6914
7102
  return { status: status.value, value: input.data };
6915
7103
  }
7104
+ _getInvalidInput(input) {
7105
+ const ctx = this._getOrReturnCtx(input);
7106
+ addIssueToContext(ctx, {
7107
+ code: ZodIssueCode.invalid_type,
7108
+ expected: ZodParsedType.bigint,
7109
+ received: ctx.parsedType
7110
+ });
7111
+ return INVALID;
7112
+ }
6916
7113
  gte(value, message) {
6917
7114
  return this.setLimit("min", value, true, errorUtil.toString(message));
6918
7115
  }
@@ -9140,7 +9337,7 @@ var z = /* @__PURE__ */ Object.freeze({
9140
9337
  ZodError
9141
9338
  });
9142
9339
 
9143
- // ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.6.3_zod@3.23.8/node_modules/@t3-oss/env-core/dist/index.js
9340
+ // ../../node_modules/.pnpm/@t3-oss+env-core@0.11.1_typescript@5.7.2_zod@3.24.1/node_modules/@t3-oss/env-core/dist/index.js
9144
9341
  function createEnv(opts) {
9145
9342
  const runtimeEnv = opts.runtimeEnvStrict ?? opts.runtimeEnv ?? process.env;
9146
9343
  const emptyStringAsUndefined = opts.emptyStringAsUndefined ?? false;