@nextera.one/axis-server-sdk 2.3.16 → 2.3.18

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,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-CQGfX-P_.mjs';
1
+ export { o as AccessProfileResolverSensor, a2 as BodyBudgetSensor, a5 as CapabilityEnforcementSensor, aa as ChunkHashSensor, ad as EntropySensor, af as ExecutionTimeoutSensor, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, an as IntentAllowlistSensor, aq as IntentRegistrySensor, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aE as ReceiptPolicySensor, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aM as RiskSignalCollector, aO as SchemaValidationSensor, aQ as StreamScopeSensor, aR as TLVParseSensor, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor } from '../index-Bb2pRr93.mjs';
2
2
  import '../axis-sensor-BLUemDiZ.mjs';
3
3
  import 'zod';
4
4
  import '@nextera.one/axis-protocol';
@@ -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-DBEYhMJc.js';
1
+ export { o as AccessProfileResolverSensor, a2 as BodyBudgetSensor, a5 as CapabilityEnforcementSensor, aa as ChunkHashSensor, ad as EntropySensor, af as ExecutionTimeoutSensor, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, an as IntentAllowlistSensor, aq as IntentRegistrySensor, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aE as ReceiptPolicySensor, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aM as RiskSignalCollector, aO as SchemaValidationSensor, aQ as StreamScopeSensor, aR as TLVParseSensor, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor } from '../index-Q8wrM2PV.js';
2
2
  import '../axis-sensor-BLUemDiZ.js';
3
3
  import 'zod';
4
4
  import '@nextera.one/axis-protocol';
@@ -393,10 +393,7 @@ function appendRequiredProof(target, propertyKey, proof) {
393
393
  REQUIRED_PROOF_METADATA_KEY,
394
394
  target,
395
395
  propertyKey
396
- ) ?? [] : Reflect.getMetadata(
397
- REQUIRED_PROOF_METADATA_KEY,
398
- target
399
- ) ?? [];
396
+ ) ?? [] : Reflect.getMetadata(REQUIRED_PROOF_METADATA_KEY, target) ?? [];
400
397
  const merged = existing.includes(proof) ? existing : [...existing, proof];
401
398
  if (propertyKey !== void 0) {
402
399
  Reflect.defineMetadata(
@@ -474,6 +471,21 @@ function Axis() {
474
471
  Reflect.defineMetadata(AXIS_META_KEY, { entry: true }, target);
475
472
  };
476
473
  }
474
+ function AxisStream(options = {}) {
475
+ return (target) => {
476
+ Reflect.defineMetadata(
477
+ AXIS_STREAM_META_KEY,
478
+ {
479
+ entry: true,
480
+ transport: "stream",
481
+ role: "entry",
482
+ path: options.path,
483
+ protocol: options.protocol
484
+ },
485
+ target
486
+ );
487
+ };
488
+ }
477
489
  function AxisPublic() {
478
490
  return (target, propertyKey, descriptor) => {
479
491
  if (propertyKey !== void 0) {
@@ -516,11 +528,12 @@ function AxisRateLimit(config) {
516
528
  return descriptor;
517
529
  };
518
530
  }
519
- var import_reflect_metadata4, AXIS_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
531
+ var import_reflect_metadata4, AXIS_META_KEY, AXIS_STREAM_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
520
532
  var init_intent_policy_decorator = __esm({
521
533
  "src/decorators/intent-policy.decorator.ts"() {
522
534
  import_reflect_metadata4 = require("reflect-metadata");
523
535
  AXIS_META_KEY = "axis:axis";
536
+ AXIS_STREAM_META_KEY = "axis:stream";
524
537
  SENSITIVITY_METADATA_KEY = "axis:sensitivity";
525
538
  CONTRACT_METADATA_KEY = "axis:contract";
526
539
  REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
@@ -2797,7 +2810,9 @@ var init_intent_router = __esm({
2797
2810
  */
2798
2811
  register(intent, handler) {
2799
2812
  if (this.handlers.has(intent)) {
2800
- this.logger.warn(`Intent ${intent} is already registered; replacing handler`);
2813
+ this.logger.warn(
2814
+ `Intent ${intent} is already registered; replacing handler`
2815
+ );
2801
2816
  }
2802
2817
  this.handlers.set(intent, handler);
2803
2818
  if (typeof handler === "function" && handler.name) {
@@ -3068,7 +3083,9 @@ var init_intent_router = __esm({
3068
3083
  body: bodyRes
3069
3084
  };
3070
3085
  }
3071
- throw new Error(`Handler for ${intent} does not implement handle or execute`);
3086
+ throw new Error(
3087
+ `Handler for ${intent} does not implement handle or execute`
3088
+ );
3072
3089
  }
3073
3090
  logIntent(intent, start, ok, error) {
3074
3091
  const diff = process.hrtime(start);
@@ -3776,6 +3793,7 @@ var init_intent_router = __esm({
3776
3793
  intent: meta.intent,
3777
3794
  version: 1,
3778
3795
  bodyProfile: meta.bodyProfile || "TLV_MAP",
3796
+ dtoName: meta.dto.name || void 0,
3779
3797
  fields: extracted.fields.map((f) => ({
3780
3798
  name: f.name,
3781
3799
  tlv: f.tag,
@@ -10870,6 +10888,7 @@ __export(index_exports, {
10870
10888
  AXIS_OPCODES: () => AXIS_OPCODES,
10871
10889
  AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
10872
10890
  AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
10891
+ AXIS_STREAM_META_KEY: () => AXIS_STREAM_META_KEY,
10873
10892
  AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
10874
10893
  AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
10875
10894
  AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
@@ -10889,6 +10908,7 @@ __export(index_exports, {
10889
10908
  AxisRateLimit: () => AxisRateLimit,
10890
10909
  AxisResponseDto: () => import_axis_response.AxisResponseDto,
10891
10910
  AxisSensorChainService: () => AxisSensorChainService,
10911
+ AxisStream: () => AxisStream,
10892
10912
  AxisTlvDto: () => AxisTlvDto,
10893
10913
  BAND: () => BAND,
10894
10914
  BodyProfile: () => BodyProfile2,