@nextera.one/axis-server-sdk 2.3.17 → 2.3.19

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-D4Oz7vc1.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-BCFbHQxo.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-DwBRLF9t.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-BsnV_K_l.js';
2
2
  import '../axis-sensor-BLUemDiZ.js';
3
3
  import 'zod';
4
4
  import '@nextera.one/axis-protocol';
@@ -150,6 +150,7 @@ __export(constants_exports, {
150
150
  NCERT_SIG: () => import_axis_protocol.NCERT_SIG,
151
151
  PROOF_CAPSULE: () => import_axis_protocol.PROOF_CAPSULE,
152
152
  PROOF_JWT: () => import_axis_protocol.PROOF_JWT,
153
+ PROOF_KINDS: () => import_axis_protocol.PROOF_KINDS,
153
154
  PROOF_LOOM: () => import_axis_protocol.PROOF_LOOM,
154
155
  PROOF_MTLS: () => import_axis_protocol.PROOF_MTLS,
155
156
  PROOF_NONE: () => import_axis_protocol.PROOF_NONE,
@@ -471,6 +472,21 @@ function Axis() {
471
472
  Reflect.defineMetadata(AXIS_META_KEY, { entry: true }, target);
472
473
  };
473
474
  }
475
+ function AxisStream(options = {}) {
476
+ return (target) => {
477
+ Reflect.defineMetadata(
478
+ AXIS_STREAM_META_KEY,
479
+ {
480
+ entry: true,
481
+ transport: "stream",
482
+ role: "entry",
483
+ path: options.path,
484
+ protocol: options.protocol
485
+ },
486
+ target
487
+ );
488
+ };
489
+ }
474
490
  function AxisPublic() {
475
491
  return (target, propertyKey, descriptor) => {
476
492
  if (propertyKey !== void 0) {
@@ -513,11 +529,12 @@ function AxisRateLimit(config) {
513
529
  return descriptor;
514
530
  };
515
531
  }
516
- 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;
532
+ 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;
517
533
  var init_intent_policy_decorator = __esm({
518
534
  "src/decorators/intent-policy.decorator.ts"() {
519
535
  import_reflect_metadata4 = require("reflect-metadata");
520
536
  AXIS_META_KEY = "axis:axis";
537
+ AXIS_STREAM_META_KEY = "axis:stream";
521
538
  SENSITIVITY_METADATA_KEY = "axis:sensitivity";
522
539
  CONTRACT_METADATA_KEY = "axis:contract";
523
540
  REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
@@ -10872,6 +10889,7 @@ __export(index_exports, {
10872
10889
  AXIS_OPCODES: () => AXIS_OPCODES,
10873
10890
  AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
10874
10891
  AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
10892
+ AXIS_STREAM_META_KEY: () => AXIS_STREAM_META_KEY,
10875
10893
  AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
10876
10894
  AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
10877
10895
  AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
@@ -10891,6 +10909,7 @@ __export(index_exports, {
10891
10909
  AxisRateLimit: () => AxisRateLimit,
10892
10910
  AxisResponseDto: () => import_axis_response.AxisResponseDto,
10893
10911
  AxisSensorChainService: () => AxisSensorChainService,
10912
+ AxisStream: () => AxisStream,
10894
10913
  AxisTlvDto: () => AxisTlvDto,
10895
10914
  BAND: () => BAND,
10896
10915
  BodyProfile: () => BodyProfile2,
@@ -10963,6 +10982,7 @@ __export(index_exports, {
10963
10982
  PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
10964
10983
  PROOF_CAPSULE: () => import_axis_protocol.PROOF_CAPSULE,
10965
10984
  PROOF_JWT: () => import_axis_protocol.PROOF_JWT,
10985
+ PROOF_KINDS: () => import_axis_protocol.PROOF_KINDS,
10966
10986
  PROOF_LOOM: () => import_axis_protocol.PROOF_LOOM,
10967
10987
  PROOF_MTLS: () => import_axis_protocol.PROOF_MTLS,
10968
10988
  PROOF_NONE: () => import_axis_protocol.PROOF_NONE,
@@ -12129,6 +12149,7 @@ var init_axis_schemas = __esm({
12129
12149
  "src/schemas/axis-schemas.ts"() {
12130
12150
  z2 = __toESM(require("zod"));
12131
12151
  init_axis_bin();
12152
+ init_constants();
12132
12153
  SensorDecisionZ = z2.union([
12133
12154
  z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
12134
12155
  z2.object({
@@ -12158,18 +12179,7 @@ var init_axis_schemas = __esm({
12158
12179
  isFailure: z2.boolean().optional()
12159
12180
  });
12160
12181
  ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
12161
- ProofKindZ = z2.enum([
12162
- "NONE",
12163
- "ANONYMOUS",
12164
- "PASSPORT",
12165
- "CAPSULE",
12166
- "JWT",
12167
- "CONTRACT",
12168
- "WITNESS",
12169
- "MTLS",
12170
- "DEVICE",
12171
- "AUTHORIZED"
12172
- ]);
12182
+ ProofKindZ = z2.enum(import_axis_protocol.PROOF_KINDS);
12173
12183
  AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
12174
12184
  ProofPresenceInputZ = z2.object({
12175
12185
  profile: AccessProfileZ,