@hardkas/artifacts 0.8.13-alpha → 0.8.15-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.
- package/dist/index.d.ts +36 -0
- package/dist/index.js +13 -8
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -95,6 +95,7 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
95
95
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
96
96
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
97
97
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
98
99
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
99
100
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
100
101
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -136,6 +137,7 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
136
137
|
parents?: string[] | undefined;
|
|
137
138
|
lineageDepth?: number | undefined;
|
|
138
139
|
workflowId?: string | undefined;
|
|
140
|
+
assumptionLevel?: string | undefined;
|
|
139
141
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
140
142
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
141
143
|
scriptMetadata?: {
|
|
@@ -165,6 +167,7 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
165
167
|
parents?: string[] | undefined;
|
|
166
168
|
lineageDepth?: number | undefined;
|
|
167
169
|
workflowId?: string | undefined;
|
|
170
|
+
assumptionLevel?: string | undefined;
|
|
168
171
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
169
172
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
170
173
|
scriptMetadata?: {
|
|
@@ -219,6 +222,7 @@ declare const PolicySchema: z.ZodObject<{
|
|
|
219
222
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
220
223
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
221
224
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
225
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
222
226
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
223
227
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
224
228
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -282,6 +286,7 @@ declare const PolicySchema: z.ZodObject<{
|
|
|
282
286
|
parents?: string[] | undefined;
|
|
283
287
|
lineageDepth?: number | undefined;
|
|
284
288
|
workflowId?: string | undefined;
|
|
289
|
+
assumptionLevel?: string | undefined;
|
|
285
290
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
286
291
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
287
292
|
scriptMetadata?: {
|
|
@@ -317,6 +322,7 @@ declare const PolicySchema: z.ZodObject<{
|
|
|
317
322
|
parents?: string[] | undefined;
|
|
318
323
|
lineageDepth?: number | undefined;
|
|
319
324
|
workflowId?: string | undefined;
|
|
325
|
+
assumptionLevel?: string | undefined;
|
|
320
326
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
321
327
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
322
328
|
scriptMetadata?: {
|
|
@@ -358,6 +364,7 @@ declare const NetworkProfileSchema: z.ZodObject<{
|
|
|
358
364
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
359
365
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
360
366
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
367
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
361
368
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
362
369
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
363
370
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -407,6 +414,7 @@ declare const NetworkProfileSchema: z.ZodObject<{
|
|
|
407
414
|
parents?: string[] | undefined;
|
|
408
415
|
lineageDepth?: number | undefined;
|
|
409
416
|
workflowId?: string | undefined;
|
|
417
|
+
assumptionLevel?: string | undefined;
|
|
410
418
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
411
419
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
412
420
|
scriptMetadata?: {
|
|
@@ -439,6 +447,7 @@ declare const NetworkProfileSchema: z.ZodObject<{
|
|
|
439
447
|
parents?: string[] | undefined;
|
|
440
448
|
lineageDepth?: number | undefined;
|
|
441
449
|
workflowId?: string | undefined;
|
|
450
|
+
assumptionLevel?: string | undefined;
|
|
442
451
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
443
452
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
444
453
|
scriptMetadata?: {
|
|
@@ -480,6 +489,7 @@ declare const AssumptionSchema: z.ZodObject<{
|
|
|
480
489
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
481
490
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
482
491
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
492
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
483
493
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
484
494
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
485
495
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -528,6 +538,7 @@ declare const AssumptionSchema: z.ZodObject<{
|
|
|
528
538
|
parents?: string[] | undefined;
|
|
529
539
|
lineageDepth?: number | undefined;
|
|
530
540
|
workflowId?: string | undefined;
|
|
541
|
+
assumptionLevel?: string | undefined;
|
|
531
542
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
532
543
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
533
544
|
scriptMetadata?: {
|
|
@@ -562,6 +573,7 @@ declare const AssumptionSchema: z.ZodObject<{
|
|
|
562
573
|
parents?: string[] | undefined;
|
|
563
574
|
lineageDepth?: number | undefined;
|
|
564
575
|
workflowId?: string | undefined;
|
|
576
|
+
assumptionLevel?: string | undefined;
|
|
565
577
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
566
578
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
567
579
|
scriptMetadata?: {
|
|
@@ -608,6 +620,7 @@ declare const MigrationReceiptSchema: z.ZodObject<{
|
|
|
608
620
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
609
621
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
610
622
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
623
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
611
624
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
612
625
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
613
626
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -664,6 +677,7 @@ declare const MigrationReceiptSchema: z.ZodObject<{
|
|
|
664
677
|
parents?: string[] | undefined;
|
|
665
678
|
lineageDepth?: number | undefined;
|
|
666
679
|
workflowId?: string | undefined;
|
|
680
|
+
assumptionLevel?: string | undefined;
|
|
667
681
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
668
682
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
669
683
|
scriptMetadata?: {
|
|
@@ -700,6 +714,7 @@ declare const MigrationReceiptSchema: z.ZodObject<{
|
|
|
700
714
|
parents?: string[] | undefined;
|
|
701
715
|
lineageDepth?: number | undefined;
|
|
702
716
|
workflowId?: string | undefined;
|
|
717
|
+
assumptionLevel?: string | undefined;
|
|
703
718
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
704
719
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
705
720
|
scriptMetadata?: {
|
|
@@ -740,6 +755,7 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
740
755
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
741
756
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
742
757
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
758
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
743
759
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
744
760
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
745
761
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -906,6 +922,7 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
906
922
|
parents?: string[] | undefined;
|
|
907
923
|
lineageDepth?: number | undefined;
|
|
908
924
|
workflowId?: string | undefined;
|
|
925
|
+
assumptionLevel?: string | undefined;
|
|
909
926
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
910
927
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
911
928
|
scriptMetadata?: {
|
|
@@ -973,6 +990,7 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
973
990
|
parents?: string[] | undefined;
|
|
974
991
|
lineageDepth?: number | undefined;
|
|
975
992
|
workflowId?: string | undefined;
|
|
993
|
+
assumptionLevel?: string | undefined;
|
|
976
994
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
977
995
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
978
996
|
scriptMetadata?: {
|
|
@@ -1090,6 +1108,7 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
1090
1108
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1091
1109
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1092
1110
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
1093
1112
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1094
1113
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1095
1114
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -1179,6 +1198,7 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
1179
1198
|
parents?: string[] | undefined;
|
|
1180
1199
|
lineageDepth?: number | undefined;
|
|
1181
1200
|
workflowId?: string | undefined;
|
|
1201
|
+
assumptionLevel?: string | undefined;
|
|
1182
1202
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1183
1203
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1184
1204
|
scriptMetadata?: {
|
|
@@ -1224,6 +1244,7 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
1224
1244
|
parents?: string[] | undefined;
|
|
1225
1245
|
lineageDepth?: number | undefined;
|
|
1226
1246
|
workflowId?: string | undefined;
|
|
1247
|
+
assumptionLevel?: string | undefined;
|
|
1227
1248
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1228
1249
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1229
1250
|
scriptMetadata?: {
|
|
@@ -1267,6 +1288,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
1267
1288
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1268
1289
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1269
1290
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
1270
1292
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1271
1293
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1272
1294
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -1418,6 +1440,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
1418
1440
|
parents?: string[] | undefined;
|
|
1419
1441
|
lineageDepth?: number | undefined;
|
|
1420
1442
|
workflowId?: string | undefined;
|
|
1443
|
+
assumptionLevel?: string | undefined;
|
|
1421
1444
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1422
1445
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1423
1446
|
scriptMetadata?: {
|
|
@@ -1489,6 +1512,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
1489
1512
|
parents?: string[] | undefined;
|
|
1490
1513
|
lineageDepth?: number | undefined;
|
|
1491
1514
|
workflowId?: string | undefined;
|
|
1515
|
+
assumptionLevel?: string | undefined;
|
|
1492
1516
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1493
1517
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1494
1518
|
scriptMetadata?: {
|
|
@@ -1576,6 +1600,7 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
1576
1600
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1577
1601
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1578
1602
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1603
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
1579
1604
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1580
1605
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1581
1606
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -1724,6 +1749,7 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
1724
1749
|
parents?: string[] | undefined;
|
|
1725
1750
|
lineageDepth?: number | undefined;
|
|
1726
1751
|
workflowId?: string | undefined;
|
|
1752
|
+
assumptionLevel?: string | undefined;
|
|
1727
1753
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1728
1754
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1729
1755
|
scriptMetadata?: {
|
|
@@ -1786,6 +1812,7 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
1786
1812
|
parents?: string[] | undefined;
|
|
1787
1813
|
lineageDepth?: number | undefined;
|
|
1788
1814
|
workflowId?: string | undefined;
|
|
1815
|
+
assumptionLevel?: string | undefined;
|
|
1789
1816
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1790
1817
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1791
1818
|
scriptMetadata?: {
|
|
@@ -1836,6 +1863,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1836
1863
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1837
1864
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1838
1865
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
1839
1867
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1840
1868
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1841
1869
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -1953,6 +1981,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1953
1981
|
parents?: string[] | undefined;
|
|
1954
1982
|
lineageDepth?: number | undefined;
|
|
1955
1983
|
workflowId?: string | undefined;
|
|
1984
|
+
assumptionLevel?: string | undefined;
|
|
1956
1985
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1957
1986
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1958
1987
|
scriptMetadata?: {
|
|
@@ -2003,6 +2032,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
2003
2032
|
parents?: string[] | undefined;
|
|
2004
2033
|
lineageDepth?: number | undefined;
|
|
2005
2034
|
workflowId?: string | undefined;
|
|
2035
|
+
assumptionLevel?: string | undefined;
|
|
2006
2036
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
2007
2037
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
2008
2038
|
scriptMetadata?: {
|
|
@@ -2057,6 +2087,7 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
2057
2087
|
}>>;
|
|
2058
2088
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2059
2089
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
2090
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
2060
2091
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
2061
2092
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
2062
2093
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -2187,6 +2218,7 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
2187
2218
|
} | undefined;
|
|
2188
2219
|
parents?: string[] | undefined;
|
|
2189
2220
|
lineageDepth?: number | undefined;
|
|
2221
|
+
assumptionLevel?: string | undefined;
|
|
2190
2222
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
2191
2223
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
2192
2224
|
scriptMetadata?: {
|
|
@@ -2248,6 +2280,7 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
2248
2280
|
} | undefined;
|
|
2249
2281
|
parents?: string[] | undefined;
|
|
2250
2282
|
lineageDepth?: number | undefined;
|
|
2283
|
+
assumptionLevel?: string | undefined;
|
|
2251
2284
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
2252
2285
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
2253
2286
|
scriptMetadata?: {
|
|
@@ -2324,6 +2357,7 @@ declare const RuntimeSessionSchema: z.ZodObject<{
|
|
|
2324
2357
|
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2325
2358
|
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
2326
2359
|
workflowId: z.ZodOptional<z.ZodString>;
|
|
2360
|
+
assumptionLevel: z.ZodOptional<z.ZodString>;
|
|
2327
2361
|
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
2328
2362
|
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
2329
2363
|
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -2382,6 +2416,7 @@ declare const RuntimeSessionSchema: z.ZodObject<{
|
|
|
2382
2416
|
parents?: string[] | undefined;
|
|
2383
2417
|
lineageDepth?: number | undefined;
|
|
2384
2418
|
workflowId?: string | undefined;
|
|
2419
|
+
assumptionLevel?: string | undefined;
|
|
2385
2420
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
2386
2421
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
2387
2422
|
scriptMetadata?: {
|
|
@@ -2420,6 +2455,7 @@ declare const RuntimeSessionSchema: z.ZodObject<{
|
|
|
2420
2455
|
parents?: string[] | undefined;
|
|
2421
2456
|
lineageDepth?: number | undefined;
|
|
2422
2457
|
workflowId?: string | undefined;
|
|
2458
|
+
assumptionLevel?: string | undefined;
|
|
2423
2459
|
scriptProfile?: "experimental" | "standard" | undefined;
|
|
2424
2460
|
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
2425
2461
|
scriptMetadata?: {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@hardkas/artifacts",
|
|
4
|
-
version: "0.8.
|
|
4
|
+
version: "0.8.15-alpha",
|
|
5
5
|
type: "module",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
author: "Javier Rodriguez",
|
|
@@ -231,7 +231,6 @@ var SEMANTIC_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
|
231
231
|
"confirmedAt",
|
|
232
232
|
"dagContext",
|
|
233
233
|
"executionId",
|
|
234
|
-
"workflowId",
|
|
235
234
|
"signatureMetadata"
|
|
236
235
|
]);
|
|
237
236
|
var V4_SEMANTIC_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
@@ -262,7 +261,6 @@ var V4_SEMANTIC_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
|
262
261
|
"tracePath",
|
|
263
262
|
"receiptPath",
|
|
264
263
|
"sourceSignedId",
|
|
265
|
-
"workflowId",
|
|
266
264
|
"signatureMetadata",
|
|
267
265
|
"rpcHost",
|
|
268
266
|
"rpcUrl",
|
|
@@ -383,6 +381,7 @@ var BaseArtifactSchema = z.object({
|
|
|
383
381
|
parents: z.array(z.string()).optional(),
|
|
384
382
|
lineageDepth: z.number().optional(),
|
|
385
383
|
workflowId: z.string().optional(),
|
|
384
|
+
assumptionLevel: z.string().optional(),
|
|
386
385
|
scriptProfile: z.enum(["standard", "experimental"]).optional(),
|
|
387
386
|
scriptCapabilities: z.array(ScriptCapabilitySchema).optional(),
|
|
388
387
|
scriptMetadata: ScriptMetadataSchema.optional()
|
|
@@ -1284,7 +1283,7 @@ function verifyArtifactSemantics(artifact, context = {}) {
|
|
|
1284
1283
|
if (!parentObj) {
|
|
1285
1284
|
addIssue({
|
|
1286
1285
|
code: "PARENT_MISSING",
|
|
1287
|
-
severity: "warning",
|
|
1286
|
+
severity: strict ? "error" : "warning",
|
|
1288
1287
|
message: `Parent artifact ${parentId} not found in workspace`
|
|
1289
1288
|
});
|
|
1290
1289
|
} else {
|
|
@@ -2078,7 +2077,8 @@ function createTxPlanArtifact(options) {
|
|
|
2078
2077
|
rootArtifactId: "",
|
|
2079
2078
|
sequence: 1
|
|
2080
2079
|
},
|
|
2081
|
-
...options.ctx.workflowId ? { workflowId: options.ctx.workflowId } : {}
|
|
2080
|
+
...options.ctx.workflowId ? { workflowId: options.ctx.workflowId } : {},
|
|
2081
|
+
assumptionLevel: options.ctx.assumptionLevel || (options.mode === "simulated" ? "local-simulated" : "local-dev")
|
|
2082
2082
|
};
|
|
2083
2083
|
if (options.plan.change) {
|
|
2084
2084
|
artifact.change = {
|
|
@@ -2089,9 +2089,12 @@ function createTxPlanArtifact(options) {
|
|
|
2089
2089
|
const hash = calculateContentHash(artifact, CURRENT_HASH_VERSION);
|
|
2090
2090
|
artifact.planId = `plan-${hash.slice(0, 16)}`;
|
|
2091
2091
|
artifact.contentHash = hash;
|
|
2092
|
+
if (!artifact.workflowId) {
|
|
2093
|
+
artifact.workflowId = `wf_${hash.slice(0, 16)}`;
|
|
2094
|
+
}
|
|
2092
2095
|
if (artifact.lineage) {
|
|
2093
2096
|
artifact.lineage.lineageId = hash;
|
|
2094
|
-
artifact.lineage.parentArtifactId =
|
|
2097
|
+
artifact.lineage.parentArtifactId = "";
|
|
2095
2098
|
artifact.lineage.rootArtifactId = hash;
|
|
2096
2099
|
artifact.lineage.artifactId = hash;
|
|
2097
2100
|
const finalHash = calculateContentHash(artifact, CURRENT_HASH_VERSION);
|
|
@@ -2124,7 +2127,8 @@ function createSimulatedSignedTxArtifact(plan, payload, ctx) {
|
|
|
2124
2127
|
payload
|
|
2125
2128
|
},
|
|
2126
2129
|
lineage: createLineageTransition(plan, "hardkas.signedTx"),
|
|
2127
|
-
...plan.workflowId ? { workflowId: plan.workflowId } : {}
|
|
2130
|
+
...plan.workflowId ? { workflowId: plan.workflowId } : {},
|
|
2131
|
+
...plan.assumptionLevel ? { assumptionLevel: plan.assumptionLevel } : {}
|
|
2128
2132
|
};
|
|
2129
2133
|
const hash = calculateContentHash(artifact, CURRENT_HASH_VERSION);
|
|
2130
2134
|
artifact.signedId = `signed-${hash.slice(0, 16)}`;
|
|
@@ -2158,7 +2162,8 @@ function createSimulatedTxReceipt(plan, txId, ctx, extra) {
|
|
|
2158
2162
|
postStateHash: extra?.postStateHash,
|
|
2159
2163
|
dagContext: extra?.dagContext,
|
|
2160
2164
|
lineage: createLineageTransition(plan, "hardkas.txReceipt"),
|
|
2161
|
-
...plan.workflowId ? { workflowId: plan.workflowId } : {}
|
|
2165
|
+
...plan.workflowId ? { workflowId: plan.workflowId } : {},
|
|
2166
|
+
...plan.assumptionLevel ? { assumptionLevel: plan.assumptionLevel } : {}
|
|
2162
2167
|
};
|
|
2163
2168
|
if (artifact.lineage) {
|
|
2164
2169
|
artifact.lineage.parentArtifactId = extra?.preStateHash || txId.replace("simulated-", "").replace("-tx", "").padEnd(64, "0").slice(0, 64);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/artifacts",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.15-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Javier Rodriguez",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"zod": "^3.24.1",
|
|
31
|
-
"@hardkas/core": "0.8.
|
|
32
|
-
"@hardkas/tx-builder": "0.8.
|
|
31
|
+
"@hardkas/core": "0.8.15-alpha",
|
|
32
|
+
"@hardkas/tx-builder": "0.8.15-alpha"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsup": "^8.3.5",
|