-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodels.ts
More file actions
6370 lines (5952 loc) · 209 KB
/
models.ts
File metadata and controls
6370 lines (5952 loc) · 209 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_type =
| 'apple'
| 'discord'
| 'google'
| 'github'
| 'microsoft'
| 'saml'
| 'tencent';
export interface AddHoleFromOffset_type {
/*{
"format": "uuid"
}*/
entity_ids: string[];
}
export interface AddOrgMember_type {
/* format:email, description:The email address of the user to add to the org. */
email: string;
role: UserOrgRole_type /* The organization role to give the user. */;
}
export interface AddressDetails_type {
city: string /* The city component. */;
country: CountryCode_type /* The country component. This is a two-letter ISO country code. */;
state: string /* The state component. */;
street1: string /* The first street component. */;
street2: string /* The second street component. */;
zip: string /* The zip component. */;
}
export interface Angle_type {
unit: UnitAngle_type /* What unit is the measurement? */;
/*{
"format": "double",
"description": "The size of the angle, measured in the chosen unit."
}*/
value: number;
}
export type AnnotationLineEnd_type =
/* Annotation line end type */
'none' | 'arrow';
export interface AnnotationLineEndOptions_type {
end: AnnotationLineEnd_type /* How to style the end of the annotation line. */;
start: AnnotationLineEnd_type /* How to style the start of the annotation line. */;
}
export interface AnnotationOptions_type {
/* nullable:true, description:Color to render the annotation */
color?: Color_type;
/* nullable:true, description:How to style the start and end of the line */
line_ends?: AnnotationLineEndOptions_type;
/* nullable:true, format:float, description:Width of the annotation's line */
line_width?: number;
/* nullable:true, description:Position to put the annotation */
position?: Point3d_type;
/* nullable:true, description:Text displayed on the annotation */
text?: AnnotationTextOptions_type;
}
export type AnnotationTextAlignmentX_type =
/* Horizontal Text alignment */
'left' | 'center' | 'right';
export type AnnotationTextAlignmentY_type =
/* Vertical Text alignment */
'bottom' | 'center' | 'top';
export interface AnnotationTextOptions_type {
/* format:uint32, minimum:0, description:Text font's point size */
point_size: number;
text: string /* Text displayed on the annotation */;
x: AnnotationTextAlignmentX_type /* Alignment along the X axis */;
y: AnnotationTextAlignmentY_type /* Alignment along the Y axis */;
}
export type AnnotationType_type = 't2d' | 't3d';
export interface ApiCallQueryGroup_type {
/*{
"format": "int64"
}*/
count: number;
query: string;
}
export type ApiCallQueryGroupBy_type =
| 'email'
| 'method'
| 'endpoint'
| 'user_id'
| 'origin'
| 'ip_address';
export type ApiCallStatus_type =
| 'queued'
| 'uploaded'
| 'in_progress'
| 'completed'
| 'failed';
export interface ApiCallWithPrice_type {
/*{
"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;
endpoint: string /* The endpoint requested by the API call. */;
id: Uuid_type /* The unique identifier for the API call. */;
/*{
"title": "String",
"default": "",
"format": "ip",
"description": "The ip address of the origin."
}*/
ip_address: string;
method: Method_type /* The HTTP method requested by the API call. */;
/*{
"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_type;
origin: string /* The origin of the API call. */;
/*{
"nullable": true,
"title": "double",
"format": "money-usd",
"description": "The price of the API call."
}*/
price?: number;
/* nullable:true, description:The request body sent by the API call. */
request_body?: string;
request_query_params: string /* The request query params sent by the API call. */;
/*{
"nullable": true,
"description": "The response body returned by the API call. We do not store this information if it is above a certain size."
}*/
response_body?: string;
/*{
"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;
stripe_invoice_item_id: string /* The Stripe invoice item ID of the API call if it is billable. */;
token: Uuid_type /* The API token that made the API call. */;
/* title:DateTime, format:date-time, description:The date and time the API call was last updated. */
updated_at: string;
user_agent: string /* The user agent of the request. */;
user_id: Uuid_type /* The ID of the user that made the API call. */;
}
export interface ApiCallWithPriceResultsPage_type {
items: ApiCallWithPrice_type[] /* list of items on this page of results */;
/*{
"nullable": true,
"description": "token used to fetch the next page of results (if any)"
}*/
next_page?: string;
}
export interface ApiError_type {
error_code: ErrorCode_type /* The error code. */;
message: string /* The error message. */;
}
export interface ApiToken_type {
/* title:DateTime, format:date-time, description:The date and time the API token was created. */
created_at: string;
id: Uuid_type /* The unique identifier for the API token. */;
is_valid: boolean /* 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. */;
/* nullable:true, description:An optional label for the API token. */
label?: string;
token: ApiTokenUuid_type /* The API token itself. */;
/* title:DateTime, format:date-time, description:The date and time the API token was last updated. */
updated_at: string;
user_id: Uuid_type /* The ID of the user that owns the API token. */;
}
export interface ApiTokenResultsPage_type {
items: ApiToken_type[] /* list of items on this page of results */;
/*{
"nullable": true,
"description": "token used to fetch the next page of results (if any)"
}*/
next_page?: string;
}
export type ApiTokenUuid_type =
string; /* An auth token. A uuid with a prefix of api- */
export interface AppClientInfo_type {
url: string /* The URL for consent. */;
}
export interface AsyncApiCall_type {
/*{
"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_type;
input: string;
output: any;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the async API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the async API call. */;
type: AsyncApiCallType_type /* The type of async API call. */;
/*{
"title": "DateTime",
"format": "date-time",
"description": "The time and date the async API call was last updated."
}*/
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the async API call. */;
worker: string /* The worker node that is performing or performed the async API call. */;
}
export type AsyncApiCallOutput_type =
| {
/*{
"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_type;
output_format: FileExportFormat_type /* The output format of the file conversion. */;
/* nullable:true, description:The output format options of the file conversion. */
output_format_options?: OutputFormat_type;
outputs: {
[key: string]: /*{
"title": "String",
"format": "byte"
}*/
string;
};
src_format: FileImportFormat_type /* The source format of the file conversion. */;
/* nullable:true, description:The source format options of the file conversion. */
src_format_options?: InputFormat_type;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'file_conversion';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
/* nullable:true, description:The resulting center of mass. */
center_of_mass?: Point3d_type;
/*{
"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_type;
output_unit: UnitLength_type /* The output unit for the center of mass. */;
src_format: FileImportFormat_type /* The source format of the file. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'file_center_of_mass';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
/*{
"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_type;
/* 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;
material_density_unit: UnitDensity_type /* The material density unit. */;
output_unit: UnitMass_type /* The output unit for the mass. */;
src_format: FileImportFormat_type /* The source format of the file. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'file_mass';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
/*{
"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_type;
output_unit: UnitVolume_type /* The output unit for the volume. */;
src_format: FileImportFormat_type /* The source format of the file. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'file_volume';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
/* 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_type;
/* default:0, format:double, description:The material mass as denoted by the user. */
material_mass: number;
material_mass_unit: UnitMass_type /* The material mass unit. */;
output_unit: UnitDensity_type /* The output unit for the density. */;
src_format: FileImportFormat_type /* The source format of the file. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'file_density';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
/*{
"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_type;
output_unit: UnitArea_type /* The output unit for the surface area. */;
src_format: FileImportFormat_type /* The source format of the file. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
/* 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;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
/*{
"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;
/* 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_type;
/* The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid_type;
model: TextToCadModel_type /* The model being used. */;
model_version: string /* The version of the model. */;
output_format: FileExportFormat_type /* The output format of the model. */;
outputs: {
[key: string]: /*{
"title": "String",
"format": "byte"
}*/
string;
};
prompt: string /* The prompt. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'text_to_cad';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
}
| {
code: string /* The code for the new model. */;
/*{
"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;
/* nullable:true, description:Feedback from the user, if any. */
feedback?: MlFeedback_type;
/* The unique identifier of the API call.
This is the same as the API call ID. */
id: Uuid_type;
model: TextToCadModel_type /* The model being used. */;
model_version: string /* The version of the model. */;
original_source_code: string /* The original source code for the model, previous to the changes. */;
/*{
"nullable": true,
"description": "The prompt for the overall changes. This is optional if you only want changes on specific source ranges."
}*/
prompt?: string;
source_ranges: SourceRangePrompt_type[] /* The source ranges the user suggested to change. */;
/*{
"nullable": true,
"title": "DateTime",
"format": "date-time",
"description": "The time and date the API call was started."
}*/
started_at?: string;
status: ApiCallStatus_type /* The status of the API call. */;
type: 'text_to_cad_iteration';
/* title:DateTime, format:date-time, description:The time and date the API call was last updated. */
updated_at: string;
user_id: Uuid_type /* The user ID of the user who created the API call. */;
};
export interface AsyncApiCallResultsPage_type {
items: AsyncApiCall_type[] /* list of items on this page of results */;
/*{
"nullable": true,
"description": "token used to fetch the next page of results (if any)"
}*/
next_page?: string;
}
export type AsyncApiCallType_type =
| 'file_conversion'
| 'file_volume'
| 'file_center_of_mass'
| 'file_mass'
| 'file_density'
| 'file_surface_area'
| 'text_to_cad'
| 'text_to_cad_iteration';
export interface AuthCallback_type {
code: string /* The authorization code. */;
/*{
"nullable": true,
"description": "For Apple only, a JSON web token containing the user’s identity information."
}*/
id_token?: string;
state: string /* The state that we had passed in through the user consent URL. */;
/*{
"nullable": true,
"description": "For Apple only, a JSON string containing the data requested in the scope property. The returned data is in the following format: `{ \"name\": { \"firstName\": string, \"lastName\": string }, \"email\": string }`"
}*/
user?: string;
}
export type Axis_type = 'y' | 'z';
export interface AxisDirectionPair_type {
axis: Axis_type /* Axis specifier. */;
direction: Direction_type /* Specifies which direction the axis is pointing. */;
}
export type BatchResponse_type =
| {
response: OkModelingCmdResponse_type /* Response to the modeling command. */;
}
| {
errors: ApiError_type[] /* Errors that occurred during the modeling command. */;
};
export interface BillingInfo_type {
/* nullable:true, description:The address of the customer. */
address?: AddressDetails_type;
name: string /* The name of the customer. */;
/*{
"title": "String",
"default": "",
"format": "phone",
"description": "The phone for the customer."
}*/
phone: string;
}
export type BlockReason_type =
| 'missing_payment_method'
| 'payment_method_failed';
export interface CacheMetadata_type {
ok: boolean /* If the cache returned an ok response from ping. */;
}
export interface CameraDragEnd_type {
settings: CameraSettings_type /* Camera settings */;
}
export type CameraDragInteractionType_type =
| 'pan'
| 'rotate'
| 'rotatetrackball'
| 'zoom';
export interface CameraDragMove_type {
settings: CameraSettings_type /* Camera settings */;
}
export interface CameraDragStart_type {} /* Empty object */
export type CameraMovement_type = 'vantage' | 'none';
export interface CameraSettings_type {
center: Point3d_type /* Camera's look-at center (center-pos gives viewing vector) */;
/* nullable:true, format:float, description:Camera's field-of-view angle (if ortho is false) */
fov_y?: number;
orientation: Point4d_type /* The Camera's orientation (in the form of a quaternion) */;
ortho: boolean /* Whether or not the camera is in ortho mode */;
/*{
"nullable": true,
"format": "float",
"description": "The camera's ortho scale (derived from viewing distance if ortho is true)"
}*/
ortho_scale?: number;
pos: Point3d_type /* Camera position (vantage) */;
up: Point3d_type /* Camera's world-space up vector */;
}
export interface CardDetails_type {
/* Card brand.
Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. */
brand: string;
/* default:{}, description:Checks on Card address and CVC if provided. */
checks: PaymentMethodCardChecks_type;
country: string /* Two-letter ISO code representing the country of the card. */;
/*{
"default": 0,
"format": "int64",
"description": "Two-digit number representing the card's expiration month."
}*/
exp_month: number;
/*{
"default": 0,
"format": "int64",
"description": "Four-digit number representing the card's expiration year."
}*/
exp_year: number;
fingerprint: string /* Uniquely identifies this particular card number. */;
/* Card funding type.
Can be `credit`, `debit`, `prepaid`, or `unknown`. */
funding: string;
last4: string /* The last four digits of the card. */;
}
export interface CenterOfMass_type {
center_of_mass: Point3d_type /* The center of mass. */;
output_unit: UnitLength_type /* The output unit for the center of mass. */;
}
export interface ClientMetrics_type {
/*{
"format": "uint64",
"minimum": 0,
"description": "Counter of the number of WebRTC frames that the client has decoded during this session."
}*/
rtc_frames_decoded: number;
/*{
"format": "uint32",
"minimum": 0,
"description": "Counter of the number of WebRTC frames the client has dropped during this session."
}*/
rtc_frames_dropped: number;
/*{
"format": "uint8",
"minimum": 0,
"description": "Current number of frames being rendered per second. A good target is 60 frames per second, but it can fluctuate depending on network conditions."
}*/
rtc_frames_per_second: number;
/*{
"format": "uint64",
"minimum": 0,
"description": "Counter of the number of WebRTC frames that the client has received during this session."
}*/
rtc_frames_received: number;
/*{
"format": "uint32",
"minimum": 0,
"description": "Number of times the WebRTC playback has frozen. This is usually due to network conditions."
}*/
rtc_freeze_count: number;
/*{
"format": "float",
"description": "Amount of \"jitter\" in the WebRTC session. Network latency is the time it takes a packet to traverse the network. The amount that the latency varies is the jitter. Video latency is the time it takes to render a frame sent by the server (including network latency). A low jitter means the video latency can be reduced without impacting smooth playback. High jitter means clients will increase video latency to ensure smooth playback."
}*/
rtc_jitter_sec: number;
/*{
"format": "uint32",
"minimum": 0,
"description": "Number of \"key frames\" decoded in the underlying h.264 stream. A key frame is an expensive (bandwidth-wise) \"full image\" of the video frame. Data after the keyframe become -- effectively -- \"diff\" operations on that key frame. The Engine will only send a keyframe if required, which is an indication that some of the \"diffs\" have been lost, usually an indication of poor network conditions. We like this metric to understand times when the connection has had to recover."
}*/
rtc_keyframes_decoded: number;
/*{
"format": "float",
"description": "Number of seconds of frozen video the user has been subjected to."
}*/
rtc_total_freezes_duration_sec: number;
}
export interface ClosePath_type {
/*{
"format": "uuid",
"description": "The UUID of the lone face of the resulting solid2D."
}*/
face_id: string;
}
export interface Cluster_type {
/* nullable:true, description:The IP address of the cluster. */
addr?: string;
/* default:0, format:int64, description:The auth timeout of the cluster. */
auth_timeout: number;
/* default:0, format:int64, description:The port of the cluster. */
cluster_port: number;
/* default:, description:The name of the cluster. */
name: string;
/* default:0, format:int64, description:The TLS timeout for the cluster. */
tls_timeout: number;
urls: string[];
}
export type CodeLanguage_type = 'go' | 'python' | 'node';
export interface CodeOutput_type {
output_files: OutputFile_type[] /* The contents of the files requested if they were passed. */;
/* default:, description:The stderr of the code. */
stderr: string;
/* default:, description:The stdout of the code. */
stdout: string;
}
export interface Color_type {
/* format:float, description:Alpha */
a: number;
/* format:float, description:Blue */
b: number;
/* format:float, description:Green */
g: number;
/* format:float, description:Red */
r: number;
}
export interface ComponentTransform_type {
/*{
"nullable": true,
"description": "Rotate component of the transform. The rotation is specified as an axis and an angle (xyz are the components of the axis, w is the angle in degrees)."
}*/
rotate_angle_axis?: TransformByForPoint4d_type;
/*{
"nullable": true,
"description": "Rotate component of the transform. The rotation is specified as a roll, pitch, yaw."
}*/
rotate_rpy?: TransformByForPoint3d_type;
/* nullable:true, description:Scale component of the transform. */
scale?: TransformByForPoint3d_type;
/* nullable:true, description:Translate component of the transform. */
translate?: TransformByForPoint3d_type;
}
export interface Connection_type {
/* default:0, format:int64, description:The auth timeout of the server. */
auth_timeout: number;
/* default:{addr:null, auth_timeout:0, cluster_port:0, name:, tls_timeout:0, urls:[]}, description:Information about the cluster. */
cluster: Cluster_type;
/* format:date-time, description:The time the configuration was loaded. */
config_load_time: string;
/* default:0, format:int64, description:The number of connections to the server. */
connections: number;
/* default:0, format:int64, description:The CPU core usage of the server. */
cores: number;
/* default:0, format:double, description:The CPU usage of the server. */
cpu: number;
/* default:{auth_timeout:0, host:, name:, port:0, tls_timeout:0}, description:Information about the gateway. */
gateway: Gateway_type;
/* default:, description:The git commit. */
git_commit: string;
/* default:, description:The go version. */
go: string;
/* default:0, format:int64, description:`GOMAXPROCS` of the server. */
gomaxprocs: number;
/* format:ip, description:The host of the server. */
host: string;
/* default:, description:The http base path of the server. */
http_base_path: string;
/* default:, description:The http host of the server. */
http_host: string;
/* default:0, format:int64, description:The http port of the server. */
http_port: number;
http_req_stats: {
[key: string]: /*{
"format": "int64"
}*/
number;
};
/* default:0, format:int64, description:The https port of the server. */
https_port: number;
/* default:0, format:int64, description:The count of inbound bytes for the server. */
in_bytes: number;
/* default:0, format:int64, description:The number of inbound messages for the server. */
in_msgs: number;
/* default:{config:{domain:, max_memory:0, max_storage:0, store_dir:}, meta:{cluster_size:0, leader:, name:}, stats:{accounts:0, api:{errors:0, inflight:0, total:0}, ha_assets:0, memory:0, reserved_memory:0, reserved_store:0, store:0}}, description:Jetstream information. */
jetstream: Jetstream_type;
/* default:{auth_timeout:0, host:, port:0, tls_timeout:0}, description:Information about leaf nodes. */
leaf: LeafNode_type;
/* default:0, format:int64, description:The number of leaf nodes for the server. */
leafnodes: number;
/* default:0, format:int64, description:The max connections of the server. */
max_connections: number;
/* default:0, format:int64, description:The max control line of the server. */
max_control_line: number;
/* default:0, format:int64, description:The max payload of the server. */
max_payload: number;
/* default:0, format:int64, description:The max pending of the server. */
max_pending: number;
/* default:0, format:int64, description:The memory usage of the server. */
mem: number;
/* format:date-time, description:The time now. */
now: string;
/* default:0, format:int64, description:The count of outbound bytes for the server. */
out_bytes: number;
/* default:0, format:int64, description:The number of outbound messages for the server. */
out_msgs: number;
/* default:0, format:int64, description:The ping interval of the server. */
ping_interval: number;
/* default:0, format:int64, description:The ping max of the server. */
ping_max: number;
/* default:0, format:int64, description:The port of the server. */
port: number;
/* default:0, format:int64, description:The protocol version. */
proto: number;
/* default:0, format:int64, description:The number of remotes for the server. */
remotes: number;
/* default:0, format:int64, description:The number of routes for the server. */
routes: number;
/* default:, description:The server ID. */
server_id: string;
/* default:, description:The server name. */
server_name: string;
/* default:0, format:int64, description:The number of slow consumers for the server. */
slow_consumers: number;
/* format:date-time, description:When the server was started. */
start: string;
/* default:0, format:int64, description:The number of subscriptions for the server. */
subscriptions: number;
/* default:, description:The system account. */
system_account: string;
/* default:0, format:int64, description:The TLS timeout of the server. */
tls_timeout: number;
/* default:0, format:int64, description:The total number of connections to the server. */
total_connections: number;
/* default:, description:The uptime of the server. */
uptime: string;
/* default:, description:The version of the service. */
version: string;
/* default:0, format:int64, description:The write deadline of the server. */
write_deadline: number;
}
export type CountryCode_type =
string; /* An ISO-3166 alpha-2 country code. Always uppercase. */
export interface Coupon_type {
/*{
"nullable": true,
"title": "double",
"format": "money-usd",
"description": "Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer."
}*/
amount_off?: number;
/* default:false, description:Always true for a deleted object. */
deleted: boolean;
id: string /* Unique identifier for the object. */;
metadata: { [key: string]: string };
/*{
"nullable": true,
"description": "Name of the coupon displayed to customers on, for instance invoices, or receipts.\n\nBy default the `id` is shown if `name` is not set."
}*/
name?: string;
/*{
"nullable": true,
"format": "double",
"description": "Percent that will be taken off the subtotal of any invoices for this customer for the duration of the coupon.\n\nFor example, a coupon with percent_off of 50 will make a %s100 invoice %s50 instead."
}*/
percent_off?: number;
}
export interface CreateShortlinkRequest_type {
/*{
"nullable": true,
"description": "The password for the shortlink, if you want to restrict access to it. This can only be set if your subscription allows for it. Otherwise, it will return an error. When you access the link it will be required to enter this password through basic auth. The username will be `{anything}` and the password will be the password you set here."
}*/
password?: string;
/*{
"default": false,
"description": "If the shortlink should be restricted to the user's organization to view. This only applies to org shortlinks. If you are creating a user shortlink and you are not a member of a team or enterprise and you try to set this to true, it will fail."
}*/
restrict_to_org: boolean;
/* format:uri, description:The URL to redirect back to. */
url: string;
}
export interface CreateShortlinkResponse_type {
key: string /* The key for this url. This is what you use to update or delete the specific shortlink. */;
/* format:uri, description:The shortened url. */
url: string;
}
export type CreatedAtSortMode_type =
| 'created_at_ascending'
| 'created_at_descending';
export type Currency_type =
/* Currency is the list of supported currencies. Always lowercase.
This comes from the Stripe API docs: For more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>. */
string;
export interface CurveGetControlPoints_type {
control_points: Point3d_type[] /* Control points in the curve. */;
}
export interface CurveGetEndPoints_type {
end: Point3d_type /* End */;
start: Point3d_type /* Start */;
}
export interface CurveGetType_type {
curve_type: CurveType_type /* Curve type */;
}
export interface CurveSetConstraint_type {} /* Empty object */
export type CurveType_type =
/* The type of Curve (embedded within path) */
'line' | 'arc' | 'nurbs';
export interface Customer_type {
/* nullable:true, description:The customer's address. */
address?: AddressDetails_type;
/*{
"title": "double",
"default": 0,
"format": "money-usd",
"description": "Current balance, if any, being stored on the customer in the payments service.\n\nIf negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized."
}*/
balance: number;
/* format:date-time, description:Time at which the object was created. */
created_at: string;
/*{