@nextera.one/axis-server-sdk 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1928,7 +1928,7 @@ declare const CapsuleZ: z.ZodObject<{
1928
1928
  PREMIUM: "PREMIUM";
1929
1929
  }>;
1930
1930
  }, z.z.core.$strip>;
1931
- type Capsule = z.infer<typeof CapsuleZ>;
1931
+ type Capsule$1 = z.infer<typeof CapsuleZ>;
1932
1932
  declare const CapsuleValidationResultZ: z.ZodObject<{
1933
1933
  valid: z.ZodBoolean;
1934
1934
  capsule: z.ZodOptional<z.ZodObject<{
@@ -2740,6 +2740,16 @@ declare namespace index$8 {
2740
2740
  export { type index$8_ActorKeyRecord as ActorKeyRecord, type AxisAlg$1 as AxisAlg, type index$8_AxisCapsule as AxisCapsule, type index$8_AxisCapsuleConstraints as AxisCapsuleConstraints, type index$8_AxisCapsulePayload as AxisCapsulePayload, type AxisPacket$1 as AxisPacket, type AxisResponse$1 as AxisResponse, type AxisSig$1 as AxisSig, type index$8_CapsuleBatchBody as CapsuleBatchBody, type index$8_CapsuleBatchResult as CapsuleBatchResult, type index$8_CapsuleIssueBody as CapsuleIssueBody, type index$8_CapsuleIssueResult as CapsuleIssueResult, type index$8_CapsuleMode as CapsuleMode, type index$8_CapsuleRecord as CapsuleRecord, type index$8_CapsuleRevokeBody as CapsuleRevokeBody, type index$8_CapsuleStatus as CapsuleStatus, type index$8_DeviceSEContext as DeviceSEContext, type index$8_IntentExecBody as IntentExecBody, type index$8_IssuerKeyRecord as IssuerKeyRecord, type index$8_KeyStatus as KeyStatus, type index$8_MTLSContext as MTLSContext, type index$8_ProofType as ProofType, type index$8_ProofVerificationResult as ProofVerificationResult, index$8_ProofVerificationService as ProofVerificationService, type index$8_TickWindow as TickWindow, index$8_b64urlDecode as b64urlDecode, index$8_b64urlDecodeString as b64urlDecodeString, index$8_b64urlEncode as b64urlEncode, index$8_b64urlEncodeString as b64urlEncodeString, index$8_canonicalJson as canonicalJson, index$8_canonicalJsonExcluding as canonicalJsonExcluding };
2741
2741
  }
2742
2742
 
2743
+ declare const SENSITIVITY_METADATA_KEY = "axis:sensitivity";
2744
+ declare const CONTRACT_METADATA_KEY = "axis:contract";
2745
+ declare const REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
2746
+ type RequiredProofKind = ProofKind | "WITNESS";
2747
+ declare function Sensitivity(level: SensitivityLevel): ClassDecorator & MethodDecorator;
2748
+ declare function Contract(options: Partial<ExecutionContract>): ClassDecorator & MethodDecorator;
2749
+ declare function RequiredProof(proofs: [RequiredProofKind, ...RequiredProofKind[]]): ClassDecorator & MethodDecorator;
2750
+ declare function Capsule(): ClassDecorator & MethodDecorator;
2751
+ declare function Witness(): ClassDecorator & MethodDecorator;
2752
+
2743
2753
  declare const index$7_AxisDemoPubkey: typeof AxisDemoPubkey;
2744
2754
  declare const index$7_AxisFrame: typeof AxisFrame;
2745
2755
  declare const index$7_AxisIp: typeof AxisIp;
@@ -2751,10 +2761,13 @@ declare const index$7_AxisRaw: typeof AxisRaw;
2751
2761
  type index$7_AxisRequestData = AxisRequestData;
2752
2762
  declare const index$7_CAPSULE_POLICY_METADATA_KEY: typeof CAPSULE_POLICY_METADATA_KEY;
2753
2763
  declare const index$7_CHAIN_METADATA_KEY: typeof CHAIN_METADATA_KEY;
2764
+ declare const index$7_CONTRACT_METADATA_KEY: typeof CONTRACT_METADATA_KEY;
2765
+ declare const index$7_Capsule: typeof Capsule;
2754
2766
  declare const index$7_CapsulePolicy: typeof CapsulePolicy;
2755
2767
  type index$7_CapsulePolicyOptions = CapsulePolicyOptions;
2756
2768
  type index$7_CapsuleScopeMode = CapsuleScopeMode;
2757
2769
  declare const index$7_Chain: typeof Chain;
2770
+ declare const index$7_Contract: typeof Contract;
2758
2771
  type index$7_DtoSchema = DtoSchema;
2759
2772
  declare const index$7_HANDLER_METADATA_KEY: typeof HANDLER_METADATA_KEY;
2760
2773
  declare const index$7_Handler: typeof Handler;
@@ -2772,7 +2785,12 @@ type index$7_IntentTlvField = IntentTlvField;
2772
2785
  declare const index$7_OBSERVER_BINDINGS_KEY: typeof OBSERVER_BINDINGS_KEY;
2773
2786
  declare const index$7_OBSERVER_METADATA_KEY: typeof OBSERVER_METADATA_KEY;
2774
2787
  declare const index$7_Observer: typeof Observer;
2788
+ declare const index$7_REQUIRED_PROOF_METADATA_KEY: typeof REQUIRED_PROOF_METADATA_KEY;
2789
+ declare const index$7_RequiredProof: typeof RequiredProof;
2790
+ type index$7_RequiredProofKind = RequiredProofKind;
2791
+ declare const index$7_SENSITIVITY_METADATA_KEY: typeof SENSITIVITY_METADATA_KEY;
2775
2792
  declare const index$7_SENSOR_METADATA_KEY: typeof SENSOR_METADATA_KEY;
2793
+ declare const index$7_Sensitivity: typeof Sensitivity;
2776
2794
  declare const index$7_Sensor: typeof Sensor;
2777
2795
  type index$7_SensorOptions = SensorOptions;
2778
2796
  type index$7_SensorPhase = SensorPhase;
@@ -2789,12 +2807,13 @@ declare const index$7_TlvUtf8Pattern: typeof TlvUtf8Pattern;
2789
2807
  declare const index$7_TlvValidate: typeof TlvValidate;
2790
2808
  type index$7_TlvValidatorFn = TlvValidatorFn;
2791
2809
  type index$7_TlvValidatorMeta = TlvValidatorMeta;
2810
+ declare const index$7_Witness: typeof Witness;
2792
2811
  declare const index$7_buildDtoDecoder: typeof buildDtoDecoder;
2793
2812
  declare const index$7_extractDtoSchema: typeof extractDtoSchema;
2794
2813
  declare const index$7_mergeCapsulePolicyOptions: typeof mergeCapsulePolicyOptions;
2795
2814
  declare const index$7_normalizeCapsulePolicyOptions: typeof normalizeCapsulePolicyOptions;
2796
2815
  declare namespace index$7 {
2797
- export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, type index$7_AxisObserverBinding as AxisObserverBinding, type index$7_AxisObserverBindingOptions as AxisObserverBindingOptions, type index$7_AxisObserverDefinition as AxisObserverDefinition, type index$7_AxisObserverRef as AxisObserverRef, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, index$7_CAPSULE_POLICY_METADATA_KEY as CAPSULE_POLICY_METADATA_KEY, index$7_CHAIN_METADATA_KEY as CHAIN_METADATA_KEY, index$7_CapsulePolicy as CapsulePolicy, type index$7_CapsulePolicyOptions as CapsulePolicyOptions, type index$7_CapsuleScopeMode as CapsuleScopeMode, index$7_Chain as Chain, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_OBSERVER_BINDINGS_KEY as OBSERVER_BINDINGS_KEY, index$7_OBSERVER_METADATA_KEY as OBSERVER_METADATA_KEY, index$7_Observer as Observer, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema, index$7_mergeCapsulePolicyOptions as mergeCapsulePolicyOptions, index$7_normalizeCapsulePolicyOptions as normalizeCapsulePolicyOptions };
2816
+ export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, type index$7_AxisObserverBinding as AxisObserverBinding, type index$7_AxisObserverBindingOptions as AxisObserverBindingOptions, type index$7_AxisObserverDefinition as AxisObserverDefinition, type index$7_AxisObserverRef as AxisObserverRef, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, index$7_CAPSULE_POLICY_METADATA_KEY as CAPSULE_POLICY_METADATA_KEY, index$7_CHAIN_METADATA_KEY as CHAIN_METADATA_KEY, index$7_CONTRACT_METADATA_KEY as CONTRACT_METADATA_KEY, index$7_Capsule as Capsule, index$7_CapsulePolicy as CapsulePolicy, type index$7_CapsulePolicyOptions as CapsulePolicyOptions, type index$7_CapsuleScopeMode as CapsuleScopeMode, index$7_Chain as Chain, index$7_Contract as Contract, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_OBSERVER_BINDINGS_KEY as OBSERVER_BINDINGS_KEY, index$7_OBSERVER_METADATA_KEY as OBSERVER_METADATA_KEY, index$7_Observer as Observer, index$7_REQUIRED_PROOF_METADATA_KEY as REQUIRED_PROOF_METADATA_KEY, index$7_RequiredProof as RequiredProof, type index$7_RequiredProofKind as RequiredProofKind, index$7_SENSITIVITY_METADATA_KEY as SENSITIVITY_METADATA_KEY, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensitivity as Sensitivity, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_Witness as Witness, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema, index$7_mergeCapsulePolicyOptions as mergeCapsulePolicyOptions, index$7_normalizeCapsulePolicyOptions as normalizeCapsulePolicyOptions };
2798
2817
  }
