@nextera.one/axis-server-sdk 2.2.7 → 2.2.8

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.
@@ -143,10 +143,15 @@ declare const FALLBACK_CONTRACT: ExecutionContract;
143
143
 
144
144
  declare const ProofKindZ: z.ZodEnum<{
145
145
  NONE: "NONE";
146
- CAPSULE: "CAPSULE";
146
+ ANONYMOUS: "ANONYMOUS";
147
147
  PASSPORT: "PASSPORT";
148
- MTLS: "MTLS";
148
+ CAPSULE: "CAPSULE";
149
149
  JWT: "JWT";
150
+ CONTRACT: "CONTRACT";
151
+ WITNESS: "WITNESS";
152
+ MTLS: "MTLS";
153
+ DEVICE: "DEVICE";
154
+ AUTHORIZED: "AUTHORIZED";
150
155
  }>;
151
156
  type ProofKind = z.infer<typeof ProofKindZ>;
152
157
  declare const ProofPresenceInputZ: z.ZodObject<{
@@ -162,15 +167,20 @@ declare const ProofPresenceInputZ: z.ZodObject<{
162
167
  }>;
163
168
  requiredProof: z.ZodArray<z.ZodEnum<{
164
169
  NONE: "NONE";
165
- CAPSULE: "CAPSULE";
170
+ ANONYMOUS: "ANONYMOUS";
166
171
  PASSPORT: "PASSPORT";
167
- MTLS: "MTLS";
172
+ CAPSULE: "CAPSULE";
168
173
  JWT: "JWT";
174
+ CONTRACT: "CONTRACT";
175
+ WITNESS: "WITNESS";
176
+ MTLS: "MTLS";
177
+ DEVICE: "DEVICE";
178
+ AUTHORIZED: "AUTHORIZED";
169
179
  }>>;
170
180
  hasCapsule: z.ZodBoolean;
171
181
  hasPassportSignature: z.ZodBoolean;
172
182
  intent: z.ZodString;
173
- }, z.z.core.$strip>;
183
+ }, z.core.$strip>;
174
184
  type ProofPresenceInput = z.infer<typeof ProofPresenceInputZ>;
175
185
  declare const SensitivityLevelZ: z.ZodEnum<{
176
186
  LOW: "LOW";
@@ -203,9 +213,9 @@ declare const AxisContextZ: z.ZodObject<{
203
213
  allowIntents: z.ZodArray<z.ZodString>;
204
214
  limits: z.ZodOptional<z.ZodObject<{
205
215
  maxBodyBytes: z.ZodOptional<z.ZodNumber>;
206
- }, z.z.core.$strip>>;
216
+ }, z.core.$strip>>;
207
217
  scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
208
- }, z.z.core.$strip>;
218
+ }, z.core.$strip>;
209
219
  issuedAt: z.ZodNumber;
210
220
  expiresAt: z.ZodNumber;
211
221
  tier: z.ZodEnum<{
@@ -213,7 +223,7 @@ declare const AxisContextZ: z.ZodObject<{
213
223
  STANDARD: "STANDARD";
214
224
  PREMIUM: "PREMIUM";
215
225
  }>;
216
- }, z.z.core.$strip>>;
226
+ }, z.core.$strip>>;
217
227
  passport: z.ZodOptional<z.ZodObject<{
218
228
  id: z.ZodString;
219
229
  public_key: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
@@ -225,9 +235,9 @@ declare const AxisContextZ: z.ZodObject<{
225
235
  }>;
226
236
  issuedAt: z.ZodNumber;
227
237
  expiresAt: z.ZodOptional<z.ZodNumber>;
228
- }, z.z.core.$strip>>;
238
+ }, z.core.$strip>>;
229
239
  meter: z.ZodOptional<z.ZodAny>;
230
- }, z.z.core.$strip>;
240
+ }, z.core.$strip>;
231
241
  type AxisContext = z.infer<typeof AxisContextZ>;
