@nextera.one/axis-server-sdk 2.3.5 → 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-9Wqoiq9_.d.mts → index-Bdahn8mq.d.mts} +31 -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-BN48uIiy.d.ts → index-DRnTsYrk.d.ts} +31 -21
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +80 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +80 -93
- 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 +80 -93
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +80 -93
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-
|
|
1
|
+
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-BLUemDiZ.mjs';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
|
-
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-
|
|
4
|
+
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-By7ps8_F.mjs';
|
|
5
5
|
|
|
6
6
|
type AxisExecutionMode = 'strict' | 'parallel' | 'best_effort' | 'atomic';
|
|
7
7
|
type AxisObserverEvent = 'intent.received' | 'intent.completed' | 'intent.failed' | 'chain.received' | 'chain.admitted' | 'chain.completed' | 'chain.failed' | 'chain.partial' | 'step.started' | 'step.completed' | 'step.failed' | 'step.blocked' | 'step.skipped' | 'signature.verified' | 'decryption.succeeded' | 'sensor.passed' | 'sensor.failed' | 'handler.completed' | 'proof.recorded';
|
|
@@ -422,6 +422,7 @@ interface AxisEffect {
|
|
|
422
422
|
}
|
|
423
423
|
interface HandlerSummary {
|
|
424
424
|
handler: string;
|
|
425
|
+
prefix?: string;
|
|
425
426
|
intents: string[];
|
|
426
427
|
isPublic: boolean;
|
|
427
428
|
isAnonymous: boolean;
|
|
@@ -431,6 +432,8 @@ interface HandlerSummary {
|
|
|
431
432
|
sensitivity?: SensitivityLevel;
|
|
432
433
|
rateLimit?: AxisRateLimitConfig;
|
|
433
434
|
capsulePolicy?: CapsulePolicyOptions;
|
|
435
|
+
classSensors?: AxisIntentSensorBinding[];
|
|
436
|
+
classObservers?: AxisObserverBinding[];
|
|
434
437
|
}
|
|
435
438
|
declare class IntentRouter {
|
|
436
439
|
private readonly logger;
|
|
@@ -460,6 +463,9 @@ declare class IntentRouter {
|
|
|
460
463
|
private cceHandlers;
|
|
461
464
|
private ccePipelineConfig;
|
|
462
465
|
private handlerIntents;
|
|
466
|
+
private handlerPrefixes;
|
|
467
|
+
private handlerClassSensors;
|
|
468
|
+
private handlerClassObservers;
|
|
463
469
|
constructor(dependencyResolver?: AxisDependencyResolver, observerDispatcher?: ObserverDispatcherService, sensorRegistry?: SensorRegistry);
|
|
464
470
|
getSchema(intent: string): IntentSchema | undefined;
|
|
465
471
|
getValidators(intent: string): Map<number, TlvValidatorFn[]> | undefined;
|
|
@@ -501,11 +507,15 @@ declare class IntentRouter {
|
|
|
501
507
|
getHandlerSensitivity(handlerName: string): SensitivityLevel | undefined;
|
|
502
508
|
getHandlerRateLimit(handlerName: string): AxisRateLimitConfig | undefined;
|
|
503
509
|
getHandlerCapsulePolicy(handlerName: string): CapsulePolicyOptions | undefined;
|
|
510
|
+
getHandlerPrefix(handlerName: string): string | undefined;
|
|
511
|
+
getHandlerClassSensors(handlerName: string): AxisIntentSensorBinding[] | undefined;
|
|
512
|
+
getHandlerClassObservers(handlerName: string): AxisObserverBinding[] | undefined;
|
|
504
513
|
getHandlerSummary(handlerName: string): HandlerSummary | null;
|
|
505
514
|
getAllHandlerSummaries(): Map<string, HandlerSummary>;
|
|
506
515
|
private emitIntentObservers;
|
|
507
516
|
private runIntentSensors;
|
|
508
517
|
trackHandlerIntent(handlerName: string, intent: string): void;
|
|
518
|
+
trackHandlerMeta(className: string, prefix: string, sensors: AxisIntentSensorBindingInput[], observers: AxisObserverBinding[]): void;
|
|
509
519
|
private resolveIntentSensor;
|
|
510
520
|
private getEffectiveCapsulePolicy;
|
|
511
521
|
private enforceCapsulePolicy;
|
|
@@ -644,14 +654,14 @@ interface RiskEvaluation {
|
|
|
644
654
|
declare class AccessProfileResolverSensor implements AxisSensor {
|
|
645
655
|
readonly name = "AccessProfileResolverSensor";
|
|
646
656
|
readonly order: number;
|
|
647
|
-
supports(input: SensorInput):
|
|
657
|
+
supports(input: SensorInput): boolean;
|
|
648
658
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
649
659
|
}
|
|
650
660
|
|
|
651
661
|
declare class BodyBudgetSensor implements AxisSensor {
|
|
652
662
|
readonly name = "BodyBudgetSensor";
|
|
653
663
|
readonly order: number;
|
|
654
|
-
supports(input: SensorInput):
|
|
664
|
+
supports(input: SensorInput): boolean;
|
|
655
665
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
656
666
|
}
|
|
657
667
|
|
|
@@ -659,7 +669,7 @@ declare class CapabilityEnforcementSensor implements AxisSensor {
|
|
|
659
669
|
private readonly logger;
|
|
660
670
|
readonly name = "CapabilityEnforcementSensor";
|
|
661
671
|
readonly order: number;
|
|
662
|
-
supports(input: SensorInput):
|
|
672
|
+
supports(input: SensorInput): boolean;
|
|
663
673
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
664
674
|
private getRequiredCapabilities;
|
|
665
675
|
}
|
|
@@ -667,7 +677,7 @@ declare class CapabilityEnforcementSensor implements AxisSensor {
|
|
|
667
677
|
declare class ChunkHashSensor implements AxisSensor {
|
|
668
678
|
readonly name = "ChunkHashSensor";
|
|
669
679
|
readonly order: number;
|
|
670
|
-
supports(input: SensorInput):
|
|
680
|
+
supports(input: SensorInput): boolean;
|
|
671
681
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
672
682
|
}
|
|
673
683
|
|
|
@@ -687,7 +697,7 @@ declare class ExecutionTimeoutSensor implements AxisSensor {
|
|
|
687
697
|
private readonly logger;
|
|
688
698
|
readonly name = "ExecutionTimeoutSensor";
|
|
689
699
|
readonly order: number;
|
|
690
|
-
supports():
|
|
700
|
+
supports(): boolean;
|
|
691
701
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
692
702
|
static isExpired(ctx: {
|
|
693
703
|
deadline?: number;
|
|
@@ -700,14 +710,14 @@ declare class ExecutionTimeoutSensor implements AxisSensor {
|
|
|
700
710
|
declare class FrameBudgetSensor implements AxisSensor {
|
|
701
711
|
readonly name = "FrameBudgetSensor";
|
|
702
712
|
readonly order: number;
|
|
703
|
-
supports(input: SensorInput):
|
|
713
|
+
supports(input: SensorInput): boolean;
|
|
704
714
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
705
715
|
}
|
|
706
716
|
|
|
707
717
|
declare class FrameHeaderSanitySensor implements AxisSensor {
|
|
708
718
|
readonly name = "FrameHeaderSanitySensor";
|
|
709
719
|
readonly order: number;
|
|
710
|
-
supports(input: SensorInput):
|
|
720
|
+
supports(input: SensorInput): boolean;
|
|
711
721
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
712
722
|
private bufferEqual;
|
|
713
723
|
}
|
|
@@ -716,14 +726,14 @@ declare class HeaderTLVLimitSensor implements AxisSensor {
|
|
|
716
726
|
readonly name = "HeaderTLVLimitSensor";
|
|
717
727
|
readonly order: number;
|
|
718
728
|
private readonly MAX_TLVS;
|
|
719
|
-
supports(input: SensorInput):
|
|
729
|
+
supports(input: SensorInput): boolean;
|
|
720
730
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
721
731
|
}
|
|
722
732
|
|
|
723
733
|
declare class IntentAllowlistSensor implements AxisSensor {
|
|
724
734
|
readonly name = "IntentAllowlistSensor";
|
|
725
735
|
readonly order: number;
|
|
726
|
-
supports(input: SensorInput):
|
|
736
|
+
supports(input: SensorInput): boolean;
|
|
727
737
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
728
738
|
}
|
|
729
739
|
|
|
@@ -732,7 +742,7 @@ declare class IntentRegistrySensor implements AxisSensor {
|
|
|
732
742
|
readonly name = "IntentRegistrySensor";
|
|
733
743
|
readonly order: number;
|
|
734
744
|
constructor(router: IntentRouter);
|
|
735
|
-
supports():
|
|
745
|
+
supports(): boolean;
|
|
736
746
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
737
747
|
}
|
|
738
748
|
|
|
@@ -742,14 +752,14 @@ declare class LawEvaluationSensor implements AxisSensor {
|
|
|
742
752
|
readonly name = "LawEvaluationSensor";
|
|
743
753
|
readonly order: number;
|
|
744
754
|
constructor(options?: LawEvaluationSensorOptions);
|
|
745
|
-
supports(input: SensorInput):
|
|
755
|
+
supports(input: SensorInput): boolean;
|
|
746
756
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
747
757
|
}
|
|
748
758
|
|
|
749
759
|
declare class ProofPresenceSensor implements AxisSensor {
|
|
750
760
|
readonly name = "ProofPresenceSensor";
|
|
751
761
|
readonly order: number;
|
|
752
|
-
supports(input: ProofPresenceInput):
|
|
762
|
+
supports(input: ProofPresenceInput): boolean;
|
|
753
763
|
run(input: ProofPresenceInput): Promise<SensorDecision>;
|
|
754
764
|
}
|
|
755
765
|
|
|
@@ -777,7 +787,7 @@ declare class ProtocolStrictSensor implements AxisSensor {
|
|
|
777
787
|
declare class ReceiptPolicySensor implements AxisSensor {
|
|
778
788
|
readonly name = "ReceiptPolicySensor";
|
|
779
789
|
readonly order: number;
|
|
780
|
-
supports():
|
|
790
|
+
supports(): boolean;
|
|
781
791
|
run(): Promise<SensorDecision>;
|
|
782
792
|
}
|
|
783
793
|
|
|
@@ -801,7 +811,7 @@ declare class RiskGateSensor implements AxisSensor {
|
|
|
801
811
|
declare class SchemaValidationSensor implements AxisSensor {
|
|
802
812
|
readonly name = "SchemaValidationSensor";
|
|
803
813
|
readonly order: number;
|
|
804
|
-
supports(input: any):
|
|
814
|
+
supports(input: any): boolean;
|
|
805
815
|
run(input: any): Promise<{
|
|
806
816
|
action: 'ALLOW';
|
|
807
817
|
} | {
|
|
@@ -814,7 +824,7 @@ declare class SchemaValidationSensor implements AxisSensor {
|
|
|
814
824
|
declare class StreamScopeSensor implements AxisSensor {
|
|
815
825
|
readonly name = "StreamScopeSensor";
|
|
816
826
|
readonly order: number;
|
|
817
|
-
supports():
|
|
827
|
+
supports(): boolean;
|
|
818
828
|
run(): Promise<SensorDecision>;
|
|
819
829
|
}
|
|
820
830
|
|
|
@@ -844,14 +854,14 @@ declare class TickAuthSensor implements AxisSensor {
|
|
|
844
854
|
private readonly matchIntent;
|
|
845
855
|
private readonly acceptTypes;
|
|
846
856
|
constructor(options?: TickAuthSensorOptions);
|
|
847
|
-
supports(input: SensorInput):
|
|
857
|
+
supports(input: SensorInput): boolean;
|
|
848
858
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
849
859
|
}
|
|
850
860
|
|
|
851
861
|
declare class TLVParseSensor implements AxisSensor {
|
|
852
862
|
readonly name = "TLVParseSensor";
|
|
853
863
|
readonly order: number;
|
|
854
|
-
supports(input: SensorInput):
|
|
864
|
+
supports(input: SensorInput): boolean;
|
|
855
865
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
856
866
|
private validateCanonicalTLV;
|
|
857
867
|
}
|
|
@@ -866,7 +876,7 @@ declare class TpsSensor implements AxisSensor {
|
|
|
866
876
|
private readonly maxDriftMs;
|
|
867
877
|
private readonly resolver;
|
|
868
878
|
constructor(options?: TpsSensorOptions);
|
|
869
|
-
supports(input: SensorInput):
|
|
879
|
+
supports(input: SensorInput): boolean;
|
|
870
880
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
871
881
|
}
|
|
872
882
|
|
|
@@ -874,7 +884,7 @@ declare class VarintHardeningSensor implements AxisSensor {
|
|
|
874
884
|
readonly name = "VarintHardeningSensor";
|
|
875
885
|
readonly order: number;
|
|
876
886
|
private readonly MAX_VARINT_BYTES;
|
|
877
|
-
supports(input: SensorInput):
|
|
887
|
+
supports(input: SensorInput): boolean;
|
|
878
888
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
879
889
|
}
|
|
880
890
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as CompiledIntent } from './idel.types-DuUAcOnQ.mjs';
|
|
2
2
|
import { i as TimelineEvent } from './timeline.types-Cn0aqbUj.mjs';
|
|
3
|
-
import { A as AxisSensor } from './axis-sensor-
|
|
3
|
+
import { A as AxisSensor } from './axis-sensor-BLUemDiZ.mjs';
|
|
4
4
|
|
|
5
5
|
interface ObservationStage {
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as CompiledIntent } from './idel.types-DuUAcOnQ.js';
|
|
2
2
|
import { i as TimelineEvent } from './timeline.types-Cn0aqbUj.js';
|
|
3
|
-
import { A as AxisSensor } from './axis-sensor-
|
|
3
|
+
import { A as AxisSensor } from './axis-sensor-BLUemDiZ.js';
|
|
4
4
|
|
|
5
5
|
interface ObservationStage {
|
|
6
6
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-
|
|
1
|
+
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-BLUemDiZ.js';
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
|
-
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-
|
|
4
|
+
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-CVeMpuKr.js';
|
|
5
5
|
|
|
6
6
|
type AxisExecutionMode = 'strict' | 'parallel' | 'best_effort' | 'atomic';
|
|
7
7
|
type AxisObserverEvent = 'intent.received' | 'intent.completed' | 'intent.failed' | 'chain.received' | 'chain.admitted' | 'chain.completed' | 'chain.failed' | 'chain.partial' | 'step.started' | 'step.completed' | 'step.failed' | 'step.blocked' | 'step.skipped' | 'signature.verified' | 'decryption.succeeded' | 'sensor.passed' | 'sensor.failed' | 'handler.completed' | 'proof.recorded';
|
|
@@ -422,6 +422,7 @@ interface AxisEffect {
|
|
|
422
422
|
}
|
|
423
423
|
interface HandlerSummary {
|
|
424
424
|
handler: string;
|
|
425
|
+
prefix?: string;
|
|
425
426
|
intents: string[];
|
|
426
427
|
isPublic: boolean;
|
|
427
428
|
isAnonymous: boolean;
|
|
@@ -431,6 +432,8 @@ interface HandlerSummary {
|
|
|
431
432
|
sensitivity?: SensitivityLevel;
|
|
432
433
|
rateLimit?: AxisRateLimitConfig;
|
|
433
434
|
capsulePolicy?: CapsulePolicyOptions;
|
|
435
|
+
classSensors?: AxisIntentSensorBinding[];
|
|
436
|
+
classObservers?: AxisObserverBinding[];
|
|
434
437
|
}
|
|
435
438
|
declare class IntentRouter {
|
|
436
439
|
private readonly logger;
|
|
@@ -460,6 +463,9 @@ declare class IntentRouter {
|
|
|
460
463
|
private cceHandlers;
|
|
461
464
|
private ccePipelineConfig;
|
|
462
465
|
private handlerIntents;
|
|
466
|
+
private handlerPrefixes;
|
|
467
|
+
private handlerClassSensors;
|
|
468
|
+
private handlerClassObservers;
|
|
463
469
|
constructor(dependencyResolver?: AxisDependencyResolver, observerDispatcher?: ObserverDispatcherService, sensorRegistry?: SensorRegistry);
|
|
464
470
|
getSchema(intent: string): IntentSchema | undefined;
|
|
465
471
|
getValidators(intent: string): Map<number, TlvValidatorFn[]> | undefined;
|
|
@@ -501,11 +507,15 @@ declare class IntentRouter {
|
|
|
501
507
|
getHandlerSensitivity(handlerName: string): SensitivityLevel | undefined;
|
|
502
508
|
getHandlerRateLimit(handlerName: string): AxisRateLimitConfig | undefined;
|
|
503
509
|
getHandlerCapsulePolicy(handlerName: string): CapsulePolicyOptions | undefined;
|
|
510
|
+
getHandlerPrefix(handlerName: string): string | undefined;
|
|
511
|
+
getHandlerClassSensors(handlerName: string): AxisIntentSensorBinding[] | undefined;
|
|
512
|
+
getHandlerClassObservers(handlerName: string): AxisObserverBinding[] | undefined;
|
|
504
513
|
getHandlerSummary(handlerName: string): HandlerSummary | null;
|
|
505
514
|
getAllHandlerSummaries(): Map<string, HandlerSummary>;
|
|
506
515
|
private emitIntentObservers;
|
|
507
516
|
private runIntentSensors;
|
|
508
517
|
trackHandlerIntent(handlerName: string, intent: string): void;
|
|
518
|
+
trackHandlerMeta(className: string, prefix: string, sensors: AxisIntentSensorBindingInput[], observers: AxisObserverBinding[]): void;
|
|
509
519
|
private resolveIntentSensor;
|
|
510
520
|
private getEffectiveCapsulePolicy;
|
|
511
521
|
private enforceCapsulePolicy;
|
|
@@ -644,14 +654,14 @@ interface RiskEvaluation {
|
|
|
644
654
|
declare class AccessProfileResolverSensor implements AxisSensor {
|
|
645
655
|
readonly name = "AccessProfileResolverSensor";
|
|
646
656
|
readonly order: number;
|
|
647
|
-
supports(input: SensorInput):
|
|
657
|
+
supports(input: SensorInput): boolean;
|
|
648
658
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
649
659
|
}
|
|
650
660
|
|
|
651
661
|
declare class BodyBudgetSensor implements AxisSensor {
|
|
652
662
|
readonly name = "BodyBudgetSensor";
|
|
653
663
|
readonly order: number;
|
|
654
|
-
supports(input: SensorInput):
|
|
664
|
+
supports(input: SensorInput): boolean;
|
|
655
665
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
656
666
|
}
|
|
657
667
|
|
|
@@ -659,7 +669,7 @@ declare class CapabilityEnforcementSensor implements AxisSensor {
|
|
|
659
669
|
private readonly logger;
|
|
660
670
|
readonly name = "CapabilityEnforcementSensor";
|
|
661
671
|
readonly order: number;
|
|
662
|
-
supports(input: SensorInput):
|
|
672
|
+
supports(input: SensorInput): boolean;
|
|
663
673
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
664
674
|
private getRequiredCapabilities;
|
|
665
675
|
}
|
|
@@ -667,7 +677,7 @@ declare class CapabilityEnforcementSensor implements AxisSensor {
|
|
|
667
677
|
declare class ChunkHashSensor implements AxisSensor {
|
|
668
678
|
readonly name = "ChunkHashSensor";
|
|
669
679
|
readonly order: number;
|
|
670
|
-
supports(input: SensorInput):
|
|
680
|
+
supports(input: SensorInput): boolean;
|
|
671
681
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
672
682
|
}
|
|
673
683
|
|
|
@@ -687,7 +697,7 @@ declare class ExecutionTimeoutSensor implements AxisSensor {
|
|
|
687
697
|
private readonly logger;
|
|
688
698
|
readonly name = "ExecutionTimeoutSensor";
|
|
689
699
|
readonly order: number;
|
|
690
|
-
supports():
|
|
700
|
+
supports(): boolean;
|
|
691
701
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
692
702
|
static isExpired(ctx: {
|
|
693
703
|
deadline?: number;
|
|
@@ -700,14 +710,14 @@ declare class ExecutionTimeoutSensor implements AxisSensor {
|
|
|
700
710
|
declare class FrameBudgetSensor implements AxisSensor {
|
|
701
711
|
readonly name = "FrameBudgetSensor";
|
|
702
712
|
readonly order: number;
|
|
703
|
-
supports(input: SensorInput):
|
|
713
|
+
supports(input: SensorInput): boolean;
|
|
704
714
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
705
715
|
}
|
|
706
716
|
|
|
707
717
|
declare class FrameHeaderSanitySensor implements AxisSensor {
|
|
708
718
|
readonly name = "FrameHeaderSanitySensor";
|
|
709
719
|
readonly order: number;
|
|
710
|
-
supports(input: SensorInput):
|
|
720
|
+
supports(input: SensorInput): boolean;
|
|
711
721
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
712
722
|
private bufferEqual;
|
|
713
723
|
}
|
|
@@ -716,14 +726,14 @@ declare class HeaderTLVLimitSensor implements AxisSensor {
|
|
|
716
726
|
readonly name = "HeaderTLVLimitSensor";
|
|
717
727
|
readonly order: number;
|
|
718
728
|
private readonly MAX_TLVS;
|
|
719
|
-
supports(input: SensorInput):
|
|
729
|
+
supports(input: SensorInput): boolean;
|
|
720
730
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
721
731
|
}
|
|
722
732
|
|
|
723
733
|
declare class IntentAllowlistSensor implements AxisSensor {
|
|
724
734
|
readonly name = "IntentAllowlistSensor";
|
|
725
735
|
readonly order: number;
|
|
726
|
-
supports(input: SensorInput):
|
|
736
|
+
supports(input: SensorInput): boolean;
|
|
727
737
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
728
738
|
}
|
|
729
739
|
|
|
@@ -732,7 +742,7 @@ declare class IntentRegistrySensor implements AxisSensor {
|
|
|
732
742
|
readonly name = "IntentRegistrySensor";
|
|
733
743
|
readonly order: number;
|
|
734
744
|
constructor(router: IntentRouter);
|
|
735
|
-
supports():
|
|
745
|
+
supports(): boolean;
|
|
736
746
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
737
747
|
}
|
|
738
748
|
|
|
@@ -742,14 +752,14 @@ declare class LawEvaluationSensor implements AxisSensor {
|
|
|
742
752
|
readonly name = "LawEvaluationSensor";
|
|
743
753
|
readonly order: number;
|
|
744
754
|
constructor(options?: LawEvaluationSensorOptions);
|
|
745
|
-
supports(input: SensorInput):
|
|
755
|
+
supports(input: SensorInput): boolean;
|
|
746
756
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
747
757
|
}
|
|
748
758
|
|
|
749
759
|
declare class ProofPresenceSensor implements AxisSensor {
|
|
750
760
|
readonly name = "ProofPresenceSensor";
|
|
751
761
|
readonly order: number;
|
|
752
|
-
supports(input: ProofPresenceInput):
|
|
762
|
+
supports(input: ProofPresenceInput): boolean;
|
|
753
763
|
run(input: ProofPresenceInput): Promise<SensorDecision>;
|
|
754
764
|
}
|
|
755
765
|
|
|
@@ -777,7 +787,7 @@ declare class ProtocolStrictSensor implements AxisSensor {
|
|
|
777
787
|
declare class ReceiptPolicySensor implements AxisSensor {
|
|
778
788
|
readonly name = "ReceiptPolicySensor";
|
|
779
789
|
readonly order: number;
|
|
780
|
-
supports():
|
|
790
|
+
supports(): boolean;
|
|
781
791
|
run(): Promise<SensorDecision>;
|
|
782
792
|
}
|
|
783
793
|
|
|
@@ -801,7 +811,7 @@ declare class RiskGateSensor implements AxisSensor {
|
|
|
801
811
|
declare class SchemaValidationSensor implements AxisSensor {
|
|
802
812
|
readonly name = "SchemaValidationSensor";
|
|
803
813
|
readonly order: number;
|
|
804
|
-
supports(input: any):
|
|
814
|
+
supports(input: any): boolean;
|
|
805
815
|
run(input: any): Promise<{
|
|
806
816
|
action: 'ALLOW';
|
|
807
817
|
} | {
|
|
@@ -814,7 +824,7 @@ declare class SchemaValidationSensor implements AxisSensor {
|
|
|
814
824
|
declare class StreamScopeSensor implements AxisSensor {
|
|
815
825
|
readonly name = "StreamScopeSensor";
|
|
816
826
|
readonly order: number;
|
|
817
|
-
supports():
|
|
827
|
+
supports(): boolean;
|
|
818
828
|
run(): Promise<SensorDecision>;
|
|
819
829
|
}
|
|
820
830
|
|
|
@@ -844,14 +854,14 @@ declare class TickAuthSensor implements AxisSensor {
|
|
|
844
854
|
private readonly matchIntent;
|
|
845
855
|
private readonly acceptTypes;
|
|
846
856
|
constructor(options?: TickAuthSensorOptions);
|
|
847
|
-
supports(input: SensorInput):
|
|
857
|
+
supports(input: SensorInput): boolean;
|
|
848
858
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
849
859
|
}
|
|
850
860
|
|
|
851
861
|
declare class TLVParseSensor implements AxisSensor {
|
|
852
862
|
readonly name = "TLVParseSensor";
|
|
853
863
|
readonly order: number;
|
|
854
|
-
supports(input: SensorInput):
|
|
864
|
+
supports(input: SensorInput): boolean;
|
|
855
865
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
856
866
|
private validateCanonicalTLV;
|
|
857
867
|
}
|
|
@@ -866,7 +876,7 @@ declare class TpsSensor implements AxisSensor {
|
|
|
866
876
|
private readonly maxDriftMs;
|
|
867
877
|
private readonly resolver;
|
|
868
878
|
constructor(options?: TpsSensorOptions);
|
|
869
|
-
supports(input: SensorInput):
|
|
879
|
+
supports(input: SensorInput): boolean;
|
|
870
880
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
871
881
|
}
|
|
872
882
|
|
|
@@ -874,7 +884,7 @@ declare class VarintHardeningSensor implements AxisSensor {
|
|
|
874
884
|
readonly name = "VarintHardeningSensor";
|
|
875
885
|
readonly order: number;
|
|
876
886
|
private readonly MAX_VARINT_BYTES;
|
|
877
|
-
supports(input: SensorInput):
|
|
887
|
+
supports(input: SensorInput): boolean;
|
|
878
888
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
879
889
|
}
|
|
880
890
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, R as RequiredProofKind, I as IntentTlvField, T as TlvValidatorFn, c as IntentRouter, O as ObserverDispatcherService, d as AxisChainEnvelope, e as AxisChainResult, f as AxisCapsuleRef, g as AxisChainStep, h as AxisContext, S as SensorRegistry } from './index-
|
|
2
|
-
export { i as AXIS_ANONYMOUS_KEY, j as AXIS_AUTHORIZED_KEY, k as AXIS_META_KEY, l as AXIS_PUBLIC_KEY, m as AXIS_RATE_LIMIT_KEY, n as AccessProfileResolverSensor, o as Axis, p as AxisAnonymous, q as AxisAuthorized, r as AxisChainEncryption, s as AxisChainRequest, t as AxisChainStatus, u as AxisChainStepResult, v as AxisChainStepStatus, w as AxisEffect, x as AxisExecutionMode, y as AxisIntentEnvelope, z as AxisIntentObserver, B as AxisIntentSensorBinding, D as AxisIntentSensorBindingOptions, E as AxisIntentSensorRef, F as AxisIntentSensorWhen, G as AxisKeyExchangeRef, H as AxisLawArticleSummary, J as AxisLawDecision, K as AxisLawEvaluationContext, L as AxisLawEvaluationResult, M as AxisLawEvaluator, N as AxisObserverBinding, P as AxisObserverBindingOptions, Q as AxisObserverContext, U as AxisObserverDefinition, V as AxisObserverEvent, W as AxisObserverRef, X as AxisObserverRegistration, Y as AxisPublic, Z as AxisRateLimit, _ as AxisRateLimitConfig, $ as BodyBudgetSensor, a0 as CAPSULE_POLICY_METADATA_KEY, a1 as CONTRACT_METADATA_KEY, a2 as CapabilityEnforcementSensor, a3 as Capsule, a4 as CapsulePolicy, a5 as CapsulePolicyOptions, a6 as CapsuleScopeMode, a7 as ChunkHashSensor, a8 as Contract, a9 as DEFAULT_CONTRACTS, aa as EntropySensor, ab as ExecutionContract, ac as ExecutionTimeoutSensor, ad as FALLBACK_CONTRACT, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ah as INTENT_METADATA_KEY, ai as INTENT_ROUTES_KEY, aj as Intent, ak as IntentAllowlistSensor, al as IntentKind, am as IntentOptions, an as IntentRegistrySensor, ao as IntentRoute, ap as LawEvaluationSensor, aq as LawEvaluationSensorOptions, ar as OBSERVER_BINDINGS_KEY, as as OBSERVER_METADATA_KEY, at as Observer, au as ObserverRegistry, av as ProofPresenceSensor, aw as ProtocolStrictSensor, ax as REQUIRED_PROOF_METADATA_KEY, ay as ReceiptPolicySensor, az as RegisteredChainConfig, aA as RequiredProof, aB as RiskDecision, aC as RiskEvaluation, aD as RiskGateSensor, aE as RiskGateSensorOptions, aF as RiskSignal, aG as RiskSignalCollector, aH as SENSITIVITY_METADATA_KEY, aI as SchemaValidationSensor, aJ as Sensitivity, aK as StreamScopeSensor, aL as TLVParseSensor, aM as TLV_FIELDS_KEY, aN as TLV_VALIDATORS_KEY, aO as TickAuthCapsuleRef, aP as TickAuthSensor, aQ as TickAuthSensorOptions, aR as TickAuthVerifier, aS as TlvEnum, aT as TlvField, aU as TlvFieldKind, aV as TlvFieldMeta, aW as TlvFieldOptions, aX as TlvMinLen, aY as TlvRange, aZ as TlvUtf8Pattern, a_ as TlvValidate, a$ as TlvValidatorMeta, b0 as TpsSensor, b1 as TpsSensorOptions, b2 as VarintHardeningSensor, b3 as Witness, b4 as buildAxisLawEvaluationContext, b5 as toIntentSensorBinding, b6 as toObserverBinding } from './index-
|
|
1
|
+
import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, R as RequiredProofKind, I as IntentTlvField, T as TlvValidatorFn, c as IntentRouter, O as ObserverDispatcherService, d as AxisChainEnvelope, e as AxisChainResult, f as AxisCapsuleRef, g as AxisChainStep, h as AxisContext, S as SensorRegistry } from './index-Bdahn8mq.mjs';
|
|
2
|
+
export { i as AXIS_ANONYMOUS_KEY, j as AXIS_AUTHORIZED_KEY, k as AXIS_META_KEY, l as AXIS_PUBLIC_KEY, m as AXIS_RATE_LIMIT_KEY, n as AccessProfileResolverSensor, o as Axis, p as AxisAnonymous, q as AxisAuthorized, r as AxisChainEncryption, s as AxisChainRequest, t as AxisChainStatus, u as AxisChainStepResult, v as AxisChainStepStatus, w as AxisEffect, x as AxisExecutionMode, y as AxisIntentEnvelope, z as AxisIntentObserver, B as AxisIntentSensorBinding, D as AxisIntentSensorBindingOptions, E as AxisIntentSensorRef, F as AxisIntentSensorWhen, G as AxisKeyExchangeRef, H as AxisLawArticleSummary, J as AxisLawDecision, K as AxisLawEvaluationContext, L as AxisLawEvaluationResult, M as AxisLawEvaluator, N as AxisObserverBinding, P as AxisObserverBindingOptions, Q as AxisObserverContext, U as AxisObserverDefinition, V as AxisObserverEvent, W as AxisObserverRef, X as AxisObserverRegistration, Y as AxisPublic, Z as AxisRateLimit, _ as AxisRateLimitConfig, $ as BodyBudgetSensor, a0 as CAPSULE_POLICY_METADATA_KEY, a1 as CONTRACT_METADATA_KEY, a2 as CapabilityEnforcementSensor, a3 as Capsule, a4 as CapsulePolicy, a5 as CapsulePolicyOptions, a6 as CapsuleScopeMode, a7 as ChunkHashSensor, a8 as Contract, a9 as DEFAULT_CONTRACTS, aa as EntropySensor, ab as ExecutionContract, ac as ExecutionTimeoutSensor, ad as FALLBACK_CONTRACT, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ah as INTENT_METADATA_KEY, ai as INTENT_ROUTES_KEY, aj as Intent, ak as IntentAllowlistSensor, al as IntentKind, am as IntentOptions, an as IntentRegistrySensor, ao as IntentRoute, ap as LawEvaluationSensor, aq as LawEvaluationSensorOptions, ar as OBSERVER_BINDINGS_KEY, as as OBSERVER_METADATA_KEY, at as Observer, au as ObserverRegistry, av as ProofPresenceSensor, aw as ProtocolStrictSensor, ax as REQUIRED_PROOF_METADATA_KEY, ay as ReceiptPolicySensor, az as RegisteredChainConfig, aA as RequiredProof, aB as RiskDecision, aC as RiskEvaluation, aD as RiskGateSensor, aE as RiskGateSensorOptions, aF as RiskSignal, aG as RiskSignalCollector, aH as SENSITIVITY_METADATA_KEY, aI as SchemaValidationSensor, aJ as Sensitivity, aK as StreamScopeSensor, aL as TLVParseSensor, aM as TLV_FIELDS_KEY, aN as TLV_VALIDATORS_KEY, aO as TickAuthCapsuleRef, aP as TickAuthSensor, aQ as TickAuthSensorOptions, aR as TickAuthVerifier, aS as TlvEnum, aT as TlvField, aU as TlvFieldKind, aV as TlvFieldMeta, aW as TlvFieldOptions, aX as TlvMinLen, aY as TlvRange, aZ as TlvUtf8Pattern, a_ as TlvValidate, a$ as TlvValidatorMeta, b0 as TpsSensor, b1 as TpsSensorOptions, b2 as VarintHardeningSensor, b3 as Witness, b4 as buildAxisLawEvaluationContext, b5 as toIntentSensorBinding, b6 as toObserverBinding } from './index-Bdahn8mq.mjs';
|
|
3
3
|
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
4
|
export { AXIS_MAGIC, AXIS_VERSION, AxisBinaryFrame, AxisFrame, TLV as AxisTlvType, ERR_BAD_SIGNATURE, ERR_CONTRACT_VIOLATION, ERR_INVALID_PACKET, ERR_REPLAY_DETECTED, FLAG_BODY_TLV, FLAG_CHAIN_REQ, FLAG_HAS_WITNESS, MAX_BODY_LEN, MAX_FRAME_LEN, MAX_HDR_LEN, MAX_SIG_LEN, NCERT_ALG, NCERT_EXP, NCERT_ISSUER_KID, NCERT_KID, NCERT_NBF, NCERT_NODE_ID, NCERT_PAYLOAD, NCERT_PUB, NCERT_SCOPE, NCERT_SIG, PROOF_CAPSULE, PROOF_JWT, PROOF_LOOM, PROOF_MTLS, PROOF_NONE, PROOF_WITNESS, TLV, TLV_ACTOR_ID, TLV_AUD, TLV_BODY_ARR, TLV_BODY_OBJ, TLV_CAPSULE, TLV_EFFECT, TLV_ERROR_CODE, TLV_ERROR_MSG, TLV_INDEX, TLV_INTENT, TLV_KID, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT, TLV_NODE, TLV_NODE_CERT_HASH, TLV_NODE_KID, TLV_NONCE, TLV_OFFSET, TLV_OK, TLV_PID, TLV_LOOM_PRESENCE_ID as TLV_PRESENCE_ID, TLV_PREV_HASH, TLV_PROOF_REF, TLV_PROOF_TYPE, TLV_REALM, TLV_RECEIPT_HASH, TLV_RID, TLV_SHA256_CHUNK, TLV_LOOM_THREAD_HASH as TLV_THREAD_HASH, TLV_TRACE_ID, TLV_TS, TLV_UPLOAD_ID, TLV_LOOM_WRIT as TLV_WRIT, decodeArray, decodeFrame, decodeObject, decodeTLVs, decodeTLVsList, decodeVarint, encodeFrame, encodeTLVs, encodeVarint, getSignTarget, varintLength } from '@nextera.one/axis-protocol';
|
|
5
|
-
import { A as AxisObservation, L as LoomReceipt, T as ThreadState, W as WritValidationResult, G as Grant, a as GrantCapability, P as PresenceDeclaration, b as PresenceChallenge, c as Writ, R as Revocation, d as WritBody, e as WritMeta, f as PresenceReceipt, g as GrantStatus, h as PresenceStatus, i as PresenceProof, j as GrantValidationResult, k as PresenceVerifyResult } from './index-
|
|
6
|
-
export { l as Anomaly, m as AnomalyLevel, E as ExpectedOutcome, F as Fabric, n as FabricCell, o as FabricDiff, p as FabricDiffEntry, q as FabricDiffKind, r as FabricEffect, s as FabricEffectResolver, t as FabricQuery, u as GrantMeta, v as GrantType, I as InMemoryPatternStore, K as Knot, w as KnotBreakRequest, x as KnotError, y as KnotStatus, z as KnotType, B as KnotValidationResult, C as LoomValidationResult, N as Needle, D as NeedleError, H as NeedleHandler, J as NeedleHandlerContext, M as NeedleHandlerResult, O as NeedlePhase, Q as NeedlePipelineConfig, S as NeedlePipelineResult, U as ObservationSensor, V as ObservationStage, X as ObservedDeed, Y as Pattern, Z as PatternConfidence, _ as PatternKind, $ as PatternMatch, a0 as PatternPrediction, a1 as PatternSignature, a2 as PatternStore, a3 as RevocationTargetType, a4 as Stitch, a5 as StitchKind, a6 as Thread, a7 as TruthStatus, a8 as TruthVerdict, a9 as WritHead, aa as WritSignature, ab as addStitchToKnot, ac as applyStitch, ad as assembleNeedle, ae as breakKnot, af as canonicalizeGrant, ag as canonicalizeWrit, ah as createFabric, ai as createObservation, aj as deriveAnchorReflection, ak as detectAnomalies, al as detectKnotPatterns, am as detectSequencePatterns, an as diffFabrics, ao as endStage, ap as finalizeObservation, aq as findKnotsForStitch, ar as forkFromKnot, as as formStitch, at as getDecisionPoints, au as getFabricValue, av as getIrreversibleKnots, aw as isKnotOpen, ax as isPointOfNoReturn, ay as lockCells, az as matchPatterns, aA as openKnot, aB as projectAt, aC as queryFabric, aD as recordOccurrence, aE as recordSensor, aF as runNeedlePipeline, aG as scoreTruth, aH as startStage, aI as tieKnot, aJ as validateKnot, aK as verifyObservation, aL as weave } from './index-
|
|
5
|
+
import { A as AxisObservation, L as LoomReceipt, T as ThreadState, W as WritValidationResult, G as Grant, a as GrantCapability, P as PresenceDeclaration, b as PresenceChallenge, c as Writ, R as Revocation, d as WritBody, e as WritMeta, f as PresenceReceipt, g as GrantStatus, h as PresenceStatus, i as PresenceProof, j as GrantValidationResult, k as PresenceVerifyResult } from './index-CXewlhg-.mjs';
|
|
6
|
+
export { l as Anomaly, m as AnomalyLevel, E as ExpectedOutcome, F as Fabric, n as FabricCell, o as FabricDiff, p as FabricDiffEntry, q as FabricDiffKind, r as FabricEffect, s as FabricEffectResolver, t as FabricQuery, u as GrantMeta, v as GrantType, I as InMemoryPatternStore, K as Knot, w as KnotBreakRequest, x as KnotError, y as KnotStatus, z as KnotType, B as KnotValidationResult, C as LoomValidationResult, N as Needle, D as NeedleError, H as NeedleHandler, J as NeedleHandlerContext, M as NeedleHandlerResult, O as NeedlePhase, Q as NeedlePipelineConfig, S as NeedlePipelineResult, U as ObservationSensor, V as ObservationStage, X as ObservedDeed, Y as Pattern, Z as PatternConfidence, _ as PatternKind, $ as PatternMatch, a0 as PatternPrediction, a1 as PatternSignature, a2 as PatternStore, a3 as RevocationTargetType, a4 as Stitch, a5 as StitchKind, a6 as Thread, a7 as TruthStatus, a8 as TruthVerdict, a9 as WritHead, aa as WritSignature, ab as addStitchToKnot, ac as applyStitch, ad as assembleNeedle, ae as breakKnot, af as canonicalizeGrant, ag as canonicalizeWrit, ah as createFabric, ai as createObservation, aj as deriveAnchorReflection, ak as detectAnomalies, al as detectKnotPatterns, am as detectSequencePatterns, an as diffFabrics, ao as endStage, ap as finalizeObservation, aq as findKnotsForStitch, ar as forkFromKnot, as as formStitch, at as getDecisionPoints, au as getFabricValue, av as getIrreversibleKnots, aw as isKnotOpen, ax as isPointOfNoReturn, ay as lockCells, az as matchPatterns, aA as openKnot, aB as projectAt, aC as queryFabric, aD as recordOccurrence, aE as recordSensor, aF as runNeedlePipeline, aG as scoreTruth, aH as startStage, aI as tieKnot, aJ as validateKnot, aK as verifyObservation, aL as weave } from './index-CXewlhg-.mjs';
|
|
7
7
|
export { AxisError, AxisFrameZ, computeReceiptHash, computeSignaturePayload, generateEd25519KeyPair, sha256, signFrame, verifyFrameSignature } from './core/index.mjs';
|
|
8
8
|
export { Axis1FrameToEncode, encodeAxis1Frame } from './codec/axis1.encode.mjs';
|
|
9
9
|
export { axis1SigningBytes } from './codec/axis1.signing.mjs';
|
|
10
|
-
import { S as SensorInput, a as SensorDecision } from './axis-sensor-
|
|
11
|
-
export { b as AxisAlg, c as AxisCapsule, d as AxisCapsuleConstraints, e as AxisCapsulePayload, f as AxisJsonAlg, g as AxisJsonFrame, h as AxisJsonResponse, i as AxisJsonSig, j as AxisObservedContext, k as AxisPacket, l as AxisPostSensor, m as AxisPreSensor, n as AxisRequestContext, A as AxisSensor, o as AxisSensorInit, p as AxisSig, C as CapsuleMode, D as Decision, K as KeyStatus, q as SensorDecisions, r as SensorMinifiedDecision, s as SensorPhaseMetadata, t as normalizeSensorDecision } from './axis-sensor-
|
|
10
|
+
import { S as SensorInput, a as SensorDecision } from './axis-sensor-BLUemDiZ.mjs';
|
|
11
|
+
export { b as AxisAlg, c as AxisCapsule, d as AxisCapsuleConstraints, e as AxisCapsulePayload, f as AxisJsonAlg, g as AxisJsonFrame, h as AxisJsonResponse, i as AxisJsonSig, j as AxisObservedContext, k as AxisPacket, l as AxisPostSensor, m as AxisPreSensor, n as AxisRequestContext, A as AxisSensor, o as AxisSensorInit, p as AxisSig, C as CapsuleMode, D as Decision, K as KeyStatus, q as SensorDecisions, r as SensorMinifiedDecision, s as SensorPhaseMetadata, t as normalizeSensorDecision } from './axis-sensor-BLUemDiZ.mjs';
|
|
12
12
|
import { Axis1DecodedFrame } from './types/frame.mjs';
|
|
13
13
|
export { decodeAxis1Frame } from './types/frame.mjs';
|
|
14
14
|
export { InMemoryTimelineStore, TimelineEngine, TimelineStore } from './timeline/index.mjs';
|
|
15
15
|
export { F as ForkRequest, a as ForkResult, R as ReplayDifference, b as ReplayRequest, c as ReplayResult, S as SimulatedSideEffect, d as SimulationRequest, e as SimulationResult, f as StateSnapshot, T as TimelineBranch, g as TimelineComparison, h as TimelineDomain, i as TimelineEvent, j as TimelineEventStatus, k as TimelineHandler, l as TimelineHandlerContext, m as TimelineHandlerResult } from './timeline.types-Cn0aqbUj.mjs';
|
|
16
|
-
export { e as CCE_ERROR, h as CCE_PROTOCOL_VERSION, C as CceCapsuleClaimsType, q as CceError, a as CceExecutionContextType, s as CceHandler, t as CceHandlerContext, u as CceHandlerResult, x as CcePipelineConfig, y as CcePipelineResult, z as CcePolicyContext, A as CcePolicyDecision, B as CcePolicyEvaluator, b as CceRequestEnvelopeType, D as CceResponseEnvelopeType, I as CceWitnessRecordType, O as executeCcePipeline } from './cce-pipeline-
|
|
16
|
+
export { e as CCE_ERROR, h as CCE_PROTOCOL_VERSION, C as CceCapsuleClaimsType, q as CceError, a as CceExecutionContextType, s as CceHandler, t as CceHandlerContext, u as CceHandlerResult, x as CcePipelineConfig, y as CcePipelineResult, z as CcePolicyContext, A as CcePolicyDecision, B as CcePolicyEvaluator, b as CceRequestEnvelopeType, D as CceResponseEnvelopeType, I as CceWitnessRecordType, O as executeCcePipeline } from './cce-pipeline-By7ps8_F.mjs';
|
|
17
17
|
export { IdelCompiler, IdelSchemaRegistry } from './idel/index.mjs';
|
|
18
18
|
export { A as AlternativeIntent, C as ClarificationQuestion, a as CompilationError, b as CompilationResult, c as CompiledIntent, d as ConstraintKind, I as IntentConstraint, e as IntentParamSchema, f as IntentProposal, g as IntentRisk, h as IntentSchema, R as RiskLevel } from './idel.types-DuUAcOnQ.mjs';
|
|
19
19
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, R as RequiredProofKind, I as IntentTlvField, T as TlvValidatorFn, c as IntentRouter, O as ObserverDispatcherService, d as AxisChainEnvelope, e as AxisChainResult, f as AxisCapsuleRef, g as AxisChainStep, h as AxisContext, S as SensorRegistry } from './index-
|
|
2
|
-
export { i as AXIS_ANONYMOUS_KEY, j as AXIS_AUTHORIZED_KEY, k as AXIS_META_KEY, l as AXIS_PUBLIC_KEY, m as AXIS_RATE_LIMIT_KEY, n as AccessProfileResolverSensor, o as Axis, p as AxisAnonymous, q as AxisAuthorized, r as AxisChainEncryption, s as AxisChainRequest, t as AxisChainStatus, u as AxisChainStepResult, v as AxisChainStepStatus, w as AxisEffect, x as AxisExecutionMode, y as AxisIntentEnvelope, z as AxisIntentObserver, B as AxisIntentSensorBinding, D as AxisIntentSensorBindingOptions, E as AxisIntentSensorRef, F as AxisIntentSensorWhen, G as AxisKeyExchangeRef, H as AxisLawArticleSummary, J as AxisLawDecision, K as AxisLawEvaluationContext, L as AxisLawEvaluationResult, M as AxisLawEvaluator, N as AxisObserverBinding, P as AxisObserverBindingOptions, Q as AxisObserverContext, U as AxisObserverDefinition, V as AxisObserverEvent, W as AxisObserverRef, X as AxisObserverRegistration, Y as AxisPublic, Z as AxisRateLimit, _ as AxisRateLimitConfig, $ as BodyBudgetSensor, a0 as CAPSULE_POLICY_METADATA_KEY, a1 as CONTRACT_METADATA_KEY, a2 as CapabilityEnforcementSensor, a3 as Capsule, a4 as CapsulePolicy, a5 as CapsulePolicyOptions, a6 as CapsuleScopeMode, a7 as ChunkHashSensor, a8 as Contract, a9 as DEFAULT_CONTRACTS, aa as EntropySensor, ab as ExecutionContract, ac as ExecutionTimeoutSensor, ad as FALLBACK_CONTRACT, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ah as INTENT_METADATA_KEY, ai as INTENT_ROUTES_KEY, aj as Intent, ak as IntentAllowlistSensor, al as IntentKind, am as IntentOptions, an as IntentRegistrySensor, ao as IntentRoute, ap as LawEvaluationSensor, aq as LawEvaluationSensorOptions, ar as OBSERVER_BINDINGS_KEY, as as OBSERVER_METADATA_KEY, at as Observer, au as ObserverRegistry, av as ProofPresenceSensor, aw as ProtocolStrictSensor, ax as REQUIRED_PROOF_METADATA_KEY, ay as ReceiptPolicySensor, az as RegisteredChainConfig, aA as RequiredProof, aB as RiskDecision, aC as RiskEvaluation, aD as RiskGateSensor, aE as RiskGateSensorOptions, aF as RiskSignal, aG as RiskSignalCollector, aH as SENSITIVITY_METADATA_KEY, aI as SchemaValidationSensor, aJ as Sensitivity, aK as StreamScopeSensor, aL as TLVParseSensor, aM as TLV_FIELDS_KEY, aN as TLV_VALIDATORS_KEY, aO as TickAuthCapsuleRef, aP as TickAuthSensor, aQ as TickAuthSensorOptions, aR as TickAuthVerifier, aS as TlvEnum, aT as TlvField, aU as TlvFieldKind, aV as TlvFieldMeta, aW as TlvFieldOptions, aX as TlvMinLen, aY as TlvRange, aZ as TlvUtf8Pattern, a_ as TlvValidate, a$ as TlvValidatorMeta, b0 as TpsSensor, b1 as TpsSensorOptions, b2 as VarintHardeningSensor, b3 as Witness, b4 as buildAxisLawEvaluationContext, b5 as toIntentSensorBinding, b6 as toObserverBinding } from './index-
|
|
1
|
+
import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, R as RequiredProofKind, I as IntentTlvField, T as TlvValidatorFn, c as IntentRouter, O as ObserverDispatcherService, d as AxisChainEnvelope, e as AxisChainResult, f as AxisCapsuleRef, g as AxisChainStep, h as AxisContext, S as SensorRegistry } from './index-DRnTsYrk.js';
|
|
2
|
+
export { i as AXIS_ANONYMOUS_KEY, j as AXIS_AUTHORIZED_KEY, k as AXIS_META_KEY, l as AXIS_PUBLIC_KEY, m as AXIS_RATE_LIMIT_KEY, n as AccessProfileResolverSensor, o as Axis, p as AxisAnonymous, q as AxisAuthorized, r as AxisChainEncryption, s as AxisChainRequest, t as AxisChainStatus, u as AxisChainStepResult, v as AxisChainStepStatus, w as AxisEffect, x as AxisExecutionMode, y as AxisIntentEnvelope, z as AxisIntentObserver, B as AxisIntentSensorBinding, D as AxisIntentSensorBindingOptions, E as AxisIntentSensorRef, F as AxisIntentSensorWhen, G as AxisKeyExchangeRef, H as AxisLawArticleSummary, J as AxisLawDecision, K as AxisLawEvaluationContext, L as AxisLawEvaluationResult, M as AxisLawEvaluator, N as AxisObserverBinding, P as AxisObserverBindingOptions, Q as AxisObserverContext, U as AxisObserverDefinition, V as AxisObserverEvent, W as AxisObserverRef, X as AxisObserverRegistration, Y as AxisPublic, Z as AxisRateLimit, _ as AxisRateLimitConfig, $ as BodyBudgetSensor, a0 as CAPSULE_POLICY_METADATA_KEY, a1 as CONTRACT_METADATA_KEY, a2 as CapabilityEnforcementSensor, a3 as Capsule, a4 as CapsulePolicy, a5 as CapsulePolicyOptions, a6 as CapsuleScopeMode, a7 as ChunkHashSensor, a8 as Contract, a9 as DEFAULT_CONTRACTS, aa as EntropySensor, ab as ExecutionContract, ac as ExecutionTimeoutSensor, ad as FALLBACK_CONTRACT, ae as FrameBudgetSensor, af as FrameHeaderSanitySensor, ag as HeaderTLVLimitSensor, ah as INTENT_METADATA_KEY, ai as INTENT_ROUTES_KEY, aj as Intent, ak as IntentAllowlistSensor, al as IntentKind, am as IntentOptions, an as IntentRegistrySensor, ao as IntentRoute, ap as LawEvaluationSensor, aq as LawEvaluationSensorOptions, ar as OBSERVER_BINDINGS_KEY, as as OBSERVER_METADATA_KEY, at as Observer, au as ObserverRegistry, av as ProofPresenceSensor, aw as ProtocolStrictSensor, ax as REQUIRED_PROOF_METADATA_KEY, ay as ReceiptPolicySensor, az as RegisteredChainConfig, aA as RequiredProof, aB as RiskDecision, aC as RiskEvaluation, aD as RiskGateSensor, aE as RiskGateSensorOptions, aF as RiskSignal, aG as RiskSignalCollector, aH as SENSITIVITY_METADATA_KEY, aI as SchemaValidationSensor, aJ as Sensitivity, aK as StreamScopeSensor, aL as TLVParseSensor, aM as TLV_FIELDS_KEY, aN as TLV_VALIDATORS_KEY, aO as TickAuthCapsuleRef, aP as TickAuthSensor, aQ as TickAuthSensorOptions, aR as TickAuthVerifier, aS as TlvEnum, aT as TlvField, aU as TlvFieldKind, aV as TlvFieldMeta, aW as TlvFieldOptions, aX as TlvMinLen, aY as TlvRange, aZ as TlvUtf8Pattern, a_ as TlvValidate, a$ as TlvValidatorMeta, b0 as TpsSensor, b1 as TpsSensorOptions, b2 as VarintHardeningSensor, b3 as Witness, b4 as buildAxisLawEvaluationContext, b5 as toIntentSensorBinding, b6 as toObserverBinding } from './index-DRnTsYrk.js';
|
|
3
3
|
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
4
|
export { AXIS_MAGIC, AXIS_VERSION, AxisBinaryFrame, AxisFrame, TLV as AxisTlvType, ERR_BAD_SIGNATURE, ERR_CONTRACT_VIOLATION, ERR_INVALID_PACKET, ERR_REPLAY_DETECTED, FLAG_BODY_TLV, FLAG_CHAIN_REQ, FLAG_HAS_WITNESS, MAX_BODY_LEN, MAX_FRAME_LEN, MAX_HDR_LEN, MAX_SIG_LEN, NCERT_ALG, NCERT_EXP, NCERT_ISSUER_KID, NCERT_KID, NCERT_NBF, NCERT_NODE_ID, NCERT_PAYLOAD, NCERT_PUB, NCERT_SCOPE, NCERT_SIG, PROOF_CAPSULE, PROOF_JWT, PROOF_LOOM, PROOF_MTLS, PROOF_NONE, PROOF_WITNESS, TLV, TLV_ACTOR_ID, TLV_AUD, TLV_BODY_ARR, TLV_BODY_OBJ, TLV_CAPSULE, TLV_EFFECT, TLV_ERROR_CODE, TLV_ERROR_MSG, TLV_INDEX, TLV_INTENT, TLV_KID, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT, TLV_NODE, TLV_NODE_CERT_HASH, TLV_NODE_KID, TLV_NONCE, TLV_OFFSET, TLV_OK, TLV_PID, TLV_LOOM_PRESENCE_ID as TLV_PRESENCE_ID, TLV_PREV_HASH, TLV_PROOF_REF, TLV_PROOF_TYPE, TLV_REALM, TLV_RECEIPT_HASH, TLV_RID, TLV_SHA256_CHUNK, TLV_LOOM_THREAD_HASH as TLV_THREAD_HASH, TLV_TRACE_ID, TLV_TS, TLV_UPLOAD_ID, TLV_LOOM_WRIT as TLV_WRIT, decodeArray, decodeFrame, decodeObject, decodeTLVs, decodeTLVsList, decodeVarint, encodeFrame, encodeTLVs, encodeVarint, getSignTarget, varintLength } from '@nextera.one/axis-protocol';
|
|
5
|
-
import { A as AxisObservation, L as LoomReceipt, T as ThreadState, W as WritValidationResult, G as Grant, a as GrantCapability, P as PresenceDeclaration, b as PresenceChallenge, c as Writ, R as Revocation, d as WritBody, e as WritMeta, f as PresenceReceipt, g as GrantStatus, h as PresenceStatus, i as PresenceProof, j as GrantValidationResult, k as PresenceVerifyResult } from './index-
|
|
6
|
-
export { l as Anomaly, m as AnomalyLevel, E as ExpectedOutcome, F as Fabric, n as FabricCell, o as FabricDiff, p as FabricDiffEntry, q as FabricDiffKind, r as FabricEffect, s as FabricEffectResolver, t as FabricQuery, u as GrantMeta, v as GrantType, I as InMemoryPatternStore, K as Knot, w as KnotBreakRequest, x as KnotError, y as KnotStatus, z as KnotType, B as KnotValidationResult, C as LoomValidationResult, N as Needle, D as NeedleError, H as NeedleHandler, J as NeedleHandlerContext, M as NeedleHandlerResult, O as NeedlePhase, Q as NeedlePipelineConfig, S as NeedlePipelineResult, U as ObservationSensor, V as ObservationStage, X as ObservedDeed, Y as Pattern, Z as PatternConfidence, _ as PatternKind, $ as PatternMatch, a0 as PatternPrediction, a1 as PatternSignature, a2 as PatternStore, a3 as RevocationTargetType, a4 as Stitch, a5 as StitchKind, a6 as Thread, a7 as TruthStatus, a8 as TruthVerdict, a9 as WritHead, aa as WritSignature, ab as addStitchToKnot, ac as applyStitch, ad as assembleNeedle, ae as breakKnot, af as canonicalizeGrant, ag as canonicalizeWrit, ah as createFabric, ai as createObservation, aj as deriveAnchorReflection, ak as detectAnomalies, al as detectKnotPatterns, am as detectSequencePatterns, an as diffFabrics, ao as endStage, ap as finalizeObservation, aq as findKnotsForStitch, ar as forkFromKnot, as as formStitch, at as getDecisionPoints, au as getFabricValue, av as getIrreversibleKnots, aw as isKnotOpen, ax as isPointOfNoReturn, ay as lockCells, az as matchPatterns, aA as openKnot, aB as projectAt, aC as queryFabric, aD as recordOccurrence, aE as recordSensor, aF as runNeedlePipeline, aG as scoreTruth, aH as startStage, aI as tieKnot, aJ as validateKnot, aK as verifyObservation, aL as weave } from './index-
|
|
5
|
+
import { A as AxisObservation, L as LoomReceipt, T as ThreadState, W as WritValidationResult, G as Grant, a as GrantCapability, P as PresenceDeclaration, b as PresenceChallenge, c as Writ, R as Revocation, d as WritBody, e as WritMeta, f as PresenceReceipt, g as GrantStatus, h as PresenceStatus, i as PresenceProof, j as GrantValidationResult, k as PresenceVerifyResult } from './index-ChuwP1RU.js';
|
|
6
|
+
export { l as Anomaly, m as AnomalyLevel, E as ExpectedOutcome, F as Fabric, n as FabricCell, o as FabricDiff, p as FabricDiffEntry, q as FabricDiffKind, r as FabricEffect, s as FabricEffectResolver, t as FabricQuery, u as GrantMeta, v as GrantType, I as InMemoryPatternStore, K as Knot, w as KnotBreakRequest, x as KnotError, y as KnotStatus, z as KnotType, B as KnotValidationResult, C as LoomValidationResult, N as Needle, D as NeedleError, H as NeedleHandler, J as NeedleHandlerContext, M as NeedleHandlerResult, O as NeedlePhase, Q as NeedlePipelineConfig, S as NeedlePipelineResult, U as ObservationSensor, V as ObservationStage, X as ObservedDeed, Y as Pattern, Z as PatternConfidence, _ as PatternKind, $ as PatternMatch, a0 as PatternPrediction, a1 as PatternSignature, a2 as PatternStore, a3 as RevocationTargetType, a4 as Stitch, a5 as StitchKind, a6 as Thread, a7 as TruthStatus, a8 as TruthVerdict, a9 as WritHead, aa as WritSignature, ab as addStitchToKnot, ac as applyStitch, ad as assembleNeedle, ae as breakKnot, af as canonicalizeGrant, ag as canonicalizeWrit, ah as createFabric, ai as createObservation, aj as deriveAnchorReflection, ak as detectAnomalies, al as detectKnotPatterns, am as detectSequencePatterns, an as diffFabrics, ao as endStage, ap as finalizeObservation, aq as findKnotsForStitch, ar as forkFromKnot, as as formStitch, at as getDecisionPoints, au as getFabricValue, av as getIrreversibleKnots, aw as isKnotOpen, ax as isPointOfNoReturn, ay as lockCells, az as matchPatterns, aA as openKnot, aB as projectAt, aC as queryFabric, aD as recordOccurrence, aE as recordSensor, aF as runNeedlePipeline, aG as scoreTruth, aH as startStage, aI as tieKnot, aJ as validateKnot, aK as verifyObservation, aL as weave } from './index-ChuwP1RU.js';
|
|
7
7
|
export { AxisError, AxisFrameZ, computeReceiptHash, computeSignaturePayload, generateEd25519KeyPair, sha256, signFrame, verifyFrameSignature } from './core/index.js';
|
|
8
8
|
export { Axis1FrameToEncode, encodeAxis1Frame } from './codec/axis1.encode.js';
|
|
9
9
|
export { axis1SigningBytes } from './codec/axis1.signing.js';
|
|
10
|
-
import { S as SensorInput, a as SensorDecision } from './axis-sensor-
|
|
11
|
-
export { b as AxisAlg, c as AxisCapsule, d as AxisCapsuleConstraints, e as AxisCapsulePayload, f as AxisJsonAlg, g as AxisJsonFrame, h as AxisJsonResponse, i as AxisJsonSig, j as AxisObservedContext, k as AxisPacket, l as AxisPostSensor, m as AxisPreSensor, n as AxisRequestContext, A as AxisSensor, o as AxisSensorInit, p as AxisSig, C as CapsuleMode, D as Decision, K as KeyStatus, q as SensorDecisions, r as SensorMinifiedDecision, s as SensorPhaseMetadata, t as normalizeSensorDecision } from './axis-sensor-
|
|
10
|
+
import { S as SensorInput, a as SensorDecision } from './axis-sensor-BLUemDiZ.js';
|
|
11
|
+
export { b as AxisAlg, c as AxisCapsule, d as AxisCapsuleConstraints, e as AxisCapsulePayload, f as AxisJsonAlg, g as AxisJsonFrame, h as AxisJsonResponse, i as AxisJsonSig, j as AxisObservedContext, k as AxisPacket, l as AxisPostSensor, m as AxisPreSensor, n as AxisRequestContext, A as AxisSensor, o as AxisSensorInit, p as AxisSig, C as CapsuleMode, D as Decision, K as KeyStatus, q as SensorDecisions, r as SensorMinifiedDecision, s as SensorPhaseMetadata, t as normalizeSensorDecision } from './axis-sensor-BLUemDiZ.js';
|
|
12
12
|
import { Axis1DecodedFrame } from './types/frame.js';
|
|
13
13
|
export { decodeAxis1Frame } from './types/frame.js';
|
|
14
14
|
export { InMemoryTimelineStore, TimelineEngine, TimelineStore } from './timeline/index.js';
|
|
15
15
|
export { F as ForkRequest, a as ForkResult, R as ReplayDifference, b as ReplayRequest, c as ReplayResult, S as SimulatedSideEffect, d as SimulationRequest, e as SimulationResult, f as StateSnapshot, T as TimelineBranch, g as TimelineComparison, h as TimelineDomain, i as TimelineEvent, j as TimelineEventStatus, k as TimelineHandler, l as TimelineHandlerContext, m as TimelineHandlerResult } from './timeline.types-Cn0aqbUj.js';
|
|
16
|
-
export { e as CCE_ERROR, h as CCE_PROTOCOL_VERSION, C as CceCapsuleClaimsType, q as CceError, a as CceExecutionContextType, s as CceHandler, t as CceHandlerContext, u as CceHandlerResult, x as CcePipelineConfig, y as CcePipelineResult, z as CcePolicyContext, A as CcePolicyDecision, B as CcePolicyEvaluator, b as CceRequestEnvelopeType, D as CceResponseEnvelopeType, I as CceWitnessRecordType, O as executeCcePipeline } from './cce-pipeline-
|
|
16
|
+
export { e as CCE_ERROR, h as CCE_PROTOCOL_VERSION, C as CceCapsuleClaimsType, q as CceError, a as CceExecutionContextType, s as CceHandler, t as CceHandlerContext, u as CceHandlerResult, x as CcePipelineConfig, y as CcePipelineResult, z as CcePolicyContext, A as CcePolicyDecision, B as CcePolicyEvaluator, b as CceRequestEnvelopeType, D as CceResponseEnvelopeType, I as CceWitnessRecordType, O as executeCcePipeline } from './cce-pipeline-CVeMpuKr.js';
|
|
17
17
|
export { IdelCompiler, IdelSchemaRegistry } from './idel/index.js';
|
|
18
18
|
export { A as AlternativeIntent, C as ClarificationQuestion, a as CompilationError, b as CompilationResult, c as CompiledIntent, d as ConstraintKind, I as IntentConstraint, e as IntentParamSchema, f as IntentProposal, g as IntentRisk, h as IntentSchema, R as RiskLevel } from './idel.types-DuUAcOnQ.js';
|
|
19
19
|
import 'zod';
|