@mettlecast/domain-runtime 0.2.59 → 0.2.60
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/README.md +57 -40
- package/dist/primitives/action.d.ts +81 -8
- package/dist/primitives/action.js +68 -2
- package/dist/runtime/action-executor.d.ts +164 -0
- package/dist/runtime/action-executor.js +408 -0
- package/dist/runtime/action-handler.d.ts +110 -6
- package/dist/runtime/action-handler.js +110 -10
- package/dist/runtime/actions.d.ts +65 -5
- package/dist/runtime/actions.js +118 -13
- package/dist/runtime/audit.d.ts +23 -3
- package/dist/runtime/audit.js +20 -3
- package/dist/runtime/db.d.ts +23 -4
- package/dist/runtime/db.js +27 -6
- package/dist/runtime/error-formatter.d.ts +63 -0
- package/dist/runtime/error-formatter.js +68 -1
- package/dist/runtime/exposed-action-api-handler.d.ts +88 -0
- package/dist/runtime/exposed-action-api-handler.js +288 -0
- package/dist/runtime/extractors.d.ts +12 -0
- package/dist/runtime/extractors.js +21 -13
- package/dist/runtime/files.d.ts +8 -0
- package/dist/runtime/files.js +76 -8
- package/dist/runtime/hydrate.js +17 -2
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +18 -0
- package/dist/runtime/observability-bindings.d.ts +110 -0
- package/dist/runtime/observability-bindings.js +94 -0
- package/dist/runtime/store.d.ts +8 -0
- package/dist/runtime/store.js +29 -0
- package/dist/runtime/tracer.d.ts +1 -1
- package/dist/runtime/tracer.js +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/rls.d.ts +31 -0
- package/dist/schema/rls.js +44 -0
- package/dist/types/tenant.d.ts +12 -0
- package/package.json +1 -1
package/dist/types/tenant.d.ts
CHANGED
|
@@ -8,6 +8,18 @@ export interface Actor {
|
|
|
8
8
|
email?: string;
|
|
9
9
|
/** Tenant the actor belongs to. */
|
|
10
10
|
tenantId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Role claims attached to the actor (e.g. `['sys_admin']`).
|
|
13
|
+
* Populated from JWT `cognito:groups` / `custom:roles` claims.
|
|
14
|
+
* Optional — actors from non-user sources (system, action, schedule)
|
|
15
|
+
* may not carry roles.
|
|
16
|
+
*/
|
|
17
|
+
roles?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Scope claims attached to the actor (e.g. Cognito OAuth scopes).
|
|
20
|
+
* Optional — system/derived actors may not carry scopes.
|
|
21
|
+
*/
|
|
22
|
+
scopes?: string[];
|
|
11
23
|
}
|
|
12
24
|
/** Tenant record. Always populated; never null in a valid request. */
|
|
13
25
|
export interface Tenant {
|