circuit-json 0.0.243 → 0.0.245

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
@@ -283,9 +283,6 @@ interface SourceManuallyPlacedVia {
283
283
  source_manually_placed_via_id: string
284
284
  source_group_id: string
285
285
  source_net_id: string
286
- x: Distance
287
- y: Distance
288
- layers: LayerRef[]
289
286
  subcircuit_id?: string
290
287
  source_trace_id?: string
291
288
  }
package/dist/index.d.mts CHANGED
@@ -9167,36 +9167,17 @@ declare const source_manually_placed_via: z.ZodObject<{
9167
9167
  source_manually_placed_via_id: z.ZodString;
9168
9168
  source_group_id: z.ZodString;
9169
9169
  source_net_id: z.ZodString;
9170
- x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
9171
- y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
9172
- layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
9173
- name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
9174
- }, "strip", z.ZodTypeAny, {
9175
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9176
- }, {
9177
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9178
- }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
9179
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9180
- }>, "many">;
9181
9170
  subcircuit_id: z.ZodOptional<z.ZodString>;
9182
9171
  source_trace_id: z.ZodOptional<z.ZodString>;
9183
9172
  }, "strip", z.ZodTypeAny, {
9184
- x: number;
9185
- y: number;
9186
9173
  type: "source_manually_placed_via";
9187
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
9188
9174
  source_group_id: string;
9189
9175
  source_net_id: string;
9190
9176
  source_manually_placed_via_id: string;
9191
9177
  subcircuit_id?: string | undefined;
9192
9178
  source_trace_id?: string | undefined;
9193
9179
  }, {
9194
- x: string | number;
9195
- y: string | number;
9196
9180
  type: "source_manually_placed_via";
9197
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
9198
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
9199
- })[];
9200
9181
  source_group_id: string;
9201
9182
  source_net_id: string;
9202
9183
  source_manually_placed_via_id: string;
@@ -9212,9 +9193,6 @@ interface SourceManuallyPlacedVia {
9212
9193
  source_manually_placed_via_id: string;
9213
9194
  source_group_id: string;
9214
9195
  source_net_id: string;
9215
- x: Distance;
9216
- y: Distance;
9217
- layers: LayerRef[];
9218
9196
  subcircuit_id?: string;
9219
9197
  source_trace_id?: string;
9220
9198
  }
@@ -9278,6 +9256,8 @@ declare const cad_component: z.ZodObject<{
9278
9256
  model_stl_url: z.ZodOptional<z.ZodString>;
9279
9257
  model_3mf_url: z.ZodOptional<z.ZodString>;
9280
9258
  model_gltf_url: z.ZodOptional<z.ZodString>;
9259
+ model_glb_url: z.ZodOptional<z.ZodString>;
9260
+ model_step_url: z.ZodOptional<z.ZodString>;
9281
9261
  model_jscad: z.ZodOptional<z.ZodAny>;
9282
9262
  }, "strip", z.ZodTypeAny, {
9283
9263
  type: "cad_component";
@@ -9306,6 +9286,8 @@ declare const cad_component: z.ZodObject<{
9306
9286
  model_stl_url?: string | undefined;
9307
9287
  model_3mf_url?: string | undefined;
9308
9288
  model_gltf_url?: string | undefined;
9289
+ model_glb_url?: string | undefined;
9290
+ model_step_url?: string | undefined;
9309
9291
  model_jscad?: any;
9310
9292
  }, {
9311
9293
  type: "cad_component";
@@ -9336,6 +9318,8 @@ declare const cad_component: z.ZodObject<{
9336
9318
  model_stl_url?: string | undefined;
9337
9319
  model_3mf_url?: string | undefined;
9338
9320
  model_gltf_url?: string | undefined;
9321
+ model_glb_url?: string | undefined;
9322
+ model_step_url?: string | undefined;
9339
9323
  model_jscad?: any;
9340
9324
  }>;
9341
9325
  type CadComponentInput = z.input<typeof cad_component>;
@@ -9354,6 +9338,8 @@ interface CadComponent {
9354
9338
  model_stl_url?: string;
9355
9339
  model_3mf_url?: string;
9356
9340
  model_gltf_url?: string;
9341
+ model_glb_url?: string;
9342
+ model_step_url?: string;
9357
9343
  model_jscad?: any;
9358
9344
  }
9359
9345
 
@@ -11402,36 +11388,17 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
11402
11388
  source_manually_placed_via_id: z.ZodString;
11403
11389
  source_group_id: z.ZodString;
11404
11390
  source_net_id: z.ZodString;
11405
- x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11406
- y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
11407
- layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
11408
- name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
11409
- }, "strip", z.ZodTypeAny, {
11410
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11411
- }, {
11412
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11413
- }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
11414
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11415
- }>, "many">;
11416
11391
  subcircuit_id: z.ZodOptional<z.ZodString>;
11417
11392
  source_trace_id: z.ZodOptional<z.ZodString>;
11418
11393
  }, "strip", z.ZodTypeAny, {
11419
- x: number;
11420
- y: number;
11421
11394
  type: "source_manually_placed_via";
11422
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
11423
11395
  source_group_id: string;
11424
11396
  source_net_id: string;
11425
11397
  source_manually_placed_via_id: string;
11426
11398
  subcircuit_id?: string | undefined;
11427
11399
  source_trace_id?: string | undefined;
11428
11400
  }, {
11429
- x: string | number;
11430
- y: string | number;
11431
11401
  type: "source_manually_placed_via";
11432
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
11433
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
11434
- })[];
11435
11402
  source_group_id: string;
