@nextera.one/axis-server-sdk 2.3.17 → 2.3.19
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-D4Oz7vc1.d.mts → index-BCFbHQxo.d.mts} +8 -15
- package/dist/{index-DwBRLF9t.d.ts → index-BsnV_K_l.d.ts} +8 -15
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +26 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -13
- package/dist/index.mjs.map +1 -1
- package/dist/needle/index.js.map +1 -1
- package/dist/needle/index.mjs +1 -0
- package/dist/needle/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +1 -1
- package/dist/sensors/index.d.ts +1 -1
- package/dist/sensors/index.js +23 -13
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +24 -13
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -241,16 +228,22 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
241
228
|
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
242
229
|
|
|
243
230
|
declare const AXIS_META_KEY = "axis:axis";
|
|
231
|
+
declare const AXIS_STREAM_META_KEY = "axis:stream";
|
|
244
232
|
declare const SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
245
233
|
declare const CONTRACT_METADATA_KEY = "axis:contract";
|
|
246
234
|
declare const REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
247
235
|
type RequiredProofKind = ProofKind;
|
|
236
|
+
interface AxisStreamOptions {
|
|
237
|
+
path?: string;
|
|
238
|
+
protocol?: string;
|
|
239
|
+
}
|
|
248
240
|
declare function Sensitivity(level: SensitivityLevel): ClassDecorator & MethodDecorator;
|
|
249
241
|
declare function Contract(options: Partial<ExecutionContract>): ClassDecorator & MethodDecorator;
|
|
250
242
|
declare function RequiredProof(proofs: [RequiredProofKind, ...RequiredProofKind[]]): ClassDecorator & MethodDecorator;
|
|
251
243
|
declare function Capsule(): ClassDecorator & MethodDecorator;
|
|
252
244
|
declare function Witness(): ClassDecorator & MethodDecorator;
|
|
253
245
|
declare function Axis(): ClassDecorator;
|
|
246
|
+
declare function AxisStream(options?: AxisStreamOptions): ClassDecorator;
|
|
254
247
|
declare const AXIS_PUBLIC_KEY = "axis:public";
|
|
255
248
|
declare function AxisPublic(): ClassDecorator & MethodDecorator;
|
|
256
249
|
declare const AXIS_ANONYMOUS_KEY = "axis:anonymous";
|
|
@@ -915,4 +908,4 @@ declare class VarintHardeningSensor implements AxisSensor {
|
|
|
915
908
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
916
909
|
}
|
|
917
910
|
|
|
918
|
-
export {
|
|
911
|
+
export { type AxisRateLimitConfig as $, type AxisIntentSensorOptions as A, type AxisIntentObserver as B, type ChainOptions as C, type AxisIntentSensorBinding as D, type AxisIntentSensorBindingOptions as E, type AxisIntentSensorRef as F, type AxisIntentSensorWhen as G, type AxisKeyExchangeRef as H, type IntentTlvField as I, type AxisLawArticleSummary as J, type AxisLawDecision as K, type AxisLawEvaluationContext as L, type AxisLawEvaluationResult as M, type AxisLawEvaluator as N, ObserverDispatcherService as O, type AxisObserverBinding as P, type AxisObserverBindingOptions as Q, type RequiredProofKind as R, SensorRegistry as S, type TlvValidatorFn as T, type AxisObserverContext as U, type AxisObserverDefinition as V, type AxisObserverEvent as W, type AxisObserverRef as X, type AxisObserverRegistration as Y, AxisPublic as Z, AxisRateLimit as _, type AxisObserverBindingInput as a, type TlvFieldMeta as a$, AxisStream as a0, type AxisStreamOptions as a1, BodyBudgetSensor as a2, CAPSULE_POLICY_METADATA_KEY as a3, CONTRACT_METADATA_KEY as a4, CapabilityEnforcementSensor as a5, Capsule as a6, CapsulePolicy as a7, type CapsulePolicyOptions as a8, type CapsuleScopeMode as a9, ObserverRegistry as aA, ProofPresenceSensor as aB, ProtocolStrictSensor as aC, REQUIRED_PROOF_METADATA_KEY as aD, ReceiptPolicySensor as aE, type RegisteredChainConfig as aF, RequiredProof as aG, RiskDecision as aH, type RiskEvaluation as aI, RiskGateSensor as aJ, type RiskGateSensorOptions as aK, type RiskSignal as aL, type RiskSignalCollector as aM, SENSITIVITY_METADATA_KEY as aN, SchemaValidationSensor as aO, Sensitivity as aP, StreamScopeSensor as aQ, TLVParseSensor as aR, TLV_FIELDS_KEY as aS, TLV_VALIDATORS_KEY as aT, type TickAuthCapsuleRef as aU, TickAuthSensor as aV, type TickAuthSensorOptions as aW, type TickAuthVerifier as aX, TlvEnum as aY, TlvField as aZ, type TlvFieldKind as a_, ChunkHashSensor as aa, Contract as ab, DEFAULT_CONTRACTS as ac, EntropySensor as ad, type ExecutionContract as ae, ExecutionTimeoutSensor as af, FALLBACK_CONTRACT as ag, FrameBudgetSensor as ah, FrameHeaderSanitySensor as ai, HeaderTLVLimitSensor as aj, INTENT_METADATA_KEY as ak, INTENT_ROUTES_KEY as al, Intent as am, IntentAllowlistSensor as an, type IntentKind as ao, type IntentOptions as ap, IntentRegistrySensor as aq, type IntentRoute as ar, type LawArticlePresenceMode as as, LawArticlePresenceSensor as at, type LawArticlePresenceSensorOptions as au, LawEvaluationSensor as av, type LawEvaluationSensorOptions as aw, OBSERVER_BINDINGS_KEY as ax, OBSERVER_METADATA_KEY as ay, Observer as az, type AxisIntentSensorBindingInput as b, type TlvFieldOptions as b0, TlvMinLen as b1, TlvRange as b2, TlvUtf8Pattern as b3, TlvValidate as b4, type TlvValidatorMeta as b5, TpsSensor as b6, type TpsSensorOptions as b7, VarintHardeningSensor as b8, Witness as b9, buildAxisLawEvaluationContext as ba, toIntentSensorBinding as bb, toObserverBinding as bc, IntentRouter as c, type AxisChainEnvelope as d, type AxisChainResult as e, type AxisCapsuleRef as f, type AxisChainStep as g, type AxisContext as h, AXIS_ANONYMOUS_KEY as i, AXIS_AUTHORIZED_KEY as j, AXIS_META_KEY as k, AXIS_PUBLIC_KEY as l, AXIS_RATE_LIMIT_KEY as m, AXIS_STREAM_META_KEY as n, AccessProfileResolverSensor as o, Axis as p, AxisAnonymous as q, AxisAuthorized as r, type AxisChainEncryption as s, type AxisChainRequest as t, type AxisChainStatus as u, type AxisChainStepResult as v, type AxisChainStepStatus as w, type AxisEffect as x, type AxisExecutionMode as y, type AxisIntentEnvelope as z };
|
|
@@ -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";
|
|
@@ -241,16 +228,22 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
241
228
|
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
242
229
|
|
|
243
230
|
declare const AXIS_META_KEY = "axis:axis";
|
|
231
|
+
declare const AXIS_STREAM_META_KEY = "axis:stream";
|
|
244
232
|
declare const SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
245
233
|
declare const CONTRACT_METADATA_KEY = "axis:contract";
|
|
246
234
|
declare const REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
247
235
|
type RequiredProofKind = ProofKind;
|
|
236
|
+
interface AxisStreamOptions {
|
|
237
|
+
path?: string;
|
|
238
|
+
protocol?: string;
|
|
239
|
+
}
|
|
248
240
|
declare function Sensitivity(level: SensitivityLevel): ClassDecorator & MethodDecorator;
|
|
249
241
|
declare function Contract(options: Partial<ExecutionContract>): ClassDecorator & MethodDecorator;
|
|
250
242
|
declare function RequiredProof(proofs: [RequiredProofKind, ...RequiredProofKind[]]): ClassDecorator & MethodDecorator;
|
|
251
243
|
declare function Capsule(): ClassDecorator & MethodDecorator;
|
|
252
244
|
declare function Witness(): ClassDecorator & MethodDecorator;
|
|
253
245
|
declare function Axis(): ClassDecorator;
|
|
246
|
+
declare function AxisStream(options?: AxisStreamOptions): ClassDecorator;
|
|
254
247
|
declare const AXIS_PUBLIC_KEY = "axis:public";
|
|
255
248
|
declare function AxisPublic(): ClassDecorator & MethodDecorator;
|
|
256
249
|
declare const AXIS_ANONYMOUS_KEY = "axis:anonymous";
|
|
@@ -915,4 +908,4 @@ declare class VarintHardeningSensor implements AxisSensor {
|
|
|
915
908
|
run(input: SensorInput): Promise<SensorDecision>;
|
|
916
909
|
}
|
|
917
910
|
|
|
918
|
-
export {
|
|
911
|
+
export { type AxisRateLimitConfig as $, type AxisIntentSensorOptions as A, type AxisIntentObserver as B, type ChainOptions as C, type AxisIntentSensorBinding as D, type AxisIntentSensorBindingOptions as E, type AxisIntentSensorRef as F, type AxisIntentSensorWhen as G, type AxisKeyExchangeRef as H, type IntentTlvField as I, type AxisLawArticleSummary as J, type AxisLawDecision as K, type AxisLawEvaluationContext as L, type AxisLawEvaluationResult as M, type AxisLawEvaluator as N, ObserverDispatcherService as O, type AxisObserverBinding as P, type AxisObserverBindingOptions as Q, type RequiredProofKind as R, SensorRegistry as S, type TlvValidatorFn as T, type AxisObserverContext as U, type AxisObserverDefinition as V, type AxisObserverEvent as W, type AxisObserverRef as X, type AxisObserverRegistration as Y, AxisPublic as Z, AxisRateLimit as _, type AxisObserverBindingInput as a, type TlvFieldMeta as a$, AxisStream as a0, type AxisStreamOptions as a1, BodyBudgetSensor as a2, CAPSULE_POLICY_METADATA_KEY as a3, CONTRACT_METADATA_KEY as a4, CapabilityEnforcementSensor as a5, Capsule as a6, CapsulePolicy as a7, type CapsulePolicyOptions as a8, type CapsuleScopeMode as a9, ObserverRegistry as aA, ProofPresenceSensor as aB, ProtocolStrictSensor as aC, REQUIRED_PROOF_METADATA_KEY as aD, ReceiptPolicySensor as aE, type RegisteredChainConfig as aF, RequiredProof as aG, RiskDecision as aH, type RiskEvaluation as aI, RiskGateSensor as aJ, type RiskGateSensorOptions as aK, type RiskSignal as aL, type RiskSignalCollector as aM, SENSITIVITY_METADATA_KEY as aN, SchemaValidationSensor as aO, Sensitivity as aP, StreamScopeSensor as aQ, TLVParseSensor as aR, TLV_FIELDS_KEY as aS, TLV_VALIDATORS_KEY as aT, type TickAuthCapsuleRef as aU, TickAuthSensor as aV, type TickAuthSensorOptions as aW, type TickAuthVerifier as aX, TlvEnum as aY, TlvField as aZ, type TlvFieldKind as a_, ChunkHashSensor as aa, Contract as ab, DEFAULT_CONTRACTS as ac, EntropySensor as ad, type ExecutionContract as ae, ExecutionTimeoutSensor as af, FALLBACK_CONTRACT as ag, FrameBudgetSensor as ah, FrameHeaderSanitySensor as ai, HeaderTLVLimitSensor as aj, INTENT_METADATA_KEY as ak, INTENT_ROUTES_KEY as al, Intent as am, IntentAllowlistSensor as an, type IntentKind as ao, type IntentOptions as ap, IntentRegistrySensor as aq, type IntentRoute as ar, type LawArticlePresenceMode as as, LawArticlePresenceSensor as at, type LawArticlePresenceSensorOptions as au, LawEvaluationSensor as av, type LawEvaluationSensorOptions as aw, OBSERVER_BINDINGS_KEY as ax, OBSERVER_METADATA_KEY as ay, Observer as az, type AxisIntentSensorBindingInput as b, type TlvFieldOptions as b0, TlvMinLen as b1, TlvRange as b2, TlvUtf8Pattern as b3, TlvValidate as b4, type TlvValidatorMeta as b5, TpsSensor as b6, type TpsSensorOptions as b7, VarintHardeningSensor as b8, Witness as b9, buildAxisLawEvaluationContext as ba, toIntentSensorBinding as bb, toObserverBinding as bc, IntentRouter as c, type AxisChainEnvelope as d, type AxisChainResult as e, type AxisCapsuleRef as f, type AxisChainStep as g, type AxisContext as h, AXIS_ANONYMOUS_KEY as i, AXIS_AUTHORIZED_KEY as j, AXIS_META_KEY as k, AXIS_PUBLIC_KEY as l, AXIS_RATE_LIMIT_KEY as m, AXIS_STREAM_META_KEY as n, AccessProfileResolverSensor as o, Axis as p, AxisAnonymous as q, AxisAuthorized as r, type AxisChainEncryption as s, type AxisChainRequest as t, type AxisChainStatus as u, type AxisChainStepResult as v, type AxisChainStepStatus as w, type AxisEffect as x, type AxisExecutionMode as y, type AxisIntentEnvelope as z };
|
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-
|
|
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
|
|
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;
|
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-
|
|
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
|
|
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;
|
package/dist/index.js
CHANGED
|
@@ -212,6 +212,21 @@ function Axis() {
|
|
|
212
212
|
Reflect.defineMetadata(AXIS_META_KEY, { entry: true }, target);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
+
function AxisStream(options = {}) {
|
|
216
|
+
return (target) => {
|
|
217
|
+
Reflect.defineMetadata(
|
|
218
|
+
AXIS_STREAM_META_KEY,
|
|
219
|
+
{
|
|
220
|
+
entry: true,
|
|
221
|
+
transport: "stream",
|
|
222
|
+
role: "entry",
|
|
223
|
+
path: options.path,
|
|
224
|
+
protocol: options.protocol
|
|
225
|
+
},
|
|
226
|
+
target
|
|
227
|
+
);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
215
230
|
function AxisPublic() {
|
|
216
231
|
return (target, propertyKey, descriptor) => {
|
|
217
232
|
if (propertyKey !== void 0) {
|
|
@@ -254,11 +269,12 @@ function AxisRateLimit(config) {
|
|
|
254
269
|
return descriptor;
|
|
255
270
|
};
|
|
256
271
|
}
|
|
257
|
-
var import_reflect_metadata3, AXIS_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
|
|
272
|
+
var import_reflect_metadata3, AXIS_META_KEY, AXIS_STREAM_META_KEY, SENSITIVITY_METADATA_KEY, CONTRACT_METADATA_KEY, REQUIRED_PROOF_METADATA_KEY, AXIS_PUBLIC_KEY, AXIS_ANONYMOUS_KEY, AXIS_AUTHORIZED_KEY, AXIS_RATE_LIMIT_KEY;
|
|
258
273
|
var init_intent_policy_decorator = __esm({
|
|
259
274
|
"src/decorators/intent-policy.decorator.ts"() {
|
|
260
275
|
import_reflect_metadata3 = require("reflect-metadata");
|
|
261
276
|
AXIS_META_KEY = "axis:axis";
|
|
277
|
+
AXIS_STREAM_META_KEY = "axis:stream";
|
|
262
278
|
SENSITIVITY_METADATA_KEY = "axis:sensitivity";
|
|
263
279
|
CONTRACT_METADATA_KEY = "axis:contract";
|
|
264
280
|
REQUIRED_PROOF_METADATA_KEY = "axis:required_proof";
|
|
@@ -864,6 +880,7 @@ __export(constants_exports, {
|
|
|
864
880
|
NCERT_SIG: () => import_axis_protocol2.NCERT_SIG,
|
|
865
881
|
PROOF_CAPSULE: () => import_axis_protocol2.PROOF_CAPSULE,
|
|
866
882
|
PROOF_JWT: () => import_axis_protocol2.PROOF_JWT,
|
|
883
|
+
PROOF_KINDS: () => import_axis_protocol2.PROOF_KINDS,
|
|
867
884
|
PROOF_LOOM: () => import_axis_protocol2.PROOF_LOOM,
|
|
868
885
|
PROOF_MTLS: () => import_axis_protocol2.PROOF_MTLS,
|
|
869
886
|
PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
|
|
@@ -11741,6 +11758,7 @@ var init_axis_schemas = __esm({
|
|
|
11741
11758
|
"src/schemas/axis-schemas.ts"() {
|
|
11742
11759
|
z2 = __toESM(require("zod"));
|
|
11743
11760
|
init_axis_bin();
|
|
11761
|
+
init_constants();
|
|
11744
11762
|
SensorDecisionZ = z2.union([
|
|
11745
11763
|
z2.object({ action: z2.literal("ALLOW"), meta: z2.any().optional() }),
|
|
11746
11764
|
z2.object({
|
|
@@ -11770,18 +11788,7 @@ var init_axis_schemas = __esm({
|
|
|
11770
11788
|
isFailure: z2.boolean().optional()
|
|
11771
11789
|
});
|
|
11772
11790
|
ScanBurstDecisionZ = SensorDecisionWithMetadataZ;
|
|
11773
|
-
ProofKindZ = z2.enum(
|
|
11774
|
-
"NONE",
|
|
11775
|
-
"ANONYMOUS",
|
|
11776
|
-
"PASSPORT",
|
|
11777
|
-
"CAPSULE",
|
|
11778
|
-
"JWT",
|
|
11779
|
-
"CONTRACT",
|
|
11780
|
-
"WITNESS",
|
|
11781
|
-
"MTLS",
|
|
11782
|
-
"DEVICE",
|
|
11783
|
-
"AUTHORIZED"
|
|
11784
|
-
]);
|
|
11791
|
+
ProofKindZ = z2.enum(import_axis_protocol2.PROOF_KINDS);
|
|
11785
11792
|
AccessProfileZ = z2.enum(["PUBLIC", "PARTNER", "INTERNAL", "NODE"]);
|
|
11786
11793
|
ProofPresenceInputZ = z2.object({
|
|
11787
11794
|
profile: AccessProfileZ,
|
|
@@ -13049,6 +13056,7 @@ __export(index_exports, {
|
|
|
13049
13056
|
AXIS_OPCODES: () => AXIS_OPCODES,
|
|
13050
13057
|
AXIS_PUBLIC_KEY: () => AXIS_PUBLIC_KEY,
|
|
13051
13058
|
AXIS_RATE_LIMIT_KEY: () => AXIS_RATE_LIMIT_KEY,
|
|
13059
|
+
AXIS_STREAM_META_KEY: () => AXIS_STREAM_META_KEY,
|
|
13052
13060
|
AXIS_UPLOAD_FILE_STORE: () => AXIS_UPLOAD_FILE_STORE,
|
|
13053
13061
|
AXIS_UPLOAD_RECEIPT_SIGNER: () => AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
13054
13062
|
AXIS_UPLOAD_SESSION_STORE: () => AXIS_UPLOAD_SESSION_STORE,
|
|
@@ -13068,6 +13076,7 @@ __export(index_exports, {
|
|
|
13068
13076
|
AxisRateLimit: () => AxisRateLimit,
|
|
13069
13077
|
AxisResponseDto: () => import_axis_response.AxisResponseDto,
|
|
13070
13078
|
AxisSensorChainService: () => AxisSensorChainService,
|
|
13079
|
+
AxisStream: () => AxisStream,
|
|
13071
13080
|
AxisTlvDto: () => AxisTlvDto,
|
|
13072
13081
|
BAND: () => BAND,
|
|
13073
13082
|
BodyProfile: () => BodyProfile2,
|
|
@@ -13140,6 +13149,7 @@ __export(index_exports, {
|
|
|
13140
13149
|
PROOF_CAPABILITIES: () => PROOF_CAPABILITIES,
|
|
13141
13150
|
PROOF_CAPSULE: () => import_axis_protocol2.PROOF_CAPSULE,
|
|
13142
13151
|
PROOF_JWT: () => import_axis_protocol2.PROOF_JWT,
|
|
13152
|
+
PROOF_KINDS: () => import_axis_protocol2.PROOF_KINDS,
|
|
13143
13153
|
PROOF_LOOM: () => import_axis_protocol2.PROOF_LOOM,
|
|
13144
13154
|
PROOF_MTLS: () => import_axis_protocol2.PROOF_MTLS,
|
|
13145
13155
|
PROOF_NONE: () => import_axis_protocol2.PROOF_NONE,
|
|
@@ -13437,6 +13447,7 @@ init_index();
|
|
|
13437
13447
|
AXIS_OPCODES,
|
|
13438
13448
|
AXIS_PUBLIC_KEY,
|
|
13439
13449
|
AXIS_RATE_LIMIT_KEY,
|
|
13450
|
+
AXIS_STREAM_META_KEY,
|
|
13440
13451
|
AXIS_UPLOAD_FILE_STORE,
|
|
13441
13452
|
AXIS_UPLOAD_RECEIPT_SIGNER,
|
|
13442
13453
|
AXIS_UPLOAD_SESSION_STORE,
|
|
@@ -13456,6 +13467,7 @@ init_index();
|
|
|
13456
13467
|
AxisRateLimit,
|
|
13457
13468
|
AxisResponseDto,
|
|
13458
13469
|
AxisSensorChainService,
|
|
13470
|
+
AxisStream,
|
|
13459
13471
|
AxisTlvDto,
|
|
13460
13472
|
BAND,
|
|
13461
13473
|
BodyProfile,
|
|
@@ -13528,6 +13540,7 @@ init_index();
|
|
|
13528
13540
|
PROOF_CAPABILITIES,
|
|
13529
13541
|
PROOF_CAPSULE,
|
|
13530
13542
|
PROOF_JWT,
|
|
13543
|
+
PROOF_KINDS,
|
|
13531
13544
|
PROOF_LOOM,
|
|
13532
13545
|
PROOF_MTLS,
|
|
13533
13546
|
PROOF_NONE,
|