2799
2818
 
2800
2819
  type index$6_ObservationQueueConfig = ObservationQueueConfig;
@@ -2963,7 +2982,6 @@ type index$3_BodyProfileValidation = BodyProfileValidation;
2963
2982
  type index$3_BodyProfileValidator = BodyProfileValidator;
2964
2983
  declare const index$3_BodyProfileValidator: typeof BodyProfileValidator;
2965
2984
  declare const index$3_BodyProfileZ: typeof BodyProfileZ;
2966
- type index$3_Capsule = Capsule;
2967
2985
  type index$3_CapsuleClaims = CapsuleClaims;
2968
2986
  declare const index$3_CapsuleClaimsZ: typeof CapsuleClaimsZ;
2969
2987
  type index$3_CapsuleValidationResult = CapsuleValidationResult;
@@ -3035,7 +3053,7 @@ declare const index$3_WsHandshakeDecisionZ: typeof WsHandshakeDecisionZ;
3035
3053
  type index$3_WsHandshakeInput = WsHandshakeInput;
3036
3054
  declare const index$3_WsHandshakeInputZ: typeof WsHandshakeInputZ;
3037
3055
  declare namespace index$3 {
3038
- export { type index$3_AccessProfile as AccessProfile, index$3_AccessProfileZ as AccessProfileZ, type index$3_AxisContext as AxisContext, index$3_AxisContextZ as AxisContextZ, type index$3_AxisError as AxisError, index$3_AxisErrorZ as AxisErrorZ, type index$3_BodyBudgetInput as BodyBudgetInput, index$3_BodyBudgetInputZ as BodyBudgetInputZ, type index$3_BodyBudgetPolicy as BodyBudgetPolicy, index$3_BodyBudgetPolicyZ as BodyBudgetPolicyZ, index$3_BodyProfile as BodyProfile, type index$3_BodyProfileValidation as BodyProfileValidation, index$3_BodyProfileValidator as BodyProfileValidator, index$3_BodyProfileZ as BodyProfileZ, type index$3_Capsule as Capsule, type index$3_CapsuleClaims as CapsuleClaims, index$3_CapsuleClaimsZ as CapsuleClaimsZ, type index$3_CapsuleValidationResult as CapsuleValidationResult, index$3_CapsuleValidationResultZ as CapsuleValidationResultZ, type index$3_CapsuleVerifyResult as CapsuleVerifyResult, index$3_CapsuleVerifyResultZ as CapsuleVerifyResultZ, type index$3_CapsuleVerifySensorInput as CapsuleVerifySensorInput, index$3_CapsuleVerifySensorInputZ as CapsuleVerifySensorInputZ, index$3_CapsuleZ as CapsuleZ, type index$3_ChunkHashInput as ChunkHashInput, index$3_ChunkHashInputZ as ChunkHashInputZ, type index$3_CountryBlockDecision as CountryBlockDecision, index$3_CountryBlockDecisionZ as CountryBlockDecisionZ, type index$3_CountryBlockSensorInput as CountryBlockSensorInput, index$3_CountryBlockSensorInputZ as CountryBlockSensorInputZ, type index$3_EntropySensorInput as EntropySensorInput, index$3_EntropySensorInputZ as EntropySensorInputZ, index$3_ExecutionMetricsZ as ExecutionMetricsZ, type index$3_IPReputation as IPReputation, type index$3_IPReputationInput as IPReputationInput, index$3_IPReputationInputZ as IPReputationInputZ, index$3_IPReputationZ as IPReputationZ, type index$3_IntentPolicy as IntentPolicy, type index$3_IntentPolicyDecision as IntentPolicyDecision, index$3_IntentPolicyDecisionZ as IntentPolicyDecisionZ, type index$3_IntentPolicySensorInput as IntentPolicySensorInput, index$3_IntentPolicySensorInputZ as IntentPolicySensorInputZ, index$3_IntentPolicyZ as IntentPolicyZ, type index$3_IntentSchema as IntentSchema, index$3_IntentSchemaZ as IntentSchemaZ, type index$3_Passport as Passport, index$3_PassportZ as PassportZ, type index$3_ProofKind as ProofKind, index$3_ProofKindZ as ProofKindZ, type index$3_ProofPresenceInput as ProofPresenceInput, index$3_ProofPresenceInputZ as ProofPresenceInputZ, ProofType$1 as ProofType, type index$3_ProtocolStrictInput as ProtocolStrictInput, index$3_ProtocolStrictInputZ as ProtocolStrictInputZ, type index$3_RateLimitConfig as RateLimitConfig, index$3_RateLimitConfigZ as RateLimitConfigZ, type index$3_RateLimitInput as RateLimitInput, index$3_RateLimitInputZ as RateLimitInputZ, type index$3_RateLimitProfile as RateLimitProfile, index$3_RateLimitProfileZ as RateLimitProfileZ, type index$3_ScanBurstDecision as ScanBurstDecision, index$3_ScanBurstDecisionZ as ScanBurstDecisionZ, type index$3_ScanBurstSensorInput as ScanBurstSensorInput, index$3_ScanBurstSensorInputZ as ScanBurstSensorInputZ, type index$3_SchemaField as SchemaField, type index$3_SchemaFieldKind as SchemaFieldKind, index$3_SchemaFieldKindZ as SchemaFieldKindZ, index$3_SchemaFieldZ as SchemaFieldZ, type index$3_Scope as Scope, index$3_ScopeZ as ScopeZ, type index$3_SensitivityLevel as SensitivityLevel, index$3_SensitivityLevelZ as SensitivityLevelZ, type index$3_SensorChainInput as SensorChainInput, index$3_SensorChainInputZ as SensorChainInputZ, index$3_SensorDecisionWithMetadataZ as SensorDecisionWithMetadataZ, index$3_SensorDecisionZ as SensorDecisionZ, type index$3_SensorResult as SensorResult, index$3_SensorResultZ as SensorResultZ, type index$3_UploadSession as UploadSession, index$3_UploadSessionZ as UploadSessionZ, type index$3_UploadStatus as UploadStatus, index$3_UploadStatusZ as UploadStatusZ, type index$3_WsHandshakeDecision as WsHandshakeDecision, index$3_WsHandshakeDecisionZ as WsHandshakeDecisionZ, type index$3_WsHandshakeInput as WsHandshakeInput, index$3_WsHandshakeInputZ as WsHandshakeInputZ };
3056
+ export { type index$3_AccessProfile as AccessProfile, index$3_AccessProfileZ as AccessProfileZ, type index$3_AxisContext as AxisContext, index$3_AxisContextZ as AxisContextZ, type index$3_AxisError as AxisError, index$3_AxisErrorZ as AxisErrorZ, type index$3_BodyBudgetInput as BodyBudgetInput, index$3_BodyBudgetInputZ as BodyBudgetInputZ, type index$3_BodyBudgetPolicy as BodyBudgetPolicy, index$3_BodyBudgetPolicyZ as BodyBudgetPolicyZ, index$3_BodyProfile as BodyProfile, type index$3_BodyProfileValidation as BodyProfileValidation, index$3_BodyProfileValidator as BodyProfileValidator, index$3_BodyProfileZ as BodyProfileZ, type Capsule$1 as Capsule, type index$3_CapsuleClaims as CapsuleClaims, index$3_CapsuleClaimsZ as CapsuleClaimsZ, type index$3_CapsuleValidationResult as CapsuleValidationResult, index$3_CapsuleValidationResultZ as CapsuleValidationResultZ, type index$3_CapsuleVerifyResult as CapsuleVerifyResult, index$3_CapsuleVerifyResultZ as CapsuleVerifyResultZ, type index$3_CapsuleVerifySensorInput as CapsuleVerifySensorInput, index$3_CapsuleVerifySensorInputZ as CapsuleVerifySensorInputZ, index$3_CapsuleZ as CapsuleZ, type index$3_ChunkHashInput as ChunkHashInput, index$3_ChunkHashInputZ as ChunkHashInputZ, type index$3_CountryBlockDecision as CountryBlockDecision, index$3_CountryBlockDecisionZ as CountryBlockDecisionZ, type index$3_CountryBlockSensorInput as CountryBlockSensorInput, index$3_CountryBlockSensorInputZ as CountryBlockSensorInputZ, type index$3_EntropySensorInput as EntropySensorInput, index$3_EntropySensorInputZ as EntropySensorInputZ, index$3_ExecutionMetricsZ as ExecutionMetricsZ, type index$3_IPReputation as IPReputation, type index$3_IPReputationInput as IPReputationInput, index$3_IPReputationInputZ as IPReputationInputZ, index$3_IPReputationZ as IPReputationZ, type index$3_IntentPolicy as IntentPolicy, type index$3_IntentPolicyDecision as IntentPolicyDecision, index$3_IntentPolicyDecisionZ as IntentPolicyDecisionZ, type index$3_IntentPolicySensorInput as IntentPolicySensorInput, index$3_IntentPolicySensorInputZ as IntentPolicySensorInputZ, index$3_IntentPolicyZ as IntentPolicyZ, type index$3_IntentSchema as IntentSchema, index$3_IntentSchemaZ as IntentSchemaZ, type index$3_Passport as Passport, index$3_PassportZ as PassportZ, type index$3_ProofKind as ProofKind, index$3_ProofKindZ as ProofKindZ, type index$3_ProofPresenceInput as ProofPresenceInput, index$3_ProofPresenceInputZ as ProofPresenceInputZ, ProofType$1 as ProofType, type index$3_ProtocolStrictInput as ProtocolStrictInput, index$3_ProtocolStrictInputZ as ProtocolStrictInputZ, type index$3_RateLimitConfig as RateLimitConfig, index$3_RateLimitConfigZ as RateLimitConfigZ, type index$3_RateLimitInput as RateLimitInput, index$3_RateLimitInputZ as RateLimitInputZ, type index$3_RateLimitProfile as RateLimitProfile, index$3_RateLimitProfileZ as RateLimitProfileZ, type index$3_ScanBurstDecision as ScanBurstDecision, index$3_ScanBurstDecisionZ as ScanBurstDecisionZ, type index$3_ScanBurstSensorInput as ScanBurstSensorInput, index$3_ScanBurstSensorInputZ as ScanBurstSensorInputZ, type index$3_SchemaField as SchemaField, type index$3_SchemaFieldKind as SchemaFieldKind, index$3_SchemaFieldKindZ as SchemaFieldKindZ, index$3_SchemaFieldZ as SchemaFieldZ, type index$3_Scope as Scope, index$3_ScopeZ as ScopeZ, type index$3_SensitivityLevel as SensitivityLevel, index$3_SensitivityLevelZ as SensitivityLevelZ, type index$3_SensorChainInput as SensorChainInput, index$3_SensorChainInputZ as SensorChainInputZ, index$3_SensorDecisionWithMetadataZ as SensorDecisionWithMetadataZ, index$3_SensorDecisionZ as SensorDecisionZ, type index$3_SensorResult as SensorResult, index$3_SensorResultZ as SensorResultZ, type index$3_UploadSession as UploadSession, index$3_UploadSessionZ as UploadSessionZ, type index$3_UploadStatus as UploadStatus, index$3_UploadStatusZ as UploadStatusZ, type index$3_WsHandshakeDecision as WsHandshakeDecision, index$3_WsHandshakeDecisionZ as WsHandshakeDecisionZ, type index$3_WsHandshakeInput as WsHandshakeInput, index$3_WsHandshakeInputZ as WsHandshakeInputZ };
3039
3057
  }
