@nextera.one/axis-server-sdk 2.2.7 → 2.2.9
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-BAoKsEOu.d.ts → index-Dci5tlZE.d.ts} +24 -12
- package/dist/{index-BLK3AtRm.d.mts → index-DypvaTKs.d.mts} +24 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +402 -339
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +349 -286
- package/dist/index.mjs.map +1 -1
- package/dist/sensors/index.d.mts +3 -3
- package/dist/sensors/index.d.ts +3 -3
- package/dist/sensors/index.js +402 -339
- package/dist/sensors/index.js.map +1 -1
- package/dist/sensors/index.mjs +349 -286
- package/dist/sensors/index.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-DMW4rfRg.js';
|
|
2
|
-
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-BJ-F1isr.js';
|
|
3
|
-
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
2
|
import * as z from 'zod';
|
|
3
|
+
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
|
+
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-BJ-F1isr.js';
|
|
5
5
|
|
|
6
6
|
type AxisExecutionMode = 'strict' | 'parallel' | 'best_effort' | 'atomic';
|
|
7
7
|
type AxisObserverEvent = 'intent.received' | 'intent.completed' | 'intent.failed' | 'chain.received' | 'chain.admitted' | 'chain.completed' | 'chain.failed' | 'chain.partial' | 'step.started' | 'step.completed' | 'step.failed' | 'step.blocked' | 'step.skipped' | 'signature.verified' | 'decryption.succeeded' | 'sensor.passed' | 'sensor.failed' | 'handler.completed' | 'proof.recorded';
|
|
@@ -143,10 +143,15 @@ declare const FALLBACK_CONTRACT: ExecutionContract;
|
|
|
143
143
|
|
|
144
144
|
declare const ProofKindZ: z.ZodEnum<{
|
|
145
145
|
NONE: "NONE";
|
|
146
|
-
|
|
146
|
+
ANONYMOUS: "ANONYMOUS";
|
|
147
147
|
PASSPORT: "PASSPORT";
|
|
148
|
-
|
|
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
|
-
|
|
170
|
+
ANONYMOUS: "ANONYMOUS";
|
|
166
171
|
PASSPORT: "PASSPORT";
|
|
167
|
-
|
|
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.
|
|
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.
|
|
216
|
+
}, z.core.$strip>>;
|
|
207
217
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
208
|
-
}, z.
|
|
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.
|
|
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.
|
|
238
|
+
}, z.core.$strip>>;
|
|
229
239
|
meter: z.ZodOptional<z.ZodAny>;
|
|
230
|
-
}, z.
|
|
240
|
+
}, z.core.$strip>;
|
|
231
241
|
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
232
242
|
|
|
233
243
|
declare const AXIS_META_KEY = "axis:axis";
|
|
@@ -431,6 +441,7 @@ declare class IntentRouter {
|
|
|
431
441
|
private intentRequiredProof;
|
|
432
442
|
private publicIntents;
|
|
433
443
|
private anonymousIntents;
|
|
444
|
+
private authorizedIntents;
|
|
434
445
|
private intentRateLimits;
|
|
435
446
|
private cceHandlers;
|
|
436
447
|
private ccePipelineConfig;
|
|
@@ -461,6 +472,7 @@ declare class IntentRouter {
|
|
|
461
472
|
getRequiredProof(intent: string): RequiredProofKind[] | undefined;
|
|
462
473
|
isPublic(intent: string): boolean;
|
|
463
474
|
isAnonymous(intent: string): boolean;
|
|
475
|
+
isAuthorized(intent: string): boolean;
|
|
464
476
|
getRateLimit(intent: string): AxisRateLimitConfig | undefined;
|
|
465
477
|
private emitIntentObservers;
|
|
466
478
|
private runIntentSensors;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as AxisSensor, m as AxisPreSensor, l as AxisPostSensor, S as SensorInput, a as SensorDecision } from './axis-sensor-DMW4rfRg.mjs';
|
|
2
|
-
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-CBt56guN.mjs';
|
|
3
|
-
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
2
|
import * as z from 'zod';
|
|
3
|
+
import { AxisFrame } from '@nextera.one/axis-protocol';
|
|
4
|
+
import { x as CcePipelineConfig, s as CceHandler, b as CceRequestEnvelope, y as CcePipelineResult } from './cce-pipeline-CBt56guN.mjs';
|
|
5
5
|
|
|
6
6
|
type AxisExecutionMode = 'strict' | 'parallel' | 'best_effort' | 'atomic';
|
|
7
7
|
type AxisObserverEvent = 'intent.received' | 'intent.completed' | 'intent.failed' | 'chain.received' | 'chain.admitted' | 'chain.completed' | 'chain.failed' | 'chain.partial' | 'step.started' | 'step.completed' | 'step.failed' | 'step.blocked' | 'step.skipped' | 'signature.verified' | 'decryption.succeeded' | 'sensor.passed' | 'sensor.failed' | 'handler.completed' | 'proof.recorded';
|
|
@@ -143,10 +143,15 @@ declare const FALLBACK_CONTRACT: ExecutionContract;
|
|
|
143
143
|
|
|
144
144
|
declare const ProofKindZ: z.ZodEnum<{
|
|
145
145
|
NONE: "NONE";
|
|
146
|
-
|
|
146
|
+
ANONYMOUS: "ANONYMOUS";
|
|
147
147
|
PASSPORT: "PASSPORT";
|
|
148
|
-
|
|
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
|
-
|
|
170
|
+
ANONYMOUS: "ANONYMOUS";
|
|
166
171
|
PASSPORT: "PASSPORT";
|
|
167
|
-
|
|
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.
|
|
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.
|
|
216
|
+
}, z.core.$strip>>;
|
|
207
217
|
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
208
|
-
}, z.
|
|
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.
|
|
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.
|
|
238
|
+
}, z.core.$strip>>;
|
|
229
239
|
meter: z.ZodOptional<z.ZodAny>;
|
|
230
|
-
}, z.
|
|
240
|
+
}, z.core.$strip>;
|
|
231
241
|
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
232
242
|
|
|
233
243
|
declare const AXIS_META_KEY = "axis:axis";
|
|
@@ -431,6 +441,7 @@ declare class IntentRouter {
|
|
|
431
441
|
private intentRequiredProof;
|
|
432
442
|
private publicIntents;
|
|
433
443
|
private anonymousIntents;
|
|
444
|
+
private authorizedIntents;
|
|
434
445
|
private intentRateLimits;
|
|
435
446
|
private cceHandlers;
|
|
436
447
|
private ccePipelineConfig;
|
|
@@ -461,6 +472,7 @@ declare class IntentRouter {
|
|
|
461
472
|
getRequiredProof(intent: string): RequiredProofKind[] | undefined;
|
|
462
473
|
isPublic(intent: string): boolean;
|
|
463
474
|
isAnonymous(intent: string): boolean;
|
|
475
|
+
isAuthorized(intent: string): boolean;
|
|
464
476
|
getRateLimit(intent: string): AxisRateLimitConfig | undefined;
|
|
465
477
|
private emitIntentObservers;
|
|
466
478
|
private runIntentSensors;
|
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-
|
|
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-
|
|
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-DypvaTKs.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-DypvaTKs.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-
|
|
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-
|
|
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-Dci5tlZE.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-Dci5tlZE.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';
|