@aikdna/kdna-core 0.19.0 → 0.21.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/src/types.d.ts CHANGED
@@ -240,7 +240,6 @@ export interface KDNAManifest {
240
240
  [key: string]: any;
241
241
  };
242
242
  content_digest?: string;
243
- signature?: string;
244
243
  [key: string]: any;
245
244
  }
246
245
 
@@ -292,7 +291,6 @@ export interface KdnaAssetVerifyResult {
292
291
  manifest: KDNAManifest | null;
293
292
  asset_digest: string;
294
293
  content_digest: string;
295
- signature_valid: boolean | null;
296
294
  }
297
295
 
298
296
  export interface KdnaAssetIndexProfile {
@@ -338,7 +336,6 @@ export interface KdnaAssetReader {
338
336
  options?: {
339
337
  asset_digest?: string;
340
338
  content_digest?: string;
341
- requireSignature?: boolean;
342
339
  requireDecryption?: boolean;
343
340
  } & KdnaDecryptOptions,
344
341
  ): KdnaAssetVerifyResult;
@@ -347,7 +344,6 @@ export interface KdnaAssetReader {
347
344
  options?: {
348
345
  asset_digest?: string;
349
346
  content_digest?: string;
350
- requireSignature?: boolean;
351
347
  requireDecryption?: boolean;
352
348
  } & KdnaDecryptOptions,
353
349
  ): Promise<KdnaAssetVerifyResult>;
@@ -736,7 +732,6 @@ export interface KDNAInspectResult {
736
732
  entries: string[];
737
733
  asset_digest: string;
738
734
  content_digest: string;
739
- signature_valid: boolean | null;
740
735
  ok: boolean | null;
741
736
  errors: string[];
742
737
  warnings: string[];
@@ -798,9 +793,8 @@ export interface KDNARuntimeCapsule {
798
793
  judgment_version: string;
799
794
  };
800
795
  digests: KDNADigestEvidence;
801
- signature: { state: 'verified' | 'not_checked' | 'absent'; issuer?: string };
796
+ signature: { state: 'absent' };
802
797
  access: 'public' | 'licensed' | 'remote';
803
- risk_level: string | null;
804
798
  profile: 'index' | 'compact' | 'scenario' | 'full';
805
799
  context: Record<string, any>;
806
800
  trace: {
@@ -810,8 +804,13 @@ export interface KDNARuntimeCapsule {
810
804
  input_kind: 'packaged_file' | 'packaged_bytes';
811
805
  runtime_eligible: true;
812
806
  schema_valid: true;
813
- signature_state: 'verified' | 'not_checked' | 'absent';
807
+ signature_state: 'absent';
814
808
  profile: 'index' | 'compact' | 'scenario' | 'full';
809
+ projection_report?: {
810
+ status: 'complete' | 'partial';
811
+ omitted: Array<{ path: string; count: number }>;
812
+ omitted_total: number;
813
+ };
815
814
  };
816
815
  }
817
816
 
@@ -853,7 +852,7 @@ export function buildRuntimeCapsule(input: {
853
852
  projection: Record<string, any>;
854
853
  manifest: KDNAManifest;
855
854
  digests: KDNADigestEvidence;
856
- signature: { state: 'verified' | 'not_checked' | 'absent'; issuer?: string };
855
+ signature?: { state: 'absent' };
857
856
  inputKind: 'packaged_file' | 'packaged_bytes';
858
857
  loadedAt?: string;
859
858
  schemaValid?: boolean;
@@ -1297,7 +1296,6 @@ export function verifyAsset(
1297
1296
  options?: {
1298
1297
  asset_digest?: string;
1299
1298
  content_digest?: string;
1300
- requireSignature?: boolean;
1301
1299
  requireDecryption?: boolean;
1302
1300
  } & KdnaDecryptOptions,
1303
1301
  ): Promise<KdnaAssetVerifyResult>;
@@ -1306,7 +1304,6 @@ export function verifyAssetSync(
1306
1304
  options?: {
1307
1305
  asset_digest?: string;
1308
1306
  content_digest?: string;
1309
- requireSignature?: boolean;
1310
1307
  requireDecryption?: boolean;
1311
1308
  } & KdnaDecryptOptions,
1312
1309
  ): KdnaAssetVerifyResult;
@@ -1320,14 +1317,6 @@ export function verifyDigestSync(
1320
1317
  expectedDigest: string,
1321
1318
  options?: KdnaDecryptOptions,
1322
1319
  ): KdnaAssetVerifyResult;
1323
- export function verifySignature(
1324
- input: KDNAAssetInput,
1325
- options?: KdnaDecryptOptions,
1326
- ): Promise<KdnaAssetVerifyResult>;
1327
- export function verifySignatureSync(
1328
- input: KDNAAssetInput,
1329
- options?: KdnaDecryptOptions,
1330
- ): KdnaAssetVerifyResult;
1331
1320
  export function matchDomain(
1332
1321
  input: string,
1333
1322
  candidates: Array<KDNAAssetInput | KDNAInspectResult>,
@@ -1394,7 +1383,7 @@ export function inspect(
1394
1383
  input: string | Uint8Array,
1395
1384
  options?: Record<string, any>,
1396
1385
  ): Record<string, any>;
1397
- export const KDNA_LOADER_VERSION: '0.19.0';
1386
+ export const KDNA_LOADER_VERSION: '0.21.0';
1398
1387
  export const STRICT_LOADER_VERSION: RegExp;
1399
1388
  export function parseLoaderVersion(version: unknown): readonly [string, string, string] | null;
1400
1389
  export function compareLoaderVersions(left: string, right: string): -1 | 0 | 1;