@aikdna/kdna-core 0.11.1 → 0.12.1
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/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +63 -154
- package/package.json +7 -4
- package/schema/load-plan.schema.json +119 -0
- package/src/types.d.ts +50 -0
- package/src/v1/index.js +605 -17
- package/src/v1/index.mjs +2 -0
package/src/types.d.ts
CHANGED
|
@@ -507,6 +507,56 @@ export function isV1SourceDir(inputPath: string): boolean;
|
|
|
507
507
|
export function detectContainerFormat(inputPath: string): 'v1' | 'v2' | null;
|
|
508
508
|
export function inspect(inputPath: string, options?: Record<string, any>): Record<string, any>;
|
|
509
509
|
export function validate(inputPath: string, options?: Record<string, any>): Record<string, any>;
|
|
510
|
+
export interface KDNAV1LoadPlanIssue {
|
|
511
|
+
code: string;
|
|
512
|
+
severity: 'info' | 'warning' | 'blocking' | string;
|
|
513
|
+
message: string;
|
|
514
|
+
}
|
|
515
|
+
export interface KDNAV1LoadPlan {
|
|
516
|
+
kdna_version: string | null;
|
|
517
|
+
asset: {
|
|
518
|
+
asset_id: string | null;
|
|
519
|
+
asset_uid: string | null;
|
|
520
|
+
title: string | null;
|
|
521
|
+
version: string | null;
|
|
522
|
+
judgment_version: string | null;
|
|
523
|
+
};
|
|
524
|
+
access: 'public' | 'licensed' | 'remote' | string | null;
|
|
525
|
+
access_alias: string | null;
|
|
526
|
+
entitlement_profile: string | null;
|
|
527
|
+
state:
|
|
528
|
+
| 'ready'
|
|
529
|
+
| 'needs_password'
|
|
530
|
+
| 'needs_license'
|
|
531
|
+
| 'needs_account'
|
|
532
|
+
| 'needs_org_auth'
|
|
533
|
+
| 'needs_runtime'
|
|
534
|
+
| 'offline_grace'
|
|
535
|
+
| 'expired'
|
|
536
|
+
| 'revoked'
|
|
537
|
+
| 'invalid'
|
|
538
|
+
| string;
|
|
539
|
+
required_action:
|
|
540
|
+
| 'none'
|
|
541
|
+
| 'load'
|
|
542
|
+
| 'enter_password'
|
|
543
|
+
| 'install_receipt'
|
|
544
|
+
| 'sign_in_or_activate'
|
|
545
|
+
| 'sync'
|
|
546
|
+
| 'connect_runtime'
|
|
547
|
+
| 'migrate_legacy'
|
|
548
|
+
| 'block'
|
|
549
|
+
| string;
|
|
550
|
+
can_load_now: boolean;
|
|
551
|
+
projection_policy: 'minimal' | 'remote' | 'none' | string;
|
|
552
|
+
checks: Record<string, boolean>;
|
|
553
|
+
issues: KDNAV1LoadPlanIssue[];
|
|
554
|
+
source: {
|
|
555
|
+
kind: 'dir' | 'file' | string | null;
|
|
556
|
+
path: string;
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
export function planLoad(inputPath: string, options?: { password?: string; hasPassword?: boolean; entitlement?: Record<string, any> }): KDNAV1LoadPlan;
|
|
510
560
|
export function buildChecksumsV1(sourceDir: string): KDNAV1Checksums;
|
|
511
561
|
export function pack(sourceDir: string, outputPath: string): void;
|
|
512
562
|
export function unpack(inputPath: string, outputDir: string): void;
|