@nextera.one/axis-server-sdk 2.3.6 → 2.3.7
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/{axis-sensor-DMW4rfRg.d.mts → axis-sensor-BLUemDiZ.d.mts} +1 -1
- package/dist/{axis-sensor-DMW4rfRg.d.ts → axis-sensor-BLUemDiZ.d.ts} +1 -1
- package/dist/cce/index.d.mts +10 -10
- package/dist/cce/index.d.ts +10 -10
- package/dist/cce/index.js +42 -42
- package/dist/cce/index.js.map +1 -1
- package/dist/cce/index.mjs +42 -42
- package/dist/cce/index.mjs.map +1 -1
- package/dist/{cce-pipeline-CBt56guN.d.mts → cce-pipeline-By7ps8_F.d.mts} +1 -1
- package/dist/{cce-pipeline-BJ-F1isr.d.ts → cce-pipeline-CVeMpuKr.d.ts} +1 -1
- package/dist/{index-CffTWMtI.d.mts → index-Bdahn8mq.d.mts} +21 -21
- package/dist/{index-DiuKGnQw.d.mts → index-CXewlhg-.d.mts} +1 -1
- package/dist/{index-DMjzq8YO.d.ts → index-ChuwP1RU.d.ts} +1 -1
- package/dist/{index-CqAU2zlr.d.ts → index-DRnTsYrk.d.ts} +21 -21
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +39 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -92
- package/dist/index.mjs.map +1 -1
- package/dist/needle/index.d.mts +2 -2
- package/dist/needle/index.d.ts +2 -2
- package/dist/needle/index.js.map +1 -1
- package/dist/needle/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +3 -3
- package/dist/sensors/index.d.ts +3 -3
- package/dist/sensors/index.js +39 -92
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +39 -92
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cce/index.mjs
CHANGED
|
@@ -732,13 +732,13 @@ var CceEnvelopeValidationSensor = class {
|
|
|
732
732
|
this.order = 5;
|
|
733
733
|
this.phase = "PRE_DECODE";
|
|
734
734
|
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
reason: "Not a CCE envelope"
|
|
740
|
-
};
|
|
735
|
+
// supports() is a synchronous applicability gate.
|
|
736
|
+
// Return false to skip this sensor without producing a denial.
|
|
737
|
+
supports(input) {
|
|
738
|
+
return input.metadata?.cce === true || input.metadata?.contentType === "application/axis-cce";
|
|
741
739
|
}
|
|
740
|
+
// run() executes only after supports() passes.
|
|
741
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
742
742
|
async run(input) {
|
|
743
743
|
const envelope = input.metadata?.cceEnvelope;
|
|
744
744
|
if (!envelope) {
|
|
@@ -824,13 +824,13 @@ var CceClientSignatureSensor = class {
|
|
|
824
824
|
this.order = 45;
|
|
825
825
|
this.phase = "POST_DECODE";
|
|
826
826
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
reason: "CCE envelope not validated"
|
|
832
|
-
};
|
|
827
|
+
// supports() is a synchronous applicability gate.
|
|
828
|
+
// Return false to skip this sensor without producing a denial.
|
|
829
|
+
supports(input) {
|
|
830
|
+
return input.metadata?.cceEnvelopeValid === true;
|
|
833
831
|
}
|
|
832
|
+
// run() executes only after supports() passes.
|
|
833
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
834
834
|
async run(input) {
|
|
835
835
|
const envelope = input.metadata?.cceEnvelope;
|
|
836
836
|
if (!envelope) {
|
|
@@ -905,13 +905,13 @@ var CceCapsuleVerificationSensor = class {
|
|
|
905
905
|
this.order = 50;
|
|
906
906
|
this.phase = "POST_DECODE";
|
|
907
907
|
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
reason: "CCE capsule not verified"
|
|
913
|
-
};
|
|
908
|
+
// supports() is a synchronous applicability gate.
|
|
909
|
+
// Return false to skip this sensor without producing a denial.
|
|
910
|
+
supports(input) {
|
|
911
|
+
return input.metadata?.cceEnvelopeValid === true;
|
|
914
912
|
}
|
|
913
|
+
// run() executes only after supports() passes.
|
|
914
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
915
915
|
async run(input) {
|
|
916
916
|
const capsule = input.metadata?.cceEnvelope?.capsule;
|
|
917
917
|
if (!capsule) {
|
|
@@ -1023,13 +1023,13 @@ var CceTpsWindowSensor = class {
|
|
|
1023
1023
|
this.order = 92;
|
|
1024
1024
|
this.phase = "POST_DECODE";
|
|
1025
1025
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
reason: "CCE capsule not verified"
|
|
1031
|
-
};
|
|
1026
|
+
// supports() is a synchronous applicability gate.
|
|
1027
|
+
// Return false to skip this sensor without producing a denial.
|
|
1028
|
+
supports(input) {
|
|
1029
|
+
return input.metadata?.cceCapsuleVerified === true;
|
|
1032
1030
|
}
|
|
1031
|
+
// run() executes only after supports() passes.
|
|
1032
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
1033
1033
|
async run(input) {
|
|
1034
1034
|
const capsule = input.metadata?.cceCapsule;
|
|
1035
1035
|
if (!capsule) {
|
|
@@ -1080,13 +1080,13 @@ var CceAudienceIntentBindingSensor = class {
|
|
|
1080
1080
|
this.order = 95;
|
|
1081
1081
|
this.phase = "POST_DECODE";
|
|
1082
1082
|
}
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
reason: "CCE capsule not verified"
|
|
1088
|
-
};
|
|
1083
|
+
// supports() is a synchronous applicability gate.
|
|
1084
|
+
// Return false to skip this sensor without producing a denial.
|
|
1085
|
+
supports(input) {
|
|
1086
|
+
return input.metadata?.cceCapsuleVerified === true;
|
|
1089
1087
|
}
|
|
1088
|
+
// run() executes only after supports() passes.
|
|
1089
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
1090
1090
|
async run(input) {
|
|
1091
1091
|
const capsule = input.metadata?.cceCapsule;
|
|
1092
1092
|
const envelope = input.metadata?.cceEnvelope;
|
|
@@ -1181,13 +1181,13 @@ var CceReplayProtectionSensor = class {
|
|
|
1181
1181
|
this.phase = "POST_DECODE";
|
|
1182
1182
|
this.nonceTtlMs = options?.nonceTtlMs ?? 5 * 60 * 1e3;
|
|
1183
1183
|
}
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
reason: "CCE capsule not verified"
|
|
1189
|
-
};
|
|
1184
|
+
// supports() is a synchronous applicability gate.
|
|
1185
|
+
// Return false to skip this sensor without producing a denial.
|
|
1186
|
+
supports(input) {
|
|
1187
|
+
return input.metadata?.cceCapsuleVerified === true;
|
|
1190
1188
|
}
|
|
1189
|
+
// run() executes only after supports() passes.
|
|
1190
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
1191
1191
|
async run(input) {
|
|
1192
1192
|
const capsule = input.metadata?.cceCapsule;
|
|
1193
1193
|
const envelope = input.metadata?.cceEnvelope;
|
|
@@ -1265,13 +1265,13 @@ var CcePayloadDecryptionSensor = class {
|
|
|
1265
1265
|
this.order = 145;
|
|
1266
1266
|
this.phase = "POST_DECODE";
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
reason: "CCE preconditions not met"
|
|
1273
|
-
};
|
|
1268
|
+
// supports() is a synchronous applicability gate.
|
|
1269
|
+
// Return false to skip this sensor without producing a denial.
|
|
1270
|
+
supports(input) {
|
|
1271
|
+
return input.metadata?.cceEnvelopeValid === true && input.metadata?.cceClientSigVerified === true && input.metadata?.cceCapsuleVerified === true && input.metadata?.cceReplayClean === true;
|
|
1274
1272
|
}
|
|
1273
|
+
// run() executes only after supports() passes.
|
|
1274
|
+
// Return the actual ALLOW/DENY/FLAG/THROTTLE decision here.
|
|
1275
1275
|
async run(input) {
|
|
1276
1276
|
const envelope = input.metadata?.cceEnvelope;
|
|
1277
1277
|
if (!envelope) {
|