232
242
 
233
243
  declare const AXIS_META_KEY = "axis:axis";
@@ -143,10 +143,15 @@ declare const FALLBACK_CONTRACT: ExecutionContract;
143
143
 
144
144
  declare const ProofKindZ: z.ZodEnum<{
145
145
  NONE: "NONE";
146
- CAPSULE: "CAPSULE";
146
+ ANONYMOUS: "ANONYMOUS";
147
147
  PASSPORT: "PASSPORT";
148
- MTLS: "MTLS";
148
+ CAPSULE: "CAPSULE";
149
149
  JWT: "JWT";
150
+ CONTRACT: "CONTRACT";
151
+ WITNESS: "WITNESS";
152
+ MTLS: "MTLS";
153
+ DEVICE: "DEVICE";
154
+ AUTHORIZED: "AUTHORIZED";
150
155
  }>;
151
156
  type ProofKind = z.infer<typeof ProofKindZ>;
152
157
  declare const ProofPresenceInputZ: z.ZodObject<{
@@ -162,15 +167,20 @@ declare const ProofPresenceInputZ: z.ZodObject<{
162
167
  }>;
163
168
  requiredProof: z.ZodArray<z.ZodEnum<{
164
169
  NONE: "NONE";
165
- CAPSULE: "CAPSULE";
170
+ ANONYMOUS: "ANONYMOUS";
166
171
  PASSPORT: "PASSPORT";
167
- MTLS: "MTLS";
172
+ CAPSULE: "CAPSULE";
168
173
  JWT: "JWT";
174
+ CONTRACT: "CONTRACT";
175
+ WITNESS: "WITNESS";
176
+ MTLS: "MTLS";
177
+ DEVICE: "DEVICE";
178
+ AUTHORIZED: "AUTHORIZED";
169
179
  }>>;
170
180
  hasCapsule: z.ZodBoolean;
171
181
  hasPassportSignature: z.ZodBoolean;
172
182
  intent: z.ZodString;
173
- }, z.z.core.$strip>;
183
+ }, z.core.$strip>;
174
184
  type ProofPresenceInput = z.infer<typeof ProofPresenceInputZ>;
175
185
  declare const SensitivityLevelZ: z.ZodEnum<{
176
186
  LOW: "LOW";
@@ -203,9 +213,9 @@ declare const AxisContextZ: z.ZodObject<{
203
213
  allowIntents: z.ZodArray<z.ZodString>;
204
214
  limits: z.ZodOptional<z.ZodObject<{
205
215
  maxBodyBytes: z.ZodOptional<z.ZodNumber>;
206
- }, z.z.core.$strip>>;
216
+ }, z.core.$strip>>;
207
217
  scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
208
- }, z.z.core.$strip>;
218
+ }, z.core.$strip>;
209
219
  issuedAt: z.ZodNumber;
210
220
  expiresAt: z.ZodNumber;
211
221
  tier: z.ZodEnum<{
@@ -213,7 +223,7 @@ declare const AxisContextZ: z.ZodObject<{
213
223
  STANDARD: "STANDARD";
214
224
  PREMIUM: "PREMIUM";
215
225
  }>;
216
- }, z.z.core.$strip>>;
226
+ }, z.core.$strip>>;
217
227
  passport: z.ZodOptional<z.ZodObject<{
218
228
  id: z.ZodString;
219
229
  public_key: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
@@ -225,9 +235,9 @@ declare const AxisContextZ: z.ZodObject<{
225
235
  }>;
226
236
  issuedAt: z.ZodNumber;
227
237
  expiresAt: z.ZodOptional<z.ZodNumber>;
228
- }, z.z.core.$strip>>;
238
+ }, z.core.$strip>>;
229
239
  meter: z.ZodOptional<z.ZodAny>;
230
- }, z.z.core.$strip>;
240
+ }, z.core.$strip>;
231
241
  type AxisContext = z.infer<typeof AxisContextZ>;
