@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.
@@ -1,6 +1,6 @@
1
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
- import { AxisFrame } from '@nextera.one/axis-protocol';
3
+ import { ProofKind, AxisFrame } from '@nextera.one/axis-protocol';
4
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';
@@ -141,19 +141,6 @@ interface ExecutionContract {
141
141
  declare const DEFAULT_CONTRACTS: Record<string, ExecutionContract>;
142
142
  declare const FALLBACK_CONTRACT: ExecutionContract;
143
143
 
144
- declare const ProofKindZ: z.ZodEnum<{
145
- NONE: "NONE";
146
- ANONYMOUS: "ANONYMOUS";
147
- PASSPORT: "PASSPORT";
148
- CAPSULE: "CAPSULE";
149
- JWT: "JWT";
150
- CONTRACT: "CONTRACT";
151
- WITNESS: "WITNESS";
152
- MTLS: "MTLS";
153
- DEVICE: "DEVICE";
154
- AUTHORIZED: "AUTHORIZED";
155
- }>;
156
- type ProofKind = z.infer<typeof ProofKindZ>;
157
144
  declare const ProofPresenceInputZ: z.ZodObject<{
158
145
  profile: z.ZodEnum<{
159
146
  PUBLIC: "PUBLIC";
@@ -1,6 +1,6 @@
1
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
- import { AxisFrame } from '@nextera.one/axis-protocol';
3
+ import { ProofKind, AxisFrame } from '@nextera.one/axis-protocol';
4
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';
@@ -141,19 +141,6 @@ interface ExecutionContract {
141
141
  declare const DEFAULT_CONTRACTS: Record<string, ExecutionContract>;
142
142
  declare const FALLBACK_CONTRACT: ExecutionContract;
143
143
 
144
- declare const ProofKindZ: z.ZodEnum<{
145
- NONE: "NONE";
146
- ANONYMOUS: "ANONYMOUS";
147
- PASSPORT: "PASSPORT";
148
- CAPSULE: "CAPSULE";
149
- JWT: "JWT";
150
- CONTRACT: "CONTRACT";
151
- WITNESS: "WITNESS";
152
- MTLS: "MTLS";
153
- DEVICE: "DEVICE";
154
- AUTHORIZED: "AUTHORIZED";
155
- }>;
156
- type ProofKind = z.infer<typeof ProofKindZ>;
157
144
  declare const ProofPresenceInputZ: z.ZodObject<{
158
145
  profile: z.ZodEnum<{
159
146
  PUBLIC: "PUBLIC";
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
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-Bb2pRr93.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 AXIS_STREAM_META_KEY, o as AccessProfileResolverSensor, p as Axis, q as AxisAnonymous, r as AxisAuthorized, s as AxisChainEncryption, t as AxisChainRequest, u as AxisChainStatus, v as AxisChainStepResult, w as AxisChainStepStatus, x as AxisEffect, y as AxisExecutionMode, z as AxisIntentEnvelope, B as AxisIntentObserver, D as AxisIntentSensorBinding, E as AxisIntentSensorBindingOptions, F as AxisIntentSensorRef, G as AxisIntentSensorWhen, H as AxisKeyExchangeRef, J as AxisLawArticleSummary, K as AxisLawDecision, L as AxisLawEvaluationContext, M as AxisLawEvaluationResult, N as AxisLawEvaluator, P as AxisObserverBinding, Q as AxisObserverBindingOptions, U as AxisObserverContext, V as AxisObserverDefinition, W as AxisObserverEvent, X as AxisObserverRef, Y as AxisObserverRegistration, Z as AxisPublic, _ as AxisRateLimit, $ as AxisRateLimitConfig, a0 as AxisStream, a1 as AxisStreamOptions, a2 as BodyBudgetSensor, a3 as CAPSULE_POLICY_METADATA_KEY, a4 as CONTRACT_METADATA_KEY, a5 as CapabilityEnforcementSensor, a6 as Capsule, a7 as CapsulePolicy, a8 as CapsulePolicyOptions, a9 as CapsuleScopeMode, aa as ChunkHashSensor, ab as Contract, ac as DEFAULT_CONTRACTS, ad as EntropySensor, ae as ExecutionContract, af as ExecutionTimeoutSensor, ag as FALLBACK_CONTRACT, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, ak as INTENT_METADATA_KEY, al as INTENT_ROUTES_KEY, am as Intent, an as IntentAllowlistSensor, ao as IntentKind, ap as IntentOptions, aq as IntentRegistrySensor, ar as IntentRoute, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aw as LawEvaluationSensorOptions, ax as OBSERVER_BINDINGS_KEY, ay as OBSERVER_METADATA_KEY, az as Observer, aA as ObserverRegistry, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aD as REQUIRED_PROOF_METADATA_KEY, aE as ReceiptPolicySensor, aF as RegisteredChainConfig, aG as RequiredProof, aH as RiskDecision, aI as RiskEvaluation, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aL as RiskSignal, aM as RiskSignalCollector, aN as SENSITIVITY_METADATA_KEY, aO as SchemaValidationSensor, aP as Sensitivity, aQ as StreamScopeSensor, aR as TLVParseSensor, aS as TLV_FIELDS_KEY, aT as TLV_VALIDATORS_KEY, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, aY as TlvEnum, aZ as TlvField, a_ as TlvFieldKind, a$ as TlvFieldMeta, b0 as TlvFieldOptions, b1 as TlvMinLen, b2 as TlvRange, b3 as TlvUtf8Pattern, b4 as TlvValidate, b5 as TlvValidatorMeta, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor, b9 as Witness, ba as buildAxisLawEvaluationContext, bb as toIntentSensorBinding, bc as toObserverBinding } from './index-Bb2pRr93.mjs';
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-BCFbHQxo.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 AXIS_STREAM_META_KEY, o as AccessProfileResolverSensor, p as Axis, q as AxisAnonymous, r as AxisAuthorized, s as AxisChainEncryption, t as AxisChainRequest, u as AxisChainStatus, v as AxisChainStepResult, w as AxisChainStepStatus, x as AxisEffect, y as AxisExecutionMode, z as AxisIntentEnvelope, B as AxisIntentObserver, D as AxisIntentSensorBinding, E as AxisIntentSensorBindingOptions, F as AxisIntentSensorRef, G as AxisIntentSensorWhen, H as AxisKeyExchangeRef, J as AxisLawArticleSummary, K as AxisLawDecision, L as AxisLawEvaluationContext, M as AxisLawEvaluationResult, N as AxisLawEvaluator, P as AxisObserverBinding, Q as AxisObserverBindingOptions, U as AxisObserverContext, V as AxisObserverDefinition, W as AxisObserverEvent, X as AxisObserverRef, Y as AxisObserverRegistration, Z as AxisPublic, _ as AxisRateLimit, $ as AxisRateLimitConfig, a0 as AxisStream, a1 as AxisStreamOptions, a2 as BodyBudgetSensor, a3 as CAPSULE_POLICY_METADATA_KEY, a4 as CONTRACT_METADATA_KEY, a5 as CapabilityEnforcementSensor, a6 as Capsule, a7 as CapsulePolicy, a8 as CapsulePolicyOptions, a9 as CapsuleScopeMode, aa as ChunkHashSensor, ab as Contract, ac as DEFAULT_CONTRACTS, ad as EntropySensor, ae as ExecutionContract, af as ExecutionTimeoutSensor, ag as FALLBACK_CONTRACT, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, ak as INTENT_METADATA_KEY, al as INTENT_ROUTES_KEY, am as Intent, an as IntentAllowlistSensor, ao as IntentKind, ap as IntentOptions, aq as IntentRegistrySensor, ar as IntentRoute, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aw as LawEvaluationSensorOptions, ax as OBSERVER_BINDINGS_KEY, ay as OBSERVER_METADATA_KEY, az as Observer, aA as ObserverRegistry, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aD as REQUIRED_PROOF_METADATA_KEY, aE as ReceiptPolicySensor, aF as RegisteredChainConfig, aG as RequiredProof, aH as RiskDecision, aI as RiskEvaluation, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aL as RiskSignal, aM as RiskSignalCollector, aN as SENSITIVITY_METADATA_KEY, aO as SchemaValidationSensor, aP as Sensitivity, aQ as StreamScopeSensor, aR as TLVParseSensor, aS as TLV_FIELDS_KEY, aT as TLV_VALIDATORS_KEY, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, aY as TlvEnum, aZ as TlvField, a_ as TlvFieldKind, a$ as TlvFieldMeta, b0 as TlvFieldOptions, b1 as TlvMinLen, b2 as TlvRange, b3 as TlvUtf8Pattern, b4 as TlvValidate, b5 as TlvValidatorMeta, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor, b9 as Witness, ba as buildAxisLawEvaluationContext, bb as toIntentSensorBinding, bc as toObserverBinding } from './index-BCFbHQxo.mjs';
3
3
  import { AxisFrame } from '@nextera.one/axis-protocol';
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';
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_KINDS, PROOF_LOOM, PROOF_MTLS, PROOF_NONE, PROOF_WITNESS, ProofKind, 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
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
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';
@@ -21,6 +21,15 @@ import 'zod';
21
21
  declare const CHAIN_METADATA_KEY = "axis:chain";
22
22
  declare function Chain(options?: ChainOptions): MethodDecorator;
23
23
 
24
+ declare abstract class AxisMediaTypes {
25
+ static readonly BINARY = "application/axis-bin";
26
+ static readonly OCTET_STREAM = "application/octet-stream";
27
+ static readonly LEGACY_BINARY = "application/x-axis";
28
+ static readonly VALID_AXIS_CONTENT_TYPES: readonly ["application/axis-bin", "application/octet-stream", "application/x-axis"];
29
+ static normalize(value?: string | null): string | undefined;
30
+ static isAxisContentType(value?: string | null): boolean;
31
+ }
32
+
24
33
  declare const HANDLER_METADATA_KEY = "axis:handler";
25
34
  interface HandlerOptions extends AxisIntentSensorOptions {
26
35
  observe?: AxisObserverBindingInput[];
@@ -203,15 +212,6 @@ declare function verifyResponse(ctx: ResponseObserverContext, response: Response
203
212
  type ResponseObserver = (ctx: ResponseObserverContext, response: ResponseContract) => ObserverVerdict;
204
213
  declare const ResponseObserver: ResponseObserver;
205
214
 
206
- declare abstract class AxisMediaTypes {
207
- static readonly BINARY = "application/axis-bin";
208
- static readonly OCTET_STREAM = "application/octet-stream";
209
- static readonly LEGACY_BINARY = "application/x-axis";
210
- static readonly VALID_AXIS_CONTENT_TYPES: readonly ["application/axis-bin", "application/octet-stream", "application/x-axis"];
211
- static normalize(value?: string | null): string | undefined;
212
- static isAxisContentType(value?: string | null): boolean;
213
- }
214
-
215
215
  declare const ATS1_HDR: {
216
216
  readonly INTENT_ID: 1;
217
217
  readonly ACTOR_KEY_ID: 2;
@@ -511,7 +511,7 @@ declare const T: {
511
511
  type AxisPacket = {
512
512
  intent: string;
513
513
  intentVersion: number;
514
- actorId: string;
514
+ actorId?: string;
515
515
  capsuleId?: Buffer;
516
516
  pid: Buffer;
517
517
  nonce: Buffer;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
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-Q8wrM2PV.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 AXIS_STREAM_META_KEY, o as AccessProfileResolverSensor, p as Axis, q as AxisAnonymous, r as AxisAuthorized, s as AxisChainEncryption, t as AxisChainRequest, u as AxisChainStatus, v as AxisChainStepResult, w as AxisChainStepStatus, x as AxisEffect, y as AxisExecutionMode, z as AxisIntentEnvelope, B as AxisIntentObserver, D as AxisIntentSensorBinding, E as AxisIntentSensorBindingOptions, F as AxisIntentSensorRef, G as AxisIntentSensorWhen, H as AxisKeyExchangeRef, J as AxisLawArticleSummary, K as AxisLawDecision, L as AxisLawEvaluationContext, M as AxisLawEvaluationResult, N as AxisLawEvaluator, P as AxisObserverBinding, Q as AxisObserverBindingOptions, U as AxisObserverContext, V as AxisObserverDefinition, W as AxisObserverEvent, X as AxisObserverRef, Y as AxisObserverRegistration, Z as AxisPublic, _ as AxisRateLimit, $ as AxisRateLimitConfig, a0 as AxisStream, a1 as AxisStreamOptions, a2 as BodyBudgetSensor, a3 as CAPSULE_POLICY_METADATA_KEY, a4 as CONTRACT_METADATA_KEY, a5 as CapabilityEnforcementSensor, a6 as Capsule, a7 as CapsulePolicy, a8 as CapsulePolicyOptions, a9 as CapsuleScopeMode, aa as ChunkHashSensor, ab as Contract, ac as DEFAULT_CONTRACTS, ad as EntropySensor, ae as ExecutionContract, af as ExecutionTimeoutSensor, ag as FALLBACK_CONTRACT, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, ak as INTENT_METADATA_KEY, al as INTENT_ROUTES_KEY, am as Intent, an as IntentAllowlistSensor, ao as IntentKind, ap as IntentOptions, aq as IntentRegistrySensor, ar as IntentRoute, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aw as LawEvaluationSensorOptions, ax as OBSERVER_BINDINGS_KEY, ay as OBSERVER_METADATA_KEY, az as Observer, aA as ObserverRegistry, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aD as REQUIRED_PROOF_METADATA_KEY, aE as ReceiptPolicySensor, aF as RegisteredChainConfig, aG as RequiredProof, aH as RiskDecision, aI as RiskEvaluation, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aL as RiskSignal, aM as RiskSignalCollector, aN as SENSITIVITY_METADATA_KEY, aO as SchemaValidationSensor, aP as Sensitivity, aQ as StreamScopeSensor, aR as TLVParseSensor, aS as TLV_FIELDS_KEY, aT as TLV_VALIDATORS_KEY, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, aY as TlvEnum, aZ as TlvField, a_ as TlvFieldKind, a$ as TlvFieldMeta, b0 as TlvFieldOptions, b1 as TlvMinLen, b2 as TlvRange, b3 as TlvUtf8Pattern, b4 as TlvValidate, b5 as TlvValidatorMeta, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor, b9 as Witness, ba as buildAxisLawEvaluationContext, bb as toIntentSensorBinding, bc as toObserverBinding } from './index-Q8wrM2PV.js';
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-BsnV_K_l.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 AXIS_STREAM_META_KEY, o as AccessProfileResolverSensor, p as Axis, q as AxisAnonymous, r as AxisAuthorized, s as AxisChainEncryption, t as AxisChainRequest, u as AxisChainStatus, v as AxisChainStepResult, w as AxisChainStepStatus, x as AxisEffect, y as AxisExecutionMode, z as AxisIntentEnvelope, B as AxisIntentObserver, D as AxisIntentSensorBinding, E as AxisIntentSensorBindingOptions, F as AxisIntentSensorRef, G as AxisIntentSensorWhen, H as AxisKeyExchangeRef, J as AxisLawArticleSummary, K as AxisLawDecision, L as AxisLawEvaluationContext, M as AxisLawEvaluationResult, N as AxisLawEvaluator, P as AxisObserverBinding, Q as AxisObserverBindingOptions, U as AxisObserverContext, V as AxisObserverDefinition, W as AxisObserverEvent, X as AxisObserverRef, Y as AxisObserverRegistration, Z as AxisPublic, _ as AxisRateLimit, $ as AxisRateLimitConfig, a0 as AxisStream, a1 as AxisStreamOptions, a2 as BodyBudgetSensor, a3 as CAPSULE_POLICY_METADATA_KEY, a4 as CONTRACT_METADATA_KEY, a5 as CapabilityEnforcementSensor, a6 as Capsule, a7 as CapsulePolicy, a8 as CapsulePolicyOptions, a9 as CapsuleScopeMode, aa as ChunkHashSensor, ab as Contract, ac as DEFAULT_CONTRACTS, ad as EntropySensor, ae as ExecutionContract, af as ExecutionTimeoutSensor, ag as FALLBACK_CONTRACT, ah as FrameBudgetSensor, ai as FrameHeaderSanitySensor, aj as HeaderTLVLimitSensor, ak as INTENT_METADATA_KEY, al as INTENT_ROUTES_KEY, am as Intent, an as IntentAllowlistSensor, ao as IntentKind, ap as IntentOptions, aq as IntentRegistrySensor, ar as IntentRoute, as as LawArticlePresenceMode, at as LawArticlePresenceSensor, au as LawArticlePresenceSensorOptions, av as LawEvaluationSensor, aw as LawEvaluationSensorOptions, ax as OBSERVER_BINDINGS_KEY, ay as OBSERVER_METADATA_KEY, az as Observer, aA as ObserverRegistry, aB as ProofPresenceSensor, aC as ProtocolStrictSensor, aD as REQUIRED_PROOF_METADATA_KEY, aE as ReceiptPolicySensor, aF as RegisteredChainConfig, aG as RequiredProof, aH as RiskDecision, aI as RiskEvaluation, aJ as RiskGateSensor, aK as RiskGateSensorOptions, aL as RiskSignal, aM as RiskSignalCollector, aN as SENSITIVITY_METADATA_KEY, aO as SchemaValidationSensor, aP as Sensitivity, aQ as StreamScopeSensor, aR as TLVParseSensor, aS as TLV_FIELDS_KEY, aT as TLV_VALIDATORS_KEY, aU as TickAuthCapsuleRef, aV as TickAuthSensor, aW as TickAuthSensorOptions, aX as TickAuthVerifier, aY as TlvEnum, aZ as TlvField, a_ as TlvFieldKind, a$ as TlvFieldMeta, b0 as TlvFieldOptions, b1 as TlvMinLen, b2 as TlvRange, b3 as TlvUtf8Pattern, b4 as TlvValidate, b5 as TlvValidatorMeta, b6 as TpsSensor, b7 as TpsSensorOptions, b8 as VarintHardeningSensor, b9 as Witness, ba as buildAxisLawEvaluationContext, bb as toIntentSensorBinding, bc as toObserverBinding } from './index-BsnV_K_l.js';
3
3
  import { AxisFrame } from '@nextera.one/axis-protocol';
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';
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_KINDS, PROOF_LOOM, PROOF_MTLS, PROOF_NONE, PROOF_WITNESS, ProofKind, 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
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
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';
@@ -21,6 +21,15 @@ import 'zod';
21
21
  declare const CHAIN_METADATA_KEY = "axis:chain";
22
22
  declare function Chain(options?: ChainOptions): MethodDecorator;
23
23
 
24
+ declare abstract class AxisMediaTypes {
25
+ static readonly BINARY = "application/axis-bin";
26
+ static readonly OCTET_STREAM = "application/octet-stream";
27
+ static readonly LEGACY_BINARY = "application/x-axis";
28
+ static readonly VALID_AXIS_CONTENT_TYPES: readonly ["application/axis-bin", "application/octet-stream", "application/x-axis"];
29
+ static normalize(value?: string | null): string | undefined;
30
+ static isAxisContentType(value?: string | null): boolean;
31
+ }
32
+
24
33
  declare const HANDLER_METADATA_KEY = "axis:handler";
25
34
  interface HandlerOptions extends AxisIntentSensorOptions {
26
35
  observe?: AxisObserverBindingInput[];
@@ -203,15 +212,6 @@ declare function verifyResponse(ctx: ResponseObserverContext, response: Response
203
212
  type ResponseObserver = (ctx: ResponseObserverContext, response: ResponseContract) => ObserverVerdict;
204
213
  declare const ResponseObserver: ResponseObserver;
205
214
 
206
- declare abstract class AxisMediaTypes {
207
- static readonly BINARY = "application/axis-bin";
208
- static readonly OCTET_STREAM = "application/octet-stream";
209
- static readonly LEGACY_BINARY = "application/x-axis";
210
- static readonly VALID_AXIS_CONTENT_TYPES: readonly ["application/axis-bin", "application/octet-stream", "application/x-axis"];
211
- static normalize(value?: string | null): string | undefined;
212
- static isAxisContentType(value?: string | null): boolean;
213
- }
214
-
215
215
  declare const ATS1_HDR: {
216
216
  readonly INTENT_ID: 1;
217
217
  readonly ACTOR_KEY_ID: 2;
@@ -511,7 +511,7 @@ declare const T: {
511
511
  type AxisPacket = {
512
512
  intent: string;
513
513
  intentVersion: number;
514
- actorId: string;
514
+ actorId?: string;
515
515
  capsuleId?: Buffer;
516
516
  pid: Buffer;
517
517
  nonce: Buffer;
package/dist/index.js CHANGED
@@ -880,6 +880,7 @@ __export(constants_exports, {
880
880
  NCERT_SIG: () => import_axis_protocol2.NCERT_SIG,
881
881
  PROOF_CAPSULE: () => import_axis_protocol2.PROOF_CAPSULE,
882
882
  PROOF_JWT: () => import_axis_protocol2.PROOF_JWT,
883
+ PROOF_KINDS: () => import_axis_protocol2.PROOF_KINDS,
883
884
  PROOF_LOOM: () => import_axis_protocol2.PROOF_LOOM,
884
885
  PROOF_MTLS: () => import_axis_protocol2.PROOF_MTLS,
885
886
  PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
@@ -5475,7 +5476,6 @@ function buildPacket(hdr, body, sig, flags = 0) {
5475
5476
  const nonce = hm.get(T.NONCE)?.[0];
5476
5477
  const tsMs = asBigint64BE(hm.get(T.TS_MS)?.[0]);
5477
5478
  if (!intent) throw new Error("PACKET_MISSING_INTENT");
5478
- if (!actorId) throw new Error("PACKET_MISSING_ACTOR_ID");
5479
5479
  if (!nonce || nonce.length < 16 || nonce.length > 32)
5480
5480
  throw new Error("PACKET_BAD_NONCE");
5481
5481
  if (!pid) throw new Error("PACKET_MISSING_PID");
@@ -11757,6 +11757,7 @@ var init_axis_schemas = __esm({
11757
11757
  "src/schemas/axis-schemas.ts"() {
11758
11758
  z2 = __toESM(require("zod"));
11759
11759
  init_axis_bin();
11760
+ init_constants();
11760
11761
  SensorDecisionZ = z2.union([
11761
11762
  z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
11762
11763
  z2.object({
@@ -11786,18 +11787,7 @@ var init_axis_schemas = __esm({
11786
11787
  isFailure: z2.boolean().optional()
11787
11788
  });
11788
11789
  ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
11789
- ProofKindZ = z2.enum([
11790
- "NONE",
11791
- "ANONYMOUS",
11792
- "PASSPORT",
11793
- "CAPSULE",
11794
- "JWT",
11795
- "CONTRACT",
11796
- "WITNESS",
11797
- "MTLS",
11798
- "DEVICE",
11799
- "AUTHORIZED"
11800
- ]);
11790
+ ProofKindZ = z2.enum(import_axis_protocol2.PROOF_KINDS);
11801
11791
  AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
11802
11792
  ProofPresenceInputZ = z2.object({
11803
11793
  profile: AccessProfileZ,
@@ -13158,6 +13148,7 @@ __export(index_exports, {
13158
13148
  PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
13159
13149
  PROOF_CAPSULE: () => import_axis_protocol2.PROOF_CAPSULE,
13160
13150
  PROOF_JWT: () => import_axis_protocol2.PROOF_JWT,
13151
+ PROOF_KINDS: () => import_axis_protocol2.PROOF_KINDS,
13161
13152
  PROOF_LOOM: () => import_axis_protocol2.PROOF_LOOM,
13162
13153
  PROOF_MTLS: () => import_axis_protocol2.PROOF_MTLS,
13163
13154
  PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
@@ -13548,6 +13539,7 @@ init_index();
13548
13539
  PROOF_CAPABILITIES,
13549
13540
  PROOF_CAPSULE,
13550
13541
  PROOF_JWT,
13542
+ PROOF_KINDS,
13551
13543
  PROOF_LOOM,
13552
13544
  PROOF_MTLS,
13553
13545
  PROOF_NONE,