@aeriajs/builtins 0.0.10 → 0.0.13

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/index.d.ts CHANGED
@@ -1072,6 +1072,521 @@ export declare const collections: {
1072
1072
  };
1073
1073
  }>) => Promise<any>;
1074
1074
  };
1075
+ functionContracts: Partial<{
1076
+ readonly get: import("@aeriajs/types").Contract;
1077
+ readonly insert: import("@aeriajs/types").Contract;
1078
+ readonly download: import("@aeriajs/types").Contract;
1079
+ readonly remove: import("@aeriajs/types").Contract;
1080
+ readonly removeAll: import("@aeriajs/types").Contract;
1081
+ }>;
1082
+ accessControl: import("@aeriajs/types").AccessControl<{
1083
+ description: {
1084
+ readonly $id: "file";
1085
+ readonly owned: "always";
1086
+ readonly presets: readonly ["owned"];
1087
+ readonly indexes: readonly ["filename", "link", "mime"];
1088
+ readonly properties: {
1089
+ readonly mime: {
1090
+ readonly type: "string";
1091
+ };
1092
+ readonly size: {
1093
+ readonly type: "number";
1094
+ };
1095
+ readonly last_modified: {
1096
+ readonly type: "string";
1097
+ readonly format: "date-time";
1098
+ };
1099
+ readonly filename: {
1100
+ readonly type: "string";
1101
+ };
1102
+ readonly absolute_path: {
1103
+ readonly type: "string";
1104
+ };
1105
+ readonly relative_path: {
1106
+ readonly type: "string";
1107
+ };
1108
+ readonly immutable: {
1109
+ readonly type: "boolean";
1110
+ };
1111
+ readonly link: {
1112
+ readonly getter: (value: any) => Promise<string>;
1113
+ };
1114
+ readonly download_link: {
1115
+ readonly getter: (value: any) => Promise<string>;
1116
+ };
1117
+ };
1118
+ readonly actions: {
1119
+ readonly deleteAll: {
1120
+ readonly name: "Remover";
1121
+ readonly ask: true;
1122
+ readonly selection: true;
1123
+ };
1124
+ };
1125
+ readonly individualActions: {
1126
+ readonly remove: {
1127
+ readonly name: "Remover";
1128
+ readonly icon: "trash";
1129
+ readonly ask: true;
1130
+ };
1131
+ };
1132
+ };
1133
+ functions: {
1134
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
1135
+ readonly $id: "file";
1136
+ readonly owned: "always";
1137
+ readonly presets: readonly ["owned"];
1138
+ readonly indexes: readonly ["filename", "link", "mime"];
1139
+ readonly properties: {
1140
+ readonly mime: {
1141
+ readonly type: "string";
1142
+ };
1143
+ readonly size: {
1144
+ readonly type: "number";
1145
+ };
1146
+ readonly last_modified: {
1147
+ readonly type: "string";
1148
+ readonly format: "date-time";
1149
+ };
1150
+ readonly filename: {
1151
+ readonly type: "string";
1152
+ };
1153
+ readonly absolute_path: {
1154
+ readonly type: "string";
1155
+ };
1156
+ readonly relative_path: {
1157
+ readonly type: "string";
1158
+ };
1159
+ readonly immutable: {
1160
+ readonly type: "boolean";
1161
+ };
1162
+ readonly link: {
1163
+ readonly getter: (value: any) => Promise<string>;
1164
+ };
1165
+ readonly download_link: {
1166
+ readonly getter: (value: any) => Promise<string>;
1167
+ };
1168
+ };
1169
+ readonly actions: {
1170
+ readonly deleteAll: {
1171
+ readonly name: "Remover";
1172
+ readonly ask: true;
1173
+ readonly selection: true;
1174
+ };
1175
+ };
1176
+ readonly individualActions: {
1177
+ readonly remove: {
1178
+ readonly name: "Remover";
1179
+ readonly icon: "trash";
1180
+ readonly ask: true;
1181
+ };
1182
+ };
1183
+ }>>, context: import("@aeriajs/types").Context<{
1184
+ readonly $id: "file";
1185
+ readonly owned: "always";
1186
+ readonly presets: readonly ["owned"];
1187
+ readonly indexes: readonly ["filename", "link", "mime"];
1188
+ readonly properties: {
1189
+ readonly mime: {
1190
+ readonly type: "string";
1191
+ };
1192
+ readonly size: {
1193
+ readonly type: "number";
1194
+ };
1195
+ readonly last_modified: {
1196
+ readonly type: "string";
1197
+ readonly format: "date-time";
1198
+ };
1199
+ readonly filename: {
1200
+ readonly type: "string";
1201
+ };
1202
+ readonly absolute_path: {
1203
+ readonly type: "string";
1204
+ };
1205
+ readonly relative_path: {
1206
+ readonly type: "string";
1207
+ };
1208
+ readonly immutable: {
1209
+ readonly type: "boolean";
1210
+ };
1211
+ readonly link: {
1212
+ readonly getter: (value: any) => Promise<string>;
1213
+ };
1214
+ readonly download_link: {
1215
+ readonly getter: (value: any) => Promise<string>;
1216
+ };
1217
+ };
1218
+ readonly actions: {
1219
+ readonly deleteAll: {
1220
+ readonly name: "Remover";
1221
+ readonly ask: true;
1222
+ readonly selection: true;
1223
+ };
1224
+ };
1225
+ readonly individualActions: {
1226
+ readonly remove: {
1227
+ readonly name: "Remover";
1228
+ readonly icon: "trash";
1229
+ readonly ask: true;
1230
+ };
1231
+ };
1232
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
1233
+ readonly $id: "file";
1234
+ readonly owned: "always";
1235
+ readonly presets: readonly ["owned"];
1236
+ readonly indexes: readonly ["filename", "link", "mime"];
1237
+ readonly properties: {
1238
+ readonly mime: {
1239
+ readonly type: "string";
1240
+ };
1241
+ readonly size: {
1242
+ readonly type: "number";
1243
+ };
1244
+ readonly last_modified: {
1245
+ readonly type: "string";
1246
+ readonly format: "date-time";
1247
+ };
1248
+ readonly filename: {
1249
+ readonly type: "string";
1250
+ };
1251
+ readonly absolute_path: {
1252
+ readonly type: "string";
1253
+ };
1254
+ readonly relative_path: {
1255
+ readonly type: "string";
1256
+ };
1257
+ readonly immutable: {
1258
+ readonly type: "boolean";
1259
+ };
1260
+ readonly link: {
1261
+ readonly getter: (value: any) => Promise<string>;
1262
+ };
1263
+ readonly download_link: {
1264
+ readonly getter: (value: any) => Promise<string>;
1265
+ };
1266
+ };
1267
+ readonly actions: {
1268
+ readonly deleteAll: {
1269
+ readonly name: "Remover";
1270
+ readonly ask: true;
1271
+ readonly selection: true;
1272
+ };
1273
+ };
1274
+ readonly individualActions: {
1275
+ readonly remove: {
1276
+ readonly name: "Remover";
1277
+ readonly icon: "trash";
1278
+ readonly ask: true;
1279
+ };
1280
+ };
1281
+ }> | null>;
1282
+ readonly insert: (payload: {
1283
+ what: {
1284
+ content: string;
1285
+ } & Pick<import("@aeriajs/types").PackReferences<import("@aeriajs/types").SchemaWithId<{
1286
+ readonly $id: "file";
1287
+ readonly owned: "always";
1288
+ readonly presets: readonly ["owned"];
1289
+ readonly indexes: readonly ["filename", "link", "mime"];
1290
+ readonly properties: {
1291
+ readonly mime: {
1292
+ readonly type: "string";
1293
+ };
1294
+ readonly size: {
1295
+ readonly type: "number";
1296
+ };
1297
+ readonly last_modified: {
1298
+ readonly type: "string";
1299
+ readonly format: "date-time";
1300
+ };
1301
+ readonly filename: {
1302
+ readonly type: "string";
1303
+ };
1304
+ readonly absolute_path: {
1305
+ readonly type: "string";
1306
+ };
1307
+ readonly relative_path: {
1308
+ readonly type: "string";
1309
+ };
1310
+ readonly immutable: {
1311
+ readonly type: "boolean";
1312
+ };
1313
+ readonly link: {
1314
+ readonly getter: (value: any) => Promise<string>;
1315
+ };
1316
+ readonly download_link: {
1317
+ readonly getter: (value: any) => Promise<string>;
1318
+ };
1319
+ };
1320
+ readonly actions: {
1321
+ readonly deleteAll: {
1322
+ readonly name: "Remover";
1323
+ readonly ask: true;
1324
+ readonly selection: true;
1325
+ };
1326
+ };
1327
+ readonly individualActions: {
1328
+ readonly remove: {
1329
+ readonly name: "Remover";
1330
+ readonly icon: "trash";
1331
+ readonly ask: true;
1332
+ };
1333
+ };
1334
+ }>>, "filename" | "absolute_path" | "_id" | "owner">;
1335
+ }, context: import("@aeriajs/types").Context<{
1336
+ readonly $id: "file";
1337
+ readonly owned: "always";
1338
+ readonly presets: readonly ["owned"];
1339
+ readonly indexes: readonly ["filename", "link", "mime"];
1340
+ readonly properties: {
1341
+ readonly mime: {
1342
+ readonly type: "string";
1343
+ };
1344
+ readonly size: {
1345
+ readonly type: "number";
1346
+ };
1347
+ readonly last_modified: {
1348
+ readonly type: "string";
1349
+ readonly format: "date-time";
1350
+ };
1351
+ readonly filename: {
1352
+ readonly type: "string";
1353
+ };
1354
+ readonly absolute_path: {
1355
+ readonly type: "string";
1356
+ };
1357
+ readonly relative_path: {
1358
+ readonly type: "string";
1359
+ };
1360
+ readonly immutable: {
1361
+ readonly type: "boolean";
1362
+ };
1363
+ readonly link: {
1364
+ readonly getter: (value: any) => Promise<string>;
1365
+ };
1366
+ readonly download_link: {
1367
+ readonly getter: (value: any) => Promise<string>;
1368
+ };
1369
+ };
1370
+ readonly actions: {
1371
+ readonly deleteAll: {
1372
+ readonly name: "Remover";
1373
+ readonly ask: true;
1374
+ readonly selection: true;
1375
+ };
1376
+ };
1377
+ readonly individualActions: {
1378
+ readonly remove: {
1379
+ readonly name: "Remover";
1380
+ readonly icon: "trash";
1381
+ readonly ask: true;
1382
+ };
1383
+ };
1384
+ }>) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
1385
+ readonly download: (payload: {
1386
+ fileId: string;
1387
+ options: readonly ("download" | "picture")[];
1388
+ noHeaders?: boolean | undefined;
1389
+ }, context: import("@aeriajs/types").Context<{
1390
+ readonly $id: "file";
1391
+ readonly owned: "always";
1392
+ readonly presets: readonly ["owned"];
1393
+ readonly indexes: readonly ["filename", "link", "mime"];
1394
+ readonly properties: {
1395
+ readonly mime: {
1396
+ readonly type: "string";
1397
+ };
1398
+ readonly size: {
1399
+ readonly type: "number";
1400
+ };
1401
+ readonly last_modified: {
1402
+ readonly type: "string";
1403
+ readonly format: "date-time";
1404
+ };
1405
+ readonly filename: {
1406
+ readonly type: "string";
1407
+ };
1408
+ readonly absolute_path: {
1409
+ readonly type: "string";
1410
+ };
1411
+ readonly relative_path: {
1412
+ readonly type: "string";
1413
+ };
1414
+ readonly immutable: {
1415
+ readonly type: "boolean";
1416
+ };
1417
+ readonly link: {
1418
+ readonly getter: (value: any) => Promise<string>;
1419
+ };
1420
+ readonly download_link: {
1421
+ readonly getter: (value: any) => Promise<string>;
1422
+ };
1423
+ };
1424
+ readonly actions: {
1425
+ readonly deleteAll: {
1426
+ readonly name: "Remover";
1427
+ readonly ask: true;
1428
+ readonly selection: true;
1429
+ };
1430
+ };
1431
+ readonly individualActions: {
1432
+ readonly remove: {
1433
+ readonly name: "Remover";
1434
+ readonly icon: "trash";
1435
+ readonly ask: true;
1436
+ };
1437
+ };
1438
+ }>) => Promise<import("@aeriajs/types").Left<import("./collections/file/download.js").FileReadError.DocumentNotFound> | import("@aeriajs/types").Left<import("./collections/file/download.js").FileReadError.FileNotFound> | import("fs").ReadStream>;
1439
+ readonly remove: (payload: import("@aeriajs/types").RemovePayload<import("@aeriajs/types").SchemaWithId<{
1440
+ readonly $id: "file";
1441
+ readonly owned: "always";
1442
+ readonly presets: readonly ["owned"];
1443
+ readonly indexes: readonly ["filename", "link", "mime"];
1444
+ readonly properties: {
1445
+ readonly mime: {
1446
+ readonly type: "string";
1447
+ };
1448
+ readonly size: {
1449
+ readonly type: "number";
1450
+ };
1451
+ readonly last_modified: {
1452
+ readonly type: "string";
1453
+ readonly format: "date-time";
1454
+ };
1455
+ readonly filename: {
1456
+ readonly type: "string";
1457
+ };
1458
+ readonly absolute_path: {
1459
+ readonly type: "string";
1460
+ };
1461
+ readonly relative_path: {
1462
+ readonly type: "string";
1463
+ };
1464
+ readonly immutable: {
1465
+ readonly type: "boolean";
1466
+ };
1467
+ readonly link: {
1468
+ readonly getter: (value: any) => Promise<string>;
1469
+ };
1470
+ readonly download_link: {
1471
+ readonly getter: (value: any) => Promise<string>;
1472
+ };
1473
+ };
1474
+ readonly actions: {
1475
+ readonly deleteAll: {
1476
+ readonly name: "Remover";
1477
+ readonly ask: true;
1478
+ readonly selection: true;
1479
+ };
1480
+ };
1481
+ readonly individualActions: {
1482
+ readonly remove: {
1483
+ readonly name: "Remover";
1484
+ readonly icon: "trash";
1485
+ readonly ask: true;
1486
+ };
1487
+ };
1488
+ }>>, context: import("@aeriajs/types").Context<{
1489
+ readonly $id: "file";
1490
+ readonly owned: "always";
1491
+ readonly presets: readonly ["owned"];
1492
+ readonly indexes: readonly ["filename", "link", "mime"];
1493
+ readonly properties: {
1494
+ readonly mime: {
1495
+ readonly type: "string";
1496
+ };
1497
+ readonly size: {
1498
+ readonly type: "number";
1499
+ };
1500
+ readonly last_modified: {
1501
+ readonly type: "string";
1502
+ readonly format: "date-time";
1503
+ };
1504
+ readonly filename: {
1505
+ readonly type: "string";
1506
+ };
1507
+ readonly absolute_path: {
1508
+ readonly type: "string";
1509
+ };
1510
+ readonly relative_path: {
1511
+ readonly type: "string";
1512
+ };
1513
+ readonly immutable: {
1514
+ readonly type: "boolean";
1515
+ };
1516
+ readonly link: {
1517
+ readonly getter: (value: any) => Promise<string>;
1518
+ };
1519
+ readonly download_link: {
1520
+ readonly getter: (value: any) => Promise<string>;
1521
+ };
1522
+ };
1523
+ readonly actions: {
1524
+ readonly deleteAll: {
1525
+ readonly name: "Remover";
1526
+ readonly ask: true;
1527
+ readonly selection: true;
1528
+ };
1529
+ };
1530
+ readonly individualActions: {
1531
+ readonly remove: {
1532
+ readonly name: "Remover";
1533
+ readonly icon: "trash";
1534
+ readonly ask: true;
1535
+ };
1536
+ };
1537
+ }>) => Promise<any>;
1538
+ readonly removeAll: (payload: import("@aeriajs/types").RemoveAllPayload, context: import("@aeriajs/types").Context<{
1539
+ readonly $id: "file";
1540
+ readonly owned: "always";
1541
+ readonly presets: readonly ["owned"];
1542
+ readonly indexes: readonly ["filename", "link", "mime"];
1543
+ readonly properties: {
1544
+ readonly mime: {
1545
+ readonly type: "string";
1546
+ };
1547
+ readonly size: {
1548
+ readonly type: "number";
1549
+ };
1550
+ readonly last_modified: {
1551
+ readonly type: "string";
1552
+ readonly format: "date-time";
1553
+ };
1554
+ readonly filename: {
1555
+ readonly type: "string";
1556
+ };
1557
+ readonly absolute_path: {
1558
+ readonly type: "string";
1559
+ };
1560
+ readonly relative_path: {
1561
+ readonly type: "string";
1562
+ };
1563
+ readonly immutable: {
1564
+ readonly type: "boolean";
1565
+ };
1566
+ readonly link: {
1567
+ readonly getter: (value: any) => Promise<string>;
1568
+ };
1569
+ readonly download_link: {
1570
+ readonly getter: (value: any) => Promise<string>;
1571
+ };
1572
+ };
1573
+ readonly actions: {
1574
+ readonly deleteAll: {
1575
+ readonly name: "Remover";
1576
+ readonly ask: true;
1577
+ readonly selection: true;
1578
+ };
1579
+ };
1580
+ readonly individualActions: {
1581
+ readonly remove: {
1582
+ readonly name: "Remover";
1583
+ readonly icon: "trash";
1584
+ readonly ask: true;
1585
+ };
1586
+ };
1587
+ }>) => Promise<any>;
1588
+ };
1589
+ }>;
1075
1590
  };