232
242
 
233
243
  declare const AXIS_META_KEY = "axis:axis";
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, 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-BLK3AtRm.mjs';
2
- export { i as AXIS_ANONYMOUS_KEY, j as AXIS_META_KEY, k as AXIS_PUBLIC_KEY, l as AXIS_RATE_LIMIT_KEY, m as AccessProfileResolverSensor, n as Axis, o as AxisAnonymous, p as AxisChainEncryption, q as AxisChainRequest, r as AxisChainStatus, s as AxisChainStepResult, t as AxisChainStepStatus, u as AxisEffect, v as AxisExecutionMode, w as AxisIntentEnvelope, x as AxisIntentObserver, y as AxisIntentSensorBinding, z as AxisIntentSensorBindingOptions, B as AxisIntentSensorRef, D as AxisIntentSensorWhen, E as AxisKeyExchangeRef, F as AxisLawArticleSummary, G as AxisLawDecision, H as AxisLawEvaluationContext, J as AxisLawEvaluationResult, K as AxisLawEvaluator, L as AxisObserverBinding, M as AxisObserverBindingOptions, N as AxisObserverContext, P as AxisObserverDefinition, Q as AxisObserverEvent, R as AxisObserverRef, U as AxisObserverRegistration, V as AxisPublic, W as AxisRateLimit, X as AxisRateLimitConfig, Y as BodyBudgetSensor, Z as CAPSULE_POLICY_METADATA_KEY, _ as CONTRACT_METADATA_KEY, $ as CapabilityEnforcementSensor, a0 as Capsule, a1 as CapsulePolicy, a2 as CapsulePolicyOptions, a3 as CapsuleScopeMode, a4 as ChunkHashSensor, a5 as Contract, a6 as DEFAULT_CONTRACTS, a7 as EntropySensor, a8 as ExecutionContract, a9 as ExecutionTimeoutSensor, aa as FALLBACK_CONTRACT, ab as FrameBudgetSensor, ac as FrameHeaderSanitySensor, ad as HeaderTLVLimitSensor, ae as INTENT_METADATA_KEY, af as INTENT_ROUTES_KEY, ag as Intent, ah as IntentAllowlistSensor, ai as IntentKind, aj as IntentOptions, ak as IntentRegistrySensor, al as IntentRoute, am as LawEvaluationSensor, an as LawEvaluationSensorOptions, ao as OBSERVER_BINDINGS_KEY, ap as OBSERVER_METADATA_KEY, aq as Observer, ar as ObserverRegistry, as as ProofPresenceSensor, at as ProtocolStrictSensor, au as REQUIRED_PROOF_METADATA_KEY, av as ReceiptPolicySensor, aw as RegisteredChainConfig, ax as RequiredProof, ay as RequiredProofKind, az as RiskDecision, aA as RiskEvaluation, aB as RiskGateSensor, aC as RiskGateSensorOptions, aD as RiskSignal, aE as RiskSignalCollector, aF as SENSITIVITY_METADATA_KEY, aG as SchemaValidationSensor, aH as Sensitivity, aI as StreamScopeSensor, aJ as TLVParseSensor, aK as TLV_FIELDS_KEY, aL as TLV_VALIDATORS_KEY, aM as TickAuthCapsuleRef, aN as TickAuthSensor, aO as TickAuthSensorOptions, aP as TickAuthVerifier, aQ as TlvEnum, aR as TlvField, aS as TlvFieldKind, aT as TlvFieldMeta, aU as TlvFieldOptions, aV as TlvMinLen, aW as TlvRange, aX as TlvUtf8Pattern, aY as TlvValidate, aZ as TlvValidatorMeta, a_ as TpsSensor, a$ as TpsSensorOptions, b0 as VarintHardeningSensor, b1 as Witness, b2 as buildAxisLawEvaluationContext, b3 as toIntentSensorBinding, b4 as toObserverBinding } from './index-BLK3AtRm.mjs';
1
+ import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, 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-CZ3RXsBC.mjs';
2
+ export { i as AXIS_ANONYMOUS_KEY, j as AXIS_META_KEY, k as AXIS_PUBLIC_KEY, l as AXIS_RATE_LIMIT_KEY, m as AccessProfileResolverSensor, n as Axis, o as AxisAnonymous, p as AxisChainEncryption, q as AxisChainRequest, r as AxisChainStatus, s as AxisChainStepResult, t as AxisChainStepStatus, u as AxisEffect, v as AxisExecutionMode, w as AxisIntentEnvelope, x as AxisIntentObserver, y as AxisIntentSensorBinding, z as AxisIntentSensorBindingOptions, B as AxisIntentSensorRef, D as AxisIntentSensorWhen, E as AxisKeyExchangeRef, F as AxisLawArticleSummary, G as AxisLawDecision, H as AxisLawEvaluationContext, J as AxisLawEvaluationResult, K as AxisLawEvaluator, L as AxisObserverBinding, M as AxisObserverBindingOptions, N as AxisObserverContext, P as AxisObserverDefinition, Q as AxisObserverEvent, R as AxisObserverRef, U as AxisObserverRegistration, V as AxisPublic, W as AxisRateLimit, X as AxisRateLimitConfig, Y as BodyBudgetSensor, Z as CAPSULE_POLICY_METADATA_KEY, _ as CONTRACT_METADATA_KEY, $ as CapabilityEnforcementSensor, a0 as Capsule, a1 as CapsulePolicy, a2 as CapsulePolicyOptions, a3 as CapsuleScopeMode, a4 as ChunkHashSensor, a5 as Contract, a6 as DEFAULT_CONTRACTS, a7 as EntropySensor, a8 as ExecutionContract, a9 as ExecutionTimeoutSensor, aa as FALLBACK_CONTRACT, ab as FrameBudgetSensor, ac as FrameHeaderSanitySensor, ad as HeaderTLVLimitSensor, ae as INTENT_METADATA_KEY, af as INTENT_ROUTES_KEY, ag as Intent, ah as IntentAllowlistSensor, ai as IntentKind, aj as IntentOptions, ak as IntentRegistrySensor, al as IntentRoute, am as LawEvaluationSensor, an as LawEvaluationSensorOptions, ao as OBSERVER_BINDINGS_KEY, ap as OBSERVER_METADATA_KEY, aq as Observer, ar as ObserverRegistry, as as ProofPresenceSensor, at as ProtocolStrictSensor, au as REQUIRED_PROOF_METADATA_KEY, av as ReceiptPolicySensor, aw as RegisteredChainConfig, ax as RequiredProof, ay as RequiredProofKind, az as RiskDecision, aA as RiskEvaluation, aB as RiskGateSensor, aC as RiskGateSensorOptions, aD as RiskSignal, aE as RiskSignalCollector, aF as SENSITIVITY_METADATA_KEY, aG as SchemaValidationSensor, aH as Sensitivity, aI as StreamScopeSensor, aJ as TLVParseSensor, aK as TLV_FIELDS_KEY, aL as TLV_VALIDATORS_KEY, aM as TickAuthCapsuleRef, aN as TickAuthSensor, aO as TickAuthSensorOptions, aP as TickAuthVerifier, aQ as TlvEnum, aR as TlvField, aS as TlvFieldKind, aT as TlvFieldMeta, aU as TlvFieldOptions, aV as TlvMinLen, aW as TlvRange, aX as TlvUtf8Pattern, aY as TlvValidate, aZ as TlvValidatorMeta, a_ as TpsSensor, a$ as TpsSensorOptions, b0 as VarintHardeningSensor, b1 as Witness, b2 as buildAxisLawEvaluationContext, b3 as toIntentSensorBinding, b4 as toObserverBinding } from './index-CZ3RXsBC.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
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-DiuKGnQw.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, 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-BAoKsEOu.js';
2
- export { i as AXIS_ANONYMOUS_KEY, j as AXIS_META_KEY, k as AXIS_PUBLIC_KEY, l as AXIS_RATE_LIMIT_KEY, m as AccessProfileResolverSensor, n as Axis, o as AxisAnonymous, p as AxisChainEncryption, q as AxisChainRequest, r as AxisChainStatus, s as AxisChainStepResult, t as AxisChainStepStatus, u as AxisEffect, v as AxisExecutionMode, w as AxisIntentEnvelope, x as AxisIntentObserver, y as AxisIntentSensorBinding, z as AxisIntentSensorBindingOptions, B as AxisIntentSensorRef, D as AxisIntentSensorWhen, E as AxisKeyExchangeRef, F as AxisLawArticleSummary, G as AxisLawDecision, H as AxisLawEvaluationContext, J as AxisLawEvaluationResult, K as AxisLawEvaluator, L as AxisObserverBinding, M as AxisObserverBindingOptions, N as AxisObserverContext, P as AxisObserverDefinition, Q as AxisObserverEvent, R as AxisObserverRef, U as AxisObserverRegistration, V as AxisPublic, W as AxisRateLimit, X as AxisRateLimitConfig, Y as BodyBudgetSensor, Z as CAPSULE_POLICY_METADATA_KEY, _ as CONTRACT_METADATA_KEY, $ as CapabilityEnforcementSensor, a0 as Capsule, a1 as CapsulePolicy, a2 as CapsulePolicyOptions, a3 as CapsuleScopeMode, a4 as ChunkHashSensor, a5 as Contract, a6 as DEFAULT_CONTRACTS, a7 as EntropySensor, a8 as ExecutionContract, a9 as ExecutionTimeoutSensor, aa as FALLBACK_CONTRACT, ab as FrameBudgetSensor, ac as FrameHeaderSanitySensor, ad as HeaderTLVLimitSensor, ae as INTENT_METADATA_KEY, af as INTENT_ROUTES_KEY, ag as Intent, ah as IntentAllowlistSensor, ai as IntentKind, aj as IntentOptions, ak as IntentRegistrySensor, al as IntentRoute, am as LawEvaluationSensor, an as LawEvaluationSensorOptions, ao as OBSERVER_BINDINGS_KEY, ap as OBSERVER_METADATA_KEY, aq as Observer, ar as ObserverRegistry, as as ProofPresenceSensor, at as ProtocolStrictSensor, au as REQUIRED_PROOF_METADATA_KEY, av as ReceiptPolicySensor, aw as RegisteredChainConfig, ax as RequiredProof, ay as RequiredProofKind, az as RiskDecision, aA as RiskEvaluation, aB as RiskGateSensor, aC as RiskGateSensorOptions, aD as RiskSignal, aE as RiskSignalCollector, aF as SENSITIVITY_METADATA_KEY, aG as SchemaValidationSensor, aH as Sensitivity, aI as StreamScopeSensor, aJ as TLVParseSensor, aK as TLV_FIELDS_KEY, aL as TLV_VALIDATORS_KEY, aM as TickAuthCapsuleRef, aN as TickAuthSensor, aO as TickAuthSensorOptions, aP as TickAuthVerifier, aQ as TlvEnum, aR as TlvField, aS as TlvFieldKind, aT as TlvFieldMeta, aU as TlvFieldOptions, aV as TlvMinLen, aW as TlvRange, aX as TlvUtf8Pattern, aY as TlvValidate, aZ as TlvValidatorMeta, a_ as TpsSensor, a$ as TpsSensorOptions, b0 as VarintHardeningSensor, b1 as Witness, b2 as buildAxisLawEvaluationContext, b3 as toIntentSensorBinding, b4 as toObserverBinding } from './index-BAoKsEOu.js';
1
+ import { C as ChainOptions, A as AxisIntentSensorOptions, a as AxisObserverBindingInput, b as AxisIntentSensorBindingInput, 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-DEh3s2yx.js';
2
+ export { i as AXIS_ANONYMOUS_KEY, j as AXIS_META_KEY, k as AXIS_PUBLIC_KEY, l as AXIS_RATE_LIMIT_KEY, m as AccessProfileResolverSensor, n as Axis, o as AxisAnonymous, p as AxisChainEncryption, q as AxisChainRequest, r as AxisChainStatus, s as AxisChainStepResult, t as AxisChainStepStatus, u as AxisEffect, v as AxisExecutionMode, w as AxisIntentEnvelope, x as AxisIntentObserver, y as AxisIntentSensorBinding, z as AxisIntentSensorBindingOptions, B as AxisIntentSensorRef, D as AxisIntentSensorWhen, E as AxisKeyExchangeRef, F as AxisLawArticleSummary, G as AxisLawDecision, H as AxisLawEvaluationContext, J as AxisLawEvaluationResult, K as AxisLawEvaluator, L as AxisObserverBinding, M as AxisObserverBindingOptions, N as AxisObserverContext, P as AxisObserverDefinition, Q as AxisObserverEvent, R as AxisObserverRef, U as AxisObserverRegistration, V as AxisPublic, W as AxisRateLimit, X as AxisRateLimitConfig, Y as BodyBudgetSensor, Z as CAPSULE_POLICY_METADATA_KEY, _ as CONTRACT_METADATA_KEY, $ as CapabilityEnforcementSensor, a0 as Capsule, a1 as CapsulePolicy, a2 as CapsulePolicyOptions, a3 as CapsuleScopeMode, a4 as ChunkHashSensor, a5 as Contract, a6 as DEFAULT_CONTRACTS, a7 as EntropySensor, a8 as ExecutionContract, a9 as ExecutionTimeoutSensor, aa as FALLBACK_CONTRACT, ab as FrameBudgetSensor, ac as FrameHeaderSanitySensor, ad as HeaderTLVLimitSensor, ae as INTENT_METADATA_KEY, af as INTENT_ROUTES_KEY, ag as Intent, ah as IntentAllowlistSensor, ai as IntentKind, aj as IntentOptions, ak as IntentRegistrySensor, al as IntentRoute, am as LawEvaluationSensor, an as LawEvaluationSensorOptions, ao as OBSERVER_BINDINGS_KEY, ap as OBSERVER_METADATA_KEY, aq as Observer, ar as ObserverRegistry, as as ProofPresenceSensor, at as ProtocolStrictSensor, au as REQUIRED_PROOF_METADATA_KEY, av as ReceiptPolicySensor, aw as RegisteredChainConfig, ax as RequiredProof, ay as RequiredProofKind, az as RiskDecision, aA as RiskEvaluation, aB as RiskGateSensor, aC as RiskGateSensorOptions, aD as RiskSignal, aE as RiskSignalCollector, aF as SENSITIVITY_METADATA_KEY, aG as SchemaValidationSensor, aH as Sensitivity, aI as StreamScopeSensor, aJ as TLVParseSensor, aK as TLV_FIELDS_KEY, aL as TLV_VALIDATORS_KEY, aM as TickAuthCapsuleRef, aN as TickAuthSensor, aO as TickAuthSensorOptions, aP as TickAuthVerifier, aQ as TlvEnum, aR as TlvField, aS as TlvFieldKind, aT as TlvFieldMeta, aU as TlvFieldOptions, aV as TlvMinLen, aW as TlvRange, aX as TlvUtf8Pattern, aY as TlvValidate, aZ as TlvValidatorMeta, a_ as TpsSensor, a$ as TpsSensorOptions, b0 as VarintHardeningSensor, b1 as Witness, b2 as buildAxisLawEvaluationContext, b3 as toIntentSensorBinding, b4 as toObserverBinding } from './index-DEh3s2yx.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
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-DMjzq8YO.js';
package/dist/index.js CHANGED
@@ -10661,15 +10661,52 @@ var require_chunk_hash_sensor = __commonJS({
10661
10661
  var require_entropy_sensor = __commonJS({
10662
10662
  "src/sensors/entropy.sensor.ts"(exports2) {
10663
10663
  "use strict";
10664
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
10665
+ if (k2 === void 0) k2 = k;
10666
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10667
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10668
+ desc = { enumerable: true, get: function() {
10669
+ return m[k];
10670
+ } };
10671
+ }
10672
+ Object.defineProperty(o, k2, desc);
10673
+ }) : (function(o, m, k, k2) {
10674
+ if (k2 === void 0) k2 = k;
10675
+ o[k2] = m[k];
10676
+ }));
10677
+ var __setModuleDefault = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
10678
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
10679
+ }) : function(o, v) {
10680
+ o["default"] = v;
10681
+ });
10664
10682
  var __decorate = exports2 && exports2.__decorate || function(decorators, target, key, desc) {
10665
10683
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10666
10684
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10667
10685
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
10668
10686
  return c > 3 && r && Object.defineProperty(target, key, r), r;
10669
10687
  };