3040
3058
 
3041
3059
  type index$2_AxisSensorChainService = AxisSensorChainService;
package/dist/index.d.ts CHANGED
@@ -1928,7 +1928,7 @@ declare const CapsuleZ: z.ZodObject<{
1928
1928
  PREMIUM: "PREMIUM";
1929
1929
  }>;
1930
1930
  }, z.z.core.$strip>;
1931
- type Capsule = z.infer<typeof CapsuleZ>;
1931
+ type Capsule$1 = z.infer<typeof CapsuleZ>;
1932
1932
  declare const CapsuleValidationResultZ: z.ZodObject<{
1933
1933
  valid: z.ZodBoolean;
1934
1934
  capsule: z.ZodOptional<z.ZodObject<{
@@ -2740,6 +2740,16 @@ declare namespace index$8 {
2740
2740
  export { type index$8_ActorKeyRecord as ActorKeyRecord, type AxisAlg$1 as AxisAlg, type index$8_AxisCapsule as AxisCapsule, type index$8_AxisCapsuleConstraints as AxisCapsuleConstraints, type index$8_AxisCapsulePayload as AxisCapsulePayload, type AxisPacket$1 as AxisPacket, type AxisResponse$1 as AxisResponse, type AxisSig$1 as AxisSig, type index$8_CapsuleBatchBody as CapsuleBatchBody, type index$8_CapsuleBatchResult as CapsuleBatchResult, type index$8_CapsuleIssueBody as CapsuleIssueBody, type index$8_CapsuleIssueResult as CapsuleIssueResult, type index$8_CapsuleMode as CapsuleMode, type index$8_CapsuleRecord as CapsuleRecord, type index$8_CapsuleRevokeBody as CapsuleRevokeBody, type index$8_CapsuleStatus as CapsuleStatus, type index$8_DeviceSEContext as DeviceSEContext, type index$8_IntentExecBody as IntentExecBody, type index$8_IssuerKeyRecord as IssuerKeyRecord, type index$8_KeyStatus as KeyStatus, type index$8_MTLSContext as MTLSContext, type index$8_ProofType as ProofType, type index$8_ProofVerificationResult as ProofVerificationResult, index$8_ProofVerificationService as ProofVerificationService, type index$8_TickWindow as TickWindow, index$8_b64urlDecode as b64urlDecode, index$8_b64urlDecodeString as b64urlDecodeString, index$8_b64urlEncode as b64urlEncode, index$8_b64urlEncodeString as b64urlEncodeString, index$8_canonicalJson as canonicalJson, index$8_canonicalJsonExcluding as canonicalJsonExcluding };
2741
2741
  }
2742
2742
 
2743
+ declare const SENSITIVITY_METADATA_KEY = "axis:sensitivity";
2744
+ declare const CONTRACT_METADATA_KEY = "axis:contract";
2745
+ declare const REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
2746
+ type RequiredProofKind = ProofKind | "WITNESS";
2747
+ declare function Sensitivity(level: SensitivityLevel): ClassDecorator & MethodDecorator;
2748
+ declare function Contract(options: Partial<ExecutionContract>): ClassDecorator & MethodDecorator;
2749
+ declare function RequiredProof(proofs: [RequiredProofKind, ...RequiredProofKind[]]): ClassDecorator & MethodDecorator;
2750
+ declare function Capsule(): ClassDecorator & MethodDecorator;
2751
+ declare function Witness(): ClassDecorator & MethodDecorator;
2752
+
2743
2753
  declare const index$7_AxisDemoPubkey: typeof AxisDemoPubkey;
2744
2754
  declare const index$7_AxisFrame: typeof AxisFrame;
2745
2755
  declare const index$7_AxisIp: typeof AxisIp;
@@ -2751,10 +2761,13 @@ declare const index$7_AxisRaw: typeof AxisRaw;
2751
2761
  type index$7_AxisRequestData = AxisRequestData;
2752
2762
  declare const index$7_CAPSULE_POLICY_METADATA_KEY: typeof CAPSULE_POLICY_METADATA_KEY;
2753
2763
  declare const index$7_CHAIN_METADATA_KEY: typeof CHAIN_METADATA_KEY;
2764
+ declare const index$7_CONTRACT_METADATA_KEY: typeof CONTRACT_METADATA_KEY;
2765
+ declare const index$7_Capsule: typeof Capsule;
2754
2766
  declare const index$7_CapsulePolicy: typeof CapsulePolicy;
2755
2767
  type index$7_CapsulePolicyOptions = CapsulePolicyOptions;
2756
2768
  type index$7_CapsuleScopeMode = CapsuleScopeMode;
2757
2769
  declare const index$7_Chain: typeof Chain;
2770
+ declare const index$7_Contract: typeof Contract;
2758
2771
  type index$7_DtoSchema = DtoSchema;
2759
2772
  declare const index$7_HANDLER_METADATA_KEY: typeof HANDLER_METADATA_KEY;
2760
2773
  declare const index$7_Handler: typeof Handler;
@@ -2772,7 +2785,12 @@ type index$7_IntentTlvField = IntentTlvField;
2772
2785
  declare const index$7_OBSERVER_BINDINGS_KEY: typeof OBSERVER_BINDINGS_KEY;
2773
2786
  declare const index$7_OBSERVER_METADATA_KEY: typeof OBSERVER_METADATA_KEY;
2774
2787
  declare const index$7_Observer: typeof Observer;
2788
+ declare const index$7_REQUIRED_PROOF_METADATA_KEY: typeof REQUIRED_PROOF_METADATA_KEY;
2789
+ declare const index$7_RequiredProof: typeof RequiredProof;
2790
+ type index$7_RequiredProofKind = RequiredProofKind;
2791
+ declare const index$7_SENSITIVITY_METADATA_KEY: typeof SENSITIVITY_METADATA_KEY;
2775
2792
  declare const index$7_SENSOR_METADATA_KEY: typeof SENSOR_METADATA_KEY;
2793
+ declare const index$7_Sensitivity: typeof Sensitivity;
2776
2794
  declare const index$7_Sensor: typeof Sensor;
2777
2795
  type index$7_SensorOptions = SensorOptions;
2778
2796
  type index$7_SensorPhase = SensorPhase;
@@ -2789,12 +2807,13 @@ declare const index$7_TlvUtf8Pattern: typeof TlvUtf8Pattern;
2789
2807
  declare const index$7_TlvValidate: typeof TlvValidate;
2790
2808
  type index$7_TlvValidatorFn = TlvValidatorFn;
2791
2809
  type index$7_TlvValidatorMeta = TlvValidatorMeta;
2810
+ declare const index$7_Witness: typeof Witness;
2792
2811
  declare const index$7_buildDtoDecoder: typeof buildDtoDecoder;
2793
2812
  declare const index$7_extractDtoSchema: typeof extractDtoSchema;
2794
2813
  declare const index$7_mergeCapsulePolicyOptions: typeof mergeCapsulePolicyOptions;
2795
2814
  declare const index$7_normalizeCapsulePolicyOptions: typeof normalizeCapsulePolicyOptions;
2796
2815
  declare namespace index$7 {
2797
- export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, type index$7_AxisObserverBinding as AxisObserverBinding, type index$7_AxisObserverBindingOptions as AxisObserverBindingOptions, type index$7_AxisObserverDefinition as AxisObserverDefinition, type index$7_AxisObserverRef as AxisObserverRef, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, index$7_CAPSULE_POLICY_METADATA_KEY as CAPSULE_POLICY_METADATA_KEY, index$7_CHAIN_METADATA_KEY as CHAIN_METADATA_KEY, index$7_CapsulePolicy as CapsulePolicy, type index$7_CapsulePolicyOptions as CapsulePolicyOptions, type index$7_CapsuleScopeMode as CapsuleScopeMode, index$7_Chain as Chain, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_OBSERVER_BINDINGS_KEY as OBSERVER_BINDINGS_KEY, index$7_OBSERVER_METADATA_KEY as OBSERVER_METADATA_KEY, index$7_Observer as Observer, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema, index$7_mergeCapsulePolicyOptions as mergeCapsulePolicyOptions, index$7_normalizeCapsulePolicyOptions as normalizeCapsulePolicyOptions };
2816
+ export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, type index$7_AxisObserverBinding as AxisObserverBinding, type index$7_AxisObserverBindingOptions as AxisObserverBindingOptions, type index$7_AxisObserverDefinition as AxisObserverDefinition, type index$7_AxisObserverRef as AxisObserverRef, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, index$7_CAPSULE_POLICY_METADATA_KEY as CAPSULE_POLICY_METADATA_KEY, index$7_CHAIN_METADATA_KEY as CHAIN_METADATA_KEY, index$7_CONTRACT_METADATA_KEY as CONTRACT_METADATA_KEY, index$7_Capsule as Capsule, index$7_CapsulePolicy as CapsulePolicy, type index$7_CapsulePolicyOptions as CapsulePolicyOptions, type index$7_CapsuleScopeMode as CapsuleScopeMode, index$7_Chain as Chain, index$7_Contract as Contract, type index$7_DtoSchema as DtoSchema, index$7_HANDLER_METADATA_KEY as HANDLER_METADATA_KEY, index$7_Handler as Handler, index$7_INTENT_BODY_KEY as INTENT_BODY_KEY, index$7_INTENT_METADATA_KEY as INTENT_METADATA_KEY, index$7_INTENT_ROUTES_KEY as INTENT_ROUTES_KEY, index$7_INTENT_SENSORS_KEY as INTENT_SENSORS_KEY, index$7_Intent as Intent, index$7_IntentBody as IntentBody, type index$7_IntentKind as IntentKind, type index$7_IntentOptions as IntentOptions, type index$7_IntentRoute as IntentRoute, index$7_IntentSensors as IntentSensors, type index$7_IntentTlvField as IntentTlvField, index$7_OBSERVER_BINDINGS_KEY as OBSERVER_BINDINGS_KEY, index$7_OBSERVER_METADATA_KEY as OBSERVER_METADATA_KEY, index$7_Observer as Observer, index$7_REQUIRED_PROOF_METADATA_KEY as REQUIRED_PROOF_METADATA_KEY, index$7_RequiredProof as RequiredProof, type index$7_RequiredProofKind as RequiredProofKind, index$7_SENSITIVITY_METADATA_KEY as SENSITIVITY_METADATA_KEY, index$7_SENSOR_METADATA_KEY as SENSOR_METADATA_KEY, index$7_Sensitivity as Sensitivity, index$7_Sensor as Sensor, type index$7_SensorOptions as SensorOptions, type index$7_SensorPhase as SensorPhase, index$7_TLV_FIELDS_KEY as TLV_FIELDS_KEY, index$7_TLV_VALIDATORS_KEY as TLV_VALIDATORS_KEY, index$7_TlvEnum as TlvEnum, index$7_TlvField as TlvField, type index$7_TlvFieldKind as TlvFieldKind, type index$7_TlvFieldMeta as TlvFieldMeta, type index$7_TlvFieldOptions as TlvFieldOptions, index$7_TlvMinLen as TlvMinLen, index$7_TlvRange as TlvRange, index$7_TlvUtf8Pattern as TlvUtf8Pattern, index$7_TlvValidate as TlvValidate, type index$7_TlvValidatorFn as TlvValidatorFn, type index$7_TlvValidatorMeta as TlvValidatorMeta, index$7_Witness as Witness, index$7_buildDtoDecoder as buildDtoDecoder, index$7_extractDtoSchema as extractDtoSchema, index$7_mergeCapsulePolicyOptions as mergeCapsulePolicyOptions, index$7_normalizeCapsulePolicyOptions as normalizeCapsulePolicyOptions };
2798
2817
  }