1076
1591
  tempFile: Omit<import("@aeriajs/types").Collection<{
1077
1592
  description: {
@@ -1189,6 +1704,69 @@ export declare const collections: {
1189
1704
  };
1190
1705
  }>, ...args: any[]) => any;
1191
1706
  };
1707
+ functionContracts: Partial<{
1708
+ [x: string]: import("@aeriajs/types").Contract;
1709
+ }>;
1710
+ accessControl: import("@aeriajs/types").AccessControl<{
1711
+ description: {
1712
+ readonly $id: "tempFile";
1713
+ readonly temporary: {
1714
+ readonly index: "created_at";
1715
+ readonly expireAfterSeconds: 3600;
1716
+ };
1717
+ readonly properties: {
1718
+ readonly created_at: {
1719
+ readonly type: "string";
1720
+ readonly format: "date-time";
1721
+ };
1722
+ readonly absolute_path: {
1723
+ readonly type: "string";
1724
+ };
1725
+ readonly size: {
1726
+ readonly type: "number";
1727
+ };
1728
+ readonly mime: {
1729
+ readonly type: "number";
1730
+ };
1731
+ readonly collection: {
1732
+ readonly type: "string";
1733
+ };
1734
+ readonly filename: {
1735
+ readonly type: "string";
1736
+ };
1737
+ };
1738
+ };
1739
+ functions: {
1740
+ [P: string]: (payload: any, context: import("@aeriajs/types").Context<{
1741
+ readonly $id: "tempFile";
1742
+ readonly temporary: {
1743
+ readonly index: "created_at";
1744
+ readonly expireAfterSeconds: 3600;
1745
+ };
1746
+ readonly properties: {
1747
+ readonly created_at: {
1748
+ readonly type: "string";
1749
+ readonly format: "date-time";
1750
+ };
1751
+ readonly absolute_path: {
1752
+ readonly type: "string";
1753
+ };
1754
+ readonly size: {
1755
+ readonly type: "number";
1756
+ };
1757
+ readonly mime: {
1758
+ readonly type: "number";
1759
+ };
1760
+ readonly collection: {
1761
+ readonly type: "string";
1762
+ };
1763
+ readonly filename: {
1764
+ readonly type: "string";
1765
+ };
1766
+ };
1767
+ }>, ...args: any[]) => any;
1768
+ };
1769
+ }>;
1192
1770
  };
