@robbeverhelst/do 1.56.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 +385 -167
- 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]];
|
|
@@ -4413,7 +4413,8 @@ var tasks = pgTable("tasks", {
|
|
|
4413
4413
|
index("tasks_tenant_area_idx").on(t.tenantId, t.areaId),
|
|
4414
4414
|
index("tasks_tenant_status_idx").on(t.tenantId, t.status),
|
|
4415
4415
|
index("tasks_tenant_scheduled_idx").on(t.tenantId, t.scheduledAt),
|
|
4416
|
-
index("tasks_tenant_due_idx").on(t.tenantId, t.dueAt)
|
|
4416
|
+
index("tasks_tenant_due_idx").on(t.tenantId, t.dueAt),
|
|
4417
|
+
check("tasks_area_xor_project_chk", sql`${t.projectId} IS NULL OR ${t.areaId} IS NULL`)
|
|
4417
4418
|
]);
|
|
4418
4419
|
var habits = pgTable("habits", {
|
|
4419
4420
|
id: text("id").primaryKey().references(() => nodes.id),
|
|
@@ -5046,7 +5047,7 @@ var insightsHabitStreaks = pgView("insights_habit_streaks", {
|
|
|
5046
5047
|
latestRunLength: integer("latest_run_length").notNull(),
|
|
5047
5048
|
latestRunEnd: date("latest_run_end").notNull()
|
|
5048
5049
|
}).existing();
|
|
5049
|
-
// ../../node_modules
|
|
5050
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
5050
5051
|
var exports_external = {};
|
|
5051
5052
|
__export(exports_external, {
|
|
5052
5053
|
xor: () => xor,
|
|
@@ -5289,7 +5290,7 @@ __export(exports_external, {
|
|
|
5289
5290
|
$brand: () => $brand
|
|
5290
5291
|
});
|
|
5291
5292
|
|
|
5292
|
-
// ../../node_modules
|
|
5293
|
+
// ../../node_modules/zod/v4/core/index.js
|
|
5293
5294
|
var exports_core2 = {};
|
|
5294
5295
|
__export(exports_core2, {
|
|
5295
5296
|
version: () => version2,
|
|
@@ -5568,7 +5569,7 @@ __export(exports_core2, {
|
|
|
5568
5569
|
$ZodAny: () => $ZodAny
|
|
5569
5570
|
});
|
|
5570
5571
|
|
|
5571
|
-
// ../../node_modules
|
|
5572
|
+
// ../../node_modules/zod/v4/core/core.js
|
|
5572
5573
|
var _a;
|
|
5573
5574
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
5574
5575
|
status: "aborted"
|
|
@@ -5646,7 +5647,7 @@ function config(newConfig) {
|
|
|
5646
5647
|
Object.assign(globalConfig, newConfig);
|
|
5647
5648
|
return globalConfig;
|
|
5648
5649
|
}
|
|
5649
|
-
// ../../node_modules
|
|
5650
|
+
// ../../node_modules/zod/v4/core/util.js
|
|
5650
5651
|
var exports_util = {};
|
|
5651
5652
|
__export(exports_util, {
|
|
5652
5653
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -6338,7 +6339,7 @@ class Class {
|
|
|
6338
6339
|
constructor(..._args) {}
|
|
6339
6340
|
}
|
|
6340
6341
|
|
|
6341
|
-
// ../../node_modules
|
|
6342
|
+
// ../../node_modules/zod/v4/core/errors.js
|
|
6342
6343
|
var initializer = (inst, def) => {
|
|
6343
6344
|
inst.name = "$ZodError";
|
|
6344
6345
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -6478,7 +6479,7 @@ function prettifyError(error) {
|
|
|
6478
6479
|
`);
|
|
6479
6480
|
}
|
|
6480
6481
|
|
|
6481
|
-
// ../../node_modules
|
|
6482
|
+
// ../../node_modules/zod/v4/core/parse.js
|
|
6482
6483
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
6483
6484
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
6484
6485
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -6565,7 +6566,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
6565
6566
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
6566
6567
|
};
|
|
6567
6568
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
6568
|
-
// ../../node_modules
|
|
6569
|
+
// ../../node_modules/zod/v4/core/regexes.js
|
|
6569
6570
|
var exports_regexes = {};
|
|
6570
6571
|
__export(exports_regexes, {
|
|
6571
6572
|
xid: () => xid,
|
|
@@ -6724,7 +6725,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
6724
6725
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
6725
6726
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
6726
6727
|
|
|
6727
|
-
// ../../node_modules
|
|
6728
|
+
// ../../node_modules/zod/v4/core/checks.js
|
|
6728
6729
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
6729
6730
|
var _a2;
|
|
6730
6731
|
inst._zod ?? (inst._zod = {});
|
|
@@ -7271,7 +7272,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
7271
7272
|
};
|
|
7272
7273
|
});
|
|
7273
7274
|
|
|
7274
|
-
// ../../node_modules
|
|
7275
|
+
// ../../node_modules/zod/v4/core/doc.js
|
|
7275
7276
|
class Doc {
|
|
7276
7277
|
constructor(args = []) {
|
|
7277
7278
|
this.content = [];
|
|
@@ -7309,14 +7310,14 @@ class Doc {
|
|
|
7309
7310
|
}
|
|
7310
7311
|
}
|
|
7311
7312
|
|
|
7312
|
-
// ../../node_modules
|
|
7313
|
+
// ../../node_modules/zod/v4/core/versions.js
|
|
7313
7314
|
var version2 = {
|
|
7314
7315
|
major: 4,
|
|
7315
7316
|
minor: 4,
|
|
7316
7317
|
patch: 3
|
|
7317
7318
|
};
|
|
7318
7319
|
|
|
7319
|
-
// ../../node_modules
|
|
7320
|
+
// ../../node_modules/zod/v4/core/schemas.js
|
|
7320
7321
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
7321
7322
|
var _a2;
|
|
7322
7323
|
inst ?? (inst = {});
|
|
@@ -9400,7 +9401,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
9400
9401
|
payload.issues.push(issue(_iss));
|
|
9401
9402
|
}
|
|
9402
9403
|
}
|
|
9403
|
-
// ../../node_modules
|
|
9404
|
+
// ../../node_modules/zod/v4/locales/index.js
|
|
9404
9405
|
var exports_locales = {};
|
|
9405
9406
|
__export(exports_locales, {
|
|
9406
9407
|
zhTW: () => zh_TW_default,
|
|
@@ -9457,7 +9458,7 @@ __export(exports_locales, {
|
|
|
9457
9458
|
ar: () => ar_default
|
|
9458
9459
|
});
|
|
9459
9460
|
|
|
9460
|
-
// ../../node_modules
|
|
9461
|
+
// ../../node_modules/zod/v4/locales/ar.js
|
|
9461
9462
|
var error = () => {
|
|
9462
9463
|
const Sizable = {
|
|
9463
9464
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -9563,7 +9564,7 @@ function ar_default() {
|
|
|
9563
9564
|
localeError: error()
|
|
9564
9565
|
};
|
|
9565
9566
|
}
|
|
9566
|
-
// ../../node_modules
|
|
9567
|
+
// ../../node_modules/zod/v4/locales/az.js
|
|
9567
9568
|
var error2 = () => {
|
|
9568
9569
|
const Sizable = {
|
|
9569
9570
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -9668,7 +9669,7 @@ function az_default() {
|
|
|
9668
9669
|
localeError: error2()
|
|
9669
9670
|
};
|
|
9670
9671
|
}
|
|
9671
|
-
// ../../node_modules
|
|
9672
|
+
// ../../node_modules/zod/v4/locales/be.js
|
|
9672
9673
|
function getBelarusianPlural(count, one, few, many) {
|
|
9673
9674
|
const absCount = Math.abs(count);
|
|
9674
9675
|
const lastDigit = absCount % 10;
|
|
@@ -9824,7 +9825,7 @@ function be_default() {
|
|
|
9824
9825
|
localeError: error3()
|
|
9825
9826
|
};
|
|
9826
9827
|
}
|
|
9827
|
-
// ../../node_modules
|
|
9828
|
+
// ../../node_modules/zod/v4/locales/bg.js
|
|
9828
9829
|
var error4 = () => {
|
|
9829
9830
|
const Sizable = {
|
|
9830
9831
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -9944,7 +9945,7 @@ function bg_default() {
|
|
|
9944
9945
|
localeError: error4()
|
|
9945
9946
|
};
|
|
9946
9947
|
}
|
|
9947
|
-
// ../../node_modules
|
|
9948
|
+
// ../../node_modules/zod/v4/locales/ca.js
|
|
9948
9949
|
var error5 = () => {
|
|
9949
9950
|
const Sizable = {
|
|
9950
9951
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -10051,7 +10052,7 @@ function ca_default() {
|
|
|
10051
10052
|
localeError: error5()
|
|
10052
10053
|
};
|
|
10053
10054
|
}
|
|
10054
|
-
// ../../node_modules
|
|
10055
|
+
// ../../node_modules/zod/v4/locales/cs.js
|
|
10055
10056
|
var error6 = () => {
|
|
10056
10057
|
const Sizable = {
|
|
10057
10058
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -10162,7 +10163,7 @@ function cs_default() {
|
|
|
10162
10163
|
localeError: error6()
|
|
10163
10164
|
};
|
|
10164
10165
|
}
|
|
10165
|
-
// ../../node_modules
|
|
10166
|
+
// ../../node_modules/zod/v4/locales/da.js
|
|
10166
10167
|
var error7 = () => {
|
|
10167
10168
|
const Sizable = {
|
|
10168
10169
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -10277,7 +10278,7 @@ function da_default() {
|
|
|
10277
10278
|
localeError: error7()
|
|
10278
10279
|
};
|
|
10279
10280
|
}
|
|
10280
|
-
// ../../node_modules
|
|
10281
|
+
// ../../node_modules/zod/v4/locales/de.js
|
|
10281
10282
|
var error8 = () => {
|
|
10282
10283
|
const Sizable = {
|
|
10283
10284
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -10385,7 +10386,7 @@ function de_default() {
|
|
|
10385
10386
|
localeError: error8()
|
|
10386
10387
|
};
|
|
10387
10388
|
}
|
|
10388
|
-
// ../../node_modules
|
|
10389
|
+
// ../../node_modules/zod/v4/locales/el.js
|
|
10389
10390
|
var error9 = () => {
|
|
10390
10391
|
const Sizable = {
|
|
10391
10392
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -10494,7 +10495,7 @@ function el_default() {
|
|
|
10494
10495
|
localeError: error9()
|
|
10495
10496
|
};
|
|
10496
10497
|
}
|
|
10497
|
-
// ../../node_modules
|
|
10498
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
10498
10499
|
var error10 = () => {
|
|
10499
10500
|
const Sizable = {
|
|
10500
10501
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -10604,7 +10605,7 @@ function en_default() {
|
|
|
10604
10605
|
localeError: error10()
|
|
10605
10606
|
};
|
|
10606
10607
|
}
|
|
10607
|
-
// ../../node_modules
|
|
10608
|
+
// ../../node_modules/zod/v4/locales/eo.js
|
|
10608
10609
|
var error11 = () => {
|
|
10609
10610
|
const Sizable = {
|
|
10610
10611
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -10713,7 +10714,7 @@ function eo_default() {
|
|
|
10713
10714
|
localeError: error11()
|
|
10714
10715
|
};
|
|
10715
10716
|
}
|
|
10716
|
-
// ../../node_modules
|
|
10717
|
+
// ../../node_modules/zod/v4/locales/es.js
|
|
10717
10718
|
var error12 = () => {
|
|
10718
10719
|
const Sizable = {
|
|
10719
10720
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -10845,7 +10846,7 @@ function es_default() {
|
|
|
10845
10846
|
localeError: error12()
|
|
10846
10847
|
};
|
|
10847
10848
|
}
|
|
10848
|
-
// ../../node_modules
|
|
10849
|
+
// ../../node_modules/zod/v4/locales/fa.js
|
|
10849
10850
|
var error13 = () => {
|
|
10850
10851
|
const Sizable = {
|
|
10851
10852
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -10959,7 +10960,7 @@ function fa_default() {
|
|
|
10959
10960
|
localeError: error13()
|
|
10960
10961
|
};
|
|
10961
10962
|
}
|
|
10962
|
-
// ../../node_modules
|
|
10963
|
+
// ../../node_modules/zod/v4/locales/fi.js
|
|
10963
10964
|
var error14 = () => {
|
|
10964
10965
|
const Sizable = {
|
|
10965
10966
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -11071,7 +11072,7 @@ function fi_default() {
|
|
|
11071
11072
|
localeError: error14()
|
|
11072
11073
|
};
|
|
11073
11074
|
}
|
|
11074
|
-
// ../../node_modules
|
|
11075
|
+
// ../../node_modules/zod/v4/locales/fr.js
|
|
11075
11076
|
var error15 = () => {
|
|
11076
11077
|
const Sizable = {
|
|
11077
11078
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11196,7 +11197,7 @@ function fr_default() {
|
|
|
11196
11197
|
localeError: error15()
|
|
11197
11198
|
};
|
|
11198
11199
|
}
|
|
11199
|
-
// ../../node_modules
|
|
11200
|
+
// ../../node_modules/zod/v4/locales/fr-CA.js
|
|
11200
11201
|
var error16 = () => {
|
|
11201
11202
|
const Sizable = {
|
|
11202
11203
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11303,7 +11304,7 @@ function fr_CA_default() {
|
|
|
11303
11304
|
localeError: error16()
|
|
11304
11305
|
};
|
|
11305
11306
|
}
|
|
11306
|
-
// ../../node_modules
|
|
11307
|
+
// ../../node_modules/zod/v4/locales/he.js
|
|
11307
11308
|
var error17 = () => {
|
|
11308
11309
|
const TypeNames = {
|
|
11309
11310
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -11496,7 +11497,7 @@ function he_default() {
|
|
|
11496
11497
|
localeError: error17()
|
|
11497
11498
|
};
|
|
11498
11499
|
}
|
|
11499
|
-
// ../../node_modules
|
|
11500
|
+
// ../../node_modules/zod/v4/locales/hr.js
|
|
11500
11501
|
var error18 = () => {
|
|
11501
11502
|
const Sizable = {
|
|
11502
11503
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -11618,7 +11619,7 @@ function hr_default() {
|
|
|
11618
11619
|
localeError: error18()
|
|
11619
11620
|
};
|
|
11620
11621
|
}
|
|
11621
|
-
// ../../node_modules
|
|
11622
|
+
// ../../node_modules/zod/v4/locales/hu.js
|
|
11622
11623
|
var error19 = () => {
|
|
11623
11624
|
const Sizable = {
|
|
11624
11625
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -11726,7 +11727,7 @@ function hu_default() {
|
|
|
11726
11727
|
localeError: error19()
|
|
11727
11728
|
};
|
|
11728
11729
|
}
|
|
11729
|
-
// ../../node_modules
|
|
11730
|
+
// ../../node_modules/zod/v4/locales/hy.js
|
|
11730
11731
|
function getArmenianPlural(count, one, many) {
|
|
11731
11732
|
return Math.abs(count) === 1 ? one : many;
|
|
11732
11733
|
}
|
|
@@ -11873,7 +11874,7 @@ function hy_default() {
|
|
|
11873
11874
|
localeError: error20()
|
|
11874
11875
|
};
|
|
11875
11876
|
}
|
|
11876
|
-
// ../../node_modules
|
|
11877
|
+
// ../../node_modules/zod/v4/locales/id.js
|
|
11877
11878
|
var error21 = () => {
|
|
11878
11879
|
const Sizable = {
|
|
11879
11880
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -11979,7 +11980,7 @@ function id_default() {
|
|
|
11979
11980
|
localeError: error21()
|
|
11980
11981
|
};
|
|
11981
11982
|
}
|
|
11982
|
-
// ../../node_modules
|
|
11983
|
+
// ../../node_modules/zod/v4/locales/is.js
|
|
11983
11984
|
var error22 = () => {
|
|
11984
11985
|
const Sizable = {
|
|
11985
11986
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -12088,7 +12089,7 @@ function is_default() {
|
|
|
12088
12089
|
localeError: error22()
|
|
12089
12090
|
};
|
|
12090
12091
|
}
|
|
12091
|
-
// ../../node_modules
|
|
12092
|
+
// ../../node_modules/zod/v4/locales/it.js
|
|
12092
12093
|
var error23 = () => {
|
|
12093
12094
|
const Sizable = {
|
|
12094
12095
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -12196,7 +12197,7 @@ function it_default() {
|
|
|
12196
12197
|
localeError: error23()
|
|
12197
12198
|
};
|
|
12198
12199
|
}
|
|
12199
|
-
// ../../node_modules
|
|
12200
|
+
// ../../node_modules/zod/v4/locales/ja.js
|
|
12200
12201
|
var error24 = () => {
|
|
12201
12202
|
const Sizable = {
|
|
12202
12203
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -12303,7 +12304,7 @@ function ja_default() {
|
|
|
12303
12304
|
localeError: error24()
|
|
12304
12305
|
};
|
|
12305
12306
|
}
|
|
12306
|
-
// ../../node_modules
|
|
12307
|
+
// ../../node_modules/zod/v4/locales/ka.js
|
|
12307
12308
|
var error25 = () => {
|
|
12308
12309
|
const Sizable = {
|
|
12309
12310
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -12415,7 +12416,7 @@ function ka_default() {
|
|
|
12415
12416
|
localeError: error25()
|
|
12416
12417
|
};
|
|
12417
12418
|
}
|
|
12418
|
-
// ../../node_modules
|
|
12419
|
+
// ../../node_modules/zod/v4/locales/km.js
|
|
12419
12420
|
var error26 = () => {
|
|
12420
12421
|
const Sizable = {
|
|
12421
12422
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -12526,11 +12527,11 @@ function km_default() {
|
|
|
12526
12527
|
};
|
|
12527
12528
|
}
|
|
12528
12529
|
|
|
12529
|
-
// ../../node_modules
|
|
12530
|
+
// ../../node_modules/zod/v4/locales/kh.js
|
|
12530
12531
|
function kh_default() {
|
|
12531
12532
|
return km_default();
|
|
12532
12533
|
}
|
|
12533
|
-
// ../../node_modules
|
|
12534
|
+
// ../../node_modules/zod/v4/locales/ko.js
|
|
12534
12535
|
var error27 = () => {
|
|
12535
12536
|
const Sizable = {
|
|
12536
12537
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -12641,7 +12642,7 @@ function ko_default() {
|
|
|
12641
12642
|
localeError: error27()
|
|
12642
12643
|
};
|
|
12643
12644
|
}
|
|
12644
|
-
// ../../node_modules
|
|
12645
|
+
// ../../node_modules/zod/v4/locales/lt.js
|
|
12645
12646
|
var capitalizeFirstCharacter = (text2) => {
|
|
12646
12647
|
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
12647
12648
|
};
|
|
@@ -12844,7 +12845,7 @@ function lt_default() {
|
|
|
12844
12845
|
localeError: error28()
|
|
12845
12846
|
};
|
|
12846
12847
|
}
|
|
12847
|
-
// ../../node_modules
|
|
12848
|
+
// ../../node_modules/zod/v4/locales/mk.js
|
|
12848
12849
|
var error29 = () => {
|
|
12849
12850
|
const Sizable = {
|
|
12850
12851
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -12953,7 +12954,7 @@ function mk_default() {
|
|
|
12953
12954
|
localeError: error29()
|
|
12954
12955
|
};
|
|
12955
12956
|
}
|
|
12956
|
-
// ../../node_modules
|
|
12957
|
+
// ../../node_modules/zod/v4/locales/ms.js
|
|
12957
12958
|
var error30 = () => {
|
|
12958
12959
|
const Sizable = {
|
|
12959
12960
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -13060,7 +13061,7 @@ function ms_default() {
|
|
|
13060
13061
|
localeError: error30()
|
|
13061
13062
|
};
|
|
13062
13063
|
}
|
|
13063
|
-
// ../../node_modules
|
|
13064
|
+
// ../../node_modules/zod/v4/locales/nl.js
|
|
13064
13065
|
var error31 = () => {
|
|
13065
13066
|
const Sizable = {
|
|
13066
13067
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -13170,7 +13171,7 @@ function nl_default() {
|
|
|
13170
13171
|
localeError: error31()
|
|
13171
13172
|
};
|
|
13172
13173
|
}
|
|
13173
|
-
// ../../node_modules
|
|
13174
|
+
// ../../node_modules/zod/v4/locales/no.js
|
|
13174
13175
|
var error32 = () => {
|
|
13175
13176
|
const Sizable = {
|
|
13176
13177
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -13278,7 +13279,7 @@ function no_default() {
|
|
|
13278
13279
|
localeError: error32()
|
|
13279
13280
|
};
|
|
13280
13281
|
}
|
|
13281
|
-
// ../../node_modules
|
|
13282
|
+
// ../../node_modules/zod/v4/locales/ota.js
|
|
13282
13283
|
var error33 = () => {
|
|
13283
13284
|
const Sizable = {
|
|
13284
13285
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -13387,7 +13388,7 @@ function ota_default() {
|
|
|
13387
13388
|
localeError: error33()
|
|
13388
13389
|
};
|
|
13389
13390
|
}
|
|
13390
|
-
// ../../node_modules
|
|
13391
|
+
// ../../node_modules/zod/v4/locales/ps.js
|
|
13391
13392
|
var error34 = () => {
|
|
13392
13393
|
const Sizable = {
|
|
13393
13394
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -13501,7 +13502,7 @@ function ps_default() {
|
|
|
13501
13502
|
localeError: error34()
|
|
13502
13503
|
};
|
|
13503
13504
|
}
|
|
13504
|
-
// ../../node_modules
|
|
13505
|
+
// ../../node_modules/zod/v4/locales/pl.js
|
|
13505
13506
|
var error35 = () => {
|
|
13506
13507
|
const Sizable = {
|
|
13507
13508
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -13610,7 +13611,7 @@ function pl_default() {
|
|
|
13610
13611
|
localeError: error35()
|
|
13611
13612
|
};
|
|
13612
13613
|
}
|
|
13613
|
-
// ../../node_modules
|
|
13614
|
+
// ../../node_modules/zod/v4/locales/pt.js
|
|
13614
13615
|
var error36 = () => {
|
|
13615
13616
|
const Sizable = {
|
|
13616
13617
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -13718,7 +13719,7 @@ function pt_default() {
|
|
|
13718
13719
|
localeError: error36()
|
|
13719
13720
|
};
|
|
13720
13721
|
}
|
|
13721
|
-
// ../../node_modules
|
|
13722
|
+
// ../../node_modules/zod/v4/locales/ro.js
|
|
13722
13723
|
var error37 = () => {
|
|
13723
13724
|
const Sizable = {
|
|
13724
13725
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -13837,7 +13838,7 @@ function ro_default() {
|
|
|
13837
13838
|
localeError: error37()
|
|
13838
13839
|
};
|
|
13839
13840
|
}
|
|
13840
|
-
// ../../node_modules
|
|
13841
|
+
// ../../node_modules/zod/v4/locales/ru.js
|
|
13841
13842
|
function getRussianPlural(count, one, few, many) {
|
|
13842
13843
|
const absCount = Math.abs(count);
|
|
13843
13844
|
const lastDigit = absCount % 10;
|
|
@@ -13993,7 +13994,7 @@ function ru_default() {
|
|
|
13993
13994
|
localeError: error38()
|
|
13994
13995
|
};
|
|
13995
13996
|
}
|
|
13996
|
-
// ../../node_modules
|
|
13997
|
+
// ../../node_modules/zod/v4/locales/sl.js
|
|
13997
13998
|
var error39 = () => {
|
|
13998
13999
|
const Sizable = {
|
|
13999
14000
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -14102,7 +14103,7 @@ function sl_default() {
|
|
|
14102
14103
|
localeError: error39()
|
|
14103
14104
|
};
|
|
14104
14105
|
}
|
|
14105
|
-
// ../../node_modules
|
|
14106
|
+
// ../../node_modules/zod/v4/locales/sv.js
|
|
14106
14107
|
var error40 = () => {
|
|
14107
14108
|
const Sizable = {
|
|
14108
14109
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -14212,7 +14213,7 @@ function sv_default() {
|
|
|
14212
14213
|
localeError: error40()
|
|
14213
14214
|
};
|
|
14214
14215
|
}
|
|
14215
|
-
// ../../node_modules
|
|
14216
|
+
// ../../node_modules/zod/v4/locales/ta.js
|
|
14216
14217
|
var error41 = () => {
|
|
14217
14218
|
const Sizable = {
|
|
14218
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" },
|
|
@@ -14322,7 +14323,7 @@ function ta_default() {
|
|
|
14322
14323
|
localeError: error41()
|
|
14323
14324
|
};
|
|
14324
14325
|
}
|
|
14325
|
-
// ../../node_modules
|
|
14326
|
+
// ../../node_modules/zod/v4/locales/th.js
|
|
14326
14327
|
var error42 = () => {
|
|
14327
14328
|
const Sizable = {
|
|
14328
14329
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -14432,7 +14433,7 @@ function th_default() {
|
|
|
14432
14433
|
localeError: error42()
|
|
14433
14434
|
};
|
|
14434
14435
|
}
|
|
14435
|
-
// ../../node_modules
|
|
14436
|
+
// ../../node_modules/zod/v4/locales/tr.js
|
|
14436
14437
|
var error43 = () => {
|
|
14437
14438
|
const Sizable = {
|
|
14438
14439
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -14537,7 +14538,7 @@ function tr_default() {
|
|
|
14537
14538
|
localeError: error43()
|
|
14538
14539
|
};
|
|
14539
14540
|
}
|
|
14540
|
-
// ../../node_modules
|
|
14541
|
+
// ../../node_modules/zod/v4/locales/uk.js
|
|
14541
14542
|
var error44 = () => {
|
|
14542
14543
|
const Sizable = {
|
|
14543
14544
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -14646,11 +14647,11 @@ function uk_default() {
|
|
|
14646
14647
|
};
|
|
14647
14648
|
}
|
|
14648
14649
|
|
|
14649
|
-
// ../../node_modules
|
|
14650
|
+
// ../../node_modules/zod/v4/locales/ua.js
|
|
14650
14651
|
function ua_default() {
|
|
14651
14652
|
return uk_default();
|
|
14652
14653
|
}
|
|
14653
|
-
// ../../node_modules
|
|
14654
|
+
// ../../node_modules/zod/v4/locales/ur.js
|
|
14654
14655
|
var error45 = () => {
|
|
14655
14656
|
const Sizable = {
|
|
14656
14657
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -14760,7 +14761,7 @@ function ur_default() {
|
|
|
14760
14761
|
localeError: error45()
|
|
14761
14762
|
};
|
|
14762
14763
|
}
|
|
14763
|
-
// ../../node_modules
|
|
14764
|
+
// ../../node_modules/zod/v4/locales/uz.js
|
|
14764
14765
|
var error46 = () => {
|
|
14765
14766
|
const Sizable = {
|
|
14766
14767
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -14870,7 +14871,7 @@ function uz_default() {
|
|
|
14870
14871
|
localeError: error46()
|
|
14871
14872
|
};
|
|
14872
14873
|
}
|
|
14873
|
-
// ../../node_modules
|
|
14874
|
+
// ../../node_modules/zod/v4/locales/vi.js
|
|
14874
14875
|
var error47 = () => {
|
|
14875
14876
|
const Sizable = {
|
|
14876
14877
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -14978,7 +14979,7 @@ function vi_default() {
|
|
|
14978
14979
|
localeError: error47()
|
|
14979
14980
|
};
|
|
14980
14981
|
}
|
|
14981
|
-
// ../../node_modules
|
|
14982
|
+
// ../../node_modules/zod/v4/locales/zh-CN.js
|
|
14982
14983
|
var error48 = () => {
|
|
14983
14984
|
const Sizable = {
|
|
14984
14985
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -15087,7 +15088,7 @@ function zh_CN_default() {
|
|
|
15087
15088
|
localeError: error48()
|
|
15088
15089
|
};
|
|
15089
15090
|
}
|
|
15090
|
-
// ../../node_modules
|
|
15091
|
+
// ../../node_modules/zod/v4/locales/zh-TW.js
|
|
15091
15092
|
var error49 = () => {
|
|
15092
15093
|
const Sizable = {
|
|
15093
15094
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -15194,7 +15195,7 @@ function zh_TW_default() {
|
|
|
15194
15195
|
localeError: error49()
|
|
15195
15196
|
};
|
|
15196
15197
|
}
|
|
15197
|
-
// ../../node_modules
|
|
15198
|
+
// ../../node_modules/zod/v4/locales/yo.js
|
|
15198
15199
|
var error50 = () => {
|
|
15199
15200
|
const Sizable = {
|
|
15200
15201
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -15301,7 +15302,7 @@ function yo_default() {
|
|
|
15301
15302
|
localeError: error50()
|
|
15302
15303
|
};
|
|
15303
15304
|
}
|
|
15304
|
-
// ../../node_modules
|
|
15305
|
+
// ../../node_modules/zod/v4/core/registries.js
|
|
15305
15306
|
var _a2;
|
|
15306
15307
|
var $output = Symbol("ZodOutput");
|
|
15307
15308
|
var $input = Symbol("ZodInput");
|
|
@@ -15351,7 +15352,7 @@ function registry() {
|
|
|
15351
15352
|
}
|
|
15352
15353
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
15353
15354
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
15354
|
-
// ../../node_modules
|
|
15355
|
+
// ../../node_modules/zod/v4/core/api.js
|
|
15355
15356
|
function _string(Class2, params) {
|
|
15356
15357
|
return new Class2({
|
|
15357
15358
|
type: "string",
|
|
@@ -16271,7 +16272,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
16271
16272
|
const inst = new Class2(def);
|
|
16272
16273
|
return inst;
|
|
16273
16274
|
}
|
|
16274
|
-
// ../../node_modules
|
|
16275
|
+
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
16275
16276
|
function initializeContext(params) {
|
|
16276
16277
|
let target = params?.target ?? "draft-2020-12";
|
|
16277
16278
|
if (target === "draft-4")
|
|
@@ -16623,7 +16624,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
16623
16624
|
extractDefs(ctx, schema);
|
|
16624
16625
|
return finalize(ctx, schema);
|
|
16625
16626
|
};
|
|
16626
|
-
// ../../node_modules
|
|
16627
|
+
// ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
16627
16628
|
var formatMap = {
|
|
16628
16629
|
guid: "uuid",
|
|
16629
16630
|
url: "uri",
|
|
@@ -17161,7 +17162,7 @@ function toJSONSchema(input, params) {
|
|
|
17161
17162
|
extractDefs(ctx, input);
|
|
17162
17163
|
return finalize(ctx, input);
|
|
17163
17164
|
}
|
|
17164
|
-
// ../../node_modules
|
|
17165
|
+
// ../../node_modules/zod/v4/core/json-schema-generator.js
|
|
17165
17166
|
class JSONSchemaGenerator {
|
|
17166
17167
|
get metadataRegistry() {
|
|
17167
17168
|
return this.ctx.metadataRegistry;
|
|
@@ -17220,9 +17221,9 @@ class JSONSchemaGenerator {
|
|
|
17220
17221
|
return plainResult;
|
|
17221
17222
|
}
|
|
17222
17223
|
}
|
|
17223
|
-
// ../../node_modules
|
|
17224
|
+
// ../../node_modules/zod/v4/core/json-schema.js
|
|
17224
17225
|
var exports_json_schema = {};
|
|
17225
|
-
// ../../node_modules
|
|
17226
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17226
17227
|
var exports_schemas2 = {};
|
|
17227
17228
|
__export(exports_schemas2, {
|
|
17228
17229
|
xor: () => xor,
|
|
@@ -17393,7 +17394,7 @@ __export(exports_schemas2, {
|
|
|
17393
17394
|
ZodAny: () => ZodAny
|
|
17394
17395
|
});
|
|
17395
17396
|
|
|
17396
|
-
// ../../node_modules
|
|
17397
|
+
// ../../node_modules/zod/v4/classic/checks.js
|
|
17397
17398
|
var exports_checks2 = {};
|
|
17398
17399
|
__export(exports_checks2, {
|
|
17399
17400
|
uppercase: () => _uppercase,
|
|
@@ -17427,7 +17428,7 @@ __export(exports_checks2, {
|
|
|
17427
17428
|
endsWith: () => _endsWith
|
|
17428
17429
|
});
|
|
17429
17430
|
|
|
17430
|
-
// ../../node_modules
|
|
17431
|
+
// ../../node_modules/zod/v4/classic/iso.js
|
|
17431
17432
|
var exports_iso = {};
|
|
17432
17433
|
__export(exports_iso, {
|
|
17433
17434
|
time: () => time3,
|
|
@@ -17468,7 +17469,7 @@ function duration2(params) {
|
|
|
17468
17469
|
return _isoDuration(ZodISODuration, params);
|
|
17469
17470
|
}
|
|
17470
17471
|
|
|
17471
|
-
// ../../node_modules
|
|
17472
|
+
// ../../node_modules/zod/v4/classic/errors.js
|
|
17472
17473
|
var initializer2 = (inst, issues) => {
|
|
17473
17474
|
$ZodError.init(inst, issues);
|
|
17474
17475
|
inst.name = "ZodError";
|
|
@@ -17503,7 +17504,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
17503
17504
|
Parent: Error
|
|
17504
17505
|
});
|
|
17505
17506
|
|
|
17506
|
-
// ../../node_modules
|
|
17507
|
+
// ../../node_modules/zod/v4/classic/parse.js
|
|
17507
17508
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17508
17509
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17509
17510
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17517,7 +17518,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17517
17518
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17518
17519
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17519
17520
|
|
|
17520
|
-
// ../../node_modules
|
|
17521
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17521
17522
|
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
17522
17523
|
function _installLazyMethods(inst, group, methods) {
|
|
17523
17524
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -18804,7 +18805,7 @@ function preprocess(fn, schema) {
|
|
|
18804
18805
|
out: schema
|
|
18805
18806
|
});
|
|
18806
18807
|
}
|
|
18807
|
-
// ../../node_modules
|
|
18808
|
+
// ../../node_modules/zod/v4/classic/compat.js
|
|
18808
18809
|
var ZodIssueCode = {
|
|
18809
18810
|
invalid_type: "invalid_type",
|
|
18810
18811
|
too_big: "too_big",
|
|
@@ -18828,7 +18829,7 @@ function getErrorMap() {
|
|
|
18828
18829
|
}
|
|
18829
18830
|
var ZodFirstPartyTypeKind;
|
|
18830
18831
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18831
|
-
// ../../node_modules
|
|
18832
|
+
// ../../node_modules/zod/v4/classic/from-json-schema.js
|
|
18832
18833
|
var z = {
|
|
18833
18834
|
...exports_schemas2,
|
|
18834
18835
|
...exports_checks2,
|
|
@@ -19295,7 +19296,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19295
19296
|
};
|
|
19296
19297
|
return convertSchema(normalized, ctx);
|
|
19297
19298
|
}
|
|
19298
|
-
// ../../node_modules
|
|
19299
|
+
// ../../node_modules/zod/v4/classic/coerce.js
|
|
19299
19300
|
var exports_coerce = {};
|
|
19300
19301
|
__export(exports_coerce, {
|
|
19301
19302
|
string: () => string3,
|
|
@@ -19320,9 +19321,9 @@ function date5(params) {
|
|
|
19320
19321
|
return _coercedDate(ZodDate, params);
|
|
19321
19322
|
}
|
|
19322
19323
|
|
|
19323
|
-
// ../../node_modules
|
|
19324
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
19324
19325
|
config(en_default());
|
|
19325
|
-
// ../../node_modules
|
|
19326
|
+
// ../../node_modules/drizzle-zod/index.mjs
|
|
19326
19327
|
var CONSTANTS = {
|
|
19327
19328
|
INT8_MIN: -128,
|
|
19328
19329
|
INT8_MAX: 127,
|
|
@@ -19590,6 +19591,8 @@ var createNodeInputSchema = exports_external.object({
|
|
|
19590
19591
|
parentId: ulidSchema.nullish(),
|
|
19591
19592
|
displayKind: exports_external.string().min(1).default("default")
|
|
19592
19593
|
});
|
|
19594
|
+
var TRASH_RETENTION_DAYS = 30;
|
|
19595
|
+
var TRASH_RETENTION_MS = TRASH_RETENTION_DAYS * 24 * 60 * 60 * 1000;
|
|
19593
19596
|
var loginInputSchema = exports_external.object({
|
|
19594
19597
|
email: exports_external.string().email(),
|
|
19595
19598
|
password: exports_external.string().min(1)
|
|
@@ -20973,6 +20976,7 @@ var apiKeyScopeSchema = exports_external.enum([
|
|
|
20973
20976
|
"collections:write",
|
|
20974
20977
|
"presets:read",
|
|
20975
20978
|
"presets:install",
|
|
20979
|
+
"export:read",
|
|
20976
20980
|
"*"
|
|
20977
20981
|
]);
|
|
20978
20982
|
var apiKeySchema = createSelectSchema(apiKeys, {
|
|
@@ -20994,7 +20998,172 @@ var apiKeyContextSchema = exports_external.object({
|
|
|
20994
20998
|
userId: exports_external.string().nullable(),
|
|
20995
20999
|
scopes: exports_external.array(apiKeyScopeSchema)
|
|
20996
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
|
+
|
|
20997
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
|
+
});
|
|
20998
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'");
|
|
20999
21168
|
var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
21000
21169
|
events: exports_external.array(webhookEventSchema),
|
|
@@ -21003,7 +21172,7 @@ var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
|
21003
21172
|
});
|
|
21004
21173
|
var webhookSubscriptionPublicSchema = webhookSubscriptionSchema.omit({ secret: true });
|
|
21005
21174
|
var createWebhookSubscriptionInputSchema = exports_external.object({
|
|
21006
|
-
url:
|
|
21175
|
+
url: webhookUrlSchema,
|
|
21007
21176
|
events: exports_external.array(webhookEventSchema).min(1),
|
|
21008
21177
|
secret: exports_external.string().min(16).max(200).optional()
|
|
21009
21178
|
}).strict();
|
|
@@ -21011,7 +21180,7 @@ var createWebhookSubscriptionResultSchema = webhookSubscriptionPublicSchema.exte
|
|
|
21011
21180
|
secret: exports_external.string()
|
|
21012
21181
|
});
|
|
21013
21182
|
var updateWebhookSubscriptionInputSchema = exports_external.object({
|
|
21014
|
-
url:
|
|
21183
|
+
url: webhookUrlSchema.optional(),
|
|
21015
21184
|
events: exports_external.array(webhookEventSchema).min(1).optional(),
|
|
21016
21185
|
active: exports_external.boolean().optional()
|
|
21017
21186
|
}).strict();
|
|
@@ -21604,6 +21773,16 @@ function parseCapture(input) {
|
|
|
21604
21773
|
const title = input.replace(TAG_RE, " ").replace(PRIORITY_RE, " ").replace(AREA_RE, " ").replace(/\s+/g, " ").trim();
|
|
21605
21774
|
return { title, tags, ...priority ? { priority } : {}, ...area ? { area } : {} };
|
|
21606
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
|
+
});
|
|
21607
21786
|
// ../../packages/schema/src/presets/collection-types.ts
|
|
21608
21787
|
var coverUrl = exports_external.string().url().max(2048).nullish();
|
|
21609
21788
|
var bookFacetSchema = exports_external.object({
|
|
@@ -23503,10 +23682,10 @@ var featurePresets = [
|
|
|
23503
23682
|
// ../../packages/schema/src/presets/catalog.ts
|
|
23504
23683
|
var presetCatalog = featurePresets;
|
|
23505
23684
|
var presetsByKey = new Map(presetCatalog.map((preset) => [preset.key, preset]));
|
|
23506
|
-
// ../../node_modules
|
|
23685
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23507
23686
|
import crypto from "crypto";
|
|
23508
23687
|
|
|
23509
|
-
// ../../node_modules
|
|
23688
|
+
// ../../node_modules/layerr/dist/error.js
|
|
23510
23689
|
function assertError(err) {
|
|
23511
23690
|
if (!isError(err)) {
|
|
23512
23691
|
throw new Error("Parameter was not an error");
|
|
@@ -23519,14 +23698,14 @@ function objectToString(obj) {
|
|
|
23519
23698
|
return Object.prototype.toString.call(obj);
|
|
23520
23699
|
}
|
|
23521
23700
|
|
|
23522
|
-
// ../../node_modules
|
|
23701
|
+
// ../../node_modules/layerr/dist/global.js
|
|
23523
23702
|
var NAME = "Layerr";
|
|
23524
23703
|
var __name = NAME;
|
|
23525
23704
|
function getGlobalName() {
|
|
23526
23705
|
return __name;
|
|
23527
23706
|
}
|
|
23528
23707
|
|
|
23529
|
-
// ../../node_modules
|
|
23708
|
+
// ../../node_modules/layerr/dist/tools.js
|
|
23530
23709
|
function parseArguments(args) {
|
|
23531
23710
|
let options, shortMessage = "";
|
|
23532
23711
|
if (args.length === 0) {
|
|
@@ -23551,7 +23730,7 @@ function parseArguments(args) {
|
|
|
23551
23730
|
};
|
|
23552
23731
|
}
|
|
23553
23732
|
|
|
23554
|
-
// ../../node_modules
|
|
23733
|
+
// ../../node_modules/layerr/dist/layerr.js
|
|
23555
23734
|
class Layerr extends Error {
|
|
23556
23735
|
constructor(errorOptionsOrMessage, messageText) {
|
|
23557
23736
|
const args = [...arguments];
|
|
@@ -23614,7 +23793,7 @@ caused by: ${Layerr.fullStack(cause)}`;
|
|
|
23614
23793
|
return output;
|
|
23615
23794
|
}
|
|
23616
23795
|
}
|
|
23617
|
-
// ../../node_modules
|
|
23796
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23618
23797
|
var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23619
23798
|
var ENCODING_LEN = 32;
|
|
23620
23799
|
var TIME_MAX = 281474976710655;
|
|
@@ -23755,7 +23934,7 @@ function parseCapture2(input) {
|
|
|
23755
23934
|
|
|
23756
23935
|
// src/meta.ts
|
|
23757
23936
|
var CLI_NAME = "do";
|
|
23758
|
-
var VERSION = "1.
|
|
23937
|
+
var VERSION = "1.58.0";
|
|
23759
23938
|
var API_PREFIX = "/api/v1";
|
|
23760
23939
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
23761
23940
|
|
|
@@ -23768,6 +23947,15 @@ class DoClient {
|
|
|
23768
23947
|
get(path, opts = {}) {
|
|
23769
23948
|
return this.request("GET", path, opts);
|
|
23770
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
|
+
}
|
|
23771
23959
|
post(path, body) {
|
|
23772
23960
|
return this.request("POST", path, { body });
|
|
23773
23961
|
}
|
|
@@ -23789,7 +23977,7 @@ class DoClient {
|
|
|
23789
23977
|
}
|
|
23790
23978
|
return url2.toString();
|
|
23791
23979
|
}
|
|
23792
|
-
async
|
|
23980
|
+
async send(method, path, opts) {
|
|
23793
23981
|
const headers = {
|
|
23794
23982
|
authorization: `Bearer ${this.opts.apiKey}`,
|
|
23795
23983
|
accept: "application/json"
|
|
@@ -23797,9 +23985,8 @@ class DoClient {
|
|
|
23797
23985
|
const hasBody = opts.body !== undefined;
|
|
23798
23986
|
if (hasBody)
|
|
23799
23987
|
headers["content-type"] = "application/json";
|
|
23800
|
-
let res;
|
|
23801
23988
|
try {
|
|
23802
|
-
|
|
23989
|
+
return await this.opts.fetchImpl(this.url(path, opts.query), {
|
|
23803
23990
|
method,
|
|
23804
23991
|
headers,
|
|
23805
23992
|
body: hasBody ? JSON.stringify(opts.body) : undefined
|
|
@@ -23808,6 +23995,9 @@ class DoClient {
|
|
|
23808
23995
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
23809
23996
|
throw new CliError("network_error", `could not reach the API at ${this.opts.apiUrl}: ${message}`, EXIT.RUNTIME);
|
|
23810
23997
|
}
|
|
23998
|
+
}
|
|
23999
|
+
async request(method, path, opts) {
|
|
24000
|
+
const res = await this.send(method, path, opts);
|
|
23811
24001
|
if (res.status === 204)
|
|
23812
24002
|
return;
|
|
23813
24003
|
const text2 = await res.text();
|
|
@@ -24646,6 +24836,22 @@ var COMMAND_SPECS = [
|
|
|
24646
24836
|
returns: "ShareLinkPublic",
|
|
24647
24837
|
notes: "Destructive \u2014 gated behind --allow-destructive + a links:write key."
|
|
24648
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
|
+
},
|
|
24649
24855
|
{
|
|
24650
24856
|
path: ["whoami"],
|
|
24651
24857
|
summary: "Show the tenant and scopes the configured key resolves to.",
|
|
@@ -25157,6 +25363,14 @@ var HANDLERS = {
|
|
|
25157
25363
|
render: renderToday
|
|
25158
25364
|
};
|
|
25159
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
|
+
},
|
|
25160
25374
|
"notes backlinks": async ({ args, requireClient }) => {
|
|
25161
25375
|
const id = requireArg(args, 0, "note id");
|
|
25162
25376
|
return {
|
|
@@ -25582,6 +25796,10 @@ async function run(argv, io) {
|
|
|
25582
25796
|
apiUrl: flagString(flags, "url")
|
|
25583
25797
|
});
|
|
25584
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
|
+
}
|
|
25585
25803
|
emitResult(io, mode, result.data, result.render);
|
|
25586
25804
|
return EXIT.OK;
|
|
25587
25805
|
} catch (error51) {
|