@nextera.one/axis-server-sdk 2.3.13 → 2.3.15
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-B0HcQRif.d.ts → index-Dd-WVBj9.d.ts} +1 -0
- package/dist/{index-C5NXMEth.d.mts → index-ogUOoBI-.d.mts} +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +27 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -10
- 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 +27 -10
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +27 -10
- 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-ogUOoBI-.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-Dd-WVBj9.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
|
@@ -2734,6 +2734,15 @@ var init_intent_router = __esm({
|
|
|
2734
2734
|
const resolved = this.resolveIntentAlias(intent);
|
|
2735
2735
|
return this.handlers.has(resolved) || isBuiltinIntent(resolved);
|
|
2736
2736
|
}
|
|
2737
|
+
/**
|
|
2738
|
+
* True only when the application registered a concrete handler.
|
|
2739
|
+
* Unlike `has()`, this intentionally ignores SDK built-in fallbacks so
|
|
2740
|
+
* discovery layers can override simple built-ins such as `system.ping`.
|
|
2741
|
+
*/
|
|
2742
|
+
hasRegisteredHandler(intent) {
|
|
2743
|
+
const resolved = this.resolveIntentAlias(intent);
|
|
2744
|
+
return this.handlers.has(resolved);
|
|
2745
|
+
}
|
|
2737
2746
|
getRegisteredIntents() {
|
|
2738
2747
|
return [...BUILTIN_INTENTS, ...this.handlers.keys()];
|
|
2739
2748
|
}
|
|
@@ -2853,9 +2862,14 @@ var init_intent_router = __esm({
|
|
|
2853
2862
|
* Routes a decoded AXIS frame to the appropriate handler.
|
|
2854
2863
|
*
|
|
2855
2864
|
* **Precedence:**
|
|
2856
|
-
* 1.
|
|
2857
|
-
* 2.
|
|
2858
|
-
* 3.
|
|
2865
|
+
* 1. SDK meta-intents (`CHAIN.EXEC`, `INTENT.EXEC`)
|
|
2866
|
+
* 2. Dynamically registered handlers from modules
|
|
2867
|
+
* 3. Simple SDK built-in fallback (`system.ping`, `public.ping`, `system.time`, `system.echo`)
|
|
2868
|
+
*
|
|
2869
|
+
* Registered app handlers intentionally win over simple built-ins. This lets
|
|
2870
|
+
* applications attach sensors, rate limits, and custom responses to intents
|
|
2871
|
+
* like `system.ping` while keeping a default fallback for apps that do not
|
|
2872
|
+
* register their own handler.
|
|
2859
2873
|
*
|
|
2860
2874
|
* @param {AxisFrame} frame - The validated and decoded binary frame
|
|
2861
2875
|
* @returns {Promise<AxisEffect>} The resulting effect of the execution
|
|
@@ -2909,6 +2923,16 @@ var init_intent_router = __esm({
|
|
|
2909
2923
|
* This keeps route() focused on observer/error lifecycle concerns.
|
|
2910
2924
|
*/
|
|
2911
2925
|
async routeResolvedIntent(intent, frame) {
|
|
2926
|
+
if (isChainExecIntent(intent)) {
|
|
2927
|
+
const chainRequest = this.parseChainRequestBody(frame.body);
|
|
2928
|
+
return this.executeChainRequest(frame, chainRequest);
|
|
2929
|
+
}
|
|
2930
|
+
if (isIntentExecIntent(intent)) {
|
|
2931
|
+
return this.routeIntentExec(frame);
|
|
2932
|
+
}
|
|
2933
|
+
if (this.handlers.has(intent)) {
|
|
2934
|
+
return this.routeRegisteredIntent(intent, frame);
|
|
2935
|
+
}
|
|
2912
2936
|
const builtinEffect = routeSystemBuiltinIntent(
|
|
2913
2937
|
intent,
|
|
2914
2938
|
frame.body,
|
|
@@ -2920,13 +2944,6 @@ var init_intent_router = __esm({
|
|
|
2920
2944
|
}
|
|
2921
2945
|
return builtinEffect;
|
|
2922
2946
|
}
|
|
2923
|
-
if (isChainExecIntent(intent)) {
|
|
2924
|
-
const chainRequest = this.parseChainRequestBody(frame.body);
|
|
2925
|
-
return this.executeChainRequest(frame, chainRequest);
|
|
2926
|
-
}
|
|
2927
|
-
if (isIntentExecIntent(intent)) {
|
|
2928
|
-
return this.routeIntentExec(frame);
|
|
2929
|
-
}
|
|
2930
2947
|
return this.routeRegisteredIntent(intent, frame);
|
|
2931
2948
|
}
|
|
2932
2949
|
/**
|