circuit-json 0.0.200 → 0.0.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -215,6 +215,7 @@ interface SourceComponentBase {
215
215
  interface SourceFailedToCreateComponentError {
216
216
  type: "source_failed_to_create_component_error"
217
217
  source_failed_to_create_component_error_id: string
218
+ error_type: "source_failed_to_create_component_error"
218
219
  message: string
219
220
  component_name?: string
220
221
  subcircuit_id?: string
@@ -552,6 +553,7 @@ interface SourceTrace {
552
553
  interface PcbAutoroutingErrorInterface {
553
554
  type: "pcb_autorouting_error"
554
555
  pcb_error_id: string
556
+ error_type: "pcb_autorouting_error"
555
557
  message: string
556
558
  }
557
559
  ```
@@ -784,6 +786,7 @@ Defines a placement error on the PCB
784
786
  interface PcbPlacementError {
785
787
  type: "pcb_placement_error"
786
788
  pcb_placement_error_id: string
789
+ error_type: "pcb_placement_error"
787
790
  message: string
788
791
  }
789
792
  ```
@@ -884,6 +887,7 @@ Defines a trace error on the PCB where a port is not matched
884
887
  interface PcbPortNotMatchedError {
885
888
  type: "pcb_port_not_matched_error"
886
889
  pcb_error_id: string
890
+ error_type: "pcb_port_not_matched_error"
887
891
  message: string
888
892
  pcb_component_ids: string[]
889
893
  }
@@ -1240,6 +1244,7 @@ interface SchematicGroup {
1240
1244
  interface SchematicLayoutError {
1241
1245
  type: "schematic_layout_error"
1242
1246
  schematic_layout_error_id: string
1247
+ error_type: "schematic_layout_error"
1243
1248
  message: string
1244
1249
  source_group_id: string
1245
1250
  schematic_group_id: string
package/dist/index.d.mts CHANGED
@@ -2028,7 +2028,7 @@ type PCBTraceInput = PcbTraceInput;
2028
2028
  declare const pcb_trace_error: z.ZodObject<{
2029
2029
  type: z.ZodLiteral<"pcb_trace_error">;
2030
2030
  pcb_trace_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2031
- error_type: z.ZodLiteral<"pcb_trace_error">;
2031
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_error">>;
2032
2032
  message: z.ZodString;
2033
2033
  center: z.ZodOptional<z.ZodObject<{
2034
2034
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -2062,7 +2062,6 @@ declare const pcb_trace_error: z.ZodObject<{
2062
2062
  type: "pcb_trace_error";
2063
2063
  source_trace_id: string;
2064
2064
  pcb_trace_id: string;
2065
- error_type: "pcb_trace_error";
2066
2065
  pcb_component_ids: string[];
2067
2066
  pcb_port_ids: string[];
2068
2067
  center?: {
@@ -2070,6 +2069,7 @@ declare const pcb_trace_error: z.ZodObject<{
2070
2069
  y: string | number;
2071
2070
  } | undefined;
2072
2071
  pcb_trace_error_id?: string | undefined;
2072
+ error_type?: "pcb_trace_error" | undefined;
2073
2073
  }>;
2074
2074
  type PcbTraceErrorInput = z.input<typeof pcb_trace_error>;
2075
2075
  /**
@@ -2094,17 +2094,20 @@ type PCBTraceError = PcbTraceError;
2094
2094
  declare const pcb_port_not_matched_error: z.ZodObject<{
2095
2095
  type: z.ZodLiteral<"pcb_port_not_matched_error">;
2096
2096
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2097
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_matched_error">>;
2097
2098
  message: z.ZodString;
2098
2099
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
2099
2100
  }, "strip", z.ZodTypeAny, {
2100
2101
  message: string;
2101
2102
  type: "pcb_port_not_matched_error";
2103
+ error_type: "pcb_port_not_matched_error";
2102
2104
  pcb_component_ids: string[];
2103
2105
  pcb_error_id: string;
2104
2106
  }, {
2105
2107
  message: string;
2106
2108
  type: "pcb_port_not_matched_error";
2107
2109
  pcb_component_ids: string[];
2110
+ error_type?: "pcb_port_not_matched_error" | undefined;
2108
2111
  pcb_error_id?: string | undefined;
2109
2112
  }>;
2110
2113
  type PcbPortNotMatchedErrorInput = z.input<typeof pcb_port_not_matched_error>;
@@ -2114,6 +2117,7 @@ type PcbPortNotMatchedErrorInput = z.input<typeof pcb_port_not_matched_error>;
2114
2117
  interface PcbPortNotMatchedError {
2115
2118
  type: "pcb_port_not_matched_error";
2116
2119
  pcb_error_id: string;
2120
+ error_type: "pcb_port_not_matched_error";
2117
2121
  message: string;
2118
2122
  pcb_component_ids: string[];
2119
2123
  }
@@ -2311,14 +2315,17 @@ type PCBBoard = PcbBoard;
2311
2315
  declare const pcb_placement_error: z.ZodObject<{
2312
2316
  type: z.ZodLiteral<"pcb_placement_error">;
2313
2317
  pcb_placement_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2318
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_placement_error">>;
2314
2319
  message: z.ZodString;
2315
2320
  }, "strip", z.ZodTypeAny, {
2316
2321
  message: string;
2317
2322
  type: "pcb_placement_error";
2323
+ error_type: "pcb_placement_error";
2318
2324
  pcb_placement_error_id: string;
2319
2325
  }, {
2320
2326
  message: string;
2321
2327
  type: "pcb_placement_error";
2328
+ error_type?: "pcb_placement_error" | undefined;
2322
2329
  pcb_placement_error_id?: string | undefined;
2323
2330
  }>;
2324
2331
  type PcbPlacementErrorInput = z.input<typeof pcb_placement_error>;
@@ -2328,6 +2335,7 @@ type PcbPlacementErrorInput = z.input<typeof pcb_placement_error>;
2328
2335
  interface PcbPlacementError {
2329
2336
  type: "pcb_placement_error";
2330
2337
  pcb_placement_error_id: string;
2338
+ error_type: "pcb_placement_error";
2331
2339
  message: string;
2332
2340
  }
2333
2341
  /**
@@ -3393,7 +3401,7 @@ declare const pcb_missing_footprint_error: z.ZodObject<{
3393
3401
  pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3394
3402
  pcb_group_id: z.ZodOptional<z.ZodString>;
3395
3403
  subcircuit_id: z.ZodOptional<z.ZodString>;
3396
- error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
3404
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_missing_footprint_error">>;
3397
3405
  source_component_id: z.ZodString;
3398
3406
  message: z.ZodString;
3399
3407
  }, "strip", z.ZodTypeAny, {
@@ -3408,9 +3416,9 @@ declare const pcb_missing_footprint_error: z.ZodObject<{
3408
3416
  message: string;
3409
3417
  type: "pcb_missing_footprint_error";
3410
3418
  source_component_id: string;
3411
- error_type: "pcb_missing_footprint_error";
3412
3419
  subcircuit_id?: string | undefined;
3413
3420
  pcb_group_id?: string | undefined;
3421
+ error_type?: "pcb_missing_footprint_error" | undefined;
3414
3422
  pcb_missing_footprint_error_id?: string | undefined;
3415
3423
  }>;
3416
3424
  type PcbMissingFootprintErrorInput = z.input<typeof pcb_missing_footprint_error>;
@@ -3504,20 +3512,24 @@ interface PcbGroup {
3504
3512
  declare const pcb_autorouting_error: z.ZodObject<{
3505
3513
  type: z.ZodLiteral<"pcb_autorouting_error">;
3506
3514
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3515
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_autorouting_error">>;
3507
3516
  message: z.ZodString;
3508
3517
  }, "strip", z.ZodTypeAny, {
3509
3518
  message: string;
3510
3519
  type: "pcb_autorouting_error";
3520
+ error_type: "pcb_autorouting_error";
3511
3521
  pcb_error_id: string;
3512
3522
  }, {
3513
3523
  message: string;
3514
3524
  type: "pcb_autorouting_error";
3525
+ error_type?: "pcb_autorouting_error" | undefined;
3515
3526
  pcb_error_id?: string | undefined;
3516
3527
  }>;
3517
3528
  type PcbAutoroutingErrorInput = z.input<typeof pcb_autorouting_error>;
3518
3529
  interface PcbAutoroutingErrorInterface {
3519
3530
  type: "pcb_autorouting_error";
3520
3531
  pcb_error_id: string;
3532
+ error_type: "pcb_autorouting_error";
3521
3533
  message: string;
3522
3534
  }
3523
3535
  type PcbAutoroutingError = PcbAutoroutingErrorInterface;
@@ -4558,7 +4570,7 @@ interface SchematicError {
4558
4570
  declare const schematic_error: z.ZodObject<{
4559
4571
  type: z.ZodLiteral<"schematic_error">;
4560
4572
  schematic_error_id: z.ZodString;
4561
- error_type: z.ZodLiteral<"schematic_port_not_found">;
4573
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_port_not_found">>;
4562
4574
  message: z.ZodString;
4563
4575
  }, "strip", z.ZodTypeAny, {
4564
4576
  message: string;
@@ -4568,20 +4580,22 @@ declare const schematic_error: z.ZodObject<{
4568
4580
  }, {
4569
4581
  message: string;
4570
4582
  type: "schematic_error";
4571
- error_type: "schematic_port_not_found";
4572
4583
  schematic_error_id: string;
4584
+ error_type?: "schematic_port_not_found" | undefined;
4573
4585
  }>;
4574
4586
  type SchematicErrorInput = z.input<typeof schematic_error>;
4575
4587
 
4576
4588
  declare const schematic_layout_error: z.ZodObject<{
4577
4589
  type: z.ZodLiteral<"schematic_layout_error">;
4578
4590
  schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4591
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_layout_error">>;
4579
4592
  message: z.ZodString;
4580
4593
  source_group_id: z.ZodString;
4581
4594
  schematic_group_id: z.ZodString;
4582
4595
  }, "strip", z.ZodTypeAny, {
4583
4596
  message: string;
4584
4597
  type: "schematic_layout_error";
4598
+ error_type: "schematic_layout_error";
4585
4599
  source_group_id: string;
4586
4600
  schematic_group_id: string;
4587
4601
  schematic_layout_error_id: string;
@@ -4590,12 +4604,14 @@ declare const schematic_layout_error: z.ZodObject<{
4590
4604
  type: "schematic_layout_error";
4591
4605
  source_group_id: string;
4592
4606
  schematic_group_id: string;
4607
+ error_type?: "schematic_layout_error" | undefined;
4593
4608
  schematic_layout_error_id?: string | undefined;
4594
4609
  }>;
4595
4610
  type SchematicLayoutErrorInput = z.input<typeof schematic_layout_error>;
4596
4611
  interface SchematicLayoutError {
4597
4612
  type: "schematic_layout_error";
4598
4613
  schematic_layout_error_id: string;
4614
+ error_type: "schematic_layout_error";
4599
4615
  message: string;
4600
4616
  source_group_id: string;
4601
4617
  schematic_group_id: string;
@@ -6056,7 +6072,7 @@ declare const source_missing_property_error: z.ZodObject<{
6056
6072
  source_missing_property_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6057
6073
  source_component_id: z.ZodString;
6058
6074
  property_name: z.ZodString;
6059
- error_type: z.ZodLiteral<"source_missing_property_error">;
6075
+ error_type: z.ZodDefault<z.ZodLiteral<"source_missing_property_error">>;
6060
6076
  message: z.ZodString;
6061
6077
  }, "strip", z.ZodTypeAny, {
6062
6078
  message: string;
@@ -6069,8 +6085,8 @@ declare const source_missing_property_error: z.ZodObject<{
6069
6085
  message: string;
6070
6086
  type: "source_missing_property_error";
6071
6087
  source_component_id: string;
6072
- error_type: "source_missing_property_error";
6073
6088
  property_name: string;
6089
+ error_type?: "source_missing_property_error" | undefined;
6074
6090
  source_missing_property_error_id?: string | undefined;
6075
6091
  }>;
6076
6092
  type SourceMissingPropertyErrorInput = z.input<typeof source_missing_property_error>;
@@ -6089,6 +6105,7 @@ interface SourceMissingPropertyError {
6089
6105
  declare const source_failed_to_create_component_error: z.ZodObject<{
6090
6106
  type: z.ZodLiteral<"source_failed_to_create_component_error">;
6091
6107
  source_failed_to_create_component_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6108
+ error_type: z.ZodDefault<z.ZodLiteral<"source_failed_to_create_component_error">>;
6092
6109
  component_name: z.ZodOptional<z.ZodString>;
6093
6110
  subcircuit_id: z.ZodOptional<z.ZodString>;
6094
6111
  parent_source_component_id: z.ZodOptional<z.ZodString>;
@@ -6116,6 +6133,7 @@ declare const source_failed_to_create_component_error: z.ZodObject<{
6116
6133
  }, "strip", z.ZodTypeAny, {
6117
6134
  message: string;
6118
6135
  type: "source_failed_to_create_component_error";
6136
+ error_type: "source_failed_to_create_component_error";
6119
6137
  source_failed_to_create_component_error_id: string;
6120
6138
  subcircuit_id?: string | undefined;
6121
6139
  component_name?: string | undefined;
@@ -6132,6 +6150,7 @@ declare const source_failed_to_create_component_error: z.ZodObject<{
6132
6150
  message: string;
6133
6151
  type: "source_failed_to_create_component_error";
6134
6152
  subcircuit_id?: string | undefined;
6153
+ error_type?: "source_failed_to_create_component_error" | undefined;
6135
6154
  source_failed_to_create_component_error_id?: string | undefined;
6136
6155
  component_name?: string | undefined;
6137
6156
  parent_source_component_id?: string | undefined;
@@ -6152,6 +6171,7 @@ type SourceFailedToCreateComponentErrorInput = z.input<typeof source_failed_to_c
6152
6171
  interface SourceFailedToCreateComponentError {
6153
6172
  type: "source_failed_to_create_component_error";
6154
6173
  source_failed_to_create_component_error_id: string;
6174
+ error_type: "source_failed_to_create_component_error";
6155
6175
  message: string;
6156
6176
  component_name?: string;
6157
6177
  subcircuit_id?: string;
@@ -6959,7 +6979,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
6959
6979
  source_missing_property_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6960
6980
  source_component_id: z.ZodString;
6961
6981
  property_name: z.ZodString;
6962
- error_type: z.ZodLiteral<"source_missing_property_error">;
6982
+ error_type: z.ZodDefault<z.ZodLiteral<"source_missing_property_error">>;
6963
6983
  message: z.ZodString;
6964
6984
  }, "strip", z.ZodTypeAny, {
6965
6985
  message: string;
@@ -6972,12 +6992,13 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
6972
6992
  message: string;
6973
6993
  type: "source_missing_property_error";
6974
6994
  source_component_id: string;
6975
- error_type: "source_missing_property_error";
6976
6995
  property_name: string;
6996
+ error_type?: "source_missing_property_error" | undefined;
6977
6997
  source_missing_property_error_id?: string | undefined;
6978
6998
  }>, z.ZodObject<{
6979
6999
  type: z.ZodLiteral<"source_failed_to_create_component_error">;
6980
7000
  source_failed_to_create_component_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7001
+ error_type: z.ZodDefault<z.ZodLiteral<"source_failed_to_create_component_error">>;
6981
7002
  component_name: z.ZodOptional<z.ZodString>;
6982
7003
  subcircuit_id: z.ZodOptional<z.ZodString>;
6983
7004
  parent_source_component_id: z.ZodOptional<z.ZodString>;
@@ -7005,6 +7026,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7005
7026
  }, "strip", z.ZodTypeAny, {
7006
7027
  message: string;
7007
7028
  type: "source_failed_to_create_component_error";
7029
+ error_type: "source_failed_to_create_component_error";
7008
7030
  source_failed_to_create_component_error_id: string;
7009
7031
  subcircuit_id?: string | undefined;
7010
7032
  component_name?: string | undefined;
@@ -7021,6 +7043,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7021
7043
  message: string;
7022
7044
  type: "source_failed_to_create_component_error";
7023
7045
  subcircuit_id?: string | undefined;
7046
+ error_type?: "source_failed_to_create_component_error" | undefined;
7024
7047
  source_failed_to_create_component_error_id?: string | undefined;
7025
7048
  component_name?: string | undefined;
7026
7049
  parent_source_component_id?: string | undefined;
@@ -8156,7 +8179,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8156
8179
  source_missing_property_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8157
8180
  source_component_id: z.ZodString;
8158
8181
  property_name: z.ZodString;
8159
- error_type: z.ZodLiteral<"source_missing_property_error">;
8182
+ error_type: z.ZodDefault<z.ZodLiteral<"source_missing_property_error">>;
8160
8183
  message: z.ZodString;
8161
8184
  }, "strip", z.ZodTypeAny, {
8162
8185
  message: string;
@@ -8169,12 +8192,13 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8169
8192
  message: string;
8170
8193
  type: "source_missing_property_error";
8171
8194
  source_component_id: string;
8172
- error_type: "source_missing_property_error";
8173
8195
  property_name: string;
8196
+ error_type?: "source_missing_property_error" | undefined;
8174
8197
  source_missing_property_error_id?: string | undefined;
8175
8198
  }>, z.ZodObject<{
8176
8199
  type: z.ZodLiteral<"source_failed_to_create_component_error">;
8177
8200
  source_failed_to_create_component_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8201
+ error_type: z.ZodDefault<z.ZodLiteral<"source_failed_to_create_component_error">>;
8178
8202
  component_name: z.ZodOptional<z.ZodString>;
8179
8203
  subcircuit_id: z.ZodOptional<z.ZodString>;
8180
8204
  parent_source_component_id: z.ZodOptional<z.ZodString>;
@@ -8202,6 +8226,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8202
8226
  }, "strip", z.ZodTypeAny, {
8203
8227
  message: string;
8204
8228
  type: "source_failed_to_create_component_error";
8229
+ error_type: "source_failed_to_create_component_error";
8205
8230
  source_failed_to_create_component_error_id: string;
8206
8231
  subcircuit_id?: string | undefined;
8207
8232
  component_name?: string | undefined;
@@ -8218,6 +8243,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8218
8243
  message: string;
8219
8244
  type: "source_failed_to_create_component_error";
8220
8245
  subcircuit_id?: string | undefined;
8246
+ error_type?: "source_failed_to_create_component_error" | undefined;
8221
8247
  source_failed_to_create_component_error_id?: string | undefined;
8222
8248
  component_name?: string | undefined;
8223
8249
  parent_source_component_id?: string | undefined;
@@ -9080,7 +9106,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
9080
9106
  pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9081
9107
  pcb_group_id: z.ZodOptional<z.ZodString>;
9082
9108
  subcircuit_id: z.ZodOptional<z.ZodString>;
9083
- error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
9109
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_missing_footprint_error">>;
9084
9110
  source_component_id: z.ZodString;
9085
9111
  message: z.ZodString;
9086
9112
  }, "strip", z.ZodTypeAny, {
@@ -9095,9 +9121,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
9095
9121
  message: string;
9096
9122
  type: "pcb_missing_footprint_error";
9097
9123
  source_component_id: string;
9098
- error_type: "pcb_missing_footprint_error";
9099
9124
  subcircuit_id?: string | undefined;
9100
9125
  pcb_group_id?: string | undefined;
9126
+ error_type?: "pcb_missing_footprint_error" | undefined;
9101
9127
  pcb_missing_footprint_error_id?: string | undefined;
9102
9128
  }>, z.ZodObject<{
9103
9129
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
@@ -10748,7 +10774,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10748
10774
  }>, z.ZodObject<{
10749
10775
  type: z.ZodLiteral<"pcb_trace_error">;
10750
10776
  pcb_trace_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10751
- error_type: z.ZodLiteral<"pcb_trace_error">;
10777
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_error">>;
10752
10778
  message: z.ZodString;
10753
10779
  center: z.ZodOptional<z.ZodObject<{
10754
10780
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -10782,7 +10808,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10782
10808
  type: "pcb_trace_error";
10783
10809
  source_trace_id: string;
10784
10810
  pcb_trace_id: string;
10785
- error_type: "pcb_trace_error";
10786
10811
  pcb_component_ids: string[];
10787
10812
  pcb_port_ids: string[];
10788
10813
  center?: {
@@ -10790,32 +10815,39 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10790
10815
  y: string | number;
10791
10816
  } | undefined;
10792
10817
  pcb_trace_error_id?: string | undefined;
10818
+ error_type?: "pcb_trace_error" | undefined;
10793
10819
  }>, z.ZodObject<{
10794
10820
  type: z.ZodLiteral<"pcb_placement_error">;
10795
10821
  pcb_placement_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10822
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_placement_error">>;
10796
10823
  message: z.ZodString;
10797
10824
  }, "strip", z.ZodTypeAny, {
10798
10825
  message: string;
10799
10826
  type: "pcb_placement_error";
10827
+ error_type: "pcb_placement_error";
10800
10828
  pcb_placement_error_id: string;
10801
10829
  }, {
10802
10830
  message: string;
10803
10831
  type: "pcb_placement_error";
10832
+ error_type?: "pcb_placement_error" | undefined;
10804
10833
  pcb_placement_error_id?: string | undefined;
10805
10834
  }>, z.ZodObject<{
10806
10835
  type: z.ZodLiteral<"pcb_port_not_matched_error">;
10807
10836
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10837
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_matched_error">>;
10808
10838
  message: z.ZodString;
10809
10839
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
10810
10840
  }, "strip", z.ZodTypeAny, {
10811
10841
  message: string;
10812
10842
  type: "pcb_port_not_matched_error";
10843
+ error_type: "pcb_port_not_matched_error";
10813
10844
  pcb_component_ids: string[];
10814
10845
  pcb_error_id: string;
10815
10846
  }, {
10816
10847
  message: string;
10817
10848
  type: "pcb_port_not_matched_error";
10818
10849
  pcb_component_ids: string[];
10850
+ error_type?: "pcb_port_not_matched_error" | undefined;
10819
10851
  pcb_error_id?: string | undefined;
10820
10852
  }>, z.ZodObject<{
10821
10853
  type: z.ZodLiteral<"pcb_fabrication_note_path">;
@@ -10926,14 +10958,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10926
10958
  }>, z.ZodObject<{
10927
10959
  type: z.ZodLiteral<"pcb_autorouting_error">;
10928
10960
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10961
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_autorouting_error">>;
10929
10962
  message: z.ZodString;
10930
10963
  }, "strip", z.ZodTypeAny, {
10931
10964
  message: string;
10932
10965
  type: "pcb_autorouting_error";
10966
+ error_type: "pcb_autorouting_error";
10933
10967
  pcb_error_id: string;
10934
10968
  }, {
10935
10969
  message: string;
10936
10970
  type: "pcb_autorouting_error";
10971
+ error_type?: "pcb_autorouting_error" | undefined;
10937
10972
  pcb_error_id?: string | undefined;
10938
10973
  }>, z.ZodObject<{
10939
10974
  type: z.ZodLiteral<"pcb_breakout_point">;
@@ -11604,7 +11639,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11604
11639
  }>, z.ZodObject<{
11605
11640
  type: z.ZodLiteral<"schematic_error">;
11606
11641
  schematic_error_id: z.ZodString;
11607
- error_type: z.ZodLiteral<"schematic_port_not_found">;
11642
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_port_not_found">>;
11608
11643
  message: z.ZodString;
11609
11644
  }, "strip", z.ZodTypeAny, {
11610
11645
  message: string;
@@ -11614,17 +11649,19 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11614
11649
  }, {
11615
11650
  message: string;
11616
11651
  type: "schematic_error";
11617
- error_type: "schematic_port_not_found";
11618
11652
  schematic_error_id: string;
11653
+ error_type?: "schematic_port_not_found" | undefined;
11619
11654
  }>, z.ZodObject<{
11620
11655
  type: z.ZodLiteral<"schematic_layout_error">;
11621
11656
  schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11657
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_layout_error">>;
11622
11658
  message: z.ZodString;
11623
11659
  source_group_id: z.ZodString;
11624
11660
  schematic_group_id: z.ZodString;
11625
11661
  }, "strip", z.ZodTypeAny, {
11626
11662
  message: string;
11627
11663
  type: "schematic_layout_error";
11664
+ error_type: "schematic_layout_error";
11628
11665
  source_group_id: string;
11629
11666
  schematic_group_id: string;
11630
11667
  schematic_layout_error_id: string;
@@ -11633,6 +11670,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11633
11670
  type: "schematic_layout_error";
11634
11671
  source_group_id: string;
11635
11672
  schematic_group_id: string;
11673
+ error_type?: "schematic_layout_error" | undefined;
11636
11674
  schematic_layout_error_id?: string | undefined;
11637
11675
  }>, z.ZodObject<{
11638
11676
  type: z.ZodLiteral<"schematic_net_label">;
@@ -12900,7 +12938,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
12900
12938
  source_missing_property_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12901
12939
  source_component_id: z.ZodString;
12902
12940
  property_name: z.ZodString;
12903
- error_type: z.ZodLiteral<"source_missing_property_error">;
12941
+ error_type: z.ZodDefault<z.ZodLiteral<"source_missing_property_error">>;
12904
12942
  message: z.ZodString;
12905
12943
  }, "strip", z.ZodTypeAny, {
12906
12944
  message: string;
@@ -12913,12 +12951,13 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
12913
12951
  message: string;
12914
12952
  type: "source_missing_property_error";
12915
12953
  source_component_id: string;
12916
- error_type: "source_missing_property_error";
12917
12954
  property_name: string;
12955
+ error_type?: "source_missing_property_error" | undefined;
12918
12956
  source_missing_property_error_id?: string | undefined;
12919
12957
  }>, z.ZodObject<{
12920
12958
  type: z.ZodLiteral<"source_failed_to_create_component_error">;
12921
12959
  source_failed_to_create_component_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12960
+ error_type: z.ZodDefault<z.ZodLiteral<"source_failed_to_create_component_error">>;
12922
12961
  component_name: z.ZodOptional<z.ZodString>;
12923
12962
  subcircuit_id: z.ZodOptional<z.ZodString>;
12924
12963
  parent_source_component_id: z.ZodOptional<z.ZodString>;
@@ -12946,6 +12985,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
12946
12985
  }, "strip", z.ZodTypeAny, {
12947
12986
  message: string;
12948
12987
  type: "source_failed_to_create_component_error";
12988
+ error_type: "source_failed_to_create_component_error";
12949
12989
  source_failed_to_create_component_error_id: string;
12950
12990
  subcircuit_id?: string | undefined;
12951
12991
  component_name?: string | undefined;
@@ -12962,6 +13002,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
12962
13002
  message: string;
12963
13003
  type: "source_failed_to_create_component_error";
12964
13004
  subcircuit_id?: string | undefined;
13005
+ error_type?: "source_failed_to_create_component_error" | undefined;
12965
13006
  source_failed_to_create_component_error_id?: string | undefined;
12966
13007
  component_name?: string | undefined;
12967
13008
  parent_source_component_id?: string | undefined;
@@ -13824,7 +13865,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
13824
13865
  pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13825
13866
  pcb_group_id: z.ZodOptional<z.ZodString>;
13826
13867
  subcircuit_id: z.ZodOptional<z.ZodString>;
13827
- error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
13868
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_missing_footprint_error">>;
13828
13869
  source_component_id: z.ZodString;
13829
13870
  message: z.ZodString;
13830
13871
  }, "strip", z.ZodTypeAny, {
@@ -13839,9 +13880,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
13839
13880
  message: string;
13840
13881
  type: "pcb_missing_footprint_error";
13841
13882
  source_component_id: string;
13842
- error_type: "pcb_missing_footprint_error";
13843
13883
  subcircuit_id?: string | undefined;
13844
13884
  pcb_group_id?: string | undefined;
13885
+ error_type?: "pcb_missing_footprint_error" | undefined;
13845
13886
  pcb_missing_footprint_error_id?: string | undefined;
13846
13887
  }>, z.ZodObject<{
13847
13888
  type: z.ZodLiteral<"pcb_manual_edit_conflict_warning">;
@@ -15492,7 +15533,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15492
15533
  }>, z.ZodObject<{
15493
15534
  type: z.ZodLiteral<"pcb_trace_error">;
15494
15535
  pcb_trace_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15495
- error_type: z.ZodLiteral<"pcb_trace_error">;
15536
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_error">>;
15496
15537
  message: z.ZodString;
15497
15538
  center: z.ZodOptional<z.ZodObject<{
15498
15539
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -15526,7 +15567,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15526
15567
  type: "pcb_trace_error";
15527
15568
  source_trace_id: string;
15528
15569
  pcb_trace_id: string;
15529
- error_type: "pcb_trace_error";
15530
15570
  pcb_component_ids: string[];
15531
15571
  pcb_port_ids: string[];
15532
15572
  center?: {
@@ -15534,32 +15574,39 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15534
15574
  y: string | number;
15535
15575
  } | undefined;
15536
15576
  pcb_trace_error_id?: string | undefined;
15577
+ error_type?: "pcb_trace_error" | undefined;
15537
15578
  }>, z.ZodObject<{
15538
15579
  type: z.ZodLiteral<"pcb_placement_error">;
15539
15580
  pcb_placement_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15581
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_placement_error">>;
15540
15582
  message: z.ZodString;
15541
15583
  }, "strip", z.ZodTypeAny, {
15542
15584
  message: string;
15543
15585
  type: "pcb_placement_error";
15586
+ error_type: "pcb_placement_error";
15544
15587
  pcb_placement_error_id: string;
15545
15588
  }, {
15546
15589
  message: string;
15547
15590
  type: "pcb_placement_error";
15591
+ error_type?: "pcb_placement_error" | undefined;
15548
15592
  pcb_placement_error_id?: string | undefined;
15549
15593
  }>, z.ZodObject<{
15550
15594
  type: z.ZodLiteral<"pcb_port_not_matched_error">;
15551
15595
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15596
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_matched_error">>;
15552
15597
  message: z.ZodString;
15553
15598
  pcb_component_ids: z.ZodArray<z.ZodString, "many">;
15554
15599
  }, "strip", z.ZodTypeAny, {
15555
15600
  message: string;
15556
15601
  type: "pcb_port_not_matched_error";
15602
+ error_type: "pcb_port_not_matched_error";
15557
15603
  pcb_component_ids: string[];
15558
15604
  pcb_error_id: string;
15559
15605
  }, {
15560
15606
  message: string;
15561
15607
  type: "pcb_port_not_matched_error";
15562
15608
  pcb_component_ids: string[];
15609
+ error_type?: "pcb_port_not_matched_error" | undefined;
15563
15610
  pcb_error_id?: string | undefined;
15564
15611
  }>, z.ZodObject<{
15565
15612
  type: z.ZodLiteral<"pcb_fabrication_note_path">;
@@ -15670,14 +15717,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15670
15717
  }>, z.ZodObject<{
15671
15718
  type: z.ZodLiteral<"pcb_autorouting_error">;
15672
15719
  pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15720
+ error_type: z.ZodDefault<z.ZodLiteral<"pcb_autorouting_error">>;
15673
15721
  message: z.ZodString;
15674
15722
  }, "strip", z.ZodTypeAny, {
15675
15723
  message: string;
15676
15724
  type: "pcb_autorouting_error";
15725
+ error_type: "pcb_autorouting_error";
15677
15726
  pcb_error_id: string;
15678
15727
  }, {
15679
15728
  message: string;
15680
15729
  type: "pcb_autorouting_error";
15730
+ error_type?: "pcb_autorouting_error" | undefined;
15681
15731
  pcb_error_id?: string | undefined;
15682
15732
  }>, z.ZodObject<{
15683
15733
  type: z.ZodLiteral<"pcb_breakout_point">;
@@ -16348,7 +16398,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
16348
16398
  }>, z.ZodObject<{
16349
16399
  type: z.ZodLiteral<"schematic_error">;
16350
16400
  schematic_error_id: z.ZodString;
16351
- error_type: z.ZodLiteral<"schematic_port_not_found">;
16401
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_port_not_found">>;
16352
16402
  message: z.ZodString;
16353
16403
  }, "strip", z.ZodTypeAny, {
16354
16404
  message: string;
@@ -16358,17 +16408,19 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
16358
16408
  }, {
16359
16409
  message: string;
16360
16410
  type: "schematic_error";
16361
- error_type: "schematic_port_not_found";
16362
16411
  schematic_error_id: string;
16412
+ error_type?: "schematic_port_not_found" | undefined;
16363
16413
  }>, z.ZodObject<{
16364
16414
  type: z.ZodLiteral<"schematic_layout_error">;
16365
16415
  schematic_layout_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
16416
+ error_type: z.ZodDefault<z.ZodLiteral<"schematic_layout_error">>;
16366
16417
  message: z.ZodString;
16367
16418
  source_group_id: z.ZodString;
16368
16419
  schematic_group_id: z.ZodString;
16369
16420
  }, "strip", z.ZodTypeAny, {
16370
16421
  message: string;
16371
16422
  type: "schematic_layout_error";
16423
+ error_type: "schematic_layout_error";
16372
16424
  source_group_id: string;
16373
16425
  schematic_group_id: string;
16374
16426
  schematic_layout_error_id: string;
@@ -16377,6 +16429,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
16377
16429
  type: "schematic_layout_error";
16378
16430
  source_group_id: string;
16379
16431
  schematic_group_id: string;
16432
+ error_type?: "schematic_layout_error" | undefined;
16380
16433
  schematic_layout_error_id?: string | undefined;
16381
16434
  }>, z.ZodObject<{
16382
16435
  type: z.ZodLiteral<"schematic_net_label">;