@substrat-run/contract-tests 0.114.0 → 0.116.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/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/job-run-suite.d.ts +24 -0
- package/dist/job-run-suite.d.ts.map +1 -0
- package/dist/job-run-suite.js +582 -0
- package/dist/job-run-suite.js.map +1 -0
- package/dist/modules.d.ts +343 -0
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +176 -4
- package/dist/modules.js.map +1 -1
- package/dist/permission-suite.d.ts.map +1 -1
- package/dist/permission-suite.js +117 -0
- package/dist/permission-suite.js.map +1 -1
- package/dist/schedule-suite.d.ts.map +1 -1
- package/dist/schedule-suite.js +55 -6
- package/dist/schedule-suite.js.map +1 -1
- package/dist/scope-host-suite.d.ts.map +1 -1
- package/dist/scope-host-suite.js +251 -14
- package/dist/scope-host-suite.js.map +1 -1
- package/package.json +3 -3
package/dist/modules.d.ts
CHANGED
|
@@ -36,6 +36,10 @@ export declare const testModManifest: {
|
|
|
36
36
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
37
37
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
38
38
|
}[];
|
|
39
|
+
liveTargets?: {
|
|
40
|
+
entityType: string;
|
|
41
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
42
|
+
}[] | undefined;
|
|
39
43
|
entityRelations?: {
|
|
40
44
|
entityType: string;
|
|
41
45
|
parentType: string;
|
|
@@ -145,6 +149,10 @@ export declare const scheduleModManifest: {
|
|
|
145
149
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
146
150
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
147
151
|
}[];
|
|
152
|
+
liveTargets?: {
|
|
153
|
+
entityType: string;
|
|
154
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
155
|
+
}[] | undefined;
|
|
148
156
|
entityRelations?: {
|
|
149
157
|
entityType: string;
|
|
150
158
|
parentType: string;
|
|
@@ -260,6 +268,10 @@ export declare const freshnessModManifest: {
|
|
|
260
268
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
261
269
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
262
270
|
}[];
|
|
271
|
+
liveTargets?: {
|
|
272
|
+
entityType: string;
|
|
273
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
274
|
+
}[] | undefined;
|
|
263
275
|
entityRelations?: {
|
|
264
276
|
entityType: string;
|
|
265
277
|
parentType: string;
|
|
@@ -343,6 +355,137 @@ export declare const freshnessModManifest: {
|
|
|
343
355
|
} | undefined;
|
|
344
356
|
};
|
|
345
357
|
export declare const freshnessMod: ModuleRegistration;
|
|
358
|
+
/**
|
|
359
|
+
* #1577: the module a resumable RUN acts through.
|
|
360
|
+
*
|
|
361
|
+
* The job's handler is NOT here — a job is host code (`registerJob`), so the suite
|
|
362
|
+
* hands the host a closure, which is precisely what an operation or consumer
|
|
363
|
+
* cannot be on the Cloudflare adapter. What has to be here is the operation the
|
|
364
|
+
* job's steps invoke, because the ScopeDO closes over a code-time module set and
|
|
365
|
+
* the step's write has to be a real write, through a real `ctx.check`, inside the
|
|
366
|
+
* scope — otherwise "no step before it repeated" is asserted against a counter in
|
|
367
|
+
* the test process and proves nothing about what survived a pass boundary.
|
|
368
|
+
*
|
|
369
|
+
* `jobs:write` is declared but NOT projected by any schedule: the module declares
|
|
370
|
+
* no schedules, so the suite grants it to `system:@test/jobs` explicitly with
|
|
371
|
+
* `grantToSystem`. That IS the shape a deployment uses — a job's authority is a
|
|
372
|
+
* grant a human can read in the permission diff and revoke per scope, same as a
|
|
373
|
+
* schedule's, and nothing about a job invents a second way in.
|
|
374
|
+
*/
|
|
375
|
+
export declare const jobsModManifest: {
|
|
376
|
+
id: string & z.$brand<"ModuleId">;
|
|
377
|
+
version: string;
|
|
378
|
+
kernelContract: string;
|
|
379
|
+
permissions: {
|
|
380
|
+
key: string & z.$brand<"PermissionKey">;
|
|
381
|
+
description: string;
|
|
382
|
+
}[];
|
|
383
|
+
events: {
|
|
384
|
+
emits: {
|
|
385
|
+
type: string;
|
|
386
|
+
schemaVersion: number;
|
|
387
|
+
}[];
|
|
388
|
+
consumes: {
|
|
389
|
+
type: string;
|
|
390
|
+
schemaVersion: number;
|
|
391
|
+
}[];
|
|
392
|
+
};
|
|
393
|
+
migrations: {
|
|
394
|
+
journalDir: string;
|
|
395
|
+
compatibleFrom: string;
|
|
396
|
+
};
|
|
397
|
+
attachmentTargets: {
|
|
398
|
+
entityType: string;
|
|
399
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
400
|
+
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
401
|
+
}[];
|
|
402
|
+
liveTargets?: {
|
|
403
|
+
entityType: string;
|
|
404
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
405
|
+
}[] | undefined;
|
|
406
|
+
entityRelations?: {
|
|
407
|
+
entityType: string;
|
|
408
|
+
parentType: string;
|
|
409
|
+
}[] | undefined;
|
|
410
|
+
guards?: {
|
|
411
|
+
before: string;
|
|
412
|
+
predicate: string;
|
|
413
|
+
config: Record<string, unknown>;
|
|
414
|
+
}[] | undefined;
|
|
415
|
+
schedules?: {
|
|
416
|
+
operation: string;
|
|
417
|
+
cadence: {
|
|
418
|
+
everyMinutes: number;
|
|
419
|
+
};
|
|
420
|
+
input?: Record<string, unknown> | undefined;
|
|
421
|
+
permissions: (string & z.$brand<"PermissionKey">)[];
|
|
422
|
+
}[] | undefined;
|
|
423
|
+
freshness?: {
|
|
424
|
+
eventType: string;
|
|
425
|
+
within: {
|
|
426
|
+
hours: number;
|
|
427
|
+
};
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
withdraws?: string[] | undefined;
|
|
430
|
+
entitlementKey: string;
|
|
431
|
+
envSpec?: {
|
|
432
|
+
key: string;
|
|
433
|
+
label?: string | undefined;
|
|
434
|
+
description: string;
|
|
435
|
+
placeholder?: string | undefined;
|
|
436
|
+
required: boolean;
|
|
437
|
+
secret: boolean;
|
|
438
|
+
default?: string | undefined;
|
|
439
|
+
group?: string | undefined;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
ownerGrants?: (string & z.$brand<"PermissionKey">)[] | undefined;
|
|
442
|
+
entitlements?: string[] | undefined;
|
|
443
|
+
provides?: string[] | undefined;
|
|
444
|
+
requires?: string[] | undefined;
|
|
445
|
+
api?: string | undefined;
|
|
446
|
+
searchables?: {
|
|
447
|
+
entityType: string;
|
|
448
|
+
fields: string[];
|
|
449
|
+
table?: string | undefined;
|
|
450
|
+
idColumn?: string | undefined;
|
|
451
|
+
tokenizer?: "prefix" | "substring" | undefined;
|
|
452
|
+
}[] | undefined;
|
|
453
|
+
lists?: {
|
|
454
|
+
entityType: string;
|
|
455
|
+
sortable: string[];
|
|
456
|
+
filterable?: string[] | undefined;
|
|
457
|
+
table?: string | undefined;
|
|
458
|
+
idColumn?: string | undefined;
|
|
459
|
+
}[] | undefined;
|
|
460
|
+
ui?: {
|
|
461
|
+
routes?: {
|
|
462
|
+
path: string;
|
|
463
|
+
screen: string;
|
|
464
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
465
|
+
}[] | undefined;
|
|
466
|
+
nav?: {
|
|
467
|
+
label: string;
|
|
468
|
+
icon?: string | undefined;
|
|
469
|
+
to: string;
|
|
470
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
471
|
+
}[] | undefined;
|
|
472
|
+
entityViews?: {
|
|
473
|
+
entityType: string;
|
|
474
|
+
view: string;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
widgets?: {
|
|
477
|
+
slot: string;
|
|
478
|
+
component: string;
|
|
479
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
480
|
+
}[] | undefined;
|
|
481
|
+
settingsPanels?: {
|
|
482
|
+
label: string;
|
|
483
|
+
component: string;
|
|
484
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
485
|
+
}[] | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
};
|
|
488
|
+
export declare const jobsMod: ModuleRegistration;
|
|
346
489
|
export declare const flowModManifest: {
|
|
347
490
|
id: string & z.$brand<"ModuleId">;
|
|
348
491
|
version: string;
|
|
@@ -370,6 +513,10 @@ export declare const flowModManifest: {
|
|
|
370
513
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
371
514
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
372
515
|
}[];
|
|
516
|
+
liveTargets?: {
|
|
517
|
+
entityType: string;
|
|
518
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
519
|
+
}[] | undefined;
|
|
373
520
|
entityRelations?: {
|
|
374
521
|
entityType: string;
|
|
375
522
|
parentType: string;
|
|
@@ -479,6 +626,10 @@ export declare const atomicModManifest: {
|
|
|
479
626
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
480
627
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
481
628
|
}[];
|
|
629
|
+
liveTargets?: {
|
|
630
|
+
entityType: string;
|
|
631
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
632
|
+
}[] | undefined;
|
|
482
633
|
entityRelations?: {
|
|
483
634
|
entityType: string;
|
|
484
635
|
parentType: string;
|
|
@@ -588,6 +739,10 @@ export declare const lateModManifest: {
|
|
|
588
739
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
589
740
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
590
741
|
}[];
|
|
742
|
+
liveTargets?: {
|
|
743
|
+
entityType: string;
|
|
744
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
745
|
+
}[] | undefined;
|
|
591
746
|
entityRelations?: {
|
|
592
747
|
entityType: string;
|
|
593
748
|
parentType: string;
|
|
@@ -697,6 +852,10 @@ export declare const billedModManifest: {
|
|
|
697
852
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
698
853
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
699
854
|
}[];
|
|
855
|
+
liveTargets?: {
|
|
856
|
+
entityType: string;
|
|
857
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
858
|
+
}[] | undefined;
|
|
700
859
|
entityRelations?: {
|
|
701
860
|
entityType: string;
|
|
702
861
|
parentType: string;
|
|
@@ -806,6 +965,10 @@ export declare const guardedModManifest: {
|
|
|
806
965
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
807
966
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
808
967
|
}[];
|
|
968
|
+
liveTargets?: {
|
|
969
|
+
entityType: string;
|
|
970
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
971
|
+
}[] | undefined;
|
|
809
972
|
entityRelations?: {
|
|
810
973
|
entityType: string;
|
|
811
974
|
parentType: string;
|
|
@@ -915,6 +1078,10 @@ export declare const withdrawEarlyManifest: {
|
|
|
915
1078
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
916
1079
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
917
1080
|
}[];
|
|
1081
|
+
liveTargets?: {
|
|
1082
|
+
entityType: string;
|
|
1083
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1084
|
+
}[] | undefined;
|
|
918
1085
|
entityRelations?: {
|
|
919
1086
|
entityType: string;
|
|
920
1087
|
parentType: string;
|
|
@@ -1024,6 +1191,10 @@ export declare const victimModManifest: {
|
|
|
1024
1191
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1025
1192
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1026
1193
|
}[];
|
|
1194
|
+
liveTargets?: {
|
|
1195
|
+
entityType: string;
|
|
1196
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1197
|
+
}[] | undefined;
|
|
1027
1198
|
entityRelations?: {
|
|
1028
1199
|
entityType: string;
|
|
1029
1200
|
parentType: string;
|
|
@@ -1133,6 +1304,10 @@ export declare const withdrawLateManifest: {
|
|
|
1133
1304
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1134
1305
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1135
1306
|
}[];
|
|
1307
|
+
liveTargets?: {
|
|
1308
|
+
entityType: string;
|
|
1309
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1310
|
+
}[] | undefined;
|
|
1136
1311
|
entityRelations?: {
|
|
1137
1312
|
entityType: string;
|
|
1138
1313
|
parentType: string;
|
|
@@ -1242,6 +1417,10 @@ export declare const gateModManifest: {
|
|
|
1242
1417
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1243
1418
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1244
1419
|
}[];
|
|
1420
|
+
liveTargets?: {
|
|
1421
|
+
entityType: string;
|
|
1422
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1423
|
+
}[] | undefined;
|
|
1245
1424
|
entityRelations?: {
|
|
1246
1425
|
entityType: string;
|
|
1247
1426
|
parentType: string;
|
|
@@ -1360,6 +1539,10 @@ export declare const impersonationEchoManifest: {
|
|
|
1360
1539
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1361
1540
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1362
1541
|
}[];
|
|
1542
|
+
liveTargets?: {
|
|
1543
|
+
entityType: string;
|
|
1544
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1545
|
+
}[] | undefined;
|
|
1363
1546
|
entityRelations?: {
|
|
1364
1547
|
entityType: string;
|
|
1365
1548
|
parentType: string;
|
|
@@ -1469,6 +1652,10 @@ export declare const permModManifest: {
|
|
|
1469
1652
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1470
1653
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1471
1654
|
}[];
|
|
1655
|
+
liveTargets?: {
|
|
1656
|
+
entityType: string;
|
|
1657
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1658
|
+
}[] | undefined;
|
|
1472
1659
|
entityRelations?: {
|
|
1473
1660
|
entityType: string;
|
|
1474
1661
|
parentType: string;
|
|
@@ -1592,6 +1779,10 @@ export declare const connectorModManifest: {
|
|
|
1592
1779
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1593
1780
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1594
1781
|
}[];
|
|
1782
|
+
liveTargets?: {
|
|
1783
|
+
entityType: string;
|
|
1784
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1785
|
+
}[] | undefined;
|
|
1595
1786
|
entityRelations?: {
|
|
1596
1787
|
entityType: string;
|
|
1597
1788
|
parentType: string;
|
|
@@ -1732,6 +1923,10 @@ export declare const listModManifest: {
|
|
|
1732
1923
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1733
1924
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1734
1925
|
}[];
|
|
1926
|
+
liveTargets?: {
|
|
1927
|
+
entityType: string;
|
|
1928
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
1929
|
+
}[] | undefined;
|
|
1735
1930
|
entityRelations?: {
|
|
1736
1931
|
entityType: string;
|
|
1737
1932
|
parentType: string;
|
|
@@ -1842,6 +2037,10 @@ export declare const searchModManifest: {
|
|
|
1842
2037
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1843
2038
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1844
2039
|
}[];
|
|
2040
|
+
liveTargets?: {
|
|
2041
|
+
entityType: string;
|
|
2042
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2043
|
+
}[] | undefined;
|
|
1845
2044
|
entityRelations?: {
|
|
1846
2045
|
entityType: string;
|
|
1847
2046
|
parentType: string;
|
|
@@ -1952,6 +2151,10 @@ export declare const parseModManifest: {
|
|
|
1952
2151
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
1953
2152
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1954
2153
|
}[];
|
|
2154
|
+
liveTargets?: {
|
|
2155
|
+
entityType: string;
|
|
2156
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2157
|
+
}[] | undefined;
|
|
1955
2158
|
entityRelations?: {
|
|
1956
2159
|
entityType: string;
|
|
1957
2160
|
parentType: string;
|
|
@@ -2062,6 +2265,10 @@ export declare const concurrencyModManifest: {
|
|
|
2062
2265
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
2063
2266
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2064
2267
|
}[];
|
|
2268
|
+
liveTargets?: {
|
|
2269
|
+
entityType: string;
|
|
2270
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2271
|
+
}[] | undefined;
|
|
2065
2272
|
entityRelations?: {
|
|
2066
2273
|
entityType: string;
|
|
2067
2274
|
parentType: string;
|
|
@@ -2172,6 +2379,10 @@ export declare const idempotencyModManifest: {
|
|
|
2172
2379
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
2173
2380
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2174
2381
|
}[];
|
|
2382
|
+
liveTargets?: {
|
|
2383
|
+
entityType: string;
|
|
2384
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2385
|
+
}[] | undefined;
|
|
2175
2386
|
entityRelations?: {
|
|
2176
2387
|
entityType: string;
|
|
2177
2388
|
parentType: string;
|
|
@@ -2256,6 +2467,134 @@ export declare const idempotencyModManifest: {
|
|
|
2256
2467
|
};
|
|
2257
2468
|
export declare const idempotencyMod: ModuleRegistration;
|
|
2258
2469
|
export declare const contractTestModules: ModuleRegistration[];
|
|
2470
|
+
/**
|
|
2471
|
+
* A module for the live-read fan-out, with two entity types that differ in exactly
|
|
2472
|
+
* one respect: `note` is declared watchable and `ledger` is not.
|
|
2473
|
+
*
|
|
2474
|
+
* Deliberately NOT in `contractTestModules`. Every scope in the kit shares one module
|
|
2475
|
+
* set, and a module declaring `liveTargets` there would give every other suite's scope
|
|
2476
|
+
* a fan-out to run on every invoke — changing what those suites exercise in order to
|
|
2477
|
+
* test this one. Adapters that can host live reads mount it on a scope host of its own.
|
|
2478
|
+
*
|
|
2479
|
+
* The undeclared `ledger` is the fixture for the fail-closed half of the rule, and it
|
|
2480
|
+
* is the half worth having a fixture for: "an entity type nobody declared reaches
|
|
2481
|
+
* nobody" is a sentence that is trivially true of an implementation that also announces
|
|
2482
|
+
* nothing at all, so the suite proves it against a `note` that DOES arrive.
|
|
2483
|
+
*/
|
|
2484
|
+
export declare const liveModManifest: {
|
|
2485
|
+
id: string & z.$brand<"ModuleId">;
|
|
2486
|
+
version: string;
|
|
2487
|
+
kernelContract: string;
|
|
2488
|
+
permissions: {
|
|
2489
|
+
key: string & z.$brand<"PermissionKey">;
|
|
2490
|
+
description: string;
|
|
2491
|
+
}[];
|
|
2492
|
+
events: {
|
|
2493
|
+
emits: {
|
|
2494
|
+
type: string;
|
|
2495
|
+
schemaVersion: number;
|
|
2496
|
+
}[];
|
|
2497
|
+
consumes: {
|
|
2498
|
+
type: string;
|
|
2499
|
+
schemaVersion: number;
|
|
2500
|
+
}[];
|
|
2501
|
+
};
|
|
2502
|
+
migrations: {
|
|
2503
|
+
journalDir: string;
|
|
2504
|
+
compatibleFrom: string;
|
|
2505
|
+
};
|
|
2506
|
+
attachmentTargets: {
|
|
2507
|
+
entityType: string;
|
|
2508
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2509
|
+
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2510
|
+
}[];
|
|
2511
|
+
liveTargets?: {
|
|
2512
|
+
entityType: string;
|
|
2513
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2514
|
+
}[] | undefined;
|
|
2515
|
+
entityRelations?: {
|
|
2516
|
+
entityType: string;
|
|
2517
|
+
parentType: string;
|
|
2518
|
+
}[] | undefined;
|
|
2519
|
+
guards?: {
|
|
2520
|
+
before: string;
|
|
2521
|
+
predicate: string;
|
|
2522
|
+
config: Record<string, unknown>;
|
|
2523
|
+
}[] | undefined;
|
|
2524
|
+
schedules?: {
|
|
2525
|
+
operation: string;
|
|
2526
|
+
cadence: {
|
|
2527
|
+
everyMinutes: number;
|
|
2528
|
+
};
|
|
2529
|
+
input?: Record<string, unknown> | undefined;
|
|
2530
|
+
permissions: (string & z.$brand<"PermissionKey">)[];
|
|
2531
|
+
}[] | undefined;
|
|
2532
|
+
freshness?: {
|
|
2533
|
+
eventType: string;
|
|
2534
|
+
within: {
|
|
2535
|
+
hours: number;
|
|
2536
|
+
};
|
|
2537
|
+
}[] | undefined;
|
|
2538
|
+
withdraws?: string[] | undefined;
|
|
2539
|
+
entitlementKey: string;
|
|
2540
|
+
envSpec?: {
|
|
2541
|
+
key: string;
|
|
2542
|
+
label?: string | undefined;
|
|
2543
|
+
description: string;
|
|
2544
|
+
placeholder?: string | undefined;
|
|
2545
|
+
required: boolean;
|
|
2546
|
+
secret: boolean;
|
|
2547
|
+
default?: string | undefined;
|
|
2548
|
+
group?: string | undefined;
|
|
2549
|
+
}[] | undefined;
|
|
2550
|
+
ownerGrants?: (string & z.$brand<"PermissionKey">)[] | undefined;
|
|
2551
|
+
entitlements?: string[] | undefined;
|
|
2552
|
+
provides?: string[] | undefined;
|
|
2553
|
+
requires?: string[] | undefined;
|
|
2554
|
+
api?: string | undefined;
|
|
2555
|
+
searchables?: {
|
|
2556
|
+
entityType: string;
|
|
2557
|
+
fields: string[];
|
|
2558
|
+
table?: string | undefined;
|
|
2559
|
+
idColumn?: string | undefined;
|
|
2560
|
+
tokenizer?: "prefix" | "substring" | undefined;
|
|
2561
|
+
}[] | undefined;
|
|
2562
|
+
lists?: {
|
|
2563
|
+
entityType: string;
|
|
2564
|
+
sortable: string[];
|
|
2565
|
+
filterable?: string[] | undefined;
|
|
2566
|
+
table?: string | undefined;
|
|
2567
|
+
idColumn?: string | undefined;
|
|
2568
|
+
}[] | undefined;
|
|
2569
|
+
ui?: {
|
|
2570
|
+
routes?: {
|
|
2571
|
+
path: string;
|
|
2572
|
+
screen: string;
|
|
2573
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
2574
|
+
}[] | undefined;
|
|
2575
|
+
nav?: {
|
|
2576
|
+
label: string;
|
|
2577
|
+
icon?: string | undefined;
|
|
2578
|
+
to: string;
|
|
2579
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
2580
|
+
}[] | undefined;
|
|
2581
|
+
entityViews?: {
|
|
2582
|
+
entityType: string;
|
|
2583
|
+
view: string;
|
|
2584
|
+
}[] | undefined;
|
|
2585
|
+
widgets?: {
|
|
2586
|
+
slot: string;
|
|
2587
|
+
component: string;
|
|
2588
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
2589
|
+
}[] | undefined;
|
|
2590
|
+
settingsPanels?: {
|
|
2591
|
+
label: string;
|
|
2592
|
+
component: string;
|
|
2593
|
+
permission: string & z.$brand<"PermissionKey">;
|
|
2594
|
+
}[] | undefined;
|
|
2595
|
+
} | undefined;
|
|
2596
|
+
};
|
|
2597
|
+
export declare const liveMod: ModuleRegistration;
|
|
2259
2598
|
export declare const brokenModManifest: {
|
|
2260
2599
|
id: string & z.$brand<"ModuleId">;
|
|
2261
2600
|
version: string;
|
|
@@ -2283,6 +2622,10 @@ export declare const brokenModManifest: {
|
|
|
2283
2622
|
readPermission: string & z.$brand<"PermissionKey">;
|
|
2284
2623
|
writePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2285
2624
|
}[];
|
|
2625
|
+
liveTargets?: {
|
|
2626
|
+
entityType: string;
|
|
2627
|
+
readPermission: string & z.$brand<"PermissionKey">;
|
|
2628
|
+
}[] | undefined;
|
|
2286
2629
|
entityRelations?: {
|
|
2287
2630
|
entityType: string;
|
|
2288
2631
|
parentType: string;
|
package/dist/modules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/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