@highflame/policy 2.1.39 → 2.1.40
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/decision-effects.gen.d.ts +8 -0
- package/dist/decision-effects.gen.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DecisionEffect: {
|
|
2
|
+
readonly StepUp: "step_up";
|
|
3
|
+
readonly Defer: "defer";
|
|
4
|
+
readonly Modify: "modify";
|
|
5
|
+
};
|
|
6
|
+
export type DecisionEffect = (typeof DecisionEffect)[keyof typeof DecisionEffect];
|
|
7
|
+
/** Every legal decision effect, in canonical order. */
|
|
8
|
+
export declare const AllDecisionEffects: DecisionEffect[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Code generated by highflame-policy-codegen. DO NOT EDIT.
|
|
2
|
+
// Source: ALLOWED_DECISION_EFFECTS in codegen/src/lib.rs
|
|
3
|
+
//
|
|
4
|
+
// Canonical decision-effect vocabulary. Studio's policy editor and any
|
|
5
|
+
// other TypeScript consumer should import these symbols rather than
|
|
6
|
+
// hard-coding the string literals.
|
|
7
|
+
export const DecisionEffect = {
|
|
8
|
+
StepUp: "step_up",
|
|
9
|
+
Defer: "defer",
|
|
10
|
+
Modify: "modify",
|
|
11
|
+
};
|
|
12
|
+
/** Every legal decision effect, in canonical order. */
|
|
13
|
+
export const AllDecisionEffects = [
|
|
14
|
+
DecisionEffect.StepUp,
|
|
15
|
+
DecisionEffect.Defer,
|
|
16
|
+
DecisionEffect.Modify,
|
|
17
|
+
];
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './entities.gen.js';
|
|
|
2
2
|
export * from './actions.gen.js';
|
|
3
3
|
export * from './context.gen.js';
|
|
4
4
|
export * from './schema.gen.js';
|
|
5
|
+
export * from './decision-effects.gen.js';
|
|
5
6
|
export * from './aarm-annotations.gen.js';
|
|
6
7
|
export * from './engine.js';
|
|
7
8
|
export * from './builder.js';
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,9 @@ export * from './entities.gen.js';
|
|
|
7
7
|
export * from './actions.gen.js';
|
|
8
8
|
export * from './context.gen.js';
|
|
9
9
|
export * from './schema.gen.js';
|
|
10
|
+
// Canonical decision-effect vocabulary (AARM R4 Wave A). Always emitted —
|
|
11
|
+
// source is ALLOWED_DECISION_EFFECTS in codegen/src/lib.rs, not annotations.json.
|
|
12
|
+
export * from './decision-effects.gen.js';
|
|
10
13
|
// AARM-aware annotation registry (typed Cedar annotation vocabulary
|
|
11
14
|
// Shield interprets at decision time; Studio/Admin use for lint).
|
|
12
15
|
export * from './aarm-annotations.gen.js';
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './entities.gen.js';
|
|
|
2
2
|
export * from './actions.gen.js';
|
|
3
3
|
export * from './context.gen.js';
|
|
4
4
|
export * from './schema.gen.js';
|
|
5
|
+
export * from './decision-effects.gen.js';
|
|
5
6
|
export * from './aarm-annotations.gen.js';
|
|
6
7
|
export * from './builder.js';
|
|
7
8
|
export * from './errors.js';
|
package/dist/types.js
CHANGED
|
@@ -9,6 +9,9 @@ export * from './entities.gen.js';
|
|
|
9
9
|
export * from './actions.gen.js';
|
|
10
10
|
export * from './context.gen.js';
|
|
11
11
|
export * from './schema.gen.js';
|
|
12
|
+
// Canonical decision-effect vocabulary (browser-safe). Studio's Monaco
|
|
13
|
+
// policy editor imports these typed symbols rather than string literals.
|
|
14
|
+
export * from './decision-effects.gen.js';
|
|
12
15
|
// AARM-aware annotation registry (browser-safe — Studio uses this
|
|
13
16
|
// for Monaco autocomplete + lint of @step_up_required / @defer_* keys).
|
|
14
17
|
export * from './aarm-annotations.gen.js';
|