@nextera.one/axis-server-sdk 2.3.15 → 2.3.16
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-ogUOoBI-.d.mts → index-CQGfX-P_.d.mts} +2 -0
- package/dist/{index-Dd-WVBj9.d.ts → index-DBEYhMJc.d.ts} +2 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +26 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -3
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +1 -1
- package/dist/sensors/index.d.ts +1 -1
- package/dist/sensors/index.js +26 -3
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +26 -3
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/sensors/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { n as AccessProfileResolverSensor, $ as BodyBudgetSensor, a2 as CapabilityEnforcementSensor, a7 as ChunkHashSensor, aa as EntropySensor, ac as ExecutionTimeoutSensor, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ak as IntentAllowlistSensor, an as IntentRegistrySensor, ap as LawArticlePresenceMode, aq as LawArticlePresenceSensor, ar as LawArticlePresenceSensorOptions, as as LawEvaluationSensor, ay as ProofPresenceSensor, az as ProtocolStrictSensor, aB as ReceiptPolicySensor, aG as RiskGateSensor, aH as RiskGateSensorOptions, aJ as RiskSignalCollector, aL as SchemaValidationSensor, aN as StreamScopeSensor, aO as TLVParseSensor, aR as TickAuthCapsuleRef, aS as TickAuthSensor, aT as TickAuthSensorOptions, aU as TickAuthVerifier, b3 as TpsSensor, b4 as TpsSensorOptions, b5 as VarintHardeningSensor } from '../index-
|
|
1
|
+
export { n as AccessProfileResolverSensor, $ as BodyBudgetSensor, a2 as CapabilityEnforcementSensor, a7 as ChunkHashSensor, aa as EntropySensor, ac as ExecutionTimeoutSensor, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ak as IntentAllowlistSensor, an as IntentRegistrySensor, ap as LawArticlePresenceMode, aq as LawArticlePresenceSensor, ar as LawArticlePresenceSensorOptions, as as LawEvaluationSensor, ay as ProofPresenceSensor, az as ProtocolStrictSensor, aB as ReceiptPolicySensor, aG as RiskGateSensor, aH as RiskGateSensorOptions, aJ as RiskSignalCollector, aL as SchemaValidationSensor, aN as StreamScopeSensor, aO as TLVParseSensor, aR as TickAuthCapsuleRef, aS as TickAuthSensor, aT as TickAuthSensorOptions, aU as TickAuthVerifier, b3 as TpsSensor, b4 as TpsSensorOptions, b5 as VarintHardeningSensor } from '../index-CQGfX-P_.mjs';
|
|
2
2
|
import '../axis-sensor-BLUemDiZ.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@nextera.one/axis-protocol';
|
package/dist/sensors/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { n as AccessProfileResolverSensor, $ as BodyBudgetSensor, a2 as CapabilityEnforcementSensor, a7 as ChunkHashSensor, aa as EntropySensor, ac as ExecutionTimeoutSensor, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ak as IntentAllowlistSensor, an as IntentRegistrySensor, ap as LawArticlePresenceMode, aq as LawArticlePresenceSensor, ar as LawArticlePresenceSensorOptions, as as LawEvaluationSensor, ay as ProofPresenceSensor, az as ProtocolStrictSensor, aB as ReceiptPolicySensor, aG as RiskGateSensor, aH as RiskGateSensorOptions, aJ as RiskSignalCollector, aL as SchemaValidationSensor, aN as StreamScopeSensor, aO as TLVParseSensor, aR as TickAuthCapsuleRef, aS as TickAuthSensor, aT as TickAuthSensorOptions, aU as TickAuthVerifier, b3 as TpsSensor, b4 as TpsSensorOptions, b5 as VarintHardeningSensor } from '../index-
|
|
1
|
+
export { n as AccessProfileResolverSensor, $ as BodyBudgetSensor, a2 as CapabilityEnforcementSensor, a7 as ChunkHashSensor, aa as EntropySensor, ac as ExecutionTimeoutSensor, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ak as IntentAllowlistSensor, an as IntentRegistrySensor, ap as LawArticlePresenceMode, aq as LawArticlePresenceSensor, ar as LawArticlePresenceSensorOptions, as as LawEvaluationSensor, ay as ProofPresenceSensor, az as ProtocolStrictSensor, aB as ReceiptPolicySensor, aG as RiskGateSensor, aH as RiskGateSensorOptions, aJ as RiskSignalCollector, aL as SchemaValidationSensor, aN as StreamScopeSensor, aO as TLVParseSensor, aR as TickAuthCapsuleRef, aS as TickAuthSensor, aT as TickAuthSensorOptions, aU as TickAuthVerifier, b3 as TpsSensor, b4 as TpsSensorOptions, b5 as VarintHardeningSensor } from '../index-DBEYhMJc.js';
|
|
2
2
|
import '../axis-sensor-BLUemDiZ.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@nextera.one/axis-protocol';
|
package/dist/sensors/index.js
CHANGED
|
@@ -381,6 +381,13 @@ var init_capsule_policy_decorator = __esm({
|
|
|
381
381
|
});
|
|
382
382
|
|
|
383
383
|
// src/decorators/intent-policy.decorator.ts
|
|
384
|
+
function normalizeRequiredProof(proofs) {
|
|
385
|
+
if (proofs === void 0) return void 0;
|
|
386
|
+
const normalized = Array.from(
|
|
387
|
+
new Set(Array.isArray(proofs) ? proofs : [proofs])
|
|
388
|
+
);
|
|
389
|
+
return normalized.length > 0 ? normalized : void 0;
|
|
390
|
+
}
|
|
384
391
|
function appendRequiredProof(target, propertyKey, proof) {
|
|
385
392
|
const existing = propertyKey !== void 0 ? Reflect.getMetadata(
|
|
386
393
|
REQUIRED_PROOF_METADATA_KEY,
|
|
@@ -629,7 +636,12 @@ function toIntentSensorBinding(input) {
|
|
|
629
636
|
}
|
|
630
637
|
function Intent(action, options) {
|
|
631
638
|
return (target, propertyKey) => {
|
|
632
|
-
const
|
|
639
|
+
const requiredProof = normalizeRequiredProof(options?.requiredProof);
|
|
640
|
+
const metadata = {
|
|
641
|
+
intent: action,
|
|
642
|
+
...options,
|
|
643
|
+
...requiredProof ? { requiredProof } : {}
|
|
644
|
+
};
|
|
633
645
|
Reflect.defineMetadata(INTENT_METADATA_KEY, metadata, target, propertyKey);
|
|
634
646
|
if (options?.decoder) {
|
|
635
647
|
Reflect.defineMetadata(
|
|
@@ -647,6 +659,14 @@ function Intent(action, options) {
|
|
|
647
659
|
propertyKey
|
|
648
660
|
);
|
|
649
661
|
}
|
|
662
|
+
if (requiredProof) {
|
|
663
|
+
Reflect.defineMetadata(
|
|
664
|
+
REQUIRED_PROOF_METADATA_KEY,
|
|
665
|
+
requiredProof,
|
|
666
|
+
target,
|
|
667
|
+
propertyKey
|
|
668
|
+
);
|
|
669
|
+
}
|
|
650
670
|
const routes = Reflect.getMetadata(INTENT_ROUTES_KEY, target.constructor) || [];
|
|
651
671
|
routes.push({
|
|
652
672
|
action,
|
|
@@ -655,6 +675,7 @@ function Intent(action, options) {
|
|
|
655
675
|
frame: options?.frame,
|
|
656
676
|
kind: options?.kind,
|
|
657
677
|
sensitivity: options?.sensitivity,
|
|
678
|
+
requiredProof,
|
|
658
679
|
chain: options?.chain,
|
|
659
680
|
bodyProfile: options?.bodyProfile,
|
|
660
681
|
tlv: options?.tlv,
|
|
@@ -3142,9 +3163,11 @@ var init_intent_router = __esm({
|
|
|
3142
3163
|
if (contract) {
|
|
3143
3164
|
this.intentContracts.set(intent, contract);
|
|
3144
3165
|
}
|
|
3166
|
+
const inlineRequiredProof = normalizeRequiredProof(meta?.requiredProof);
|
|
3145
3167
|
const proofPolicy = resolveIntentProofPolicy(proto, methodName);
|
|
3146
|
-
|
|
3147
|
-
|
|
3168
|
+
const requiredProof = inlineRequiredProof ?? proofPolicy.requiredProof;
|
|
3169
|
+
if (requiredProof.length > 0) {
|
|
3170
|
+
this.intentRequiredProof.set(intent, requiredProof);
|
|
3148
3171
|
}
|
|
3149
3172
|
const rateLimit = Reflect.getMetadata(
|
|
3150
3173
|
AXIS_RATE_LIMIT_KEY,
|