circuit-json 0.0.225 → 0.0.227

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
@@ -72,7 +72,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
72
72
  - [SourceSimpleTestPoint](#sourcesimpletestpoint)
73
73
  - [SourceSimpleTransistor](#sourcesimpletransistor)
74
74
  - [SourceTrace](#sourcetrace)
75
- - [SourceTraceNotConnected](#sourcetracenotconnected)
75
+ - [SourceTraceNotConnectedError](#sourcetracenotconnectederror)
76
76
  - [PCB Elements](#pcb-elements)
77
77
  - [PcbAutoroutingError](#pcbautoroutingerror)
78
78
  - [PcbBoard](#pcbboard)
@@ -617,18 +617,18 @@ interface SourceTrace {
617
617
  }
618
618
  ```
619
619
 
620
- ### SourceTraceNotConnected
620
+ ### SourceTraceNotConnectedError
621
621
 
622
- [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace_not_connected.ts)
622
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace_not_connected_error.ts)
623
623
 
624
624
  Occurs when a source trace selector does not match any ports
625
625
 
626
626
  ```typescript
627
627
  /** Occurs when a source trace selector does not match any ports */
628
- interface SourceTraceNotConnected {
629
- type: "source_trace_not_connected"
630
- source_trace_not_connected_id: string
631
- error_type: "source_trace_not_connected"
628
+ interface SourceTraceNotConnectedError {
629
+ type: "source_trace_not_connected_error"
630
+ source_trace_not_connected_error_id: string
631
+ error_type: "source_trace_not_connected_error"
632
632
  message: string
633
633
  subcircuit_id?: string
634
634
  source_group_id?: string
@@ -1779,7 +1779,9 @@ interface SimulationVoltageSource {
1779
1779
  type: "simulation_voltage_source"
1780
1780
  simulation_voltage_source_id: string
1781
1781
  positive_source_port_id: string
1782
+ positive_source_net_id: string
1782
1783
  negative_source_port_id: string
1784
+ negative_source_net_id: string
1783
1785
  voltage: number
1784
1786
  }
1785
1787
  ```
package/dist/index.d.mts CHANGED
@@ -6907,10 +6907,10 @@ interface SourceFailedToCreateComponentError {
6907
6907
  };
6908
6908
  }
6909
6909
 
6910
- declare const source_trace_not_connected: z.ZodObject<{
6911
- type: z.ZodLiteral<"source_trace_not_connected">;
6912
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6913
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
6910
+ declare const source_trace_not_connected_error: z.ZodObject<{
6911
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
6912
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6913
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
6914
6914
  message: z.ZodString;
6915
6915
  subcircuit_id: z.ZodOptional<z.ZodString>;
6916
6916
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -6919,9 +6919,9 @@ declare const source_trace_not_connected: z.ZodObject<{
6919
6919
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6920
6920
  }, "strip", z.ZodTypeAny, {
6921
6921
  message: string;
6922
- type: "source_trace_not_connected";
6923
- error_type: "source_trace_not_connected";
6924
- source_trace_not_connected_id: string;
6922
+ type: "source_trace_not_connected_error";
6923
+ error_type: "source_trace_not_connected_error";
6924
+ source_trace_not_connected_error_id: string;
6925
6925
  subcircuit_id?: string | undefined;
6926
6926
  source_trace_id?: string | undefined;
6927
6927
  source_group_id?: string | undefined;
@@ -6929,23 +6929,23 @@ declare const source_trace_not_connected: z.ZodObject<{
6929
6929
  selectors_not_found?: string[] | undefined;
6930
6930
  }, {
6931
6931
  message: string;
6932
- type: "source_trace_not_connected";
6932
+ type: "source_trace_not_connected_error";
6933
6933
  subcircuit_id?: string | undefined;
6934
6934
  source_trace_id?: string | undefined;
6935
- error_type?: "source_trace_not_connected" | undefined;
6935
+ error_type?: "source_trace_not_connected_error" | undefined;
6936
6936
  source_group_id?: string | undefined;
6937
- source_trace_not_connected_id?: string | undefined;
6937
+ source_trace_not_connected_error_id?: string | undefined;
6938
6938
  connected_source_port_ids?: string[] | undefined;
6939
6939
  selectors_not_found?: string[] | undefined;
6940
6940
  }>;
6941
- type SourceTraceNotConnectedInput = z.input<typeof source_trace_not_connected>;
6941
+ type SourceTraceNotConnectedErrorInput = z.input<typeof source_trace_not_connected_error>;
6942
6942
  /**
6943
6943
  * Occurs when a source trace selector does not match any ports
6944
6944
  */
6945
- interface SourceTraceNotConnected {
6946
- type: "source_trace_not_connected";
6947
- source_trace_not_connected_id: string;
6948
- error_type: "source_trace_not_connected";
6945
+ interface SourceTraceNotConnectedError {
6946
+ type: "source_trace_not_connected_error";
6947
+ source_trace_not_connected_error_id: string;
6948
+ error_type: "source_trace_not_connected_error";
6949
6949
  message: string;
6950
6950
  subcircuit_id?: string;
6951
6951
  source_group_id?: string;
@@ -7853,9 +7853,9 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7853
7853
  y?: number | undefined;
7854
7854
  } | undefined;
7855
7855
  }>, z.ZodObject<{
7856
- type: z.ZodLiteral<"source_trace_not_connected">;
7857
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7858
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
7856
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
7857
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7858
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
7859
7859
  message: z.ZodString;
7860
7860
  subcircuit_id: z.ZodOptional<z.ZodString>;
7861
7861
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -7864,9 +7864,9 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7864
7864
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7865
7865
  }, "strip", z.ZodTypeAny, {
7866
7866
  message: string;
7867
- type: "source_trace_not_connected";
7868
- error_type: "source_trace_not_connected";
7869
- source_trace_not_connected_id: string;
7867
+ type: "source_trace_not_connected_error";
7868
+ error_type: "source_trace_not_connected_error";
7869
+ source_trace_not_connected_error_id: string;
7870
7870
  subcircuit_id?: string | undefined;
7871
7871
  source_trace_id?: string | undefined;
7872
7872
  source_group_id?: string | undefined;
@@ -7874,12 +7874,12 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7874
7874
  selectors_not_found?: string[] | undefined;
7875
7875
  }, {
7876
7876
  message: string;
7877
- type: "source_trace_not_connected";
7877
+ type: "source_trace_not_connected_error";
7878
7878
  subcircuit_id?: string | undefined;
7879
7879
  source_trace_id?: string | undefined;
7880
- error_type?: "source_trace_not_connected" | undefined;
7880
+ error_type?: "source_trace_not_connected_error" | undefined;
7881
7881
  source_group_id?: string | undefined;
7882
- source_trace_not_connected_id?: string | undefined;
7882
+ source_trace_not_connected_error_id?: string | undefined;
7883
7883
  connected_source_port_ids?: string[] | undefined;
7884
7884
  selectors_not_found?: string[] | undefined;
7885
7885
  }>]>;
@@ -7887,7 +7887,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
7887
7887
  * Deprecated: use `AnySourceElement` instead
7888
7888
  */
7889
7889
  type AnySourceComponent = z.infer<typeof any_source_component>;
7890
- type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError | SourceTraceNotConnected;
7890
+ type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError | SourceTraceNotConnectedError;
7891
7891
 
7892
7892
  declare const source_port: z.ZodObject<{
7893
7893
  type: z.ZodLiteral<"source_port">;
@@ -8233,6 +8233,8 @@ declare const simulation_voltage_source: z.ZodObject<{
8233
8233
  simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
8234
8234
  positive_source_port_id: z.ZodString;
8235
8235
  negative_source_port_id: z.ZodString;
8236
+ positive_source_net_id: z.ZodString;
8237
+ negative_source_net_id: z.ZodString;
8236
8238
  voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
8237
8239
  }, "strip", z.ZodTypeAny, {
8238
8240
  type: "simulation_voltage_source";
@@ -8240,11 +8242,15 @@ declare const simulation_voltage_source: z.ZodObject<{
8240
8242
  simulation_voltage_source_id: string;
8241
8243
  positive_source_port_id: string;
8242
8244
  negative_source_port_id: string;
8245
+ positive_source_net_id: string;
8246
+ negative_source_net_id: string;
8243
8247
  }, {
8244
8248
  type: "simulation_voltage_source";
8245
8249
  voltage: string | number;
8246
8250
  positive_source_port_id: string;
8247
8251
  negative_source_port_id: string;
8252
+ positive_source_net_id: string;
8253
+ negative_source_net_id: string;
8248
8254
  simulation_voltage_source_id?: string | undefined;
8249
8255
  }>;
8250
8256
  type SimulationVoltageSourceInput = z.input<typeof simulation_voltage_source>;
@@ -8256,7 +8262,9 @@ interface SimulationVoltageSource {
8256
8262
  type: "simulation_voltage_source";
8257
8263
  simulation_voltage_source_id: string;
8258
8264
  positive_source_port_id: string;
8265
+ positive_source_net_id: string;
8259
8266
  negative_source_port_id: string;
8267
+ negative_source_net_id: string;
8260
8268
  voltage: number;
8261
8269
  }
8262
8270
 
@@ -9216,9 +9224,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
9216
9224
  y?: number | undefined;
9217
9225
  } | undefined;
9218
9226
  }>, z.ZodObject<{
9219
- type: z.ZodLiteral<"source_trace_not_connected">;
9220
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9221
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
9227
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
9228
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
9229
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
9222
9230
  message: z.ZodString;
9223
9231
  subcircuit_id: z.ZodOptional<z.ZodString>;
9224
9232
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -9227,9 +9235,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
9227
9235
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9228
9236
  }, "strip", z.ZodTypeAny, {
9229
9237
  message: string;
9230
- type: "source_trace_not_connected";
9231
- error_type: "source_trace_not_connected";
9232
- source_trace_not_connected_id: string;
9238
+ type: "source_trace_not_connected_error";
9239
+ error_type: "source_trace_not_connected_error";
9240
+ source_trace_not_connected_error_id: string;
9233
9241
  subcircuit_id?: string | undefined;
9234
9242
  source_trace_id?: string | undefined;
9235
9243
  source_group_id?: string | undefined;
@@ -9237,12 +9245,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
9237
9245
  selectors_not_found?: string[] | undefined;
9238
9246
  }, {
9239
9247
  message: string;
9240
- type: "source_trace_not_connected";
9248
+ type: "source_trace_not_connected_error";
9241
9249
  subcircuit_id?: string | undefined;
9242
9250
  source_trace_id?: string | undefined;
9243
- error_type?: "source_trace_not_connected" | undefined;
9251
+ error_type?: "source_trace_not_connected_error" | undefined;
9244
9252
  source_group_id?: string | undefined;
9245
- source_trace_not_connected_id?: string | undefined;
9253
+ source_trace_not_connected_error_id?: string | undefined;
9246
9254
  connected_source_port_ids?: string[] | undefined;
9247
9255
  selectors_not_found?: string[] | undefined;
9248
9256
  }>]>, z.ZodObject<{
@@ -10015,9 +10023,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10015
10023
  project_url?: string | undefined;
10016
10024
  created_at?: string | undefined;
10017
10025
  }>, z.ZodObject<{
10018
- type: z.ZodLiteral<"source_trace_not_connected">;
10019
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10020
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
10026
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
10027
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10028
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
10021
10029
  message: z.ZodString;
10022
10030
  subcircuit_id: z.ZodOptional<z.ZodString>;
10023
10031
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -10026,9 +10034,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10026
10034
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10027
10035
  }, "strip", z.ZodTypeAny, {
10028
10036
  message: string;
10029
- type: "source_trace_not_connected";
10030
- error_type: "source_trace_not_connected";
10031
- source_trace_not_connected_id: string;
10037
+ type: "source_trace_not_connected_error";
10038
+ error_type: "source_trace_not_connected_error";
10039
+ source_trace_not_connected_error_id: string;
10032
10040
  subcircuit_id?: string | undefined;
10033
10041
  source_trace_id?: string | undefined;
10034
10042
  source_group_id?: string | undefined;
@@ -10036,12 +10044,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
10036
10044
  selectors_not_found?: string[] | undefined;
10037
10045
  }, {
10038
10046
  message: string;
10039
- type: "source_trace_not_connected";
10047
+ type: "source_trace_not_connected_error";
10040
10048
  subcircuit_id?: string | undefined;
10041
10049
  source_trace_id?: string | undefined;
10042
- error_type?: "source_trace_not_connected" | undefined;
10050
+ error_type?: "source_trace_not_connected_error" | undefined;
10043
10051
  source_group_id?: string | undefined;
10044
- source_trace_not_connected_id?: string | undefined;
10052
+ source_trace_not_connected_error_id?: string | undefined;
10045
10053
  connected_source_port_ids?: string[] | undefined;
10046
10054
  selectors_not_found?: string[] | undefined;
10047
10055
  }>, z.ZodObject<{
@@ -13604,6 +13612,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13604
13612
  simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13605
13613
  positive_source_port_id: z.ZodString;
13606
13614
  negative_source_port_id: z.ZodString;
13615
+ positive_source_net_id: z.ZodString;
13616
+ negative_source_net_id: z.ZodString;
13607
13617
  voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
13608
13618
  }, "strip", z.ZodTypeAny, {
13609
13619
  type: "simulation_voltage_source";
@@ -13611,11 +13621,15 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13611
13621
  simulation_voltage_source_id: string;
13612
13622
  positive_source_port_id: string;
13613
13623
  negative_source_port_id: string;
13624
+ positive_source_net_id: string;
13625
+ negative_source_net_id: string;
13614
13626
  }, {
13615
13627
  type: "simulation_voltage_source";
13616
13628
  voltage: string | number;
13617
13629
  positive_source_port_id: string;
13618
13630
  negative_source_port_id: string;
13631
+ positive_source_net_id: string;
13632
+ negative_source_net_id: string;
13619
13633
  simulation_voltage_source_id?: string | undefined;
13620
13634
  }>]>;
13621
13635
  /**
@@ -14577,9 +14591,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14577
14591
  y?: number | undefined;
14578
14592
  } | undefined;
14579
14593
  }>, z.ZodObject<{
14580
- type: z.ZodLiteral<"source_trace_not_connected">;
14581
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14582
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
14594
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
14595
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
14596
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
14583
14597
  message: z.ZodString;
14584
14598
  subcircuit_id: z.ZodOptional<z.ZodString>;
14585
14599
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -14588,9 +14602,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14588
14602
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14589
14603
  }, "strip", z.ZodTypeAny, {
14590
14604
  message: string;
14591
- type: "source_trace_not_connected";
14592
- error_type: "source_trace_not_connected";
14593
- source_trace_not_connected_id: string;
14605
+ type: "source_trace_not_connected_error";
14606
+ error_type: "source_trace_not_connected_error";
14607
+ source_trace_not_connected_error_id: string;
14594
14608
  subcircuit_id?: string | undefined;
14595
14609
  source_trace_id?: string | undefined;
14596
14610
  source_group_id?: string | undefined;
@@ -14598,12 +14612,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14598
14612
  selectors_not_found?: string[] | undefined;
14599
14613
  }, {
14600
14614
  message: string;
14601
- type: "source_trace_not_connected";
14615
+ type: "source_trace_not_connected_error";
14602
14616
  subcircuit_id?: string | undefined;
14603
14617
  source_trace_id?: string | undefined;
14604
- error_type?: "source_trace_not_connected" | undefined;
14618
+ error_type?: "source_trace_not_connected_error" | undefined;
14605
14619
  source_group_id?: string | undefined;
14606
- source_trace_not_connected_id?: string | undefined;
14620
+ source_trace_not_connected_error_id?: string | undefined;
14607
14621
  connected_source_port_ids?: string[] | undefined;
14608
14622
  selectors_not_found?: string[] | undefined;
14609
14623
  }>]>, z.ZodObject<{
@@ -15376,9 +15390,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15376
15390
  project_url?: string | undefined;
15377
15391
  created_at?: string | undefined;
15378
15392
  }>, z.ZodObject<{
15379
- type: z.ZodLiteral<"source_trace_not_connected">;
15380
- source_trace_not_connected_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15381
- error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected">>;
15393
+ type: z.ZodLiteral<"source_trace_not_connected_error">;
15394
+ source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
15395
+ error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
15382
15396
  message: z.ZodString;
15383
15397
  subcircuit_id: z.ZodOptional<z.ZodString>;
15384
15398
  source_group_id: z.ZodOptional<z.ZodString>;
@@ -15387,9 +15401,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15387
15401
  selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15388
15402
  }, "strip", z.ZodTypeAny, {
15389
15403
  message: string;
15390
- type: "source_trace_not_connected";
15391
- error_type: "source_trace_not_connected";
15392
- source_trace_not_connected_id: string;
15404
+ type: "source_trace_not_connected_error";
15405
+ error_type: "source_trace_not_connected_error";
15406
+ source_trace_not_connected_error_id: string;
15393
15407
  subcircuit_id?: string | undefined;
15394
15408
  source_trace_id?: string | undefined;
15395
15409
  source_group_id?: string | undefined;
@@ -15397,12 +15411,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
15397
15411
  selectors_not_found?: string[] | undefined;
15398
15412
  }, {
15399
15413
  message: string;
15400
- type: "source_trace_not_connected";
15414
+ type: "source_trace_not_connected_error";
15401
15415
  subcircuit_id?: string | undefined;
15402
15416
  source_trace_id?: string | undefined;
15403
- error_type?: "source_trace_not_connected" | undefined;
15417
+ error_type?: "source_trace_not_connected_error" | undefined;
15404
15418
  source_group_id?: string | undefined;
15405
- source_trace_not_connected_id?: string | undefined;
15419
+ source_trace_not_connected_error_id?: string | undefined;
15406
15420
  connected_source_port_ids?: string[] | undefined;
15407
15421
  selectors_not_found?: string[] | undefined;
15408
15422
  }>, z.ZodObject<{
@@ -18965,6 +18979,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18965
18979
  simulation_voltage_source_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
18966
18980
  positive_source_port_id: z.ZodString;
18967
18981
  negative_source_port_id: z.ZodString;
18982
+ positive_source_net_id: z.ZodString;
18983
+ negative_source_net_id: z.ZodString;
18968
18984
  voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
18969
18985
  }, "strip", z.ZodTypeAny, {
18970
18986
  type: "simulation_voltage_source";
@@ -18972,11 +18988,15 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
18972
18988
  simulation_voltage_source_id: string;
18973
18989
  positive_source_port_id: string;
18974
18990
  negative_source_port_id: string;
18991
+ positive_source_net_id: string;
18992
+ negative_source_net_id: string;
18975
18993
  }, {
18976
18994
  type: "simulation_voltage_source";
18977
18995
  voltage: string | number;
18978
18996
  positive_source_port_id: string;
18979
18997
  negative_source_port_id: string;
18998
+ positive_source_net_id: string;
18999
+ negative_source_net_id: string;
18980
19000
  simulation_voltage_source_id?: string | undefined;
18981
19001
  }>]>;
18982
19002
  type AnyCircuitElement = z.infer<typeof any_circuit_element>;
@@ -18995,4 +19015,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
18995
19015
  */
18996
19016
  type CircuitJson = AnyCircuitElement[];
18997
19017
 
18998
- export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnected, type SourceTraceNotConnectedInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected, supplier_name, time, visible_layer, voltage };
19018
+ export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage };
package/dist/index.mjs CHANGED
@@ -549,14 +549,14 @@ var source_failed_to_create_component_error = z30.object({
549
549
  }).describe("Error emitted when a component fails to be constructed");
550
550
  expectTypesMatch(true);
551
551
 
552
- // src/source/source_trace_not_connected.ts
552
+ // src/source/source_trace_not_connected_error.ts
553
553
  import { z as z31 } from "zod";
554
- var source_trace_not_connected = z31.object({
555
- type: z31.literal("source_trace_not_connected"),
556
- source_trace_not_connected_id: getZodPrefixedIdWithDefault(
557
- "source_trace_not_connected"
554
+ var source_trace_not_connected_error = z31.object({
555
+ type: z31.literal("source_trace_not_connected_error"),
556
+ source_trace_not_connected_error_id: getZodPrefixedIdWithDefault(
557
+ "source_trace_not_connected_error"
558
558
  ),
559
- error_type: z31.literal("source_trace_not_connected").default("source_trace_not_connected"),
559
+ error_type: z31.literal("source_trace_not_connected_error").default("source_trace_not_connected_error"),
560
560
  message: z31.string(),
561
561
  subcircuit_id: z31.string().optional(),
562
562
  source_group_id: z31.string().optional(),
@@ -590,7 +590,7 @@ var any_source_component = z32.union([
590
590
  source_project_metadata,
591
591
  source_missing_property_error,
592
592
  source_failed_to_create_component_error,
593
- source_trace_not_connected
593
+ source_trace_not_connected_error
594
594
  ]);
595
595
  expectTypesMatch(true);
596
596
 
@@ -1948,6 +1948,8 @@ var simulation_voltage_source = z92.object({
1948
1948
  ),
1949
1949
  positive_source_port_id: z92.string(),
1950
1950
  negative_source_port_id: z92.string(),
1951
+ positive_source_net_id: z92.string(),
1952
+ negative_source_net_id: z92.string(),
1951
1953
  voltage
1952
1954
  }).describe("Defines a voltage source for simulation");
1953
1955
  expectTypesMatch(true);
@@ -1978,7 +1980,7 @@ var any_circuit_element = z93.union([
1978
1980
  source_simple_push_button,
1979
1981
  source_pcb_ground_plane,
1980
1982
  source_project_metadata,
1981
- source_trace_not_connected,
1983
+ source_trace_not_connected_error,
1982
1984
  pcb_component,
1983
1985
  pcb_hole,
1984
1986
  pcb_missing_footprint_error,
@@ -2155,7 +2157,7 @@ export {
2155
2157
  source_simple_test_point,
2156
2158
  source_simple_transistor,
2157
2159
  source_trace,
2158
- source_trace_not_connected,
2160
+ source_trace_not_connected_error,
2159
2161
  supplier_name,
2160
2162
  time,
2161
2163
  visible_layer,