1193
1771
  log: Omit<import("@aeriajs/types").Collection<{
1194
1772
  description: {
@@ -1298,7 +1876,7 @@ export declare const collections: {
1298
1876
  readonly presets: readonly ["view"];
1299
1877
  readonly filters: readonly ["context", "message", "owner"];
1300
1878
  }> | null>;
1301
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
1879
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
1302
1880
  readonly $id: "log";
1303
1881
  readonly required: readonly ["context", "message"];
1304
1882
  readonly properties: {
@@ -1540,7 +2118,7 @@ export declare const collections: {
1540
2118
  readonly presets: readonly ["view"];
1541
2119
  readonly filters: readonly ["context", "message", "owner"];
1542
2120
  }> | null>;
1543
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
2121
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
1544
2122
  readonly $id: "log";
1545
2123
  readonly required: readonly ["context", "message"];
1546
2124
  readonly properties: {
@@ -1647,6 +2225,227 @@ export declare const collections: {
1647
2225
  readonly filters: readonly ["context", "message", "owner"];
1648
2226
  }>, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
1649
2227
  };
2228
+ functionContracts: Partial<{
2229
+ readonly get: import("@aeriajs/types").Contract;
2230
+ readonly getAll: import("@aeriajs/types").Contract;
2231
+ readonly insert: import("@aeriajs/types").Contract;
2232
+ }>;
2233
+ accessControl: import("@aeriajs/types").AccessControl<{
2234
+ description: {
2235
+ readonly $id: "log";
2236
+ readonly required: readonly ["context", "message"];
2237
+ readonly properties: {
2238
+ readonly owner: {
2239
+ readonly $ref: "user";
2240
+ readonly noForm: true;
2241
+ };
2242
+ readonly context: {
2243
+ readonly type: "string";
2244
+ };
2245
+ readonly message: {
2246
+ readonly type: "string";
2247
+ };
2248
+ readonly details: {
2249
+ readonly type: "object";
2250
+ readonly variable: true;
2251
+ };
2252
+ readonly created_at: {
2253
+ readonly type: "string";
2254
+ readonly format: "date-time";
2255
+ };
2256
+ };
2257
+ readonly icon: "magnifying-glass";
2258
+ readonly presets: readonly ["view"];
2259
+ readonly filters: readonly ["context", "message", "owner"];
2260
+ };
2261
+ functions: {
2262
+ readonly get: (payload: import("@aeriajs/types").GetPayload<import("@aeriajs/types").SchemaWithId<{
2263
+ readonly $id: "log";
2264
+ readonly required: readonly ["context", "message"];
2265
+ readonly properties: {
2266
+ readonly owner: {
2267
+ readonly $ref: "user";
2268
+ readonly noForm: true;
2269
+ };
2270
+ readonly context: {
2271
+ readonly type: "string";
2272
+ };
2273
+ readonly message: {
2274
+ readonly type: "string";
2275
+ };
2276
+ readonly details: {
2277
+ readonly type: "object";
2278
+ readonly variable: true;
2279
+ };
2280
+ readonly created_at: {
2281
+ readonly type: "string";
2282
+ readonly format: "date-time";
2283
+ };
2284
+ };
2285
+ readonly icon: "magnifying-glass";
2286
+ readonly presets: readonly ["view"];
2287
+ readonly filters: readonly ["context", "message", "owner"];
2288
+ }>>, context: import("@aeriajs/types").Context<{
2289
+ readonly $id: "log";
2290
+ readonly required: readonly ["context", "message"];
2291
+ readonly properties: {
2292
+ readonly owner: {
2293
+ readonly $ref: "user";
2294
+ readonly noForm: true;
2295
+ };
2296
+ readonly context: {
2297
+ readonly type: "string";
2298
+ };
2299
+ readonly message: {
2300
+ readonly type: "string";
2301
+ };
2302
+ readonly details: {
2303
+ readonly type: "object";
2304
+ readonly variable: true;
2305
+ };
2306
+ readonly created_at: {
2307
+ readonly type: "string";
2308
+ readonly format: "date-time";
2309
+ };
2310
+ };
2311
+ readonly icon: "magnifying-glass";
2312
+ readonly presets: readonly ["view"];
2313
+ readonly filters: readonly ["context", "message", "owner"];
2314
+ }>, options?: import("@aeriajs/api").GetOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
2315
+ readonly $id: "log";
2316
+ readonly required: readonly ["context", "message"];
2317
+ readonly properties: {
2318
+ readonly owner: {
2319
+ readonly $ref: "user";
2320
+ readonly noForm: true;
2321
+ };
2322
+ readonly context: {
2323
+ readonly type: "string";
2324
+ };
2325
+ readonly message: {
2326
+ readonly type: "string";
2327
+ };
2328
+ readonly details: {
2329
+ readonly type: "object";
2330
+ readonly variable: true;
2331
+ };
2332
+ readonly created_at: {
2333
+ readonly type: "string";
2334
+ readonly format: "date-time";
2335
+ };
2336
+ };
2337
+ readonly icon: "magnifying-glass";
2338
+ readonly presets: readonly ["view"];
2339
+ readonly filters: readonly ["context", "message", "owner"];
2340
+ }> | null>;
2341
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
2342
+ readonly $id: "log";
2343
+ readonly required: readonly ["context", "message"];
2344
+ readonly properties: {
2345
+ readonly owner: {
2346
+ readonly $ref: "user";
2347
+ readonly noForm: true;
2348
+ };
2349
+ readonly context: {
2350
+ readonly type: "string";
2351
+ };
2352
+ readonly message: {
2353
+ readonly type: "string";
2354
+ };
2355
+ readonly details: {
2356
+ readonly type: "object";
2357
+ readonly variable: true;
2358
+ };
2359
+ readonly created_at: {
2360
+ readonly type: "string";
2361
+ readonly format: "date-time";
2362
+ };
2363
+ };
2364
+ readonly icon: "magnifying-glass";
2365
+ readonly presets: readonly ["view"];
2366
+ readonly filters: readonly ["context", "message", "owner"];
2367
+ }>, options?: import("@aeriajs/api").GetAllOptions | undefined) => Promise<import("@aeriajs/types").SchemaWithId<{
2368
+ readonly $id: "log";
2369
+ readonly required: readonly ["context", "message"];
2370
+ readonly properties: {
2371
+ readonly owner: {
2372
+ readonly $ref: "user";
2373
+ readonly noForm: true;
2374
+ };
2375
+ readonly context: {
2376
+ readonly type: "string";
2377
+ };
2378
+ readonly message: {
2379
+ readonly type: "string";
2380
+ };
2381
+ readonly details: {
2382
+ readonly type: "object";
2383
+ readonly variable: true;
2384
+ };
2385
+ readonly created_at: {
2386
+ readonly type: "string";
2387
+ readonly format: "date-time";
2388
+ };
2389
+ };
2390
+ readonly icon: "magnifying-glass";
2391
+ readonly presets: readonly ["view"];
2392
+ readonly filters: readonly ["context", "message", "owner"];
2393
+ }>[]>;
2394
+ readonly insert: (payload: import("@aeriajs/types").InsertPayload<import("@aeriajs/types").SchemaWithId<{
2395
+ readonly $id: "log";
2396
+ readonly required: readonly ["context", "message"];
2397
+ readonly properties: {
2398
+ readonly owner: {
2399
+ readonly $ref: "user";
2400
+ readonly noForm: true;
2401
+ };
2402
+ readonly context: {
2403
+ readonly type: "string";
2404
+ };
2405
+ readonly message: {
2406
+ readonly type: "string";
2407
+ };
2408
+ readonly details: {
2409
+ readonly type: "object";
2410
+ readonly variable: true;
2411
+ };
2412
+ readonly created_at: {
2413
+ readonly type: "string";
2414
+ readonly format: "date-time";
2415
+ };
2416
+ };
2417
+ readonly icon: "magnifying-glass";
2418
+ readonly presets: readonly ["view"];
2419
+ readonly filters: readonly ["context", "message", "owner"];
2420
+ }>>, context: import("@aeriajs/types").Context<{
2421
+ readonly $id: "log";
2422
+ readonly required: readonly ["context", "message"];
2423
+ readonly properties: {
2424
+ readonly owner: {
2425
+ readonly $ref: "user";
2426
+ readonly noForm: true;
2427
+ };
2428
+ readonly context: {
2429
+ readonly type: "string";
2430
+ };
2431
+ readonly message: {
2432
+ readonly type: "string";
2433
+ };
2434
+ readonly details: {
2435
+ readonly type: "object";
2436
+ readonly variable: true;
2437
+ };
2438
+ readonly created_at: {
2439
+ readonly type: "string";
2440
+ readonly format: "date-time";
2441
+ };
2442
+ };
2443
+ readonly icon: "magnifying-glass";
2444
+ readonly presets: readonly ["view"];
2445
+ readonly filters: readonly ["context", "message", "owner"];
2446
+ }>, options?: import("@aeriajs/api").InsertOptions | undefined) => Promise<import("@aeriajs/types").Right<any> | import("@aeriajs/types").Left<import("@aeriajs/types").ACErrors | import("@aeriajs/types").ValidationError>>;
2447
+ };
2448
+ }>;
1650
2449
  };
