@robbeverhelst/do 1.57.0 → 1.59.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 +399 -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]];
|
|
@@ -4913,6 +4913,22 @@ var datapoints = pgTable("datapoints", {
|
|
|
4913
4913
|
index("datapoints_tenant_type_idx").on(t.tenantId, t.type),
|
|
4914
4914
|
index("datapoints_tenant_entity_idx").on(t.tenantId, t.entity, t.entityId)
|
|
4915
4915
|
]);
|
|
4916
|
+
var eventOutbox = pgTable("event_outbox", {
|
|
4917
|
+
id: text("id").primaryKey(),
|
|
4918
|
+
tenantId: text("tenant_id").notNull().references(() => tenants.id, { onDelete: "cascade" }),
|
|
4919
|
+
userId: text("user_id").references(() => users.id, { onDelete: "set null" }),
|
|
4920
|
+
type: text("type").notNull(),
|
|
4921
|
+
entity: text("entity").notNull(),
|
|
4922
|
+
entityId: text("entity_id").notNull(),
|
|
4923
|
+
value: jsonb("value"),
|
|
4924
|
+
occurredAt: timestamp("occurred_at", { withTimezone: true }).notNull(),
|
|
4925
|
+
attempts: integer("attempts").notNull().default(0),
|
|
4926
|
+
lastError: text("last_error"),
|
|
4927
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
4928
|
+
}, (t) => [
|
|
4929
|
+
index("event_outbox_created_idx").on(t.createdAt),
|
|
4930
|
+
index("event_outbox_tenant_idx").on(t.tenantId)
|
|
4931
|
+
]);
|
|
4916
4932
|
// ../../packages/schema/src/db/automations.ts
|
|
4917
4933
|
var automations = pgTable("automations", {
|
|
4918
4934
|
id: text("id").primaryKey(),
|
|
@@ -5047,7 +5063,7 @@ var insightsHabitStreaks = pgView("insights_habit_streaks", {
|
|
|
5047
5063
|
latestRunLength: integer("latest_run_length").notNull(),
|
|
5048
5064
|
latestRunEnd: date("latest_run_end").notNull()
|
|
5049
5065
|
}).existing();
|
|
5050
|
-
// ../../node_modules
|
|
5066
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
5051
5067
|
var exports_external = {};
|
|
5052
5068
|
__export(exports_external, {
|
|
5053
5069
|
xor: () => xor,
|
|
@@ -5290,7 +5306,7 @@ __export(exports_external, {
|
|
|
5290
5306
|
$brand: () => $brand
|
|
5291
5307
|
});
|
|
5292
5308
|
|
|
5293
|
-
// ../../node_modules
|
|
5309
|
+
// ../../node_modules/zod/v4/core/index.js
|
|
5294
5310
|
var exports_core2 = {};
|
|
5295
5311
|
__export(exports_core2, {
|
|
5296
5312
|
version: () => version2,
|
|
@@ -5569,7 +5585,7 @@ __export(exports_core2, {
|
|
|
5569
5585
|
$ZodAny: () => $ZodAny
|
|
5570
5586
|
});
|
|
5571
5587
|
|
|
5572
|
-
// ../../node_modules
|
|
5588
|
+
// ../../node_modules/zod/v4/core/core.js
|
|
5573
5589
|
var _a;
|
|
5574
5590
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
5575
5591
|
status: "aborted"
|
|
@@ -5647,7 +5663,7 @@ function config(newConfig) {
|
|
|
5647
5663
|
Object.assign(globalConfig, newConfig);
|
|
5648
5664
|
return globalConfig;
|
|
5649
5665
|
}
|
|
5650
|
-
// ../../node_modules
|
|
5666
|
+
// ../../node_modules/zod/v4/core/util.js
|
|
5651
5667
|
var exports_util = {};
|
|
5652
5668
|
__export(exports_util, {
|
|
5653
5669
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -6339,7 +6355,7 @@ class Class {
|
|
|
6339
6355
|
constructor(..._args) {}
|
|
6340
6356
|
}
|
|
6341
6357
|
|
|
6342
|
-
// ../../node_modules
|
|
6358
|
+
// ../../node_modules/zod/v4/core/errors.js
|
|
6343
6359
|
var initializer = (inst, def) => {
|
|
6344
6360
|
inst.name = "$ZodError";
|
|
6345
6361
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -6479,7 +6495,7 @@ function prettifyError(error) {
|
|
|
6479
6495
|
`);
|
|
6480
6496
|
}
|
|
6481
6497
|
|
|
6482
|
-
// ../../node_modules
|
|
6498
|
+
// ../../node_modules/zod/v4/core/parse.js
|
|
6483
6499
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
6484
6500
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
6485
6501
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -6566,7 +6582,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
6566
6582
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
6567
6583
|
};
|
|
6568
6584
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
6569
|
-
// ../../node_modules
|
|
6585
|
+
// ../../node_modules/zod/v4/core/regexes.js
|
|
6570
6586
|
var exports_regexes = {};
|
|
6571
6587
|
__export(exports_regexes, {
|
|
6572
6588
|
xid: () => xid,
|
|
@@ -6725,7 +6741,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
6725
6741
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
6726
6742
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
6727
6743
|
|
|
6728
|
-
// ../../node_modules
|
|
6744
|
+
// ../../node_modules/zod/v4/core/checks.js
|
|
6729
6745
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
6730
6746
|
var _a2;
|
|
6731
6747
|
inst._zod ?? (inst._zod = {});
|
|
@@ -7272,7 +7288,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
7272
7288
|
};
|
|
7273
7289
|
});
|
|
7274
7290
|
|
|
7275
|
-
// ../../node_modules
|
|
7291
|
+
// ../../node_modules/zod/v4/core/doc.js
|
|
7276
7292
|
class Doc {
|
|
7277
7293
|
constructor(args = []) {
|
|
7278
7294
|
this.content = [];
|
|
@@ -7310,14 +7326,14 @@ class Doc {
|
|
|
7310
7326
|
}
|
|
7311
7327
|
}
|
|
7312
7328
|
|
|
7313
|
-
// ../../node_modules
|
|
7329
|
+
// ../../node_modules/zod/v4/core/versions.js
|
|
7314
7330
|
var version2 = {
|
|
7315
7331
|
major: 4,
|
|
7316
7332
|
minor: 4,
|
|
7317
7333
|
patch: 3
|
|
7318
7334
|
};
|
|
7319
7335
|
|
|
7320
|
-
// ../../node_modules
|
|
7336
|
+
// ../../node_modules/zod/v4/core/schemas.js
|
|
7321
7337
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
7322
7338
|
var _a2;
|
|
7323
7339
|
inst ?? (inst = {});
|
|
@@ -9401,7 +9417,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
9401
9417
|
payload.issues.push(issue(_iss));
|
|
9402
9418
|
}
|
|
9403
9419
|
}
|
|
9404
|
-
// ../../node_modules
|
|
9420
|
+
// ../../node_modules/zod/v4/locales/index.js
|
|
9405
9421
|
var exports_locales = {};
|
|
9406
9422
|
__export(exports_locales, {
|
|
9407
9423
|
zhTW: () => zh_TW_default,
|
|
@@ -9458,7 +9474,7 @@ __export(exports_locales, {
|
|
|
9458
9474
|
ar: () => ar_default
|
|
9459
9475
|
});
|
|
9460
9476
|
|
|
9461
|
-
// ../../node_modules
|
|
9477
|
+
// ../../node_modules/zod/v4/locales/ar.js
|
|
9462
9478
|
var error = () => {
|
|
9463
9479
|
const Sizable = {
|
|
9464
9480
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -9564,7 +9580,7 @@ function ar_default() {
|
|
|
9564
9580
|
localeError: error()
|
|
9565
9581
|
};
|
|
9566
9582
|
}
|
|
9567
|
-
// ../../node_modules
|
|
9583
|
+
// ../../node_modules/zod/v4/locales/az.js
|
|
9568
9584
|
var error2 = () => {
|
|
9569
9585
|
const Sizable = {
|
|
9570
9586
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -9669,7 +9685,7 @@ function az_default() {
|
|
|
9669
9685
|
localeError: error2()
|
|
9670
9686
|
};
|
|
9671
9687
|
}
|
|
9672
|
-
// ../../node_modules
|
|
9688
|
+
// ../../node_modules/zod/v4/locales/be.js
|
|
9673
9689
|
function getBelarusianPlural(count, one, few, many) {
|
|
9674
9690
|
const absCount = Math.abs(count);
|
|
9675
9691
|
const lastDigit = absCount % 10;
|
|
@@ -9825,7 +9841,7 @@ function be_default() {
|
|
|
9825
9841
|
localeError: error3()
|
|
9826
9842
|
};
|
|
9827
9843
|
}
|
|
9828
|
-
// ../../node_modules
|
|
9844
|
+
// ../../node_modules/zod/v4/locales/bg.js
|
|
9829
9845
|
var error4 = () => {
|
|
9830
9846
|
const Sizable = {
|
|
9831
9847
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -9945,7 +9961,7 @@ function bg_default() {
|
|
|
9945
9961
|
localeError: error4()
|
|
9946
9962
|
};
|
|
9947
9963
|
}
|
|
9948
|
-
// ../../node_modules
|
|
9964
|
+
// ../../node_modules/zod/v4/locales/ca.js
|
|
9949
9965
|
var error5 = () => {
|
|
9950
9966
|
const Sizable = {
|
|
9951
9967
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -10052,7 +10068,7 @@ function ca_default() {
|
|
|
10052
10068
|
localeError: error5()
|
|
10053
10069
|
};
|
|
10054
10070
|
}
|
|
10055
|
-
// ../../node_modules
|
|
10071
|
+
// ../../node_modules/zod/v4/locales/cs.js
|
|
10056
10072
|
var error6 = () => {
|
|
10057
10073
|
const Sizable = {
|
|
10058
10074
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -10163,7 +10179,7 @@ function cs_default() {
|
|
|
10163
10179
|
localeError: error6()
|
|
10164
10180
|
};
|
|
10165
10181
|
}
|
|
10166
|
-
// ../../node_modules
|
|
10182
|
+
// ../../node_modules/zod/v4/locales/da.js
|
|
10167
10183
|
var error7 = () => {
|
|
10168
10184
|
const Sizable = {
|
|
10169
10185
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -10278,7 +10294,7 @@ function da_default() {
|
|
|
10278
10294
|
localeError: error7()
|
|
10279
10295
|
};
|
|
10280
10296
|
}
|
|
10281
|
-
// ../../node_modules
|
|
10297
|
+
// ../../node_modules/zod/v4/locales/de.js
|
|
10282
10298
|
var error8 = () => {
|
|
10283
10299
|
const Sizable = {
|
|
10284
10300
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -10386,7 +10402,7 @@ function de_default() {
|
|
|
10386
10402
|
localeError: error8()
|
|
10387
10403
|
};
|
|
10388
10404
|
}
|
|
10389
|
-
// ../../node_modules
|
|
10405
|
+
// ../../node_modules/zod/v4/locales/el.js
|
|
10390
10406
|
var error9 = () => {
|
|
10391
10407
|
const Sizable = {
|
|
10392
10408
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -10495,7 +10511,7 @@ function el_default() {
|
|
|
10495
10511
|
localeError: error9()
|
|
10496
10512
|
};
|
|
10497
10513
|
}
|
|
10498
|
-
// ../../node_modules
|
|
10514
|
+
// ../../node_modules/zod/v4/locales/en.js
|
|
10499
10515
|
var error10 = () => {
|
|
10500
10516
|
const Sizable = {
|
|
10501
10517
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -10605,7 +10621,7 @@ function en_default() {
|
|
|
10605
10621
|
localeError: error10()
|
|
10606
10622
|
};
|
|
10607
10623
|
}
|
|
10608
|
-
// ../../node_modules
|
|
10624
|
+
// ../../node_modules/zod/v4/locales/eo.js
|
|
10609
10625
|
var error11 = () => {
|
|
10610
10626
|
const Sizable = {
|
|
10611
10627
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -10714,7 +10730,7 @@ function eo_default() {
|
|
|
10714
10730
|
localeError: error11()
|
|
10715
10731
|
};
|
|
10716
10732
|
}
|
|
10717
|
-
// ../../node_modules
|
|
10733
|
+
// ../../node_modules/zod/v4/locales/es.js
|
|
10718
10734
|
var error12 = () => {
|
|
10719
10735
|
const Sizable = {
|
|
10720
10736
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -10846,7 +10862,7 @@ function es_default() {
|
|
|
10846
10862
|
localeError: error12()
|
|
10847
10863
|
};
|
|
10848
10864
|
}
|
|
10849
|
-
// ../../node_modules
|
|
10865
|
+
// ../../node_modules/zod/v4/locales/fa.js
|
|
10850
10866
|
var error13 = () => {
|
|
10851
10867
|
const Sizable = {
|
|
10852
10868
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -10960,7 +10976,7 @@ function fa_default() {
|
|
|
10960
10976
|
localeError: error13()
|
|
10961
10977
|
};
|
|
10962
10978
|
}
|
|
10963
|
-
// ../../node_modules
|
|
10979
|
+
// ../../node_modules/zod/v4/locales/fi.js
|
|
10964
10980
|
var error14 = () => {
|
|
10965
10981
|
const Sizable = {
|
|
10966
10982
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -11072,7 +11088,7 @@ function fi_default() {
|
|
|
11072
11088
|
localeError: error14()
|
|
11073
11089
|
};
|
|
11074
11090
|
}
|
|
11075
|
-
// ../../node_modules
|
|
11091
|
+
// ../../node_modules/zod/v4/locales/fr.js
|
|
11076
11092
|
var error15 = () => {
|
|
11077
11093
|
const Sizable = {
|
|
11078
11094
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11197,7 +11213,7 @@ function fr_default() {
|
|
|
11197
11213
|
localeError: error15()
|
|
11198
11214
|
};
|
|
11199
11215
|
}
|
|
11200
|
-
// ../../node_modules
|
|
11216
|
+
// ../../node_modules/zod/v4/locales/fr-CA.js
|
|
11201
11217
|
var error16 = () => {
|
|
11202
11218
|
const Sizable = {
|
|
11203
11219
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -11304,7 +11320,7 @@ function fr_CA_default() {
|
|
|
11304
11320
|
localeError: error16()
|
|
11305
11321
|
};
|
|
11306
11322
|
}
|
|
11307
|
-
// ../../node_modules
|
|
11323
|
+
// ../../node_modules/zod/v4/locales/he.js
|
|
11308
11324
|
var error17 = () => {
|
|
11309
11325
|
const TypeNames = {
|
|
11310
11326
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -11497,7 +11513,7 @@ function he_default() {
|
|
|
11497
11513
|
localeError: error17()
|
|
11498
11514
|
};
|
|
11499
11515
|
}
|
|
11500
|
-
// ../../node_modules
|
|
11516
|
+
// ../../node_modules/zod/v4/locales/hr.js
|
|
11501
11517
|
var error18 = () => {
|
|
11502
11518
|
const Sizable = {
|
|
11503
11519
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -11619,7 +11635,7 @@ function hr_default() {
|
|
|
11619
11635
|
localeError: error18()
|
|
11620
11636
|
};
|
|
11621
11637
|
}
|
|
11622
|
-
// ../../node_modules
|
|
11638
|
+
// ../../node_modules/zod/v4/locales/hu.js
|
|
11623
11639
|
var error19 = () => {
|
|
11624
11640
|
const Sizable = {
|
|
11625
11641
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -11727,7 +11743,7 @@ function hu_default() {
|
|
|
11727
11743
|
localeError: error19()
|
|
11728
11744
|
};
|
|
11729
11745
|
}
|
|
11730
|
-
// ../../node_modules
|
|
11746
|
+
// ../../node_modules/zod/v4/locales/hy.js
|
|
11731
11747
|
function getArmenianPlural(count, one, many) {
|
|
11732
11748
|
return Math.abs(count) === 1 ? one : many;
|
|
11733
11749
|
}
|
|
@@ -11874,7 +11890,7 @@ function hy_default() {
|
|
|
11874
11890
|
localeError: error20()
|
|
11875
11891
|
};
|
|
11876
11892
|
}
|
|
11877
|
-
// ../../node_modules
|
|
11893
|
+
// ../../node_modules/zod/v4/locales/id.js
|
|
11878
11894
|
var error21 = () => {
|
|
11879
11895
|
const Sizable = {
|
|
11880
11896
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -11980,7 +11996,7 @@ function id_default() {
|
|
|
11980
11996
|
localeError: error21()
|
|
11981
11997
|
};
|
|
11982
11998
|
}
|
|
11983
|
-
// ../../node_modules
|
|
11999
|
+
// ../../node_modules/zod/v4/locales/is.js
|
|
11984
12000
|
var error22 = () => {
|
|
11985
12001
|
const Sizable = {
|
|
11986
12002
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -12089,7 +12105,7 @@ function is_default() {
|
|
|
12089
12105
|
localeError: error22()
|
|
12090
12106
|
};
|
|
12091
12107
|
}
|
|
12092
|
-
// ../../node_modules
|
|
12108
|
+
// ../../node_modules/zod/v4/locales/it.js
|
|
12093
12109
|
var error23 = () => {
|
|
12094
12110
|
const Sizable = {
|
|
12095
12111
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -12197,7 +12213,7 @@ function it_default() {
|
|
|
12197
12213
|
localeError: error23()
|
|
12198
12214
|
};
|
|
12199
12215
|
}
|
|
12200
|
-
// ../../node_modules
|
|
12216
|
+
// ../../node_modules/zod/v4/locales/ja.js
|
|
12201
12217
|
var error24 = () => {
|
|
12202
12218
|
const Sizable = {
|
|
12203
12219
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -12304,7 +12320,7 @@ function ja_default() {
|
|
|
12304
12320
|
localeError: error24()
|
|
12305
12321
|
};
|
|
12306
12322
|
}
|
|
12307
|
-
// ../../node_modules
|
|
12323
|
+
// ../../node_modules/zod/v4/locales/ka.js
|
|
12308
12324
|
var error25 = () => {
|
|
12309
12325
|
const Sizable = {
|
|
12310
12326
|
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 +12432,7 @@ function ka_default() {
|
|
|
12416
12432
|
localeError: error25()
|
|
12417
12433
|
};
|
|
12418
12434
|
}
|
|
12419
|
-
// ../../node_modules
|
|
12435
|
+
// ../../node_modules/zod/v4/locales/km.js
|
|
12420
12436
|
var error26 = () => {
|
|
12421
12437
|
const Sizable = {
|
|
12422
12438
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -12527,11 +12543,11 @@ function km_default() {
|
|
|
12527
12543
|
};
|
|
12528
12544
|
}
|
|
12529
12545
|
|
|
12530
|
-
// ../../node_modules
|
|
12546
|
+
// ../../node_modules/zod/v4/locales/kh.js
|
|
12531
12547
|
function kh_default() {
|
|
12532
12548
|
return km_default();
|
|
12533
12549
|
}
|
|
12534
|
-
// ../../node_modules
|
|
12550
|
+
// ../../node_modules/zod/v4/locales/ko.js
|
|
12535
12551
|
var error27 = () => {
|
|
12536
12552
|
const Sizable = {
|
|
12537
12553
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -12642,7 +12658,7 @@ function ko_default() {
|
|
|
12642
12658
|
localeError: error27()
|
|
12643
12659
|
};
|
|
12644
12660
|
}
|
|
12645
|
-
// ../../node_modules
|
|
12661
|
+
// ../../node_modules/zod/v4/locales/lt.js
|
|
12646
12662
|
var capitalizeFirstCharacter = (text2) => {
|
|
12647
12663
|
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
12648
12664
|
};
|
|
@@ -12845,7 +12861,7 @@ function lt_default() {
|
|
|
12845
12861
|
localeError: error28()
|
|
12846
12862
|
};
|
|
12847
12863
|
}
|
|
12848
|
-
// ../../node_modules
|
|
12864
|
+
// ../../node_modules/zod/v4/locales/mk.js
|
|
12849
12865
|
var error29 = () => {
|
|
12850
12866
|
const Sizable = {
|
|
12851
12867
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -12954,7 +12970,7 @@ function mk_default() {
|
|
|
12954
12970
|
localeError: error29()
|
|
12955
12971
|
};
|
|
12956
12972
|
}
|
|
12957
|
-
// ../../node_modules
|
|
12973
|
+
// ../../node_modules/zod/v4/locales/ms.js
|
|
12958
12974
|
var error30 = () => {
|
|
12959
12975
|
const Sizable = {
|
|
12960
12976
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -13061,7 +13077,7 @@ function ms_default() {
|
|
|
13061
13077
|
localeError: error30()
|
|
13062
13078
|
};
|
|
13063
13079
|
}
|
|
13064
|
-
// ../../node_modules
|
|
13080
|
+
// ../../node_modules/zod/v4/locales/nl.js
|
|
13065
13081
|
var error31 = () => {
|
|
13066
13082
|
const Sizable = {
|
|
13067
13083
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -13171,7 +13187,7 @@ function nl_default() {
|
|
|
13171
13187
|
localeError: error31()
|
|
13172
13188
|
};
|
|
13173
13189
|
}
|
|
13174
|
-
// ../../node_modules
|
|
13190
|
+
// ../../node_modules/zod/v4/locales/no.js
|
|
13175
13191
|
var error32 = () => {
|
|
13176
13192
|
const Sizable = {
|
|
13177
13193
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -13279,7 +13295,7 @@ function no_default() {
|
|
|
13279
13295
|
localeError: error32()
|
|
13280
13296
|
};
|
|
13281
13297
|
}
|
|
13282
|
-
// ../../node_modules
|
|
13298
|
+
// ../../node_modules/zod/v4/locales/ota.js
|
|
13283
13299
|
var error33 = () => {
|
|
13284
13300
|
const Sizable = {
|
|
13285
13301
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -13388,7 +13404,7 @@ function ota_default() {
|
|
|
13388
13404
|
localeError: error33()
|
|
13389
13405
|
};
|
|
13390
13406
|
}
|
|
13391
|
-
// ../../node_modules
|
|
13407
|
+
// ../../node_modules/zod/v4/locales/ps.js
|
|
13392
13408
|
var error34 = () => {
|
|
13393
13409
|
const Sizable = {
|
|
13394
13410
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -13502,7 +13518,7 @@ function ps_default() {
|
|
|
13502
13518
|
localeError: error34()
|
|
13503
13519
|
};
|
|
13504
13520
|
}
|
|
13505
|
-
// ../../node_modules
|
|
13521
|
+
// ../../node_modules/zod/v4/locales/pl.js
|
|
13506
13522
|
var error35 = () => {
|
|
13507
13523
|
const Sizable = {
|
|
13508
13524
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -13611,7 +13627,7 @@ function pl_default() {
|
|
|
13611
13627
|
localeError: error35()
|
|
13612
13628
|
};
|
|
13613
13629
|
}
|
|
13614
|
-
// ../../node_modules
|
|
13630
|
+
// ../../node_modules/zod/v4/locales/pt.js
|
|
13615
13631
|
var error36 = () => {
|
|
13616
13632
|
const Sizable = {
|
|
13617
13633
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -13719,7 +13735,7 @@ function pt_default() {
|
|
|
13719
13735
|
localeError: error36()
|
|
13720
13736
|
};
|
|
13721
13737
|
}
|
|
13722
|
-
// ../../node_modules
|
|
13738
|
+
// ../../node_modules/zod/v4/locales/ro.js
|
|
13723
13739
|
var error37 = () => {
|
|
13724
13740
|
const Sizable = {
|
|
13725
13741
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -13838,7 +13854,7 @@ function ro_default() {
|
|
|
13838
13854
|
localeError: error37()
|
|
13839
13855
|
};
|
|
13840
13856
|
}
|
|
13841
|
-
// ../../node_modules
|
|
13857
|
+
// ../../node_modules/zod/v4/locales/ru.js
|
|
13842
13858
|
function getRussianPlural(count, one, few, many) {
|
|
13843
13859
|
const absCount = Math.abs(count);
|
|
13844
13860
|
const lastDigit = absCount % 10;
|
|
@@ -13994,7 +14010,7 @@ function ru_default() {
|
|
|
13994
14010
|
localeError: error38()
|
|
13995
14011
|
};
|
|
13996
14012
|
}
|
|
13997
|
-
// ../../node_modules
|
|
14013
|
+
// ../../node_modules/zod/v4/locales/sl.js
|
|
13998
14014
|
var error39 = () => {
|
|
13999
14015
|
const Sizable = {
|
|
14000
14016
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -14103,7 +14119,7 @@ function sl_default() {
|
|
|
14103
14119
|
localeError: error39()
|
|
14104
14120
|
};
|
|
14105
14121
|
}
|
|
14106
|
-
// ../../node_modules
|
|
14122
|
+
// ../../node_modules/zod/v4/locales/sv.js
|
|
14107
14123
|
var error40 = () => {
|
|
14108
14124
|
const Sizable = {
|
|
14109
14125
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -14213,7 +14229,7 @@ function sv_default() {
|
|
|
14213
14229
|
localeError: error40()
|
|
14214
14230
|
};
|
|
14215
14231
|
}
|
|
14216
|
-
// ../../node_modules
|
|
14232
|
+
// ../../node_modules/zod/v4/locales/ta.js
|
|
14217
14233
|
var error41 = () => {
|
|
14218
14234
|
const Sizable = {
|
|
14219
14235
|
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 +14339,7 @@ function ta_default() {
|
|
|
14323
14339
|
localeError: error41()
|
|
14324
14340
|
};
|
|
14325
14341
|
}
|
|
14326
|
-
// ../../node_modules
|
|
14342
|
+
// ../../node_modules/zod/v4/locales/th.js
|
|
14327
14343
|
var error42 = () => {
|
|
14328
14344
|
const Sizable = {
|
|
14329
14345
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -14433,7 +14449,7 @@ function th_default() {
|
|
|
14433
14449
|
localeError: error42()
|
|
14434
14450
|
};
|
|
14435
14451
|
}
|
|
14436
|
-
// ../../node_modules
|
|
14452
|
+
// ../../node_modules/zod/v4/locales/tr.js
|
|
14437
14453
|
var error43 = () => {
|
|
14438
14454
|
const Sizable = {
|
|
14439
14455
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -14538,7 +14554,7 @@ function tr_default() {
|
|
|
14538
14554
|
localeError: error43()
|
|
14539
14555
|
};
|
|
14540
14556
|
}
|
|
14541
|
-
// ../../node_modules
|
|
14557
|
+
// ../../node_modules/zod/v4/locales/uk.js
|
|
14542
14558
|
var error44 = () => {
|
|
14543
14559
|
const Sizable = {
|
|
14544
14560
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -14647,11 +14663,11 @@ function uk_default() {
|
|
|
14647
14663
|
};
|
|
14648
14664
|
}
|
|
14649
14665
|
|
|
14650
|
-
// ../../node_modules
|
|
14666
|
+
// ../../node_modules/zod/v4/locales/ua.js
|
|
14651
14667
|
function ua_default() {
|
|
14652
14668
|
return uk_default();
|
|
14653
14669
|
}
|
|
14654
|
-
// ../../node_modules
|
|
14670
|
+
// ../../node_modules/zod/v4/locales/ur.js
|
|
14655
14671
|
var error45 = () => {
|
|
14656
14672
|
const Sizable = {
|
|
14657
14673
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -14761,7 +14777,7 @@ function ur_default() {
|
|
|
14761
14777
|
localeError: error45()
|
|
14762
14778
|
};
|
|
14763
14779
|
}
|
|
14764
|
-
// ../../node_modules
|
|
14780
|
+
// ../../node_modules/zod/v4/locales/uz.js
|
|
14765
14781
|
var error46 = () => {
|
|
14766
14782
|
const Sizable = {
|
|
14767
14783
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -14871,7 +14887,7 @@ function uz_default() {
|
|
|
14871
14887
|
localeError: error46()
|
|
14872
14888
|
};
|
|
14873
14889
|
}
|
|
14874
|
-
// ../../node_modules
|
|
14890
|
+
// ../../node_modules/zod/v4/locales/vi.js
|
|
14875
14891
|
var error47 = () => {
|
|
14876
14892
|
const Sizable = {
|
|
14877
14893
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -14979,7 +14995,7 @@ function vi_default() {
|
|
|
14979
14995
|
localeError: error47()
|
|
14980
14996
|
};
|
|
14981
14997
|
}
|
|
14982
|
-
// ../../node_modules
|
|
14998
|
+
// ../../node_modules/zod/v4/locales/zh-CN.js
|
|
14983
14999
|
var error48 = () => {
|
|
14984
15000
|
const Sizable = {
|
|
14985
15001
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -15088,7 +15104,7 @@ function zh_CN_default() {
|
|
|
15088
15104
|
localeError: error48()
|
|
15089
15105
|
};
|
|
15090
15106
|
}
|
|
15091
|
-
// ../../node_modules
|
|
15107
|
+
// ../../node_modules/zod/v4/locales/zh-TW.js
|
|
15092
15108
|
var error49 = () => {
|
|
15093
15109
|
const Sizable = {
|
|
15094
15110
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -15195,7 +15211,7 @@ function zh_TW_default() {
|
|
|
15195
15211
|
localeError: error49()
|
|
15196
15212
|
};
|
|
15197
15213
|
}
|
|
15198
|
-
// ../../node_modules
|
|
15214
|
+
// ../../node_modules/zod/v4/locales/yo.js
|
|
15199
15215
|
var error50 = () => {
|
|
15200
15216
|
const Sizable = {
|
|
15201
15217
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -15302,7 +15318,7 @@ function yo_default() {
|
|
|
15302
15318
|
localeError: error50()
|
|
15303
15319
|
};
|
|
15304
15320
|
}
|
|
15305
|
-
// ../../node_modules
|
|
15321
|
+
// ../../node_modules/zod/v4/core/registries.js
|
|
15306
15322
|
var _a2;
|
|
15307
15323
|
var $output = Symbol("ZodOutput");
|
|
15308
15324
|
var $input = Symbol("ZodInput");
|
|
@@ -15352,7 +15368,7 @@ function registry() {
|
|
|
15352
15368
|
}
|
|
15353
15369
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
15354
15370
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
15355
|
-
// ../../node_modules
|
|
15371
|
+
// ../../node_modules/zod/v4/core/api.js
|
|
15356
15372
|
function _string(Class2, params) {
|
|
15357
15373
|
return new Class2({
|
|
15358
15374
|
type: "string",
|
|
@@ -16272,7 +16288,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
16272
16288
|
const inst = new Class2(def);
|
|
16273
16289
|
return inst;
|
|
16274
16290
|
}
|
|
16275
|
-
// ../../node_modules
|
|
16291
|
+
// ../../node_modules/zod/v4/core/to-json-schema.js
|
|
16276
16292
|
function initializeContext(params) {
|
|
16277
16293
|
let target = params?.target ?? "draft-2020-12";
|
|
16278
16294
|
if (target === "draft-4")
|
|
@@ -16624,7 +16640,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
16624
16640
|
extractDefs(ctx, schema);
|
|
16625
16641
|
return finalize(ctx, schema);
|
|
16626
16642
|
};
|
|
16627
|
-
// ../../node_modules
|
|
16643
|
+
// ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
16628
16644
|
var formatMap = {
|
|
16629
16645
|
guid: "uuid",
|
|
16630
16646
|
url: "uri",
|
|
@@ -17162,7 +17178,7 @@ function toJSONSchema(input, params) {
|
|
|
17162
17178
|
extractDefs(ctx, input);
|
|
17163
17179
|
return finalize(ctx, input);
|
|
17164
17180
|
}
|
|
17165
|
-
// ../../node_modules
|
|
17181
|
+
// ../../node_modules/zod/v4/core/json-schema-generator.js
|
|
17166
17182
|
class JSONSchemaGenerator {
|
|
17167
17183
|
get metadataRegistry() {
|
|
17168
17184
|
return this.ctx.metadataRegistry;
|
|
@@ -17221,9 +17237,9 @@ class JSONSchemaGenerator {
|
|
|
17221
17237
|
return plainResult;
|
|
17222
17238
|
}
|
|
17223
17239
|
}
|
|
17224
|
-
// ../../node_modules
|
|
17240
|
+
// ../../node_modules/zod/v4/core/json-schema.js
|
|
17225
17241
|
var exports_json_schema = {};
|
|
17226
|
-
// ../../node_modules
|
|
17242
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17227
17243
|
var exports_schemas2 = {};
|
|
17228
17244
|
__export(exports_schemas2, {
|
|
17229
17245
|
xor: () => xor,
|
|
@@ -17394,7 +17410,7 @@ __export(exports_schemas2, {
|
|
|
17394
17410
|
ZodAny: () => ZodAny
|
|
17395
17411
|
});
|
|
17396
17412
|
|
|
17397
|
-
// ../../node_modules
|
|
17413
|
+
// ../../node_modules/zod/v4/classic/checks.js
|
|
17398
17414
|
var exports_checks2 = {};
|
|
17399
17415
|
__export(exports_checks2, {
|
|
17400
17416
|
uppercase: () => _uppercase,
|
|
@@ -17428,7 +17444,7 @@ __export(exports_checks2, {
|
|
|
17428
17444
|
endsWith: () => _endsWith
|
|
17429
17445
|
});
|
|
17430
17446
|
|
|
17431
|
-
// ../../node_modules
|
|
17447
|
+
// ../../node_modules/zod/v4/classic/iso.js
|
|
17432
17448
|
var exports_iso = {};
|
|
17433
17449
|
__export(exports_iso, {
|
|
17434
17450
|
time: () => time3,
|
|
@@ -17469,7 +17485,7 @@ function duration2(params) {
|
|
|
17469
17485
|
return _isoDuration(ZodISODuration, params);
|
|
17470
17486
|
}
|
|
17471
17487
|
|
|
17472
|
-
// ../../node_modules
|
|
17488
|
+
// ../../node_modules/zod/v4/classic/errors.js
|
|
17473
17489
|
var initializer2 = (inst, issues) => {
|
|
17474
17490
|
$ZodError.init(inst, issues);
|
|
17475
17491
|
inst.name = "ZodError";
|
|
@@ -17504,7 +17520,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
17504
17520
|
Parent: Error
|
|
17505
17521
|
});
|
|
17506
17522
|
|
|
17507
|
-
// ../../node_modules
|
|
17523
|
+
// ../../node_modules/zod/v4/classic/parse.js
|
|
17508
17524
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17509
17525
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17510
17526
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17518,7 +17534,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17518
17534
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17519
17535
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17520
17536
|
|
|
17521
|
-
// ../../node_modules
|
|
17537
|
+
// ../../node_modules/zod/v4/classic/schemas.js
|
|
17522
17538
|
var _installedGroups = /* @__PURE__ */ new WeakMap;
|
|
17523
17539
|
function _installLazyMethods(inst, group, methods) {
|
|
17524
17540
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -18805,7 +18821,7 @@ function preprocess(fn, schema) {
|
|
|
18805
18821
|
out: schema
|
|
18806
18822
|
});
|
|
18807
18823
|
}
|
|
18808
|
-
// ../../node_modules
|
|
18824
|
+
// ../../node_modules/zod/v4/classic/compat.js
|
|
18809
18825
|
var ZodIssueCode = {
|
|
18810
18826
|
invalid_type: "invalid_type",
|
|
18811
18827
|
too_big: "too_big",
|
|
@@ -18829,7 +18845,7 @@ function getErrorMap() {
|
|
|
18829
18845
|
}
|
|
18830
18846
|
var ZodFirstPartyTypeKind;
|
|
18831
18847
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18832
|
-
// ../../node_modules
|
|
18848
|
+
// ../../node_modules/zod/v4/classic/from-json-schema.js
|
|
18833
18849
|
var z = {
|
|
18834
18850
|
...exports_schemas2,
|
|
18835
18851
|
...exports_checks2,
|
|
@@ -19296,7 +19312,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19296
19312
|
};
|
|
19297
19313
|
return convertSchema(normalized, ctx);
|
|
19298
19314
|
}
|
|
19299
|
-
// ../../node_modules
|
|
19315
|
+
// ../../node_modules/zod/v4/classic/coerce.js
|
|
19300
19316
|
var exports_coerce = {};
|
|
19301
19317
|
__export(exports_coerce, {
|
|
19302
19318
|
string: () => string3,
|
|
@@ -19321,9 +19337,9 @@ function date5(params) {
|
|
|
19321
19337
|
return _coercedDate(ZodDate, params);
|
|
19322
19338
|
}
|
|
19323
19339
|
|
|
19324
|
-
// ../../node_modules
|
|
19340
|
+
// ../../node_modules/zod/v4/classic/external.js
|
|
19325
19341
|
config(en_default());
|
|
19326
|
-
// ../../node_modules
|
|
19342
|
+
// ../../node_modules/drizzle-zod/index.mjs
|
|
19327
19343
|
var CONSTANTS = {
|
|
19328
19344
|
INT8_MIN: -128,
|
|
19329
19345
|
INT8_MAX: 127,
|
|
@@ -19591,6 +19607,8 @@ var createNodeInputSchema = exports_external.object({
|
|
|
19591
19607
|
parentId: ulidSchema.nullish(),
|
|
19592
19608
|
displayKind: exports_external.string().min(1).default("default")
|
|
19593
19609
|
});
|
|
19610
|
+
var TRASH_RETENTION_DAYS = 30;
|
|
19611
|
+
var TRASH_RETENTION_MS = TRASH_RETENTION_DAYS * 24 * 60 * 60 * 1000;
|
|
19594
19612
|
var loginInputSchema = exports_external.object({
|
|
19595
19613
|
email: exports_external.string().email(),
|
|
19596
19614
|
password: exports_external.string().min(1)
|
|
@@ -20974,6 +20992,7 @@ var apiKeyScopeSchema = exports_external.enum([
|
|
|
20974
20992
|
"collections:write",
|
|
20975
20993
|
"presets:read",
|
|
20976
20994
|
"presets:install",
|
|
20995
|
+
"export:read",
|
|
20977
20996
|
"*"
|
|
20978
20997
|
]);
|
|
20979
20998
|
var apiKeySchema = createSelectSchema(apiKeys, {
|
|
@@ -20995,7 +21014,172 @@ var apiKeyContextSchema = exports_external.object({
|
|
|
20995
21014
|
userId: exports_external.string().nullable(),
|
|
20996
21015
|
scopes: exports_external.array(apiKeyScopeSchema)
|
|
20997
21016
|
});
|
|
21017
|
+
// ../../packages/schema/src/net/ssrf.ts
|
|
21018
|
+
var BLOCKED_HOST_SUFFIXES = [".internal", ".local", ".localhost"];
|
|
21019
|
+
var BLOCKED_HOSTNAMES = new Set(["localhost"]);
|
|
21020
|
+
function parseIpv4(host) {
|
|
21021
|
+
const parts = host.split(".");
|
|
21022
|
+
if (parts.length !== 4)
|
|
21023
|
+
return null;
|
|
21024
|
+
let value = 0;
|
|
21025
|
+
for (const part of parts) {
|
|
21026
|
+
if (!/^\d{1,3}$/.test(part))
|
|
21027
|
+
return null;
|
|
21028
|
+
const octet = Number(part);
|
|
21029
|
+
if (octet > 255)
|
|
21030
|
+
return null;
|
|
21031
|
+
value = value * 256 + octet;
|
|
21032
|
+
}
|
|
21033
|
+
return value >>> 0;
|
|
21034
|
+
}
|
|
21035
|
+
function isBlockedIpv4(ip) {
|
|
21036
|
+
const inRange = (base, bits) => {
|
|
21037
|
+
const baseIp = parseIpv4(base);
|
|
21038
|
+
if (baseIp === null)
|
|
21039
|
+
return false;
|
|
21040
|
+
const mask = bits === 0 ? 0 : 4294967295 << 32 - bits >>> 0;
|
|
21041
|
+
return (ip & mask) === (baseIp & mask);
|
|
21042
|
+
};
|
|
21043
|
+
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);
|
|
21044
|
+
}
|
|
21045
|
+
function parseIpv6(host) {
|
|
21046
|
+
let text2 = host;
|
|
21047
|
+
const zone = text2.indexOf("%");
|
|
21048
|
+
if (zone !== -1)
|
|
21049
|
+
text2 = text2.slice(0, zone);
|
|
21050
|
+
if (!text2.includes(":"))
|
|
21051
|
+
return null;
|
|
21052
|
+
const lastColon = text2.lastIndexOf(":");
|
|
21053
|
+
const tail = text2.slice(lastColon + 1);
|
|
21054
|
+
if (tail.includes(".")) {
|
|
21055
|
+
const v4 = parseIpv4(tail);
|
|
21056
|
+
if (v4 === null)
|
|
21057
|
+
return null;
|
|
21058
|
+
const hex3 = `${(v4 >>> 16 & 65535).toString(16)}:${(v4 & 65535).toString(16)}`;
|
|
21059
|
+
text2 = text2.slice(0, lastColon + 1) + hex3;
|
|
21060
|
+
}
|
|
21061
|
+
const halves = text2.split("::");
|
|
21062
|
+
if (halves.length > 2)
|
|
21063
|
+
return null;
|
|
21064
|
+
const toGroups = (segment) => {
|
|
21065
|
+
if (segment === "")
|
|
21066
|
+
return [];
|
|
21067
|
+
const out = [];
|
|
21068
|
+
for (const g of segment.split(":")) {
|
|
21069
|
+
if (!/^[0-9a-fA-F]{1,4}$/.test(g))
|
|
21070
|
+
return null;
|
|
21071
|
+
out.push(Number.parseInt(g, 16));
|
|
21072
|
+
}
|
|
21073
|
+
return out;
|
|
21074
|
+
};
|
|
21075
|
+
const head = toGroups(halves[0] ?? "");
|
|
21076
|
+
if (head === null)
|
|
21077
|
+
return null;
|
|
21078
|
+
let groups;
|
|
21079
|
+
if (halves.length === 2) {
|
|
21080
|
+
const back = toGroups(halves[1] ?? "");
|
|
21081
|
+
if (back === null)
|
|
21082
|
+
return null;
|
|
21083
|
+
const fill = 8 - head.length - back.length;
|
|
21084
|
+
if (fill < 0)
|
|
21085
|
+
return null;
|
|
21086
|
+
groups = [...head, ...Array(fill).fill(0), ...back];
|
|
21087
|
+
} else {
|
|
21088
|
+
groups = head;
|
|
21089
|
+
}
|
|
21090
|
+
return groups.length === 8 ? groups : null;
|
|
21091
|
+
}
|
|
21092
|
+
function isBlockedIpv6(groups) {
|
|
21093
|
+
const isZero = groups.every((g) => g === 0);
|
|
21094
|
+
if (isZero)
|
|
21095
|
+
return true;
|
|
21096
|
+
if (groups.slice(0, 7).every((g) => g === 0) && groups[7] === 1)
|
|
21097
|
+
return true;
|
|
21098
|
+
const isV4Mapped = groups.slice(0, 5).every((g) => g === 0) && groups[5] === 65535;
|
|
21099
|
+
const isV4Compat = groups.slice(0, 6).every((g) => g === 0);
|
|
21100
|
+
if (isV4Mapped || isV4Compat) {
|
|
21101
|
+
const v4 = ((groups[6] ?? 0) << 16 | (groups[7] ?? 0)) >>> 0;
|
|
21102
|
+
return isBlockedIpv4(v4);
|
|
21103
|
+
}
|
|
21104
|
+
const first = groups[0] ?? 0;
|
|
21105
|
+
if ((first & 65024) === 64512)
|
|
21106
|
+
return true;
|
|
21107
|
+
if ((first & 65472) === 65152)
|
|
21108
|
+
return true;
|
|
21109
|
+
if ((first & 65280) === 65280)
|
|
21110
|
+
return true;
|
|
21111
|
+
return false;
|
|
21112
|
+
}
|
|
21113
|
+
function isBlockedIp(host) {
|
|
21114
|
+
const bare = host.startsWith("[") && host.endsWith("]") ? host.slice(1, -1) : host;
|
|
21115
|
+
const v4 = parseIpv4(bare);
|
|
21116
|
+
if (v4 !== null)
|
|
21117
|
+
return isBlockedIpv4(v4);
|
|
21118
|
+
const v6 = parseIpv6(bare);
|
|
21119
|
+
if (v6 !== null)
|
|
21120
|
+
return isBlockedIpv6(v6);
|
|
21121
|
+
return false;
|
|
21122
|
+
}
|
|
21123
|
+
|
|
21124
|
+
class BlockedWebhookUrlError extends Error {
|
|
21125
|
+
constructor(reason) {
|
|
21126
|
+
super(`webhook url rejected: ${reason}`);
|
|
21127
|
+
this.name = "BlockedWebhookUrlError";
|
|
21128
|
+
}
|
|
21129
|
+
}
|
|
21130
|
+
function bareHostname(hostname3) {
|
|
21131
|
+
return hostname3.startsWith("[") && hostname3.endsWith("]") ? hostname3.slice(1, -1) : hostname3;
|
|
21132
|
+
}
|
|
21133
|
+
function webhookUrlAllowlistFromEnv() {
|
|
21134
|
+
const env = globalThis.process?.env;
|
|
21135
|
+
const raw = env?.WEBHOOK_URL_ALLOWLIST;
|
|
21136
|
+
if (!raw)
|
|
21137
|
+
return [];
|
|
21138
|
+
return raw.split(",").map((h) => h.trim().toLowerCase()).filter(Boolean);
|
|
21139
|
+
}
|
|
21140
|
+
function isAllowlistedHost(hostname3, allowedHosts) {
|
|
21141
|
+
const host = hostname3.toLowerCase();
|
|
21142
|
+
const bare = bareHostname(host);
|
|
21143
|
+
return allowedHosts.some((h) => h === host || h === bare);
|
|
21144
|
+
}
|
|
21145
|
+
function assertSafeWebhookUrl(rawUrl, opts = {}) {
|
|
21146
|
+
let url2;
|
|
21147
|
+
try {
|
|
21148
|
+
url2 = new URL(rawUrl);
|
|
21149
|
+
} catch {
|
|
21150
|
+
throw new BlockedWebhookUrlError("not a valid URL");
|
|
21151
|
+
}
|
|
21152
|
+
const allowedHosts = opts.allowedHosts ?? webhookUrlAllowlistFromEnv();
|
|
21153
|
+
if (isAllowlistedHost(url2.hostname, allowedHosts)) {
|
|
21154
|
+
return url2;
|
|
21155
|
+
}
|
|
21156
|
+
if (url2.protocol !== "https:") {
|
|
21157
|
+
throw new BlockedWebhookUrlError("only https URLs are allowed");
|
|
21158
|
+
}
|
|
21159
|
+
if (url2.username || url2.password) {
|
|
21160
|
+
throw new BlockedWebhookUrlError("credentials in the URL are not allowed");
|
|
21161
|
+
}
|
|
21162
|
+
const host = url2.hostname.toLowerCase();
|
|
21163
|
+
if (BLOCKED_HOSTNAMES.has(host) || BLOCKED_HOST_SUFFIXES.some((s) => host.endsWith(s))) {
|
|
21164
|
+
throw new BlockedWebhookUrlError(`host '${url2.hostname}' is internal`);
|
|
21165
|
+
}
|
|
21166
|
+
if (isBlockedIp(host)) {
|
|
21167
|
+
throw new BlockedWebhookUrlError(`host '${url2.hostname}' is a private or reserved address`);
|
|
21168
|
+
}
|
|
21169
|
+
return url2;
|
|
21170
|
+
}
|
|
21171
|
+
|
|
20998
21172
|
// ../../packages/schema/src/contracts/webhooks.ts
|
|
21173
|
+
var webhookUrlSchema = exports_external.string().superRefine((value, ctx) => {
|
|
21174
|
+
try {
|
|
21175
|
+
assertSafeWebhookUrl(value);
|
|
21176
|
+
} catch (err) {
|
|
21177
|
+
ctx.addIssue({
|
|
21178
|
+
code: exports_external.ZodIssueCode.custom,
|
|
21179
|
+
message: err instanceof BlockedWebhookUrlError ? err.message : "invalid webhook url"
|
|
21180
|
+
});
|
|
21181
|
+
}
|
|
21182
|
+
});
|
|
20999
21183
|
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
21184
|
var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
21001
21185
|
events: exports_external.array(webhookEventSchema),
|
|
@@ -21004,7 +21188,7 @@ var webhookSubscriptionSchema = createSelectSchema(webhookSubscriptions, {
|
|
|
21004
21188
|
});
|
|
21005
21189
|
var webhookSubscriptionPublicSchema = webhookSubscriptionSchema.omit({ secret: true });
|
|
21006
21190
|
var createWebhookSubscriptionInputSchema = exports_external.object({
|
|
21007
|
-
url:
|
|
21191
|
+
url: webhookUrlSchema,
|
|
21008
21192
|
events: exports_external.array(webhookEventSchema).min(1),
|
|
21009
21193
|
secret: exports_external.string().min(16).max(200).optional()
|
|
21010
21194
|
}).strict();
|
|
@@ -21012,7 +21196,7 @@ var createWebhookSubscriptionResultSchema = webhookSubscriptionPublicSchema.exte
|
|
|
21012
21196
|
secret: exports_external.string()
|
|
21013
21197
|
});
|
|
21014
21198
|
var updateWebhookSubscriptionInputSchema = exports_external.object({
|
|
21015
|
-
url:
|
|
21199
|
+
url: webhookUrlSchema.optional(),
|
|
21016
21200
|
events: exports_external.array(webhookEventSchema).min(1).optional(),
|
|
21017
21201
|
active: exports_external.boolean().optional()
|
|
21018
21202
|
}).strict();
|
|
@@ -21605,6 +21789,16 @@ function parseCapture(input) {
|
|
|
21605
21789
|
const title = input.replace(TAG_RE, " ").replace(PRIORITY_RE, " ").replace(AREA_RE, " ").replace(/\s+/g, " ").trim();
|
|
21606
21790
|
return { title, tags, ...priority ? { priority } : {}, ...area ? { area } : {} };
|
|
21607
21791
|
}
|
|
21792
|
+
// ../../packages/schema/src/export.ts
|
|
21793
|
+
var EXPORT_FORMAT = "do.export";
|
|
21794
|
+
var EXPORT_VERSION = 1;
|
|
21795
|
+
var spaceExportSchema = exports_external.object({
|
|
21796
|
+
format: exports_external.literal(EXPORT_FORMAT),
|
|
21797
|
+
version: exports_external.literal(EXPORT_VERSION),
|
|
21798
|
+
exportedAt: exports_external.string(),
|
|
21799
|
+
tenantId: exports_external.string(),
|
|
21800
|
+
tables: exports_external.record(exports_external.string(), exports_external.array(exports_external.record(exports_external.string(), exports_external.unknown())))
|
|
21801
|
+
});
|
|
21608
21802
|
// ../../packages/schema/src/presets/collection-types.ts
|
|
21609
21803
|
var coverUrl = exports_external.string().url().max(2048).nullish();
|
|
21610
21804
|
var bookFacetSchema = exports_external.object({
|
|
@@ -23504,10 +23698,10 @@ var featurePresets = [
|
|
|
23504
23698
|
// ../../packages/schema/src/presets/catalog.ts
|
|
23505
23699
|
var presetCatalog = featurePresets;
|
|
23506
23700
|
var presetsByKey = new Map(presetCatalog.map((preset) => [preset.key, preset]));
|
|
23507
|
-
// ../../node_modules
|
|
23701
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23508
23702
|
import crypto from "crypto";
|
|
23509
23703
|
|
|
23510
|
-
// ../../node_modules
|
|
23704
|
+
// ../../node_modules/layerr/dist/error.js
|
|
23511
23705
|
function assertError(err) {
|
|
23512
23706
|
if (!isError(err)) {
|
|
23513
23707
|
throw new Error("Parameter was not an error");
|
|
@@ -23520,14 +23714,14 @@ function objectToString(obj) {
|
|
|
23520
23714
|
return Object.prototype.toString.call(obj);
|
|
23521
23715
|
}
|
|
23522
23716
|
|
|
23523
|
-
// ../../node_modules
|
|
23717
|
+
// ../../node_modules/layerr/dist/global.js
|
|
23524
23718
|
var NAME = "Layerr";
|
|
23525
23719
|
var __name = NAME;
|
|
23526
23720
|
function getGlobalName() {
|
|
23527
23721
|
return __name;
|
|
23528
23722
|
}
|
|
23529
23723
|
|
|
23530
|
-
// ../../node_modules
|
|
23724
|
+
// ../../node_modules/layerr/dist/tools.js
|
|
23531
23725
|
function parseArguments(args) {
|
|
23532
23726
|
let options, shortMessage = "";
|
|
23533
23727
|
if (args.length === 0) {
|
|
@@ -23552,7 +23746,7 @@ function parseArguments(args) {
|
|
|
23552
23746
|
};
|
|
23553
23747
|
}
|
|
23554
23748
|
|
|
23555
|
-
// ../../node_modules
|
|
23749
|
+
// ../../node_modules/layerr/dist/layerr.js
|
|
23556
23750
|
class Layerr extends Error {
|
|
23557
23751
|
constructor(errorOptionsOrMessage, messageText) {
|
|
23558
23752
|
const args = [...arguments];
|
|
@@ -23615,7 +23809,7 @@ caused by: ${Layerr.fullStack(cause)}`;
|
|
|
23615
23809
|
return output;
|
|
23616
23810
|
}
|
|
23617
23811
|
}
|
|
23618
|
-
// ../../node_modules
|
|
23812
|
+
// ../../node_modules/ulidx/dist/node/index.js
|
|
23619
23813
|
var ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
23620
23814
|
var ENCODING_LEN = 32;
|
|
23621
23815
|
var TIME_MAX = 281474976710655;
|
|
@@ -23756,7 +23950,7 @@ function parseCapture2(input) {
|
|
|
23756
23950
|
|
|
23757
23951
|
// src/meta.ts
|
|
23758
23952
|
var CLI_NAME = "do";
|
|
23759
|
-
var VERSION = "1.
|
|
23953
|
+
var VERSION = "1.59.0";
|
|
23760
23954
|
var API_PREFIX = "/api/v1";
|
|
23761
23955
|
var DEFAULT_API_URL = "http://localhost:3001";
|
|
23762
23956
|
|
|
@@ -23769,6 +23963,15 @@ class DoClient {
|
|
|
23769
23963
|
get(path, opts = {}) {
|
|
23770
23964
|
return this.request("GET", path, opts);
|
|
23771
23965
|
}
|
|
23966
|
+
async getText(path, opts = {}) {
|
|
23967
|
+
const res = await this.send("GET", path, opts);
|
|
23968
|
+
if (res.status === 204)
|
|
23969
|
+
return "";
|
|
23970
|
+
const text2 = await res.text();
|
|
23971
|
+
if (!res.ok)
|
|
23972
|
+
throw httpError(res.status, text2.length > 0 ? safeJson(text2) : undefined);
|
|
23973
|
+
return text2;
|
|
23974
|
+
}
|
|
23772
23975
|
post(path, body) {
|
|
23773
23976
|
return this.request("POST", path, { body });
|
|
23774
23977
|
}
|
|
@@ -23790,7 +23993,7 @@ class DoClient {
|
|
|
23790
23993
|
}
|
|
23791
23994
|
return url2.toString();
|
|
23792
23995
|
}
|
|
23793
|
-
async
|
|
23996
|
+
async send(method, path, opts) {
|
|
23794
23997
|
const headers = {
|
|
23795
23998
|
authorization: `Bearer ${this.opts.apiKey}`,
|
|
23796
23999
|
accept: "application/json"
|
|
@@ -23798,9 +24001,8 @@ class DoClient {
|
|
|
23798
24001
|
const hasBody = opts.body !== undefined;
|
|
23799
24002
|
if (hasBody)
|
|
23800
24003
|
headers["content-type"] = "application/json";
|
|
23801
|
-
let res;
|
|
23802
24004
|
try {
|
|
23803
|
-
|
|
24005
|
+
return await this.opts.fetchImpl(this.url(path, opts.query), {
|
|
23804
24006
|
method,
|
|
23805
24007
|
headers,
|
|
23806
24008
|
body: hasBody ? JSON.stringify(opts.body) : undefined
|
|
@@ -23809,6 +24011,9 @@ class DoClient {
|
|
|
23809
24011
|
const message = cause instanceof Error ? cause.message : String(cause);
|
|
23810
24012
|
throw new CliError("network_error", `could not reach the API at ${this.opts.apiUrl}: ${message}`, EXIT.RUNTIME);
|
|
23811
24013
|
}
|
|
24014
|
+
}
|
|
24015
|
+
async request(method, path, opts) {
|
|
24016
|
+
const res = await this.send(method, path, opts);
|
|
23812
24017
|
if (res.status === 204)
|
|
23813
24018
|
return;
|
|
23814
24019
|
const text2 = await res.text();
|
|
@@ -24647,6 +24852,22 @@ var COMMAND_SPECS = [
|
|
|
24647
24852
|
returns: "ShareLinkPublic",
|
|
24648
24853
|
notes: "Destructive \u2014 gated behind --allow-destructive + a links:write key."
|
|
24649
24854
|
},
|
|
24855
|
+
{
|
|
24856
|
+
path: ["export"],
|
|
24857
|
+
summary: "Stream a complete, re-importable dump of the Space to stdout.",
|
|
24858
|
+
args: [],
|
|
24859
|
+
flags: [
|
|
24860
|
+
{
|
|
24861
|
+
name: "format",
|
|
24862
|
+
type: "string",
|
|
24863
|
+
description: "json (default) or ndjson (a manifest line then a line per row).",
|
|
24864
|
+
default: "json"
|
|
24865
|
+
}
|
|
24866
|
+
],
|
|
24867
|
+
scopes: ["export:read"],
|
|
24868
|
+
returns: "SpaceExport",
|
|
24869
|
+
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."
|
|
24870
|
+
},
|
|
24650
24871
|
{
|
|
24651
24872
|
path: ["whoami"],
|
|
24652
24873
|
summary: "Show the tenant and scopes the configured key resolves to.",
|
|
@@ -25158,6 +25379,14 @@ var HANDLERS = {
|
|
|
25158
25379
|
render: renderToday
|
|
25159
25380
|
};
|
|
25160
25381
|
},
|
|
25382
|
+
export: async ({ flags, requireClient }) => {
|
|
25383
|
+
const format = flagString(flags, "format") ?? "json";
|
|
25384
|
+
if (format !== "json" && format !== "ndjson") {
|
|
25385
|
+
throw usageError(`--format must be json or ndjson (got \`${format}\`)`);
|
|
25386
|
+
}
|
|
25387
|
+
const raw = await requireClient().getText("/export", { query: { format } });
|
|
25388
|
+
return { raw, data: undefined, render: () => raw };
|
|
25389
|
+
},
|
|
25161
25390
|
"notes backlinks": async ({ args, requireClient }) => {
|
|
25162
25391
|
const id = requireArg(args, 0, "note id");
|
|
25163
25392
|
return {
|
|
@@ -25583,6 +25812,10 @@ async function run(argv, io) {
|
|
|
25583
25812
|
apiUrl: flagString(flags, "url")
|
|
25584
25813
|
});
|
|
25585
25814
|
const result = await dispatch(positionals, flags, io, mode, config2);
|
|
25815
|
+
if (result.raw !== undefined) {
|
|
25816
|
+
io.stdout(result.raw);
|
|
25817
|
+
return EXIT.OK;
|
|
25818
|
+
}
|
|
25586
25819
|
emitResult(io, mode, result.data, result.render);
|
|
25587
25820
|
return EXIT.OK;
|
|
25588
25821
|
} catch (error51) {
|