-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.ts
More file actions
11011 lines (10474 loc) · 307 KB
/
models.ts
File metadata and controls
11011 lines (10474 loc) · 307 KB
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
export type AccountProvider =
| 'apple'
| 'discord'
| 'google'
| 'github'
| 'microsoft'
| 'saml'
| 'tencent'
| 'test_provider'
export interface AddHoleFromOffset {
/**
* {
* "format": "uuid"
* }
*/
entity_ids: string[]
}
export interface AddOrgMember {
/** format:email, description:The email address of the user to add to the org. */
email: string
/** The organization role to give the user. */
role: UserOrgRole
}
export interface Address {
/** The city component. */
city?: string
/** The country component. This is a two-letter ISO country code. */
country: CountryCode
/** title:DateTime, format:date-time, description:The time and date the address was created. */
created_at: string
/** The unique identifier of the address. */
id: Uuid
/** The state component. */
state?: string
/** The first street component. */
street1?: string
/** The second street component. */
street2?: string
/** title:DateTime, format:date-time, description:The time and date the address was last updated. */
updated_at: string
/** The user ID that this address belongs to. */
user_id: Uuid
/** The zip component. */
zip?: string
}
export interface AddressDetails {
/** The city component. */
city?: string
/** The country component. This is a two-letter ISO country code. */
country: CountryCode
/** The state component. */
state?: string
/** The first street component. */
street1?: string
/** The second street component. */
street2?: string
/** The zip component. */
zip?: string
}
export interface AdjacencyInfo {
/** nullable:true, description:Adjacent edge and face info. */
adjacent_info?: EdgeInfo
/** nullable:true, description:Opposite edge and face info. */
opposite_info?: EdgeInfo
/** nullable:true, description:Original edge id and face info. */
original_info?: EdgeInfo
}
export interface Angle {
/** What unit is the measurement? */
unit: UnitAngle
/**
* {
* "format": "double",
* "description": "The size of the angle, measured in the chosen unit."
* }
*/
value: number
}
export interface AnnotationBasicDimension {
/** default:1, format:float, description:The scale of the dimension arrows. Defaults to 1. */
arrow_scale?: number
/** Basic dimension parameters (symbol and tolerance) */
dimension: AnnotationMbdBasicDimension
/**
* {
* "format": "uint32",
* "minimum": 0,
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
* }
*/
font_point_size: number
/** format:float, description:The scale of the font label in 3D space */
font_scale: number
/** format:uuid, description:Entity to measure the dimension from */
from_entity_id: string
/** Normalized position within the entity to position the dimension from */
from_entity_pos: Point2d
/** 2D Position offset of the annotation within the plane. */
offset: Point2d
/**
* {
* "format": "uuid",
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
* }
*/
plane_id: string
/**
* {
* "format": "uint32",
* "minimum": 0,
* "description": "Number of decimal places to use when displaying tolerance and dimension values"
* }
*/
precision: number
/** format:uuid, description:Entity to measure the dimension to */
to_entity_id: string
/** Normalized position within the entity to position the dimension to */
to_entity_pos: Point2d
}
export interface AnnotationFeatureControl {
/** nullable:true, description:MBD Control frame for geometric control */
control_frame?: AnnotationMbdControlFrame
/**
* {
* "nullable": true,
* "minLength": 1,
* "maxLength": 1,
* "description": "Set if this annotation is defining a datum"
* }
*/
defined_datum?: string
/** nullable:true, description:Basic dimensions */
dimension?: AnnotationMbdBasicDimension
/** format:uuid, description:Entity to place the annotation leader from */
entity_id: string
/** Normalized position within the entity to position the annotation leader from */
entity_pos: Point2d
/**
* {
* "format": "uint32",
* "minimum": 0,
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
* }
*/
font_point_size: number
/** format:float, description:The scale of the font label in 3D space */
font_scale: number
/**
* {
* "default": 1,
* "format": "float",
* "description": "The scale of the leader (dot or arrow). Defaults to 1."
* }
*/
leader_scale?: number
/** Type of leader to use */
leader_type: AnnotationLineEnd
/** 2D Position offset of the annotation within the plane. */
offset: Point2d
/**
* {
* "format": "uuid",
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
* }
*/
plane_id: string
/**
* {
* "format": "uint32",
* "minimum": 0,
* "description": "Number of decimal places to use when displaying tolerance and dimension values"
* }
*/
precision: number
/**
* {
* "nullable": true,
* "description": "Prefix text which will appear before the basic dimension"
* }
*/
prefix?: string
/**
* {
* "nullable": true,
* "description": "Suffix text which will appear after the basic dimension"
* }
*/
suffix?: string
}
export interface AnnotationFeatureTag {
/** format:uuid, description:Entity to place the annotation leader from */
entity_id: string
/** Normalized position within the entity to position the annotation leader from */
entity_pos: Point2d
/**
* {
* "format": "uint32",
* "minimum": 0,
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
* }
*/
font_point_size: number
/** format:float, description:The scale of the font label in 3D space */
font_scale: number
/** Tag key */
key: string
/**
* {
* "default": 1,
* "format": "float",
* "description": "The scale of the leader (dot or arrow). Defaults to 1."
* }
*/
leader_scale?: number
/** Type of leader to use */
leader_type: AnnotationLineEnd
/** 2D Position offset of the annotation within the plane. */
offset: Point2d
/**
* {
* "format": "uuid",
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
* }
*/
plane_id: string
/** Whether or not to display the key on the annotation label */
show_key: boolean
/** Tag value */
value: string
}
export type AnnotationLineEnd =
/** Annotation line end type */
'none' | 'arrow' | 'dot'
export interface AnnotationLineEndOptions {
/** How to style the end of the annotation line. */
end: AnnotationLineEnd
/** How to style the start of the annotation line. */
start: AnnotationLineEnd
}
export interface AnnotationMbdBasicDimension {
/**
* {
* "nullable": true,
* "format": "double",
* "description": "The explicitly defined dimension. Only required if the measurement is not automatically calculated."
* }
*/
dimension?: number
/**
* {
* "nullable": true,
* "description": "Type of symbol to use for this dimension (if required)"
* }
*/
symbol?: MbdSymbol
/** format:double, description:The tolerance of the dimension */
tolerance: number
}
export interface AnnotationMbdControlFrame {
/**
* {
* "nullable": true,
* "description": "Diameter symbol (if required) whether the geometric control requires a cylindrical or diameter tolerance"
* }
*/
diameter_symbol?: MbdSymbol
/** nullable:true, description:Feature of size or tolerance modifiers */
modifier?: MbdSymbol
/**
* {
* "nullable": true,
* "minLength": 1,
* "maxLength": 1,
* "description": "Primary datum"
* }
*/
primary_datum?: string
/**
* {
* "nullable": true,
* "minLength": 1,
* "maxLength": 1,
* "description": "Secondary datum"
* }
*/
secondary_datum?: string
/** Geometric symbol, the type of geometric control specified */
symbol: MbdSymbol
/**
* {
* "nullable": true,
* "minLength": 1,
* "maxLength": 1,
* "description": "Tertiary datum"
* }
*/
tertiary_datum?: string
/**
* {
* "format": "double",
* "description": "Tolerance value - the total tolerance of the geometric control. The unit is based on the drawing standard."
* }
*/
tolerance: number
}
export interface AnnotationOptions {
/** nullable:true, description:Color to render the annotation */
color?: Color
/** nullable:true, description:Set as an MBD measured basic dimension annotation */
dimension?: AnnotationBasicDimension
/** nullable:true, description:Set as an MBD Feature control annotation */
feature_control?: AnnotationFeatureControl
/** nullable:true, description:Set as a feature tag annotation */
feature_tag?: AnnotationFeatureTag
/** nullable:true, description:How to style the start and end of the line */
line_ends?: AnnotationLineEndOptions
/** nullable:true, format:float, description:Width of the annotation's line */
line_width?: number
/** nullable:true, description:Position to put the annotation */
position?: Point3d
/** nullable:true, description:Text displayed on the annotation */
text?: AnnotationTextOptions
}
export type AnnotationTextAlignmentX =
/** Horizontal Text alignment */
'left' | 'center' | 'right'
export type AnnotationTextAlignmentY =
/** Vertical Text alignment */
'bottom' | 'center' | 'top'
export interface AnnotationTextOptions {
/** format:uint32, minimum:0, description:Text font's point size */
point_size: number
/** Text displayed on the annotation */
text: string
/** Alignment along the X axis */
x: AnnotationTextAlignmentX
/** Alignment along the Y axis */
y: AnnotationTextAlignmentY
}
export type AnnotationType = 't2d' | 't3d'
export interface ApiCallQueryGroup {
/**
* {
* "format": "int64"
* }
*/
count: number
query: string
}
export type ApiCallQueryGroupBy =
| 'email'
| 'method'
| 'endpoint'
| 'user_id'
| 'origin'
| 'ip_address'
export type ApiCallStatus =
| 'queued'
| 'uploaded'
| 'in_progress'
| 'completed'
| 'failed'
export interface ApiCallWithPrice {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The date and time the API call completed billing."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The date and time the API call was created. */
created_at: string
/**
* {
* "nullable": true,
* "title": "int64",
* "format": "duration",
* "description": "The duration of the API call."
* }
*/
duration?: number
/** format:email, description:The user's email address. */
email?: string
/** The endpoint requested by the API call. */
endpoint?: string
/** The unique identifier for the API call. */
id: Uuid
/**
* {
* "title": "String",
* "default": "",
* "format": "ip",
* "description": "The ip address of the origin."
* }
*/
ip_address?: string
/** The HTTP method requested by the API call. */
method: Method
/**
* {
* "nullable": true,
* "format": "int32",
* "description": "The number of minutes the API call was billed for."
* }
*/
minutes?: number
/**
* {
* "nullable": true,
* "description": "The organization ID of the API call if it is billable through an organization."
* }
*/
org_id?: Uuid
/** The origin of the API call. */
origin?: string
/**
* {
* "nullable": true,
* "title": "double",
* "format": "money-usd",
* "description": "The price of the API call."
* }
*/
price?: number
/** The request query params sent by the API call. */
request_query_params?: string
/**
* {
* "nullable": true,
* "format": "int32",
* "description": "The number of seconds the API call was billed for."
* }
*/
seconds?: number
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The date and time the API call started billing."
* }
*/
started_at?: string
/**
* {
* "nullable": true,
* "title": "int32",
* "format": "int32",
* "description": "The status code returned by the API call."
* }
*/
status_code?: number
/** The Stripe invoice item ID of the API call if it is billable. */
stripe_invoice_item_id?: string
/** The API token that made the API call. */
token: Uuid
/** title:DateTime, format:date-time, description:The date and time the API call was last updated. */
updated_at: string
/** The user agent of the request. */
user_agent: string
/** The ID of the user that made the API call. */
user_id: Uuid
}
export interface ApiCallWithPriceResultsPage {
/** list of items on this page of results */
items: ApiCallWithPrice[]
/**
* {
* "nullable": true,
* "description": "token used to fetch the next page of results (if any)"
* }
*/
next_page?: string
}
export type ApiEndpoint = 'modeling' | 'ml' | 'file'
export interface ApiError {
/** The error code. */
error_code: ErrorCode
/** The error message. */
message: string
}
export interface ApiToken {
/** title:DateTime, format:date-time, description:The date and time the API token was created. */
created_at: string
/** The unique identifier for the API token. */
id: Uuid
/** If the token is valid. We never delete API tokens, but we can mark them as invalid. We save them for ever to preserve the history of the API token. */
is_valid: boolean
/** nullable:true, description:An optional label for the API token. */
label?: string
/** The API token itself. */
token: ApiTokenUuid
/** title:DateTime, format:date-time, description:The date and time the API token was last updated. */
updated_at: string
/** The ID of the user that owns the API token. */
user_id: Uuid
}
export interface ApiTokenResultsPage {
/** list of items on this page of results */
items: ApiToken[]
/**
* {
* "nullable": true,
* "description": "token used to fetch the next page of results (if any)"
* }
*/
next_page?: string
}
export type ApiTokenUuid =
/** An auth token. A uuid with a prefix of api- */
string
export interface AppClientInfo {
/** The URL for consent. */
url?: string
}
export interface AsyncApiCall {
/**
* {
* "default": 0,
* "format": "int16",
* "description": "The number of times we've attempted to process this job."
* }
*/
attempts?: number
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the async API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the async API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the async API call.
This is the same as the API call ID. */
id: Uuid
input?: string
output: unknown
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the async API call was started."
* }
*/
started_at?: string
/** The status of the async API call. */
status: ApiCallStatus
/** The type of async API call. */
type: AsyncApiCallType
/**
* {
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the async API call was last updated."
* }
*/
updated_at: string
/** The user ID of the user who created the async API call. */
user_id: Uuid
/** The worker node that is performing or performed the async API call. */
worker?: string
}
export type AsyncApiCallOutput =
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** The output format of the file conversion. */
output_format: FileExportFormat
/** nullable:true, description:The output format options of the file conversion. */
output_format_options?: OutputFormat3d
outputs?: {
[key: string]: /**
* {
* "title": "String",
* "format": "byte"
* }
*/
string
}
/** The source format of the file conversion. */
src_format: FileImportFormat
/** nullable:true, description:The source format options of the file conversion. */
src_format_options?: InputFormat3d
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'file_conversion'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/** nullable:true, description:The resulting center of mass. */
center_of_mass?: Point3d
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** The output unit for the center of mass. */
output_unit: UnitLength
/** The source format of the file. */
src_format: FileImportFormat
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'file_center_of_mass'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** nullable:true, format:double, description:The resulting mass. */
mass?: number
/** default:0, format:double, description:The material density as denoted by the user. */
material_density?: number
/** The material density unit. */
material_density_unit: UnitDensity
/** The output unit for the mass. */
output_unit: UnitMass
/** The source format of the file. */
src_format: FileImportFormat
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'file_mass'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** The output unit for the volume. */
output_unit: UnitVolume
/** The source format of the file. */
src_format: FileImportFormat
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'file_volume'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
/** nullable:true, format:double, description:The resulting volume. */
volume?: number
}
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, format:double, description:The resulting density. */
density?: number
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** default:0, format:double, description:The material mass as denoted by the user. */
material_mass?: number
/** The material mass unit. */
material_mass_unit: UnitMass
/** The output unit for the density. */
output_unit: UnitDensity
/** The source format of the file. */
src_format: FileImportFormat
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'file_density'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** The output unit for the surface area. */
output_unit: UnitArea
/** The source format of the file. */
src_format: FileImportFormat
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
/** nullable:true, format:double, description:The resulting surface area. */
surface_area?: number
type: 'file_surface_area'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/**
* {
* "nullable": true,
* "description": "The code for the model. This is optional but will be required in the future once we are at v1."
* }
*/
code?: string
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** The conversation ID Conversations group different prompts together. */
conversation_id: Uuid
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** nullable:true, description:Feedback from the user, if any. */
feedback?: MlFeedback
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** nullable:true, description:The version of kcl requested. */
kcl_version?: string
/** The model being used. */
model: TextToCadModel
/** The version of the model. */
model_version: string
/** The output format of the model. */
output_format: FileExportFormat
outputs?: {
[key: string]: /**
* {
* "title": "String",
* "format": "byte"
* }
*/
string
}
/** The prompt. */
prompt: string
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'text_to_cad'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/** The code for the new model. */
code: string
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** The conversation ID Conversations group different prompts together. */
conversation_id: Uuid
/** title:DateTime, format:date-time, description:The time and date the API call was created. */
created_at: string
/** nullable:true, description:The error the function returned, if any. */
error?: string
/** nullable:true, description:Feedback from the user, if any. */
feedback?: MlFeedback
/** The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid
/** The model being used. */
model: TextToCadModel
/** The version of the model. */
model_version: string
/** The original source code for the model, previous to the changes. */
original_source_code: string
/**
* {
* "nullable": true,
* "description": "The prompt for the overall changes. This is optional if you only want changes on specific source ranges."
* }
*/
prompt?: string
/** The source ranges the user suggested to change. */
source_ranges: SourceRangePrompt[]
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was started."
* }
*/
started_at?: string
/** The status of the API call. */
status: ApiCallStatus
type: 'text_to_cad_iteration'
/** title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string
/** The user ID of the user who created the API call. */
user_id: Uuid
}
| {
/**
* {
* "nullable": true,
* "title": "DateTime",
* "format": "date-time",
* "description": "The time and date the API call was completed."
* }
*/
completed_at?: string
/** The conversation ID Conversations group different prompts together. */