circuit-json 0.0.384 → 0.0.385
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 +160 -0
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -28056,6 +28056,22 @@ declare const source_port: z.ZodObject<{
|
|
|
28056
28056
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
28057
28057
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
28058
28058
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
28059
|
+
is_configured_for_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
28060
|
+
is_configured_for_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
28061
|
+
is_configured_for_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
28062
|
+
is_configured_for_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
28063
|
+
is_configured_for_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
28064
|
+
is_configured_for_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
28065
|
+
is_configured_for_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
28066
|
+
is_configured_for_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
28067
|
+
supports_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
28068
|
+
supports_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
28069
|
+
supports_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
28070
|
+
supports_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
28071
|
+
supports_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
28072
|
+
supports_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
28073
|
+
supports_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
28074
|
+
supports_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
28059
28075
|
}, "strip", z.ZodTypeAny, {
|
|
28060
28076
|
type: "source_port";
|
|
28061
28077
|
name: string;
|
|
@@ -28068,6 +28084,22 @@ declare const source_port: z.ZodObject<{
|
|
|
28068
28084
|
pin_number?: number | undefined;
|
|
28069
28085
|
most_frequently_referenced_by_name?: string | undefined;
|
|
28070
28086
|
must_be_connected?: boolean | undefined;
|
|
28087
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
28088
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
28089
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
28090
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
28091
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
28092
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
28093
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
28094
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
28095
|
+
supports_i2c_sda?: boolean | undefined;
|
|
28096
|
+
supports_i2c_scl?: boolean | undefined;
|
|
28097
|
+
supports_spi_mosi?: boolean | undefined;
|
|
28098
|
+
supports_spi_miso?: boolean | undefined;
|
|
28099
|
+
supports_spi_sck?: boolean | undefined;
|
|
28100
|
+
supports_spi_cs?: boolean | undefined;
|
|
28101
|
+
supports_uart_tx?: boolean | undefined;
|
|
28102
|
+
supports_uart_rx?: boolean | undefined;
|
|
28071
28103
|
}, {
|
|
28072
28104
|
type: "source_port";
|
|
28073
28105
|
name: string;
|
|
@@ -28080,6 +28112,22 @@ declare const source_port: z.ZodObject<{
|
|
|
28080
28112
|
pin_number?: number | undefined;
|
|
28081
28113
|
most_frequently_referenced_by_name?: string | undefined;
|
|
28082
28114
|
must_be_connected?: boolean | undefined;
|
|
28115
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
28116
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
28117
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
28118
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
28119
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
28120
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
28121
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
28122
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
28123
|
+
supports_i2c_sda?: boolean | undefined;
|
|
28124
|
+
supports_i2c_scl?: boolean | undefined;
|
|
28125
|
+
supports_spi_mosi?: boolean | undefined;
|
|
28126
|
+
supports_spi_miso?: boolean | undefined;
|
|
28127
|
+
supports_spi_sck?: boolean | undefined;
|
|
28128
|
+
supports_spi_cs?: boolean | undefined;
|
|
28129
|
+
supports_uart_tx?: boolean | undefined;
|
|
28130
|
+
supports_uart_rx?: boolean | undefined;
|
|
28083
28131
|
}>;
|
|
28084
28132
|
type SourcePortInput = z.input<typeof source_port>;
|
|
28085
28133
|
/**
|
|
@@ -28097,6 +28145,22 @@ interface SourcePort {
|
|
|
28097
28145
|
subcircuit_id?: string;
|
|
28098
28146
|
subcircuit_connectivity_map_key?: string;
|
|
28099
28147
|
must_be_connected?: boolean;
|
|
28148
|
+
is_configured_for_i2c_sda?: boolean;
|
|
28149
|
+
is_configured_for_i2c_scl?: boolean;
|
|
28150
|
+
is_configured_for_spi_mosi?: boolean;
|
|
28151
|
+
is_configured_for_spi_miso?: boolean;
|
|
28152
|
+
is_configured_for_spi_sck?: boolean;
|
|
28153
|
+
is_configured_for_spi_cs?: boolean;
|
|
28154
|
+
is_configured_for_uart_tx?: boolean;
|
|
28155
|
+
is_configured_for_uart_rx?: boolean;
|
|
28156
|
+
supports_i2c_sda?: boolean;
|
|
28157
|
+
supports_i2c_scl?: boolean;
|
|
28158
|
+
supports_spi_mosi?: boolean;
|
|
28159
|
+
supports_spi_miso?: boolean;
|
|
28160
|
+
supports_spi_sck?: boolean;
|
|
28161
|
+
supports_spi_cs?: boolean;
|
|
28162
|
+
supports_uart_tx?: boolean;
|
|
28163
|
+
supports_uart_rx?: boolean;
|
|
28100
28164
|
}
|
|
28101
28165
|
|
|
28102
28166
|
interface SourceComponentInternalConnection {
|
|
@@ -31280,6 +31344,22 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
31280
31344
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
31281
31345
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
31282
31346
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
31347
|
+
is_configured_for_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
31348
|
+
is_configured_for_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
31349
|
+
is_configured_for_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
31350
|
+
is_configured_for_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
31351
|
+
is_configured_for_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
31352
|
+
is_configured_for_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
31353
|
+
is_configured_for_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
31354
|
+
is_configured_for_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
31355
|
+
supports_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
31356
|
+
supports_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
31357
|
+
supports_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
31358
|
+
supports_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
31359
|
+
supports_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
31360
|
+
supports_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
31361
|
+
supports_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
31362
|
+
supports_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
31283
31363
|
}, "strip", z.ZodTypeAny, {
|
|
31284
31364
|
type: "source_port";
|
|
31285
31365
|
name: string;
|
|
@@ -31292,6 +31372,22 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
31292
31372
|
pin_number?: number | undefined;
|
|
31293
31373
|
most_frequently_referenced_by_name?: string | undefined;
|
|
31294
31374
|
must_be_connected?: boolean | undefined;
|
|
31375
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
31376
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
31377
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
31378
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
31379
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
31380
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
31381
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
31382
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
31383
|
+
supports_i2c_sda?: boolean | undefined;
|
|
31384
|
+
supports_i2c_scl?: boolean | undefined;
|
|
31385
|
+
supports_spi_mosi?: boolean | undefined;
|
|
31386
|
+
supports_spi_miso?: boolean | undefined;
|
|
31387
|
+
supports_spi_sck?: boolean | undefined;
|
|
31388
|
+
supports_spi_cs?: boolean | undefined;
|
|
31389
|
+
supports_uart_tx?: boolean | undefined;
|
|
31390
|
+
supports_uart_rx?: boolean | undefined;
|
|
31295
31391
|
}, {
|
|
31296
31392
|
type: "source_port";
|
|
31297
31393
|
name: string;
|
|
@@ -31304,6 +31400,22 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
31304
31400
|
pin_number?: number | undefined;
|
|
31305
31401
|
most_frequently_referenced_by_name?: string | undefined;
|
|
31306
31402
|
must_be_connected?: boolean | undefined;
|
|
31403
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
31404
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
31405
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
31406
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
31407
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
31408
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
31409
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
31410
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
31411
|
+
supports_i2c_sda?: boolean | undefined;
|
|
31412
|
+
supports_i2c_scl?: boolean | undefined;
|
|
31413
|
+
supports_spi_mosi?: boolean | undefined;
|
|
31414
|
+
supports_spi_miso?: boolean | undefined;
|
|
31415
|
+
supports_spi_sck?: boolean | undefined;
|
|
31416
|
+
supports_spi_cs?: boolean | undefined;
|
|
31417
|
+
supports_uart_tx?: boolean | undefined;
|
|
31418
|
+
supports_uart_rx?: boolean | undefined;
|
|
31307
31419
|
}>, z.ZodObject<{
|
|
31308
31420
|
type: z.ZodLiteral<"source_component_internal_connection">;
|
|
31309
31421
|
source_component_internal_connection_id: z.ZodString;
|
|
@@ -48471,6 +48583,22 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
48471
48583
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
48472
48584
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
48473
48585
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
48586
|
+
is_configured_for_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
48587
|
+
is_configured_for_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
48588
|
+
is_configured_for_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
48589
|
+
is_configured_for_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
48590
|
+
is_configured_for_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
48591
|
+
is_configured_for_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
48592
|
+
is_configured_for_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
48593
|
+
is_configured_for_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
48594
|
+
supports_i2c_sda: z.ZodOptional<z.ZodBoolean>;
|
|
48595
|
+
supports_i2c_scl: z.ZodOptional<z.ZodBoolean>;
|
|
48596
|
+
supports_spi_mosi: z.ZodOptional<z.ZodBoolean>;
|
|
48597
|
+
supports_spi_miso: z.ZodOptional<z.ZodBoolean>;
|
|
48598
|
+
supports_spi_sck: z.ZodOptional<z.ZodBoolean>;
|
|
48599
|
+
supports_spi_cs: z.ZodOptional<z.ZodBoolean>;
|
|
48600
|
+
supports_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
48601
|
+
supports_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
48474
48602
|
}, "strip", z.ZodTypeAny, {
|
|
48475
48603
|
type: "source_port";
|
|
48476
48604
|
name: string;
|
|
@@ -48483,6 +48611,22 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
48483
48611
|
pin_number?: number | undefined;
|
|
48484
48612
|
most_frequently_referenced_by_name?: string | undefined;
|
|
48485
48613
|
must_be_connected?: boolean | undefined;
|
|
48614
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
48615
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
48616
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
48617
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
48618
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
48619
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
48620
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
48621
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
48622
|
+
supports_i2c_sda?: boolean | undefined;
|
|
48623
|
+
supports_i2c_scl?: boolean | undefined;
|
|
48624
|
+
supports_spi_mosi?: boolean | undefined;
|
|
48625
|
+
supports_spi_miso?: boolean | undefined;
|
|
48626
|
+
supports_spi_sck?: boolean | undefined;
|
|
48627
|
+
supports_spi_cs?: boolean | undefined;
|
|
48628
|
+
supports_uart_tx?: boolean | undefined;
|
|
48629
|
+
supports_uart_rx?: boolean | undefined;
|
|
48486
48630
|
}, {
|
|
48487
48631
|
type: "source_port";
|
|
48488
48632
|
name: string;
|
|
@@ -48495,6 +48639,22 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
48495
48639
|
pin_number?: number | undefined;
|
|
48496
48640
|
most_frequently_referenced_by_name?: string | undefined;
|
|
48497
48641
|
must_be_connected?: boolean | undefined;
|
|
48642
|
+
is_configured_for_i2c_sda?: boolean | undefined;
|
|
48643
|
+
is_configured_for_i2c_scl?: boolean | undefined;
|
|
48644
|
+
is_configured_for_spi_mosi?: boolean | undefined;
|
|
48645
|
+
is_configured_for_spi_miso?: boolean | undefined;
|
|
48646
|
+
is_configured_for_spi_sck?: boolean | undefined;
|
|
48647
|
+
is_configured_for_spi_cs?: boolean | undefined;
|
|
48648
|
+
is_configured_for_uart_tx?: boolean | undefined;
|
|
48649
|
+
is_configured_for_uart_rx?: boolean | undefined;
|
|
48650
|
+
supports_i2c_sda?: boolean | undefined;
|
|
48651
|
+
supports_i2c_scl?: boolean | undefined;
|
|
48652
|
+
supports_spi_mosi?: boolean | undefined;
|
|
48653
|
+
supports_spi_miso?: boolean | undefined;
|
|
48654
|
+
supports_spi_sck?: boolean | undefined;
|
|
48655
|
+
supports_spi_cs?: boolean | undefined;
|
|
48656
|
+
supports_uart_tx?: boolean | undefined;
|
|
48657
|
+
supports_uart_rx?: boolean | undefined;
|
|
48498
48658
|
}>, z.ZodObject<{
|
|
48499
48659
|
type: z.ZodLiteral<"source_component_internal_connection">;
|
|
48500
48660
|
source_component_internal_connection_id: z.ZodString;
|
package/dist/index.mjs
CHANGED
|
@@ -901,7 +901,23 @@ var source_port = z47.object({
|
|
|
901
901
|
most_frequently_referenced_by_name: z47.string().optional(),
|
|
902
902
|
subcircuit_id: z47.string().optional(),
|
|
903
903
|
subcircuit_connectivity_map_key: z47.string().optional(),
|
|
904
|
-
must_be_connected: z47.boolean().optional()
|
|
904
|
+
must_be_connected: z47.boolean().optional(),
|
|
905
|
+
is_configured_for_i2c_sda: z47.boolean().optional(),
|
|
906
|
+
is_configured_for_i2c_scl: z47.boolean().optional(),
|
|
907
|
+
is_configured_for_spi_mosi: z47.boolean().optional(),
|
|
908
|
+
is_configured_for_spi_miso: z47.boolean().optional(),
|
|
909
|
+
is_configured_for_spi_sck: z47.boolean().optional(),
|
|
910
|
+
is_configured_for_spi_cs: z47.boolean().optional(),
|
|
911
|
+
is_configured_for_uart_tx: z47.boolean().optional(),
|
|
912
|
+
is_configured_for_uart_rx: z47.boolean().optional(),
|
|
913
|
+
supports_i2c_sda: z47.boolean().optional(),
|
|
914
|
+
supports_i2c_scl: z47.boolean().optional(),
|
|
915
|
+
supports_spi_mosi: z47.boolean().optional(),
|
|
916
|
+
supports_spi_miso: z47.boolean().optional(),
|
|
917
|
+
supports_spi_sck: z47.boolean().optional(),
|
|
918
|
+
supports_spi_cs: z47.boolean().optional(),
|
|
919
|
+
supports_uart_tx: z47.boolean().optional(),
|
|
920
|
+
supports_uart_rx: z47.boolean().optional()
|
|
905
921
|
});
|
|
906
922
|
expectTypesMatch(true);
|
|
907
923
|
|