@nextera.one/axis-server-sdk 1.3.0 → 1.4.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/README.md +25 -0
- package/dist/index.d.mts +207 -111
- package/dist/index.d.ts +207 -111
- package/dist/index.js +252 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +237 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,8 +13,27 @@ npm install @nextera.one/axis-server-sdk
|
|
|
13
13
|
Peer dependencies:
|
|
14
14
|
|
|
15
15
|
- `@nestjs/common`
|
|
16
|
+
- `@nestjs/config`
|
|
16
17
|
- `reflect-metadata`
|
|
17
18
|
|
|
19
|
+
## Release Surface
|
|
20
|
+
|
|
21
|
+
The `1.3.0` release folds the backend server runtime namespaces that previously lived in temporary internal package shells into this published package.
|
|
22
|
+
|
|
23
|
+
Added grouped runtime namespaces:
|
|
24
|
+
|
|
25
|
+
- `core`
|
|
26
|
+
- `crypto`
|
|
27
|
+
- `decorators`
|
|
28
|
+
- `engine`
|
|
29
|
+
- `loom`
|
|
30
|
+
- `schemas`
|
|
31
|
+
- `security`
|
|
32
|
+
- `sensors`
|
|
33
|
+
- `utils`
|
|
34
|
+
|
|
35
|
+
It also exposes the `axis-generate-keys` CLI through the package `bin` entry for local key generation workflows.
|
|
36
|
+
|
|
18
37
|
## What It Exposes
|
|
19
38
|
|
|
20
39
|
Root exports are split into two groups:
|
|
@@ -22,6 +41,12 @@ Root exports are split into two groups:
|
|
|
22
41
|
- Server runtime helpers: `@Handler`, `@Intent`, `IntentRouter`, handler interfaces, sensor interfaces.
|
|
23
42
|
- Shared protocol primitives: binary frame codecs, TLV/varint/constants, binary signature helpers, codec utilities, packet types.
|
|
24
43
|
|
|
44
|
+
You can also import the grouped namespaces directly from the package root:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { core, crypto, engine, sensors } from '@nextera.one/axis-server-sdk';
|
|
48
|
+
```
|
|
49
|
+
|
|
25
50
|
## Shared Core API
|
|
26
51
|
|
|
27
52
|
The canonical cross-SDK protocol layer is the `./core` subpath:
|
package/dist/index.d.mts
CHANGED
|
@@ -157,6 +157,120 @@ declare class IntentRouter {
|
|
|
157
157
|
private storeSchema;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
declare function stableJsonStringify(value: unknown): string;
|
|
161
|
+
|
|
162
|
+
interface ObservationStage {
|
|
163
|
+
name: string;
|
|
164
|
+
status: 'ok' | 'fail' | 'skip';
|
|
165
|
+
startMs: number;
|
|
166
|
+
endMs?: number;
|
|
167
|
+
durationMs?: number;
|
|
168
|
+
reason?: string;
|
|
169
|
+
code?: string;
|
|
170
|
+
}
|
|
171
|
+
interface ObservationSensor {
|
|
172
|
+
name: string;
|
|
173
|
+
allowed: boolean;
|
|
174
|
+
riskScore: number;
|
|
175
|
+
durationMs: number;
|
|
176
|
+
reasons: string[];
|
|
177
|
+
code?: string;
|
|
178
|
+
}
|
|
179
|
+
interface AxisObservation {
|
|
180
|
+
id: string;
|
|
181
|
+
startMs: number;
|
|
182
|
+
transport: 'http' | 'ws';
|
|
183
|
+
ip?: string;
|
|
184
|
+
intent?: string;
|
|
185
|
+
actorId?: string;
|
|
186
|
+
capsuleId?: string;
|
|
187
|
+
stages: ObservationStage[];
|
|
188
|
+
sensors: ObservationSensor[];
|
|
189
|
+
decision?: 'ALLOW' | 'DENY';
|
|
190
|
+
resultCode?: string;
|
|
191
|
+
statusCode?: number;
|
|
192
|
+
endMs?: number;
|
|
193
|
+
durationMs?: number;
|
|
194
|
+
facts: Record<string, unknown>;
|
|
195
|
+
}
|
|
196
|
+
declare function createObservation(transport: 'http' | 'ws', ip?: string): AxisObservation;
|
|
197
|
+
declare function startStage(obs: AxisObservation, name: string): ObservationStage;
|
|
198
|
+
declare function endStage(stage: ObservationStage, status?: 'ok' | 'fail' | 'skip', reason?: string, code?: string): void;
|
|
199
|
+
declare function recordSensor(obs: AxisObservation, name: string, allowed: boolean, riskScore: number, durationMs: number, reasons: string[], code?: string): void;
|
|
200
|
+
declare function finalizeObservation(obs: AxisObservation, decision: 'ALLOW' | 'DENY', statusCode: number, resultCode?: string): void;
|
|
201
|
+
|
|
202
|
+
interface ObservationQueueMessage {
|
|
203
|
+
v: 1;
|
|
204
|
+
observation: AxisObservation;
|
|
205
|
+
attempts: number;
|
|
206
|
+
firstEnqueuedAt: number;
|
|
207
|
+
lastEnqueuedAt: number;
|
|
208
|
+
sourceNodeId: string;
|
|
209
|
+
lastError?: string;
|
|
210
|
+
}
|
|
211
|
+
interface ObservationQueueConfig {
|
|
212
|
+
enabled: boolean;
|
|
213
|
+
workerEnabled: boolean;
|
|
214
|
+
streamKey: string;
|
|
215
|
+
deadLetterStreamKey: string;
|
|
216
|
+
groupName: string;
|
|
217
|
+
consumerName: string;
|
|
218
|
+
readBlockMs: number;
|
|
219
|
+
readBatchSize: number;
|
|
220
|
+
reclaimIdleMs: number;
|
|
221
|
+
reclaimBatchSize: number;
|
|
222
|
+
maxRetries: number;
|
|
223
|
+
maxStreamLength: number;
|
|
224
|
+
workerConcurrency: number;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface ObservationStreamEntry {
|
|
228
|
+
id: string;
|
|
229
|
+
message: ObservationQueueMessage;
|
|
230
|
+
}
|
|
231
|
+
declare function buildQueueMessage(observation: AxisObservation, sourceNodeId: string, previous?: ObservationQueueMessage, lastError?: string): ObservationQueueMessage;
|
|
232
|
+
declare function encodeQueueMessage(message: ObservationQueueMessage): string;
|
|
233
|
+
declare function decodeQueueMessage(raw: string): ObservationQueueMessage | null;
|
|
234
|
+
declare function parseStreamEntries(raw: any): ObservationStreamEntry[];
|
|
235
|
+
declare function parseAutoClaimEntries(raw: any): ObservationStreamEntry[];
|
|
236
|
+
|
|
237
|
+
interface ObservationWitnessSummary {
|
|
238
|
+
intent?: string;
|
|
239
|
+
actorId?: string;
|
|
240
|
+
decision?: string;
|
|
241
|
+
statusCode?: number;
|
|
242
|
+
durationMs?: number;
|
|
243
|
+
sensorCount: number;
|
|
244
|
+
stageCount: number;
|
|
245
|
+
}
|
|
246
|
+
interface UnsignedObservationWitness {
|
|
247
|
+
v: 1;
|
|
248
|
+
observationId: string;
|
|
249
|
+
payloadHash: string;
|
|
250
|
+
sealedAt: number;
|
|
251
|
+
summary: ObservationWitnessSummary;
|
|
252
|
+
}
|
|
253
|
+
declare function canonicalizeObservation(obs: AxisObservation): string;
|
|
254
|
+
declare function hashObservation(obs: AxisObservation): string;
|
|
255
|
+
declare function buildUnsignedWitness(obs: AxisObservation): UnsignedObservationWitness | null;
|
|
256
|
+
|
|
257
|
+
interface ResponseObserverContext {
|
|
258
|
+
actorId: string;
|
|
259
|
+
intent: string;
|
|
260
|
+
}
|
|
261
|
+
interface ResponseContract {
|
|
262
|
+
ok: boolean;
|
|
263
|
+
effect: string;
|
|
264
|
+
body?: Uint8Array;
|
|
265
|
+
headers?: Map<number, Uint8Array>;
|
|
266
|
+
}
|
|
267
|
+
interface ObserverVerdict {
|
|
268
|
+
passed: boolean;
|
|
269
|
+
code?: string;
|
|
270
|
+
reason?: string;
|
|
271
|
+
}
|
|
272
|
+
declare function verifyResponse(ctx: ResponseObserverContext, response: ResponseContract): ObserverVerdict;
|
|
273
|
+
|
|
160
274
|
declare const ATS1_HDR: {
|
|
161
275
|
readonly INTENT_ID: 1;
|
|
162
276
|
readonly ACTOR_KEY_ID: 2;
|
|
@@ -1027,35 +1141,35 @@ declare class ProofVerificationService {
|
|
|
1027
1141
|
static calculateFingerprint(certPem: string): string;
|
|
1028
1142
|
}
|
|
1029
1143
|
|
|
1030
|
-
type index$
|
|
1031
|
-
type index$
|
|
1032
|
-
type index$
|
|
1033
|
-
type index$
|
|
1034
|
-
type index$
|
|
1035
|
-
type index$
|
|
1036
|
-
type index$
|
|
1037
|
-
type index$
|
|
1038
|
-
type index$
|
|
1039
|
-
type index$
|
|
1040
|
-
type index$
|
|
1041
|
-
type index$
|
|
1042
|
-
type index$
|
|
1043
|
-
type index$
|
|
1044
|
-
type index$
|
|
1045
|
-
type index$
|
|
1046
|
-
type index$
|
|
1047
|
-
type index$
|
|
1048
|
-
type index$
|
|
1049
|
-
declare const index$
|
|
1050
|
-
type index$
|
|
1051
|
-
declare const index$
|
|
1052
|
-
declare const index$
|
|
1053
|
-
declare const index$
|
|
1054
|
-
declare const index$
|
|
1055
|
-
declare const index$
|
|
1056
|
-
declare const index$
|
|
1057
|
-
declare namespace index$
|
|
1058
|
-
export { type index$
|
|
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 };
|
|
1059
1173
|
}
|
|
1060
1174
|
|
|
1061
1175
|
interface AxisRequestData {
|
|
@@ -1077,46 +1191,46 @@ interface SensorOptions {
|
|
|
1077
1191
|
}
|
|
1078
1192
|
declare function Sensor(options?: SensorOptions): ClassDecorator;
|
|
1079
1193
|
|
|
1080
|
-
declare const index$
|
|
1081
|
-
declare const index$
|
|
1082
|
-
declare const index$
|
|
1083
|
-
declare const index$
|
|
1084
|
-
type index$
|
|
1085
|
-
type index$
|
|
1086
|
-
declare const index$
|
|
1087
|
-
declare const index$
|
|
1088
|
-
declare const index$
|
|
1089
|
-
declare const index$
|
|
1090
|
-
declare const index$
|
|
1091
|
-
declare const index$
|
|
1092
|
-
declare const index$
|
|
1093
|
-
declare const index$
|
|
1094
|
-
type index$
|
|
1095
|
-
type index$
|
|
1096
|
-
type index$
|
|
1097
|
-
declare const index$
|
|
1098
|
-
type index$
|
|
1099
|
-
declare const index$
|
|
1100
|
-
declare const index$
|
|
1101
|
-
type index$
|
|
1102
|
-
type index$
|
|
1103
|
-
declare const index$
|
|
1104
|
-
declare const index$
|
|
1105
|
-
declare const index$
|
|
1106
|
-
declare const index$
|
|
1107
|
-
type index$
|
|
1108
|
-
type index$
|
|
1109
|
-
type index$
|
|
1110
|
-
declare const index$
|
|
1111
|
-
declare const index$
|
|
1112
|
-
declare const index$
|
|
1113
|
-
declare const index$
|
|
1114
|
-
type index$
|
|
1115
|
-
type index$
|
|
1116
|
-
declare const index$
|
|
1117
|
-
declare const index$
|
|
1118
|
-
declare namespace index$
|
|
1119
|
-
export { AxisContext$1 as AxisContext, index$
|
|
1194
|
+
declare const index$7_AxisDemoPubkey: typeof AxisDemoPubkey;
|
|
1195
|
+
declare const index$7_AxisFrame: typeof AxisFrame;
|
|
1196
|
+
declare const index$7_AxisIp: typeof AxisIp;
|
|
1197
|
+
declare const index$7_AxisRaw: typeof AxisRaw;
|
|
1198
|
+
type index$7_AxisRequestData = AxisRequestData;
|
|
1199
|
+
type index$7_DtoSchema = DtoSchema;
|
|
1200
|
+
declare const index$7_HANDLER_METADATA_KEY: typeof HANDLER_METADATA_KEY;
|
|
1201
|
+
declare const index$7_Handler: typeof Handler;
|
|
1202
|
+
declare const index$7_INTENT_BODY_KEY: typeof INTENT_BODY_KEY;
|
|
1203
|
+
declare const index$7_INTENT_METADATA_KEY: typeof INTENT_METADATA_KEY;
|
|
1204
|
+
declare const index$7_INTENT_ROUTES_KEY: typeof INTENT_ROUTES_KEY;
|
|
1205
|
+
declare const index$7_INTENT_SENSORS_KEY: typeof INTENT_SENSORS_KEY;
|
|
1206
|
+
declare const index$7_Intent: typeof Intent;
|
|
1207
|
+
declare const index$7_IntentBody: typeof IntentBody;
|
|
1208
|
+
type index$7_IntentKind = IntentKind;
|
|
1209
|
+
type index$7_IntentOptions = IntentOptions;
|
|
1210
|
+
type index$7_IntentRoute = IntentRoute;
|
|
1211
|
+
declare const index$7_IntentSensors: typeof IntentSensors;
|
|
1212
|
+
type index$7_IntentTlvField = IntentTlvField;
|
|
1213
|
+
declare const index$7_SENSOR_METADATA_KEY: typeof SENSOR_METADATA_KEY;
|
|
1214
|
+
declare const index$7_Sensor: typeof Sensor;
|
|
1215
|
+
type index$7_SensorOptions = SensorOptions;
|
|
1216
|
+
type index$7_SensorPhase = SensorPhase;
|
|
1217
|
+
declare const index$7_TLV_FIELDS_KEY: typeof TLV_FIELDS_KEY;
|
|
1218
|
+
declare const index$7_TLV_VALIDATORS_KEY: typeof TLV_VALIDATORS_KEY;
|
|
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 };
|
|
1120
1234
|
}
|
|
1121
1235
|
|
|
1122
1236
|
declare const SensorDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -1623,46 +1737,6 @@ declare const AxisErrorZ: z.ZodObject<{
|
|
|
1623
1737
|
}, z.core.$strip>;
|
|
1624
1738
|
type AxisError = z.infer<typeof AxisErrorZ>;
|
|
1625
1739
|
|
|
1626
|
-
interface ObservationStage {
|
|
1627
|
-
name: string;
|
|
1628
|
-
status: 'ok' | 'fail' | 'skip';
|
|
1629
|
-
startMs: number;
|
|
1630
|
-
endMs?: number;
|
|
1631
|
-
durationMs?: number;
|
|
1632
|
-
reason?: string;
|
|
1633
|
-
code?: string;
|
|
1634
|
-
}
|
|
1635
|
-
interface ObservationSensor {
|
|
1636
|
-
name: string;
|
|
1637
|
-
allowed: boolean;
|
|
1638
|
-
riskScore: number;
|
|
1639
|
-
durationMs: number;
|
|
1640
|
-
reasons: string[];
|
|
1641
|
-
code?: string;
|
|
1642
|
-
}
|
|
1643
|
-
interface AxisObservation {
|
|
1644
|
-
id: string;
|
|
1645
|
-
startMs: number;
|
|
1646
|
-
transport: 'http' | 'ws';
|
|
1647
|
-
ip?: string;
|
|
1648
|
-
intent?: string;
|
|
1649
|
-
actorId?: string;
|
|
1650
|
-
capsuleId?: string;
|
|
1651
|
-
stages: ObservationStage[];
|
|
1652
|
-
sensors: ObservationSensor[];
|
|
1653
|
-
decision?: 'ALLOW' | 'DENY';
|
|
1654
|
-
resultCode?: string;
|
|
1655
|
-
statusCode?: number;
|
|
1656
|
-
endMs?: number;
|
|
1657
|
-
durationMs?: number;
|
|
1658
|
-
facts: Record<string, unknown>;
|
|
1659
|
-
}
|
|
1660
|
-
declare function createObservation(transport: 'http' | 'ws', ip?: string): AxisObservation;
|
|
1661
|
-
declare function startStage(obs: AxisObservation, name: string): ObservationStage;
|
|
1662
|
-
declare function endStage(stage: ObservationStage, status?: 'ok' | 'fail' | 'skip', reason?: string, code?: string): void;
|
|
1663
|
-
declare function recordSensor(obs: AxisObservation, name: string, allowed: boolean, riskScore: number, durationMs: number, reasons: string[], code?: string): void;
|
|
1664
|
-
declare function finalizeObservation(obs: AxisObservation, decision: 'ALLOW' | 'DENY', statusCode: number, resultCode?: string): void;
|
|
1665
|
-
|
|
1666
1740
|
interface AxisDecoded {
|
|
1667
1741
|
frame: Axis1DecodedFrame;
|
|
1668
1742
|
packet: AxisPacket;
|
|
@@ -1724,6 +1798,28 @@ declare class SensorDiscoveryService implements OnApplicationBootstrap {
|
|
|
1724
1798
|
onApplicationBootstrap(): void;
|
|
1725
1799
|
}
|
|
1726
1800
|
|
|
1801
|
+
type index$6_ObservationQueueConfig = ObservationQueueConfig;
|
|
1802
|
+
type index$6_ObservationQueueMessage = ObservationQueueMessage;
|
|
1803
|
+
type index$6_ObservationStreamEntry = ObservationStreamEntry;
|
|
1804
|
+
type index$6_ObservationWitnessSummary = ObservationWitnessSummary;
|
|
1805
|
+
type index$6_ObserverVerdict = ObserverVerdict;
|
|
1806
|
+
type index$6_ResponseContract = ResponseContract;
|
|
1807
|
+
type index$6_ResponseObserverContext = ResponseObserverContext;
|
|
1808
|
+
type index$6_UnsignedObservationWitness = UnsignedObservationWitness;
|
|
1809
|
+
declare const index$6_buildQueueMessage: typeof buildQueueMessage;
|
|
1810
|
+
declare const index$6_buildUnsignedWitness: typeof buildUnsignedWitness;
|
|
1811
|
+
declare const index$6_canonicalizeObservation: typeof canonicalizeObservation;
|
|
1812
|
+
declare const index$6_decodeQueueMessage: typeof decodeQueueMessage;
|
|
1813
|
+
declare const index$6_encodeQueueMessage: typeof encodeQueueMessage;
|
|
1814
|
+
declare const index$6_hashObservation: typeof hashObservation;
|
|
1815
|
+
declare const index$6_parseAutoClaimEntries: typeof parseAutoClaimEntries;
|
|
1816
|
+
declare const index$6_parseStreamEntries: typeof parseStreamEntries;
|
|
1817
|
+
declare const index$6_stableJsonStringify: typeof stableJsonStringify;
|
|
1818
|
+
declare const index$6_verifyResponse: typeof verifyResponse;
|
|
1819
|
+
declare namespace index$6 {
|
|
1820
|
+
export { type index$6_ObservationQueueConfig as ObservationQueueConfig, type index$6_ObservationQueueMessage as ObservationQueueMessage, type index$6_ObservationStreamEntry as ObservationStreamEntry, type index$6_ObservationWitnessSummary as ObservationWitnessSummary, type index$6_ObserverVerdict as ObserverVerdict, type index$6_ResponseContract as ResponseContract, type index$6_ResponseObserverContext as ResponseObserverContext, type index$6_UnsignedObservationWitness as UnsignedObservationWitness, index$6_buildQueueMessage as buildQueueMessage, index$6_buildUnsignedWitness as buildUnsignedWitness, index$6_canonicalizeObservation as canonicalizeObservation, index$6_decodeQueueMessage as decodeQueueMessage, index$6_encodeQueueMessage as encodeQueueMessage, index$6_hashObservation as hashObservation, index$6_parseAutoClaimEntries as parseAutoClaimEntries, index$6_parseStreamEntries as parseStreamEntries, index$6_stableJsonStringify as stableJsonStringify, index$6_verifyResponse as verifyResponse };
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1727
1823
|
type index$5_AxisDecoded = AxisDecoded;
|
|
1728
1824
|
type index$5_AxisEffect = AxisEffect;
|
|
1729
1825
|
type index$5_AxisObservation = AxisObservation;
|
|
@@ -1746,7 +1842,7 @@ declare const index$5_finalizeObservation: typeof finalizeObservation;
|
|
|
1746
1842
|
declare const index$5_recordSensor: typeof recordSensor;
|
|
1747
1843
|
declare const index$5_startStage: typeof startStage;
|
|
1748
1844
|
declare namespace index$5 {
|
|
1749
|
-
export { type index$5_AxisDecoded as AxisDecoded, type index$5_AxisEffect as AxisEffect, type index$5_AxisObservation as AxisObservation, index$5_BAND as BAND, index$5_HandlerDiscoveryService as HandlerDiscoveryService, index$5_IntentRouter as IntentRouter, type IntentSchema$1 as IntentSchema, type index$5_ObservationSensor as ObservationSensor, type index$5_ObservationStage as ObservationStage, index$5_PRE_DECODE_BOUNDARY as PRE_DECODE_BOUNDARY, type index$5_SensorBand as SensorBand, index$5_SensorDiscoveryService as SensorDiscoveryService, index$5_SensorRegistry as SensorRegistry, index$5_createObservation as createObservation, index$5_endStage as endStage, index$5_finalizeObservation as finalizeObservation, index$5_recordSensor as recordSensor, index$5_startStage as startStage };
|
|
1845
|
+
export { type index$5_AxisDecoded as AxisDecoded, type index$5_AxisEffect as AxisEffect, type index$5_AxisObservation as AxisObservation, index$5_BAND as BAND, index$5_HandlerDiscoveryService as HandlerDiscoveryService, index$5_IntentRouter as IntentRouter, type IntentSchema$1 as IntentSchema, type index$5_ObservationSensor as ObservationSensor, type index$5_ObservationStage as ObservationStage, index$5_PRE_DECODE_BOUNDARY as PRE_DECODE_BOUNDARY, type index$5_SensorBand as SensorBand, index$5_SensorDiscoveryService as SensorDiscoveryService, index$5_SensorRegistry as SensorRegistry, index$5_createObservation as createObservation, index$5_endStage as endStage, index$5_finalizeObservation as finalizeObservation, index$6 as observation, index$5_recordSensor as recordSensor, index$5_startStage as startStage };
|
|
1750
1846
|
}
|
|
1751
1847
|
|
|
1752
1848
|
interface PresenceDeclaration {
|
|
@@ -2257,4 +2353,4 @@ declare namespace index {
|
|
|
2257
2353
|
export { index_encodeAxisTlvDto as encodeAxisTlvDto };
|
|
2258
2354
|
}
|
|
2259
2355
|
|
|
2260
|
-
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, PROOF_CAPABILITIES, RESPONSE_TAG_CREATED_AT, RESPONSE_TAG_CREATED_BY, RESPONSE_TAG_ID, RESPONSE_TAG_UPDATED_AT, RESPONSE_TAG_UPDATED_BY, type ReceiptEffect, 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 UploadFileStat, type UploadFileStore, type UploadReceiptSigner, type UploadSessionRecord, type UploadSessionStatus, type UploadSessionStore, axis1SigningBytes, b64urlDecode, b64urlDecodeString, b64urlEncode, b64urlEncodeString, buildAts1Hdr, buildDtoDecoder, buildPacket, buildReceiptHash, buildTLVs, bytes, canAccessResource, canonicalJson, canonicalJsonExcluding, classifyIntent, index$
|
|
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 };
|