kittycad-modeling-cmds 0.2.192

Commands in the KittyCAD Modeling API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
use kittycad_modeling_cmds_macros::define_ok_modeling_cmd_response_enum;
use serde::{Deserialize, Serialize};

impl crate::ModelingCmdOutput for () {}

pub(crate) fn is_true(b: &bool) -> bool {
    *b
}

fn bool_true() -> bool {
    true
}

define_ok_modeling_cmd_response_enum! {
    /// Output from Modeling API commands.
    pub mod output {
        use kittycad_modeling_cmds_macros::ModelingCmdOutput;
        use schemars::JsonSchema;
        use serde::{Deserialize, Serialize};
        use bon::Builder;
        use uuid::Uuid;
        use crate::shared::{
            CameraSettings,
            CameraViewState,
            BodyType,
        };
        use std::collections::HashMap;

        use crate::{self as kittycad_modeling_cmds};
        use crate::{
            base64::Base64Data,
            id::ModelingCmdId,
            length_unit::LengthUnit,
            shared::{CurveType, EntityType, ExportFile, ExtrusionFaceCapType, PathCommand, Point2d, Point3d, BodiesCreated, BodiesUpdated},
            units,
        };
        use super::bool_true;

        /// The response of the `EngineUtilEvaluatePath` endpoint
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EngineUtilEvaluatePath {
            /// The evaluated path curve position
            pub pos: Point3d<LengthUnit>,
        }

        /// The response from the `StartPath` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct StartPath {
        }

        /// The response from the `MovePathPen` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MovePathPen {
        }

        /// The response from the `ExtendPath` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ExtendPath {
        }

        /// The response from the `Extrude` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Extrude {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `ExtrudeToReference` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ExtrudeToReference {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `TwistExtrude` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct TwistExtrude {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `Sweep` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Sweep {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `Revolve` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Revolve {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `Solid3dShellFace` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dShellFace {
        }

        /// The response from the `Solid3dJoin` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dJoin {
        }

        /// The response from the `Solid3dMultiJoin` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dMultiJoin {
        }

        /// The response from the `SurfaceBlend` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        pub struct SurfaceBlend {
        }

        /// The response from the `Solid3dGetEdgeUuid` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetEdgeUuid {
            /// The UUID of the edge.
            pub edge_id: Uuid,
        }

        /// The response from the `Solid3dGetFaceUuid` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetFaceUuid {
            /// The UUID of the face.
            pub face_id: Uuid,
        }

        /// The response from the `Solid3dGetBodyType` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetBodyType {
            /// The body type
            pub body_type: BodyType,
        }

        /// The response from the `RevolveAboutEdge` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct RevolveAboutEdge {
            /// Any new bodies created by the request.
            #[serde(default, skip_serializing_if = "BodiesCreated::is_empty")]
            pub bodies_created: BodiesCreated,
            /// Any existing bodies updated by the request.
            #[serde(default, skip_serializing_if = "BodiesUpdated::is_empty")]
            pub bodies_updated: BodiesUpdated,
        }

        /// The response from the `CameraDragStart` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CameraDragStart {
        }

        /// The response from the `DefaultCameraLookAt` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraLookAt {
        }

        /// The response from the `DefaultCameraPerspectiveSettings` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraPerspectiveSettings {
        }

        /// The response from the `SelectAdd` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectAdd {
        }
        /// The response from the `SelectRemove` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectRemove {
        }

        /// The response from the `SceneClearAll` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SceneClearAll {
        }

        /// The response from the `SelectReplace` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectReplace {
        }

        /// The response from the `HighlightSetEntities` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct HighlightSetEntities {
        }

        /// The response from the `NewAnnotation` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct NewAnnotation {
        }

        /// The response from the `UpdateAnnotation` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct UpdateAnnotation {
        }

        /// The response from the `EdgeLinesVisible` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EdgeLinesVisible {
        }

        /// The response from the `ObjectVisible` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ObjectVisible {
        }

        /// The response from the `ObjectBringToFront` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ObjectBringToFront {
        }

        /// The response from the `ObjectSetMaterialParamsPbr` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ObjectSetMaterialParamsPbr {
        }

        /// The response from the `Solid2dAddHole` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid2dAddHole {
        }

        /// The response from the `Solid3dFilletEdge` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dFilletEdge {
        }

        /// The response from the `Solid3dCutEdges` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dCutEdges {
        }


        /// The response from the `SendObject` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SendObject {
        }

        /// The response from the `EntitySetOpacity` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntitySetOpacity {
        }

        /// The response from the `EntityFade` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityFade {
        }

        /// The response from the `MakePlane` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MakePlane {
        }

        /// The response from the `PlaneSetColor` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PlaneSetColor {
        }

        /// The response from the `SetTool` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetTool {
        }

        /// The response from the `MouseMove` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MouseMove {
        }

        /// The response from the `SketchModeDisable` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SketchModeDisable {
        }

        /// The response from the `EnableDryRun` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EnableDryRun {
        }

        /// The response from the `DisableDryRun` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DisableDryRun {
        }

        /// The response from the `CurveSetConstraint` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CurveSetConstraint {
        }

        /// The response from the `EnableSketchMode` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EnableSketchMode {
        }

        /// The response from the `SetBackgroundColor` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetBackgroundColor {
        }

        /// The response from the `SetCurrentToolProperties` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetCurrentToolProperties {
        }

        /// The response from the `SetDefaultSystemProperties` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetDefaultSystemProperties {
        }

        /// The response from the `MakeAxesGizmo` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MakeAxesGizmo {
        }

        /// The response from the `HandleMouseDragStart` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct HandleMouseDragStart {
        }

        /// The response from the `HandleMouseDragMove` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct HandleMouseDragMove {
        }

        /// The response from the `HandleMouseDragEnd` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct HandleMouseDragEnd {
        }

        /// The response from the `RemoveSceneObjects` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct RemoveSceneObjects {
        }

        /// The response from the `ReconfigureStream` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ReconfigureStream {
        }

        /// The response from the `SetSceneUnits` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetSceneUnits {
        }

        /// The response from the `SetSelectionType` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetSelectionType {
        }

        /// The response from the `SetSelectionFilter` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetSelectionFilter {
        }

        /// The response from the `DefaultCameraSetOrthographic` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraSetOrthographic {
        }

        /// The response from the `DefaultCameraSetPerspective` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraSetPerspective {
        }

        /// The response from the `DefaultCameraCenterToSelection` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraCenterToSelection {
        }

        /// The response from the `DefaultCameraCenterToScene` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraCenterToScene {
        }

        /// The response from the `SelectClear` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectClear {
        }

        /// The response from the `Export2d` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Export2d {
            /// The files that were exported.
            pub files: Vec<ExportFile>,
        }

        /// The response from the `Export3d` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Export3d {
            /// The files that were exported.
            pub files: Vec<ExportFile>,
        }

        /// The response from the `Export` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Export {
            /// The files that were exported.
            pub files: Vec<ExportFile>,
        }

        /// The response from the `SelectWithPoint` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectWithPoint {
            /// The UUID of the entity that was selected.
            pub entity_id: Option<Uuid>,
        }

        /// The response from the `HighlightSetEntity` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct HighlightSetEntity {
            /// The UUID of the entity that was highlighted.
            pub entity_id: Option<Uuid>,
            /// If the client sent a sequence ID with its request, the backend sends it back.
            pub sequence: Option<u32>,
        }
        /// The response from the `EntityGetChildUuid` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetChildUuid {
            /// The UUID of the child entity.
            pub entity_id: Uuid,
        }
        /// The response from the `EntityGetIndex` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetIndex {
            /// The child index of the entity.
            pub entity_index: u32,
        }
        /// The response from the `EntityGetPrimitiveIndex` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetPrimitiveIndex {
            /// The primitive index of the entity.
            pub primitive_index: u32,

            /// The type of this entity.  Helps infer whether this is an edge or a face index.
            pub entity_type: EntityType,
        }
        /// The response from the `EntityDeleteChildren` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityDeleteChildren {
        }
        /// The response from the `EntityGetNumChildren` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetNumChildren {
            /// The number of children the entity has.
            pub num: u32,
        }
        /// The response from the `EntityGetParentId` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetParentId {
            /// The UUID of the parent entity.
            pub entity_id: Uuid,
        }
        /// The response from the `EntityGetAllChildUuids` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetAllChildUuids {
            /// The UUIDs of the child entities.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `EntityGetSketchPaths` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetSketchPaths {
            /// The UUIDs of the sketch paths.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `Loft` command.
        #[derive(Debug, Serialize, Deserialize, JsonSchema, PartialEq, ModelingCmdOutput, Clone)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Loft {
            ///The UUID of the newly created solid loft.
            pub solid_id: Uuid,
        }

        /// The response from the `ClosePath` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ClosePath {
            /// The UUID of the lone face of the resulting solid2D.
            pub face_id: Uuid,
        }

        /// The response from the `CameraDragMove` command.
        /// Note this is an "unreliable" channel message, so this data may need more data like a "sequence"
        //  to work properly
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CameraDragMove {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `CameraDragEnd` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CameraDragEnd {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `DefaultCameraGetSettings` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraGetSettings {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `DefaultCameraGetView` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraGetView {
            /// Camera view state
            pub view: CameraViewState
        }

        /// The response from the `DefaultCameraSetView` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraSetView {}

        /// The response from the `DefaultCameraZoom` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraZoom {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `ZoomToFit` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ZoomToFit {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `OrientToFace` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct OrientToFace {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `ViewIsometric` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ViewIsometric {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `GetNumObjects` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct GetNumObjects {
            /// The number of objects in the scene.
            pub num_objects: u32,
        }

        /// The response from the `MakeOffsetPath` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MakeOffsetPath {
            /// If the offset path splits into multiple paths, this will contain the UUIDs of the
            /// new paths.
            /// If the offset path remains as a single path, this will be empty, and the resulting ID
            /// of the (single) new path will be the ID of the `MakeOffsetPath` command.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `SetObjectTransform` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetObjectTransform {}

        /// The response from the `AddHoleFromOffset` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct AddHoleFromOffset {
            /// If the offset path splits into multiple paths, this will contain the UUIDs of the
            /// new paths.
            /// If the offset path remains as a single path, this will be empty, and the resulting ID
            /// of the (single) new path will be the ID of the `AddHoleFromOffset` command.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `DefaultCameraFocusOn` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct DefaultCameraFocusOn { }

        /// The response from the `SelectGet` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectGet {
            /// The UUIDs of the selected entities.
            pub entity_ids: Vec<Uuid>,
        }

        /// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
        /// This includes the opposite and adjacent faces and edges.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetAdjacencyInfo {
            /// Details of each edge.
            pub edges: Vec<AdjacencyInfo>,
        }

        /// The response from the `Solid3dGetAllEdgeFaces` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetAllEdgeFaces {
            /// The UUIDs of the faces.
            pub faces: Vec<Uuid>,
        }

        /// The response from the `Solid3dFlip` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dFlip {
        }

        /// The response from the `Solid3dFlipFace` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dFlipFace {
        }

        /// The response from the `Solid3dGetAllOppositeEdges` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetAllOppositeEdges {
            /// The UUIDs of the edges.
            pub edges: Vec<Uuid>,
        }

        /// The response from the `Solid3dGetOppositeEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetOppositeEdge {
            /// The UUID of the edge.
            pub edge: Uuid,
        }

        /// The response from the `Solid3dGetNextAdjacentEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetNextAdjacentEdge {
            /// The UUID of the edge.
            pub edge: Option<Uuid>,
        }

        /// The response from the `Solid3dGetPrevAdjacentEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetPrevAdjacentEdge {
            /// The UUID of the edge.
            pub edge: Option<Uuid>,
        }

        /// The response from the `Solid3DGetCommonEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetCommonEdge {
            /// The UUID of the common edge, if any.
            pub edge: Option<Uuid>,
        }

        /// The response from the `GetEntityType` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct GetEntityType {
            /// The type of the entity.
            pub entity_type: EntityType,
        }

        /// The response from the `SceneGetEntityIds` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SceneGetEntityIds {
            /// The ids of the requested entities.
            pub entity_ids: Vec<Vec<Uuid>>,
        }

        /// The response from the `CurveGetControlPoints` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CurveGetControlPoints {
            /// Control points in the curve.
            pub control_points: Vec<Point3d<f64>>,
        }

        /// The response from the `ProjectEntityToPlane` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ProjectEntityToPlane {
            /// Projected points.
            pub projected_points: Vec<Point3d<f64>>,
        }

        /// The response from the `ProjectPointsToPlane` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ProjectPointsToPlane {
            /// Projected points.
            pub projected_points: Vec<Point3d<f64>>,
        }

        /// The response from the `CurveGetType` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, Eq, PartialEq, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CurveGetType {
            /// Curve type
            pub curve_type: CurveType,
        }

        /// The response from the `MouseClick` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct MouseClick {
            /// Entities that are modified.
            pub entities_modified: Vec<Uuid>,
            /// Entities that are selected.
            pub entities_selected: Vec<Uuid>,
        }

        /// The response from the `TakeSnapshot` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct TakeSnapshot {
            /// Contents of the image.
            pub contents: Base64Data,
        }

        /// The response from the `PathGetInfo` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathGetInfo {
            /// All segments in the path, in the order they were added.
            pub segments: Vec<PathSegmentInfo>,
        }

        /// Info about a path segment
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathSegmentInfo {
            /// Which command created this path?
            /// This field is absent if the path command is not actually creating a path segment,
            /// e.g. moving the pen doesn't create a path segment.
            pub command_id: Option<ModelingCmdId>,
            /// What is the path segment?
            pub command: PathCommand,
            ///Whether or not this segment is a relative offset
            pub relative: bool,
        }

        /// The response from the `PathGetCurveUuidsForVertices` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathGetCurveUuidsForVertices {
            /// The UUIDs of the curve entities.
            pub curve_ids: Vec<Uuid>,
        }

        /// The response from the `PathGetCurveUuid` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathGetCurveUuid {
            /// The UUID of the curve entity.
            pub curve_id: Uuid,
        }

        /// The response from the `PathGetVertexUuids` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathGetVertexUuids {
            /// The UUIDs of the vertex entities.
            pub vertex_ids: Vec<Uuid>,
        }

        /// The response from the `PathGetSketchTargetUuid` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PathGetSketchTargetUuid {
            /// The UUID of the sketch target.
            pub target_id: Option<Uuid>,
        }

        /// Endpoints of a curve
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CurveGetEndPoints {
            /// Start
            pub start: Point3d<LengthUnit>,
            /// End
            pub end: Point3d<LengthUnit>,
        }

        /// Surface-local planar axes (if available)
        #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct FaceIsPlanar {
            /// plane's origin
            pub origin: Option<Point3d<LengthUnit>>,

            /// plane's local x-axis
            pub x_axis: Option<Point3d<f64>>,

            /// plane's local y-axis
            pub y_axis: Option<Point3d<f64>>,

            /// plane's local z-axis (normal)
            pub z_axis: Option<Point3d<f64>>,
        }

        /// The 3D position on the surface that was evaluated
        #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct FaceGetPosition {
            /// The 3D position on the surface that was evaluated
            pub pos: Point3d<LengthUnit>,
        }

        /// The 3D center of mass on the surface
        #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct FaceGetCenter {
            /// The 3D position on the surface center of mass
            pub pos: Point3d<LengthUnit>,
        }

        /// The gradient (dFdu, dFdv) + normal vector on a brep face
        #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct FaceGetGradient {
            /// dFdu
            pub df_du: Point3d<f64>,

            /// dFdv
            pub df_dv: Point3d<f64>,

            /// Normal (||dFdu x dFdv||)
            pub normal: Point3d<f64>,
        }

        /// Corresponding coordinates of given window coordinates, intersected on given plane.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct PlaneIntersectAndProject {
            /// Corresponding coordinates of given window coordinates, intersected on given plane.
            pub plane_coordinates: Option<Point2d<LengthUnit>>,
        }

        /// Data from importing the files
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput, Builder)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ImportFiles {
            /// ID of the imported 3D models within the scene.
            pub object_id: Uuid,
        }

        /// Data from importing the files
        #[derive(Debug, Eq, PartialEq, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ImportedGeometry {
            /// ID of the imported 3D models within the scene.
            pub id: Uuid,
            /// The original file paths that held the geometry.
            pub value: Vec<String>,
        }

        /// The mass response.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Mass {
            /// The mass.
            pub mass: f64,
            /// The output unit for the mass.
            pub output_unit: units::UnitMass,
        }

        /// The volume response.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Volume {
            /// The volume.
            pub volume: f64,
            /// The output unit for the volume.
            pub output_unit: units::UnitVolume,
        }

        /// The density response.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Density {
            /// The density.
            pub density: f64,
            /// The output unit for the density.
            pub output_unit: units::UnitDensity,
        }

        /// The surface area response.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SurfaceArea {
            /// The surface area.
            pub surface_area: f64,
            /// The output unit for the surface area.
            pub output_unit: units::UnitArea,
        }

        /// The center of mass response.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CenterOfMass {
            /// The center of mass.
            pub center_of_mass: Point3d<f64>,
            /// The output unit for the center of mass.
            pub output_unit: units::UnitLength,
        }

        /// The plane for sketch mode.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct GetSketchModePlane {
            /// The origin.
            pub origin: Point3d<LengthUnit>,
            /// The x axis.
            pub x_axis: Point3d<f64>,
            /// The y axis.
            pub y_axis: Point3d<f64>,
            /// The z axis (normal).
            pub z_axis: Point3d<f64>,
        }

        /// The response from the `EntitiesGetDistance` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityGetDistance {
            /// The minimum distance between the input entities.
            pub min_distance: LengthUnit,
            /// The maximum distance between the input entities.
            pub max_distance: LengthUnit,
        }

        /// Faces and edges id info (most used in identifying geometry in patterned and mirrored objects).
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct FaceEdgeInfo {
            /// The UUID of the object.
            pub object_id: Uuid,
            /// The faces of each object.
            pub faces: Vec<Uuid>,
            /// The edges of each object.
            pub edges: Vec<Uuid>,
        }

        /// A list of faces for a specific edge.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EdgeInfo {
            /// The UUID of the id.
            pub edge_id: Uuid,
            /// The faces of each edge.
            pub faces: Vec<Uuid>,
        }

        /// The response from the `EntityClone` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityClone {
            /// The Face and Edge Ids of the cloned entity.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityLinearPatternTransform` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityLinearPatternTransform {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityLinearPattern` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityLinearPattern {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityCircularPattern` command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput, Default)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityCircularPattern {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityMirror` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMirror {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityMirrorAcross` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMirrorAcross {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityMirrorAcrossEdge` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMirrorAcrossEdge {
            /// The Face, edge, and entity ids of the patterned entities.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub entity_face_edge_ids: Vec<FaceEdgeInfo>,
        }

        /// The response from the `EntityMakeHelix` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMakeHelix {
        }

        /// The response from the `EntityMakeHelixFromParams` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMakeHelixFromParams {
        }

        /// The response from the `EntityMakeHelixFromEdge` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct EntityMakeHelixFromEdge {
        }

        /// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct Solid3dGetExtrusionFaceInfo {
            /// Details of each face.
            pub faces: Vec<ExtrusionFaceInfo>,
        }

        /// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ExtrusionFaceInfo {
            /// Path component (curve) UUID.
            pub curve_id: Option<Uuid>,

            /// Face uuid.
            pub face_id: Option<Uuid>,

            /// Whether or not this extrusion face is a top/bottom cap face or not.
            /// Note that top/bottom cap faces will not have associated curve IDs.
            pub cap: ExtrusionFaceCapType,
        }

        /// Struct to contain the edge information of a wall of an extrude/rotate/loft/sweep.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ComplementaryEdges {
            /// The opposite edge has no common vertices with the original edge. A wall may not
            /// have an opposite edge (i.e. a revolve that touches the axis of rotation).
            pub opposite_id: Option<Uuid>,
            /// Every edge that shared one common vertex with the original edge.
            pub adjacent_ids: Vec<Uuid>,
        }


        /// Edge info struct (useful for maintaining mappings between edges and faces and
        /// adjacent/opposite edges).
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct AdjacencyInfo {
            /// Original edge id and face info.
            #[serde(default, skip_serializing_if = "Option::is_none")]
            pub original_info: Option<EdgeInfo>,
            /// Opposite edge and face info.
            #[serde(default, skip_serializing_if = "Option::is_none")]
            pub opposite_info: Option<EdgeInfo>,
            /// Adjacent edge and face info.
            #[serde(default, skip_serializing_if = "Option::is_none")]
            pub adjacent_info: Option<EdgeInfo>,
        }

        /// The response from the 'SetGridReferencePlane'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetGridReferencePlane {}

        /// The response from the 'BooleanUnion'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct BooleanUnion {
            /// If the operation produced just one solid, then its ID will be the
            /// ID of the modeling command request.
            /// But if any extra solids are produced, then their IDs will be included
            /// here.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub extra_solid_ids: Vec<Uuid>,
            /// If the operation involved any intersecting solids.
            #[serde(default = "bool_true", skip_serializing_if = "super::is_true")]
            pub any_intersections: bool,
        }

        /// The response from the 'BooleanIntersection'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct BooleanIntersection {
            /// If the operation produced just one solid, then its ID will be the
            /// ID of the modeling command request.
            /// But if any extra solids are produced, then their IDs will be included
            /// here.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub extra_solid_ids: Vec<Uuid>,
            /// If the operation involved any intersecting solids.
            #[serde(default = "bool_true", skip_serializing_if = "super::is_true")]
            pub any_intersections: bool,
        }

        /// The response from the 'BooleanSubtract'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct BooleanSubtract {
            /// If the operation produced just one solid, then its ID will be the
            /// ID of the modeling command request.
            /// But if any extra solids are produced, then their IDs will be included
            /// here.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub extra_solid_ids: Vec<Uuid>,
            /// If the operation involved any intersecting solids.
            #[serde(default = "bool_true", skip_serializing_if = "super::is_true")]
            pub any_intersections: bool,
        }

        /// The response from the 'BooleanImprint'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct BooleanImprint {
            /// If the operation produced just one body, then its ID will be the
            /// ID of the modeling command request.
            /// But if any extra bodies are produced, then their IDs will be included
            /// here.
            #[serde(default, skip_serializing_if = "Vec::is_empty")]
            pub extra_solid_ids: Vec<Uuid>,
            /// If the operation involved any intersecting solids.
            #[serde(default = "bool_true", skip_serializing_if = "super::is_true")]
            pub any_intersections: bool,
        }

        /// The response from the 'SetGridScale'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetGridScale {}

        /// The response from the 'SetGridScale'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetGridAutoScale {}

        /// The response from the 'SetOrderIndependentTransparency'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SetOrderIndependentTransparency {
            /// Is it now enabled, or disabled?
            pub enabled: bool,
        }

        /// The response from the 'CreateRegion'.
        /// The region should have an ID taken from the ID of the
        /// 'CreateRegion' modeling command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CreateRegion {
            /// a mapping from the curves within this region to the source component segment curves they were split from
            pub region_mapping: HashMap<Uuid, Uuid>,
        }

        /// The response from the 'CreateRegionFromQueryPoint'.
        /// The region should have an ID taken from the ID of the
        /// 'CreateRegionFromQueryPoint' modeling command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct CreateRegionFromQueryPoint {
            /// a mapping from the curves within this region to the source component segment curves they were split from
            pub region_mapping: HashMap<Uuid, Uuid>,
        }

        /// The response from 'RegionGetQueryPoint' modeling command.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct RegionGetQueryPoint {
            ///A point that is inside of the queried region, in the same coordinate frame as the sketch itself
            pub query_point: Point2d<LengthUnit>,
        }

        /// The response from the 'SelectRegionFromPoint'.
        /// If there are multiple ways to construct this region, this chooses arbitrarily.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct SelectRegionFromPoint {
            /// The region the user clicked on.
            /// If they clicked an open space which isn't a region,
            /// this returns None.
            pub region: Option<crate::shared::SelectedRegion>,
        }

        /// The response from the 'BoundingBox'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct BoundingBox {
            /// Center of the box.
            pub center: Point3d<f64>,
            /// Dimensions of the box along each axis.
            pub dimensions: Point3d<f64>,
        }

        /// The response from the 'OffsetSurface'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        pub struct OffsetSurface {
        }

        /// The response from the 'ClosestEdge'.
        #[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(not(feature = "unstable_exhaustive"), non_exhaustive)]
        pub struct ClosestEdge {
            /// The ID of the edge closest to the point given in the request.
            /// If there are no edges in the scene, returns None.
            pub edge_id: Option<Uuid>,
        }
    }
}