@nextera.one/axis-server-sdk 2.3.18 → 2.3.20
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-Bb2pRr93.d.mts → index-BCFbHQxo.d.mts} +1 -14
- package/dist/{index-Q8wrM2PV.d.ts → index-BsnV_K_l.d.ts} +1 -14
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -13
- package/dist/index.mjs.map +1 -1
- package/dist/needle/index.js.map +1 -1
- package/dist/needle/index.mjs +1 -0
- package/dist/needle/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 +4 -13
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +5 -13
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/sensors/index.mjs
CHANGED
|
@@ -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,
|
|
@@ -5652,7 +5654,6 @@ function buildPacket(hdr, body, sig, flags = 0) {
|
|
|
5652
5654
|
const nonce = hm.get(T.NONCE)?.[0];
|
|
5653
5655
|
const tsMs = asBigint64BE(hm.get(T.TS_MS)?.[0]);
|
|
5654
5656
|
if (!intent) throw new Error("PACKET_MISSING_INTENT");
|
|
5655
|
-
if (!actorId) throw new Error("PACKET_MISSING_ACTOR_ID");
|
|
5656
5657
|
if (!nonce || nonce.length < 16 || nonce.length > 32)
|
|
5657
5658
|
throw new Error("PACKET_BAD_NONCE");
|
|
5658
5659
|
if (!pid) throw new Error("PACKET_MISSING_PID");
|
|
@@ -11049,6 +11050,7 @@ __export(index_exports, {
|
|
|
11049
11050
|
PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
|
|
11050
11051
|
PROOF_CAPSULE: () => PROOF_CAPSULE,
|
|
11051
11052
|
PROOF_JWT: () => PROOF_JWT,
|
|
11053
|
+
PROOF_KINDS: () => PROOF_KINDS,
|
|
11052
11054
|
PROOF_LOOM: () => PROOF_LOOM,
|
|
11053
11055
|
PROOF_MTLS: () => PROOF_MTLS,
|
|
11054
11056
|
PROOF_NONE: () => PROOF_NONE,
|
|
@@ -12215,6 +12217,7 @@ var SensorDecisionZ, SensorDecisionWithMetadataZ, CountryBlockSensorInputZ, Coun
|
|
|
12215
12217
|
var init_axis_schemas = __esm({
|
|
12216
12218
|
"src/schemas/axis-schemas.ts"() {
|
|
12217
12219
|
init_axis_bin();
|
|
12220
|
+
init_constants();
|
|
12218
12221
|
SensorDecisionZ = z2.union([
|
|
12219
12222
|
z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
|
|
12220
12223
|
z2.object({
|
|
@@ -12244,18 +12247,7 @@ var init_axis_schemas = __esm({
|
|
|
12244
12247
|
isFailure: z2.boolean().optional()
|
|
12245
12248
|
});
|
|
12246
12249
|
ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
|
|
12247
|
-
ProofKindZ = z2.enum(
|
|
12248
|
-
"NONE",
|
|
12249
|
-
"ANONYMOUS",
|
|
12250
|
-
"PASSPORT",
|
|
12251
|
-
"CAPSULE",
|
|
12252
|
-
"JWT",
|
|
12253
|
-
"CONTRACT",
|
|
12254
|
-
"WITNESS",
|
|
12255
|
-
"MTLS",
|
|
12256
|
-
"DEVICE",
|
|
12257
|
-
"AUTHORIZED"
|
|
12258
|
-
]);
|
|
12250
|
+
ProofKindZ = z2.enum(PROOF_KINDS);
|
|
12259
12251
|
AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
|
|
12260
12252
|
ProofPresenceInputZ = z2.object({
|
|
12261
12253
|
profile: AccessProfileZ,
|