1651
2450
  resourceUsage: Omit<import("@aeriajs/types").Collection<{
1652
2451
  description: {
@@ -1704,6 +2503,39 @@ export declare const collections: {
1704
2503
  };
1705
2504
  }>, ...args: any[]) => any;
1706
2505
  };
2506
+ functionContracts: Partial<{
2507
+ [x: string]: import("@aeriajs/types").Contract;
2508
+ }>;
2509
+ accessControl: import("@aeriajs/types").AccessControl<{
2510
+ description: {
2511
+ readonly $id: "resourceUsage";
2512
+ readonly required: readonly [];
2513
+ readonly properties: {
2514
+ readonly hits: {
2515
+ readonly type: "integer";
2516
+ };
2517
+ readonly last_maximum_reach: {
2518
+ readonly type: "string";
2519
+ readonly format: "date-time";
2520
+ };
2521
+ };
2522
+ };
2523
+ functions: {
2524
+ [P: string]: (payload: any, context: import("@aeriajs/types").Context<{
2525
+ readonly $id: "resourceUsage";
2526
+ readonly required: readonly [];
2527
+ readonly properties: {
2528
+ readonly hits: {
2529
+ readonly type: "integer";
2530
+ };
2531
+ readonly last_maximum_reach: {
2532
+ readonly type: "string";
2533
+ readonly format: "date-time";
2534
+ };
2535
+ };
2536
+ }>, ...args: any[]) => any;
2537
+ };
2538
+ }>;
1707
2539
  };
