@nextera.one/axis-server-sdk 1.2.1 → 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/bin/generate-keys.d.mts +2 -0
- package/dist/bin/generate-keys.d.ts +2 -0
- package/dist/bin/generate-keys.js +159 -0
- package/dist/bin/generate-keys.js.map +1 -0
- package/dist/bin/generate-keys.mjs +169 -0
- package/dist/bin/generate-keys.mjs.map +1 -0
- package/dist/core/index.d.mts +2 -25
- package/dist/core/index.d.ts +2 -25
- package/dist/core/index.js +13 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +12 -0
- package/dist/core/index.mjs.map +1 -1
- package/dist/index-B5xzROld.d.mts +122 -0
- package/dist/index-B5xzROld.d.ts +122 -0
- package/dist/index.d.mts +1476 -10
- package/dist/index.d.ts +1476 -10
- package/dist/index.js +3086 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3064 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ModuleRef } from '@nestjs/core';
|
|
2
|
-
import {
|
|
3
|
-
export { AxisBinaryFrame, AxisFrameZ, computeReceiptHash, computeSignaturePayload, decodeFrame, encodeFrame, generateEd25519KeyPair, getSignTarget, sha256, signFrame, verifyFrameSignature } from './
|
|
1
|
+
import { ModuleRef, DiscoveryService, MetadataScanner, Reflector } from '@nestjs/core';
|
|
2
|
+
import { A as AxisFrame$2 } from './index-B5xzROld.js';
|
|
3
|
+
export { a as AxisBinaryFrame, b as AxisFrameZ, c as computeReceiptHash, d as computeSignaturePayload, i as core, e as decodeFrame, f as encodeFrame, g as generateEd25519KeyPair, h as getSignTarget, s as sha256, j as signFrame, v as verifyFrameSignature } from './index-B5xzROld.js';
|
|
4
|
+
import { PROOF_LOOM, TLV_LOOM_PRESENCE_ID, TLV_LOOM_THREAD_HASH, TLV_LOOM_WRIT } from '@nextera.one/axis-protocol';
|
|
4
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';
|
|
5
|
-
import 'zod';
|
|
6
|
+
import * as z from 'zod';
|
|
7
|
+
import { OnModuleInit, OnApplicationBootstrap } from '@nestjs/common';
|
|
8
|
+
import { ConfigService } from '@nestjs/config';
|
|
6
9
|
|
|
7
10
|
declare const HANDLER_METADATA_KEY = "axis:handler";
|
|
8
11
|
declare function Handler(intent?: string): ClassDecorator;
|
|
@@ -102,7 +105,7 @@ declare abstract class AxisResponseDto extends AxisTlvDto {
|
|
|
102
105
|
updated_by?: string;
|
|
103
106
|
}
|
|
104
107
|
|
|
105
|
-
interface IntentSchema {
|
|
108
|
+
interface IntentSchema$1 {
|
|
106
109
|
intent: string;
|
|
107
110
|
version: number;
|
|
108
111
|
bodyProfile: 'TLV_MAP' | 'RAW' | 'TLV_OBJ' | 'TLV_ARR';
|
|
@@ -134,12 +137,12 @@ declare class IntentRouter {
|
|
|
134
137
|
private intentValidators;
|
|
135
138
|
private intentKinds;
|
|
136
139
|
constructor(moduleRef?: ModuleRef | undefined);
|
|
137
|
-
getSchema(intent: string): IntentSchema | undefined;
|
|
140
|
+
getSchema(intent: string): IntentSchema$1 | undefined;
|
|
138
141
|
getValidators(intent: string): Map<number, TlvValidatorFn[]> | undefined;
|
|
139
142
|
has(intent: string): boolean;
|
|
140
143
|
getRegisteredIntents(): string[];
|
|
141
144
|
getIntentEntry(intent: string): {
|
|
142
|
-
schema?: IntentSchema;
|
|
145
|
+
schema?: IntentSchema$1;
|
|
143
146
|
validators?: Map<number, TlvValidatorFn[]>;
|
|
144
147
|
hasSensors: boolean;
|
|
145
148
|
builtin: boolean;
|
|
@@ -147,13 +150,127 @@ declare class IntentRouter {
|
|
|
147
150
|
} | null;
|
|
148
151
|
register(intent: string, handler: any): void;
|
|
149
152
|
registerHandler(instance: any): void;
|
|
150
|
-
route(frame: AxisFrame$
|
|
153
|
+
route(frame: AxisFrame$2): Promise<AxisEffect>;
|
|
151
154
|
private logIntent;
|
|
152
155
|
registerIntentMeta(intent: string, proto: object, methodName: string): void;
|
|
153
156
|
private runIntentSensors;
|
|
154
157
|
private storeSchema;
|
|
155
158
|
}
|
|
156
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
|
+
|
|
157
274
|
declare const ATS1_HDR: {
|
|
158
275
|
readonly INTENT_ID: 1;
|
|
159
276
|
readonly ACTOR_KEY_ID: 2;
|
|
@@ -429,6 +546,7 @@ declare function canonicalJson(value: any): string;
|
|
|
429
546
|
declare function canonicalJsonExcluding(obj: Record<string, any>, exclude: string[]): string;
|
|
430
547
|
|
|
431
548
|
type AxisAlg$1 = 'EdDSA' | 'ES256' | 'RS256';
|
|
549
|
+
type CapsuleStatus = 'ACTIVE' | 'CONSUMED' | 'REVOKED' | 'EXPIRED';
|
|
432
550
|
type CapsuleMode = 'SINGLE_USE' | 'MULTI_USE';
|
|
433
551
|
type KeyStatus = 'ACTIVE' | 'GRACE' | 'REVOKED' | 'RETIRED';
|
|
434
552
|
interface AxisSig$1 {
|
|
@@ -486,6 +604,36 @@ interface AxisCapsule {
|
|
|
486
604
|
payload: AxisCapsulePayload;
|
|
487
605
|
sig: AxisSig$1;
|
|
488
606
|
}
|
|
607
|
+
interface CapsuleIssueBody {
|
|
608
|
+
intent: string;
|
|
609
|
+
audience: string;
|
|
610
|
+
scopes: string[];
|
|
611
|
+
subject?: string;
|
|
612
|
+
mode: CapsuleMode;
|
|
613
|
+
maxUses?: number;
|
|
614
|
+
expSeconds?: number;
|
|
615
|
+
constraints?: AxisCapsuleConstraints;
|
|
616
|
+
hints?: {
|
|
617
|
+
ip?: string;
|
|
618
|
+
ua?: string;
|
|
619
|
+
deviceId?: string;
|
|
620
|
+
geo?: string;
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
interface CapsuleBatchBody extends Omit<CapsuleIssueBody, 'mode' | 'maxUses'> {
|
|
624
|
+
count: number;
|
|
625
|
+
mode: 'SINGLE_USE';
|
|
626
|
+
}
|
|
627
|
+
interface IntentExecBody {
|
|
628
|
+
intent: string;
|
|
629
|
+
capsule: AxisCapsule;
|
|
630
|
+
execNonce?: string;
|
|
631
|
+
args: Record<string, any>;
|
|
632
|
+
}
|
|
633
|
+
interface CapsuleRevokeBody {
|
|
634
|
+
capsuleId: string;
|
|
635
|
+
reason: string;
|
|
636
|
+
}
|
|
489
637
|
interface AxisResponse$1<T = any> {
|
|
490
638
|
ok: boolean;
|
|
491
639
|
pid: string;
|
|
@@ -495,6 +643,71 @@ interface AxisResponse$1<T = any> {
|
|
|
495
643
|
data?: T;
|
|
496
644
|
meta?: Record<string, unknown>;
|
|
497
645
|
}
|
|
646
|
+
interface CapsuleIssueResult {
|
|
647
|
+
capsule: AxisCapsule;
|
|
648
|
+
}
|
|
649
|
+
interface CapsuleBatchResult {
|
|
650
|
+
capsules: AxisCapsule[];
|
|
651
|
+
}
|
|
652
|
+
interface ActorKeyRecord {
|
|
653
|
+
id: Buffer;
|
|
654
|
+
actor_id: string;
|
|
655
|
+
key_id: string;
|
|
656
|
+
algorithm: string;
|
|
657
|
+
public_key: Buffer;
|
|
658
|
+
purpose: string;
|
|
659
|
+
status: KeyStatus;
|
|
660
|
+
is_primary: boolean;
|
|
661
|
+
not_before: Date | null;
|
|
662
|
+
expires_at: Date | null;
|
|
663
|
+
rotated_from_key_id: string | null;
|
|
664
|
+
revoked_at: Date | null;
|
|
665
|
+
revocation_reason: string | null;
|
|
666
|
+
metadata: any;
|
|
667
|
+
created_at: Date;
|
|
668
|
+
updated_at: Date;
|
|
669
|
+
}
|
|
670
|
+
interface IssuerKeyRecord {
|
|
671
|
+
id: Buffer;
|
|
672
|
+
kid: string;
|
|
673
|
+
issuer_id: string;
|
|
674
|
+
alg: string;
|
|
675
|
+
public_key_pem: string;
|
|
676
|
+
status: KeyStatus;
|
|
677
|
+
not_before: Date | null;
|
|
678
|
+
not_after: Date | null;
|
|
679
|
+
fingerprint: string | null;
|
|
680
|
+
metadata: any;
|
|
681
|
+
created_at: Date;
|
|
682
|
+
updated_at: Date;
|
|
683
|
+
}
|
|
684
|
+
interface CapsuleRecord {
|
|
685
|
+
id: Buffer;
|
|
686
|
+
capsule_id: string;
|
|
687
|
+
actor_id: string;
|
|
688
|
+
intent: string;
|
|
689
|
+
audience: string;
|
|
690
|
+
issuer: string;
|
|
691
|
+
subject: string | null;
|
|
692
|
+
status: CapsuleStatus;
|
|
693
|
+
mode: CapsuleMode;
|
|
694
|
+
max_uses: number;
|
|
695
|
+
used_count: number;
|
|
696
|
+
iat: Date;
|
|
697
|
+
nbf: Date | null;
|
|
698
|
+
exp: Date;
|
|
699
|
+
scopes_json: any;
|
|
700
|
+
constraints_json: any;
|
|
701
|
+
policy_refs_json: any;
|
|
702
|
+
risk_score: number | null;
|
|
703
|
+
payload_hash: Buffer;
|
|
704
|
+
sig_alg: string;
|
|
705
|
+
sig_kid: string;
|
|
706
|
+
sig_value: Buffer;
|
|
707
|
+
created_at: Date;
|
|
708
|
+
updated_at: Date;
|
|
709
|
+
last_used_at: Date | null;
|
|
710
|
+
}
|
|
498
711
|
|
|
499
712
|
declare class ContractViolationError extends Error {
|
|
500
713
|
code: string;
|
|
@@ -575,7 +788,7 @@ type AxisAlg = Extract<AxisAlg$1, 'EdDSA'>;
|
|
|
575
788
|
type AxisSig = AxisSig$1 & {
|
|
576
789
|
alg: AxisAlg;
|
|
577
790
|
};
|
|
578
|
-
interface AxisFrame<T = any> {
|
|
791
|
+
interface AxisFrame$1<T = any> {
|
|
579
792
|
v: 1;
|
|
580
793
|
pid: string;
|
|
581
794
|
nonce: string;
|
|
@@ -887,4 +1100,1257 @@ declare class DiskUploadFileStore implements UploadFileStore {
|
|
|
887
1100
|
createTempReadStream(fileId: string): NodeJS.ReadableStream;
|
|
888
1101
|
}
|
|
889
1102
|
|
|
890
|
-
|
|
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
|
+
interface AxisRequestData {
|
|
1176
|
+
raw: Buffer;
|
|
1177
|
+
ip: string | undefined;
|
|
1178
|
+
preDecodeInput: any;
|
|
1179
|
+
frameBytesCount: number;
|
|
1180
|
+
}
|
|
1181
|
+
declare const AxisRaw: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1182
|
+
declare const AxisIp: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1183
|
+
declare const AxisContext$1: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1184
|
+
declare const AxisDemoPubkey: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1185
|
+
declare const AxisFrame: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
1186
|
+
|
|
1187
|
+
declare const SENSOR_METADATA_KEY = "axis:sensor";
|
|
1188
|
+
type SensorPhase = 'PRE_DECODE' | 'POST_DECODE';
|
|
1189
|
+
interface SensorOptions {
|
|
1190
|
+
phase?: SensorPhase;
|
|
1191
|
+
}
|
|
1192
|
+
declare function Sensor(options?: SensorOptions): ClassDecorator;
|
|
1193
|
+
|
|
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 };
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
declare const SensorDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1237
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1238
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1240
|
+
action: z.ZodLiteral<"DENY">;
|
|
1241
|
+
code: z.ZodString;
|
|
1242
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1244
|
+
}, z.core.$strip>]>;
|
|
1245
|
+
declare const SensorDecisionWithMetadataZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1246
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1247
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1249
|
+
action: z.ZodLiteral<"DENY">;
|
|
1250
|
+
code: z.ZodString;
|
|
1251
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1254
|
+
}, z.core.$strip>]>;
|
|
1255
|
+
declare const CountryBlockSensorInputZ: z.ZodObject<{
|
|
1256
|
+
ip: z.ZodString;
|
|
1257
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
}, z.core.$strip>;
|
|
1259
|
+
type CountryBlockSensorInput = z.infer<typeof CountryBlockSensorInputZ>;
|
|
1260
|
+
declare const CountryBlockDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1261
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1262
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1263
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1264
|
+
action: z.ZodLiteral<"DENY">;
|
|
1265
|
+
code: z.ZodString;
|
|
1266
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1268
|
+
}, z.core.$strip>]>;
|
|
1269
|
+
type CountryBlockDecision = z.infer<typeof CountryBlockDecisionZ>;
|
|
1270
|
+
declare const ScanBurstSensorInputZ: z.ZodObject<{
|
|
1271
|
+
ip: z.ZodString;
|
|
1272
|
+
isFailure: z.ZodOptional<z.ZodBoolean>;
|
|
1273
|
+
}, z.core.$strip>;
|
|
1274
|
+
type ScanBurstSensorInput = z.infer<typeof ScanBurstSensorInputZ>;
|
|
1275
|
+
declare const ScanBurstDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1276
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1277
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1278
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1279
|
+
action: z.ZodLiteral<"DENY">;
|
|
1280
|
+
code: z.ZodString;
|
|
1281
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1282
|
+
retryAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
1283
|
+
meta: z.ZodOptional<z.ZodAny>;
|
|
1284
|
+
}, z.core.$strip>]>;
|
|
1285
|
+
type ScanBurstDecision = z.infer<typeof ScanBurstDecisionZ>;
|
|
1286
|
+
declare const ProofKindZ: z.ZodEnum<{
|
|
1287
|
+
NONE: "NONE";
|
|
1288
|
+
CAPSULE: "CAPSULE";
|
|
1289
|
+
PASSPORT: "PASSPORT";
|
|
1290
|
+
MTLS: "MTLS";
|
|
1291
|
+
JWT: "JWT";
|
|
1292
|
+
}>;
|
|
1293
|
+
type ProofKind = z.infer<typeof ProofKindZ>;
|
|
1294
|
+
declare const AccessProfileZ: z.ZodEnum<{
|
|
1295
|
+
PUBLIC: "PUBLIC";
|
|
1296
|
+
PARTNER: "PARTNER";
|
|
1297
|
+
INTERNAL: "INTERNAL";
|
|
1298
|
+
NODE: "NODE";
|
|
1299
|
+
}>;
|
|
1300
|
+
type AccessProfile = z.infer<typeof AccessProfileZ>;
|
|
1301
|
+
declare const ProofPresenceInputZ: z.ZodObject<{
|
|
1302
|
+
profile: z.ZodEnum<{
|
|
1303
|
+
PUBLIC: "PUBLIC";
|
|
1304
|
+
PARTNER: "PARTNER";
|
|
1305
|
+
INTERNAL: "INTERNAL";
|
|
1306
|
+
NODE: "NODE";
|
|
1307
|
+
}>;
|
|
1308
|
+
visibility: z.ZodEnum<{
|
|
1309
|
+
PUBLIC: "PUBLIC";
|
|
1310
|
+
GUARDED: "GUARDED";
|
|
1311
|
+
}>;
|
|
1312
|
+
requiredProof: z.ZodArray<z.ZodEnum<{
|
|
1313
|
+
NONE: "NONE";
|
|
1314
|
+
CAPSULE: "CAPSULE";
|
|
1315
|
+
PASSPORT: "PASSPORT";
|
|
1316
|
+
MTLS: "MTLS";
|
|
1317
|
+
JWT: "JWT";
|
|
1318
|
+
}>>;
|
|
1319
|
+
hasCapsule: z.ZodBoolean;
|
|
1320
|
+
hasPassportSignature: z.ZodBoolean;
|
|
1321
|
+
intent: z.ZodString;
|
|
1322
|
+
}, z.core.$strip>;
|
|
1323
|
+
type ProofPresenceInput = z.infer<typeof ProofPresenceInputZ>;
|
|
1324
|
+
declare const SensitivityLevelZ: z.ZodEnum<{
|
|
1325
|
+
LOW: "LOW";
|
|
1326
|
+
MEDIUM: "MEDIUM";
|
|
1327
|
+
HIGH: "HIGH";
|
|
1328
|
+
CRITICAL: "CRITICAL";
|
|
1329
|
+
}>;
|
|
1330
|
+
type SensitivityLevel = z.infer<typeof SensitivityLevelZ>;
|
|
1331
|
+
declare const IntentPolicyZ: z.ZodObject<{
|
|
1332
|
+
intent: z.ZodString;
|
|
1333
|
+
sensitivity: z.ZodEnum<{
|
|
1334
|
+
LOW: "LOW";
|
|
1335
|
+
MEDIUM: "MEDIUM";
|
|
1336
|
+
HIGH: "HIGH";
|
|
1337
|
+
CRITICAL: "CRITICAL";
|
|
1338
|
+
}>;
|
|
1339
|
+
maxFrameBytes: z.ZodNumber;
|
|
1340
|
+
maxHeaderBytes: z.ZodNumber;
|
|
1341
|
+
maxBodyBytes: z.ZodNumber;
|
|
1342
|
+
maxSigBytes: z.ZodOptional<z.ZodNumber>;
|
|
1343
|
+
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1344
|
+
rateLimitPerHour: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
requiresSignature: z.ZodBoolean;
|
|
1346
|
+
requiresCapsule: z.ZodBoolean;
|
|
1347
|
+
timeoutMs: z.ZodNumber;
|
|
1348
|
+
}, z.core.$strip>;
|
|
1349
|
+
type IntentPolicy = z.infer<typeof IntentPolicyZ>;
|
|
1350
|
+
declare const IntentPolicySensorInputZ: z.ZodObject<{
|
|
1351
|
+
frame: z.ZodObject<{
|
|
1352
|
+
flags: z.ZodNumber;
|
|
1353
|
+
headers: z.ZodMap<z.ZodNumber, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
|
|
1354
|
+
body: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1355
|
+
sig: z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>;
|
|
1356
|
+
}, z.core.$strip>;
|
|
1357
|
+
intent: z.ZodString;
|
|
1358
|
+
rawFrameSize: z.ZodNumber;
|
|
1359
|
+
}, z.core.$strip>;
|
|
1360
|
+
type IntentPolicySensorInput = z.infer<typeof IntentPolicySensorInputZ>;
|
|
1361
|
+
declare const IntentPolicyDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1362
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1363
|
+
policy: z.ZodObject<{
|
|
1364
|
+
intent: z.ZodString;
|
|
1365
|
+
sensitivity: z.ZodEnum<{
|
|
1366
|
+
LOW: "LOW";
|
|
1367
|
+
MEDIUM: "MEDIUM";
|
|
1368
|
+
HIGH: "HIGH";
|
|
1369
|
+
CRITICAL: "CRITICAL";
|
|
1370
|
+
}>;
|
|
1371
|
+
maxFrameBytes: z.ZodNumber;
|
|
1372
|
+
maxHeaderBytes: z.ZodNumber;
|
|
1373
|
+
maxBodyBytes: z.ZodNumber;
|
|
1374
|
+
maxSigBytes: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1376
|
+
rateLimitPerHour: z.ZodOptional<z.ZodNumber>;
|
|
1377
|
+
requiresSignature: z.ZodBoolean;
|
|
1378
|
+
requiresCapsule: z.ZodBoolean;
|
|
1379
|
+
timeoutMs: z.ZodNumber;
|
|
1380
|
+
}, z.core.$strip>;
|
|
1381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1382
|
+
action: z.ZodLiteral<"DENY">;
|
|
1383
|
+
reason: z.ZodString;
|
|
1384
|
+
}, z.core.$strip>]>;
|
|
1385
|
+
type IntentPolicyDecision = z.infer<typeof IntentPolicyDecisionZ>;
|
|
1386
|
+
declare const CapsuleClaimsZ: z.ZodObject<{
|
|
1387
|
+
capsuleId: z.ZodString;
|
|
1388
|
+
allowIntents: z.ZodArray<z.ZodString>;
|
|
1389
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1390
|
+
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1391
|
+
}, z.core.$strip>>;
|
|
1392
|
+
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1393
|
+
}, z.core.$strip>;
|
|
1394
|
+
type CapsuleClaims = z.infer<typeof CapsuleClaimsZ>;
|
|
1395
|
+
declare const CapsuleZ: z.ZodObject<{
|
|
1396
|
+
id: z.ZodString;
|
|
1397
|
+
claims: z.ZodObject<{
|
|
1398
|
+
capsuleId: z.ZodString;
|
|
1399
|
+
allowIntents: z.ZodArray<z.ZodString>;
|
|
1400
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1401
|
+
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
+
}, z.core.$strip>>;
|
|
1403
|
+
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1404
|
+
}, z.core.$strip>;
|
|
1405
|
+
issuedAt: z.ZodNumber;
|
|
1406
|
+
expiresAt: z.ZodNumber;
|
|
1407
|
+
tier: z.ZodEnum<{
|
|
1408
|
+
FREE: "FREE";
|
|
1409
|
+
STANDARD: "STANDARD";
|
|
1410
|
+
PREMIUM: "PREMIUM";
|
|
1411
|
+
}>;
|
|
1412
|
+
}, z.core.$strip>;
|
|
1413
|
+
type Capsule = z.infer<typeof CapsuleZ>;
|
|
1414
|
+
declare const CapsuleValidationResultZ: z.ZodObject<{
|
|
1415
|
+
valid: z.ZodBoolean;
|
|
1416
|
+
capsule: z.ZodOptional<z.ZodObject<{
|
|
1417
|
+
id: z.ZodString;
|
|
1418
|
+
claims: z.ZodObject<{
|
|
1419
|
+
capsuleId: z.ZodString;
|
|
1420
|
+
allowIntents: z.ZodArray<z.ZodString>;
|
|
1421
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1422
|
+
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1423
|
+
}, z.core.$strip>>;
|
|
1424
|
+
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1425
|
+
}, z.core.$strip>;
|
|
1426
|
+
issuedAt: z.ZodNumber;
|
|
1427
|
+
expiresAt: z.ZodNumber;
|
|
1428
|
+
tier: z.ZodEnum<{
|
|
1429
|
+
FREE: "FREE";
|
|
1430
|
+
STANDARD: "STANDARD";
|
|
1431
|
+
PREMIUM: "PREMIUM";
|
|
1432
|
+
}>;
|
|
1433
|
+
}, z.core.$strip>>;
|
|
1434
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
requiresStepUp: z.ZodOptional<z.ZodBoolean>;
|
|
1436
|
+
}, z.core.$strip>;
|
|
1437
|
+
type CapsuleValidationResult = z.infer<typeof CapsuleValidationResultZ>;
|
|
1438
|
+
declare const CapsuleVerifySensorInputZ: z.ZodObject<{
|
|
1439
|
+
headers: z.ZodMap<z.ZodNumber, z.ZodCustom<Uint8Array<ArrayBufferLike>, Uint8Array<ArrayBufferLike>>>;
|
|
1440
|
+
intent: z.ZodString;
|
|
1441
|
+
ctx: z.ZodAny;
|
|
1442
|
+
}, z.core.$strip>;
|
|
1443
|
+
type CapsuleVerifySensorInput = z.infer<typeof CapsuleVerifySensorInputZ>;
|
|
1444
|
+
declare const CapsuleVerifyResultZ: z.ZodObject<{
|
|
1445
|
+
ok: z.ZodLiteral<true>;
|
|
1446
|
+
capsule: z.ZodObject<{
|
|
1447
|
+
id: z.ZodString;
|
|
1448
|
+
claims: z.ZodObject<{
|
|
1449
|
+
capsuleId: z.ZodString;
|
|
1450
|
+
allowIntents: z.ZodArray<z.ZodString>;
|
|
1451
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1452
|
+
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1453
|
+
}, z.core.$strip>>;
|
|
1454
|
+
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1455
|
+
}, z.core.$strip>;
|
|
1456
|
+
issuedAt: z.ZodNumber;
|
|
1457
|
+
expiresAt: z.ZodNumber;
|
|
1458
|
+
tier: z.ZodEnum<{
|
|
1459
|
+
FREE: "FREE";
|
|
1460
|
+
STANDARD: "STANDARD";
|
|
1461
|
+
PREMIUM: "PREMIUM";
|
|
1462
|
+
}>;
|
|
1463
|
+
}, z.core.$strip>;
|
|
1464
|
+
}, z.core.$strip>;
|
|
1465
|
+
type CapsuleVerifyResult = z.infer<typeof CapsuleVerifyResultZ>;
|
|
1466
|
+
declare const RateLimitProfileZ: z.ZodEnum<{
|
|
1467
|
+
PUBLIC: "PUBLIC";
|
|
1468
|
+
PARTNER: "PARTNER";
|
|
1469
|
+
INTERNAL: "INTERNAL";
|
|
1470
|
+
NODE: "NODE";
|
|
1471
|
+
}>;
|
|
1472
|
+
type RateLimitProfile = z.infer<typeof RateLimitProfileZ>;
|
|
1473
|
+
declare const RateLimitInputZ: z.ZodObject<{
|
|
1474
|
+
ip: z.ZodString;
|
|
1475
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
1476
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
1477
|
+
capsuleId: z.ZodOptional<z.ZodString>;
|
|
1478
|
+
intent: z.ZodString;
|
|
1479
|
+
profile: z.ZodEnum<{
|
|
1480
|
+
PUBLIC: "PUBLIC";
|
|
1481
|
+
PARTNER: "PARTNER";
|
|
1482
|
+
INTERNAL: "INTERNAL";
|
|
1483
|
+
NODE: "NODE";
|
|
1484
|
+
}>;
|
|
1485
|
+
}, z.core.$strip>;
|
|
1486
|
+
type RateLimitInput = z.infer<typeof RateLimitInputZ>;
|
|
1487
|
+
declare const RateLimitConfigZ: z.ZodObject<{
|
|
1488
|
+
windowSec: z.ZodNumber;
|
|
1489
|
+
max: z.ZodNumber;
|
|
1490
|
+
key: z.ZodEnum<{
|
|
1491
|
+
ip_fingerprint: "ip_fingerprint";
|
|
1492
|
+
actor_capsule: "actor_capsule";
|
|
1493
|
+
}>;
|
|
1494
|
+
}, z.core.$strip>;
|
|
1495
|
+
type RateLimitConfig = z.infer<typeof RateLimitConfigZ>;
|
|
1496
|
+
declare const SensorResultZ: z.ZodObject<{
|
|
1497
|
+
ok: z.ZodLiteral<true>;
|
|
1498
|
+
}, z.core.$strip>;
|
|
1499
|
+
type SensorResult = z.infer<typeof SensorResultZ>;
|
|
1500
|
+
declare const PassportZ: z.ZodObject<{
|
|
1501
|
+
id: z.ZodString;
|
|
1502
|
+
public_key: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1503
|
+
status: z.ZodEnum<{
|
|
1504
|
+
ACTIVE: "ACTIVE";
|
|
1505
|
+
REVOKED: "REVOKED";
|
|
1506
|
+
EXPIRED: "EXPIRED";
|
|
1507
|
+
PENDING: "PENDING";
|
|
1508
|
+
}>;
|
|
1509
|
+
issuedAt: z.ZodNumber;
|
|
1510
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1511
|
+
}, z.core.$strip>;
|
|
1512
|
+
declare const ExecutionMetricsZ: z.ZodObject<{
|
|
1513
|
+
dbWrites: z.ZodNumber;
|
|
1514
|
+
dbReads: z.ZodNumber;
|
|
1515
|
+
externalCalls: z.ZodNumber;
|
|
1516
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
1517
|
+
}, z.core.$strip>;
|
|
1518
|
+
type Passport = z.infer<typeof PassportZ>;
|
|
1519
|
+
declare const SensorChainInputZ: z.ZodObject<{
|
|
1520
|
+
ip: z.ZodString;
|
|
1521
|
+
path: z.ZodString;
|
|
1522
|
+
contentLength: z.ZodNumber;
|
|
1523
|
+
peek: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1524
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1525
|
+
}, z.core.$strip>;
|
|
1526
|
+
type SensorChainInput = z.infer<typeof SensorChainInputZ>;
|
|
1527
|
+
declare const EntropySensorInputZ: z.ZodObject<{
|
|
1528
|
+
pid: z.ZodOptional<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
1529
|
+
nonce: z.ZodOptional<z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>>;
|
|
1530
|
+
ip: z.ZodString;
|
|
1531
|
+
}, z.core.$strip>;
|
|
1532
|
+
type EntropySensorInput = z.infer<typeof EntropySensorInputZ>;
|
|
1533
|
+
declare const ProtocolStrictInputZ: z.ZodObject<{
|
|
1534
|
+
rawBytes: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
1535
|
+
ip: z.ZodString;
|
|
1536
|
+
path: z.ZodString;
|
|
1537
|
+
contentLength: z.ZodNumber;
|
|
1538
|
+
peek: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
1539
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1540
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
1542
|
+
type ProtocolStrictInput = z.infer<typeof ProtocolStrictInputZ>;
|
|
1543
|
+
declare const SchemaFieldKindZ: z.ZodEnum<{
|
|
1544
|
+
utf8: "utf8";
|
|
1545
|
+
u64: "u64";
|
|
1546
|
+
bytes: "bytes";
|
|
1547
|
+
bytes16: "bytes16";
|
|
1548
|
+
bool: "bool";
|
|
1549
|
+
obj: "obj";
|
|
1550
|
+
arr: "arr";
|
|
1551
|
+
}>;
|
|
1552
|
+
type SchemaFieldKind = z.infer<typeof SchemaFieldKindZ>;
|
|
1553
|
+
declare const ScopeZ: z.ZodEnum<{
|
|
1554
|
+
header: "header";
|
|
1555
|
+
body: "body";
|
|
1556
|
+
}>;
|
|
1557
|
+
type Scope = z.infer<typeof ScopeZ>;
|
|
1558
|
+
declare const SchemaFieldZ: z.ZodObject<{
|
|
1559
|
+
name: z.ZodString;
|
|
1560
|
+
tlv: z.ZodNumber;
|
|
1561
|
+
kind: z.ZodEnum<{
|
|
1562
|
+
utf8: "utf8";
|
|
1563
|
+
u64: "u64";
|
|
1564
|
+
bytes: "bytes";
|
|
1565
|
+
bytes16: "bytes16";
|
|
1566
|
+
bool: "bool";
|
|
1567
|
+
obj: "obj";
|
|
1568
|
+
arr: "arr";
|
|
1569
|
+
}>;
|
|
1570
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1571
|
+
maxLen: z.ZodOptional<z.ZodNumber>;
|
|
1572
|
+
max: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
1574
|
+
header: "header";
|
|
1575
|
+
body: "body";
|
|
1576
|
+
}>>;
|
|
1577
|
+
}, z.core.$strip>;
|
|
1578
|
+
type SchemaField = z.infer<typeof SchemaFieldZ>;
|
|
1579
|
+
declare const BodyProfileZ: z.ZodEnum<{
|
|
1580
|
+
TLV_MAP: "TLV_MAP";
|
|
1581
|
+
RAW: "RAW";
|
|
1582
|
+
TLV_OBJ: "TLV_OBJ";
|
|
1583
|
+
TLV_ARR: "TLV_ARR";
|
|
1584
|
+
}>;
|
|
1585
|
+
declare const IntentSchemaZ: z.ZodObject<{
|
|
1586
|
+
intent: z.ZodString;
|
|
1587
|
+
version: z.ZodNumber;
|
|
1588
|
+
bodyProfile: z.ZodEnum<{
|
|
1589
|
+
TLV_MAP: "TLV_MAP";
|
|
1590
|
+
RAW: "RAW";
|
|
1591
|
+
TLV_OBJ: "TLV_OBJ";
|
|
1592
|
+
TLV_ARR: "TLV_ARR";
|
|
1593
|
+
}>;
|
|
1594
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1595
|
+
name: z.ZodString;
|
|
1596
|
+
tlv: z.ZodNumber;
|
|
1597
|
+
kind: z.ZodEnum<{
|
|
1598
|
+
utf8: "utf8";
|
|
1599
|
+
u64: "u64";
|
|
1600
|
+
bytes: "bytes";
|
|
1601
|
+
bytes16: "bytes16";
|
|
1602
|
+
bool: "bool";
|
|
1603
|
+
obj: "obj";
|
|
1604
|
+
arr: "arr";
|
|
1605
|
+
}>;
|
|
1606
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1607
|
+
maxLen: z.ZodOptional<z.ZodNumber>;
|
|
1608
|
+
max: z.ZodOptional<z.ZodString>;
|
|
1609
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
1610
|
+
header: "header";
|
|
1611
|
+
body: "body";
|
|
1612
|
+
}>>;
|
|
1613
|
+
}, z.core.$strip>>;
|
|
1614
|
+
}, z.core.$strip>;
|
|
1615
|
+
type IntentSchema = z.infer<typeof IntentSchemaZ>;
|
|
1616
|
+
declare const WsHandshakeInputZ: z.ZodObject<{
|
|
1617
|
+
clientId: z.ZodString;
|
|
1618
|
+
isWs: z.ZodBoolean;
|
|
1619
|
+
ip: z.ZodString;
|
|
1620
|
+
}, z.core.$strip>;
|
|
1621
|
+
type WsHandshakeInput = z.infer<typeof WsHandshakeInputZ>;
|
|
1622
|
+
declare const WsHandshakeDecisionZ: z.ZodUnion<readonly [z.ZodObject<{
|
|
1623
|
+
action: z.ZodLiteral<"ALLOW">;
|
|
1624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1625
|
+
action: z.ZodLiteral<"DENY">;
|
|
1626
|
+
code: z.ZodString;
|
|
1627
|
+
}, z.core.$strip>]>;
|
|
1628
|
+
type WsHandshakeDecision = z.infer<typeof WsHandshakeDecisionZ>;
|
|
1629
|
+
declare const IPReputationInputZ: z.ZodObject<{
|
|
1630
|
+
ip: z.ZodString;
|
|
1631
|
+
}, z.core.$strip>;
|
|
1632
|
+
type IPReputationInput = z.infer<typeof IPReputationInputZ>;
|
|
1633
|
+
declare const IPReputationZ: z.ZodObject<{
|
|
1634
|
+
score: z.ZodNumber;
|
|
1635
|
+
lastUpdated: z.ZodNumber;
|
|
1636
|
+
totalRequests: z.ZodNumber;
|
|
1637
|
+
failedRequests: z.ZodNumber;
|
|
1638
|
+
blockedRequests: z.ZodNumber;
|
|
1639
|
+
tags: z.ZodArray<z.ZodString>;
|
|
1640
|
+
}, z.core.$strip>;
|
|
1641
|
+
type IPReputation = z.infer<typeof IPReputationZ>;
|
|
1642
|
+
declare const UploadStatusZ: z.ZodEnum<{
|
|
1643
|
+
FINALIZING: "FINALIZING";
|
|
1644
|
+
ABORTED: "ABORTED";
|
|
1645
|
+
INIT: "INIT";
|
|
1646
|
+
UPLOADING: "UPLOADING";
|
|
1647
|
+
DONE: "DONE";
|
|
1648
|
+
}>;
|
|
1649
|
+
type UploadStatus = z.infer<typeof UploadStatusZ>;
|
|
1650
|
+
declare const UploadSessionZ: z.ZodObject<{
|
|
1651
|
+
uploadIdHex: z.ZodString;
|
|
1652
|
+
fileName: z.ZodString;
|
|
1653
|
+
totalSize: z.ZodNumber;
|
|
1654
|
+
chunkSize: z.ZodNumber;
|
|
1655
|
+
totalChunks: z.ZodNumber;
|
|
1656
|
+
receivedCount: z.ZodNumber;
|
|
1657
|
+
status: z.ZodEnum<{
|
|
1658
|
+
FINALIZING: "FINALIZING";
|
|
1659
|
+
ABORTED: "ABORTED";
|
|
1660
|
+
INIT: "INIT";
|
|
1661
|
+
UPLOADING: "UPLOADING";
|
|
1662
|
+
DONE: "DONE";
|
|
1663
|
+
}>;
|
|
1664
|
+
}, z.core.$strip>;
|
|
1665
|
+
type UploadSession = z.infer<typeof UploadSessionZ>;
|
|
1666
|
+
declare const BodyBudgetInputZ: z.ZodObject<{
|
|
1667
|
+
intent: z.ZodString;
|
|
1668
|
+
headerLen: z.ZodNumber;
|
|
1669
|
+
bodyLen: z.ZodNumber;
|
|
1670
|
+
}, z.core.$strip>;
|
|
1671
|
+
type BodyBudgetInput = z.infer<typeof BodyBudgetInputZ>;
|
|
1672
|
+
declare const BodyBudgetPolicyZ: z.ZodObject<{
|
|
1673
|
+
maxHeaderBytes: z.ZodNumber;
|
|
1674
|
+
maxBodyBytes: z.ZodNumber;
|
|
1675
|
+
}, z.core.$strip>;
|
|
1676
|
+
type BodyBudgetPolicy = z.infer<typeof BodyBudgetPolicyZ>;
|
|
1677
|
+
declare const ChunkHashInputZ: z.ZodObject<{
|
|
1678
|
+
headerTLVs: z.ZodAny;
|
|
1679
|
+
bodyBytes: z.ZodAny;
|
|
1680
|
+
intent: z.ZodString;
|
|
1681
|
+
}, z.core.$strip>;
|
|
1682
|
+
type ChunkHashInput = z.infer<typeof ChunkHashInputZ>;
|
|
1683
|
+
declare enum ProofType {
|
|
1684
|
+
CAPSULE = 1,
|
|
1685
|
+
JWT = 2,
|
|
1686
|
+
MTLS_ID = 3,
|
|
1687
|
+
DEVICE_SE = 4,
|
|
1688
|
+
WITNESS_SIG = 5
|
|
1689
|
+
}
|
|
1690
|
+
declare const AxisContextZ: z.ZodObject<{
|
|
1691
|
+
pid: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1692
|
+
ts: z.ZodBigInt;
|
|
1693
|
+
intent: z.ZodString;
|
|
1694
|
+
actorId: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1695
|
+
proofType: z.ZodEnum<typeof ProofType>;
|
|
1696
|
+
proofRef: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1697
|
+
nonce: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1698
|
+
ip: z.ZodString;
|
|
1699
|
+
nodeCertHash: z.ZodOptional<z.ZodString>;
|
|
1700
|
+
capsule: z.ZodOptional<z.ZodObject<{
|
|
1701
|
+
id: z.ZodString;
|
|
1702
|
+
claims: z.ZodObject<{
|
|
1703
|
+
capsuleId: z.ZodString;
|
|
1704
|
+
allowIntents: z.ZodArray<z.ZodString>;
|
|
1705
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1706
|
+
maxBodyBytes: z.ZodOptional<z.ZodNumber>;
|
|
1707
|
+
}, z.core.$strip>>;
|
|
1708
|
+
scopes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1709
|
+
}, z.core.$strip>;
|
|
1710
|
+
issuedAt: z.ZodNumber;
|
|
1711
|
+
expiresAt: z.ZodNumber;
|
|
1712
|
+
tier: z.ZodEnum<{
|
|
1713
|
+
FREE: "FREE";
|
|
1714
|
+
STANDARD: "STANDARD";
|
|
1715
|
+
PREMIUM: "PREMIUM";
|
|
1716
|
+
}>;
|
|
1717
|
+
}, z.core.$strip>>;
|
|
1718
|
+
passport: z.ZodOptional<z.ZodObject<{
|
|
1719
|
+
id: z.ZodString;
|
|
1720
|
+
public_key: z.ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>;
|
|
1721
|
+
status: z.ZodEnum<{
|
|
1722
|
+
ACTIVE: "ACTIVE";
|
|
1723
|
+
REVOKED: "REVOKED";
|
|
1724
|
+
EXPIRED: "EXPIRED";
|
|
1725
|
+
PENDING: "PENDING";
|
|
1726
|
+
}>;
|
|
1727
|
+
issuedAt: z.ZodNumber;
|
|
1728
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1729
|
+
}, z.core.$strip>>;
|
|
1730
|
+
meter: z.ZodOptional<z.ZodAny>;
|
|
1731
|
+
}, z.core.$strip>;
|
|
1732
|
+
type AxisContext = z.infer<typeof AxisContextZ>;
|
|
1733
|
+
declare const AxisErrorZ: z.ZodObject<{
|
|
1734
|
+
code: z.ZodString;
|
|
1735
|
+
message: z.ZodString;
|
|
1736
|
+
httpStatus: z.ZodNumber;
|
|
1737
|
+
}, z.core.$strip>;
|
|
1738
|
+
type AxisError = z.infer<typeof AxisErrorZ>;
|
|
1739
|
+
|
|
1740
|
+
interface AxisDecoded {
|
|
1741
|
+
frame: Axis1DecodedFrame;
|
|
1742
|
+
packet: AxisPacket;
|
|
1743
|
+
axisCtx: AxisContext;
|
|
1744
|
+
correlationId: Buffer;
|
|
1745
|
+
correlationIdHex: string;
|
|
1746
|
+
sensorInput: SensorInput;
|
|
1747
|
+
extra: {
|
|
1748
|
+
ip?: string;
|
|
1749
|
+
demoPubkeyHex?: string;
|
|
1750
|
+
};
|
|
1751
|
+
observation: AxisObservation;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
declare class HandlerDiscoveryService implements OnModuleInit {
|
|
1755
|
+
private readonly discovery;
|
|
1756
|
+
private readonly scanner;
|
|
1757
|
+
private readonly router;
|
|
1758
|
+
private readonly logger;
|
|
1759
|
+
constructor(discovery: DiscoveryService, scanner: MetadataScanner, router: IntentRouter);
|
|
1760
|
+
onModuleInit(): void;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
declare const BAND: {
|
|
1764
|
+
readonly WIRE: 0;
|
|
1765
|
+
readonly IDENTITY: 40;
|
|
1766
|
+
readonly POLICY: 90;
|
|
1767
|
+
readonly CONTENT: 140;
|
|
1768
|
+
readonly BUSINESS: 200;
|
|
1769
|
+
readonly AUDIT: 900;
|
|
1770
|
+
};
|
|
1771
|
+
type SensorBand = keyof typeof BAND;
|
|
1772
|
+
declare const PRE_DECODE_BOUNDARY = 40;
|
|
1773
|
+
|
|
1774
|
+
declare class SensorRegistry {
|
|
1775
|
+
private readonly configService;
|
|
1776
|
+
private sensors;
|
|
1777
|
+
private readonly logger;
|
|
1778
|
+
constructor(configService: ConfigService);
|
|
1779
|
+
register(sensor: AxisSensor): void;
|
|
1780
|
+
list(): AxisSensor[];
|
|
1781
|
+
getPreDecodeSensors(): AxisPreSensor[];
|
|
1782
|
+
getPostDecodeSensors(): AxisPostSensor[];
|
|
1783
|
+
private isPreDecodeSensor;
|
|
1784
|
+
private isPostDecodeSensor;
|
|
1785
|
+
getSensorCountByPhase(): {
|
|
1786
|
+
preDecodeCount: number;
|
|
1787
|
+
postDecodeCount: number;
|
|
1788
|
+
};
|
|
1789
|
+
clear(): void;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
declare class SensorDiscoveryService implements OnApplicationBootstrap {
|
|
1793
|
+
private readonly discovery;
|
|
1794
|
+
private readonly reflector;
|
|
1795
|
+
private readonly registry;
|
|
1796
|
+
private readonly logger;
|
|
1797
|
+
constructor(discovery: DiscoveryService, reflector: Reflector, registry: SensorRegistry);
|
|
1798
|
+
onApplicationBootstrap(): void;
|
|
1799
|
+
}
|
|
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
|
+
|
|
1823
|
+
type index$5_AxisDecoded = AxisDecoded;
|
|
1824
|
+
type index$5_AxisEffect = AxisEffect;
|
|
1825
|
+
type index$5_AxisObservation = AxisObservation;
|
|
1826
|
+
declare const index$5_BAND: typeof BAND;
|
|
1827
|
+
type index$5_HandlerDiscoveryService = HandlerDiscoveryService;
|
|
1828
|
+
declare const index$5_HandlerDiscoveryService: typeof HandlerDiscoveryService;
|
|
1829
|
+
type index$5_IntentRouter = IntentRouter;
|
|
1830
|
+
declare const index$5_IntentRouter: typeof IntentRouter;
|
|
1831
|
+
type index$5_ObservationSensor = ObservationSensor;
|
|
1832
|
+
type index$5_ObservationStage = ObservationStage;
|
|
1833
|
+
declare const index$5_PRE_DECODE_BOUNDARY: typeof PRE_DECODE_BOUNDARY;
|
|
1834
|
+
type index$5_SensorBand = SensorBand;
|
|
1835
|
+
type index$5_SensorDiscoveryService = SensorDiscoveryService;
|
|
1836
|
+
declare const index$5_SensorDiscoveryService: typeof SensorDiscoveryService;
|
|
1837
|
+
type index$5_SensorRegistry = SensorRegistry;
|
|
1838
|
+
declare const index$5_SensorRegistry: typeof SensorRegistry;
|
|
1839
|
+
declare const index$5_createObservation: typeof createObservation;
|
|
1840
|
+
declare const index$5_endStage: typeof endStage;
|
|
1841
|
+
declare const index$5_finalizeObservation: typeof finalizeObservation;
|
|
1842
|
+
declare const index$5_recordSensor: typeof recordSensor;
|
|
1843
|
+
declare const index$5_startStage: typeof startStage;
|
|
1844
|
+
declare namespace index$5 {
|
|
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 };
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
interface PresenceDeclaration {
|
|
1849
|
+
softid: string;
|
|
1850
|
+
device_meta?: {
|
|
1851
|
+
fingerprint?: string;
|
|
1852
|
+
platform?: string;
|
|
1853
|
+
user_agent?: string;
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
interface PresenceChallenge {
|
|
1857
|
+
challenge_id: string;
|
|
1858
|
+
nonce: string;
|
|
1859
|
+
temporal_anchor: number;
|
|
1860
|
+
ttl_ms: number;
|
|
1861
|
+
expires_at: number;
|
|
1862
|
+
}
|
|
1863
|
+
interface PresenceProof {
|
|
1864
|
+
challenge_id: string;
|
|
1865
|
+
signature: string;
|
|
1866
|
+
public_key: string;
|
|
1867
|
+
kid?: string;
|
|
1868
|
+
}
|
|
1869
|
+
interface PresenceReceipt {
|
|
1870
|
+
presence_id: string;
|
|
1871
|
+
softid: string;
|
|
1872
|
+
anchor_reflection: string;
|
|
1873
|
+
scope: {
|
|
1874
|
+
ip?: string;
|
|
1875
|
+
device_fingerprint?: string;
|
|
1876
|
+
};
|
|
1877
|
+
issued_at: number;
|
|
1878
|
+
expires_at: number;
|
|
1879
|
+
renewed_at?: number;
|
|
1880
|
+
}
|
|
1881
|
+
type PresenceStatus = 'active' | 'expired' | 'revoked';
|
|
1882
|
+
interface WritHead {
|
|
1883
|
+
tid: string;
|
|
1884
|
+
seq: number;
|
|
1885
|
+
}
|
|
1886
|
+
interface WritBody {
|
|
1887
|
+
who: string;
|
|
1888
|
+
act: string;
|
|
1889
|
+
res: string;
|
|
1890
|
+
law: string;
|
|
1891
|
+
}
|
|
1892
|
+
interface WritMeta {
|
|
1893
|
+
iat: number;
|
|
1894
|
+
exp: number;
|
|
1895
|
+
prev: string;
|
|
1896
|
+
}
|
|
1897
|
+
interface WritSignature {
|
|
1898
|
+
alg: 'ed25519';
|
|
1899
|
+
value: string;
|
|
1900
|
+
kid?: string;
|
|
1901
|
+
}
|
|
1902
|
+
interface Writ {
|
|
1903
|
+
head: WritHead;
|
|
1904
|
+
body: WritBody;
|
|
1905
|
+
meta: WritMeta;
|
|
1906
|
+
sig: WritSignature;
|
|
1907
|
+
}
|
|
1908
|
+
type GrantType = 'sovereign' | 'delegated' | 'system';
|
|
1909
|
+
interface GrantCapability {
|
|
1910
|
+
oec: string;
|
|
1911
|
+
scope: string;
|
|
1912
|
+
limit?: {
|
|
1913
|
+
rate?: string;
|
|
1914
|
+
amount?: number;
|
|
1915
|
+
depth?: string;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
interface GrantMeta {
|
|
1919
|
+
iat: number;
|
|
1920
|
+
exp: number;
|
|
1921
|
+
revocable: boolean;
|
|
1922
|
+
version: number;
|
|
1923
|
+
contract_ref?: string;
|
|
1924
|
+
}
|
|
1925
|
+
interface Grant {
|
|
1926
|
+
grant_id: string;
|
|
1927
|
+
issuer: string;
|
|
1928
|
+
subject: string;
|
|
1929
|
+
grant_type: GrantType;
|
|
1930
|
+
caps: GrantCapability[];
|
|
1931
|
+
meta: GrantMeta;
|
|
1932
|
+
sig: WritSignature;
|
|
1933
|
+
}
|
|
1934
|
+
type GrantStatus = 'active' | 'revoked' | 'expired';
|
|
1935
|
+
interface LoomReceipt {
|
|
1936
|
+
receipt_id: string;
|
|
1937
|
+
writ_hash: string;
|
|
1938
|
+
thread_id: string;
|
|
1939
|
+
sequence: number;
|
|
1940
|
+
effect: string;
|
|
1941
|
+
hash: string;
|
|
1942
|
+
prev_hash: string | null;
|
|
1943
|
+
executed_at: number;
|
|
1944
|
+
metadata?: Record<string, unknown>;
|
|
1945
|
+
}
|
|
1946
|
+
interface ThreadState {
|
|
1947
|
+
thread_id: string;
|
|
1948
|
+
softid: string;
|
|
1949
|
+
last_receipt_hash: string;
|
|
1950
|
+
sequence: number;
|
|
1951
|
+
updated_at: number;
|
|
1952
|
+
}
|
|
1953
|
+
type RevocationTargetType = 'grant' | 'presence' | 'softid';
|
|
1954
|
+
interface Revocation {
|
|
1955
|
+
revocation_id: string;
|
|
1956
|
+
target_type: RevocationTargetType;
|
|
1957
|
+
target_id: string;
|
|
1958
|
+
issuer_softid: string;
|
|
1959
|
+
reason?: string;
|
|
1960
|
+
effective_at: number;
|
|
1961
|
+
sig_value: string;
|
|
1962
|
+
}
|
|
1963
|
+
interface LoomValidationResult {
|
|
1964
|
+
valid: boolean;
|
|
1965
|
+
error?: string;
|
|
1966
|
+
code?: string;
|
|
1967
|
+
}
|
|
1968
|
+
interface PresenceVerifyResult extends LoomValidationResult {
|
|
1969
|
+
presence?: PresenceReceipt;
|
|
1970
|
+
}
|
|
1971
|
+
interface WritValidationResult extends LoomValidationResult {
|
|
1972
|
+
writ?: Writ;
|
|
1973
|
+
gate_failed?: 'temporal' | 'causal' | 'legal' | 'authentic';
|
|
1974
|
+
}
|
|
1975
|
+
interface GrantValidationResult extends LoomValidationResult {
|
|
1976
|
+
grant?: Grant;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
declare function deriveAnchorReflection(softid: string, context?: string, scope?: string): string;
|
|
1980
|
+
declare function canonicalizeWrit(writ: Omit<Writ, 'sig'>): string;
|
|
1981
|
+
declare function canonicalizeGrant(grant: Omit<Grant, 'sig'>): string;
|
|
1982
|
+
|
|
1983
|
+
type index$4_Grant = Grant;
|
|
1984
|
+
type index$4_GrantCapability = GrantCapability;
|
|
1985
|
+
type index$4_GrantMeta = GrantMeta;
|
|
1986
|
+
type index$4_GrantStatus = GrantStatus;
|
|
1987
|
+
type index$4_GrantType = GrantType;
|
|
1988
|
+
type index$4_GrantValidationResult = GrantValidationResult;
|
|
1989
|
+
type index$4_LoomReceipt = LoomReceipt;
|
|
1990
|
+
type index$4_LoomValidationResult = LoomValidationResult;
|
|
1991
|
+
declare const index$4_PROOF_LOOM: typeof PROOF_LOOM;
|
|
1992
|
+
type index$4_PresenceChallenge = PresenceChallenge;
|
|
1993
|
+
type index$4_PresenceDeclaration = PresenceDeclaration;
|
|
1994
|
+
type index$4_PresenceProof = PresenceProof;
|
|
1995
|
+
type index$4_PresenceReceipt = PresenceReceipt;
|
|
1996
|
+
type index$4_PresenceStatus = PresenceStatus;
|
|
1997
|
+
type index$4_PresenceVerifyResult = PresenceVerifyResult;
|
|
1998
|
+
type index$4_Revocation = Revocation;
|
|
1999
|
+
type index$4_RevocationTargetType = RevocationTargetType;
|
|
2000
|
+
type index$4_ThreadState = ThreadState;
|
|
2001
|
+
type index$4_Writ = Writ;
|
|
2002
|
+
type index$4_WritBody = WritBody;
|
|
2003
|
+
type index$4_WritHead = WritHead;
|
|
2004
|
+
type index$4_WritMeta = WritMeta;
|
|
2005
|
+
type index$4_WritSignature = WritSignature;
|
|
2006
|
+
type index$4_WritValidationResult = WritValidationResult;
|
|
2007
|
+
declare const index$4_canonicalizeGrant: typeof canonicalizeGrant;
|
|
2008
|
+
declare const index$4_canonicalizeWrit: typeof canonicalizeWrit;
|
|
2009
|
+
declare const index$4_deriveAnchorReflection: typeof deriveAnchorReflection;
|
|
2010
|
+
declare namespace index$4 {
|
|
2011
|
+
export { type index$4_Grant as Grant, type index$4_GrantCapability as GrantCapability, type index$4_GrantMeta as GrantMeta, type index$4_GrantStatus as GrantStatus, type index$4_GrantType as GrantType, type index$4_GrantValidationResult as GrantValidationResult, type index$4_LoomReceipt as LoomReceipt, type index$4_LoomValidationResult as LoomValidationResult, index$4_PROOF_LOOM as PROOF_LOOM, type index$4_PresenceChallenge as PresenceChallenge, type index$4_PresenceDeclaration as PresenceDeclaration, type index$4_PresenceProof as PresenceProof, type index$4_PresenceReceipt as PresenceReceipt, type index$4_PresenceStatus as PresenceStatus, type index$4_PresenceVerifyResult as PresenceVerifyResult, type index$4_Revocation as Revocation, type index$4_RevocationTargetType as RevocationTargetType, TLV_LOOM_PRESENCE_ID as TLV_PRESENCE_ID, TLV_LOOM_THREAD_HASH as TLV_THREAD_HASH, TLV_LOOM_WRIT as TLV_WRIT, type index$4_ThreadState as ThreadState, type index$4_Writ as Writ, type index$4_WritBody as WritBody, type index$4_WritHead as WritHead, type index$4_WritMeta as WritMeta, type index$4_WritSignature as WritSignature, type index$4_WritValidationResult as WritValidationResult, index$4_canonicalizeGrant as canonicalizeGrant, index$4_canonicalizeWrit as canonicalizeWrit, index$4_deriveAnchorReflection as deriveAnchorReflection };
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
declare enum BodyProfile {
|
|
2015
|
+
RAW = 0,
|
|
2016
|
+
TLV_MAP = 1,
|
|
2017
|
+
OBJ = 2,
|
|
2018
|
+
ARR = 3
|
|
2019
|
+
}
|
|
2020
|
+
interface BodyProfileValidation {
|
|
2021
|
+
valid: boolean;
|
|
2022
|
+
error?: string;
|
|
2023
|
+
profile: BodyProfile;
|
|
2024
|
+
}
|
|
2025
|
+
declare class BodyProfileValidator {
|
|
2026
|
+
private readonly logger;
|
|
2027
|
+
validate(body: Uint8Array, profile: BodyProfile): BodyProfileValidation;
|
|
2028
|
+
private validateRaw;
|
|
2029
|
+
private validateTlvMap;
|
|
2030
|
+
private validateObj;
|
|
2031
|
+
private validateArr;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
type index$3_AccessProfile = AccessProfile;
|
|
2035
|
+
declare const index$3_AccessProfileZ: typeof AccessProfileZ;
|
|
2036
|
+
type index$3_AxisContext = AxisContext;
|
|
2037
|
+
declare const index$3_AxisContextZ: typeof AxisContextZ;
|
|
2038
|
+
type index$3_AxisError = AxisError;
|
|
2039
|
+
declare const index$3_AxisErrorZ: typeof AxisErrorZ;
|
|
2040
|
+
type index$3_BodyBudgetInput = BodyBudgetInput;
|
|
2041
|
+
declare const index$3_BodyBudgetInputZ: typeof BodyBudgetInputZ;
|
|
2042
|
+
type index$3_BodyBudgetPolicy = BodyBudgetPolicy;
|
|
2043
|
+
declare const index$3_BodyBudgetPolicyZ: typeof BodyBudgetPolicyZ;
|
|
2044
|
+
type index$3_BodyProfile = BodyProfile;
|
|
2045
|
+
declare const index$3_BodyProfile: typeof BodyProfile;
|
|
2046
|
+
type index$3_BodyProfileValidation = BodyProfileValidation;
|
|
2047
|
+
type index$3_BodyProfileValidator = BodyProfileValidator;
|
|
2048
|
+
declare const index$3_BodyProfileValidator: typeof BodyProfileValidator;
|
|
2049
|
+
declare const index$3_BodyProfileZ: typeof BodyProfileZ;
|
|
2050
|
+
type index$3_Capsule = Capsule;
|
|
2051
|
+
type index$3_CapsuleClaims = CapsuleClaims;
|
|
2052
|
+
declare const index$3_CapsuleClaimsZ: typeof CapsuleClaimsZ;
|
|
2053
|
+
type index$3_CapsuleValidationResult = CapsuleValidationResult;
|
|
2054
|
+
declare const index$3_CapsuleValidationResultZ: typeof CapsuleValidationResultZ;
|
|
2055
|
+
type index$3_CapsuleVerifyResult = CapsuleVerifyResult;
|
|
2056
|
+
declare const index$3_CapsuleVerifyResultZ: typeof CapsuleVerifyResultZ;
|
|
2057
|
+
type index$3_CapsuleVerifySensorInput = CapsuleVerifySensorInput;
|
|
2058
|
+
declare const index$3_CapsuleVerifySensorInputZ: typeof CapsuleVerifySensorInputZ;
|
|
2059
|
+
declare const index$3_CapsuleZ: typeof CapsuleZ;
|
|
2060
|
+
type index$3_ChunkHashInput = ChunkHashInput;
|
|
2061
|
+
declare const index$3_ChunkHashInputZ: typeof ChunkHashInputZ;
|
|
2062
|
+
type index$3_CountryBlockDecision = CountryBlockDecision;
|
|
2063
|
+
declare const index$3_CountryBlockDecisionZ: typeof CountryBlockDecisionZ;
|
|
2064
|
+
type index$3_CountryBlockSensorInput = CountryBlockSensorInput;
|
|
2065
|
+
declare const index$3_CountryBlockSensorInputZ: typeof CountryBlockSensorInputZ;
|
|
2066
|
+
type index$3_EntropySensorInput = EntropySensorInput;
|
|
2067
|
+
declare const index$3_EntropySensorInputZ: typeof EntropySensorInputZ;
|
|
2068
|
+
declare const index$3_ExecutionMetricsZ: typeof ExecutionMetricsZ;
|
|
2069
|
+
type index$3_IPReputation = IPReputation;
|
|
2070
|
+
type index$3_IPReputationInput = IPReputationInput;
|
|
2071
|
+
declare const index$3_IPReputationInputZ: typeof IPReputationInputZ;
|
|
2072
|
+
declare const index$3_IPReputationZ: typeof IPReputationZ;
|
|
2073
|
+
type index$3_IntentPolicy = IntentPolicy;
|
|
2074
|
+
type index$3_IntentPolicyDecision = IntentPolicyDecision;
|
|
2075
|
+
declare const index$3_IntentPolicyDecisionZ: typeof IntentPolicyDecisionZ;
|
|
2076
|
+
type index$3_IntentPolicySensorInput = IntentPolicySensorInput;
|
|
2077
|
+
declare const index$3_IntentPolicySensorInputZ: typeof IntentPolicySensorInputZ;
|
|
2078
|
+
declare const index$3_IntentPolicyZ: typeof IntentPolicyZ;
|
|
2079
|
+
type index$3_IntentSchema = IntentSchema;
|
|
2080
|
+
declare const index$3_IntentSchemaZ: typeof IntentSchemaZ;
|
|
2081
|
+
type index$3_Passport = Passport;
|
|
2082
|
+
declare const index$3_PassportZ: typeof PassportZ;
|
|
2083
|
+
type index$3_ProofKind = ProofKind;
|
|
2084
|
+
declare const index$3_ProofKindZ: typeof ProofKindZ;
|
|
2085
|
+
type index$3_ProofPresenceInput = ProofPresenceInput;
|
|
2086
|
+
declare const index$3_ProofPresenceInputZ: typeof ProofPresenceInputZ;
|
|
2087
|
+
type index$3_ProofType = ProofType;
|
|
2088
|
+
declare const index$3_ProofType: typeof ProofType;
|
|
2089
|
+
type index$3_ProtocolStrictInput = ProtocolStrictInput;
|
|
2090
|
+
declare const index$3_ProtocolStrictInputZ: typeof ProtocolStrictInputZ;
|
|
2091
|
+
type index$3_RateLimitConfig = RateLimitConfig;
|
|
2092
|
+
declare const index$3_RateLimitConfigZ: typeof RateLimitConfigZ;
|
|
2093
|
+
type index$3_RateLimitInput = RateLimitInput;
|
|
2094
|
+
declare const index$3_RateLimitInputZ: typeof RateLimitInputZ;
|
|
2095
|
+
type index$3_RateLimitProfile = RateLimitProfile;
|
|
2096
|
+
declare const index$3_RateLimitProfileZ: typeof RateLimitProfileZ;
|
|
2097
|
+
type index$3_ScanBurstDecision = ScanBurstDecision;
|
|
2098
|
+
declare const index$3_ScanBurstDecisionZ: typeof ScanBurstDecisionZ;
|
|
2099
|
+
type index$3_ScanBurstSensorInput = ScanBurstSensorInput;
|
|
2100
|
+
declare const index$3_ScanBurstSensorInputZ: typeof ScanBurstSensorInputZ;
|
|
2101
|
+
type index$3_SchemaField = SchemaField;
|
|
2102
|
+
type index$3_SchemaFieldKind = SchemaFieldKind;
|
|
2103
|
+
declare const index$3_SchemaFieldKindZ: typeof SchemaFieldKindZ;
|
|
2104
|
+
declare const index$3_SchemaFieldZ: typeof SchemaFieldZ;
|
|
2105
|
+
type index$3_Scope = Scope;
|
|
2106
|
+
declare const index$3_ScopeZ: typeof ScopeZ;
|
|
2107
|
+
type index$3_SensitivityLevel = SensitivityLevel;
|
|
2108
|
+
declare const index$3_SensitivityLevelZ: typeof SensitivityLevelZ;
|
|
2109
|
+
type index$3_SensorChainInput = SensorChainInput;
|
|
2110
|
+
declare const index$3_SensorChainInputZ: typeof SensorChainInputZ;
|
|
2111
|
+
declare const index$3_SensorDecisionWithMetadataZ: typeof SensorDecisionWithMetadataZ;
|
|
2112
|
+
declare const index$3_SensorDecisionZ: typeof SensorDecisionZ;
|
|
2113
|
+
type index$3_SensorResult = SensorResult;
|
|
2114
|
+
declare const index$3_SensorResultZ: typeof SensorResultZ;
|
|
2115
|
+
type index$3_UploadSession = UploadSession;
|
|
2116
|
+
declare const index$3_UploadSessionZ: typeof UploadSessionZ;
|
|
2117
|
+
type index$3_UploadStatus = UploadStatus;
|
|
2118
|
+
declare const index$3_UploadStatusZ: typeof UploadStatusZ;
|
|
2119
|
+
type index$3_WsHandshakeDecision = WsHandshakeDecision;
|
|
2120
|
+
declare const index$3_WsHandshakeDecisionZ: typeof WsHandshakeDecisionZ;
|
|
2121
|
+
type index$3_WsHandshakeInput = WsHandshakeInput;
|
|
2122
|
+
declare const index$3_WsHandshakeInputZ: typeof WsHandshakeInputZ;
|
|
2123
|
+
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, index$3_ProofType 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
|
+
}
|
|
2126
|
+
|
|
2127
|
+
declare const index$2_CAPABILITIES: typeof CAPABILITIES;
|
|
2128
|
+
type index$2_Capability = Capability;
|
|
2129
|
+
declare const index$2_INTENT_REQUIREMENTS: typeof INTENT_REQUIREMENTS;
|
|
2130
|
+
declare const index$2_PROOF_CAPABILITIES: typeof PROOF_CAPABILITIES;
|
|
2131
|
+
declare const index$2_canAccessResource: typeof canAccessResource;
|
|
2132
|
+
declare const index$2_hasScope: typeof hasScope;
|
|
2133
|
+
declare const index$2_parseScope: typeof parseScope;
|
|
2134
|
+
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 };
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
declare class AccessProfileResolverSensor implements AxisSensor {
|
|
2139
|
+
readonly name = "AccessProfileResolverSensor";
|
|
2140
|
+
readonly order: number;
|
|
2141
|
+
supports(): boolean;
|
|
2142
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
declare class BodyBudgetSensor implements AxisSensor {
|
|
2146
|
+
readonly name = "BodyBudgetSensor";
|
|
2147
|
+
readonly order: number;
|
|
2148
|
+
supports(input: SensorInput): boolean;
|
|
2149
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
declare class CapabilityEnforcementSensor implements AxisSensor {
|
|
2153
|
+
private readonly logger;
|
|
2154
|
+
readonly name = "CapabilityEnforcementSensor";
|
|
2155
|
+
readonly order: number;
|
|
2156
|
+
supports(input: SensorInput): boolean;
|
|
2157
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2158
|
+
private getRequiredCapabilities;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
declare class ChunkHashSensor implements AxisSensor {
|
|
2162
|
+
readonly name = "ChunkHashSensor";
|
|
2163
|
+
readonly order: number;
|
|
2164
|
+
supports(input: SensorInput): boolean;
|
|
2165
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
declare class EntropySensor implements AxisSensor {
|
|
2169
|
+
private readonly logger;
|
|
2170
|
+
private readonly MIN_ENTROPY_THRESHOLD;
|
|
2171
|
+
readonly name = "EntropySensor";
|
|
2172
|
+
readonly order: number;
|
|
2173
|
+
private calculateEntropy;
|
|
2174
|
+
private hasSequentialPattern;
|
|
2175
|
+
private hasRepeatedPattern;
|
|
2176
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2177
|
+
static generateSecureRandom(length: number): Uint8Array;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
declare class ExecutionTimeoutSensor implements AxisSensor {
|
|
2181
|
+
private readonly logger;
|
|
2182
|
+
readonly name = "ExecutionTimeoutSensor";
|
|
2183
|
+
readonly order: number;
|
|
2184
|
+
supports(input: SensorInput): boolean;
|
|
2185
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2186
|
+
static isExpired(ctx: {
|
|
2187
|
+
deadline?: number;
|
|
2188
|
+
}): boolean;
|
|
2189
|
+
static getRemainingMs(ctx: {
|
|
2190
|
+
deadline?: number;
|
|
2191
|
+
}): number;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
declare class FrameBudgetSensor implements AxisSensor {
|
|
2195
|
+
private readonly config;
|
|
2196
|
+
readonly name = "FrameBudgetSensor";
|
|
2197
|
+
readonly order: number;
|
|
2198
|
+
constructor(config: ConfigService);
|
|
2199
|
+
supports(input: SensorInput): boolean;
|
|
2200
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
declare class FrameHeaderSanitySensor implements AxisSensor {
|
|
2204
|
+
readonly name = "FrameHeaderSanitySensor";
|
|
2205
|
+
readonly order: number;
|
|
2206
|
+
supports(input: SensorInput): boolean;
|
|
2207
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2208
|
+
private bufferEqual;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
declare class HeaderTLVLimitSensor implements AxisSensor {
|
|
2212
|
+
readonly name = "HeaderTLVLimitSensor";
|
|
2213
|
+
readonly order: number;
|
|
2214
|
+
private readonly MAX_TLVS;
|
|
2215
|
+
supports(input: SensorInput): boolean;
|
|
2216
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
declare class IntentAllowlistSensor implements AxisSensor {
|
|
2220
|
+
readonly name = "IntentAllowlistSensor";
|
|
2221
|
+
readonly order: number;
|
|
2222
|
+
supports(input: SensorInput): boolean;
|
|
2223
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
declare class IntentRegistrySensor implements AxisSensor {
|
|
2227
|
+
private readonly router;
|
|
2228
|
+
readonly name = "IntentRegistrySensor";
|
|
2229
|
+
readonly order: number;
|
|
2230
|
+
constructor(router: IntentRouter);
|
|
2231
|
+
supports(input: SensorInput): boolean;
|
|
2232
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
declare class ProofPresenceSensor implements AxisSensor {
|
|
2236
|
+
readonly name = "ProofPresenceSensor";
|
|
2237
|
+
readonly order: number;
|
|
2238
|
+
supports(input: ProofPresenceInput): boolean;
|
|
2239
|
+
run(input: ProofPresenceInput): Promise<SensorDecision>;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
declare class ProtocolStrictSensor implements AxisSensor, OnModuleInit {
|
|
2243
|
+
private readonly config;
|
|
2244
|
+
private readonly logger;
|
|
2245
|
+
readonly name = "ProtocolStrictSensor";
|
|
2246
|
+
readonly order: number;
|
|
2247
|
+
private protocolMagic;
|
|
2248
|
+
private protocolVersion;
|
|
2249
|
+
constructor(config: ConfigService);
|
|
2250
|
+
static validateMagic(chunk: Uint8Array, expected: Uint8Array): {
|
|
2251
|
+
valid: boolean;
|
|
2252
|
+
actual?: string;
|
|
2253
|
+
};
|
|
2254
|
+
static validateVersion(version: number, expected: number): boolean;
|
|
2255
|
+
onModuleInit(): void;
|
|
2256
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2257
|
+
private buffersEqual;
|
|
2258
|
+
private isValidContentType;
|
|
2259
|
+
private isValidFlags;
|
|
2260
|
+
private checkVarintEncoding;
|
|
2261
|
+
private checkTLVOrdering;
|
|
2262
|
+
private checkForClientVersion;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
declare class ReceiptPolicySensor implements AxisSensor {
|
|
2266
|
+
readonly name = "ReceiptPolicySensor";
|
|
2267
|
+
readonly order: number;
|
|
2268
|
+
supports(): boolean;
|
|
2269
|
+
run(): Promise<SensorDecision>;
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
declare class SchemaValidationSensor implements AxisSensor {
|
|
2273
|
+
readonly name = "SchemaValidationSensor";
|
|
2274
|
+
readonly order: number;
|
|
2275
|
+
supports(input: any): boolean;
|
|
2276
|
+
run(input: any): Promise<{
|
|
2277
|
+
action: 'ALLOW';
|
|
2278
|
+
} | {
|
|
2279
|
+
action: 'DENY';
|
|
2280
|
+
code: string;
|
|
2281
|
+
reason: string;
|
|
2282
|
+
}>;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
declare class StreamScopeSensor implements AxisSensor {
|
|
2286
|
+
readonly name = "StreamScopeSensor";
|
|
2287
|
+
readonly order: number;
|
|
2288
|
+
supports(): boolean;
|
|
2289
|
+
run(): Promise<SensorDecision>;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
declare class TLVParseSensor implements AxisSensor {
|
|
2293
|
+
readonly name = "TLVParseSensor";
|
|
2294
|
+
readonly order: number;
|
|
2295
|
+
supports(input: SensorInput): boolean;
|
|
2296
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2297
|
+
private validateCanonicalTLV;
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
declare class VarintHardeningSensor implements AxisSensor {
|
|
2301
|
+
readonly name = "VarintHardeningSensor";
|
|
2302
|
+
readonly order: number;
|
|
2303
|
+
private readonly MAX_VARINT_BYTES;
|
|
2304
|
+
supports(input: SensorInput): boolean;
|
|
2305
|
+
run(input: SensorInput): Promise<SensorDecision>;
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
type index$1_AccessProfileResolverSensor = AccessProfileResolverSensor;
|
|
2309
|
+
declare const index$1_AccessProfileResolverSensor: typeof AccessProfileResolverSensor;
|
|
2310
|
+
type index$1_BodyBudgetSensor = BodyBudgetSensor;
|
|
2311
|
+
declare const index$1_BodyBudgetSensor: typeof BodyBudgetSensor;
|
|
2312
|
+
type index$1_CapabilityEnforcementSensor = CapabilityEnforcementSensor;
|
|
2313
|
+
declare const index$1_CapabilityEnforcementSensor: typeof CapabilityEnforcementSensor;
|
|
2314
|
+
type index$1_ChunkHashSensor = ChunkHashSensor;
|
|
2315
|
+
declare const index$1_ChunkHashSensor: typeof ChunkHashSensor;
|
|
2316
|
+
type index$1_EntropySensor = EntropySensor;
|
|
2317
|
+
declare const index$1_EntropySensor: typeof EntropySensor;
|
|
2318
|
+
type index$1_ExecutionTimeoutSensor = ExecutionTimeoutSensor;
|
|
2319
|
+
declare const index$1_ExecutionTimeoutSensor: typeof ExecutionTimeoutSensor;
|
|
2320
|
+
type index$1_FrameBudgetSensor = FrameBudgetSensor;
|
|
2321
|
+
declare const index$1_FrameBudgetSensor: typeof FrameBudgetSensor;
|
|
2322
|
+
type index$1_FrameHeaderSanitySensor = FrameHeaderSanitySensor;
|
|
2323
|
+
declare const index$1_FrameHeaderSanitySensor: typeof FrameHeaderSanitySensor;
|
|
2324
|
+
type index$1_HeaderTLVLimitSensor = HeaderTLVLimitSensor;
|
|
2325
|
+
declare const index$1_HeaderTLVLimitSensor: typeof HeaderTLVLimitSensor;
|
|
2326
|
+
type index$1_IntentAllowlistSensor = IntentAllowlistSensor;
|
|
2327
|
+
declare const index$1_IntentAllowlistSensor: typeof IntentAllowlistSensor;
|
|
2328
|
+
type index$1_IntentRegistrySensor = IntentRegistrySensor;
|
|
2329
|
+
declare const index$1_IntentRegistrySensor: typeof IntentRegistrySensor;
|
|
2330
|
+
type index$1_ProofPresenceSensor = ProofPresenceSensor;
|
|
2331
|
+
declare const index$1_ProofPresenceSensor: typeof ProofPresenceSensor;
|
|
2332
|
+
type index$1_ProtocolStrictSensor = ProtocolStrictSensor;
|
|
2333
|
+
declare const index$1_ProtocolStrictSensor: typeof ProtocolStrictSensor;
|
|
2334
|
+
type index$1_ReceiptPolicySensor = ReceiptPolicySensor;
|
|
2335
|
+
declare const index$1_ReceiptPolicySensor: typeof ReceiptPolicySensor;
|
|
2336
|
+
type index$1_SchemaValidationSensor = SchemaValidationSensor;
|
|
2337
|
+
declare const index$1_SchemaValidationSensor: typeof SchemaValidationSensor;
|
|
2338
|
+
type index$1_StreamScopeSensor = StreamScopeSensor;
|
|
2339
|
+
declare const index$1_StreamScopeSensor: typeof StreamScopeSensor;
|
|
2340
|
+
type index$1_TLVParseSensor = TLVParseSensor;
|
|
2341
|
+
declare const index$1_TLVParseSensor: typeof TLVParseSensor;
|
|
2342
|
+
type index$1_VarintHardeningSensor = VarintHardeningSensor;
|
|
2343
|
+
declare const index$1_VarintHardeningSensor: typeof VarintHardeningSensor;
|
|
2344
|
+
declare namespace index$1 {
|
|
2345
|
+
export { index$1_AccessProfileResolverSensor as AccessProfileResolverSensor, index$1_BodyBudgetSensor as BodyBudgetSensor, index$1_CapabilityEnforcementSensor as CapabilityEnforcementSensor, index$1_ChunkHashSensor as ChunkHashSensor, index$1_EntropySensor as EntropySensor, index$1_ExecutionTimeoutSensor as ExecutionTimeoutSensor, index$1_FrameBudgetSensor as FrameBudgetSensor, index$1_FrameHeaderSanitySensor as FrameHeaderSanitySensor, index$1_HeaderTLVLimitSensor as HeaderTLVLimitSensor, index$1_IntentAllowlistSensor as IntentAllowlistSensor, index$1_IntentRegistrySensor as IntentRegistrySensor, index$1_ProofPresenceSensor as ProofPresenceSensor, index$1_ProtocolStrictSensor as ProtocolStrictSensor, index$1_ReceiptPolicySensor as ReceiptPolicySensor, index$1_SchemaValidationSensor as SchemaValidationSensor, index$1_StreamScopeSensor as StreamScopeSensor, index$1_TLVParseSensor as TLVParseSensor, index$1_VarintHardeningSensor as VarintHardeningSensor };
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
type AxisTlvDtoCtor<T = object> = new (...args: never[]) => T;
|
|
2349
|
+
declare function encodeAxisTlvDto<T extends object>(dtoClass: AxisTlvDtoCtor<T>, data: Partial<Record<keyof T, unknown>>): Uint8Array;
|
|
2350
|
+
|
|
2351
|
+
declare const index_encodeAxisTlvDto: typeof encodeAxisTlvDto;
|
|
2352
|
+
declare namespace index {
|
|
2353
|
+
export { index_encodeAxisTlvDto as encodeAxisTlvDto };
|
|
2354
|
+
}
|
|
2355
|
+
|
|
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 };
|