@almadar/core 10.48.0 → 10.49.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.
@@ -1,5 +1,5 @@
1
- import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-DiHGegt9.js';
2
- import { T as TraitEventListener, a as TraitReference } from './trait-pw49W-zL.js';
1
+ import { E as EntityField, a as EntityPersistence, R as RelationConfig } from './effect-DjMRX8sI.js';
2
+ import { T as TraitEventListener, a as TraitReference } from './trait-DkMVtmED.js';
3
3
  import { J as JsonValue } from './expression-Yf7qvvOs.js';
4
4
 
5
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/core",
3
- "version": "10.48.0",
3
+ "version": "10.49.0",
4
4
  "description": "Core schema types and definitions for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -67,7 +67,7 @@
67
67
  "devDependencies": {
68
68
  "@almadar/eslint-plugin": "^2.15.0",
69
69
  "@types/node": "^22.0.0",
70
- "@typescript-eslint/parser": "8.56.0",
70
+ "@typescript-eslint/parser": "8.65.0",
71
71
  "@typescript/native": "npm:typescript@^7.0.2",
72
72
  "eslint": "10.0.0",
73
73
  "tsup": "^8.0.0",
@@ -1,33 +0,0 @@
1
- import { O as OrbitalSchema } from './schema-C0QwW3G2.js';
2
- import { S as SExpr } from './expression-Yf7qvvOs.js';
3
-
4
- /**
5
- * Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
6
- * directives, keyed by entity name.
7
- *
8
- * The JS mirror of `orbital-core/src/runtime/entity_access.rs`'s
9
- * `EntityAccessPolicies`/`EntityAccessTable`. Both paths must agree: a
10
- * directive is a per-row predicate (`@entity` = the candidate row, or for
11
- * `@create` the incoming data; `@user` = the viewer), enforced once for
12
- * every trait that touches the entity — the un-bypassable twin of a
13
- * call-site `filter:`, which sibling traits can skip simply by not
14
- * declaring one.
15
- *
16
- * @packageDocumentation
17
- */
18
-
19
- /** An entity's four declared directives. Any may be absent — an absent
20
- * directive means "no restriction" for that operation, exactly like an
21
- * absent fetch `filter:`. */
22
- interface EntityAccessPolicies {
23
- read?: SExpr;
24
- create?: SExpr;
25
- update?: SExpr;
26
- delete?: SExpr;
27
- }
28
- /** Every entity's access policies, keyed by entity name. */
29
- declare function entityAccessTable(schema: OrbitalSchema): Map<string, EntityAccessPolicies>;
30
- /** One entity's access policies, or `undefined` when it declares none. */
31
- declare function entityAccessPolicies(schema: OrbitalSchema, entityName: string): EntityAccessPolicies | undefined;
32
-
33
- export { type EntityAccessPolicies as E, entityAccessTable as a, entityAccessPolicies as e };