circuit-json 0.0.498 → 0.0.500

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
@@ -8731,7 +8731,7 @@ declare const pcb_board: z.ZodObject<{
8731
8731
  y: string | number;
8732
8732
  }>, "many">>;
8733
8733
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
8734
- material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
8734
+ material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
8735
8735
  solder_mask_color: z.ZodOptional<z.ZodString>;
8736
8736
  silkscreen_color: z.ZodOptional<z.ZodString>;
8737
8737
  anchor_position: z.ZodOptional<z.ZodObject<{
@@ -8767,7 +8767,7 @@ declare const pcb_board: z.ZodObject<{
8767
8767
  };
8768
8768
  pcb_board_id: string;
8769
8769
  num_layers: number;
8770
- material: "fr4" | "fr1";
8770
+ material: "fr4" | "fr1" | "flex";
8771
8771
  width?: number | undefined;
8772
8772
  height?: number | undefined;
8773
8773
  min_trace_width?: number | undefined;
@@ -8849,7 +8849,7 @@ declare const pcb_board: z.ZodObject<{
8849
8849
  x: string | number;
8850
8850
  y: string | number;
8851
8851
  }[] | undefined;
8852
- material?: "fr4" | "fr1" | undefined;
8852
+ material?: "fr4" | "fr1" | "flex" | undefined;
8853
8853
  solder_mask_color?: string | undefined;
8854
8854
  silkscreen_color?: string | undefined;
8855
8855
  }>;
@@ -8878,7 +8878,7 @@ interface PcbBoard extends ManufacturingDrcProperties {
8878
8878
  center: Point;
8879
8879
  outline?: Point[];
8880
8880
  shape?: "rect" | "polygon";
8881
- material: "fr4" | "fr1";
8881
+ material: "fr4" | "fr1" | "flex";
8882
8882
  solder_mask_color?: string;
8883
8883
  silkscreen_color?: string;
8884
8884
  anchor_position?: Point;
@@ -37452,6 +37452,7 @@ declare const cad_component: z.ZodObject<{
37452
37452
  y: string | number;
37453
37453
  z: string | number;
37454
37454
  }>>;
37455
+ is_on_folded_board: z.ZodOptional<z.ZodBoolean>;
37455
37456
  size: z.ZodOptional<z.ZodObject<{
37456
37457
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
37457
37458
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -37543,6 +37544,7 @@ declare const cad_component: z.ZodObject<{
37543
37544
  pcb_component_id?: string | undefined;
37544
37545
  subcircuit_id?: string | undefined;
37545
37546
  footprinter_string?: string | undefined;
37547
+ is_on_folded_board?: boolean | undefined;
37546
37548
  model_obj_url?: string | undefined;
37547
37549
  model_stl_url?: string | undefined;
37548
37550
  model_3mf_url?: string | undefined;
@@ -37593,6 +37595,7 @@ declare const cad_component: z.ZodObject<{
37593
37595
  subcircuit_id?: string | undefined;
37594
37596
  anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
37595
37597
  footprinter_string?: string | undefined;
37598
+ is_on_folded_board?: boolean | undefined;
37596
37599
  model_obj_url?: string | undefined;
37597
37600
  model_stl_url?: string | undefined;
37598
37601
  model_3mf_url?: string | undefined;
@@ -37631,6 +37634,10 @@ interface CadComponent {
37631
37634
  source_component_id: string;
37632
37635
  position: Point3;
37633
37636
  rotation?: Point3;
37637
+ /** True for assembled folded position/rotation; false or omitted for flat.
37638
+ * PCB records stay flat. pcb_component_id identifies the mount/owning board.
37639
+ */
37640
+ is_on_folded_board?: boolean;
37634
37641
  size?: Point3;
37635
37642
  layer?: LayerRef;
37636
37643
  subcircuit_id?: string;
@@ -45378,7 +45385,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
45378
45385
  y: string | number;
45379
45386
  }>, "many">>;
45380
45387
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
45381
- material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
45388
+ material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
45382
45389
  solder_mask_color: z.ZodOptional<z.ZodString>;
45383
45390
  silkscreen_color: z.ZodOptional<z.ZodString>;
45384
45391
  anchor_position: z.ZodOptional<z.ZodObject<{
@@ -45414,7 +45421,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
45414
45421
  };
45415
45422
  pcb_board_id: string;
45416
45423
  num_layers: number;
45417
- material: "fr4" | "fr1";
45424
+ material: "fr4" | "fr1" | "flex";
45418
45425
  width?: number | undefined;
45419
45426
  height?: number | undefined;
45420
45427
  min_trace_width?: number | undefined;
@@ -45496,7 +45503,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
45496
45503
  x: string | number;
45497
45504
  y: string | number;
45498
45505
  }[] | undefined;
45499
- material?: "fr4" | "fr1" | undefined;
45506
+ material?: "fr4" | "fr1" | "flex" | undefined;
45500
45507
  solder_mask_color?: string | undefined;
45501
45508
  silkscreen_color?: string | undefined;
45502
45509
  }>, z.ZodEffects<z.ZodObject<{
@@ -57217,6 +57224,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
57217
57224
  y: string | number;
57218
57225
  z: string | number;
57219
57226
  }>>;
57227
+ is_on_folded_board: z.ZodOptional<z.ZodBoolean>;
57220
57228
  size: z.ZodOptional<z.ZodObject<{
57221
57229
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
57222
57230
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -57308,6 +57316,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
57308
57316
  pcb_component_id?: string | undefined;
57309
57317
  subcircuit_id?: string | undefined;
57310
57318
  footprinter_string?: string | undefined;
57319
+ is_on_folded_board?: boolean | undefined;
57311
57320
  model_obj_url?: string | undefined;
57312
57321
  model_stl_url?: string | undefined;
57313
57322
  model_3mf_url?: string | undefined;
@@ -57358,6 +57367,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
57358
57367
  subcircuit_id?: string | undefined;
57359
57368
  anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
57360
57369
  footprinter_string?: string | undefined;
57370
+ is_on_folded_board?: boolean | undefined;
57361
57371
  model_obj_url?: string | undefined;
57362
57372
  model_stl_url?: string | undefined;
57363
57373
  model_3mf_url?: string | undefined;
@@ -66461,7 +66471,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66461
66471
  y: string | number;
66462
66472
  }>, "many">>;
66463
66473
  shape: z.ZodOptional<z.ZodEnum<["rect", "polygon"]>>;
66464
- material: z.ZodDefault<z.ZodEnum<["fr4", "fr1"]>>;
66474
+ material: z.ZodDefault<z.ZodEnum<["fr4", "fr1", "flex"]>>;
66465
66475
  solder_mask_color: z.ZodOptional<z.ZodString>;
66466
66476
  silkscreen_color: z.ZodOptional<z.ZodString>;
66467
66477
  anchor_position: z.ZodOptional<z.ZodObject<{
@@ -66497,7 +66507,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66497
66507
  };
66498
66508
  pcb_board_id: string;
66499
66509
  num_layers: number;
66500
- material: "fr4" | "fr1";
66510
+ material: "fr4" | "fr1" | "flex";
66501
66511
  width?: number | undefined;
66502
66512
  height?: number | undefined;
66503
66513
  min_trace_width?: number | undefined;
@@ -66579,7 +66589,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
66579
66589
  x: string | number;
66580
66590
  y: string | number;
66581
66591
  }[] | undefined;
66582
- material?: "fr4" | "fr1" | undefined;
66592
+ material?: "fr4" | "fr1" | "flex" | undefined;
66583
66593
  solder_mask_color?: string | undefined;
66584
66594
  silkscreen_color?: string | undefined;
66585
66595
  }>, z.ZodEffects<z.ZodObject<{
@@ -78300,6 +78310,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
78300
78310
  y: string | number;
78301
78311
  z: string | number;
78302
78312
  }>>;