10688
+ var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ (function() {
10689
+ var ownKeys = function(o) {
10690
+ ownKeys = Object.getOwnPropertyNames || function(o2) {
10691
+ var ar = [];
10692
+ for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
10693
+ return ar;
10694
+ };
10695
+ return ownKeys(o);
10696
+ };
10697
+ return function(mod) {
10698
+ if (mod && mod.__esModule) return mod;
10699
+ var result = {};
10700
+ if (mod != null) {
10701
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
10702
+ }
10703
+ __setModuleDefault(result, mod);
10704
+ return result;
10705
+ };
10706
+ })();
10670
10707
  Object.defineProperty(exports2, "__esModule", { value: true });
10671
10708
  exports2.EntropySensor = void 0;
10672
- var crypto4 = require("crypto");
10709
+ var crypto4 = __importStar(require("crypto"));
10673
10710
  var sensor_decorator_1 = (init_sensor_decorator(), __toCommonJS(sensor_decorator_exports));
10674
10711
  var sensor_bands_1 = (init_sensor_bands(), __toCommonJS(sensor_bands_exports));
10675
10712
  var constants_1 = (init_constants(), __toCommonJS(constants_exports));
@@ -11348,10 +11385,15 @@ var init_axis_schemas = __esm({
11348
11385
  ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
11349
11386
  ProofKindZ = z2.enum([
11350
11387
  "NONE",
11351
- "CAPSULE",
11388
+ "ANONYMOUS",
11352
11389
  "PASSPORT",
11390
+ "CAPSULE",
11391
+ "JWT",
11392
+ "CONTRACT",
11393
+ "WITNESS",
11353
11394
  "MTLS",
11354
- "JWT"
11395
+ "DEVICE",
11396
+ "AUTHORIZED"
11355
11397
  ]);
11356
11398
  AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
11357
11399
  ProofPresenceInputZ = z2.object({
@@ -11473,7 +11515,10 @@ var init_axis_schemas = __esm({
11473
11515
  ip: z2.string().min(1)
11474
11516
  });
11475
11517
  ProtocolStrictInputZ = z2.object({
11476
- rawBytes: z2.union([z2.custom((v) => Buffer.isBuffer(v)), z2.instanceof(Uint8Array)]).optional(),
11518
+ rawBytes: z2.union([
11519
+ z2.custom((v) => Buffer.isBuffer(v)),
11520
+ z2.instanceof(Uint8Array)
11521
+ ]).optional(),
11477
11522
  ip: z2.string().min(1),
11478
11523
  path: z2.string().min(1),
11479
11524
  contentLength: z2.number().int().nonnegative(),