@nextera.one/axis-server-sdk 2.2.2 → 2.2.3

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.d.mts CHANGED
@@ -40,23 +40,6 @@ interface SensorOptions {
40
40
  }
41
41
  declare function Sensor(options?: SensorOptions): ClassDecorator;
42
42
 
43
- declare const PRIORITY_ORDER_METADATA_KEY = "axis:priority-order";
44
- type AxisPriorityLevel = "HIGH" | "MEDIUM" | "LOW";
45
- type AxisPriorityLevelInput = AxisPriorityLevel | "high" | "medium" | "low" | "High" | "Medium" | "Low";
46
- interface PriorityOrderDefinition {
47
- priority: AxisPriorityLevel;
48
- order: number;
49
- }
50
- interface PriorityOrderOptions {
51
- priority?: AxisPriorityLevelInput;
52
- order?: number;
53
- }
54
- declare function getPriorityOrder(target: Function): PriorityOrderDefinition | null;
55
- declare function comparePriorityOrder(left: PriorityOrderDefinition, right: PriorityOrderDefinition): number;
56
- declare function getPriorityOrderedTargets(targets?: Iterable<Function>): Function[];
57
- declare function PriorityOrder(priorityOrOptions?: AxisPriorityLevelInput | PriorityOrderOptions, order?: number): ClassDecorator;
58
- declare const priorityOrder: typeof PriorityOrder;
59
-
60
43
  interface DtoSchema {
61
44
  fields: IntentTlvField[];
62
45
  validators: Map<number, TlvValidatorFn[]>;
@@ -797,4 +780,4 @@ declare function executeLoomPipeline(writ: Writ, publicKeyHex: string, presence:
797
780
  code: string;
798
781
  };
799
782
 
800
- export { ATS1_HDR, ATS1_SCHEMA, AXIS_EXECUTION_CONTEXT_KEY, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, Axis1DecodedFrame, type AxisPacket as AxisBinaryPacket, AxisCapsuleRef, AxisChainEnvelope, AxisChainExecutor, AxisChainResult, AxisChainStep, type AxisCrudHandler, type AxisDecoded, type AxisExecutionContext, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIntentSensorRef, AxisMediaTypes, AxisObservation, T as AxisPacketTags, AxisPartialType, type AxisPriorityLevel, type AxisPriorityLevelInput, AxisResponseDto, AxisSensorChainService, AxisTlvDto, BAND, BodyProfile, type BodyProfileValidation, BodyProfileValidator, CAPABILITIES, CHAIN_METADATA_KEY, type Capability, Chain, ChainOptions, type ChainResult, ContractViolationError, DEFAULT_TIMEOUT, type DeviceSEContext, DiskUploadFileStore, type DtoSchema, ExecutionMeter, type ExecutionMetrics, Grant, GrantCapability, GrantStatus, GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerSensors, INTENT_BODY_KEY, INTENT_REQUIREMENTS, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, IntentBody, type IntentDefinition, IntentRouter, IntentSensitivity, IntentSensors, IntentTlvField, type LoomExecutionResult, LoomReceipt, type MTLSContext, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationStreamEntry, type ObservationWitnessSummary, ObserverDispatcherService, type ObserverVerdict, PRE_DECODE_BOUNDARY, PRIORITY_ORDER_METADATA_KEY, PROOF_CAPABILITIES, PresenceChallenge, PresenceDeclaration, PresenceProof, PresenceReceipt, PresenceStatus, PresenceVerifyResult, PriorityOrder, type PriorityOrderDefinition, type PriorityOrderOptions, type ProofType, type ProofVerificationResult, ProofVerificationService, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, ResponseObserver, type ResponseObserverContext, Revocation, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, SensorDecision, SensorInput, type SensorOptions, type SensorPhase, SensorRegistry, ThreadState, TlvValidatorFn, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, Writ, WritBody, WritMeta, WritValidationResult, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, comparePriorityOrder, createGrant, createPresenceChallenge, createReceipt, createRevocation, createWrit, decodeQueueMessage, encVarint, encodeAxisTlvDto, encodeQueueMessage, executeLoomPipeline, extractDtoSchema, getAxisExecutionContext, getGrantStatus, getPresenceStatus, getPriorityOrder, getPriorityOrderedTargets, grantCoversAction, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isRevoked, isTimestampValid, mergeAxisExecutionContext, nonce16, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, priorityOrder, renewPresence, resolveTimeout, sensitivityName, signPresenceChallenge, stableJsonStringify, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, updateThreadState, utf8, validateFrameShape, validateGrant, validateWrit, varintU, verifyPresenceProof, verifyReceiptChain, verifyResponse, withAxisExecutionContext };
783
+ export { ATS1_HDR, ATS1_SCHEMA, AXIS_EXECUTION_CONTEXT_KEY, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, Axis1DecodedFrame, type AxisPacket as AxisBinaryPacket, AxisCapsuleRef, AxisChainEnvelope, AxisChainExecutor, AxisChainResult, AxisChainStep, type AxisCrudHandler, type AxisDecoded, type AxisExecutionContext, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIntentSensorRef, AxisMediaTypes, AxisObservation, T as AxisPacketTags, AxisPartialType, AxisResponseDto, AxisSensorChainService, AxisTlvDto, BAND, BodyProfile, type BodyProfileValidation, BodyProfileValidator, CAPABILITIES, CHAIN_METADATA_KEY, type Capability, Chain, ChainOptions, type ChainResult, ContractViolationError, DEFAULT_TIMEOUT, type DeviceSEContext, DiskUploadFileStore, type DtoSchema, ExecutionMeter, type ExecutionMetrics, Grant, GrantCapability, GrantStatus, GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerSensors, INTENT_BODY_KEY, INTENT_REQUIREMENTS, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, IntentBody, type IntentDefinition, IntentRouter, IntentSensitivity, IntentSensors, IntentTlvField, type LoomExecutionResult, LoomReceipt, type MTLSContext, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationStreamEntry, type ObservationWitnessSummary, ObserverDispatcherService, type ObserverVerdict, PRE_DECODE_BOUNDARY, PROOF_CAPABILITIES, PresenceChallenge, PresenceDeclaration, PresenceProof, PresenceReceipt, PresenceStatus, PresenceVerifyResult, type ProofType, type ProofVerificationResult, ProofVerificationService, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, ResponseObserver, type ResponseObserverContext, Revocation, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, SensorDecision, SensorInput, type SensorOptions, type SensorPhase, SensorRegistry, ThreadState, TlvValidatorFn, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, Writ, WritBody, WritMeta, WritValidationResult, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, createGrant, createPresenceChallenge, createReceipt, createRevocation, createWrit, decodeQueueMessage, encVarint, encodeAxisTlvDto, encodeQueueMessage, executeLoomPipeline, extractDtoSchema, getAxisExecutionContext, getGrantStatus, getPresenceStatus, grantCoversAction, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isRevoked, isTimestampValid, mergeAxisExecutionContext, nonce16, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, renewPresence, resolveTimeout, sensitivityName, signPresenceChallenge, stableJsonStringify, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, updateThreadState, utf8, validateFrameShape, validateGrant, validateWrit, varintU, verifyPresenceProof, verifyReceiptChain, verifyResponse, withAxisExecutionContext };
package/dist/index.d.ts CHANGED
@@ -40,23 +40,6 @@ interface SensorOptions {
40
40
  }
41
41
  declare function Sensor(options?: SensorOptions): ClassDecorator;
42
42
 
43
- declare const PRIORITY_ORDER_METADATA_KEY = "axis:priority-order";
44
- type AxisPriorityLevel = "HIGH" | "MEDIUM" | "LOW";
45
- type AxisPriorityLevelInput = AxisPriorityLevel | "high" | "medium" | "low" | "High" | "Medium" | "Low";
46
- interface PriorityOrderDefinition {
47
- priority: AxisPriorityLevel;
48
- order: number;
49
- }
50
- interface PriorityOrderOptions {
51
- priority?: AxisPriorityLevelInput;
52
- order?: number;
53
- }
54
- declare function getPriorityOrder(target: Function): PriorityOrderDefinition | null;
55
- declare function comparePriorityOrder(left: PriorityOrderDefinition, right: PriorityOrderDefinition): number;
56
- declare function getPriorityOrderedTargets(targets?: Iterable<Function>): Function[];
57
- declare function PriorityOrder(priorityOrOptions?: AxisPriorityLevelInput | PriorityOrderOptions, order?: number): ClassDecorator;
58
- declare const priorityOrder: typeof PriorityOrder;
59
-
60
43
  interface DtoSchema {
61
44
  fields: IntentTlvField[];
62
45
  validators: Map<number, TlvValidatorFn[]>;
@@ -797,4 +780,4 @@ declare function executeLoomPipeline(writ: Writ, publicKeyHex: string, presence:
797
780
  code: string;
798
781
  };
799
782
 
800
- export { ATS1_HDR, ATS1_SCHEMA, AXIS_EXECUTION_CONTEXT_KEY, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, Axis1DecodedFrame, type AxisPacket as AxisBinaryPacket, AxisCapsuleRef, AxisChainEnvelope, AxisChainExecutor, AxisChainResult, AxisChainStep, type AxisCrudHandler, type AxisDecoded, type AxisExecutionContext, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIntentSensorRef, AxisMediaTypes, AxisObservation, T as AxisPacketTags, AxisPartialType, type AxisPriorityLevel, type AxisPriorityLevelInput, AxisResponseDto, AxisSensorChainService, AxisTlvDto, BAND, BodyProfile, type BodyProfileValidation, BodyProfileValidator, CAPABILITIES, CHAIN_METADATA_KEY, type Capability, Chain, ChainOptions, type ChainResult, ContractViolationError, DEFAULT_TIMEOUT, type DeviceSEContext, DiskUploadFileStore, type DtoSchema, ExecutionMeter, type ExecutionMetrics, Grant, GrantCapability, GrantStatus, GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerSensors, INTENT_BODY_KEY, INTENT_REQUIREMENTS, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, IntentBody, type IntentDefinition, IntentRouter, IntentSensitivity, IntentSensors, IntentTlvField, type LoomExecutionResult, LoomReceipt, type MTLSContext, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationStreamEntry, type ObservationWitnessSummary, ObserverDispatcherService, type ObserverVerdict, PRE_DECODE_BOUNDARY, PRIORITY_ORDER_METADATA_KEY, PROOF_CAPABILITIES, PresenceChallenge, PresenceDeclaration, PresenceProof, PresenceReceipt, PresenceStatus, PresenceVerifyResult, PriorityOrder, type PriorityOrderDefinition, type PriorityOrderOptions, type ProofType, type ProofVerificationResult, ProofVerificationService, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, ResponseObserver, type ResponseObserverContext, Revocation, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, SensorDecision, SensorInput, type SensorOptions, type SensorPhase, SensorRegistry, ThreadState, TlvValidatorFn, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, Writ, WritBody, WritMeta, WritValidationResult, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, comparePriorityOrder, createGrant, createPresenceChallenge, createReceipt, createRevocation, createWrit, decodeQueueMessage, encVarint, encodeAxisTlvDto, encodeQueueMessage, executeLoomPipeline, extractDtoSchema, getAxisExecutionContext, getGrantStatus, getPresenceStatus, getPriorityOrder, getPriorityOrderedTargets, grantCoversAction, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isRevoked, isTimestampValid, mergeAxisExecutionContext, nonce16, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, priorityOrder, renewPresence, resolveTimeout, sensitivityName, signPresenceChallenge, stableJsonStringify, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, updateThreadState, utf8, validateFrameShape, validateGrant, validateWrit, varintU, verifyPresenceProof, verifyReceiptChain, verifyResponse, withAxisExecutionContext };
783
+ export { ATS1_HDR, ATS1_SCHEMA, AXIS_EXECUTION_CONTEXT_KEY, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, Axis1DecodedFrame, type AxisPacket as AxisBinaryPacket, AxisCapsuleRef, AxisChainEnvelope, AxisChainExecutor, AxisChainResult, AxisChainStep, type AxisCrudHandler, type AxisDecoded, type AxisExecutionContext, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIntentSensorRef, AxisMediaTypes, AxisObservation, T as AxisPacketTags, AxisPartialType, AxisResponseDto, AxisSensorChainService, AxisTlvDto, BAND, BodyProfile, type BodyProfileValidation, BodyProfileValidator, CAPABILITIES, CHAIN_METADATA_KEY, type Capability, Chain, ChainOptions, type ChainResult, ContractViolationError, DEFAULT_TIMEOUT, type DeviceSEContext, DiskUploadFileStore, type DtoSchema, ExecutionMeter, type ExecutionMetrics, Grant, GrantCapability, GrantStatus, GrantValidationResult, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerSensors, INTENT_BODY_KEY, INTENT_REQUIREMENTS, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, IntentBody, type IntentDefinition, IntentRouter, IntentSensitivity, IntentSensors, IntentTlvField, type LoomExecutionResult, LoomReceipt, type MTLSContext, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationStreamEntry, type ObservationWitnessSummary, ObserverDispatcherService, type ObserverVerdict, PRE_DECODE_BOUNDARY, PROOF_CAPABILITIES, PresenceChallenge, PresenceDeclaration, PresenceProof, PresenceReceipt, PresenceStatus, PresenceVerifyResult, type ProofType, type ProofVerificationResult, ProofVerificationService, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, ResponseObserver, type ResponseObserverContext, Revocation, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, SensorDecision, SensorInput, type SensorOptions, type SensorPhase, SensorRegistry, ThreadState, TlvValidatorFn, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, Writ, WritBody, WritMeta, WritValidationResult, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, createGrant, createPresenceChallenge, createReceipt, createRevocation, createWrit, decodeQueueMessage, encVarint, encodeAxisTlvDto, encodeQueueMessage, executeLoomPipeline, extractDtoSchema, getAxisExecutionContext, getGrantStatus, getPresenceStatus, grantCoversAction, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isRevoked, isTimestampValid, mergeAxisExecutionContext, nonce16, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, renewPresence, resolveTimeout, sensitivityName, signPresenceChallenge, stableJsonStringify, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, updateThreadState, utf8, validateFrameShape, validateGrant, validateWrit, varintU, verifyPresenceProof, verifyReceiptChain, verifyResponse, withAxisExecutionContext };
package/dist/index.js CHANGED
@@ -450,92 +450,6 @@ var init_sensor_decorator = __esm({
450
450
  }
451
451
  });
452
452
 
453
- // src/decorators/priority-order.decorator.ts
454
- var require_priority_order_decorator = __commonJS({
455
- "src/decorators/priority-order.decorator.ts"(exports2) {
456
- "use strict";
457
- Object.defineProperty(exports2, "__esModule", { value: true });
458
- exports2.priorityOrder = exports2.PRIORITY_ORDER_METADATA_KEY = void 0;
459
- exports2.getPriorityOrder = getPriorityOrder2;
460
- exports2.comparePriorityOrder = comparePriorityOrder2;
461
- exports2.getPriorityOrderedTargets = getPriorityOrderedTargets2;
462
- exports2.PriorityOrder = PriorityOrder2;
463
- require("reflect-metadata");
464
- exports2.PRIORITY_ORDER_METADATA_KEY = "axis:priority-order";
465
- var PRIORITY_ORDER_WEIGHT = {
466
- HIGH: 0,
467
- MEDIUM: 1,
468
- LOW: 2
469
- };
470
- var priorityOrderRegistry = /* @__PURE__ */ new Set();
471
- function normalizePriority(priority) {
472
- const normalized = String(priority).toUpperCase();
473
- if (normalized === "HIGH" || normalized === "MEDIUM" || normalized === "LOW") {
474
- return normalized;
475
- }
476
- throw new Error(`@PriorityOrder() received invalid priority "${String(priority)}"`);
477
- }
478
- function normalizeOrder(order) {
479
- if (typeof order !== "number" || !Number.isInteger(order) || !Number.isFinite(order) || order < 0) {
480
- throw new Error(`@PriorityOrder() requires a non-negative integer order, received "${String(order)}"`);
481
- }
482
- return order;
483
- }
484
- function isPriorityOrderOptions(value) {
485
- return !!value && typeof value === "object" && !Array.isArray(value);
486
- }
487
- function resolvePriorityOrder(priorityOrOptions, order = 0) {
488
- if (isPriorityOrderOptions(priorityOrOptions)) {
489
- return {
490
- priority: normalizePriority(priorityOrOptions.priority ?? "MEDIUM"),
491
- order: normalizeOrder(priorityOrOptions.order ?? 0)
492
- };
493
- }
494
- return {
495
- priority: normalizePriority(priorityOrOptions ?? "MEDIUM"),
496
- order: normalizeOrder(order)
497
- };
498
- }
499
- function getPriorityOrder2(target) {
500
- return Reflect.getMetadata(exports2.PRIORITY_ORDER_METADATA_KEY, target) ?? null;
501
- }
502
- function comparePriorityOrder2(left, right) {
503
- const priorityDelta = PRIORITY_ORDER_WEIGHT[left.priority] - PRIORITY_ORDER_WEIGHT[right.priority];
504
- if (priorityDelta !== 0) {
505
- return priorityDelta;
506
- }
507
- return left.order - right.order;
508
- }
509
- function getPriorityOrderedTargets2(targets) {
510
- const pool = targets ? Array.from(targets) : Array.from(priorityOrderRegistry);
511
- return pool.sort((left, right) => {
512
- const leftMeta = getPriorityOrder2(left);
513
- const rightMeta = getPriorityOrder2(right);
514
- if (!leftMeta && !rightMeta) {
515
- return (left.name || "").localeCompare(right.name || "");
516
- }
517
- if (!leftMeta)
518
- return 1;
519
- if (!rightMeta)
520
- return -1;
521
- const ordered = comparePriorityOrder2(leftMeta, rightMeta);
522
- if (ordered !== 0) {
523
- return ordered;
524
- }
525
- return (left.name || "").localeCompare(right.name || "");
526
- });
527
- }
528
- function PriorityOrder2(priorityOrOptions, order = 0) {
529
- const definition = resolvePriorityOrder(priorityOrOptions, order);
530
- return (target) => {
531
- Reflect.defineMetadata(exports2.PRIORITY_ORDER_METADATA_KEY, definition, target);
532
- priorityOrderRegistry.add(target);
533
- };
534
- }
535
- exports2.priorityOrder = PriorityOrder2;
536
- }
537
- });
538
-
539
453
  // src/decorators/tlv-field.decorator.ts
540
454
  var require_tlv_field_decorator = __commonJS({
541
455
  "src/decorators/tlv-field.decorator.ts"(exports2) {
@@ -12565,7 +12479,6 @@ __export(index_exports, {
12565
12479
  ObserverDispatcherService: () => ObserverDispatcherService,
12566
12480
  ObserverRegistry: () => ObserverRegistry,
12567
12481
  PRE_DECODE_BOUNDARY: () => PRE_DECODE_BOUNDARY,
12568
- PRIORITY_ORDER_METADATA_KEY: () => import_priority_order.PRIORITY_ORDER_METADATA_KEY,
12569
12482
  PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
12570
12483
  PROOF_CAPSULE: () => import_axis_protocol2.PROOF_CAPSULE,
12571
12484
  PROOF_JWT: () => import_axis_protocol2.PROOF_JWT,
@@ -12573,7 +12486,6 @@ __export(index_exports, {
12573
12486
  PROOF_MTLS: () => import_axis_protocol2.PROOF_MTLS,
12574
12487
  PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
12575
12488
  PROOF_WITNESS: () => import_axis_protocol2.PROOF_WITNESS,
12576
- PriorityOrder: () => import_priority_order.PriorityOrder,
12577
12489
  ProofType: () => import_axis_protocol2.ProofType,
12578
12490
  ProofVerificationService: () => ProofVerificationService,
12579
12491
  REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
@@ -12665,7 +12577,6 @@ __export(index_exports, {
12665
12577
  canonicalizeObservation: () => canonicalizeObservation,
12666
12578
  canonicalizeWrit: () => canonicalizeWrit,
12667
12579
  classifyIntent: () => classifyIntent,
12668
- comparePriorityOrder: () => import_priority_order.comparePriorityOrder,
12669
12580
  computeReceiptHash: () => computeReceiptHash,
12670
12581
  computeSignaturePayload: () => computeSignaturePayload,
12671
12582
  createFabric: () => createFabric,
@@ -12710,8 +12621,6 @@ __export(index_exports, {
12710
12621
  getGrantStatus: () => getGrantStatus,
12711
12622
  getIrreversibleKnots: () => getIrreversibleKnots,
12712
12623
  getPresenceStatus: () => getPresenceStatus,
12713
- getPriorityOrder: () => import_priority_order.getPriorityOrder,
12714
- getPriorityOrderedTargets: () => import_priority_order.getPriorityOrderedTargets,
12715
12624
  getSignTarget: () => import_axis_protocol5.getSignTarget,
12716
12625
  grantCoversAction: () => grantCoversAction,
12717
12626
  hasScope: () => hasScope,
@@ -12736,7 +12645,6 @@ __export(index_exports, {
12736
12645
  parseAutoClaimEntries: () => parseAutoClaimEntries,
12737
12646
  parseScope: () => parseScope,
12738
12647
  parseStreamEntries: () => parseStreamEntries,
12739
- priorityOrder: () => import_priority_order.priorityOrder,
12740
12648
  projectAt: () => projectAt,
12741
12649
  queryFabric: () => queryFabric,
12742
12650
  recordOccurrence: () => recordOccurrence,
@@ -12774,7 +12682,7 @@ __export(index_exports, {
12774
12682
  withAxisExecutionContext: () => withAxisExecutionContext
12775
12683
  });
12776
12684
  module.exports = __toCommonJS(index_exports);
12777
- var import_priority_order, import_tlv_field2, import_dto_schema2, import_axis_id, import_axis_response;
12685
+ var import_tlv_field2, import_dto_schema2, import_axis_id, import_axis_response;
12778
12686
  var init_index = __esm({
12779
12687
  "src/index.ts"() {
12780
12688
  init_chain_decorator();
@@ -12787,7 +12695,6 @@ var init_index = __esm({
12787
12695
  init_observer_decorator();
12788
12696
  init_handler_sensors_decorator();
12789
12697
  init_sensor_decorator();
12790
- import_priority_order = __toESM(require_priority_order_decorator());
12791
12698
  import_tlv_field2 = __toESM(require_tlv_field_decorator());
12792
12699
  import_dto_schema2 = __toESM(require_dto_schema_util());
12793
12700
  init_axis_tlv_dto();
@@ -12955,7 +12862,6 @@ init_index();
12955
12862
  ObserverDispatcherService,
12956
12863
  ObserverRegistry,
12957
12864
  PRE_DECODE_BOUNDARY,
12958
- PRIORITY_ORDER_METADATA_KEY,
12959
12865
  PROOF_CAPABILITIES,
12960
12866
  PROOF_CAPSULE,
12961
12867
  PROOF_JWT,
@@ -12963,7 +12869,6 @@ init_index();
12963
12869
  PROOF_MTLS,
12964
12870
  PROOF_NONE,
12965
12871
  PROOF_WITNESS,
12966
- PriorityOrder,
12967
12872
  ProofType,
12968
12873
  ProofVerificationService,
12969
12874
  REQUIRED_PROOF_METADATA_KEY,
@@ -13055,7 +12960,6 @@ init_index();
13055
12960
  canonicalizeObservation,
13056
12961
  canonicalizeWrit,
13057
12962
  classifyIntent,
13058
- comparePriorityOrder,
13059
12963
  computeReceiptHash,
13060
12964
  computeSignaturePayload,
13061
12965
  createFabric,
@@ -13100,8 +13004,6 @@ init_index();
13100
13004
  getGrantStatus,
13101
13005
  getIrreversibleKnots,
13102
13006
  getPresenceStatus,
13103
- getPriorityOrder,
13104
- getPriorityOrderedTargets,
13105
13007
  getSignTarget,
13106
13008
  grantCoversAction,
13107
13009
  hasScope,
@@ -13126,7 +13028,6 @@ init_index();
13126
13028
  parseAutoClaimEntries,
13127
13029
  parseScope,
13128
13030
  parseStreamEntries,
13129
- priorityOrder,
13130
13031
  projectAt,
13131
13032
  queryFabric,
13132
13033
  recordOccurrence,