@robbeverhelst/do 1.57.0 → 1.58.0
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/do.js +383 -166
- package/package.json +1 -1
package/dist/do.js
CHANGED
|
@@ -90,7 +90,7 @@ function flagBool(flags, name) {
|
|
|
90
90
|
return flags[name] === true;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// ../../node_modules
|
|
93
|
+
// ../../node_modules/drizzle-orm/entity.js
|
|
94
94
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
95
95
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
96
96
|
function is(value, type) {
|
|
@@ -115,7 +115,7 @@ function is(value, type) {
|
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// ../../node_modules
|
|
118
|
+
// ../../node_modules/drizzle-orm/column.js
|
|
119
119
|
class Column {
|
|
120
120
|
constructor(table, config) {
|
|
121
121
|
this.table = table;
|
|
@@ -165,7 +165,7 @@ class Column {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
// ../../node_modules
|
|
168
|
+
// ../../node_modules/drizzle-orm/column-builder.js
|
|
169
169
|
class ColumnBuilder {
|
|
170
170
|
static [entityKind] = "ColumnBuilder";
|
|
171
171
|
config;
|
|
@@ -221,10 +221,10 @@ class ColumnBuilder {
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
// ../../node_modules
|
|
224
|
+
// ../../node_modules/drizzle-orm/table.utils.js
|
|
225
225
|
var TableName = Symbol.for("drizzle:Name");
|
|
226
226
|
|
|
227
|
-
// ../../node_modules
|
|
227
|
+
// ../../node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
228
228
|
class ForeignKeyBuilder {
|
|
229
229
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
230
230
|
reference;
|
|
@@ -278,12 +278,12 @@ class ForeignKey {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
// ../../node_modules
|
|
281
|
+
// ../../node_modules/drizzle-orm/tracing-utils.js
|
|
282
282
|
function iife(fn, ...args) {
|
|
283
283
|
return fn(...args);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
// ../../node_modules
|
|
286
|
+
// ../../node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
287
287
|
function unique(name) {
|
|
288
288
|
return new UniqueOnConstraintBuilder(name);
|
|
289
289
|
}
|
|
@@ -335,7 +335,7 @@ class UniqueConstraint {
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
// ../../node_modules
|
|
338
|
+
// ../../node_modules/drizzle-orm/pg-core/utils/array.js
|
|
339
339
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
340
340
|
for (let i = startFrom;i < arrayString.length; i++) {
|
|
341
341
|
const char = arrayString[i];
|
|
@@ -411,7 +411,7 @@ function makePgArray(array) {
|
|
|
411
411
|
}).join(",")}}`;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
// ../../node_modules
|
|
414
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/common.js
|
|
415
415
|
class PgColumnBuilder extends ColumnBuilder {
|
|
416
416
|
foreignKeyConfigs = [];
|
|
417
417
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -559,7 +559,7 @@ class PgArray extends PgColumn {
|
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
|
|
562
|
-
// ../../node_modules
|
|
562
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
563
563
|
class PgEnumObjectColumnBuilder extends PgColumnBuilder {
|
|
564
564
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
565
565
|
constructor(name, enumInstance) {
|
|
@@ -633,7 +633,7 @@ function pgEnumObjectWithSchema(enumName, values, schema) {
|
|
|
633
633
|
return enumInstance;
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
// ../../node_modules
|
|
636
|
+
// ../../node_modules/drizzle-orm/subquery.js
|
|
637
637
|
class Subquery {
|
|
638
638
|
static [entityKind] = "Subquery";
|
|
639
639
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -652,10 +652,10 @@ class WithSubquery extends Subquery {
|
|
|
652
652
|
static [entityKind] = "WithSubquery";
|
|
653
653
|
}
|
|
654
654
|
|
|
655
|
-
// ../../node_modules
|
|
655
|
+
// ../../node_modules/drizzle-orm/version.js
|
|
656
656
|
var version = "0.45.2";
|
|
657
657
|
|
|
658
|
-
// ../../node_modules
|
|
658
|
+
// ../../node_modules/drizzle-orm/tracing.js
|
|
659
659
|
var otel;
|
|
660
660
|
var rawTracer;
|
|
661
661
|
var tracer = {
|
|
@@ -682,10 +682,10 @@ var tracer = {
|
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
|
|
685
|
-
// ../../node_modules
|
|
685
|
+
// ../../node_modules/drizzle-orm/view-common.js
|
|
686
686
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
687
687
|
|
|
688
|
-
// ../../node_modules
|
|
688
|
+
// ../../node_modules/drizzle-orm/table.js
|
|
689
689
|
var Schema = Symbol.for("drizzle:Schema");
|
|
690
690
|
var Columns = Symbol.for("drizzle:Columns");
|
|
691
691
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -732,7 +732,7 @@ function getTableUniqueName(table) {
|
|
|
732
732
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
// ../../node_modules
|
|
735
|
+
// ../../node_modules/drizzle-orm/sql/sql.js
|
|
736
736
|
function isSQLWrapper(value) {
|
|
737
737
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
738
738
|
}
|
|
@@ -1098,7 +1098,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
1098
1098
|
return new SQL([this]);
|
|
1099
1099
|
};
|
|
1100
1100
|
|
|
1101
|
-
// ../../node_modules
|
|
1101
|
+
// ../../node_modules/drizzle-orm/alias.js
|
|
1102
1102
|
class ColumnAliasProxyHandler {
|
|
1103
1103
|
constructor(table) {
|
|
1104
1104
|
this.table = table;
|
|
@@ -1177,7 +1177,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
1177
1177
|
}));
|
|
1178
1178
|
}
|
|
1179
1179
|
|
|
1180
|
-
// ../../node_modules
|
|
1180
|
+
// ../../node_modules/drizzle-orm/pg-core/checks.js
|
|
1181
1181
|
class CheckBuilder {
|
|
1182
1182
|
constructor(name, value) {
|
|
1183
1183
|
this.name = name;
|
|
@@ -1204,7 +1204,7 @@ function check(name, value) {
|
|
|
1204
1204
|
return new CheckBuilder(name, value);
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
|
-
// ../../node_modules
|
|
1207
|
+
// ../../node_modules/drizzle-orm/utils.js
|
|
1208
1208
|
function orderSelectedFields(fields, pathPrefix) {
|
|
1209
1209
|
return Object.entries(fields).reduce((result, [name, field]) => {
|
|
1210
1210
|
if (typeof name !== "string") {
|
|
@@ -1260,7 +1260,7 @@ function getColumnNameAndConfig(a, b) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
1262
1262
|
|
|
1263
|
-
// ../../node_modules
|
|
1263
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
1264
1264
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
1265
1265
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
1266
1266
|
generatedAlwaysAsIdentity(sequence) {
|
|
@@ -1299,7 +1299,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
|
-
// ../../node_modules
|
|
1302
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
1303
1303
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
1304
1304
|
static [entityKind] = "PgBigInt53Builder";
|
|
1305
1305
|
constructor(name) {
|
|
@@ -1350,7 +1350,7 @@ function bigint(a, b) {
|
|
|
1350
1350
|
return new PgBigInt64Builder(name);
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
// ../../node_modules
|
|
1353
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
1354
1354
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
1355
1355
|
static [entityKind] = "PgBigSerial53Builder";
|
|
1356
1356
|
constructor(name) {
|
|
@@ -1404,7 +1404,7 @@ function bigserial(a, b) {
|
|
|
1404
1404
|
return new PgBigSerial64Builder(name);
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
|
-
// ../../node_modules
|
|
1407
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
1408
1408
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
1409
1409
|
static [entityKind] = "PgBooleanBuilder";
|
|
1410
1410
|
constructor(name) {
|
|
@@ -1425,7 +1425,7 @@ function boolean(name) {
|
|
|
1425
1425
|
return new PgBooleanBuilder(name ?? "");
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
-
// ../../node_modules
|
|
1428
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/char.js
|
|
1429
1429
|
class PgCharBuilder extends PgColumnBuilder {
|
|
1430
1430
|
static [entityKind] = "PgCharBuilder";
|
|
1431
1431
|
constructor(name, config) {
|
|
@@ -1451,7 +1451,7 @@ function char(a, b = {}) {
|
|
|
1451
1451
|
return new PgCharBuilder(name, config);
|
|
1452
1452
|
}
|
|
1453
1453
|
|
|
1454
|
-
// ../../node_modules
|
|
1454
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
1455
1455
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
1456
1456
|
static [entityKind] = "PgCidrBuilder";
|
|
1457
1457
|
constructor(name) {
|
|
@@ -1472,7 +1472,7 @@ function cidr(name) {
|
|
|
1472
1472
|
return new PgCidrBuilder(name ?? "");
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
|
-
// ../../node_modules
|
|
1475
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
1476
1476
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
1477
1477
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
1478
1478
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -1513,7 +1513,7 @@ function customType(customTypeParams) {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
}
|
|
1515
1515
|
|
|
1516
|
-
// ../../node_modules
|
|
1516
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
1517
1517
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
1518
1518
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
1519
1519
|
defaultNow() {
|
|
@@ -1521,7 +1521,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
|
|
1524
|
-
// ../../node_modules
|
|
1524
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/date.js
|
|
1525
1525
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
1526
1526
|
static [entityKind] = "PgDateBuilder";
|
|
1527
1527
|
constructor(name) {
|
|
@@ -1576,7 +1576,7 @@ function date(a, b) {
|
|
|
1576
1576
|
return new PgDateStringBuilder(name);
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
|
-
// ../../node_modules
|
|
1579
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
1580
1580
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
1581
1581
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
1582
1582
|
constructor(name) {
|
|
@@ -1603,7 +1603,7 @@ function doublePrecision(name) {
|
|
|
1603
1603
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
1604
1604
|
}
|
|
1605
1605
|
|
|
1606
|
-
// ../../node_modules
|
|
1606
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
1607
1607
|
class PgInetBuilder extends PgColumnBuilder {
|
|
1608
1608
|
static [entityKind] = "PgInetBuilder";
|
|
1609
1609
|
constructor(name) {
|
|
@@ -1624,7 +1624,7 @@ function inet(name) {
|
|
|
1624
1624
|
return new PgInetBuilder(name ?? "");
|
|
1625
1625
|
}
|
|
1626
1626
|
|
|
1627
|
-
// ../../node_modules
|
|
1627
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
1628
1628
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
1629
1629
|
static [entityKind] = "PgIntegerBuilder";
|
|
1630
1630
|
constructor(name) {
|
|
@@ -1651,7 +1651,7 @@ function integer(name) {
|
|
|
1651
1651
|
return new PgIntegerBuilder(name ?? "");
|
|
1652
1652
|
}
|
|
1653
1653
|
|
|
1654
|
-
// ../../node_modules
|
|
1654
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
1655
1655
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
1656
1656
|
static [entityKind] = "PgIntervalBuilder";
|
|
1657
1657
|
constructor(name, intervalConfig) {
|
|
@@ -1678,7 +1678,7 @@ function interval(a, b = {}) {
|
|
|
1678
1678
|
return new PgIntervalBuilder(name, config);
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
1681
|
-
// ../../node_modules
|
|
1681
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/json.js
|
|
1682
1682
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
1683
1683
|
static [entityKind] = "PgJsonBuilder";
|
|
1684
1684
|
constructor(name) {
|
|
@@ -1715,7 +1715,7 @@ function json(name) {
|
|
|
1715
1715
|
return new PgJsonBuilder(name ?? "");
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
-
// ../../node_modules
|
|
1718
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
1719
1719
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
1720
1720
|
static [entityKind] = "PgJsonbBuilder";
|
|
1721
1721
|
constructor(name) {
|
|
@@ -1752,7 +1752,7 @@ function jsonb(name) {
|
|
|
1752
1752
|
return new PgJsonbBuilder(name ?? "");
|
|
1753
1753
|
}
|
|
1754
1754
|
|
|
1755
|
-
// ../../node_modules
|
|
1755
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/line.js
|
|
1756
1756
|
class PgLineBuilder extends PgColumnBuilder {
|
|
1757
1757
|
static [entityKind] = "PgLineBuilder";
|
|
1758
1758
|
constructor(name) {
|
|
@@ -1808,7 +1808,7 @@ function line(a, b) {
|
|
|
1808
1808
|
return new PgLineABCBuilder(name);
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
|
-
// ../../node_modules
|
|
1811
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
1812
1812
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
1813
1813
|
static [entityKind] = "PgMacaddrBuilder";
|
|
1814
1814
|
constructor(name) {
|
|
@@ -1829,7 +1829,7 @@ function macaddr(name) {
|
|
|
1829
1829
|
return new PgMacaddrBuilder(name ?? "");
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
|
-
// ../../node_modules
|
|
1832
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
1833
1833
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
1834
1834
|
static [entityKind] = "PgMacaddr8Builder";
|
|
1835
1835
|
constructor(name) {
|
|
@@ -1850,7 +1850,7 @@ function macaddr8(name) {
|
|
|
1850
1850
|
return new PgMacaddr8Builder(name ?? "");
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
|
-
// ../../node_modules
|
|
1853
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
1854
1854
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
1855
1855
|
static [entityKind] = "PgNumericBuilder";
|
|
1856
1856
|
constructor(name, precision, scale) {
|
|
@@ -1965,7 +1965,7 @@ function numeric(a, b) {
|
|
|
1965
1965
|
return mode === "number" ? new PgNumericNumberBuilder(name, config?.precision, config?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config?.precision, config?.scale) : new PgNumericBuilder(name, config?.precision, config?.scale);
|
|
1966
1966
|
}
|
|
1967
1967
|
|
|
1968
|
-
// ../../node_modules
|
|
1968
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/point.js
|
|
1969
1969
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
1970
1970
|
static [entityKind] = "PgPointTupleBuilder";
|
|
1971
1971
|
constructor(name) {
|
|
@@ -2027,7 +2027,7 @@ function point(a, b) {
|
|
|
2027
2027
|
return new PgPointObjectBuilder(name);
|
|
2028
2028
|
}
|
|
2029
2029
|
|
|
2030
|
-
// ../../node_modules
|
|
2030
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
2031
2031
|
function hexToBytes(hex) {
|
|
2032
2032
|
const bytes = [];
|
|
2033
2033
|
for (let c = 0;c < hex.length; c += 2) {
|
|
@@ -2066,7 +2066,7 @@ function parseEWKB(hex) {
|
|
|
2066
2066
|
throw new Error("Unsupported geometry type");
|
|
2067
2067
|
}
|
|
2068
2068
|
|
|
2069
|
-
// ../../node_modules
|
|
2069
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
2070
2070
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
2071
2071
|
static [entityKind] = "PgGeometryBuilder";
|
|
2072
2072
|
constructor(name) {
|
|
@@ -2121,7 +2121,7 @@ function geometry(a, b) {
|
|
|
2121
2121
|
return new PgGeometryObjectBuilder(name);
|
|
2122
2122
|
}
|
|
2123
2123
|
|
|
2124
|
-
// ../../node_modules
|
|
2124
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/real.js
|
|
2125
2125
|
class PgRealBuilder extends PgColumnBuilder {
|
|
2126
2126
|
static [entityKind] = "PgRealBuilder";
|
|
2127
2127
|
constructor(name, length) {
|
|
@@ -2152,7 +2152,7 @@ function real(name) {
|
|
|
2152
2152
|
return new PgRealBuilder(name ?? "");
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
// ../../node_modules
|
|
2155
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
2156
2156
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
2157
2157
|
static [entityKind] = "PgSerialBuilder";
|
|
2158
2158
|
constructor(name) {
|
|
@@ -2175,7 +2175,7 @@ function serial(name) {
|
|
|
2175
2175
|
return new PgSerialBuilder(name ?? "");
|
|
2176
2176
|
}
|
|
2177
2177
|
|
|
2178
|
-
// ../../node_modules
|
|
2178
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
2179
2179
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
2180
2180
|
static [entityKind] = "PgSmallIntBuilder";
|
|
2181
2181
|
constructor(name) {
|
|
@@ -2202,7 +2202,7 @@ function smallint(name) {
|
|
|
2202
2202
|
return new PgSmallIntBuilder(name ?? "");
|
|
2203
2203
|
}
|
|
2204
2204
|
|
|
2205
|
-
// ../../node_modules
|
|
2205
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
2206
2206
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
2207
2207
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
2208
2208
|
constructor(name) {
|
|
@@ -2225,7 +2225,7 @@ function smallserial(name) {
|
|
|
2225
2225
|
return new PgSmallSerialBuilder(name ?? "");
|
|
2226
2226
|
}
|
|
2227
2227
|
|
|
2228
|
-
// ../../node_modules
|
|
2228
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/text.js
|
|
2229
2229
|
class PgTextBuilder extends PgColumnBuilder {
|
|
2230
2230
|
static [entityKind] = "PgTextBuilder";
|
|
2231
2231
|
constructor(name, config) {
|
|
@@ -2249,7 +2249,7 @@ function text(a, b = {}) {
|
|
|
2249
2249
|
return new PgTextBuilder(name, config);
|
|
2250
2250
|
}
|
|
2251
2251
|
|
|
2252
|
-
// ../../node_modules
|
|
2252
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/time.js
|
|
2253
2253
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
2254
2254
|
constructor(name, withTimezone, precision) {
|
|
2255
2255
|
super(name, "string", "PgTime");
|
|
@@ -2283,7 +2283,7 @@ function time(a, b = {}) {
|
|
|
2283
2283
|
return new PgTimeBuilder(name, config.withTimezone ?? false, config.precision);
|
|
2284
2284
|
}
|
|
2285
2285
|
|
|
2286
|
-
// ../../node_modules
|
|
2286
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
2287
2287
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
2288
2288
|
static [entityKind] = "PgTimestampBuilder";
|
|
2289
2289
|
constructor(name, withTimezone, precision) {
|
|
@@ -2364,7 +2364,7 @@ function timestamp(a, b = {}) {
|
|
|
2364
2364
|
return new PgTimestampBuilder(name, config?.withTimezone ?? false, config?.precision);
|
|
2365
2365
|
}
|
|
2366
2366
|
|
|
2367
|
-
// ../../node_modules
|
|
2367
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
2368
2368
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
2369
2369
|
static [entityKind] = "PgUUIDBuilder";
|
|
2370
2370
|
constructor(name) {
|
|
@@ -2388,7 +2388,7 @@ function uuid(name) {
|
|
|
2388
2388
|
return new PgUUIDBuilder(name ?? "");
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
|
-
// ../../node_modules
|
|
2391
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
2392
2392
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
2393
2393
|
static [entityKind] = "PgVarcharBuilder";
|
|
2394
2394
|
constructor(name, config) {
|
|
@@ -2414,7 +2414,7 @@ function varchar(a, b = {}) {
|
|
|
2414
2414
|
return new PgVarcharBuilder(name, config);
|
|
2415
2415
|
}
|
|
2416
2416
|
|
|
2417
|
-
// ../../node_modules
|
|
2417
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
2418
2418
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
2419
2419
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
2420
2420
|
constructor(name, config) {
|
|
@@ -2438,7 +2438,7 @@ function bit(a, b) {
|
|
|
2438
2438
|
return new PgBinaryVectorBuilder(name, config);
|
|
2439
2439
|
}
|
|
2440
2440
|
|
|
2441
|
-
// ../../node_modules
|
|
2441
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
2442
2442
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
2443
2443
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
2444
2444
|
constructor(name, config) {
|
|
@@ -2468,7 +2468,7 @@ function halfvec(a, b) {
|
|
|
2468
2468
|
return new PgHalfVectorBuilder(name, config);
|
|
2469
2469
|
}
|
|
2470
2470
|
|
|
2471
|
-
// ../../node_modules
|
|
2471
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
2472
2472
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
2473
2473
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
2474
2474
|
constructor(name, config) {
|
|
@@ -2492,7 +2492,7 @@ function sparsevec(a, b) {
|
|
|
2492
2492
|
return new PgSparseVectorBuilder(name, config);
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
|
-
// ../../node_modules
|
|
2495
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
2496
2496
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
2497
2497
|
static [entityKind] = "PgVectorBuilder";
|
|
2498
2498
|
constructor(name, config) {
|
|
@@ -2522,7 +2522,7 @@ function vector(a, b) {
|
|
|
2522
2522
|
return new PgVectorBuilder(name, config);
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
|
-
// ../../node_modules
|
|
2525
|
+
// ../../node_modules/drizzle-orm/query-promise.js
|
|
2526
2526
|
class QueryPromise {
|
|
2527
2527
|
static [entityKind] = "QueryPromise";
|
|
2528
2528
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -2543,7 +2543,7 @@ class QueryPromise {
|
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
2545
|
|
|
2546
|
-
// ../../node_modules
|
|
2546
|
+
// ../../node_modules/drizzle-orm/selection-proxy.js
|
|
2547
2547
|
class SelectionProxyHandler {
|
|
2548
2548
|
static [entityKind] = "SelectionProxyHandler";
|
|
2549
2549
|
config;
|
|
@@ -2595,7 +2595,7 @@ class SelectionProxyHandler {
|
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
2597
2597
|
|
|
2598
|
-
// ../../node_modules
|
|
2598
|
+
// ../../node_modules/drizzle-orm/pg-core/columns/all.js
|
|
2599
2599
|
function getPgColumnBuilders() {
|
|
2600
2600
|
return {
|
|
2601
2601
|
bigint,
|
|
@@ -2633,7 +2633,7 @@ function getPgColumnBuilders() {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
|
-
// ../../node_modules
|
|
2636
|
+
// ../../node_modules/drizzle-orm/pg-core/table.js
|
|
2637
2637
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
2638
2638
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
2639
2639
|
|
|
@@ -2681,7 +2681,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
2681
2681
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
2682
2682
|
};
|
|
2683
2683
|
|
|
2684
|
-
// ../../node_modules
|
|
2684
|
+
// ../../node_modules/drizzle-orm/pg-core/indexes.js
|
|
2685
2685
|
class IndexBuilderOn {
|
|
2686
2686
|
constructor(unique2, name) {
|
|
2687
2687
|
this.unique = unique2;
|
|
@@ -2763,7 +2763,7 @@ function index(name) {
|
|
|
2763
2763
|
return new IndexBuilderOn(false, name);
|
|
2764
2764
|
}
|
|
2765
2765
|
|
|
2766
|
-
// ../../node_modules
|
|
2766
|
+
// ../../node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
2767
2767
|
function primaryKey(...config) {
|
|
2768
2768
|
if (config[0].columns) {
|
|
2769
2769
|
return new PrimaryKeyBuilder(config[0].columns, config[0].name);
|
|
@@ -2798,10 +2798,10 @@ class PrimaryKey {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
2800
|
|
|
2801
|
-
// ../../node_modules
|
|
2801
|
+
// ../../node_modules/drizzle-orm/pg-core/view-common.js
|
|
2802
2802
|
var PgViewConfig = Symbol.for("drizzle:PgViewConfig");
|
|
2803
2803
|
|
|
2804
|
-
// ../../node_modules
|
|
2804
|
+
// ../../node_modules/drizzle-orm/casing.js
|
|
2805
2805
|
function toSnakeCase(input) {
|
|
2806
2806
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
2807
2807
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -2854,7 +2854,7 @@ class CasingCache {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
2856
|
|
|
2857
|
-
// ../../node_modules
|
|
2857
|
+
// ../../node_modules/drizzle-orm/errors.js
|
|
2858
2858
|
class DrizzleError extends Error {
|
|
2859
2859
|
static [entityKind] = "DrizzleError";
|
|
2860
2860
|
constructor({ message, cause }) {
|
|
@@ -2864,7 +2864,7 @@ class DrizzleError extends Error {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
}
|
|
2866
2866
|
|
|
2867
|
-
// ../../node_modules
|
|
2867
|
+
// ../../node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
2868
2868
|
function bindIfParam(value, column) {
|
|
2869
2869
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
2870
2870
|
return new Param(value, column);
|
|
@@ -2969,7 +2969,7 @@ function notIlike(column, value) {
|
|
|
2969
2969
|
return sql`${column} not ilike ${value}`;
|
|
2970
2970
|
}
|
|
2971
2971
|
|
|
2972
|
-
// ../../node_modules
|
|
2972
|
+
// ../../node_modules/drizzle-orm/sql/expressions/select.js
|
|
2973
2973
|
function asc(column) {
|
|
2974
2974
|
return sql`${column} asc`;
|
|
2975
2975
|
}
|
|
@@ -2977,7 +2977,7 @@ function desc(column) {
|
|
|
2977
2977
|
return sql`${column} desc`;
|
|
2978
2978
|
}
|
|
2979
2979
|
|
|
2980
|
-
// ../../node_modules
|
|
2980
|
+
// ../../node_modules/drizzle-orm/relations.js
|
|
2981
2981
|
class Relation {
|
|
2982
2982
|
constructor(sourceTable, referencedTable, relationName) {
|
|
2983
2983
|
this.sourceTable = sourceTable;
|
|
@@ -3086,12 +3086,12 @@ function normalizeRelation(schema, tableNamesMap, relation) {
|
|
|
3086
3086
|
throw new Error(`There is not enough information to infer relation "${sourceTableTsName}.${relation.fieldName}"`);
|
|
3087
3087
|
}
|
|
3088
3088
|
|
|
3089
|
-
// ../../node_modules
|
|
3089
|
+
// ../../node_modules/drizzle-orm/pg-core/view-base.js
|
|
3090
3090
|
class PgViewBase extends View {
|
|
3091
3091
|
static [entityKind] = "PgViewBase";
|
|
3092
3092
|
}
|
|
3093
3093
|
|
|
3094
|
-
// ../../node_modules
|
|
3094
|
+
// ../../node_modules/drizzle-orm/pg-core/dialect.js
|
|
3095
3095
|
class PgDialect {
|
|
3096
3096
|
static [entityKind] = "PgDialect";
|
|
3097
3097
|
casing;
|
|
@@ -3660,7 +3660,7 @@ class PgDialect {
|
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
|
|
3663
|
-
// ../../node_modules
|
|
3663
|
+
// ../../node_modules/drizzle-orm/query-builders/query-builder.js
|
|
3664
3664
|
class TypedQueryBuilder {
|
|
3665
3665
|
static [entityKind] = "TypedQueryBuilder";
|
|
3666
3666
|
getSelectedFields() {
|
|
@@ -3668,7 +3668,7 @@ class TypedQueryBuilder {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
|
-
// ../../node_modules
|
|
3671
|
+
// ../../node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
3672
3672
|
class PgSelectBuilder {
|
|
3673
3673
|
static [entityKind] = "PgSelectBuilder";
|
|
3674
3674
|
fields;
|
|
@@ -3986,7 +3986,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
3986
3986
|
var except = createSetOperator("except", false);
|
|
3987
3987
|
var exceptAll = createSetOperator("except", true);
|
|
3988
3988
|
|
|
3989
|
-
// ../../node_modules
|
|
3989
|
+
// ../../node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
3990
3990
|
class QueryBuilder {
|
|
3991
3991
|
static [entityKind] = "PgQueryBuilder";
|
|
3992
3992
|
dialect;
|
|
@@ -4064,7 +4064,7 @@ class QueryBuilder {
|
|
|
4064
4064
|
}
|
|
4065
4065
|
}
|
|
4066
4066
|
|
|
4067
|
-
// ../../node_modules
|
|
4067
|
+
// ../../node_modules/drizzle-orm/pg-core/view.js
|
|
4068
4068
|
class DefaultViewBuilderCore {
|
|
4069
4069
|
constructor(name, schema) {
|
|
4070
4070
|
this.name = name;
|
|
@@ -4166,7 +4166,7 @@ function pgView(name, columns) {
|
|
|
4166
4166
|
return pgViewWithSchema(name, columns, undefined);
|
|
4167
4167
|
}
|
|
4168
4168
|
|
|
4169
|
-
// ../../node_modules
|
|
4169
|
+
// ../../node_modules/drizzle-orm/pg-core/utils.js
|
|
4170
4170
|
function extractUsedTable(table) {
|
|
4171
4171
|
if (is(table, PgTable)) {
|
|
4172
4172
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -5047,7 +5047,7 @@ var insightsHabitStreaks = pgView("insights_habit_streaks", {
|
|
|
5047
5047
|
latestRunLength: integer("latest_run_length").notNull(),
|
|
5048
5048
|
latestRunEnd: date("latest_run_end").notNull()
|
|
5049
5049
|
}).existing();
|
|
5050
|
-
// ../../node_modules
|
|
5050
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
5051
5051
|
var exports_external = {};
|
|
5052
5052
|
__export(exports_external, {
|
|
5053
5053
|
xor: () => xor,
|
|
@@ -5290,7 +5290,7 @@ __export(exports_external, {
|
|
|
5290
5290
|
$brand: () => $brand
|
|
5291
5291
|
});
|
|
5292
5292
|
|
|
5293
|
-
// ../../node_modules
|
|
5293
|
+
// ../../node_modules/zod/v4/core/index.js
|
|
5294
5294
|
var exports_core2 = {};
|
|
5295
5295
|
__export(exports_core2, {
|
|
5296
5296
|
version: () => version2,
|
|
@@ -5569,7 +5569,7 @@ __export(exports_core2, {
|
|
|
5569
5569
|
$ZodAny: () => $ZodAny
|
|
5570
5570
|
});
|
|
5571
5571
|
|
|
5572
|
-
// ../../node_modules
|
|
5572
|
+
// ../../node_modules/zod/v4/core/core.js
|
|
5573
5573
|
var _a;
|
|
5574
5574
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
5575
5575
|
status: "aborted"
|
|
@@ -5647,7 +5647,7 @@ function config(newConfig) {
|
|
|
5647
5647
|
Object.assign(globalConfig, newConfig);
|
|
5648
5648
|
return globalConfig;
|
|
5649
5649
|
}
|
|
5650
|
-
// ../../node_modules
|
|
5650
|
+
// ../../node_modules/zod/v4/core/util.js
|
|
5651
5651
|
var exports_util = {};
|
|
5652
5652
|
__export(exports_util, {
|
|
5653
5653
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -6339,7 +6339,7 @@ class Class {
|
|
|
6339
6339
|
constructor(..._args) {}
|
|
6340
6340
|
}
|
|
6341
6341
|
|
|
6342
|
-
// ../../node_modules
|
|
6342
|
+
// ../../node_modules/zod/v4/core/errors.js
|
|
6343
6343
|
var initializer = (inst, def) => {
|
|
6344
6344
|
inst.name = "$ZodError";
|
|
6345
6345
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -6479,7 +6479,7 @@ function prettifyError(error) {
|
|
|
6479
6479
|
`);
|
|
6480
6480
|
}
|
|
6481
6481
|
|
|
6482
|
-
// ../../node_modules
|
|
6482
|
+
// ../../node_modules/zod/v4/core/parse.js
|
|
6483
6483
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
6484
6484
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
6485
6485
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -6566,7 +6566,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
6566
6566
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
6567
6567
|
};
|
|
6568
6568
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
6569
|
-
// ../../node_modules
|
|
6569
|
+
// ../../node_modules/zod/v4/core/regexes.js
|
|
6570
6570
|
var exports_regexes = {};
|
|
6571
6571
|
__export(exports_regexes, {
|
|
6572
6572
|
xid: () => xid,
|
|
@@ -6725,7 +6725,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
6725
6725
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
6726
6726
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
6727
6727
|
|
|
6728
|
-
// ../../node_modules
|
|
6728
|
+
// ../../node_modules/zod/v4/core/checks.js
|
|
6729
6729
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
6730
6730
|
var _a2;
|
|
6731
6731
|
inst._zod ?? (inst._zod = {});
|
|
@@ -7272,7 +7272,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
7272
7272
|
};
|
|
7273
7273
|
});
|
|
7274
7274
|
|
|
7275
|
-
// ../../node_modules
|
|
7275
|
+
// ../../node_modules/zod/v4/core/doc.js
|
|
7276
7276
|
class Doc {
|
|
7277
7277
|
constructor(args = []) {
|
|
7278
7278
|
this.content = [];
|
|
@@ -7310,14 +7310,14 @@ class Doc {
|
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
7312
|
|
|
7313
|
-
// ../../node_modules
|
|
7313
|
+
// ../../node_modules/zod/v4/core/versions.js
|
|
7314
7314
|
var version2 = {
|
|
7315
7315
|
major: 4,
|
|
7316
7316
|
minor: 4,
|
|
7317
7317
|
patch: 3
|
|
7318
7318
|
};
|
|
7319
7319
|
|
|
7320
|
-
// ../../node_modules
|
|
7320
|
+
// ../../node_modules/zod/v4/core/schemas.js
|
|
7321
7321
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
7322
7322
|
var _a2;
|
|
7323
7323
|
inst ?? (inst = {});
|
|
@@ -9401,7 +9401,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
9401
9401
|
payload.issues.push(issue(_iss));
|
|
9402
9402
|
}
|
|
9403
9403
|
}
|
|
9404
|
-
// ../../node_modules
|
|
9404
|
+
// ../../node_modules/zod/v4/locales/index.js
|
|
9405
9405
|
var exports_locales = {};
|
|
9406
9406
|
__export(exports_locales, {
|
|
9407
9407
|
zhTW: () => zh_TW_default,
|
|
@@ -9458,7 +9458,7 @@ __export(exports_locales, {
|
|
|
9458
9458
|
ar: () => ar_default
|
|
9459
9459
|
});
|
|
9460
9460
|
|
|
9461
|
-
// ../../node_modules
|
|
9461
|
+
// ../../node_modules/zod/v4/locales/ar.js
|
|
9462
9462
|
var error = () => {
|
|
9463
9463
|
const Sizable = {
|
|
9464
9464
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -9564,7 +9564,7 @@ function ar_default() {
|
|
|
9564
9564
|
localeError: error()
|
|
9565
9565
|
};
|
|
9566
9566
|
}
|
|
9567
|
-
// ../../node_modules
|
|
9567
|
+
// ../../node_modules/zod/v4/locales/az.js
|
|
9568
9568
|
var error2 = () => {
|
|
9569
9569
|
const Sizable = {
|
|
9570
9570
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -9669,7 +9669,7 @@ function az_default() {
|
|
|
9669
9669
|
localeError: error2()
|
|
9670
9670
|
};
|
|
9671
9671
|
}
|
|
9672
|
-
// ../../node_modules
|
|
9672
|
+
// ../../node_modules/zod/v4/locales/be.js
|
|
9673
9673
|
function getBelarusianPlural(count, one, few, many) {
|
|
9674
9674
|
const absCount = Math.abs(count);
|
|
9675
9675
|
const lastDigit = absCount % 10;
|
|
@@ -9825,7 +9825,7 @@ function be_default() {
|
|
|
9825
9825
|
localeError: error3()
|
|
9826
9826
|
};
|
|
9827
9827
|
}
|
|
9828
|
-
// ../../node_modules
|
|
9828
|
+
// ../../node_modules/zod/v4/locales/bg.js
|
|
9829
9829
|
var error4 = () => {
|
|
9830
9830
|
const Sizable = {
|
|
9831
9831
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -9945,7 +9945,7 @@ function bg_default() {
|
|
|
9945
9945
|
localeError: error4()
|
|
9946
9946
|
};
|
|
9947
9947
|
}
|
|
9948
|
-
// ../../node_modules
|
|
9948
|
+
// ../../node_modules/zod/v4/locales/ca.js
|
|
9949
9949
|
var error5 = () => {
|
|
9950
9950
|
const Sizable = {
|
|
9951
9951
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -10052,7 +10052,7 @@ function ca_default() {
|
|
|
10052
10052
|
localeError: error5()
|
|
10053
10053
|
};
|
|
10054
10054
|
}
|
|
10055
|
-
// ../../node_modules
|
|
10055
|
+
// ../../node_modules/zod/v4/locales/cs.js
|
|
10056
10056
|
var error6 = () => {
|
|
10057
10057
|
const Sizable = {
|
|
10058
10058
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -10163,7 +10163,7 @@ function cs_default() {
|
|
|
10163
10163
|
localeError: error6()
|
|
10164
10164
|
};
|
|
10165
10165
|
}
|
|
10166
|
-
// ../../node_modules
|
|
10166
|
+
// ../../node_modules/zod/v4/locales/da.js
|
|
10167
10167
|
var error7 = () => {
|
|
10168
10168
|
const Sizable = {
|
|
10169
10169
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -10278,7 +10278,7 @@ function da_default() {
|
|
|
10278
10278
|
localeError: error7()
|
|
10279
10279
|
};
|
|
10280
10280
|
}
|
|
10281
|
-
// ../../node_modules
|
|
10281
|
+
// ../../node_modules/zod/v4/locales/de.js
|
|
10282
10282
|
var error8 = () => {
|
|
10283
10283
|
const Sizable = {
|
|
10284
10284
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -10386,7 +10386,7 @@ function de_default() {
|
|
|
10386
10386
|
localeError: error8()
|
|
10387
10387
|
};
|
|
10388
10388
|
}
|
|
10389
|
-
// ../../node_modules
|
|
10389
|
+
// ../../node_modules/zod/v4/locales/el.js
|
|
10390
10390
|
var error9 = () => {
|
|
10391
10391
|
const Sizable = {
|
|
10392
10392
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -10495,7 +10495,7 @@ function el_default() {
|
|
|
10495
10495
|
localeError: error9()
|
|
10496
10496
|
};
|
|
10497
10497
|
}
|
|
10498
|
-
// ../../node_modules
|
|
10498
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
10499
10499
|
var error10 = () => {
|
|
10500
10500
|
const Sizable = {
|
|
10501
10501
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -10605,7 +10605,7 @@ function en_default() {
|
|
|
10605
10605
|
localeError: error10()
|
|
10606
10606
|
};
|
|
10607
10607
|
}
|
|
10608
|
-
// ../../node_modules
|
|
10608
|
+
// ../../node_modules/zod/v4/locales/eo.js
|
|
10609
10609
|
var error11 = () => {
|
|
10610
10610
|
const Sizable = {
|
|
10611
10611
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -10714,7 +10714,7 @@ function eo_default() {
|
|
|
10714
10714
|
localeError: error11()
|
|
10715
10715
|
};
|
|
10716
10716
|
}
|
|
10717
|
-
// ../../node_modules
|
|
10717
|
+
// ../../node_modules/zod/v4/locales/es.js
|
|
10718
10718
|
var error12 = () => {
|
|
10719
10719
|
const Sizable = {
|
|
10720
10720
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -10846,7 +10846,7 @@ function es_default() {
|
|
|
10846
10846
|
localeError: error12()
|
|
10847
10847
|
};
|
|
10848
10848
|
}
|
|
10849
|
-
// ../../node_modules
|
|
10849
|
+
// ../../node_modules/zod/v4/locales/fa.js
|
|
10850
10850
|
var error13 = () => {
|
|
10851
10851
|
const Sizable = {
|
|
10852
10852
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -10960,7 +10960,7 @@ function fa_default() {
|
|
|
10960
10960
|
localeError: error13()
|
|
10961
10961
|
};
|
|
10962
10962
|
}
|
|
10963
|
-
// ../../node_modules
|
|
10963
|
+
// ../../node_modules/zod/v4/locales/fi.js
|
|
10964
10964
|
var error14 = () => {
|
|
10965
10965
|
const Sizable = {
|
|
10966
10966
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -11072,7 +11072,7 @@ function fi_default() {
|
|
|
11072
11072
|
localeError: error14()
|
|
11073
11073
|
};
|
|
11074
11074
|
}
|
|
11075
|
-
// ../../node_modules
|
|
11075
|
+
// ../../node_modules/zod/v4/locales/fr.js
|
|
11076
11076
|
var error15 = () => {
|
|
11077
11077
|
const Sizable = {
|
|
11078
11078
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11197,7 +11197,7 @@ function fr_default() {
|
|
|
11197
11197
|
localeError: error15()
|
|
11198
11198
|
};
|
|
11199
11199
|
}
|
|
11200
|
-
// ../../node_modules
|
|
11200
|
+
// ../../node_modules/zod/v4/locales/fr-CA.js
|
|
11201
11201
|
var error16 = () => {
|
|
11202
11202
|
const Sizable = {
|
|
11203
11203
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11304,7 +11304,7 @@ function fr_CA_default() {
|
|
|
11304
11304
|
localeError: error16()
|
|
11305
11305
|
};
|
|
11306
11306
|
}
|
|
11307
|
-
// ../../node_modules
|
|
11307
|
+
// ../../node_modules/zod/v4/locales/he.js
|
|
11308
11308
|
var error17 = () => {
|
|
11309
11309
|
const TypeNames = {
|
|
11310
11310
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -11497,7 +11497,7 @@ function he_default() {
|
|
|
11497
11497
|
localeError: error17()
|
|
11498
11498
|
};
|
|
11499
11499
|
}
|
|
11500
|
-
// ../../node_modules
|
|
11500
|
+
// ../../node_modules/zod/v4/locales/hr.js
|
|
11501
11501
|
var error18 = () => {
|
|
11502
11502
|
const Sizable = {
|
|
11503
11503
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -11619,7 +11619,7 @@ function hr_default() {
|
|
|
11619
11619
|
localeError: error18()
|
|
11620
11620
|
};
|
|
11621
11621
|
}
|
|
11622
|
-
// ../../node_modules
|
|
11622
|
+
// ../../node_modules/zod/v4/locales/hu.js
|
|
11623
11623
|
var error19 = () => {
|
|
11624
11624
|
const Sizable = {
|
|
11625
11625
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -11727,7 +11727,7 @@ function hu_default() {
|
|
|
11727
11727
|
localeError: error19()
|
|
11728
11728
|
};
|
|
11729
11729
|
}
|
|
11730
|
-
// ../../node_modules
|
|
11730
|
+
// ../../node_modules/zod/v4/locales/hy.js
|
|
11731
11731
|
function getArmenianPlural(count, one, many) {
|
|
11732
11732
|
return Math.abs(count) === 1 ? one : many;
|
|
11733
11733
|
}
|
|
@@ -11874,7 +11874,7 @@ function hy_default() {
|
|
|
11874
11874
|
localeError: error20()
|
|
11875
11875
|
};
|
|
11876
11876
|
}
|
|
11877
|
-
// ../../node_modules
|
|
11877
|
+
// ../../node_modules/zod/v4/locales/id.js
|
|
11878
11878
|
var error21 = () => {
|
|
11879
11879
|
const Sizable = {
|
|
11880
11880
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -11980,7 +11980,7 @@ function id_default() {
|
|
|
11980
11980
|
localeError: error21()
|
|
11981
11981
|
};
|
|
11982
11982
|
}
|
|
11983
|
-
// ../../node_modules
|
|
11983
|
+
// ../../node_modules/zod/v4/locales/is.js
|
|
11984
11984
|
var error22 = () => {
|
|
11985
11985
|
const Sizable = {
|
|
11986
11986
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -12089,7 +12089,7 @@ function is_default() {
|
|
|
12089
12089
|
localeError: error22()
|
|
12090
12090
|
};
|
|
12091
12091
|
}
|
|
12092
|
-
// ../../node_modules
|
|
12092
|
+
// ../../node_modules/zod/v4/locales/it.js
|
|
12093
12093
|
var error23 = () => {
|
|
12094
12094
|
const Sizable = {
|
|
12095
12095
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -12197,7 +12197,7 @@ function it_default() {
|
|
|
12197
12197
|
localeError: error23()
|
|
12198
12198
|
};
|
|
12199
12199
|
}
|
|
12200
|
-
// ../../node_modules
|
|
12200
|
+
// ../../node_modules/zod/v4/locales/ja.js
|
|
12201
12201
|
var error24 = () => {
|
|
12202
12202
|
const Sizable = {
|
|
12203
12203
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -12304,7 +12304,7 @@ function ja_default() {
|
|
|
12304
12304
|
localeError: error24()
|
|
12305
12305
|
};
|
|
12306
12306
|
}
|
|
12307
|
-
// ../../node_modules
|
|
12307
|
+
// ../../node_modules/zod/v4/locales/ka.js
|
|
12308
12308
|
var error25 = () => {
|
|
12309
12309
|
const Sizable = {
|
|
12310
12310
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -12416,7 +12416,7 @@ function ka_default() {
|
|
|
12416
12416
|
localeError: error25()
|
|
12417
12417
|
};
|
|
12418
12418
|
}
|
|
12419
|
-
// ../../node_modules
|
|
12419
|
+
// ../../node_modules/zod/v4/locales/km.js
|
|
12420
12420
|
var error26 = () => {
|
|
12421
12421
|
const Sizable = {
|
|
12422
12422
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -12527,11 +12527,11 @@ function km_default() {
|
|
|
12527
12527
|
};
|
|
12528
12528
|
}
|
|
12529
12529
|
|
|
12530
|
-
// ../../node_modules
|
|
12530
|
+
// ../../node_modules/zod/v4/locales/kh.js
|
|
12531
12531
|
function kh_default() {
|
|
12532
12532
|
return km_default();
|
|
12533
12533
|
}
|
|
12534
|
-
// ../../node_modules
|
|
12534
|
+
// ../../node_modules/zod/v4/locales/ko.js
|
|
12535
12535
|
var error27 = () => {
|
|
12536
12536
|
const Sizable = {
|
|
12537
12537
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -12642,7 +12642,7 @@ function ko_default() {
|
|
|
12642
12642
|
localeError: error27()
|
|
12643
12643
|
};
|
|
12644
12644
|
}
|
|
12645
|
-
// ../../node_modules
|
|
12645
|
+
// ../../node_modules/zod/v4/locales/lt.js
|
|
12646
12646
|
var capitalizeFirstCharacter = (text2) => {
|
|
12647
12647
|
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
12648
12648
|
};
|
|
@@ -12845,7 +12845,7 @@ function lt_default() {
|
|
|
12845
12845
|
localeError: error28()
|
|
12846
12846
|
};
|
|
12847
12847
|
}
|
|
12848
|
-
// ../../node_modules
|
|
12848
|
+
// ../../node_modules/zod/v4/locales/mk.js
|
|
12849
12849
|
var error29 = () => {
|
|
12850
12850
|
const Sizable = {
|
|
12851
12851
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -12954,7 +12954,7 @@ function mk_default() {
|
|
|
12954
12954
|
localeError: error29()
|
|
12955
12955
|
};
|
|
12956
12956
|
}
|
|
12957
|
-
// ../../node_modules
|
|
12957
|
+
// ../../node_modules/zod/v4/locales/ms.js
|
|
12958
12958
|
var error30 = () => {
|
|
12959
12959
|
const Sizable = {
|
|
12960
12960
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -13061,7 +13061,7 @@ function ms_default() {
|
|
|
13061
13061
|
localeError: error30()
|
|
13062
13062
|
};
|
|
13063
13063
|
}
|
|
13064
|
-
// ../../node_modules
|
|
13064
|
+
// ../../node_modules/zod/v4/locales/nl.js
|
|
13065
13065
|
var error31 = () => {
|
|
13066
13066
|
const Sizable = {
|
|
13067
13067
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -13171,7 +13171,7 @@ function nl_default() {
|
|
|
13171
13171
|
localeError: error31()
|
|
13172
13172
|
};
|
|
13173
13173
|
}
|
|
13174
|
-
// ../../node_modules
|
|
13174
|
+
// ../../node_modules/zod/v4/locales/no.js
|
|
13175
13175
|
var error32 = () => {
|
|
13176
13176
|
const Sizable = {
|
|
13177
13177
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -13279,7 +13279,7 @@ function no_default() {
|
|
|
13279
13279
|
localeError: error32()
|
|
13280
13280
|
};
|
|
13281
13281
|
}
|
|
13282
|
-
// ../../node_modules
|
|
13282
|
+
// ../../node_modules/zod/v4/locales/ota.js
|
|
13283
13283
|
var error33 = () => {
|
|
13284
13284
|
const Sizable = {
|
|
13285
13285
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -13388,7 +13388,7 @@ function ota_default() {
|
|
|
13388
13388
|
localeError: error33()
|
|
13389
13389
|
};
|
|
13390
13390
|
}
|
|
13391
|
-
// ../../node_modules
|
|
13391
|
+
// ../../node_modules/zod/v4/locales/ps.js
|
|
13392
13392
|
var error34 = () => {
|
|
13393
13393
|
const Sizable = {
|
|
13394
13394
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -13502,7 +13502,7 @@ function ps_default() {
|
|
|
13502
13502
|
localeError: error34()
|
|
13503
13503
|
};
|
|
13504
13504
|
}
|
|
13505
|
-
// ../../node_modules
|
|
13505
|
+
// ../../node_modules/zod/v4/locales/pl.js
|
|
13506
13506
|
var error35 = () => {
|
|
13507
13507
|
const Sizable = {
|
|
13508
13508
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -13611,7 +13611,7 @@ function pl_default() {
|
|
|
13611
13611
|
localeError: error35()
|
|
13612
13612
|
};
|
|
13613
13613
|
}
|
|
13614
|
-
// ../../node_modules
|
|
13614
|
+
// ../../node_modules/zod/v4/locales/pt.js
|
|
13615
13615
|
var error36 = () => {
|
|
13616
13616
|
const Sizable = {
|
|
13617
13617
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -13719,7 +13719,7 @@ function pt_default() {
|
|
|
13719
13719
|
localeError: error36()
|
|
13720
13720
|
};
|
|
13721
13721
|
}
|
|
13722
|
-
// ../../node_modules
|
|
13722
|
+
// ../../node_modules/zod/v4/locales/ro.js
|
|
13723
13723
|
var error37 = () => {
|
|
13724
13724
|
const Sizable = {
|
|
13725
13725
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -13838,7 +13838,7 @@ function ro_default() {
|
|
|
13838
13838
|
localeError: error37()
|
|
13839
13839
|
};
|
|
13840
13840
|
}
|
|
13841
|
-
// ../../node_modules
|
|
13841
|
+
// ../../node_modules/zod/v4/locales/ru.js
|
|
13842
13842
|
function getRussianPlural(count, one, few, many) {
|
|
13843
13843
|
const absCount = Math.abs(count);
|
|
13844
13844
|
const lastDigit = absCount % 10;
|
|
@@ -13994,7 +13994,7 @@ function ru_default() {
|
|
|
13994
13994
|
localeError: error38()
|
|
13995
13995
|
};
|
|
13996
13996
|
}
|
|
13997
|
-
// ../../node_modules
|
|
13997
|
+
// ../../node_modules/zod/v4/locales/sl.js
|
|
13998
13998
|
var error39 = () => {
|
|
13999
13999
|
const Sizable = {
|
|
14000
14000
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -14103,7 +14103,7 @@ function sl_default() {
|
|
|
14103
14103
|
localeError: error39()
|
|
14104
14104
|
};
|
|
14105
14105
|
}
|
|
14106
|
-
// ../../node_modules
|
|
14106
|
+
// ../../node_modules/zod/v4/locales/sv.js
|
|
14107
14107
|
var error40 = () => {
|
|
14108
14108
|
const Sizable = {
|
|
14109
14109
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -14213,7 +14213,7 @@ function sv_default() {
|
|
|
14213
14213
|
localeError: error40()
|
|
14214
14214
|
};
|
|
14215
14215
|
}
|
|
14216
|
-
// ../../node_modules
|
|
14216
|
+
// ../../node_modules/zod/v4/locales/ta.js
|
|
14217
14217
|
var error41 = () => {
|
|
14218
14218
|
const Sizable = {
|
|
14219
14219
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -14323,7 +14323,7 @@ function ta_default() {
|
|
|
14323
14323
|
localeError: error41()
|
|
14324
14324
|
};
|
|
14325
14325
|
}
|
|
14326
|
-
// ../../node_modules
|
|
14326
|
+
// ../../node_modules/zod/v4/locales/th.js
|
|
14327
14327
|
var error42 = () => {
|
|
14328
14328
|
const Sizable = {
|
|
14329
14329
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -14433,7 +14433,7 @@ function th_default() {
|
|
|
14433
14433
|
localeError: error42()
|
|
14434
14434
|
};
|
|
14435
14435
|
}
|
|
14436
|
-
// ../../node_modules
|
|
14436
|
+
// ../../node_modules/zod/v4/locales/tr.js
|
|
14437
14437
|
var error43 = () => {
|
|
14438
14438
|
const Sizable = {
|
|
14439
14439
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -14538,7 +14538,7 @@ function tr_default() {
|
|
|
14538
14538
|
localeError: error43()
|
|
14539
14539
|
};
|
|
14540
14540
|
}
|
|
14541
|
-
// ../../node_modules
|
|
14541
|
+
// ../../node_modules/zod/v4/locales/uk.js
|
|
14542
14542
|
var error44 = () => {
|
|
14543
14543
|
const Sizable = {
|
|
14544
14544
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -14647,11 +14647,11 @@ function uk_default() {
|
|
|
14647
14647
|
};
|
|
14648
14648
|
}
|
|
14649
14649
|
|
|
14650
|
-
// ../../node_modules
|
|
14650
|
+
// ../../node_modules/zod/v4/locales/ua.js
|
|
14651
14651
|
function ua_default() {
|
|
14652
14652
|
return uk_default();
|
|
14653
14653
|
}
|
|
14654
|
-
// ../../node_modules
|
|
14654
|
+
// ../../node_modules/zod/v4/locales/ur.js
|
|
14655
14655
|
var error45 = () => {
|
|
14656
14656
|
const Sizable = {
|
|
14657
14657
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -14761,7 +14761,7 @@ function ur_default() {
|
|
|
14761
14761
|
localeError: error45()
|
|
14762
14762
|
};
|
|
14763
14763
|
}
|
|
14764
|
-
// ../../node_modules
|
|
14764
|
+
// ../../node_modules/zod/v4/locales/uz.js
|
|
14765
14765
|
var error46 = () => {
|
|
14766
14766
|
const Sizable = {
|
|
14767
14767
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -14871,7 +14871,7 @@ function uz_default() {
|
|
|
14871
14871
|
localeError: error46()
|
|
14872
14872
|
};
|
|
14873
14873
|
}
|
|
14874
|
-
// ../../node_modules
|
|
14874
|
+
// ../../node_modules/zod/v4/locales/vi.js
|
|
14875
14875
|
var error47 = () => {
|
|
14876
14876
|
const Sizable = {
|
|
14877
14877
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -14979,7 +14979,7 @@ function vi_default() {
|
|
|
14979
14979
|
localeError: error47()
|
|
14980
14980
|
};
|
|
14981
14981
|
}
|
|
14982
|
-
// ../../node_modules
|
|
14982
|
+
// ../../node_modules/zod/v4/locales/zh-CN.js
|
|
14983
14983
|
var error48 = () => {
|
|
14984
14984
|
const Sizable = {
|
|
14985
14985
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -15088,7 +15088,7 @@ function zh_CN_default() {
|
|
|
15088
15088
|
localeError: error48()
|
|
15089
15089
|
};
|
|
15090
15090
|
}
|
|
15091
|
-
// ../../node_modules
|
|
15091
|
+
// ../../node_modules/zod/v4/locales/zh-TW.js
|
|
15092
15092
|
var error49 = () => {
|
|
15093
15093
|
const Sizable = {
|
|
15094
15094
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -15195,7 +15195,7 @@ function zh_TW_default() {
|
|
|
15195
15195
|
localeError: error49()
|
|
15196
15196
|
};
|
|
15197
15197
|
}
|
|
15198
|
-
// ../../node_modules
|
|
15198
|
+
// ../../node_modules/zod/v4/locales/yo.js
|
|
15199
15199
|
var error50 = () => {
|
|
15200
15200
|
const Sizable = {
|
|
15201
15201
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -15302,7 +15302,7 @@ function yo_default() {
|
|
|
15302
15302
|
localeError: error50()
|
|
15303
15303
|
};
|
|
15304
15304
|
}
|
|
15305
|
-
// ../../node_modules
|
|
15305
|
+
// ../../node_modules/zod/v4/core/registries.js
|
|
15306
15306
|
var _a2;
|
|
15307
15307
|
var $output = Symbol("ZodOutput");
|
|
15308
15308
|
var $input = Symbol("ZodInput");
|
|
@@ -15352,7 +15352,7 @@ function registry() {
|
|
|
15352
15352
|
}
|
|
15353
15353
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
15354
15354
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
15355
|
-
// ../../node_modules
|
|
15355
|
+
// ../../node_modules/zod/v4/core/api.js
|
|
15356
15356
|
function _string(Class2, params) {
|
|
15357
15357
|
return new Class2({
|
|
15358
15358
|
type: "string",
|
|
@@ -16272,7 +16272,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
16272
16272
|
const inst = new Class2(def);
|
|
16273
16273
|
return inst;
|
|
16274
16274
|
}
|
|
16275
|
-
// ../../node_modules
|
|
16275
|
+
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
16276
16276
|
function initializeContext(params) {
|
|
16277
16277
|
let target = params?.target ?? "draft-2020-12";
|
|
16278
16278
|
if (target === "draft-4")
|
|
@@ -16624,7 +16624,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
16624
16624
|
extractDefs(ctx, schema);
|
|
16625
16625
|
return finalize(ctx, schema);
|
|
16626
16626
|
};
|
|
16627
|
-
// ../../node_modules
|
|
16627
|
+
// ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
16628
16628
|
var formatMap = {
|
|
16629
16629
|
guid: "uuid",
|
|
16630
16630
|
url: "uri",
|
|
@@ -17162,7 +17162,7 @@ function toJSONSchema(input, params) {
|
|
|
17162
17162
|
extractDefs(ctx, input);
|
|
17163
17163
|
return finalize(ctx, input);
|
|
17164
17164
|
}
|
|
17165
|
-
// ../../node_modules
|
|
17165
|
+
// ../../node_modules/zod/v4/core/json-schema-generator.js
|
|
17166
17166
|
class JSONSchemaGenerator {
|
|
17167
17167
|
get metadataRegistry() {
|
|
17168
17168
|
return this.ctx.metadataRegistry;
|
|
@@ -17221,9 +17221,9 @@ class JSONSchemaGenerator {
|
|
|
17221
17221
|
return plainResult;
|
|
17222
17222
|
}
|
|
17223
17223
|
}
|
|
17224
|
-
// ../../node_modules
|
|
17224
|
+
// ../../node_modules/zod/v4/core/json-schema.js
|
|
17225
17225
|
var exports_json_schema = {};
|
|
17226
|
-
// ../../node_modules
|
|
17226
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17227
17227
|
var exports_schemas2 = {};
|
|
17228
17228
|
__export(exports_schemas2, {
|
|
17229
17229
|
xor: () => xor,
|
|
@@ -17394,7 +17394,7 @@ __export(exports_schemas2, {
|
|
|
17394
17394
|
ZodAny: () => ZodAny
|
|
17395
17395
|
});
|
|
17396
17396
|
|
|
17397
|
-
// ../../node_modules
|
|
17397
|
+
// ../../node_modules/zod/v4/classic/checks.js
|
|
17398
17398
|
var exports_checks2 = {};
|
|
17399
17399
|
__export(exports_checks2, {
|
|
17400
17400
|
uppercase: () => _uppercase,
|
|
@@ -17428,7 +17428,7 @@ __export(exports_checks2, {
|
|
|
17428
17428
|
endsWith: () => _endsWith
|
|
17429
17429
|
});
|
|
17430
17430
|
|
|
17431
|
-
// ../../node_modules
|
|
17431
|
+
// ../../node_modules/zod/v4/classic/iso.js
|
|
17432
17432
|
var exports_iso = {};
|
|
17433
17433
|
__export(exports_iso, {
|
|
17434
17434
|
time: () => time3,
|
|
@@ -17469,7 +17469,7 @@ function duration2(params) {
|
|
|
17469
17469
|
return _isoDuration(ZodISODuration, params);
|
|
17470
17470
|
}
|
|
17471
17471
|
|
|
17472
|
-
// ../../node_modules
|
|
17472
|
+
// ../../node_modules/zod/v4/classic/errors.js
|
|
17473
17473
|
var initializer2 = (inst, issues) => {
|
|
17474
17474
|
$ZodError.init(inst, issues);
|
|
17475
17475
|
inst.name = "ZodError";
|
|
@@ -17504,7 +17504,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
17504
17504
|
Parent: Error
|
|
17505
17505
|
});
|
|
17506
17506
|
|
|
17507
|
-
// ../../node_modules
|
|
17507
|
+
// ../../node_modules/zod/v4/classic/parse.js
|
|
17508
17508
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17509
17509
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17510
17510
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17518,7 +17518,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17518
17518
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17519
17519
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17520
17520
|
|
|
17521
|
-
// ../../node_modules
|
|
17521
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17522
17522
|
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
17523
17523
|
function _installLazyMethods(inst, group, methods) {
|
|
17524
17524
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -18805,7 +18805,7 @@ function preprocess(fn, schema) {
|
|
|
18805
18805
|
out: schema
|
|
18806
18806
|
});
|
|
18807
18807
|
}
|
|
18808
|
-
// ../../node_modules
|
|
18808
|
+
// ../../node_modules/zod/v4/classic/compat.js
|
|
18809
18809
|
var ZodIssueCode = {
|
|
18810
18810
|
invalid_type: "invalid_type",
|
|
18811
18811
|
too_big: "too_big",
|
|
@@ -18829,7 +18829,7 @@ function getErrorMap() {
|
|
|
18829
18829
|
}
|
|
18830
18830
|
var ZodFirstPartyTypeKind;
|
|
18831
18831
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18832
|
-
// ../../node_modules
|
|
18832
|
+
// ../../node_modules/zod/v4/classic/from-json-schema.js
|
|
18833
18833
|
var z = {
|
|
18834
18834
|
...exports_schemas2,
|
|
18835
18835
|
...exports_checks2,
|
|
@@ -19296,7 +19296,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19296
19296
|
};
|
|
19297
19297
|
return convertSchema(normalized, ctx);
|
|
19298
19298
|
}
|
|
19299
|
-
// ../../node_modules
|
|
19299
|
+
// ../../node_modules/zod/v4/classic/coerce.js
|
|
19300
19300
|
var exports_coerce = {};
|
|
19301
19301
|
__export(exports_coerce, {
|
|
19302
19302
|
string: () => string3,
|
|
@@ -19321,9 +19321,9 @@ function date5(params) {
|
|
|
19321
19321
|
return _coercedDate(ZodDate, params);
|
|
19322
19322
|
}
|
|
19323
19323
|
|
|
19324
|
-
// ../../node_modules
|
|
19324
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
19325
19325
|
config(en_default());
|
|
19326
|
-
// ../../node_modules
|
|
19326
|
+
// ../../node_modules/drizzle-zod/index.mjs
|
|
19327
19327
|
var CONSTANTS = {
|
|
19328
19328
|
INT8_MIN: -128,
|
|
19329
19329
|
INT8_MAX: 127,
|
|
@@ -19591,6 +19591,8 @@ var createNodeInputSchema = exports_external.object({
|
|
|
19591
19591
|
parentId: ulidSchema.nullish(),
|
|
19592
19592
|
displayKind: exports_external.string().min(1).default("default")
|
|
19593
19593
|
});
|
|
19594
|
+
var TRASH_RETENTION_DAYS = 30;
|
|
19595
|
+
var TRASH_RETENTION_MS = TRASH_RETENTION_DAYS * 24 * 60 * 60 * 1000;
|
|
19594
19596
|
var loginInputSchema = exports_external.object({
|
|
19595
19597
|
email: exports_external.string().email(),
|
|
19596
19598
|
password: exports_external.string().min(1)
|
|
@@ -20974,6 +20976,7 @@ var apiKeyScopeSchema = exports_external.enum([
|
|
|
20974
20976
|
"collections:write",
|
|
20975
20977
|
"presets:read",
|
|
20976
20978
|
"presets:install",
|
|
20979
|
+
"export:read",
|
|
20977
20980
|
"*"
|
|
20978
20981
|
]);
|
|
20979
20982
|
var apiKeySchema = createSelectSchema(apiKeys, {
|
|
@@ -20995,7 +20998,172 @@ var apiKeyContextSchema = exports_external.object({
|
|
|
20995
20998
|
userId: exports_external.string().nullable(),
|
|
20996
20999
|
scopes: exports_external.array(apiKeyScopeSchema)
|
|
20997
21000
|
});
|
|
21001
|
+
// ../../packages/schema/src/net/ssrf.ts
|
|
21002
|
+
var BLOCKED_HOST_SUFFIXES = [".internal", ".local", ".localhost"];
|
|
21003
|
+
var BLOCKED_HOSTNAMES = new Set(["localhost"]);
|
|
21004
|
+
function parseIpv4(host) {
|
|
21005
|
+
const parts = host.split(".");
|
|
21006
|
+
if (parts.length !== 4)
|
|
21007
|
+
return null;
|
|
21008
|
+
let value = 0;
|
|
21009
|
+
for (const part of parts) {
|
|
21010
|
+
if (!/^\d{1,3}$/.test(part))
|
|
21011
|
+
return null;
|
|
21012
|
+
const octet = Number(part);
|
|
21013
|
+
if (octet > 255)
|
|
21014
|
+
return null;
|
|
21015
|
+
value = value * 256 + octet;
|
|
21016
|
+
}
|
|
21017
|
+
return value >>> 0;
|
|
21018
|
+
}
|
|
21019
|
+
function isBlockedIpv4(ip) {
|
|
21020
|
+
const inRange = (base, bits) => {
|
|
21021
|
+
const baseIp = parseIpv4(base);
|
|
21022
|
+
if (baseIp === null)
|
|
21023
|
+
return false;
|
|
21024
|
+
const mask = bits === 0 ? 0 : 4294967295 << 32 - bits >>> 0;
|
|
21025
|
+
return (ip & mask) === (baseIp & mask);
|
|
21026
|
+
};
|
|
21027
|
+
return inRange("0.0.0.0", 8) || inRange("10.0.0.0", 8) || inRange("100.64.0.0", 10) || inRange("127.0.0.0", 8) || inRange("169.254.0.0", 16) || inRange("172.16.0.0", 12) || inRange("192.0.0.0", 24) || inRange("192.0.2.0", 24) || inRange("192.168.0.0", 16) || inRange("198.18.0.0", 15) || inRange("224.0.0.0", 4) || inRange("240.0.0.0", 4);
|
|
21028
|
+
}
|
|
21029
|
+
function parseIpv6(host) {
|
|
21030
|
+
let text2 = host;
|
|
21031
|
+
const zone = text2.indexOf("%");
|
|
21032
|
+
if (zone !== -1)
|
|
21033
|
+
text2 = text2.slice(0, zone);
|
|
21034
|
+
if (!text2.includes(":"))
|
|
21035
|
+
return null;
|
|
21036
|
+
const lastColon = text2.lastIndexOf(":");
|
|
21037
|
+
const tail = text2.slice(lastColon + 1);
|
|
21038
|
+
if (tail.includes(".")) {
|
|
21039
|
+
const v4 = parseIpv4(tail);
|
|
21040
|
+
if (v4 === null)
|
|
21041
|
+
return null;
|
|
21042
|
+
const hex3 = `${(v4 >>> 16 & 65535).toString(16)}:${(v4 & 65535).toString(16)}`;
|
|
21043
|
+
text2 = text2.slice(0, lastColon + 1) + hex3;
|
|
21044
|
+
}
|
|
21045
|
+
const halves = text2.split("::");
|
|
21046
|
+
if (halves.length > 2)
|
|
21047
|
+
return null;
|
|
21048
|
+
const toGroups = (segment) => {
|
|
21049
|
+
if (segment === "")
|
|
21050
|
+
return [];
|
|
21051
|
+
const out = [];
|
|
21052
|
+
for (const g of segment.split(":")) {
|
|
21053
|
+
if (!/^[0-9a-fA-F]{1,4}$/.test(g))
|
|
21054
|
+
return null;
|
|
21055
|
+
out.push(Number.parseInt(g, 16));
|
|
21056
|
+
}
|
|
21057
|
+
return out;
|
|
21058
|
+
};
|
|
21059
|
+
const head = toGroups(halves[0] ?? "");
|
|
21060
|
+
if (head === null)
|
|
21061
|
+
return null;
|
|
21062
|
+
let groups;
|
|
21063
|
+
if (halves.length === 2) {
|
|
21064
|
+
const back = toGroups(halves[1] ?? "");
|
|
21065
|
+
if (back === null)
|
|
21066
|
+
return null;
|
|
21067
|
+
const fill = 8 - head.length - back.length;
|
|
21068
|
+
if (fill < 0)
|
|
21069
|
+
return null;
|
|
21070
|
+
groups = [...head, ...Array(fill).fill(0), ...back];
|
|
21071
|
+
} else {
|
|
21072
|
+
groups = head;
|
|
21073
|
+
}
|
|
21074
|
+
return groups.length === 8 ? groups : null;
|
|
21075
|
+
}
|
|
21076
|
+
function isBlockedIpv6(groups) {
|
|
21077
|
+
const isZero = groups.every((g) => g === 0);
|
|
21078
|
+
if (isZero)
|
|
21079
|
+
return true;
|
|
21080
|
+
if (groups.slice(0, 7).every((g) => g === 0) && groups[7] === 1)
|
|
21081
|
+
return true;
|
|
21082
|
+
const isV4Mapped = groups.slice(0, 5).every((g) => g === 0) && groups[5] === 65535;
|
|
21083
|
+
const isV4Compat = groups.slice(0, 6).every((g) => g === 0);
|
|
21084
|
+
if (isV4Mapped || isV4Compat) {
|
|
21085
|
+
const v4 = ((groups[6] ?? 0) << 16 | (groups[7] ?? 0)) >>> 0;
|
|
21086
|
+
return isBlockedIpv4(v4);
|
|
21087
|
+
}
|
|
21088
|
+
const first = groups[0] ?? 0;
|
|
21089
|
+
if ((first & 65024) === 64512)
|
|
21090
|
+
return true;
|
|
21091
|
+
if ((first & 65472) === 65152)
|
|
21092
|
+
return true;
|
|
21093
|
+
if ((first & 65280) === 65280)
|
|
21094
|
+
return true;
|
|
21095
|
+
return false;
|
|
21096
|
+
}
|
|
21097
|
+
function isBlockedIp(host) {
|
|
21098
|
+
const bare = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
|
|
21099
|
+
const v4 = parseIpv4(bare);
|
|
21100
|
+
if (v4 !== null)
|
|
21101
|
+
return isBlockedIpv4(v4);
|
|
21102
|
+
const v6 = parseIpv6(bare);
|
|
21103
|
+
if (v6 !== null)
|
|
21104
|
+
return isBlockedIpv6(v6);
|
|
21105
|
+
return false;
|
|
21106
|
+
}
|
|
21107
|
+
|
|
21108
|
+
class BlockedWebhookUrlError extends Error {
|
|
21109
|
+
constructor(reason) {
|
|
21110
|
+
super(`webhook url rejected: ${reason}`);
|
|
21111
|
+
this.name = "BlockedWebhookUrlError";
|
|
21112
|
+
}
|
|
21113
|
+
}
|
|
21114
|
+
function bareHostname(hostname3) {
|
|
21115
|
+
return hostname3.startsWith("[") && hostname3.endsWith("]") ? hostname3.slice(1, -1) : hostname3;
|
|
21116
|
+
}
|
|
21117
|
+
function webhookUrlAllowlistFromEnv() {
|
|
21118
|
+
const env = globalThis.process?.env;
|
|
21119
|
+
const raw = env?.WEBHOOK_URL_ALLOWLIST;
|
|
21120
|
+
if (!raw)
|
|
21121
|
+
return [];
|
|
21122
|
+
return raw.split(",").map((h) => h.trim().toLowerCase()).filter(Boolean);
|
|
21123
|
+
}
|
|
21124
|
+
function isAllowlistedHost(hostname3, allowedHosts) {
|
|
21125
|
+
const host = hostname3.toLowerCase();
|
|
21126
|
+
const bare = bareHostname(host);
|
|
21127
|
+
return allowedHosts.some((h) => h === host || h === bare);
|
|
21128
|
+
}
|
|
21129
|
+
function assertSafeWebhookUrl(rawUrl, opts = {}) {
|
|
21130
|
+
let url2;
|
|
21131
|
+
try {
|
|
21132
|
+
url2 = new URL(rawUrl);
|
|
21133
|
+
} catch {
|
|
21134
|
+
throw new BlockedWebhookUrlError("not a valid URL");
|
|
21135
|
+
}
|
|
21136
|
+
const allowedHosts = opts.allowedHosts ?? webhookUrlAllowlistFromEnv();
|
|
21137
|
+
if (isAllowlistedHost(url2.hostname, allowedHosts)) {
|
|
21138
|
+
return url2;
|
|
21139
|
+
}
|
|
21140
|
+
if (url2.protocol !== "https:") {
|
|
21141
|
+
throw new BlockedWebhookUrlError("only https URLs are allowed");
|
|
21142
|
+
}
|
|
21143
|
+
if (url2.username || url2.password) {
|
|
21144
|
+
throw new BlockedWebhookUrlError("credentials in the URL are not allowed");
|
|
21145
|
+
}
|
|
21146
|
+
const host = url2.hostname.toLowerCase();
|
|
21147
|
+
if (BLOCKED_HOSTNAMES.has(host) || BLOCKED_HOST_SUFFIXES.some((s) => host.endsWith(s))) {
|
|
21148
|
+
throw new BlockedWebhookUrlError(`host '${url2.hostname}' is internal`);
|
|
21149
|
+
}
|
|
21150
|
+
if (isBlockedIp(host)) {
|
|
21151
|
+
throw new BlockedWebhookUrlError(`host '${url2.hostname}' is a private or reserved address`);
|
|
21152
|
+
}
|
|
21153
|
+
return url2;
|
|
21154
|
+
}
|
|
21155
|
+
|
|
20998
21156
|
// ../../packages/schema/src/contracts/webhooks.ts
|
|
21157
|
+
var webhookUrlSchema = exports_external.string().superRefine((value, ctx) => {
|
|
21158
|
+
try {
|
|
21159
|
+
assertSafeWebhookUrl(value);
|
|
21160
|
+
} catch (err) {
|
|
21161
|
+
ctx.addIssue({
|
|
21162
|
+
code: exports_external.ZodIssueCode.custom,
|
|
21163
|
+
message: err instanceof BlockedWebhookUrlError ? err.message : "invalid webhook url"
|
|
21164
|
+
});
|
|
21165
|
+
}
|
|
21166
|
+
});
|
|
20999
21167
|
var webhookEventSchema = exports_external.string().min(1).max(120).regex(/^[a-z0-9]+(\.[a-z0-9]+)+$/, "must be a dotted event name like 'task.created'");
|
|
21000
21168
|
var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
21001
21169
|
events: exports_external.array(webhookEventSchema),
|
|
@@ -21004,7 +21172,7 @@ var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
|
21004
21172
|
});
|
|
21005
21173
|
var webhookSubscriptionPublicSchema = webhookSubscriptionSchema.omit({ secret: true });
|
|
21006
21174
|
var createWebhookSubscriptionInputSchema = exports_external.object({
|
|
21007
|
-
url:
|
|
21175
|
+
url: webhookUrlSchema,
|
|
21008
21176
|
events: exports_external.array(webhookEventSchema).min(1),
|
|
21009
21177
|
secret: exports_external.string().min(16).max(200).optional()
|
|
21010
21178
|
}).strict();
|
|
@@ -21012,7 +21180,7 @@ var createWebhookSubscriptionResultSchema = webhookSubscriptionPublicSchema.exte
|
|
|
21012
21180
|
secret: exports_external.string()
|
|
21013
21181
|
});
|
|
21014
21182
|
var updateWebhookSubscriptionInputSchema = exports_external.object({
|
|
21015
|
-
url:
|
|
21183
|
+
url: webhookUrlSchema.optional(),
|
|
21016
21184
|
events: exports_external.array(webhookEventSchema).min(1).optional(),
|
|
21017
21185
|
active: exports_external.boolean().optional()
|
|
21018
21186
|
}).strict();
|
|
@@ -21605,6 +21773,16 @@ function parseCapture(input) {
|
|
|
21605
21773
|
const title = input.replace(TAG_RE, " ").replace(PRIORITY_RE, " ").replace(AREA_RE, " ").replace(/\s+/g, " ").trim();
|
|
21606
21774
|
return { title, tags, ...priority ? { priority } : {}, ...area ? { area } : {} };
|
|
21607
21775
|
}
|
|
21776
|
+
// ../../packages/schema/src/export.ts
|
|
21777
|
+
var EXPORT_FORMAT = "do.export";
|
|
21778
|
+
var EXPORT_VERSION = 1;
|
|
21779
|
+
var spaceExportSchema = exports_external.object({
|
|
21780
|
+
format: exports_external.literal(EXPORT_FORMAT),
|
|
21781
|
+
version: exports_external.literal(EXPORT_VERSION),
|
|
21782
|
+
exportedAt: exports_external.string(),
|
|
21783
|
+
tenantId: exports_external.string(),
|
|
21784
|
+
tables: exports_external.record(exports_external.string(), exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())))
|
|
21785
|
+
});
|
|
21608
21786
|
// ../../packages/schema/src/presets/collection-types.ts
|
|
21609
21787
|
var coverUrl = exports_external.string().url().max(2048).nullish();
|
|
21610
21788
|
var bookFacetSchema = exports_external.object({
|
|
@@ -23504,10 +23682,10 @@ var featurePresets = [
|
|
|
23504
23682
|
// ../../packages/schema/src/presets/catalog.ts
|
|
23505
23683
|
var presetCatalog = featurePresets;
|
|
23506
23684
|
var presetsByKey = new Map(presetCatalog.map((preset) => [preset.key, preset]));
|
|
23507
|
-
// ../../node_modules
|
|
23685
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23508
23686
|
import crypto from "crypto";
|
|
23509
23687
|
|
|
23510
|
-
// ../../node_modules
|
|
23688
|
+
// ../../node_modules/layerr/dist/error.js
|
|
23511
23689
|
function assertError(err) {
|
|
23512
23690
|
if (!isError(err)) {
|
|
23513
23691
|
throw new Error("Parameter was not an error");
|
|
@@ -23520,14 +23698,14 @@ function objectToString(obj) {
|
|
|
23520
23698
|
return Object.prototype.toString.call(obj);
|
|
23521
23699
|
}
|
|
23522
23700
|
|
|
23523
|
-
// ../../node_modules
|
|
23701
|
+
// ../../node_modules/layerr/dist/global.js
|
|
23524
23702
|
var NAME = "Layerr";
|
|
23525
23703
|
var __name = NAME;
|
|
23526
23704
|
function getGlobalName() {
|
|
23527
23705
|
return __name;
|
|
23528
23706
|
}
|
|
23529
23707
|
|
|
23530
|
-
// ../../node_modules
|
|
23708
|
+
// ../../node_modules/layerr/dist/tools.js
|
|
23531
23709
|
function parseArguments(args) {
|
|
23532
23710
|
let options, shortMessage = "";
|
|
23533
23711
|
if (args.length === 0) {
|
|
@@ -23552,7 +23730,7 @@ function parseArguments(args) {
|
|
|
23552
23730
|
};
|
|
23553
23731
|
}
|
|
23554
23732
|
|
|
23555
|
-
// ../../node_modules
|
|
23733
|
+
// ../../node_modules/layerr/dist/layerr.js
|
|
23556
23734
|
class Layerr extends Error {
|
|
23557
23735
|
constructor(errorOptionsOrMessage, messageText) {
|
|
23558
23736
|
const args = [...arguments];
|
|
@@ -23615,7 +23793,7 @@ caused by: ${Layerr.fullStack(cause)}`;
|
|
|
23615
23793
|
return output;
|
|
23616
23794
|
}
|
|
23617
23795
|
}
|
|
23618
|
-
// ../../node_modules
|
|
23796
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23619
23797
|
var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23620
23798
|
var ENCODING_LEN = 32;
|
|
23621
23799
|
var TIME_MAX = 281474976710655;
|
|
@@ -23756,7 +23934,7 @@ function parseCapture2(input) {
|
|
|
23756
23934
|
|
|
23757
23935
|
// src/meta.ts
|
|
23758
23936
|
var CLI_NAME = "do";
|
|
23759
|
-
var VERSION = "1.
|
|
23937
|
+
var VERSION = "1.58.0";
|
|
23760
23938
|
var API_PREFIX = "/api/v1";
|
|
23761
23939
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
23762
23940
|
|
|
@@ -23769,6 +23947,15 @@ class DoClient {
|
|
|
23769
23947
|
get(path, opts = {}) {
|
|
23770
23948
|
return this.request("GET", path, opts);
|
|
23771
23949
|
}
|
|
23950
|
+
async getText(path, opts = {}) {
|
|
23951
|
+
const res = await this.send("GET", path, opts);
|
|
23952
|
+
if (res.status === 204)
|
|
23953
|
+
return "";
|
|
23954
|
+
const text2 = await res.text();
|
|
23955
|
+
if (!res.ok)
|
|
23956
|
+
throw httpError(res.status, text2.length > 0 ? safeJson(text2) : undefined);
|
|
23957
|
+
return text2;
|
|
23958
|
+
}
|
|
23772
23959
|
post(path, body) {
|
|
23773
23960
|
return this.request("POST", path, { body });
|
|
23774
23961
|
}
|
|
@@ -23790,7 +23977,7 @@ class DoClient {
|
|
|
23790
23977
|
}
|
|
23791
23978
|
return url2.toString();
|
|
23792
23979
|
}
|
|
23793
|
-
async
|
|
23980
|
+
async send(method, path, opts) {
|
|
23794
23981
|
const headers = {
|
|
23795
23982
|
authorization: `Bearer ${this.opts.apiKey}`,
|
|
23796
23983
|
accept: "application/json"
|
|
@@ -23798,9 +23985,8 @@ class DoClient {
|
|
|
23798
23985
|
const hasBody = opts.body !== undefined;
|
|
23799
23986
|
if (hasBody)
|
|
23800
23987
|
headers["content-type"] = "application/json";
|
|
23801
|
-
let res;
|
|
23802
23988
|
try {
|
|
23803
|
-
|
|
23989
|
+
return await this.opts.fetchImpl(this.url(path, opts.query), {
|
|
23804
23990
|
method,
|
|
23805
23991
|
headers,
|
|
23806
23992
|
body: hasBody ? JSON.stringify(opts.body) : undefined
|
|
@@ -23809,6 +23995,9 @@ class DoClient {
|
|
|
23809
23995
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
23810
23996
|
throw new CliError("network_error", `could not reach the API at ${this.opts.apiUrl}: ${message}`, EXIT.RUNTIME);
|
|
23811
23997
|
}
|
|
23998
|
+
}
|
|
23999
|
+
async request(method, path, opts) {
|
|
24000
|
+
const res = await this.send(method, path, opts);
|
|
23812
24001
|
if (res.status === 204)
|
|
23813
24002
|
return;
|
|
23814
24003
|
const text2 = await res.text();
|
|
@@ -24647,6 +24836,22 @@ var COMMAND_SPECS = [
|
|
|
24647
24836
|
returns: "ShareLinkPublic",
|
|
24648
24837
|
notes: "Destructive \u2014 gated behind --allow-destructive + a links:write key."
|
|
24649
24838
|
},
|
|
24839
|
+
{
|
|
24840
|
+
path: ["export"],
|
|
24841
|
+
summary: "Stream a complete, re-importable dump of the Space to stdout.",
|
|
24842
|
+
args: [],
|
|
24843
|
+
flags: [
|
|
24844
|
+
{
|
|
24845
|
+
name: "format",
|
|
24846
|
+
type: "string",
|
|
24847
|
+
description: "json (default) or ndjson (a manifest line then a line per row).",
|
|
24848
|
+
default: "json"
|
|
24849
|
+
}
|
|
24850
|
+
],
|
|
24851
|
+
scopes: ["export:read"],
|
|
24852
|
+
returns: "SpaceExport",
|
|
24853
|
+
notes: "Streams GET /api/v1/export verbatim \u2014 redirect it to a file (`do export > backup.json`). Secrets (key hashes, tokens, OAuth/push keys) are redacted."
|
|
24854
|
+
},
|
|
24650
24855
|
{
|
|
24651
24856
|
path: ["whoami"],
|
|
24652
24857
|
summary: "Show the tenant and scopes the configured key resolves to.",
|
|
@@ -25158,6 +25363,14 @@ var HANDLERS = {
|
|
|
25158
25363
|
render: renderToday
|
|
25159
25364
|
};
|
|
25160
25365
|
},
|
|
25366
|
+
export: async ({ flags, requireClient }) => {
|
|
25367
|
+
const format = flagString(flags, "format") ?? "json";
|
|
25368
|
+
if (format !== "json" && format !== "ndjson") {
|
|
25369
|
+
throw usageError(`--format must be json or ndjson (got \`${format}\`)`);
|
|
25370
|
+
}
|
|
25371
|
+
const raw = await requireClient().getText("/export", { query: { format } });
|
|
25372
|
+
return { raw, data: undefined, render: () => raw };
|
|
25373
|
+
},
|
|
25161
25374
|
"notes backlinks": async ({ args, requireClient }) => {
|
|
25162
25375
|
const id = requireArg(args, 0, "note id");
|
|
25163
25376
|
return {
|
|
@@ -25583,6 +25796,10 @@ async function run(argv, io) {
|
|
|
25583
25796
|
apiUrl: flagString(flags, "url")
|
|
25584
25797
|
});
|
|
25585
25798
|
const result = await dispatch(positionals, flags, io, mode, config2);
|
|
25799
|
+
if (result.raw !== undefined) {
|
|
25800
|
+
io.stdout(result.raw);
|
|
25801
|
+
return EXIT.OK;
|
|
25802
|
+
}
|
|
25586
25803
|
emitResult(io, mode, result.data, result.render);
|
|
25587
25804
|
return EXIT.OK;
|
|
25588
25805
|
} catch (error51) {
|