11436
11403
  source_net_id: string;
11437
11404
  source_manually_placed_via_id: string;
@@ -15354,6 +15321,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15354
15321
  model_stl_url: z.ZodOptional<z.ZodString>;
15355
15322
  model_3mf_url: z.ZodOptional<z.ZodString>;
15356
15323
  model_gltf_url: z.ZodOptional<z.ZodString>;
15324
+ model_glb_url: z.ZodOptional<z.ZodString>;
15325
+ model_step_url: z.ZodOptional<z.ZodString>;
15357
15326
  model_jscad: z.ZodOptional<z.ZodAny>;
15358
15327
  }, "strip", z.ZodTypeAny, {
15359
15328
  type: "cad_component";
@@ -15382,6 +15351,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15382
15351
  model_stl_url?: string | undefined;
15383
15352
  model_3mf_url?: string | undefined;
15384
15353
  model_gltf_url?: string | undefined;
15354
+ model_glb_url?: string | undefined;
15355
+ model_step_url?: string | undefined;
15385
15356
  model_jscad?: any;
15386
15357
  }, {
15387
15358
  type: "cad_component";
@@ -15412,6 +15383,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15412
15383
  model_stl_url?: string | undefined;
15413
15384
  model_3mf_url?: string | undefined;
15414
15385
  model_gltf_url?: string | undefined;
15386
+ model_glb_url?: string | undefined;
15387
+ model_step_url?: string | undefined;
15415
15388
  model_jscad?: any;
15416
15389
  }>, z.ZodUnion<[z.ZodObject<{
15417
15390
  type: z.ZodLiteral<"simulation_voltage_source">;
@@ -17352,36 +17325,17 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
17352
17325
  source_manually_placed_via_id: z.ZodString;
17353
17326
  source_group_id: z.ZodString;
17354
17327
  source_net_id: z.ZodString;
17355
- x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17356
- y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
17357
- layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
17358
- name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
17359
- }, "strip", z.ZodTypeAny, {
17360
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17361
- }, {
17362
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17363
- }>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
17364
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17365
- }>, "many">;
17366
17328
  subcircuit_id: z.ZodOptional<z.ZodString>;
17367
17329
  source_trace_id: z.ZodOptional<z.ZodString>;
17368
17330
  }, "strip", z.ZodTypeAny, {
17369
- x: number;
17370
- y: number;
17371
17331
  type: "source_manually_placed_via";
17372
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
17373
17332
  source_group_id: string;
17374
17333
  source_net_id: string;
17375
17334
  source_manually_placed_via_id: string;
17376
17335
  subcircuit_id?: string | undefined;
17377
17336
  source_trace_id?: string | undefined;
17378
17337
  }, {
17379
- x: string | number;
17380
- y: string | number;
17381
17338
  type: "source_manually_placed_via";
17382
- layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
17383
- name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
17384
- })[];
17385
17339
  source_group_id: string;
17386
17340
  source_net_id: string;
17387
17341
  source_manually_placed_via_id: string;
@@ -21304,6 +21258,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21304
21258
  model_stl_url: z.ZodOptional<z.ZodString>;
21305
21259
  model_3mf_url: z.ZodOptional<z.ZodString>;
21306
21260
  model_gltf_url: z.ZodOptional<z.ZodString>;
21261
+ model_glb_url: z.ZodOptional<z.ZodString>;
21262
+ model_step_url: z.ZodOptional<z.ZodString>;
21307
21263
  model_jscad: z.ZodOptional<z.ZodAny>;
21308
21264
  }, "strip", z.ZodTypeAny, {
21309
21265
  type: "cad_component";
@@ -21332,6 +21288,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21332
21288
  model_stl_url?: string | undefined;
21333
21289
  model_3mf_url?: string | undefined;
21334
21290
  model_gltf_url?: string | undefined;
21291
+ model_glb_url?: string | undefined;
21292
+ model_step_url?: string | undefined;
21335
21293
  model_jscad?: any;
21336
21294
  }, {
21337
21295
  type: "cad_component";
@@ -21362,6 +21320,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
21362
21320
  model_stl_url?: string | undefined;
21363
21321
  model_3mf_url?: string | undefined;
21364
21322
  model_gltf_url?: string | undefined;
21323
+ model_glb_url?: string | undefined;
21324
+ model_step_url?: string | undefined;
21365
21325
  model_jscad?: any;
21366
21326
  }>, z.ZodUnion<[z.ZodObject<{
21367
21327
  type: z.ZodLiteral<"simulation_voltage_source">;
package/dist/index.mjs CHANGED
@@ -748,9 +748,6 @@ var source_manually_placed_via = z42.object({
748
748
  source_manually_placed_via_id: z42.string(),
749
749
  source_group_id: z42.string(),
750
750
  source_net_id: z42.string(),
751
- x: distance,
752
- y: distance,
753
- layers: z42.array(layer_ref),
754
751
  subcircuit_id: z42.string().optional(),
755
752
  source_trace_id: z42.string().optional()
756
753
  }).describe("Defines a via that is manually placed in the source domain");
@@ -2095,6 +2092,8 @@ var cad_component = z99.object({
2095
2092
  model_stl_url: z99.string().optional(),
2096
2093
  model_3mf_url: z99.string().optional(),
2097
2094
  model_gltf_url: z99.string().optional(),
2095
+ model_glb_url: z99.string().optional(),
2096
+ model_step_url: z99.string().optional(),
2098
2097
  model_jscad: z99.any().optional()
2099
2098
  }).describe("Defines a component on the PCB");
2100
2099
  expectTypesMatch(true);