2799
2818
 
2800
2819
  type index$6_ObservationQueueConfig = ObservationQueueConfig;
@@ -2963,7 +2982,6 @@ type index$3_BodyProfileValidation = BodyProfileValidation;
2963
2982
  type index$3_BodyProfileValidator = BodyProfileValidator;
2964
2983
  declare const index$3_BodyProfileValidator: typeof BodyProfileValidator;
2965
2984
  declare const index$3_BodyProfileZ: typeof BodyProfileZ;
2966
- type index$3_Capsule = Capsule;
2967
2985
  type index$3_CapsuleClaims = CapsuleClaims;
2968
2986
  declare const index$3_CapsuleClaimsZ: typeof CapsuleClaimsZ;
2969
2987
  type index$3_CapsuleValidationResult = CapsuleValidationResult;
@@ -3035,7 +3053,7 @@ declare const index$3_WsHandshakeDecisionZ: typeof WsHandshakeDecisionZ;
3035
3053
  type index$3_WsHandshakeInput = WsHandshakeInput;
3036
3054
  declare const index$3_WsHandshakeInputZ: typeof WsHandshakeInputZ;
3037
3055
  declare namespace index$3 {
3038
- export { type index$3_AccessProfile as AccessProfile, index$3_AccessProfileZ as AccessProfileZ, type index$3_AxisContext as AxisContext, index$3_AxisContextZ as AxisContextZ, type index$3_AxisError as AxisError, index$3_AxisErrorZ as AxisErrorZ, type index$3_BodyBudgetInput as BodyBudgetInput, index$3_BodyBudgetInputZ as BodyBudgetInputZ, type index$3_BodyBudgetPolicy as BodyBudgetPolicy, index$3_BodyBudgetPolicyZ as BodyBudgetPolicyZ, index$3_BodyProfile as BodyProfile, type index$3_BodyProfileValidation as BodyProfileValidation, index$3_BodyProfileValidator as BodyProfileValidator, index$3_BodyProfileZ as BodyProfileZ, type index$3_Capsule as Capsule, type index$3_CapsuleClaims as CapsuleClaims, index$3_CapsuleClaimsZ as CapsuleClaimsZ, type index$3_CapsuleValidationResult as CapsuleValidationResult, index$3_CapsuleValidationResultZ as CapsuleValidationResultZ, type index$3_CapsuleVerifyResult as CapsuleVerifyResult, index$3_CapsuleVerifyResultZ as CapsuleVerifyResultZ, type index$3_CapsuleVerifySensorInput as CapsuleVerifySensorInput, index$3_CapsuleVerifySensorInputZ as CapsuleVerifySensorInputZ, index$3_CapsuleZ as CapsuleZ, type index$3_ChunkHashInput as ChunkHashInput, index$3_ChunkHashInputZ as ChunkHashInputZ, type index$3_CountryBlockDecision as CountryBlockDecision, index$3_CountryBlockDecisionZ as CountryBlockDecisionZ, type index$3_CountryBlockSensorInput as CountryBlockSensorInput, index$3_CountryBlockSensorInputZ as CountryBlockSensorInputZ, type index$3_EntropySensorInput as EntropySensorInput, index$3_EntropySensorInputZ as EntropySensorInputZ, index$3_ExecutionMetricsZ as ExecutionMetricsZ, type index$3_IPReputation as IPReputation, type index$3_IPReputationInput as IPReputationInput, index$3_IPReputationInputZ as IPReputationInputZ, index$3_IPReputationZ as IPReputationZ, type index$3_IntentPolicy as IntentPolicy, type index$3_IntentPolicyDecision as IntentPolicyDecision, index$3_IntentPolicyDecisionZ as IntentPolicyDecisionZ, type index$3_IntentPolicySensorInput as IntentPolicySensorInput, index$3_IntentPolicySensorInputZ as IntentPolicySensorInputZ, index$3_IntentPolicyZ as IntentPolicyZ, type index$3_IntentSchema as IntentSchema, index$3_IntentSchemaZ as IntentSchemaZ, type index$3_Passport as Passport, index$3_PassportZ as PassportZ, type index$3_ProofKind as ProofKind, index$3_ProofKindZ as ProofKindZ, type index$3_ProofPresenceInput as ProofPresenceInput, index$3_ProofPresenceInputZ as ProofPresenceInputZ, ProofType$1 as ProofType, type index$3_ProtocolStrictInput as ProtocolStrictInput, index$3_ProtocolStrictInputZ as ProtocolStrictInputZ, type index$3_RateLimitConfig as RateLimitConfig, index$3_RateLimitConfigZ as RateLimitConfigZ, type index$3_RateLimitInput as RateLimitInput, index$3_RateLimitInputZ as RateLimitInputZ, type index$3_RateLimitProfile as RateLimitProfile, index$3_RateLimitProfileZ as RateLimitProfileZ, type index$3_ScanBurstDecision as ScanBurstDecision, index$3_ScanBurstDecisionZ as ScanBurstDecisionZ, type index$3_ScanBurstSensorInput as ScanBurstSensorInput, index$3_ScanBurstSensorInputZ as ScanBurstSensorInputZ, type index$3_SchemaField as SchemaField, type index$3_SchemaFieldKind as SchemaFieldKind, index$3_SchemaFieldKindZ as SchemaFieldKindZ, index$3_SchemaFieldZ as SchemaFieldZ, type index$3_Scope as Scope, index$3_ScopeZ as ScopeZ, type index$3_SensitivityLevel as SensitivityLevel, index$3_SensitivityLevelZ as SensitivityLevelZ, type index$3_SensorChainInput as SensorChainInput, index$3_SensorChainInputZ as SensorChainInputZ, index$3_SensorDecisionWithMetadataZ as SensorDecisionWithMetadataZ, index$3_SensorDecisionZ as SensorDecisionZ, type index$3_SensorResult as SensorResult, index$3_SensorResultZ as SensorResultZ, type index$3_UploadSession as UploadSession, index$3_UploadSessionZ as UploadSessionZ, type index$3_UploadStatus as UploadStatus, index$3_UploadStatusZ as UploadStatusZ, type index$3_WsHandshakeDecision as WsHandshakeDecision, index$3_WsHandshakeDecisionZ as WsHandshakeDecisionZ, type index$3_WsHandshakeInput as WsHandshakeInput, index$3_WsHandshakeInputZ as WsHandshakeInputZ };
3056
+ export { type index$3_AccessProfile as AccessProfile, index$3_AccessProfileZ as AccessProfileZ, type index$3_AxisContext as AxisContext, index$3_AxisContextZ as AxisContextZ, type index$3_AxisError as AxisError, index$3_AxisErrorZ as AxisErrorZ, type index$3_BodyBudgetInput as BodyBudgetInput, index$3_BodyBudgetInputZ as BodyBudgetInputZ, type index$3_BodyBudgetPolicy as BodyBudgetPolicy, index$3_BodyBudgetPolicyZ as BodyBudgetPolicyZ, index$3_BodyProfile as BodyProfile, type index$3_BodyProfileValidation as BodyProfileValidation, index$3_BodyProfileValidator as BodyProfileValidator, index$3_BodyProfileZ as BodyProfileZ, type Capsule$1 as Capsule, type index$3_CapsuleClaims as CapsuleClaims, index$3_CapsuleClaimsZ as CapsuleClaimsZ, type index$3_CapsuleValidationResult as CapsuleValidationResult, index$3_CapsuleValidationResultZ as CapsuleValidationResultZ, type index$3_CapsuleVerifyResult as CapsuleVerifyResult, index$3_CapsuleVerifyResultZ as CapsuleVerifyResultZ, type index$3_CapsuleVerifySensorInput as CapsuleVerifySensorInput, index$3_CapsuleVerifySensorInputZ as CapsuleVerifySensorInputZ, index$3_CapsuleZ as CapsuleZ, type index$3_ChunkHashInput as ChunkHashInput, index$3_ChunkHashInputZ as ChunkHashInputZ, type index$3_CountryBlockDecision as CountryBlockDecision, index$3_CountryBlockDecisionZ as CountryBlockDecisionZ, type index$3_CountryBlockSensorInput as CountryBlockSensorInput, index$3_CountryBlockSensorInputZ as CountryBlockSensorInputZ, type index$3_EntropySensorInput as EntropySensorInput, index$3_EntropySensorInputZ as EntropySensorInputZ, index$3_ExecutionMetricsZ as ExecutionMetricsZ, type index$3_IPReputation as IPReputation, type index$3_IPReputationInput as IPReputationInput, index$3_IPReputationInputZ as IPReputationInputZ, index$3_IPReputationZ as IPReputationZ, type index$3_IntentPolicy as IntentPolicy, type index$3_IntentPolicyDecision as IntentPolicyDecision, index$3_IntentPolicyDecisionZ as IntentPolicyDecisionZ, type index$3_IntentPolicySensorInput as IntentPolicySensorInput, index$3_IntentPolicySensorInputZ as IntentPolicySensorInputZ, index$3_IntentPolicyZ as IntentPolicyZ, type index$3_IntentSchema as IntentSchema, index$3_IntentSchemaZ as IntentSchemaZ, type index$3_Passport as Passport, index$3_PassportZ as PassportZ, type index$3_ProofKind as ProofKind, index$3_ProofKindZ as ProofKindZ, type index$3_ProofPresenceInput as ProofPresenceInput, index$3_ProofPresenceInputZ as ProofPresenceInputZ, ProofType$1 as ProofType, type index$3_ProtocolStrictInput as ProtocolStrictInput, index$3_ProtocolStrictInputZ as ProtocolStrictInputZ, type index$3_RateLimitConfig as RateLimitConfig, index$3_RateLimitConfigZ as RateLimitConfigZ, type index$3_RateLimitInput as RateLimitInput, index$3_RateLimitInputZ as RateLimitInputZ, type index$3_RateLimitProfile as RateLimitProfile, index$3_RateLimitProfileZ as RateLimitProfileZ, type index$3_ScanBurstDecision as ScanBurstDecision, index$3_ScanBurstDecisionZ as ScanBurstDecisionZ, type index$3_ScanBurstSensorInput as ScanBurstSensorInput, index$3_ScanBurstSensorInputZ as ScanBurstSensorInputZ, type index$3_SchemaField as SchemaField, type index$3_SchemaFieldKind as SchemaFieldKind, index$3_SchemaFieldKindZ as SchemaFieldKindZ, index$3_SchemaFieldZ as SchemaFieldZ, type index$3_Scope as Scope, index$3_ScopeZ as ScopeZ, type index$3_SensitivityLevel as SensitivityLevel, index$3_SensitivityLevelZ as SensitivityLevelZ, type index$3_SensorChainInput as SensorChainInput, index$3_SensorChainInputZ as SensorChainInputZ, index$3_SensorDecisionWithMetadataZ as SensorDecisionWithMetadataZ, index$3_SensorDecisionZ as SensorDecisionZ, type index$3_SensorResult as SensorResult, index$3_SensorResultZ as SensorResultZ, type index$3_UploadSession as UploadSession, index$3_UploadSessionZ as UploadSessionZ, type index$3_UploadStatus as UploadStatus, index$3_UploadStatusZ as UploadStatusZ, type index$3_WsHandshakeDecision as WsHandshakeDecision, index$3_WsHandshakeDecisionZ as WsHandshakeDecisionZ, type index$3_WsHandshakeInput as WsHandshakeInput, index$3_WsHandshakeInputZ as WsHandshakeInputZ };
3039
3057
  }
