@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.mjs CHANGED
@@ -892,6 +892,7 @@ __export(constants_exports, {
892
892
  NCERT_SIG: () => NCERT_SIG,
893
893
  PROOF_CAPSULE: () => PROOF_CAPSULE,
894
894
  PROOF_JWT: () => PROOF_JWT,
895
+ PROOF_KINDS: () => PROOF_KINDS,
895
896
  PROOF_LOOM: () => PROOF_LOOM,
896
897
  PROOF_MTLS: () => PROOF_MTLS,
897
898
  PROOF_NONE: () => PROOF_NONE,
@@ -986,6 +987,7 @@ import {
986
987
  PROOF_MTLS,
987
988
  PROOF_LOOM,
988
989
  PROOF_WITNESS,
990
+ PROOF_KINDS,
989
991
  ProofType,
990
992
  BodyProfile,
991
993
  ERR_INVALID_PACKET,
@@ -5548,7 +5550,6 @@ function buildPacket(hdr, body, sig, flags = 0) {
5548
5550
  const nonce = hm.get(T.NONCE)?.[0];
5549
5551
  const tsMs = asBigint64BE(hm.get(T.TS_MS)?.[0]);
5550
5552
  if (!intent) throw new Error("PACKET_MISSING_INTENT");
5551
- if (!actorId) throw new Error("PACKET_MISSING_ACTOR_ID");
5552
5553
  if (!nonce || nonce.length < 16 || nonce.length > 32)
5553
5554
  throw new Error("PACKET_BAD_NONCE");
5554
5555
  if (!pid) throw new Error("PACKET_MISSING_PID");
@@ -11825,6 +11826,7 @@ var SensorDecisionZ, SensorDecisionWithMetadataZ, CountryBlockSensorInputZ, Coun
11825
11826
  var init_axis_schemas = __esm({
11826
11827
  "src/schemas/axis-schemas.ts"() {
11827
11828
  init_axis_bin();
11829
+ init_constants();
11828
11830
  SensorDecisionZ = z2.union([
11829
11831
  z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
11830
11832
  z2.object({
@@ -11854,18 +11856,7 @@ var init_axis_schemas = __esm({
11854
11856
  isFailure: z2.boolean().optional()
11855
11857
  });
11856
11858
  ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
11857
- ProofKindZ = z2.enum([
11858
- "NONE",
11859
- "ANONYMOUS",
11860
- "PASSPORT",
11861
- "CAPSULE",
11862
- "JWT",
11863
- "CONTRACT",
11864
- "WITNESS",
11865
- "MTLS",
11866
- "DEVICE",
11867
- "AUTHORIZED"
11868
- ]);
11859
+ ProofKindZ = z2.enum(PROOF_KINDS);
11869
11860
  AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
11870
11861
  ProofPresenceInputZ = z2.object({
11871
11862
  profile: AccessProfileZ,
@@ -13226,6 +13217,7 @@ __export(index_exports, {
13226
13217
  PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
13227
13218
  PROOF_CAPSULE: () => PROOF_CAPSULE,
13228
13219
  PROOF_JWT: () => PROOF_JWT,
13220
+ PROOF_KINDS: () => PROOF_KINDS,
13229
13221
  PROOF_LOOM: () => PROOF_LOOM,
13230
13222
  PROOF_MTLS: () => PROOF_MTLS,
13231
13223
  PROOF_NONE: () => PROOF_NONE,
@@ -13631,6 +13623,7 @@ export {
13631
13623
  PROOF_CAPABILITIES,
13632
13624
  PROOF_CAPSULE,
13633
13625
  PROOF_JWT,
13626
+ PROOF_KINDS,
13634
13627
  PROOF_LOOM,
13635
13628
  PROOF_MTLS,
13636
13629
  PROOF_NONE,