@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.
@@ -156,6 +156,7 @@ __export(constants_exports, {
156
156
  NCERT_SIG: () => NCERT_SIG,
157
157
  PROOF_CAPSULE: () => PROOF_CAPSULE,
158
158
  PROOF_JWT: () => PROOF_JWT,
159
+ PROOF_KINDS: () => PROOF_KINDS,
159
160
  PROOF_LOOM: () => PROOF_LOOM,
160
161
  PROOF_MTLS: () => PROOF_MTLS,
161
162
  PROOF_NONE: () => PROOF_NONE,
@@ -250,6 +251,7 @@ import {
250
251
  PROOF_MTLS,
251
252
  PROOF_LOOM,
252
253
  PROOF_WITNESS,
254
+ PROOF_KINDS,
253
255
  ProofType,
254
256
  BodyProfile,
255
257
  ERR_INVALID_PACKET,
@@ -540,6 +542,21 @@ function Axis() {
540
542
  Reflect.defineMetadata(AXIS_META_KEY, { entry: true }, target);
541
543
  };
542
544
  }
545
+ function AxisStream(options = {}) {
546
+ return (target) => {
547
+ Reflect.defineMetadata(
548
+ AXIS_STREAM_META_KEY,
549
+ {
550
+ entry: true,
551
+ transport: "stream",
552
+ role: "entry",
553
+ path: options.path,
554
+ protocol: options.protocol
555
+ },
556
+ target
557
+ );
558
+ };
559
+ }
543
560
  function AxisPublic() {
544
561
  return (target, propertyKey, descriptor) => {
545
562
  if (propertyKey !== void 0) {
@@ -582,10 +599,11 @@ function AxisRateLimit(config) {
582
599
  return descriptor;
583
600
  };
584
601
  }
585
- var 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;
602
+ var 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;
586
603
  var init_intent_policy_decorator = __esm({
587
604
  "src/decorators/intent-policy.decorator.ts"() {
588
605
  AXIS_META_KEY = "axis:axis";
606
+ AXIS_STREAM_META_KEY = "axis:stream";
589
607
  SENSITIVITY_METADATA_KEY = "axis:sensitivity";
590
608
  CONTRACT_METADATA_KEY = "axis:contract";
591
609
  REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
@@ -10940,6 +10958,7 @@ __export(index_exports, {
10940
10958
  AXIS_OPCODES: () => AXIS_OPCODES,
10941
10959
  AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
10942
10960
  AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
10961
+ AXIS_STREAM_META_KEY: () => AXIS_STREAM_META_KEY,
10943
10962
  AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
10944
10963
  AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
10945
10964
  AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
@@ -10959,6 +10978,7 @@ __export(index_exports, {
10959
10978
  AxisRateLimit: () => AxisRateLimit,
10960
10979
  AxisResponseDto: () => import_axis_response.AxisResponseDto,
10961
10980
  AxisSensorChainService: () => AxisSensorChainService,
10981
+ AxisStream: () => AxisStream,
10962
10982
  AxisTlvDto: () => AxisTlvDto,
10963
10983
  BAND: () => BAND,
10964
10984
  BodyProfile: () => BodyProfile2,
@@ -11031,6 +11051,7 @@ __export(index_exports, {
11031
11051
  PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
11032
11052
  PROOF_CAPSULE: () => PROOF_CAPSULE,
11033
11053
  PROOF_JWT: () => PROOF_JWT,
11054
+ PROOF_KINDS: () => PROOF_KINDS,
11034
11055
  PROOF_LOOM: () => PROOF_LOOM,
11035
11056
  PROOF_MTLS: () => PROOF_MTLS,
11036
11057
  PROOF_NONE: () => PROOF_NONE,
@@ -12197,6 +12218,7 @@ var SensorDecisionZ, SensorDecisionWithMetadataZ, CountryBlockSensorInputZ, Coun
12197
12218
  var init_axis_schemas = __esm({
12198
12219
  "src/schemas/axis-schemas.ts"() {
12199
12220
  init_axis_bin();
12221
+ init_constants();
12200
12222
  SensorDecisionZ = z2.union([
12201
12223
  z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
12202
12224
  z2.object({
@@ -12226,18 +12248,7 @@ var init_axis_schemas = __esm({
12226
12248
  isFailure: z2.boolean().optional()
12227
12249
  });
12228
12250
  ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
12229
- ProofKindZ = z2.enum([
12230
- "NONE",
12231
- "ANONYMOUS",
12232
- "PASSPORT",
12233
- "CAPSULE",
12234
- "JWT",
12235
- "CONTRACT",
12236
- "WITNESS",
12237
- "MTLS",
12238
- "DEVICE",
12239
- "AUTHORIZED"
12240
- ]);
12251
+ ProofKindZ = z2.enum(PROOF_KINDS);
12241
12252
  AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
12242
12253
  ProofPresenceInputZ = z2.object({
12243
12254
  profile: AccessProfileZ,