3040
3058
 
3041
3059
  type index$2_AxisSensorChainService = AxisSensorChainService;
package/dist/index.js CHANGED
@@ -7069,13 +7069,127 @@ var init_crypto = __esm({
7069
7069
  }
7070
7070
  });
7071
7071
 
7072
+ // src/decorators/intent-policy.decorator.ts
7073
+ function Sensitivity(level) {
7074
+ return ((target, propertyKey) => {
7075
+ if (propertyKey !== void 0) {
7076
+ Reflect.defineMetadata(
7077
+ SENSITIVITY_METADATA_KEY,
7078
+ level,
7079
+ target,
7080
+ propertyKey
7081
+ );
7082
+ return;
7083
+ }
7084
+ Reflect.defineMetadata(SENSITIVITY_METADATA_KEY, level, target);
7085
+ });
7086
+ }
7087
+ function Contract(options) {
7088
+ return ((target, propertyKey) => {
7089
+ if (propertyKey !== void 0) {
7090
+ Reflect.defineMetadata(
7091
+ CONTRACT_METADATA_KEY,
7092
+ options,
7093
+ target,
7094
+ propertyKey
7095
+ );
7096
+ return;
7097
+ }
7098
+ Reflect.defineMetadata(CONTRACT_METADATA_KEY, options, target);
7099
+ });
7100
+ }
7101
+ function RequiredProof(proofs) {
7102
+ return ((target, propertyKey) => {
7103
+ if (propertyKey !== void 0) {
7104
+ Reflect.defineMetadata(
7105
+ REQUIRED_PROOF_METADATA_KEY,
7106
+ proofs,
7107
+ target,
7108
+ propertyKey
7109
+ );
7110
+ return;
7111
+ }
7112
+ Reflect.defineMetadata(
7113
+ REQUIRED_PROOF_METADATA_KEY,
7114
+ proofs,
7115
+ target
7116
+ );
7117
+ });
7118
+ }
7119
+ function Capsule() {
7120
+ return ((target, propertyKey) => {
7121
+ const existing = propertyKey !== void 0 ? Reflect.getMetadata(
7122
+ REQUIRED_PROOF_METADATA_KEY,
7123
+ target,
7124
+ propertyKey
7125
+ ) ?? [] : Reflect.getMetadata(
7126
+ REQUIRED_PROOF_METADATA_KEY,
7127
+ target
7128
+ ) ?? [];
7129
+ const merged = existing.includes("CAPSULE") ? existing : [...existing, "CAPSULE"];
7130
+ if (propertyKey !== void 0) {
7131
+ Reflect.defineMetadata(
7132
+ REQUIRED_PROOF_METADATA_KEY,
7133
+ merged,
7134
+ target,
7135
+ propertyKey
7136
+ );
7137
+ } else {
7138
+ Reflect.defineMetadata(
7139
+ REQUIRED_PROOF_METADATA_KEY,
7140
+ merged,
7141
+ target
7142
+ );
7143
+ }
7144
+ });
7145
+ }
7146
+ function Witness() {
7147
+ return ((target, propertyKey) => {
7148
+ const existing = propertyKey !== void 0 ? Reflect.getMetadata(
7149
+ REQUIRED_PROOF_METADATA_KEY,
7150
+ target,
7151
+ propertyKey
7152
+ ) ?? [] : Reflect.getMetadata(
7153
+ REQUIRED_PROOF_METADATA_KEY,
7154
+ target
7155
+ ) ?? [];
7156
+ const merged = existing.includes("WITNESS") ? existing : [...existing, "WITNESS"];
7157
+ if (propertyKey !== void 0) {
7158
+ Reflect.defineMetadata(
7159
+ REQUIRED_PROOF_METADATA_KEY,
7160
+ merged,
7161
+ target,
7162
+ propertyKey
7163
+ );
7164
+ } else {
7165
+ Reflect.defineMetadata(
7166
+ REQUIRED_PROOF_METADATA_KEY,
7167
+ merged,
7168
+ target
7169
+ );
7170
+ }
7171
+ });
7172
+ }
7173
+ var import_reflect_metadata10, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY;
7174
+ var init_intent_policy_decorator = __esm({
7175
+ "src/decorators/intent-policy.decorator.ts"() {
7176
+ import_reflect_metadata10 = require("reflect-metadata");
7177
+ SENSITIVITY_METADATA_KEY = "axis:sensitivity";
7178
+ CONTRACT_METADATA_KEY = "axis:contract";
7179
+ REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
7180
+ }
7181
+ });
7182
+
7072
7183
  // src/decorators/index.ts
