@hardkas/artifacts 0.6.0-alpha → 0.7.0-alpha

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +651 -19
  2. package/dist/index.js +203 -24
  3. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -39,8 +39,29 @@ declare const ArtifactLineageSchema: z.ZodObject<{
39
39
  parentArtifactId?: string | undefined;
40
40
  sequence?: number | undefined;
41
41
  }>;
42
+ declare const ScriptCapabilitySchema: z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>;
43
+ declare const ScriptMetadataSchema: z.ZodObject<{
44
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
45
+ version: z.ZodOptional<z.ZodString>;
46
+ experimental: z.ZodBoolean;
47
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
48
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ experimental: boolean;
51
+ language?: "native" | "silverscript" | "tockata" | undefined;
52
+ version?: string | undefined;
53
+ notes?: string[] | undefined;
54
+ consensusImpact?: "experimental" | "none" | undefined;
55
+ }, {
56
+ experimental: boolean;
57
+ language?: "native" | "silverscript" | "tockata" | undefined;
58
+ version?: string | undefined;
59
+ notes?: string[] | undefined;
60
+ consensusImpact?: "experimental" | "none" | undefined;
61
+ }>;
42
62
  declare const BaseArtifactSchema: z.ZodObject<{
43
63
  schema: z.ZodString;
64
+ schemaVersion: z.ZodOptional<z.ZodString>;
44
65
  hardkasVersion: z.ZodString;
45
66
  version: z.ZodLiteral<"1.0.0-alpha">;
46
67
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -67,13 +88,38 @@ declare const BaseArtifactSchema: z.ZodObject<{
67
88
  parentArtifactId?: string | undefined;
68
89
  sequence?: number | undefined;
69
90
  }>>;
91
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
93
+ workflowId: z.ZodOptional<z.ZodString>;
94
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
95
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
96
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
97
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
98
+ version: z.ZodOptional<z.ZodString>;
99
+ experimental: z.ZodBoolean;
100
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ experimental: boolean;
104
+ language?: "native" | "silverscript" | "tockata" | undefined;
105
+ version?: string | undefined;
106
+ notes?: string[] | undefined;
107
+ consensusImpact?: "experimental" | "none" | undefined;
108
+ }, {
109
+ experimental: boolean;
110
+ language?: "native" | "silverscript" | "tockata" | undefined;
111
+ version?: string | undefined;
112
+ notes?: string[] | undefined;
113
+ consensusImpact?: "experimental" | "none" | undefined;
114
+ }>>;
70
115
  }, "strip", z.ZodTypeAny, {
116
+ version: "1.0.0-alpha";
71
117
  schema: string;
72
118
  hardkasVersion: string;
73
- version: "1.0.0-alpha";
74
119
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
75
120
  mode: "simulated" | "real" | "readonly";
76
121
  createdAt: string;
122
+ schemaVersion?: string | undefined;
77
123
  hashVersion?: string | number | undefined;
78
124
  contentHash?: string | undefined;
79
125
  lineage?: {
@@ -83,13 +129,26 @@ declare const BaseArtifactSchema: z.ZodObject<{
83
129
  parentArtifactId?: string | undefined;
84
130
  sequence?: number | undefined;
85
131
  } | undefined;
132
+ parents?: string[] | undefined;
133
+ lineageDepth?: number | undefined;
134
+ workflowId?: string | undefined;
135
+ scriptProfile?: "experimental" | "standard" | undefined;
136
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
137
+ scriptMetadata?: {
138
+ experimental: boolean;
139
+ language?: "native" | "silverscript" | "tockata" | undefined;
140
+ version?: string | undefined;
141
+ notes?: string[] | undefined;
142
+ consensusImpact?: "experimental" | "none" | undefined;
143
+ } | undefined;
86
144
  }, {
145
+ version: "1.0.0-alpha";
87
146
  schema: string;
88
147
  hardkasVersion: string;
89
- version: "1.0.0-alpha";
90
148
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
91
149
  mode: "simulated" | "real" | "readonly";
92
150
  createdAt: string;
151
+ schemaVersion?: string | undefined;
93
152
  hashVersion?: string | number | undefined;
94
153
  contentHash?: string | undefined;
95
154
  lineage?: {
@@ -99,6 +158,18 @@ declare const BaseArtifactSchema: z.ZodObject<{
99
158
  parentArtifactId?: string | undefined;
100
159
  sequence?: number | undefined;
101
160
  } | undefined;
161
+ parents?: string[] | undefined;
162
+ lineageDepth?: number | undefined;
163
+ workflowId?: string | undefined;
164
+ scriptProfile?: "experimental" | "standard" | undefined;
165
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
166
+ scriptMetadata?: {
167
+ experimental: boolean;
168
+ language?: "native" | "silverscript" | "tockata" | undefined;
169
+ version?: string | undefined;
170
+ notes?: string[] | undefined;
171
+ consensusImpact?: "experimental" | "none" | undefined;
172
+ } | undefined;
102
173
  }>;
103
174
  declare const AccountRefSchema: z.ZodObject<{
104
175
  address: z.ZodString;
@@ -114,6 +185,7 @@ declare const AccountRefSchema: z.ZodObject<{
114
185
  input?: string | undefined;
115
186
  }>;
116
187
  declare const TxPlanSchema: z.ZodObject<{
188
+ schemaVersion: z.ZodOptional<z.ZodString>;
117
189
  hardkasVersion: z.ZodString;
118
190
  version: z.ZodLiteral<"1.0.0-alpha">;
119
191
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -138,6 +210,30 @@ declare const TxPlanSchema: z.ZodObject<{
138
210
  parentArtifactId?: string | undefined;
139
211
  sequence?: number | undefined;
140
212
  }>>;
213
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
214
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
215
+ workflowId: z.ZodOptional<z.ZodString>;
216
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
217
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
218
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
219
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
220
+ version: z.ZodOptional<z.ZodString>;
221
+ experimental: z.ZodBoolean;
222
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ experimental: boolean;
226
+ language?: "native" | "silverscript" | "tockata" | undefined;
227
+ version?: string | undefined;
228
+ notes?: string[] | undefined;
229
+ consensusImpact?: "experimental" | "none" | undefined;
230
+ }, {
231
+ experimental: boolean;
232
+ language?: "native" | "silverscript" | "tockata" | undefined;
233
+ version?: string | undefined;
234
+ notes?: string[] | undefined;
235
+ consensusImpact?: "experimental" | "none" | undefined;
236
+ }>>;
141
237
  } & {
142
238
  schema: z.ZodLiteral<"hardkas.txPlan">;
143
239
  networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet", "simulated"]>;
@@ -219,9 +315,9 @@ declare const TxPlanSchema: z.ZodObject<{
219
315
  }>>;
220
316
  rpcUrl: z.ZodOptional<z.ZodString>;
221
317
  }, "strip", z.ZodTypeAny, {
318
+ version: "1.0.0-alpha";
222
319
  schema: "hardkas.txPlan";
223
320
  hardkasVersion: string;
224
- version: "1.0.0-alpha";
225
321
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
226
322
  mode: "simulated" | "real" | "readonly";
227
323
  createdAt: string;
@@ -250,6 +346,7 @@ declare const TxPlanSchema: z.ZodObject<{
250
346
  address: string;
251
347
  amountSompi: string;
252
348
  }[];
349
+ schemaVersion?: string | undefined;
253
350
  hashVersion?: string | number | undefined;
254
351
  contentHash?: string | undefined;
255
352
  lineage?: {
@@ -259,15 +356,27 @@ declare const TxPlanSchema: z.ZodObject<{
259
356
  parentArtifactId?: string | undefined;
260
357
  sequence?: number | undefined;
261
358
  } | undefined;
359
+ parents?: string[] | undefined;
360
+ lineageDepth?: number | undefined;
361
+ workflowId?: string | undefined;
362
+ scriptProfile?: "experimental" | "standard" | undefined;
363
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
364
+ scriptMetadata?: {
365
+ experimental: boolean;
366
+ language?: "native" | "silverscript" | "tockata" | undefined;
367
+ version?: string | undefined;
368
+ notes?: string[] | undefined;
369
+ consensusImpact?: "experimental" | "none" | undefined;
370
+ } | undefined;
262
371
  change?: {
263
372
  address: string;
264
373
  amountSompi: string;
265
374
  } | undefined;
266
375
  rpcUrl?: string | undefined;
267
376
  }, {
377
+ version: "1.0.0-alpha";
268
378
  schema: "hardkas.txPlan";
269
379
  hardkasVersion: string;
270
- version: "1.0.0-alpha";
271
380
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
272
381
  mode: "simulated" | "real" | "readonly";
273
382
  createdAt: string;
@@ -296,6 +405,7 @@ declare const TxPlanSchema: z.ZodObject<{
296
405
  address: string;
297
406
  amountSompi: string;
298
407
  }[];
408
+ schemaVersion?: string | undefined;
299
409
  hashVersion?: string | number | undefined;
300
410
  contentHash?: string | undefined;
301
411
  lineage?: {
@@ -305,6 +415,18 @@ declare const TxPlanSchema: z.ZodObject<{
305
415
  parentArtifactId?: string | undefined;
306
416
  sequence?: number | undefined;
307
417
  } | undefined;
418
+ parents?: string[] | undefined;
419
+ lineageDepth?: number | undefined;
420
+ workflowId?: string | undefined;
421
+ scriptProfile?: "experimental" | "standard" | undefined;
422
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
423
+ scriptMetadata?: {
424
+ experimental: boolean;
425
+ language?: "native" | "silverscript" | "tockata" | undefined;
426
+ version?: string | undefined;
427
+ notes?: string[] | undefined;
428
+ consensusImpact?: "experimental" | "none" | undefined;
429
+ } | undefined;
308
430
  change?: {
309
431
  address: string;
310
432
  amountSompi: string;
@@ -379,6 +501,7 @@ declare const LocalnetUtxoSchemaV2: z.ZodObject<{
379
501
  createdAtDaaScore: string;
380
502
  }>;
381
503
  declare const SnapshotSchema: z.ZodObject<{
504
+ schemaVersion: z.ZodOptional<z.ZodString>;
382
505
  hardkasVersion: z.ZodString;
383
506
  version: z.ZodLiteral<"1.0.0-alpha">;
384
507
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -405,6 +528,30 @@ declare const SnapshotSchema: z.ZodObject<{
405
528
  parentArtifactId?: string | undefined;
406
529
  sequence?: number | undefined;
407
530
  }>>;
531
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
532
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
533
+ workflowId: z.ZodOptional<z.ZodString>;
534
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
535
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
536
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
537
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
538
+ version: z.ZodOptional<z.ZodString>;
539
+ experimental: z.ZodBoolean;
540
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ experimental: boolean;
544
+ language?: "native" | "silverscript" | "tockata" | undefined;
545
+ version?: string | undefined;
546
+ notes?: string[] | undefined;
547
+ consensusImpact?: "experimental" | "none" | undefined;
548
+ }, {
549
+ experimental: boolean;
550
+ language?: "native" | "silverscript" | "tockata" | undefined;
551
+ version?: string | undefined;
552
+ notes?: string[] | undefined;
553
+ consensusImpact?: "experimental" | "none" | undefined;
554
+ }>>;
408
555
  } & {
409
556
  schema: z.ZodLiteral<"hardkas.snapshot">;
410
557
  name: z.ZodOptional<z.ZodString>;
@@ -442,9 +589,9 @@ declare const SnapshotSchema: z.ZodObject<{
442
589
  createdAtDaaScore: string;
443
590
  }>, "many">;
444
591
  }, "strip", z.ZodTypeAny, {
592
+ version: "1.0.0-alpha";
445
593
  schema: "hardkas.snapshot";
446
594
  hardkasVersion: string;
447
- version: "1.0.0-alpha";
448
595
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
449
596
  mode: "simulated" | "real" | "readonly";
450
597
  createdAt: string;
@@ -460,6 +607,7 @@ declare const SnapshotSchema: z.ZodObject<{
460
607
  spent: boolean;
461
608
  createdAtDaaScore: string;
462
609
  }[];
610
+ schemaVersion?: string | undefined;
463
611
  hashVersion?: string | number | undefined;
464
612
  contentHash?: string | undefined;
465
613
  lineage?: {
@@ -469,14 +617,26 @@ declare const SnapshotSchema: z.ZodObject<{
469
617
  parentArtifactId?: string | undefined;
470
618
  sequence?: number | undefined;
471
619
  } | undefined;
620
+ parents?: string[] | undefined;
621
+ lineageDepth?: number | undefined;
622
+ workflowId?: string | undefined;
623
+ scriptProfile?: "experimental" | "standard" | undefined;
624
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
625
+ scriptMetadata?: {
626
+ experimental: boolean;
627
+ language?: "native" | "silverscript" | "tockata" | undefined;
628
+ version?: string | undefined;
629
+ notes?: string[] | undefined;
630
+ consensusImpact?: "experimental" | "none" | undefined;
631
+ } | undefined;
472
632
  name?: string | undefined;
473
633
  accountsHash?: string | undefined;
474
634
  utxoSetHash?: string | undefined;
475
635
  stateHash?: string | undefined;
476
636
  }, {
637
+ version: "1.0.0-alpha";
477
638
  schema: "hardkas.snapshot";
478
639
  hardkasVersion: string;
479
- version: "1.0.0-alpha";
480
640
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
481
641
  mode: "simulated" | "real" | "readonly";
482
642
  createdAt: string;
@@ -492,6 +652,7 @@ declare const SnapshotSchema: z.ZodObject<{
492
652
  spent: boolean;
493
653
  createdAtDaaScore: string;
494
654
  }[];
655
+ schemaVersion?: string | undefined;
495
656
  hashVersion?: string | number | undefined;
496
657
  contentHash?: string | undefined;
497
658
  lineage?: {
@@ -501,12 +662,25 @@ declare const SnapshotSchema: z.ZodObject<{
501
662
  parentArtifactId?: string | undefined;
502
663
  sequence?: number | undefined;
503
664
  } | undefined;
665
+ parents?: string[] | undefined;
666
+ lineageDepth?: number | undefined;
667
+ workflowId?: string | undefined;
668
+ scriptProfile?: "experimental" | "standard" | undefined;
669
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
670
+ scriptMetadata?: {
671
+ experimental: boolean;
672
+ language?: "native" | "silverscript" | "tockata" | undefined;
673
+ version?: string | undefined;
674
+ notes?: string[] | undefined;
675
+ consensusImpact?: "experimental" | "none" | undefined;
676
+ } | undefined;
504
677
  name?: string | undefined;
505
678
  accountsHash?: string | undefined;
506
679
  utxoSetHash?: string | undefined;
507
680
  stateHash?: string | undefined;
508
681
  }>;
509
682
  declare const TxReceiptSchema: z.ZodObject<{
683
+ schemaVersion: z.ZodOptional<z.ZodString>;
510
684
  hardkasVersion: z.ZodString;
511
685
  version: z.ZodLiteral<"1.0.0-alpha">;
512
686
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -531,6 +705,30 @@ declare const TxReceiptSchema: z.ZodObject<{
531
705
  parentArtifactId?: string | undefined;
532
706
  sequence?: number | undefined;
533
707
  }>>;
708
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
709
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
710
+ workflowId: z.ZodOptional<z.ZodString>;
711
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
712
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
713
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
714
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
715
+ version: z.ZodOptional<z.ZodString>;
716
+ experimental: z.ZodBoolean;
717
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
718
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
719
+ }, "strip", z.ZodTypeAny, {
720
+ experimental: boolean;
721
+ language?: "native" | "silverscript" | "tockata" | undefined;
722
+ version?: string | undefined;
723
+ notes?: string[] | undefined;
724
+ consensusImpact?: "experimental" | "none" | undefined;
725
+ }, {
726
+ experimental: boolean;
727
+ language?: "native" | "silverscript" | "tockata" | undefined;
728
+ version?: string | undefined;
729
+ notes?: string[] | undefined;
730
+ consensusImpact?: "experimental" | "none" | undefined;
731
+ }>>;
534
732
  } & {
535
733
  schema: z.ZodLiteral<"hardkas.txReceipt">;
536
734
  txId: z.ZodString;
@@ -629,9 +827,9 @@ declare const TxReceiptSchema: z.ZodObject<{
629
827
  metadata: z.ZodOptional<z.ZodAny>;
630
828
  }, "strip", z.ZodTypeAny, {
631
829
  status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
830
+ version: "1.0.0-alpha";
632
831
  schema: "hardkas.txReceipt";
633
832
  hardkasVersion: string;
634
- version: "1.0.0-alpha";
635
833
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
636
834
  mode: "simulated" | "real" | "readonly";
637
835
  createdAt: string;
@@ -648,6 +846,7 @@ declare const TxReceiptSchema: z.ZodObject<{
648
846
  amountSompi: string;
649
847
  txId: string;
650
848
  feeSompi: string;
849
+ schemaVersion?: string | undefined;
651
850
  hashVersion?: string | number | undefined;
652
851
  contentHash?: string | undefined;
653
852
  lineage?: {
@@ -657,6 +856,18 @@ declare const TxReceiptSchema: z.ZodObject<{
657
856
  parentArtifactId?: string | undefined;
658
857
  sequence?: number | undefined;
659
858
  } | undefined;
859
+ parents?: string[] | undefined;
860
+ lineageDepth?: number | undefined;
861
+ workflowId?: string | undefined;
862
+ scriptProfile?: "experimental" | "standard" | undefined;
863
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
864
+ scriptMetadata?: {
865
+ experimental: boolean;
866
+ language?: "native" | "silverscript" | "tockata" | undefined;
867
+ version?: string | undefined;
868
+ notes?: string[] | undefined;
869
+ consensusImpact?: "experimental" | "none" | undefined;
870
+ } | undefined;
660
871
  rpcUrl?: string | undefined;
661
872
  daaScore?: string | undefined;
662
873
  mass?: string | undefined;
@@ -687,9 +898,9 @@ declare const TxReceiptSchema: z.ZodObject<{
687
898
  metadata?: any;
688
899
  }, {
689
900
  status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
901
+ version: "1.0.0-alpha";
690
902
  schema: "hardkas.txReceipt";
691
903
  hardkasVersion: string;
692
- version: "1.0.0-alpha";
693
904
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
694
905
  mode: "simulated" | "real" | "readonly";
695
906
  createdAt: string;
@@ -706,6 +917,7 @@ declare const TxReceiptSchema: z.ZodObject<{
706
917
  amountSompi: string;
707
918
  txId: string;
708
919
  feeSompi: string;
920
+ schemaVersion?: string | undefined;
709
921
  hashVersion?: string | number | undefined;
710
922
  contentHash?: string | undefined;
711
923
  lineage?: {
@@ -715,6 +927,18 @@ declare const TxReceiptSchema: z.ZodObject<{
715
927
  parentArtifactId?: string | undefined;
716
928
  sequence?: number | undefined;
717
929
  } | undefined;
930
+ parents?: string[] | undefined;
931
+ lineageDepth?: number | undefined;
932
+ workflowId?: string | undefined;
933
+ scriptProfile?: "experimental" | "standard" | undefined;
934
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
935
+ scriptMetadata?: {
936
+ experimental: boolean;
937
+ language?: "native" | "silverscript" | "tockata" | undefined;
938
+ version?: string | undefined;
939
+ notes?: string[] | undefined;
940
+ consensusImpact?: "experimental" | "none" | undefined;
941
+ } | undefined;
718
942
  rpcUrl?: string | undefined;
719
943
  daaScore?: string | undefined;
720
944
  mass?: string | undefined;
@@ -745,6 +969,7 @@ declare const TxReceiptSchema: z.ZodObject<{
745
969
  metadata?: any;
746
970
  }>;
747
971
  declare const SignedTxSchema: z.ZodObject<{
972
+ schemaVersion: z.ZodOptional<z.ZodString>;
748
973
  hardkasVersion: z.ZodString;
749
974
  version: z.ZodLiteral<"1.0.0-alpha">;
750
975
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -769,6 +994,30 @@ declare const SignedTxSchema: z.ZodObject<{
769
994
  parentArtifactId?: string | undefined;
770
995
  sequence?: number | undefined;
771
996
  }>>;
997
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
998
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
999
+ workflowId: z.ZodOptional<z.ZodString>;
1000
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
1001
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
1002
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
1003
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
1004
+ version: z.ZodOptional<z.ZodString>;
1005
+ experimental: z.ZodBoolean;
1006
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1007
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ experimental: boolean;
1010
+ language?: "native" | "silverscript" | "tockata" | undefined;
1011
+ version?: string | undefined;
1012
+ notes?: string[] | undefined;
1013
+ consensusImpact?: "experimental" | "none" | undefined;
1014
+ }, {
1015
+ experimental: boolean;
1016
+ language?: "native" | "silverscript" | "tockata" | undefined;
1017
+ version?: string | undefined;
1018
+ notes?: string[] | undefined;
1019
+ consensusImpact?: "experimental" | "none" | undefined;
1020
+ }>>;
772
1021
  } & {
773
1022
  schema: z.ZodLiteral<"hardkas.signedTx">;
774
1023
  status: z.ZodLiteral<"signed">;
@@ -817,9 +1066,9 @@ declare const SignedTxSchema: z.ZodObject<{
817
1066
  metadata: z.ZodOptional<z.ZodAny>;
818
1067
  }, "strip", z.ZodTypeAny, {
819
1068
  status: "signed";
1069
+ version: "1.0.0-alpha";
820
1070
  schema: "hardkas.signedTx";
821
1071
  hardkasVersion: string;
822
- version: "1.0.0-alpha";
823
1072
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
824
1073
  mode: "simulated" | "real" | "readonly";
825
1074
  createdAt: string;
@@ -840,6 +1089,7 @@ declare const SignedTxSchema: z.ZodObject<{
840
1089
  format: string;
841
1090
  payload: string;
842
1091
  };
1092
+ schemaVersion?: string | undefined;
843
1093
  hashVersion?: string | number | undefined;
844
1094
  contentHash?: string | undefined;
845
1095
  lineage?: {
@@ -849,13 +1099,25 @@ declare const SignedTxSchema: z.ZodObject<{
849
1099
  parentArtifactId?: string | undefined;
850
1100
  sequence?: number | undefined;
851
1101
  } | undefined;
1102
+ parents?: string[] | undefined;
1103
+ lineageDepth?: number | undefined;
1104
+ workflowId?: string | undefined;
1105
+ scriptProfile?: "experimental" | "standard" | undefined;
1106
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1107
+ scriptMetadata?: {
1108
+ experimental: boolean;
1109
+ language?: "native" | "silverscript" | "tockata" | undefined;
1110
+ version?: string | undefined;
1111
+ notes?: string[] | undefined;
1112
+ consensusImpact?: "experimental" | "none" | undefined;
1113
+ } | undefined;
852
1114
  txId?: string | undefined;
853
1115
  metadata?: any;
854
1116
  }, {
855
1117
  status: "signed";
1118
+ version: "1.0.0-alpha";
856
1119
  schema: "hardkas.signedTx";
857
1120
  hardkasVersion: string;
858
- version: "1.0.0-alpha";
859
1121
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
860
1122
  mode: "simulated" | "real" | "readonly";
861
1123
  createdAt: string;
@@ -876,6 +1138,7 @@ declare const SignedTxSchema: z.ZodObject<{
876
1138
  format: string;
877
1139
  payload: string;
878
1140
  };
1141
+ schemaVersion?: string | undefined;
879
1142
  hashVersion?: string | number | undefined;
880
1143
  contentHash?: string | undefined;
881
1144
  lineage?: {
@@ -885,10 +1148,23 @@ declare const SignedTxSchema: z.ZodObject<{
885
1148
  parentArtifactId?: string | undefined;
886
1149
  sequence?: number | undefined;
887
1150
  } | undefined;
1151
+ parents?: string[] | undefined;
1152
+ lineageDepth?: number | undefined;
1153
+ workflowId?: string | undefined;
1154
+ scriptProfile?: "experimental" | "standard" | undefined;
1155
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1156
+ scriptMetadata?: {
1157
+ experimental: boolean;
1158
+ language?: "native" | "silverscript" | "tockata" | undefined;
1159
+ version?: string | undefined;
1160
+ notes?: string[] | undefined;
1161
+ consensusImpact?: "experimental" | "none" | undefined;
1162
+ } | undefined;
888
1163
  txId?: string | undefined;
889
1164
  metadata?: any;
890
1165
  }>;
891
1166
  declare const TxTraceSchema: z.ZodObject<{
1167
+ schemaVersion: z.ZodOptional<z.ZodString>;
892
1168
  hardkasVersion: z.ZodString;
893
1169
  version: z.ZodLiteral<"1.0.0-alpha">;
894
1170
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -913,6 +1189,30 @@ declare const TxTraceSchema: z.ZodObject<{
913
1189
  parentArtifactId?: string | undefined;
914
1190
  sequence?: number | undefined;
915
1191
  }>>;
1192
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1193
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
1194
+ workflowId: z.ZodOptional<z.ZodString>;
1195
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
1196
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
1197
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
1198
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
1199
+ version: z.ZodOptional<z.ZodString>;
1200
+ experimental: z.ZodBoolean;
1201
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1202
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ experimental: boolean;
1205
+ language?: "native" | "silverscript" | "tockata" | undefined;
1206
+ version?: string | undefined;
1207
+ notes?: string[] | undefined;
1208
+ consensusImpact?: "experimental" | "none" | undefined;
1209
+ }, {
1210
+ experimental: boolean;
1211
+ language?: "native" | "silverscript" | "tockata" | undefined;
1212
+ version?: string | undefined;
1213
+ notes?: string[] | undefined;
1214
+ consensusImpact?: "experimental" | "none" | undefined;
1215
+ }>>;
916
1216
  } & {
917
1217
  schema: z.ZodLiteral<"hardkas.txTrace">;
918
1218
  txId: z.ZodString;
@@ -983,9 +1283,9 @@ declare const TxTraceSchema: z.ZodObject<{
983
1283
  nonSelectedContext?: boolean | undefined;
984
1284
  }>>;
985
1285
  }, "strip", z.ZodTypeAny, {
1286
+ version: "1.0.0-alpha";
986
1287
  schema: "hardkas.txTrace";
987
1288
  hardkasVersion: string;
988
- version: "1.0.0-alpha";
989
1289
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
990
1290
  mode: "simulated" | "real" | "readonly";
991
1291
  createdAt: string;
@@ -996,6 +1296,7 @@ declare const TxTraceSchema: z.ZodObject<{
996
1296
  timestamp: string;
997
1297
  details?: any;
998
1298
  }[];
1299
+ schemaVersion?: string | undefined;
999
1300
  hashVersion?: string | number | undefined;
1000
1301
  contentHash?: string | undefined;
1001
1302
  lineage?: {
@@ -1005,6 +1306,18 @@ declare const TxTraceSchema: z.ZodObject<{
1005
1306
  parentArtifactId?: string | undefined;
1006
1307
  sequence?: number | undefined;
1007
1308
  } | undefined;
1309
+ parents?: string[] | undefined;
1310
+ lineageDepth?: number | undefined;
1311
+ workflowId?: string | undefined;
1312
+ scriptProfile?: "experimental" | "standard" | undefined;
1313
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1314
+ scriptMetadata?: {
1315
+ experimental: boolean;
1316
+ language?: "native" | "silverscript" | "tockata" | undefined;
1317
+ version?: string | undefined;
1318
+ notes?: string[] | undefined;
1319
+ consensusImpact?: "experimental" | "none" | undefined;
1320
+ } | undefined;
1008
1321
  dagContext?: {
1009
1322
  mode: "linear" | "dag-light";
1010
1323
  sink: string;
@@ -1020,9 +1333,9 @@ declare const TxTraceSchema: z.ZodObject<{
1020
1333
  nonSelectedContext?: boolean | undefined;
1021
1334
  } | undefined;
1022
1335
  }, {
1336
+ version: "1.0.0-alpha";
1023
1337
  schema: "hardkas.txTrace";
1024
1338
  hardkasVersion: string;
1025
- version: "1.0.0-alpha";
1026
1339
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
1027
1340
  mode: "simulated" | "real" | "readonly";
1028
1341
  createdAt: string;
@@ -1033,6 +1346,7 @@ declare const TxTraceSchema: z.ZodObject<{
1033
1346
  timestamp: string;
1034
1347
  details?: any;
1035
1348
  }[];
1349
+ schemaVersion?: string | undefined;
1036
1350
  hashVersion?: string | number | undefined;
1037
1351
  contentHash?: string | undefined;
1038
1352
  lineage?: {
@@ -1042,6 +1356,18 @@ declare const TxTraceSchema: z.ZodObject<{
1042
1356
  parentArtifactId?: string | undefined;
1043
1357
  sequence?: number | undefined;
1044
1358
  } | undefined;
1359
+ parents?: string[] | undefined;
1360
+ lineageDepth?: number | undefined;
1361
+ workflowId?: string | undefined;
1362
+ scriptProfile?: "experimental" | "standard" | undefined;
1363
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1364
+ scriptMetadata?: {
1365
+ experimental: boolean;
1366
+ language?: "native" | "silverscript" | "tockata" | undefined;
1367
+ version?: string | undefined;
1368
+ notes?: string[] | undefined;
1369
+ consensusImpact?: "experimental" | "none" | undefined;
1370
+ } | undefined;
1045
1371
  dagContext?: {
1046
1372
  mode: "linear" | "dag-light";
1047
1373
  sink: string;
@@ -1058,6 +1384,7 @@ declare const TxTraceSchema: z.ZodObject<{
1058
1384
  } | undefined;
1059
1385
  }>;
1060
1386
  declare const WorkflowSchema: z.ZodObject<{
1387
+ schemaVersion: z.ZodOptional<z.ZodString>;
1061
1388
  hardkasVersion: z.ZodString;
1062
1389
  version: z.ZodLiteral<"1.0.0-alpha">;
1063
1390
  hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
@@ -1084,6 +1411,29 @@ declare const WorkflowSchema: z.ZodObject<{
1084
1411
  parentArtifactId?: string | undefined;
1085
1412
  sequence?: number | undefined;
1086
1413
  }>>;
1414
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1415
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
1416
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
1417
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
1418
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
1419
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
1420
+ version: z.ZodOptional<z.ZodString>;
1421
+ experimental: z.ZodBoolean;
1422
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1423
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ experimental: boolean;
1426
+ language?: "native" | "silverscript" | "tockata" | undefined;
1427
+ version?: string | undefined;
1428
+ notes?: string[] | undefined;
1429
+ consensusImpact?: "experimental" | "none" | undefined;
1430
+ }, {
1431
+ experimental: boolean;
1432
+ language?: "native" | "silverscript" | "tockata" | undefined;
1433
+ version?: string | undefined;
1434
+ notes?: string[] | undefined;
1435
+ consensusImpact?: "experimental" | "none" | undefined;
1436
+ }>>;
1087
1437
  } & {
1088
1438
  schema: z.ZodLiteral<"hardkas.workflow.v1">;
1089
1439
  workflowId: z.ZodString;
@@ -1165,12 +1515,13 @@ declare const WorkflowSchema: z.ZodObject<{
1165
1515
  }>>;
1166
1516
  }, "strip", z.ZodTypeAny, {
1167
1517
  status: "pending" | "failed" | "running" | "completed";
1518
+ version: "1.0.0-alpha";
1168
1519
  schema: "hardkas.workflow.v1";
1169
1520
  hardkasVersion: string;
1170
- version: "1.0.0-alpha";
1171
1521
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
1172
1522
  mode: "simulated" | "real" | "readonly";
1173
1523
  createdAt: string;
1524
+ workflowId: string;
1174
1525
  steps: {
1175
1526
  type: string;
1176
1527
  status: "pending" | "failed" | "success" | "skipped";
@@ -1179,8 +1530,8 @@ declare const WorkflowSchema: z.ZodObject<{
1179
1530
  producedArtifactId?: string | undefined;
1180
1531
  error?: string | undefined;
1181
1532
  }[];
1182
- workflowId: string;
1183
1533
  producedArtifacts: string[];
1534
+ schemaVersion?: string | undefined;
1184
1535
  hashVersion?: string | number | undefined;
1185
1536
  contentHash?: string | undefined;
1186
1537
  lineage?: {
@@ -1190,6 +1541,17 @@ declare const WorkflowSchema: z.ZodObject<{
1190
1541
  parentArtifactId?: string | undefined;
1191
1542
  sequence?: number | undefined;
1192
1543
  } | undefined;
1544
+ parents?: string[] | undefined;
1545
+ lineageDepth?: number | undefined;
1546
+ scriptProfile?: "experimental" | "standard" | undefined;
1547
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1548
+ scriptMetadata?: {
1549
+ experimental: boolean;
1550
+ language?: "native" | "silverscript" | "tockata" | undefined;
1551
+ version?: string | undefined;
1552
+ notes?: string[] | undefined;
1553
+ consensusImpact?: "experimental" | "none" | undefined;
1554
+ } | undefined;
1193
1555
  inputs?: Record<string, any> | undefined;
1194
1556
  parentArtifacts?: string[] | undefined;
1195
1557
  generationRange?: {
@@ -1214,12 +1576,13 @@ declare const WorkflowSchema: z.ZodObject<{
1214
1576
  } | undefined;
1215
1577
  }, {
1216
1578
  status: "pending" | "failed" | "running" | "completed";
1579
+ version: "1.0.0-alpha";
1217
1580
  schema: "hardkas.workflow.v1";
1218
1581
  hardkasVersion: string;
1219
- version: "1.0.0-alpha";
1220
1582
  networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
1221
1583
  mode: "simulated" | "real" | "readonly";
1222
1584
  createdAt: string;
1585
+ workflowId: string;
1223
1586
  steps: {
1224
1587
  type: string;
1225
1588
  status: "pending" | "failed" | "success" | "skipped";
@@ -1228,8 +1591,8 @@ declare const WorkflowSchema: z.ZodObject<{
1228
1591
  producedArtifactId?: string | undefined;
1229
1592
  error?: string | undefined;
1230
1593
  }[];
1231
- workflowId: string;
1232
1594
  producedArtifacts: string[];
1595
+ schemaVersion?: string | undefined;
1233
1596
  hashVersion?: string | number | undefined;
1234
1597
  contentHash?: string | undefined;
1235
1598
  lineage?: {
@@ -1239,6 +1602,17 @@ declare const WorkflowSchema: z.ZodObject<{
1239
1602
  parentArtifactId?: string | undefined;
1240
1603
  sequence?: number | undefined;
1241
1604
  } | undefined;
1605
+ parents?: string[] | undefined;
1606
+ lineageDepth?: number | undefined;
1607
+ scriptProfile?: "experimental" | "standard" | undefined;
1608
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1609
+ scriptMetadata?: {
1610
+ experimental: boolean;
1611
+ language?: "native" | "silverscript" | "tockata" | undefined;
1612
+ version?: string | undefined;
1613
+ notes?: string[] | undefined;
1614
+ consensusImpact?: "experimental" | "none" | undefined;
1615
+ } | undefined;
1242
1616
  inputs?: Record<string, any> | undefined;
1243
1617
  parentArtifacts?: string[] | undefined;
1244
1618
  generationRange?: {
@@ -1269,6 +1643,148 @@ type SignedTx = z.infer<typeof SignedTxSchema>;
1269
1643
  type TxTrace = z.infer<typeof TxTraceSchema>;
1270
1644
  type DagContext$1 = z.infer<typeof DagContextSchema>;
1271
1645
  type Workflow = z.infer<typeof WorkflowSchema>;
1646
+ type ScriptCapability = z.infer<typeof ScriptCapabilitySchema>;
1647
+ declare const RuntimeSessionSchema: z.ZodObject<{
1648
+ schema: z.ZodString;
1649
+ schemaVersion: z.ZodOptional<z.ZodString>;
1650
+ hardkasVersion: z.ZodString;
1651
+ version: z.ZodLiteral<"1.0.0-alpha">;
1652
+ hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
1653
+ networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet", "simulated"]>;
1654
+ mode: z.ZodEnum<["simulated", "real", "readonly"]>;
1655
+ contentHash: z.ZodOptional<z.ZodString>;
1656
+ createdAt: z.ZodString;
1657
+ lineage: z.ZodOptional<z.ZodObject<{
1658
+ artifactId: z.ZodString;
1659
+ lineageId: z.ZodString;
1660
+ parentArtifactId: z.ZodOptional<z.ZodString>;
1661
+ rootArtifactId: z.ZodString;
1662
+ sequence: z.ZodOptional<z.ZodNumber>;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ artifactId: string;
1665
+ lineageId: string;
1666
+ rootArtifactId: string;
1667
+ parentArtifactId?: string | undefined;
1668
+ sequence?: number | undefined;
1669
+ }, {
1670
+ artifactId: string;
1671
+ lineageId: string;
1672
+ rootArtifactId: string;
1673
+ parentArtifactId?: string | undefined;
1674
+ sequence?: number | undefined;
1675
+ }>>;
1676
+ parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1677
+ lineageDepth: z.ZodOptional<z.ZodNumber>;
1678
+ workflowId: z.ZodOptional<z.ZodString>;
1679
+ scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
1680
+ scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
1681
+ scriptMetadata: z.ZodOptional<z.ZodObject<{
1682
+ language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
1683
+ version: z.ZodOptional<z.ZodString>;
1684
+ experimental: z.ZodBoolean;
1685
+ notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1686
+ consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
1687
+ }, "strip", z.ZodTypeAny, {
1688
+ experimental: boolean;
1689
+ language?: "native" | "silverscript" | "tockata" | undefined;
1690
+ version?: string | undefined;
1691
+ notes?: string[] | undefined;
1692
+ consensusImpact?: "experimental" | "none" | undefined;
1693
+ }, {
1694
+ experimental: boolean;
1695
+ language?: "native" | "silverscript" | "tockata" | undefined;
1696
+ version?: string | undefined;
1697
+ notes?: string[] | undefined;
1698
+ consensusImpact?: "experimental" | "none" | undefined;
1699
+ }>>;
1700
+ } & {
1701
+ sessionId: z.ZodString;
1702
+ workflowIds: z.ZodArray<z.ZodString, "many">;
1703
+ artifactIds: z.ZodArray<z.ZodString, "many">;
1704
+ startedAt: z.ZodString;
1705
+ network: z.ZodString;
1706
+ deterministic: z.ZodBoolean;
1707
+ snapshotOf: z.ZodOptional<z.ZodString>;
1708
+ parentSessionId: z.ZodOptional<z.ZodString>;
1709
+ notes: z.ZodOptional<z.ZodString>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ version: "1.0.0-alpha";
1712
+ schema: string;
1713
+ hardkasVersion: string;
1714
+ networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
1715
+ mode: "simulated" | "real" | "readonly";
1716
+ createdAt: string;
1717
+ startedAt: string;
1718
+ sessionId: string;
1719
+ workflowIds: string[];
1720
+ artifactIds: string[];
1721
+ network: string;
1722
+ deterministic: boolean;
1723
+ notes?: string | undefined;
1724
+ schemaVersion?: string | undefined;
1725
+ hashVersion?: string | number | undefined;
1726
+ contentHash?: string | undefined;
1727
+ lineage?: {
1728
+ artifactId: string;
1729
+ lineageId: string;
1730
+ rootArtifactId: string;
1731
+ parentArtifactId?: string | undefined;
1732
+ sequence?: number | undefined;
1733
+ } | undefined;
1734
+ parents?: string[] | undefined;
1735
+ lineageDepth?: number | undefined;
1736
+ workflowId?: string | undefined;
1737
+ scriptProfile?: "experimental" | "standard" | undefined;
1738
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1739
+ scriptMetadata?: {
1740
+ experimental: boolean;
1741
+ language?: "native" | "silverscript" | "tockata" | undefined;
1742
+ version?: string | undefined;
1743
+ notes?: string[] | undefined;
1744
+ consensusImpact?: "experimental" | "none" | undefined;
1745
+ } | undefined;
1746
+ snapshotOf?: string | undefined;
1747
+ parentSessionId?: string | undefined;
1748
+ }, {
1749
+ version: "1.0.0-alpha";
1750
+ schema: string;
1751
+ hardkasVersion: string;
1752
+ networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
1753
+ mode: "simulated" | "real" | "readonly";
1754
+ createdAt: string;
1755
+ startedAt: string;
1756
+ sessionId: string;
1757
+ workflowIds: string[];
1758
+ artifactIds: string[];
1759
+ network: string;
1760
+ deterministic: boolean;
1761
+ notes?: string | undefined;
1762
+ schemaVersion?: string | undefined;
1763
+ hashVersion?: string | number | undefined;
1764
+ contentHash?: string | undefined;
1765
+ lineage?: {
1766
+ artifactId: string;
1767
+ lineageId: string;
1768
+ rootArtifactId: string;
1769
+ parentArtifactId?: string | undefined;
1770
+ sequence?: number | undefined;
1771
+ } | undefined;
1772
+ parents?: string[] | undefined;
1773
+ lineageDepth?: number | undefined;
1774
+ workflowId?: string | undefined;
1775
+ scriptProfile?: "experimental" | "standard" | undefined;
1776
+ scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
1777
+ scriptMetadata?: {
1778
+ experimental: boolean;
1779
+ language?: "native" | "silverscript" | "tockata" | undefined;
1780
+ version?: string | undefined;
1781
+ notes?: string[] | undefined;
1782
+ consensusImpact?: "experimental" | "none" | undefined;
1783
+ } | undefined;
1784
+ snapshotOf?: string | undefined;
1785
+ parentSessionId?: string | undefined;
1786
+ }>;
1787
+ type RuntimeSession = z.infer<typeof RuntimeSessionSchema>;
1272
1788
 
1273
1789
  interface ArtifactValidationResult {
1274
1790
  ok: boolean;
@@ -1354,6 +1870,7 @@ declare function createIgraDeployPlanId(hash: string): string;
1354
1870
  type AssumptionLevel = "dev" | "trusted" | "network-observed";
1355
1871
  interface HardkasArtifactBase {
1356
1872
  schema: HardkasArtifactSchema;
1873
+ schemaVersion?: string;
1357
1874
  hardkasVersion: string;
1358
1875
  version: string;
1359
1876
  hashVersion?: number | string;
@@ -1363,6 +1880,7 @@ interface HardkasArtifactBase {
1363
1880
  }
1364
1881
  interface BaseArtifact<T extends ArtifactType> {
1365
1882
  schema: `hardkas.${T}`;
1883
+ schemaVersion?: string;
1366
1884
  hardkasVersion: string;
1367
1885
  version: string;
1368
1886
  hashVersion?: number | string;
@@ -1683,13 +2201,14 @@ declare const SEMANTIC_EXCLUSIONS: Set<string>;
1683
2201
  * v3: String normalization (\r\n -> \n, NFC) for cross-platform stability.
1684
2202
  */
1685
2203
  declare const CURRENT_HASH_VERSION = 3;
2204
+ declare const STRICT_PATH_KEYS: Set<string>;
1686
2205
  /**
1687
2206
  * Deterministically stringifies an object by sorting keys recursively.
1688
2207
  * Handles BigInt by converting to string with type marker.
1689
2208
  * Excludes fields in SEMANTIC_EXCLUSIONS during serialization.
1690
2209
  * Skips keys with undefined values (matching JSON.stringify behavior).
1691
2210
  */
1692
- declare function canonicalStringify(obj: unknown, version?: number): string;
2211
+ declare function canonicalStringify(obj: unknown, version?: number, keyName?: string): string;
1693
2212
  /**
1694
2213
  * Calculates a SHA-256 hash of the canonical JSON representation.
1695
2214
  * Always excludes fields in SEMANTIC_EXCLUSIONS from the calculation.
@@ -1874,11 +2393,124 @@ declare class InvariantWatcher {
1874
2393
  private emitViolation;
1875
2394
  }
1876
2395
 
2396
+ /**
2397
+ * Represents the payload of any HardKAS artifact in its raw (parsed JSON) form.
2398
+ * The migration engine operates on this untyped representation to support
2399
+ * artifacts across schema versions.
2400
+ */
2401
+ type ArtifactPayload = Record<string, unknown>;
2402
+ /**
2403
+ * A single versioned migration step that transforms an artifact payload
2404
+ * from one schema version to the next.
2405
+ */
2406
+ interface MigrationStep {
2407
+ /** Source version string (e.g., "0.1.0", "1.0.0-alpha") */
2408
+ readonly fromVersion: string;
2409
+ /** Target version string */
2410
+ readonly toVersion: string;
2411
+ /** Human-readable description of what this migration does */
2412
+ readonly description: string;
2413
+ /**
2414
+ * Transform function. Receives a shallow clone of the artifact payload
2415
+ * and returns the migrated payload. MUST NOT mutate the input.
2416
+ */
2417
+ transform(artifact: ArtifactPayload): ArtifactPayload;
2418
+ }
2419
+ /**
2420
+ * Result of a migration operation.
2421
+ */
2422
+ interface MigrationResult {
2423
+ /** The migrated artifact payload */
2424
+ artifact: ArtifactPayload;
2425
+ /** Whether any migration was actually applied */
2426
+ migrated: boolean;
2427
+ /** The original content hash (before migration), preserved for lineage */
2428
+ originalContentHash: string | undefined;
2429
+ /** Ordered list of migration steps that were applied */
2430
+ appliedSteps: ReadonlyArray<{
2431
+ fromVersion: string;
2432
+ toVersion: string;
2433
+ description: string;
2434
+ }>;
2435
+ }
2436
+ /**
2437
+ * Registers a migration step in the global registry.
2438
+ * Steps should be registered in chronological order (oldest → newest).
2439
+ *
2440
+ * @param step - The migration step to register
2441
+ */
2442
+ declare function registerMigrationStep(step: MigrationStep): void;
2443
+ /**
2444
+ * Returns all registered migration steps (read-only copy).
2445
+ */
2446
+ declare function getRegisteredMigrationSteps(): ReadonlyArray<MigrationStep>;
2447
+ /**
2448
+ * Determines the version of an artifact based on its `version` field,
2449
+ * falling back to heuristics for truly legacy artifacts.
2450
+ */
2451
+ declare function detectArtifactVersion(artifact: ArtifactPayload): string;
2452
+ /**
2453
+ * Resolves the ordered list of migration steps needed to go from
2454
+ * `fromVersion` to `toVersion`.
2455
+ *
2456
+ * Uses a simple BFS/chain walk through the migration registry.
2457
+ * Returns an empty array if no migration path exists or if the artifact
2458
+ * is already at the target version.
2459
+ *
2460
+ * @param fromVersion - The current artifact version
2461
+ * @param toVersion - The desired target version
2462
+ * @returns Ordered array of migration steps, or empty if no path or already current
2463
+ */
2464
+ declare function getMigrationPath(fromVersion: string, toVersion: string): ReadonlyArray<MigrationStep>;
2465
+ /**
2466
+ * Checks whether a migration path exists from the artifact's current
2467
+ * version to the target version.
2468
+ *
2469
+ * @param artifact - The artifact payload to check
2470
+ * @param targetVersion - The desired target version (defaults to ARTIFACT_VERSION)
2471
+ * @returns `true` if a migration path exists or the artifact is already at the target version
2472
+ */
2473
+ declare function canMigrate(artifact: ArtifactPayload, targetVersion?: string): boolean;
2474
+ /**
2475
+ * Migrates an artifact payload from its current schema version to the
2476
+ * specified target version.
2477
+ *
2478
+ * **Identity Preservation:**
2479
+ * - The original `contentHash` is preserved as `originalContentHash`
2480
+ * - The `lineage.rootArtifactId` is NEVER modified
2481
+ * - A new `contentHash` is computed after migration using `CURRENT_HASH_VERSION`
2482
+ *
2483
+ * **Non-Destructive:**
2484
+ * - The input artifact object is never mutated
2485
+ * - The canonical artifact file on disk is never modified
2486
+ * - Migration produces a new in-memory representation only
2487
+ *
2488
+ * @param artifact - The artifact payload to migrate
2489
+ * @param targetVersion - The desired target version (defaults to ARTIFACT_VERSION)
2490
+ * @returns MigrationResult with the migrated artifact and metadata
2491
+ * @throws Error if no migration path exists
2492
+ *
2493
+ * @example
2494
+ * ```typescript
2495
+ * const result = migrateArtifactPayload(legacyArtifact);
2496
+ * if (result.migrated) {
2497
+ * console.log(`Migrated from ${result.appliedSteps[0].fromVersion}`);
2498
+ * console.log(`Original hash preserved: ${result.originalContentHash}`);
2499
+ * }
2500
+ * ```
2501
+ */
2502
+ declare function migrateArtifactPayload(artifact: ArtifactPayload, targetVersion?: string): MigrationResult;
1877
2503
  /**
1878
2504
  * Migrates a v1 artifact to canonical format by updating the schema, version,
1879
2505
  * and calculating the contentHash.
2506
+ *
2507
+ * @deprecated Use `migrateArtifactPayload()` instead. This function is retained
2508
+ * for backward compatibility with existing callers.
2509
+ *
2510
+ * @param v1Artifact - The legacy v1 artifact to migrate
2511
+ * @returns The migrated artifact in canonical format
1880
2512
  */
1881
- declare function migrateToCanonical(v1Artifact: any): any;
2513
+ declare function migrateToCanonical(v1Artifact: ArtifactPayload): ArtifactPayload;
1882
2514
 
1883
2515
  declare const bigIntReplacer: (_key: string, value: unknown) => unknown;
1884
2516
  declare function writeArtifact(filePath: string, artifact: unknown): Promise<void>;
@@ -2100,4 +2732,4 @@ declare function listDeployments(rootDir: string, networkId?: string): Promise<D
2100
2732
  declare function updateDeployment(rootDir: string, networkId: string, label: string, update: Partial<DeploymentRecord>): Promise<DeploymentRecord>;
2101
2733
  declare function deleteDeployment(rootDir: string, networkId: string, label: string): Promise<boolean>;
2102
2734
 
2103
- export { ARTIFACT_SCHEMAS, ARTIFACT_VERSION, AccountRefSchema, type ArtifactDiff, type ArtifactExplanation, ArtifactLineageSchema, type ArtifactLookup, type ArtifactValidationResult, type ArtifactVerificationResult, type AssumptionLevel, type BaseArtifact, BaseArtifactSchema, BasicCorrelationInvariant, BasicLineageInvariant, CURRENT_HASH_VERSION, type Clock, type CreateTxPlanArtifactOptions, type DagContext, DagContextSchema, type DeploymentIndex, type DeploymentRecord, type DeploymentSummary, type DiffEntry, type DraftArtifact, type FeeAuditResult, HARDKAS_VERSION, type HardkasArtifactBase, type HardkasArtifactMode, type HardkasArtifactSchema, HashInvariant, type IgraSignedTxArtifact, type IgraTxPlanArtifact, type IgraTxReceiptArtifact, type IgraTxRequestArtifact, type Invariant, type InvariantContext, type InvariantViolation, InvariantWatcher, LifecycleInvariant, type LineageOptions, type LineageValidationResult, LocalnetUtxoSchemaV2, NetworkInvariant, ReplayInvariant, SEMANTIC_EXCLUSIONS, SchemaInvariant, type SignedTx, type SignedTxArtifact, type SignedTxArtifactV1, SignedTxSchema, type Snapshot, type SnapshotArtifact, SnapshotSchema, type TxOutputArtifact, type TxPlan, type TxPlanArtifact, type TxPlanArtifactV1, TxPlanSchema, type TxReceipt, type TxReceiptArtifact, type TxReceiptArtifactV1, TxReceiptSchema, type TxTrace, type TxTraceArtifact, type TxTraceArtifactV1, TxTraceSchema, type UtxoArtifact, type VerificationContext, type VerificationIssue, type VerificationSeverity, type WatcherOptions, type Workflow, type WorkflowArtifact, WorkflowSchema, assertDecimalBigIntString, assertEvmAddress, assertEvmTxHash, assertHexData, assertValidIgraSignedTxArtifact, assertValidIgraTxPlanArtifact, assertValidIgraTxReceiptArtifact, assertValidSignedTxArtifact, assertValidTxPlanArtifact, assertValidTxReceiptArtifact, bigIntReplacer, calculateContentHash, canonicalStringify, createDeploymentRecord, createIgraDeployPlanId, createIgraPlanId, createIgraSignedId, createSimulatedSignedTxArtifact, createSimulatedTxReceipt, createTxPlanArtifact, defaultClock, deleteDeployment, diffArtifacts, explainArtifact, formatSignedTxArtifact, formatTxPlanArtifact, formatTxReceiptArtifact, getBroadcastableSignedTransaction, getDefaultL2ReceiptsDir, getDefaultReceiptPath, getL2ReceiptPath, isIgraTxPlanArtifact, listDeployments, listIgraTxReceiptArtifacts, loadDeployment, loadIgraTxReceiptArtifact, migrateToCanonical, readArtifact, readSignedTxArtifact, readTxPlanArtifact, readTxReceiptArtifact, recomputeMass, saveDeployment, saveIgraTxReceiptArtifact, sortUtxosByOutpoint, txOutputFromArtifact, txOutputToArtifact, updateDeployment, updateDeploymentStatus, utxoFromArtifact, utxoToArtifact, validateArtifact, validateIgraSignedTxArtifact, validateIgraTxPlanArtifact, validateIgraTxReceiptArtifact, validateSignedTxArtifact, validateTxPlanArtifact, validateTxReceiptArtifact, verifyArtifact, verifyArtifactFile, verifyArtifactIntegrity, verifyArtifactReplay, verifyArtifactSemantics, verifyFeeSemantics, verifyLineage, writeArtifact };
2735
+ export { ARTIFACT_SCHEMAS, ARTIFACT_VERSION, AccountRefSchema, type ArtifactDiff, type ArtifactExplanation, ArtifactLineageSchema, type ArtifactLookup, type ArtifactPayload, type ArtifactValidationResult, type ArtifactVerificationResult, type AssumptionLevel, type BaseArtifact, BaseArtifactSchema, BasicCorrelationInvariant, BasicLineageInvariant, CURRENT_HASH_VERSION, type Clock, type CreateTxPlanArtifactOptions, type DagContext, DagContextSchema, type DeploymentIndex, type DeploymentRecord, type DeploymentSummary, type DiffEntry, type DraftArtifact, type FeeAuditResult, HARDKAS_VERSION, type HardkasArtifactBase, type HardkasArtifactMode, type HardkasArtifactSchema, HashInvariant, type IgraSignedTxArtifact, type IgraTxPlanArtifact, type IgraTxReceiptArtifact, type IgraTxRequestArtifact, type Invariant, type InvariantContext, type InvariantViolation, InvariantWatcher, LifecycleInvariant, type LineageOptions, type LineageValidationResult, LocalnetUtxoSchemaV2, type MigrationResult, type MigrationStep, NetworkInvariant, ReplayInvariant, type RuntimeSession, RuntimeSessionSchema, SEMANTIC_EXCLUSIONS, STRICT_PATH_KEYS, SchemaInvariant, type ScriptCapability, ScriptCapabilitySchema, ScriptMetadataSchema, type SignedTx, type SignedTxArtifact, type SignedTxArtifactV1, SignedTxSchema, type Snapshot, type SnapshotArtifact, SnapshotSchema, type TxOutputArtifact, type TxPlan, type TxPlanArtifact, type TxPlanArtifactV1, TxPlanSchema, type TxReceipt, type TxReceiptArtifact, type TxReceiptArtifactV1, TxReceiptSchema, type TxTrace, type TxTraceArtifact, type TxTraceArtifactV1, TxTraceSchema, type UtxoArtifact, type VerificationContext, type VerificationIssue, type VerificationSeverity, type WatcherOptions, type Workflow, type WorkflowArtifact, WorkflowSchema, assertDecimalBigIntString, assertEvmAddress, assertEvmTxHash, assertHexData, assertValidIgraSignedTxArtifact, assertValidIgraTxPlanArtifact, assertValidIgraTxReceiptArtifact, assertValidSignedTxArtifact, assertValidTxPlanArtifact, assertValidTxReceiptArtifact, bigIntReplacer, calculateContentHash, canMigrate, canonicalStringify, createDeploymentRecord, createIgraDeployPlanId, createIgraPlanId, createIgraSignedId, createSimulatedSignedTxArtifact, createSimulatedTxReceipt, createTxPlanArtifact, defaultClock, deleteDeployment, detectArtifactVersion, diffArtifacts, explainArtifact, formatSignedTxArtifact, formatTxPlanArtifact, formatTxReceiptArtifact, getBroadcastableSignedTransaction, getDefaultL2ReceiptsDir, getDefaultReceiptPath, getL2ReceiptPath, getMigrationPath, getRegisteredMigrationSteps, isIgraTxPlanArtifact, listDeployments, listIgraTxReceiptArtifacts, loadDeployment, loadIgraTxReceiptArtifact, migrateArtifactPayload, migrateToCanonical, readArtifact, readSignedTxArtifact, readTxPlanArtifact, readTxReceiptArtifact, recomputeMass, registerMigrationStep, saveDeployment, saveIgraTxReceiptArtifact, sortUtxosByOutpoint, txOutputFromArtifact, txOutputToArtifact, updateDeployment, updateDeploymentStatus, utxoFromArtifact, utxoToArtifact, validateArtifact, validateIgraSignedTxArtifact, validateIgraTxPlanArtifact, validateIgraTxReceiptArtifact, validateSignedTxArtifact, validateTxPlanArtifact, validateTxReceiptArtifact, verifyArtifact, verifyArtifactFile, verifyArtifactIntegrity, verifyArtifactReplay, verifyArtifactSemantics, verifyFeeSemantics, verifyLineage, writeArtifact };