1708
2540
  user: {
1709
2541
  description: {
@@ -2101,7 +2933,7 @@ export declare const collections: {
2101
2933
  };
2102
2934
  };
2103
2935
  }> | null>;
2104
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
2936
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
2105
2937
  readonly $id: "user";
2106
2938
  readonly required: readonly ["name", "roles", "email"];
2107
2939
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -3647,12 +4479,12 @@ export declare const collections: {
3647
4479
  readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
3648
4480
  };
3649
4481
  accessControl: {
3650
- roles: {
3651
- root: {
3652
- grantEverything: true;
4482
+ readonly roles: {
4483
+ readonly root: {
4484
+ readonly grantEverything: true;
3653
4485
  };
3654
- guest: {
3655
- grant: "authenticate"[];
4486
+ readonly guest: {
4487
+ readonly grant: readonly ["authenticate"];
3656
4488
  };
3657
4489
  };
3658
4490
  };
@@ -4151,7 +4983,7 @@ export declare const collections: {
4151
4983
  };
4152
4984
  };
4153
4985
  }> | null>;
4154
- readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | null, context: import("@aeriajs/types").Context<{
4986
+ readonly getAll: (_payload: import("@aeriajs/types").GetAllPayload<import("@aeriajs/types").SchemaWithId<any>> | undefined, context: import("@aeriajs/types").Context<{
4155
4987
  readonly $id: "user";
4156
4988
  readonly required: readonly ["name", "roles", "email"];
4157
4989
  readonly form: readonly ["name", "active", "roles", "email", "phone_number", "picture_file"];
@@ -5696,6 +6528,29 @@ export declare const collections: {
5696
6528
  }>>;
5697
6529
  readonly getActivationLink: (userId: import("bson").ObjectId) => Promise<string>;
5698
6530
  };
6531
+ functionContracts: Partial<{
6532
+ readonly get: import("@aeriajs/types").Contract;
6533
+ readonly getAll: import("@aeriajs/types").Contract;
6534
+ readonly remove: import("@aeriajs/types").Contract;
6535
+ readonly upload: import("@aeriajs/types").Contract;
6536
+ readonly removeFile: import("@aeriajs/types").Contract;
6537
+ readonly insert: import("@aeriajs/types").Contract;
6538
+ readonly authenticate: import("@aeriajs/types").Contract;
6539
+ readonly activate: import("@aeriajs/types").Contract;
6540
+ readonly createAccount: import("@aeriajs/types").Contract;
6541
+ readonly getInfo: import("@aeriajs/types").Contract;
6542
+ readonly getActivationLink: import("@aeriajs/types").Contract;
6543
+ }>;
6544
+ accessControl: {
6545
+ readonly roles: {
6546
+ readonly root: {
6547
+ readonly grantEverything: true;
6548
+ };
6549
+ readonly guest: {
6550
+ readonly grant: readonly ["authenticate"];
6551
+ };
6552
+ };
6553
+ };
5699
6554
  };
5700
6555
  };
5701
6556
  export type { File, TempFile, Log, ResourceUsage, User, };