kittycad_modeling_cmds/
ok_response.rs

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
use kittycad_modeling_cmds_macros::define_ok_modeling_cmd_response_enum;
use serde::{Deserialize, Serialize};

impl crate::ModelingCmdOutput for () {}

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 uuid::Uuid;
        use crate::shared::CameraSettings;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        /// The response from the `Export` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct Export {
            /// The files that were exported.
            pub files: Vec<ExportFile>,
        }
        /// The response from the `SelectWithPoint` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct EntityGetChildUuid {
            /// The UUID of the child entity.
            pub entity_id: Uuid,
        }
        /// The response from the `EntityGetNumChildren` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityGetNumChildren {
            /// The number of children the entity has.
            pub num: u32,
        }
        /// The response from the `EntityGetParentId` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityGetParentId {
            /// The UUID of the parent entity.
            pub entity_id: Uuid,
        }
        /// The response from the `EntityGetAllChildUuids` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, ModelingCmdOutput, Clone)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct CameraDragMove {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `CameraDragEnd` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct CameraDragEnd {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `DefaultCameraGetSettings` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct DefaultCameraGetSettings {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `DefaultCameraZoom` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct DefaultCameraZoom {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `ZoomToFit` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct ZoomToFit {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `ViewIsometric` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct ViewIsometric {
            /// Camera settings
            pub settings: CameraSettings
        }

        /// The response from the `GetNumObjects` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct SetObjectTransform {}

        /// The response from the `AddHoleFromOffset` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct DefaultCameraFocusOn { }

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

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

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

        /// The response from the `Solid3dGetOppositeEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct Solid3dGetOppositeEdge {
            /// The UUID of the edge.
            pub edge: Uuid,
        }

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

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

        /// The response from the `Solid3DGetCommonEdge` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct GetEntityType {
            /// The type of the entity.
            pub entity_type: EntityType,
        }
        /// The response from the `CurveGetControlPoints` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct ProjectEntityToPlane {
            /// Projected points.
            pub projected_points: Vec<Point3d<f64>>,
        }

        /// The response from the `ProjectPointsToPlane` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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)]
        pub struct CurveGetType {
            /// Curve type
            pub curve_type: CurveType,
        }

        /// The response from the `MouseClick` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct TakeSnapshot {
            /// Contents of the image.
            pub contents: Base64Data,
        }

        /// The response from the `PathGetInfo` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct PathGetCurveUuid {
            /// The UUID of the curve entity.
            pub curve_id: Uuid,
        }

        /// The response from the `PathGetVertexUuids` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        pub struct PathGetSketchTargetUuid {
            /// The UUID of the sketch target.
            pub target_id: Option<Uuid>,
        }

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

        /// Surface-local planar axes (if available)
        #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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)]
        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, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        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, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        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, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        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, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        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, JsonSchema, ModelingCmdOutput)]
        #[cfg_attr(feature = "tabled", derive(tabled::Tabled))]
        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, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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,
        }

        /// The response from the `EntityLinearPatternTransform` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityLinearPatternTransform {
            /// The UUIDs of the entities that were created.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `EntityLinearPattern` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityLinearPattern {
            /// The UUIDs of the entities that were created.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `EntityCircularPattern` command.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityCircularPattern {
            /// The UUIDs of the entities that were created.
            pub entity_ids: Vec<Uuid>,
        }

        /// The response from the `EntityMirror` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityMirror {
            /// The UUIDs of the entities that were created.
            pub entity_ids: Vec<Uuid>
        }

        /// The response from the `EntityMirrorAcrossEdge` endpoint.
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        pub struct EntityMirrorAcrossEdge {
            /// The UUIDs of the entities that were created.
            pub entity_ids: Vec<Uuid>
        }

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

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

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

        /// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
        #[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
        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, JsonSchema, ModelingCmdOutput)]
        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,
        }

    }
}