@nextera.one/axis-server-sdk 1.4.0 → 1.5.0
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/core/index.d.mts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/{index-B5xzROld.d.mts → index-1uEwnW-w.d.mts} +1 -1
- package/dist/{index-B5xzROld.d.ts → index-1uEwnW-w.d.ts} +1 -1
- package/dist/index.d.mts +194 -171
- package/dist/index.d.ts +194 -171
- package/dist/index.js +849 -653
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +811 -635
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ModuleRef, DiscoveryService, MetadataScanner, Reflector } from '@nestjs/core';
|
|
2
|
-
import { A as AxisFrame$2 } from './index-
|
|
3
|
-
export { a as AxisBinaryFrame, b as
|
|
2
|
+
import { A as AxisFrame$2 } from './index-1uEwnW-w.js';
|
|
3
|
+
export { a as AxisBinaryFrame, b as AxisError, c as AxisFrameZ, d as computeReceiptHash, e as computeSignaturePayload, i as core, f as decodeFrame, g as encodeFrame, h as generateEd25519KeyPair, j as getSignTarget, s as sha256, k as signFrame, v as verifyFrameSignature } from './index-1uEwnW-w.js';
|
|
4
4
|
import { PROOF_LOOM, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT } from '@nextera.one/axis-protocol';
|
|
5
5
|
export { AXIS_MAGIC, AXIS_VERSION, TLV as AxisTlvType, BodyProfile, 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, ProofType, 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_PREV_HASH, TLV_PROOF_REF, TLV_PROOF_TYPE, TLV_REALM, TLV_RECEIPT_HASH, TLV_RID, TLV_SHA256_CHUNK, TLV_TRACE_ID, TLV_TS, TLV_UPLOAD_ID, decodeArray, decodeObject, decodeTLVs, decodeTLVsList, decodeVarint, encodeTLVs, encodeVarint, varintLength } from '@nextera.one/axis-protocol';
|
|
6
|
-
import * as z from 'zod';
|
|
7
6
|
import { OnModuleInit, OnApplicationBootstrap } from '@nestjs/common';
|
|
8
7
|
import { ConfigService } from '@nestjs/config';
|
|
8
|
+
import * as z from 'zod';
|
|
9
9
|
|
|
10
10
|
declare const HANDLER_METADATA_KEY = "axis:handler";
|
|
11
11
|
declare function Handler(intent?: string): ClassDecorator;
|
|
@@ -48,6 +48,16 @@ declare function IntentBody(decoder: (buf: Buffer) => any): MethodDecorator;
|
|
|
48
48
|
declare const INTENT_SENSORS_KEY = "axis:intent:sensors";
|
|
49
49
|
declare function IntentSensors(sensors: Function[]): MethodDecorator;
|
|
50
50
|
|
|
51
|
+
declare const HANDLER_SENSORS_KEY = "axis:handler:sensors";
|
|
52
|
+
declare function HandlerSensors(sensors: Function[]): ClassDecorator;
|
|
53
|
+
|
|
54
|
+
declare const SENSOR_METADATA_KEY = "axis:sensor";
|
|
55
|
+
type SensorPhase = 'PRE_DECODE' | 'POST_DECODE';
|
|
56
|
+
interface SensorOptions {
|
|
57
|
+
phase?: SensorPhase;
|
|
58
|
+
}
|
|
59
|
+
declare function Sensor(options?: SensorOptions): ClassDecorator;
|
|
60
|
+
|
|
51
61
|
declare const TLV_FIELDS_KEY = "axis:tlv:fields";
|
|
52
62
|
declare const TLV_VALIDATORS_KEY = "axis:tlv:validators";
|
|
53
63
|
type TlvFieldKind = 'utf8' | 'u64' | 'bytes' | 'bytes16' | 'bool' | 'obj' | 'arr';
|
|
@@ -108,15 +118,15 @@ declare abstract class AxisResponseDto extends AxisTlvDto {
|
|
|
108
118
|
interface IntentSchema$1 {
|
|
109
119
|
intent: string;
|
|
110
120
|
version: number;
|
|
111
|
-
bodyProfile:
|
|
121
|
+
bodyProfile: "TLV_MAP" | "RAW" | "TLV_OBJ" | "TLV_ARR";
|
|
112
122
|
fields: Array<{
|
|
113
123
|
name: string;
|
|
114
124
|
tlv: number;
|
|
115
|
-
kind: IntentTlvField[
|
|
125
|
+
kind: IntentTlvField["kind"];
|
|
116
126
|
required?: boolean;
|
|
117
127
|
maxLen?: number;
|
|
118
128
|
max?: string;
|
|
119
|
-
scope?:
|
|
129
|
+
scope?: "header" | "body";
|
|
120
130
|
}>;
|
|
121
131
|
}
|
|
122
132
|
interface AxisEffect {
|
|
@@ -152,11 +162,22 @@ declare class IntentRouter {
|
|
|
152
162
|
registerHandler(instance: any): void;
|
|
153
163
|
route(frame: AxisFrame$2): Promise<AxisEffect>;
|
|
154
164
|
private logIntent;
|
|
155
|
-
registerIntentMeta(intent: string, proto: object, methodName: string): void;
|
|
165
|
+
registerIntentMeta(intent: string, proto: object, methodName: string, handlerSensors?: Function[]): void;
|
|
156
166
|
private runIntentSensors;
|
|
157
167
|
private storeSchema;
|
|
158
168
|
}
|
|
159
169
|
|
|
170
|
+
declare const BAND: {
|
|
171
|
+
readonly WIRE: 0;
|
|
172
|
+
readonly IDENTITY: 40;
|
|
173
|
+
readonly POLICY: 90;
|
|
174
|
+
readonly CONTENT: 140;
|
|
175
|
+
readonly BUSINESS: 200;
|
|
176
|
+
readonly AUDIT: 900;
|
|
177
|
+
};
|
|
178
|
+
type SensorBand = keyof typeof BAND;
|
|
179
|
+
declare const PRE_DECODE_BOUNDARY = 40;
|
|
180
|
+
|
|
160
181
|
declare function stableJsonStringify(value: unknown): string;
|
|
161
182
|
|
|
162
183
|
interface ObservationStage {
|
|
@@ -1100,78 +1121,6 @@ declare class DiskUploadFileStore implements UploadFileStore {
|
|
|
1100
1121
|
createTempReadStream(fileId: string): NodeJS.ReadableStream;
|
|
1101
1122
|
}
|
|
1102
1123
|
|
|
1103
|
-
type ProofType$1 = 1 | 2 | 3 | 4;
|
|
1104
|
-
interface ProofVerificationResult {
|
|
1105
|
-
valid: boolean;
|
|
1106
|
-
actorId?: string;
|
|
1107
|
-
error?: string;
|
|
1108
|
-
metadata?: Record<string, any>;
|
|
1109
|
-
}
|
|
1110
|
-
interface MTLSContext {
|
|
1111
|
-
clientCertPem?: string;
|
|
1112
|
-
clientCertFingerprint?: string;
|
|
1113
|
-
clientCertSubject?: string;
|
|
1114
|
-
clientCertIssuer?: string;
|
|
1115
|
-
verified?: boolean;
|
|
1116
|
-
}
|
|
1117
|
-
interface DeviceSEContext {
|
|
1118
|
-
deviceId: string;
|
|
1119
|
-
signature: Uint8Array;
|
|
1120
|
-
publicKey: Uint8Array;
|
|
1121
|
-
challenge?: Uint8Array;
|
|
1122
|
-
}
|
|
1123
|
-
declare class ProofVerificationService {
|
|
1124
|
-
private readonly logger;
|
|
1125
|
-
private readonly deviceKeys;
|
|
1126
|
-
private readonly trustedCerts;
|
|
1127
|
-
verifyProof(proofType: ProofType$1, proofRef: Uint8Array, context: {
|
|
1128
|
-
signTarget?: Uint8Array;
|
|
1129
|
-
signature?: Uint8Array;
|
|
1130
|
-
mtls?: MTLSContext;
|
|
1131
|
-
deviceSE?: DeviceSEContext;
|
|
1132
|
-
}): Promise<ProofVerificationResult>;
|
|
1133
|
-
private verifyCapsuleProof;
|
|
1134
|
-
private verifyJWTProof;
|
|
1135
|
-
private verifyMTLSProof;
|
|
1136
|
-
private verifyDeviceSEProof;
|
|
1137
|
-
registerDeviceKey(deviceId: string, publicKey: Uint8Array): void;
|
|
1138
|
-
unregisterDevice(deviceId: string): boolean;
|
|
1139
|
-
registerMTLSCert(fingerprint: string, actorId: string): void;
|
|
1140
|
-
revokeMTLSCert(fingerprint: string): boolean;
|
|
1141
|
-
static calculateFingerprint(certPem: string): string;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
type index$8_ActorKeyRecord = ActorKeyRecord;
|
|
1145
|
-
type index$8_AxisCapsule = AxisCapsule;
|
|
1146
|
-
type index$8_AxisCapsuleConstraints = AxisCapsuleConstraints;
|
|
1147
|
-
type index$8_AxisCapsulePayload = AxisCapsulePayload;
|
|
1148
|
-
type index$8_CapsuleBatchBody = CapsuleBatchBody;
|
|
1149
|
-
type index$8_CapsuleBatchResult = CapsuleBatchResult;
|
|
1150
|
-
type index$8_CapsuleIssueBody = CapsuleIssueBody;
|
|
1151
|
-
type index$8_CapsuleIssueResult = CapsuleIssueResult;
|
|
1152
|
-
type index$8_CapsuleMode = CapsuleMode;
|
|
1153
|
-
type index$8_CapsuleRecord = CapsuleRecord;
|
|
1154
|
-
type index$8_CapsuleRevokeBody = CapsuleRevokeBody;
|
|
1155
|
-
type index$8_CapsuleStatus = CapsuleStatus;
|
|
1156
|
-
type index$8_DeviceSEContext = DeviceSEContext;
|
|
1157
|
-
type index$8_IntentExecBody = IntentExecBody;
|
|
1158
|
-
type index$8_IssuerKeyRecord = IssuerKeyRecord;
|
|
1159
|
-
type index$8_KeyStatus = KeyStatus;
|
|
1160
|
-
type index$8_MTLSContext = MTLSContext;
|
|
1161
|
-
type index$8_ProofVerificationResult = ProofVerificationResult;
|
|
1162
|
-
type index$8_ProofVerificationService = ProofVerificationService;
|
|
1163
|
-
declare const index$8_ProofVerificationService: typeof ProofVerificationService;
|
|
1164
|
-
type index$8_TickWindow = TickWindow;
|
|
1165
|
-
declare const index$8_b64urlDecode: typeof b64urlDecode;
|
|
1166
|
-
declare const index$8_b64urlDecodeString: typeof b64urlDecodeString;
|
|
1167
|
-
declare const index$8_b64urlEncode: typeof b64urlEncode;
|
|
1168
|
-
declare const index$8_b64urlEncodeString: typeof b64urlEncodeString;
|
|
1169
|
-
declare const index$8_canonicalJson: typeof canonicalJson;
|
|
1170
|
-
declare const index$8_canonicalJsonExcluding: typeof canonicalJsonExcluding;
|
|
1171
|
-
declare namespace index$8 {
|
|
1172
|
-
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 ProofType$1 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 };
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
1124
|
interface AxisRequestData {
|
|
1176
1125
|
raw: Buffer;
|
|
1177
1126
|
ip: string | undefined;
|
|
@@ -1184,53 +1133,40 @@ declare const AxisContext$1: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
|
1184
1133
|
declare const AxisDemoPubkey: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1185
1134
|
declare const AxisFrame: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1186
1135
|
|
|
1187
|
-
declare
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1136
|
+
declare class HandlerDiscoveryService implements OnModuleInit {
|
|
1137
|
+
private readonly discovery;
|
|
1138
|
+
private readonly scanner;
|
|
1139
|
+
private readonly router;
|
|
1140
|
+
private readonly logger;
|
|
1141
|
+
constructor(discovery: DiscoveryService, scanner: MetadataScanner, router: IntentRouter);
|
|
1142
|
+
onModuleInit(): void;
|
|
1191
1143
|
}
|
|
1192
|
-
declare function Sensor(options?: SensorOptions): ClassDecorator;
|
|
1193
1144
|
|
|
1194
|
-
declare
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
declare const index$7_TlvEnum: typeof TlvEnum;
|
|
1220
|
-
declare const index$7_TlvField: typeof TlvField;
|
|
1221
|
-
type index$7_TlvFieldKind = TlvFieldKind;
|
|
1222
|
-
type index$7_TlvFieldMeta = TlvFieldMeta;
|
|
1223
|
-
type index$7_TlvFieldOptions = TlvFieldOptions;
|
|
1224
|
-
declare const index$7_TlvMinLen: typeof TlvMinLen;
|
|
1225
|
-
declare const index$7_TlvRange: typeof TlvRange;
|
|
1226
|
-
declare const index$7_TlvUtf8Pattern: typeof TlvUtf8Pattern;
|
|
1227
|
-
declare const index$7_TlvValidate: typeof TlvValidate;
|
|
1228
|
-
type index$7_TlvValidatorFn = TlvValidatorFn;
|
|
1229
|
-
type index$7_TlvValidatorMeta = TlvValidatorMeta;
|
|
1230
|
-
declare const index$7_buildDtoDecoder: typeof buildDtoDecoder;
|
|
1231
|
-
declare const index$7_extractDtoSchema: typeof extractDtoSchema;
|
|
1232
|
-
declare namespace index$7 {
|
|
1233
|
-
export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, 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_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 };
|
|
1145
|
+
declare class SensorRegistry {
|
|
1146
|
+
private readonly configService;
|
|
1147
|
+
private sensors;
|
|
1148
|
+
private readonly logger;
|
|
1149
|
+
constructor(configService: ConfigService);
|
|
1150
|
+
register(sensor: AxisSensor): void;
|
|
1151
|
+
list(): AxisSensor[];
|
|
1152
|
+
getPreDecodeSensors(): AxisPreSensor[];
|
|
1153
|
+
getPostDecodeSensors(): AxisPostSensor[];
|
|
1154
|
+
private isPreDecodeSensor;
|
|
1155
|
+
private isPostDecodeSensor;
|
|
1156
|
+
getSensorCountByPhase(): {
|
|
1157
|
+
preDecodeCount: number;
|
|
1158
|
+
postDecodeCount: number;
|
|
1159
|
+
};
|
|
1160
|
+
clear(): void;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
declare class SensorDiscoveryService implements OnApplicationBootstrap {
|
|
1164
|
+
private readonly discovery;
|
|
1165
|
+
private readonly reflector;
|
|
1166
|
+
private readonly registry;
|
|
1167
|
+
private readonly logger;
|
|
1168
|
+
constructor(discovery: DiscoveryService, reflector: Reflector, registry: SensorRegistry);
|
|
1169
|
+
onApplicationBootstrap(): void;
|
|
1234
1170
|
}
|
|
1235
1171
|
|
|
1236
1172
|
declare const SensorDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1680,7 +1616,7 @@ declare const ChunkHashInputZ: z.ZodObject<{
|
|
|
1680
1616
|
intent: z.ZodString;
|
|
1681
1617
|
}, z.core.$strip>;
|
|
1682
1618
|
type ChunkHashInput = z.infer<typeof ChunkHashInputZ>;
|
|
1683
|
-
declare enum ProofType {
|
|
1619
|
+
declare enum ProofType$1 {
|
|
1684
1620
|
CAPSULE = 1,
|
|
1685
1621
|
JWT = 2,
|
|
1686
1622
|
MTLS_ID = 3,
|
|
@@ -1692,7 +1628,7 @@ declare const AxisContextZ: z.ZodObject<{
|
|
|
1692
1628
|
ts: z.ZodBigInt;
|
|
1693
1629
|
intent: z.ZodString;
|
|
1694
1630
|
actorId: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1695
|
-
proofType: z.ZodEnum<typeof ProofType>;
|
|
1631
|
+
proofType: z.ZodEnum<typeof ProofType$1>;
|
|
1696
1632
|
proofRef: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1697
1633
|
nonce: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1698
1634
|
ip: z.ZodString;
|
|
@@ -1751,51 +1687,135 @@ interface AxisDecoded {
|
|
|
1751
1687
|
observation: AxisObservation;
|
|
1752
1688
|
}
|
|
1753
1689
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1690
|
+
interface ChainResult {
|
|
1691
|
+
allowed: boolean;
|
|
1692
|
+
scoreDelta: number;
|
|
1693
|
+
statusCode: number;
|
|
1694
|
+
body?: string | Buffer | Uint8Array;
|
|
1695
|
+
headers?: Map<number, Uint8Array>;
|
|
1696
|
+
}
|
|
1697
|
+
declare class AxisSensorChainService {
|
|
1698
|
+
private readonly registry;
|
|
1699
|
+
constructor(registry: SensorRegistry);
|
|
1700
|
+
evaluate(input: SensorInput, phase?: 'PRE_DECODE' | 'POST_DECODE' | 'BOTH', baseDecision?: SensorDecision): Promise<SensorDecision>;
|
|
1701
|
+
evaluatePre(input: SensorInput): Promise<SensorDecision>;
|
|
1702
|
+
evaluatePost(input: SensorInput, baseDecision?: SensorDecision): Promise<SensorDecision>;
|
|
1703
|
+
private evaluateSensors;
|
|
1761
1704
|
}
|
|
1762
1705
|
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1706
|
+
type ProofType = 1 | 2 | 3 | 4;
|
|
1707
|
+
interface ProofVerificationResult {
|
|
1708
|
+
valid: boolean;
|
|
1709
|
+
actorId?: string;
|
|
1710
|
+
error?: string;
|
|
1711
|
+
metadata?: Record<string, any>;
|
|
1712
|
+
}
|
|
1713
|
+
interface MTLSContext {
|
|
1714
|
+
clientCertPem?: string;
|
|
1715
|
+
clientCertFingerprint?: string;
|
|
1716
|
+
clientCertSubject?: string;
|
|
1717
|
+
clientCertIssuer?: string;
|
|
1718
|
+
verified?: boolean;
|
|
1719
|
+
}
|
|
1720
|
+
interface DeviceSEContext {
|
|
1721
|
+
deviceId: string;
|
|
1722
|
+
signature: Uint8Array;
|
|
1723
|
+
publicKey: Uint8Array;
|
|
1724
|
+
challenge?: Uint8Array;
|
|
1725
|
+
}
|
|
1726
|
+
declare class ProofVerificationService {
|
|
1777
1727
|
private readonly logger;
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1728
|
+
private readonly deviceKeys;
|
|
1729
|
+
private readonly trustedCerts;
|
|
1730
|
+
verifyProof(proofType: ProofType, proofRef: Uint8Array, context: {
|
|
1731
|
+
signTarget?: Uint8Array;
|
|
1732
|
+
signature?: Uint8Array;
|
|
1733
|
+
mtls?: MTLSContext;
|
|
1734
|
+
deviceSE?: DeviceSEContext;
|
|
1735
|
+
}): Promise<ProofVerificationResult>;
|
|
1736
|
+
private verifyCapsuleProof;
|
|
1737
|
+
private verifyJWTProof;
|
|
1738
|
+
private verifyMTLSProof;
|
|
1739
|
+
private verifyDeviceSEProof;
|
|
1740
|
+
registerDeviceKey(deviceId: string, publicKey: Uint8Array): void;
|
|
1741
|
+
unregisterDevice(deviceId: string): boolean;
|
|
1742
|
+
registerMTLSCert(fingerprint: string, actorId: string): void;
|
|
1743
|
+
revokeMTLSCert(fingerprint: string): boolean;
|
|
1744
|
+
static calculateFingerprint(certPem: string): string;
|
|
1790
1745
|
}
|
|
1791
1746
|
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1747
|
+
type index$8_ActorKeyRecord = ActorKeyRecord;
|
|
1748
|
+
type index$8_AxisCapsule = AxisCapsule;
|
|
1749
|
+
type index$8_AxisCapsuleConstraints = AxisCapsuleConstraints;
|
|
1750
|
+
type index$8_AxisCapsulePayload = AxisCapsulePayload;
|
|
1751
|
+
type index$8_CapsuleBatchBody = CapsuleBatchBody;
|
|
1752
|
+
type index$8_CapsuleBatchResult = CapsuleBatchResult;
|
|
1753
|
+
type index$8_CapsuleIssueBody = CapsuleIssueBody;
|
|
1754
|
+
type index$8_CapsuleIssueResult = CapsuleIssueResult;
|
|
1755
|
+
type index$8_CapsuleMode = CapsuleMode;
|
|
1756
|
+
type index$8_CapsuleRecord = CapsuleRecord;
|
|
1757
|
+
type index$8_CapsuleRevokeBody = CapsuleRevokeBody;
|
|
1758
|
+
type index$8_CapsuleStatus = CapsuleStatus;
|
|
1759
|
+
type index$8_DeviceSEContext = DeviceSEContext;
|
|
1760
|
+
type index$8_IntentExecBody = IntentExecBody;
|
|
1761
|
+
type index$8_IssuerKeyRecord = IssuerKeyRecord;
|
|
1762
|
+
type index$8_KeyStatus = KeyStatus;
|
|
1763
|
+
type index$8_MTLSContext = MTLSContext;
|
|
1764
|
+
type index$8_ProofType = ProofType;
|
|
1765
|
+
type index$8_ProofVerificationResult = ProofVerificationResult;
|
|
1766
|
+
type index$8_ProofVerificationService = ProofVerificationService;
|
|
1767
|
+
declare const index$8_ProofVerificationService: typeof ProofVerificationService;
|
|
1768
|
+
type index$8_TickWindow = TickWindow;
|
|
1769
|
+
declare const index$8_b64urlDecode: typeof b64urlDecode;
|
|
1770
|
+
declare const index$8_b64urlDecodeString: typeof b64urlDecodeString;
|
|
1771
|
+
declare const index$8_b64urlEncode: typeof b64urlEncode;
|
|
1772
|
+
declare const index$8_b64urlEncodeString: typeof b64urlEncodeString;
|
|
1773
|
+
declare const index$8_canonicalJson: typeof canonicalJson;
|
|
1774
|
+
declare const index$8_canonicalJsonExcluding: typeof canonicalJsonExcluding;
|
|
1775
|
+
declare namespace index$8 {
|
|
1776
|
+
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 };
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
declare const index$7_AxisDemoPubkey: typeof AxisDemoPubkey;
|
|
1780
|
+
declare const index$7_AxisFrame: typeof AxisFrame;
|
|
1781
|
+
declare const index$7_AxisIp: typeof AxisIp;
|
|
1782
|
+
declare const index$7_AxisRaw: typeof AxisRaw;
|
|
1783
|
+
type index$7_AxisRequestData = AxisRequestData;
|
|
1784
|
+
type index$7_DtoSchema = DtoSchema;
|
|
1785
|
+
declare const index$7_HANDLER_METADATA_KEY: typeof HANDLER_METADATA_KEY;
|
|
1786
|
+
declare const index$7_Handler: typeof Handler;
|
|
1787
|
+
declare const index$7_INTENT_BODY_KEY: typeof INTENT_BODY_KEY;
|
|
1788
|
+
declare const index$7_INTENT_METADATA_KEY: typeof INTENT_METADATA_KEY;
|
|
1789
|
+
declare const index$7_INTENT_ROUTES_KEY: typeof INTENT_ROUTES_KEY;
|
|
1790
|
+
declare const index$7_INTENT_SENSORS_KEY: typeof INTENT_SENSORS_KEY;
|
|
1791
|
+
declare const index$7_Intent: typeof Intent;
|
|
1792
|
+
declare const index$7_IntentBody: typeof IntentBody;
|
|
1793
|
+
type index$7_IntentKind = IntentKind;
|
|
1794
|
+
type index$7_IntentOptions = IntentOptions;
|
|
1795
|
+
type index$7_IntentRoute = IntentRoute;
|
|
1796
|
+
declare const index$7_IntentSensors: typeof IntentSensors;
|
|
1797
|
+
type index$7_IntentTlvField = IntentTlvField;
|
|
1798
|
+
declare const index$7_SENSOR_METADATA_KEY: typeof SENSOR_METADATA_KEY;
|
|
1799
|
+
declare const index$7_Sensor: typeof Sensor;
|
|
1800
|
+
type index$7_SensorOptions = SensorOptions;
|
|
1801
|
+
type index$7_SensorPhase = SensorPhase;
|
|
1802
|
+
declare const index$7_TLV_FIELDS_KEY: typeof TLV_FIELDS_KEY;
|
|
1803
|
+
declare const index$7_TLV_VALIDATORS_KEY: typeof TLV_VALIDATORS_KEY;
|
|
1804
|
+
declare const index$7_TlvEnum: typeof TlvEnum;
|
|
1805
|
+
declare const index$7_TlvField: typeof TlvField;
|
|
1806
|
+
type index$7_TlvFieldKind = TlvFieldKind;
|
|
1807
|
+
type index$7_TlvFieldMeta = TlvFieldMeta;
|
|
1808
|
+
type index$7_TlvFieldOptions = TlvFieldOptions;
|
|
1809
|
+
declare const index$7_TlvMinLen: typeof TlvMinLen;
|
|
1810
|
+
declare const index$7_TlvRange: typeof TlvRange;
|
|
1811
|
+
declare const index$7_TlvUtf8Pattern: typeof TlvUtf8Pattern;
|
|
1812
|
+
declare const index$7_TlvValidate: typeof TlvValidate;
|
|
1813
|
+
type index$7_TlvValidatorFn = TlvValidatorFn;
|
|
1814
|
+
type index$7_TlvValidatorMeta = TlvValidatorMeta;
|
|
1815
|
+
declare const index$7_buildDtoDecoder: typeof buildDtoDecoder;
|
|
1816
|
+
declare const index$7_extractDtoSchema: typeof extractDtoSchema;
|
|
1817
|
+
declare namespace index$7 {
|
|
1818
|
+
export { AxisContext$1 as AxisContext, index$7_AxisDemoPubkey as AxisDemoPubkey, index$7_AxisFrame as AxisFrame, index$7_AxisIp as AxisIp, index$7_AxisRaw as AxisRaw, type index$7_AxisRequestData as AxisRequestData, 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_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 };
|
|
1799
1819
|
}
|
|
1800
1820
|
|
|
1801
1821
|
type index$6_ObservationQueueConfig = ObservationQueueConfig;
|
|
@@ -2084,8 +2104,6 @@ type index$3_ProofKind = ProofKind;
|
|
|
2084
2104
|
declare const index$3_ProofKindZ: typeof ProofKindZ;
|
|
2085
2105
|
type index$3_ProofPresenceInput = ProofPresenceInput;
|
|
2086
2106
|
declare const index$3_ProofPresenceInputZ: typeof ProofPresenceInputZ;
|
|
2087
|
-
type index$3_ProofType = ProofType;
|
|
2088
|
-
declare const index$3_ProofType: typeof ProofType;
|
|
2089
2107
|
type index$3_ProtocolStrictInput = ProtocolStrictInput;
|
|
2090
2108
|
declare const index$3_ProtocolStrictInputZ: typeof ProtocolStrictInputZ;
|
|
2091
2109
|
type index$3_RateLimitConfig = RateLimitConfig;
|
|
@@ -2121,18 +2139,23 @@ declare const index$3_WsHandshakeDecisionZ: typeof WsHandshakeDecisionZ;
|
|
|
2121
2139
|
type index$3_WsHandshakeInput = WsHandshakeInput;
|
|
2122
2140
|
declare const index$3_WsHandshakeInputZ: typeof WsHandshakeInputZ;
|
|
2123
2141
|
declare namespace index$3 {
|
|
2124
|
-
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,
|
|
2142
|
+
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 };
|
|
2125
2143
|
}
|
|
2126
2144
|
|
|
2145
|
+
type index$2_AxisSensorChainService = AxisSensorChainService;
|
|
2146
|
+
declare const index$2_AxisSensorChainService: typeof AxisSensorChainService;
|
|
2127
2147
|
declare const index$2_CAPABILITIES: typeof CAPABILITIES;
|
|
2128
2148
|
type index$2_Capability = Capability;
|
|
2149
|
+
type index$2_ChainResult = ChainResult;
|
|
2129
2150
|
declare const index$2_INTENT_REQUIREMENTS: typeof INTENT_REQUIREMENTS;
|
|
2130
2151
|
declare const index$2_PROOF_CAPABILITIES: typeof PROOF_CAPABILITIES;
|
|
2152
|
+
type index$2_SensorDecision = SensorDecision;
|
|
2153
|
+
type index$2_SensorInput = SensorInput;
|
|
2131
2154
|
declare const index$2_canAccessResource: typeof canAccessResource;
|
|
2132
2155
|
declare const index$2_hasScope: typeof hasScope;
|
|
2133
2156
|
declare const index$2_parseScope: typeof parseScope;
|
|
2134
2157
|
declare namespace index$2 {
|
|
2135
|
-
export { index$2_CAPABILITIES as CAPABILITIES, type index$2_Capability as Capability, index$2_INTENT_REQUIREMENTS as INTENT_REQUIREMENTS, index$2_PROOF_CAPABILITIES as PROOF_CAPABILITIES, index$2_canAccessResource as canAccessResource, index$2_hasScope as hasScope, index$2_parseScope as parseScope };
|
|
2158
|
+
export { index$2_AxisSensorChainService as AxisSensorChainService, index$2_CAPABILITIES as CAPABILITIES, type index$2_Capability as Capability, type index$2_ChainResult as ChainResult, index$2_INTENT_REQUIREMENTS as INTENT_REQUIREMENTS, index$2_PROOF_CAPABILITIES as PROOF_CAPABILITIES, type index$2_SensorDecision as SensorDecision, type index$2_SensorInput as SensorInput, index$2_canAccessResource as canAccessResource, index$2_hasScope as hasScope, index$2_parseScope as parseScope };
|
|
2136
2159
|
}
|
|
2137
2160
|
|
|
2138
2161
|
declare class AccessProfileResolverSensor implements AxisSensor {
|
|
@@ -2353,4 +2376,4 @@ declare namespace index {
|
|
|
2353
2376
|
export { index_encodeAxisTlvDto as encodeAxisTlvDto };
|
|
2354
2377
|
}
|
|
2355
2378
|
|
|
2356
|
-
export { ATS1_HDR, ATS1_SCHEMA, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, type Axis1DecodedFrame, type Axis1FrameToEncode, type AxisAlg$1 as AxisAlg, type AxisPacket as AxisBinaryPacket, type AxisCapsule, type AxisCapsuleConstraints, type AxisCapsulePayload, type AxisCrudHandler, type AxisEffect, AxisFilesDownloadHandler, AxisFilesFinalizeHandler, AxisFrame$2 as AxisFrame, type AxisHandler, type AxisHandlerInit, AxisIdDto, type AxisAlg as AxisJsonAlg, type AxisFrame$1 as AxisJsonFrame, type AxisResponse as AxisJsonResponse, type AxisSig as AxisJsonSig, type AxisObservedContext, type AxisPacket$1 as AxisPacket, T as AxisPacketTags, AxisPartialType, type AxisPostSensor, type AxisPreSensor, type AxisRequestContext, AxisResponseDto, type AxisSensor, type AxisSensorInit, type AxisSig$1 as AxisSig, AxisTlvDto, CAPABILITIES, type Capability, type CapsuleMode, ContractViolationError, DEFAULT_CONTRACTS, DEFAULT_TIMEOUT, Decision, DiskUploadFileStore, type DtoSchema, type ExecutionContract, ExecutionMeter, type ExecutionMetrics, FALLBACK_CONTRACT, HANDLER_METADATA_KEY, Handler, INTENT_BODY_KEY, INTENT_METADATA_KEY, INTENT_REQUIREMENTS, INTENT_ROUTES_KEY, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, Intent, IntentBody, type IntentDefinition, type IntentKind, type IntentOptions, type IntentRoute, IntentRouter, IntentSensitivity, IntentSensors, type IntentTlvField, type KeyStatus, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationStreamEntry, type ObservationWitnessSummary, type ObserverVerdict, PROOF_CAPABILITIES, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, type ResponseObserverContext, RiskDecision, type RiskEvaluation, type RiskSignal, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, type SensorDecision, SensorDecisions, type SensorInput, type SensorMinifiedDecision, type SensorPhaseMetadata, TLV_FIELDS_KEY, TLV_VALIDATORS_KEY, TlvEnum, TlvField, type TlvFieldKind, type TlvFieldMeta, type TlvFieldOptions, TlvMinLen, TlvRange, TlvUtf8Pattern, TlvValidate, type TlvValidatorFn, type TlvValidatorMeta, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, axis1SigningBytes, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, index$8 as crypto, decodeAxis1Frame, decodeQueueMessage, index$7 as decorators, encVarint, encodeAxis1Frame, encodeQueueMessage, index$5 as engine, extractDtoSchema, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isTimestampValid, index$4 as loom, nonce16, normalizeSensorDecision, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, resolveTimeout, index$3 as schemas, index$2 as security, sensitivityName, index$1 as sensors, stableJsonStringify, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, utf8, index as utils, validateFrameShape, varintU, verifyResponse };
|
|
2379
|
+
export { ATS1_HDR, ATS1_SCHEMA, AXIS_OPCODES, AXIS_UPLOAD_FILE_STORE, AXIS_UPLOAD_RECEIPT_SIGNER, AXIS_UPLOAD_SESSION_STORE, ats1 as Ats1Codec, type Axis1DecodedFrame, type Axis1FrameToEncode, type AxisAlg$1 as AxisAlg, type AxisPacket as AxisBinaryPacket, type AxisCapsule, type AxisCapsuleConstraints, type AxisCapsulePayload, AxisContext$1 as AxisContext, type AxisCrudHandler, type AxisDecoded, AxisDemoPubkey, type AxisEffect, AxisFilesDownloadHandler, AxisFilesFinalizeHandler, AxisFrame$2 as AxisFrame, type AxisHandler, type AxisHandlerInit, AxisIdDto, AxisIp, type AxisAlg as AxisJsonAlg, type AxisFrame$1 as AxisJsonFrame, type AxisResponse as AxisJsonResponse, type AxisSig as AxisJsonSig, type AxisObservation, type AxisObservedContext, type AxisPacket$1 as AxisPacket, T as AxisPacketTags, AxisPartialType, type AxisPostSensor, type AxisPreSensor, AxisRaw, type AxisRequestContext, type AxisRequestData, AxisResponseDto, type AxisSensor, AxisSensorChainService, type AxisSensorInit, type AxisSig$1 as AxisSig, AxisTlvDto, BAND, CAPABILITIES, type Capability, type CapsuleMode, type ChainResult, ContractViolationError, DEFAULT_CONTRACTS, DEFAULT_TIMEOUT, Decision, DiskUploadFileStore, type DtoSchema, type ExecutionContract, ExecutionMeter, type ExecutionMetrics, FALLBACK_CONTRACT, HANDLER_METADATA_KEY, HANDLER_SENSORS_KEY, Handler, HandlerDiscoveryService, HandlerSensors, INTENT_BODY_KEY, INTENT_METADATA_KEY, INTENT_REQUIREMENTS, INTENT_ROUTES_KEY, INTENT_SENSITIVITY_MAP, INTENT_SENSORS_KEY, INTENT_TIMEOUTS, Intent, IntentBody, type IntentDefinition, type IntentKind, type IntentOptions, type IntentRoute, IntentRouter, IntentSensitivity, IntentSensors, type IntentTlvField, type KeyStatus, type ObservationQueueConfig, type ObservationQueueMessage, type ObservationSensor, type ObservationStage, type ObservationStreamEntry, type ObservationWitnessSummary, type ObserverVerdict, PRE_DECODE_BOUNDARY, PROOF_CAPABILITIES, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, type ResponseContract, type ResponseObserverContext, RiskDecision, type RiskEvaluation, type RiskSignal, SENSOR_METADATA_KEY, Schema2002_PasskeyLoginOptionsRes, Schema2011_PasskeyLoginVerifyReq, Schema2012_PasskeyLoginVerifyRes, Schema2021_PasskeyRegisterOptionsReq, Sensor, type SensorBand, type SensorDecision, SensorDecisions, SensorDiscoveryService, type SensorInput, type SensorMinifiedDecision, type SensorOptions, type SensorPhase, type SensorPhaseMetadata, SensorRegistry, TLV_FIELDS_KEY, TLV_VALIDATORS_KEY, TlvEnum, TlvField, type TlvFieldKind, type TlvFieldMeta, type TlvFieldOptions, TlvMinLen, TlvRange, TlvUtf8Pattern, TlvValidate, type TlvValidatorFn, type TlvValidatorMeta, type UnsignedObservationWitness, type UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, axis1SigningBytes, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildQueueMessage, buildReceiptHash, buildTLVs, buildUnsignedWitness, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, canonicalizeObservation, classifyIntent, createObservation, index$8 as crypto, decodeAxis1Frame, decodeQueueMessage, index$7 as decorators, encVarint, encodeAxis1Frame, encodeQueueMessage, endStage, index$5 as engine, extractDtoSchema, finalizeObservation, hasScope, hashObservation, isAdminOpcode, isKnownOpcode, isTimestampValid, index$4 as loom, nonce16, normalizeSensorDecision, packPasskeyLoginOptionsReq, packPasskeyLoginOptionsRes, packPasskeyLoginVerifyReq, packPasskeyLoginVerifyRes, packPasskeyRegisterOptionsReq, parseAutoClaimEntries, parseScope, parseStreamEntries, recordSensor, resolveTimeout, index$3 as schemas, index$2 as security, sensitivityName, index$1 as sensors, stableJsonStringify, startStage, tlv, u64be, unpackPasskeyLoginOptionsReq, unpackPasskeyLoginVerifyReq, unpackPasskeyRegisterOptionsReq, utf8, index as utils, validateFrameShape, varintU, verifyResponse };
|