circuit-json 0.0.237 → 0.0.238

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.mts CHANGED
@@ -4810,18 +4810,20 @@ interface SchematicTraceEdge {
4810
4810
  interface SchematicTrace {
4811
4811
  type: "schematic_trace";
4812
4812
  schematic_trace_id: string;
4813
- source_trace_id: string;
4813
+ source_trace_id?: string;
4814
4814
  junctions: {
4815
4815
  x: number;
4816
4816
  y: number;
4817
4817
  }[];
4818
4818
  edges: SchematicTraceEdge[];
4819
4819
  subcircuit_id?: string;
4820
+ /** Optional for now, but will be required in a future release */
4821
+ subcircuit_connectivity_map_key?: string;
4820
4822
  }
4821
4823
  declare const schematic_trace: z.ZodObject<{
4822
4824
  type: z.ZodLiteral<"schematic_trace">;
4823
4825
  schematic_trace_id: z.ZodString;
4824
- source_trace_id: z.ZodString;
4826
+ source_trace_id: z.ZodOptional<z.ZodString>;
4825
4827
  junctions: z.ZodArray<z.ZodObject<{
4826
4828
  x: z.ZodNumber;
4827
4829
  y: z.ZodNumber;
@@ -4882,9 +4884,9 @@ declare const schematic_trace: z.ZodObject<{
4882
4884
  to_schematic_port_id?: string | undefined;
4883
4885
  }>, "many">;
4884
4886
  subcircuit_id: z.ZodOptional<z.ZodString>;
4887
+ subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
4885
4888
  }, "strip", z.ZodTypeAny, {
4886
4889
  type: "schematic_trace";
4887
- source_trace_id: string;
4888
4890
  schematic_trace_id: string;
4889
4891
  junctions: {
4890
4892
  x: number;
@@ -4904,9 +4906,10 @@ declare const schematic_trace: z.ZodObject<{
4904
4906
  to_schematic_port_id?: string | undefined;
4905
4907
  }[];
4906
4908
  subcircuit_id?: string | undefined;
4909
+ source_trace_id?: string | undefined;
4910
+ subcircuit_connectivity_map_key?: string | undefined;
4907
4911
  }, {
4908
4912
  type: "schematic_trace";
4909
- source_trace_id: string;
4910
4913
  schematic_trace_id: string;
4911
4914
  junctions: {
4912
4915
  x: number;
@@ -4926,6 +4929,8 @@ declare const schematic_trace: z.ZodObject<{
4926
4929
  to_schematic_port_id?: string | undefined;
4927
4930
  }[];
4928
4931
  subcircuit_id?: string | undefined;
4932
+ source_trace_id?: string | undefined;
4933
+ subcircuit_connectivity_map_key?: string | undefined;
4929
4934
  }>;
4930
4935
  type SchematicTraceInput = z.input<typeof schematic_trace>;
4931
4936
 
@@ -8227,8 +8232,8 @@ declare const source_port: z.ZodObject<{
8227
8232
  source_port_id: string;
8228
8233
  subcircuit_id?: string | undefined;
8229
8234
  port_hints?: string[] | undefined;
8230
- pin_number?: number | undefined;
8231
8235
  subcircuit_connectivity_map_key?: string | undefined;
8236
+ pin_number?: number | undefined;
8232
8237
  }, {
8233
8238
  type: "source_port";
8234
8239
  name: string;
@@ -8236,8 +8241,8 @@ declare const source_port: z.ZodObject<{
8236
8241
  source_port_id: string;
8237
8242
  subcircuit_id?: string | undefined;
8238
8243
  port_hints?: string[] | undefined;
8239
- pin_number?: number | undefined;
8240
8244
  subcircuit_connectivity_map_key?: string | undefined;
8245
+ pin_number?: number | undefined;
8241
8246
  }>;
8242
8247
  type SourcePortInput = z.input<typeof source_port>;
8243
8248
  /**
@@ -8775,8 +8780,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8775
8780
  source_port_id: string;
8776
8781
  subcircuit_id?: string | undefined;
8777
8782
  port_hints?: string[] | undefined;
8778
- pin_number?: number | undefined;
8779
8783
  subcircuit_connectivity_map_key?: string | undefined;
8784
+ pin_number?: number | undefined;
8780
8785
  }, {
8781
8786
  type: "source_port";
8782
8787
  name: string;
@@ -8784,8 +8789,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
8784
8789
  source_port_id: string;
8785
8790
  subcircuit_id?: string | undefined;
8786
8791
  port_hints?: string[] | undefined;
8787
- pin_number?: number | undefined;
8788
8792
  subcircuit_connectivity_map_key?: string | undefined;
8793
+ pin_number?: number | undefined;
8789
8794
  }>, z.ZodUnion<[z.ZodObject<{
8790
8795
  type: z.ZodLiteral<"source_component">;
8791
8796
  source_component_id: z.ZodString;
@@ -13559,7 +13564,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13559
13564
  }>, z.ZodObject<{
13560
13565
  type: z.ZodLiteral<"schematic_trace">;
13561
13566
  schematic_trace_id: z.ZodString;
13562
- source_trace_id: z.ZodString;
13567
+ source_trace_id: z.ZodOptional<z.ZodString>;
13563
13568
  junctions: z.ZodArray<z.ZodObject<{
13564
13569
  x: z.ZodNumber;
13565
13570
  y: z.ZodNumber;
@@ -13620,9 +13625,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13620
13625
  to_schematic_port_id?: string | undefined;
13621
13626
  }>, "many">;
13622
13627
  subcircuit_id: z.ZodOptional<z.ZodString>;
13628
+ subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
13623
13629
  }, "strip", z.ZodTypeAny, {
13624
13630
  type: "schematic_trace";
13625
- source_trace_id: string;
13626
13631
  schematic_trace_id: string;
13627
13632
  junctions: {
13628
13633
  x: number;
@@ -13642,9 +13647,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13642
13647
  to_schematic_port_id?: string | undefined;
13643
13648
  }[];
13644
13649
  subcircuit_id?: string | undefined;
13650
+ source_trace_id?: string | undefined;
13651
+ subcircuit_connectivity_map_key?: string | undefined;
13645
13652
  }, {
13646
13653
  type: "schematic_trace";
13647
- source_trace_id: string;
13648
13654
  schematic_trace_id: string;
13649
13655
  junctions: {
13650
13656
  x: number;
@@ -13664,6 +13670,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
13664
13670
  to_schematic_port_id?: string | undefined;
13665
13671
  }[];
13666
13672
  subcircuit_id?: string | undefined;
13673
+ source_trace_id?: string | undefined;
13674
+ subcircuit_connectivity_map_key?: string | undefined;
13667
13675
  }>, z.ZodObject<{
13668
13676
  type: z.ZodLiteral<"schematic_path">;
13669
13677
  schematic_component_id: z.ZodString;
@@ -14408,8 +14416,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14408
14416
  source_port_id: string;
14409
14417
  subcircuit_id?: string | undefined;
14410
14418
  port_hints?: string[] | undefined;
14411
- pin_number?: number | undefined;
14412
14419
  subcircuit_connectivity_map_key?: string | undefined;
14420
+ pin_number?: number | undefined;
14413
14421
  }, {
14414
14422
  type: "source_port";
14415
14423
  name: string;
@@ -14417,8 +14425,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
14417
14425
  source_port_id: string;
14418
14426
  subcircuit_id?: string | undefined;
14419
14427
  port_hints?: string[] | undefined;
14420
- pin_number?: number | undefined;
14421
14428
  subcircuit_connectivity_map_key?: string | undefined;
14429
+ pin_number?: number | undefined;
14422
14430
  }>, z.ZodUnion<[z.ZodObject<{
14423
14431
  type: z.ZodLiteral<"source_component">;
14424
14432
  source_component_id: z.ZodString;
@@ -19192,7 +19200,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19192
19200
  }>, z.ZodObject<{
19193
19201
  type: z.ZodLiteral<"schematic_trace">;
19194
19202
  schematic_trace_id: z.ZodString;
19195
- source_trace_id: z.ZodString;
19203
+ source_trace_id: z.ZodOptional<z.ZodString>;
19196
19204
  junctions: z.ZodArray<z.ZodObject<{
19197
19205
  x: z.ZodNumber;
19198
19206
  y: z.ZodNumber;
@@ -19253,9 +19261,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19253
19261
  to_schematic_port_id?: string | undefined;
19254
19262
  }>, "many">;
19255
19263
  subcircuit_id: z.ZodOptional<z.ZodString>;
19264
+ subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
19256
19265
  }, "strip", z.ZodTypeAny, {
19257
19266
  type: "schematic_trace";
19258
- source_trace_id: string;
19259
19267
  schematic_trace_id: string;
19260
19268
  junctions: {
19261
19269
  x: number;
@@ -19275,9 +19283,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19275
19283
  to_schematic_port_id?: string | undefined;
19276
19284
  }[];
19277
19285
  subcircuit_id?: string | undefined;
19286
+ source_trace_id?: string | undefined;
19287
+ subcircuit_connectivity_map_key?: string | undefined;
19278
19288
  }, {
19279
19289
  type: "schematic_trace";
19280
- source_trace_id: string;
19281
19290
  schematic_trace_id: string;
19282
19291
  junctions: {
19283
19292
  x: number;
@@ -19297,6 +19306,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
19297
19306
  to_schematic_port_id?: string | undefined;
19298
19307
  }[];
19299
19308
  subcircuit_id?: string | undefined;
19309
+ source_trace_id?: string | undefined;
19310
+ subcircuit_connectivity_map_key?: string | undefined;
19300
19311
  }>, z.ZodObject<{
19301
19312
  type: z.ZodLiteral<"schematic_path">;
19302
19313
  schematic_component_id: z.ZodString;
package/dist/index.mjs CHANGED
@@ -818,7 +818,7 @@ import { z as z45 } from "zod";
818
818
  var schematic_trace = z45.object({
819
819
  type: z45.literal("schematic_trace"),
820
820
  schematic_trace_id: z45.string(),
821
- source_trace_id: z45.string(),
821
+ source_trace_id: z45.string().optional(),
822
822
  junctions: z45.array(
823
823
  z45.object({
824
824
  x: z45.number(),
@@ -840,7 +840,9 @@ var schematic_trace = z45.object({
840
840
  to_schematic_port_id: z45.string().optional()
841
841
  })
842
842
  ),
843
- subcircuit_id: z45.string().optional()
843
+ subcircuit_id: z45.string().optional(),
844
+ // TODO: make required in a future release
845
+ subcircuit_connectivity_map_key: z45.string().optional()
844
846
  });
845
847
  expectTypesMatch(true);
846
848