7073
7184
  var decorators_exports = {};
7074
7185
  __export(decorators_exports, {
7075
7186
  CAPSULE_POLICY_METADATA_KEY: () => CAPSULE_POLICY_METADATA_KEY,
7076
7187
  CHAIN_METADATA_KEY: () => CHAIN_METADATA_KEY,
7188
+ CONTRACT_METADATA_KEY: () => CONTRACT_METADATA_KEY,
7189
+ Capsule: () => Capsule,
7077
7190
  CapsulePolicy: () => CapsulePolicy,
7078
7191
  Chain: () => Chain,
7192
+ Contract: () => Contract,
7079
7193
  HANDLER_METADATA_KEY: () => HANDLER_METADATA_KEY,
7080
7194
  Handler: () => Handler,
7081
7195
  INTENT_BODY_KEY: () => INTENT_BODY_KEY,
@@ -7088,7 +7202,11 @@ __export(decorators_exports, {
7088
7202
  OBSERVER_BINDINGS_KEY: () => OBSERVER_BINDINGS_KEY,
7089
7203
  OBSERVER_METADATA_KEY: () => OBSERVER_METADATA_KEY,
7090
7204
  Observer: () => Observer,
7205
+ REQUIRED_PROOF_METADATA_KEY: () => REQUIRED_PROOF_METADATA_KEY,
7206
+ RequiredProof: () => RequiredProof,
7207
+ SENSITIVITY_METADATA_KEY: () => SENSITIVITY_METADATA_KEY,
7091
7208
  SENSOR_METADATA_KEY: () => SENSOR_METADATA_KEY,
7209
+ Sensitivity: () => Sensitivity,
7092
7210
  Sensor: () => Sensor,
7093
7211
  TLV_FIELDS_KEY: () => TLV_FIELDS_KEY,
7094
7212
  TLV_VALIDATORS_KEY: () => TLV_VALIDATORS_KEY,
@@ -7098,6 +7216,7 @@ __export(decorators_exports, {
7098
7216
  TlvRange: () => TlvRange,
7099
7217
  TlvUtf8Pattern: () => TlvUtf8Pattern,
7100
7218
  TlvValidate: () => TlvValidate,
7219
+ Witness: () => Witness,
7101
7220
  mergeCapsulePolicyOptions: () => mergeCapsulePolicyOptions,
7102
7221
  normalizeCapsulePolicyOptions: () => normalizeCapsulePolicyOptions
7103
7222
  });
@@ -7105,6 +7224,7 @@ var init_decorators = __esm({
7105
7224
  "src/decorators/index.ts"() {
7106
7225
  __reExport(decorators_exports, __toESM(require_axis_request_decorator()));
7107
7226
  init_capsule_policy_decorator();
7227
+ init_intent_policy_decorator();
7108
7228
  init_chain_decorator();
7109
7229
  __reExport(decorators_exports, __toESM(require_dto_schema_util()));
7110
7230
  init_handler_decorator();