78313
+ is_on_folded_board: z.ZodOptional<z.ZodBoolean>;
78303
78314
  size: z.ZodOptional<z.ZodObject<{
78304
78315
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
78305
78316
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
@@ -78391,6 +78402,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
78391
78402
  pcb_component_id?: string | undefined;
78392
78403
  subcircuit_id?: string | undefined;
78393
78404
  footprinter_string?: string | undefined;
78405
+ is_on_folded_board?: boolean | undefined;
78394
78406
  model_obj_url?: string | undefined;
78395
78407
  model_stl_url?: string | undefined;
78396
78408
  model_3mf_url?: string | undefined;
@@ -78441,6 +78453,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
78441
78453
  subcircuit_id?: string | undefined;
78442
78454
  anchor_alignment?: "center" | "center_of_component_on_board_surface" | undefined;
78443
78455
  footprinter_string?: string | undefined;
78456
+ is_on_folded_board?: boolean | undefined;
78444
78457
  model_obj_url?: string | undefined;
78445
78458
  model_stl_url?: string | undefined;
78446
78459
  model_3mf_url?: string | undefined;
package/dist/index.mjs CHANGED
@@ -2801,7 +2801,7 @@ var pcb_board = z128.object({
2801
2801
  ),
2802
2802
  outline: z128.array(point).optional(),
2803
2803
  shape: z128.enum(["rect", "polygon"]).optional(),
2804
- material: z128.enum(["fr4", "fr1"]).default("fr4"),
2804
+ material: z128.enum(["fr4", "fr1", "flex"]).default("fr4"),
2805
2805
  solder_mask_color: z128.string().optional(),
2806
2806
  silkscreen_color: z128.string().optional(),
2807
2807
  anchor_position: point.optional(),
@@ -4061,6 +4061,9 @@ var cad_component = z187.object({
4061
4061
  source_component_id: z187.string(),
4062
4062
  position: point3,
4063
4063
  rotation: point3.optional(),
4064
+ is_on_folded_board: z187.boolean().optional().describe(
4065
+ "True when position and rotation describe the assembled folded board pose. False or omitted means the flat board pose. PCB records remain flat; pcb_component_id identifies the flat mount and owning board for reversible transforms."
4066
+ ),
4064
4067
  size: point3.optional(),
4065
4068
  layer: layer_ref.optional(),
4066
4069
  subcircuit_id: z187.string().optional(),