@kittycad/lib 0.0.44 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/__tests__/gen/ai-get_ai_prompt.test.d.ts +2 -0
  4. package/dist/types/__tests__/gen/ai-get_ai_prompt.test.d.ts.map +1 -0
  5. package/dist/types/__tests__/gen/ai-get_text_to_cad_model_for_user.test.d.ts +2 -0
  6. package/dist/types/__tests__/gen/ai-get_text_to_cad_model_for_user.test.d.ts.map +1 -0
  7. package/dist/types/__tests__/gen/ai-list_ai_prompts.test.d.ts +2 -0
  8. package/dist/types/__tests__/gen/ai-list_ai_prompts.test.d.ts.map +1 -0
  9. package/dist/types/__tests__/gen/meta-internal_get_api_token_for_discord_user.test.d.ts +2 -0
  10. package/dist/types/__tests__/gen/meta-internal_get_api_token_for_discord_user.test.d.ts.map +1 -0
  11. package/dist/types/src/api/ai/get_ai_prompt.d.ts +10 -0
  12. package/dist/types/src/api/ai/get_ai_prompt.d.ts.map +1 -0
  13. package/dist/types/src/api/ai/get_text_to_cad_model_for_user.d.ts +10 -0
  14. package/dist/types/src/api/ai/get_text_to_cad_model_for_user.d.ts.map +1 -0
  15. package/dist/types/src/api/ai/list_ai_prompts.d.ts +12 -0
  16. package/dist/types/src/api/ai/list_ai_prompts.d.ts.map +1 -0
  17. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +10 -0
  18. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +1 -0
  19. package/dist/types/src/apiGen.d.ts.map +1 -1
  20. package/dist/types/src/index.d.ts +8 -0
  21. package/dist/types/src/index.d.ts.map +1 -1
  22. package/dist/types/src/models.d.ts +97 -39
  23. package/dist/types/src/models.d.ts.map +1 -1
  24. package/dist/umd/index.js +1 -1
  25. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- export declare type AccountProvider_type = 'google' | 'github';
1
+ export declare type AccountProvider_type = 'discord' | 'google' | 'github';
2
2
  export declare type AiFeedback_type = 'thumbs_up' | 'thumbs_down';
3
3
  export interface AiPluginApi_type {
4
4
  is_user_authenticated: boolean;
@@ -24,6 +24,27 @@ export interface AiPluginManifest_type {
24
24
  name_for_model: string;
25
25
  schema_version: string;
26
26
  }
27
+ export interface AiPrompt_type {
28
+ completed_at?: string;
29
+ created_at: string;
30
+ error?: string;
31
+ feedback?: AiFeedback_type;
32
+ id: UuidBinary_type;
33
+ metadata: any;
34
+ model_version: string;
35
+ output_file?: string;
36
+ prompt: string;
37
+ started_at?: string;
38
+ status: ApiCallStatus_type;
39
+ type: AiPromptType_type;
40
+ updated_at: string;
41
+ user_id: Uuid_type;
42
+ }
43
+ export interface AiPromptResultsPage_type {
44
+ items: AiPrompt_type[];
45
+ next_page?: string;
46
+ }
47
+ export declare type AiPromptType_type = 'text_to_cad';
27
48
  export interface Angle_type {
28
49
  unit: UnitAngle_type;
29
50
  value: number;
@@ -77,7 +98,7 @@ export interface ApiCallWithPrice_type {
77
98
  token: Uuid_type;
78
99
  updated_at: string;
79
100
  user_agent: string;
80
- user_id: string;
101
+ user_id: Uuid_type;
81
102
  }
82
103
  export interface ApiCallWithPriceResultsPage_type {
83
104
  items: ApiCallWithPrice_type[];
@@ -89,11 +110,11 @@ export interface ApiError_type {
89
110
  }
90
111
  export interface ApiToken_type {
91
112
  created_at: string;
92
- id: string;
113
+ id: Uuid_type;
93
114
  is_valid: boolean;
94
115
  token: Uuid_type;
95
116
  updated_at: string;
96
- user_id: string;
117
+ user_id: Uuid_type;
97
118
  }
98
119
  export interface ApiTokenResultsPage_type {
99
120
  items: ApiToken_type[];
@@ -113,7 +134,7 @@ export interface AsyncApiCall_type {
113
134
  status: ApiCallStatus_type;
114
135
  type: AsyncApiCallType_type;
115
136
  updated_at: string;
116
- user_id: string;
137
+ user_id: Uuid_type;
117
138
  worker: string;
118
139
  }
119
140
  export declare type AsyncApiCallOutput_type = {
@@ -132,7 +153,7 @@ export declare type AsyncApiCallOutput_type = {
132
153
  status: ApiCallStatus_type;
133
154
  type: 'file_conversion';
134
155
  updated_at: string;
135
- user_id: string;
156
+ user_id: Uuid_type;
136
157
  } | {
137
158
  center_of_mass?: Point3d_type;
138
159
  completed_at?: string;
@@ -145,7 +166,7 @@ export declare type AsyncApiCallOutput_type = {
145
166
  status: ApiCallStatus_type;
146
167
  type: 'file_center_of_mass';
147
168
  updated_at: string;
148
- user_id: string;
169
+ user_id: Uuid_type;
149
170
  } | {
150
171
  completed_at?: string;
151
172
  created_at: string;
@@ -160,7 +181,7 @@ export declare type AsyncApiCallOutput_type = {
160
181
  status: ApiCallStatus_type;
161
182
  type: 'file_mass';
162
183
  updated_at: string;
163
- user_id: string;
184
+ user_id: Uuid_type;
164
185
  } | {
165
186
  completed_at?: string;
166
187
  created_at: string;
@@ -172,7 +193,7 @@ export declare type AsyncApiCallOutput_type = {
172
193
  status: ApiCallStatus_type;
173
194
  type: 'file_volume';
174
195
  updated_at: string;
175
- user_id: string;
196
+ user_id: Uuid_type;
176
197
  volume?: number;
177
198
  } | {
178
199
  completed_at?: string;
@@ -188,7 +209,7 @@ export declare type AsyncApiCallOutput_type = {
188
209
  status: ApiCallStatus_type;
189
210
  type: 'file_density';
190
211
  updated_at: string;
191
- user_id: string;
212
+ user_id: Uuid_type;
192
213
  } | {
193
214
  completed_at?: string;
194
215
  created_at: string;
@@ -201,7 +222,7 @@ export declare type AsyncApiCallOutput_type = {
201
222
  surface_area?: number;
202
223
  type: 'file_surface_area';
203
224
  updated_at: string;
204
- user_id: string;
225
+ user_id: Uuid_type;
205
226
  } | {
206
227
  completed_at?: string;
207
228
  created_at: string;
@@ -218,7 +239,7 @@ export declare type AsyncApiCallOutput_type = {
218
239
  status: ApiCallStatus_type;
219
240
  type: 'text_to_cad';
220
241
  updated_at: string;
221
- user_id: string;
242
+ user_id: Uuid_type;
222
243
  };
223
244
  export interface AsyncApiCallResultsPage_type {
224
245
  items: AsyncApiCall_type[];
@@ -375,7 +396,7 @@ export interface CustomerBalance_type {
375
396
  pre_pay_credits_remaining: number;
376
397
  total_due: number;
377
398
  updated_at: string;
378
- user_id: string;
399
+ user_id: Uuid_type;
379
400
  }
380
401
  export interface Density_type {
381
402
  density: number;
@@ -436,7 +457,7 @@ export interface ExtendedUser_type {
436
457
  first_name: string;
437
458
  front_id?: string;
438
459
  github: string;
439
- id: string;
460
+ id: Uuid_type;
440
461
  image: string;
441
462
  last_name: string;
442
463
  mailchimp_id?: string;
@@ -466,7 +487,7 @@ export interface FileCenterOfMass_type {
466
487
  started_at?: string;
467
488
  status: ApiCallStatus_type;
468
489
  updated_at: string;
469
- user_id: string;
490
+ user_id: Uuid_type;
470
491
  }
471
492
  export interface FileConversion_type {
472
493
  completed_at?: string;
@@ -483,7 +504,7 @@ export interface FileConversion_type {
483
504
  started_at?: string;
484
505
  status: ApiCallStatus_type;
485
506
  updated_at: string;
486
- user_id: string;
507
+ user_id: Uuid_type;
487
508
  }
488
509
  export interface FileDensity_type {
489
510
  completed_at?: string;
@@ -498,7 +519,7 @@ export interface FileDensity_type {
498
519
  started_at?: string;
499
520
  status: ApiCallStatus_type;
500
521
  updated_at: string;
501
- user_id: string;
522
+ user_id: Uuid_type;
502
523
  }
503
524
  export declare type FileExportFormat_type = 'fbx' | 'glb' | 'gltf' | 'obj' | 'ply' | 'step' | 'stl';
504
525
  export declare type FileImportFormat_type = 'fbx' | 'gltf' | 'obj' | 'ply' | 'sldprt' | 'step' | 'stl';
@@ -515,7 +536,7 @@ export interface FileMass_type {
515
536
  started_at?: string;
516
537
  status: ApiCallStatus_type;
517
538
  updated_at: string;
518
- user_id: string;
539
+ user_id: Uuid_type;
519
540
  }
520
541
  export interface FileSurfaceArea_type {
521
542
  completed_at?: string;
@@ -528,7 +549,7 @@ export interface FileSurfaceArea_type {
528
549
  status: ApiCallStatus_type;
529
550
  surface_area?: number;
530
551
  updated_at: string;
531
- user_id: string;
552
+ user_id: Uuid_type;
532
553
  }
533
554
  export interface FileSystemMetadata_type {
534
555
  ok: boolean;
@@ -543,7 +564,7 @@ export interface FileVolume_type {
543
564
  started_at?: string;
544
565
  status: ApiCallStatus_type;
545
566
  updated_at: string;
546
- user_id: string;
567
+ user_id: Uuid_type;
547
568
  volume?: number;
548
569
  }
549
570
  export interface Gateway_type {
@@ -738,6 +759,9 @@ export declare type ModelingCmd_type = {
738
759
  y_axis: Point3d_type;
739
760
  } | {
740
761
  type: 'default_camera_disable_sketch_mode';
762
+ } | {
763
+ type: 'default_camera_focus_on';
764
+ uuid: string;
741
765
  } | {
742
766
  entity_ids: string[];
743
767
  format: OutputFormat_type;
@@ -925,6 +949,7 @@ export declare type ModelingCmd_type = {
925
949
  width: number;
926
950
  } | {
927
951
  files: ImportFile_type[];
952
+ format: InputFormat_type;
928
953
  type: 'import_files';
929
954
  } | {
930
955
  entity_ids: string[];
@@ -957,6 +982,11 @@ export declare type ModelingCmd_type = {
957
982
  type: 'surface_area';
958
983
  } | {
959
984
  type: 'get_sketch_mode_plane';
985
+ } | {
986
+ constraint_bound: PathComponentConstraintBound_type;
987
+ constraint_type: PathComponentConstraintType_type;
988
+ object_id: string;
989
+ type: 'curve_set_constraint';
960
990
  };
961
991
  export declare type ModelingCmdId_type = string;
962
992
  export interface ModelingCmdReq_type {
@@ -973,7 +1003,7 @@ export interface NewAddress_type {
973
1003
  state: string;
974
1004
  street1: string;
975
1005
  street2: string;
976
- user_id: string;
1006
+ user_id: Uuid_type;
977
1007
  zip: string;
978
1008
  }
979
1009
  export interface OAuth2ClientInfo_type {
@@ -1126,18 +1156,23 @@ export declare type OutputFormat_type = {
1126
1156
  units: UnitLength_type;
1127
1157
  } | {
1128
1158
  coords: System_type;
1159
+ selection: Selection_type;
1129
1160
  storage: PlyStorage_type;
1130
1161
  type: 'ply';
1162
+ units: UnitLength_type;
1131
1163
  } | {
1132
1164
  coords: System_type;
1133
1165
  type: 'step';
1134
1166
  } | {
1135
1167
  coords: System_type;
1168
+ selection: Selection_type;
1136
1169
  storage: StlStorage_type;
1137
1170
  type: 'stl';
1138
1171
  units: UnitLength_type;
1139
1172
  };
1140
1173
  export declare type PathCommand_type = 'move_to' | 'line_to' | 'bez_curve_to' | 'nurbs_curve_to' | 'add_arc';
1174
+ export declare type PathComponentConstraintBound_type = 'unconstrained' | 'partially_constrained' | 'fully_constrained';
1175
+ export declare type PathComponentConstraintType_type = 'unconstrained' | 'vertical' | 'horizontal' | 'equal_length' | 'parallel' | 'angle_between';
1141
1176
  export interface PathGetCurveUuidsForVertices_type {
1142
1177
  curve_ids: string[];
1143
1178
  }
@@ -1238,13 +1273,28 @@ export interface SelectGet_type {
1238
1273
  export interface SelectWithPoint_type {
1239
1274
  entity_id?: string;
1240
1275
  }
1276
+ export declare type Selection_type = {
1277
+ type: 'default_scene';
1278
+ } | {
1279
+ index: number;
1280
+ type: 'scene_by_index';
1281
+ } | {
1282
+ name: string;
1283
+ type: 'scene_by_name';
1284
+ } | {
1285
+ index: number;
1286
+ type: 'mesh_by_index';
1287
+ } | {
1288
+ name: string;
1289
+ type: 'mesh_by_name';
1290
+ };
1241
1291
  export interface Session_type {
1242
1292
  created_at: string;
1243
1293
  expires: string;
1244
- id: string;
1294
+ id: Uuid_type;
1245
1295
  session_token: Uuid_type;
1246
1296
  updated_at: string;
1247
- user_id: string;
1297
+ user_id: Uuid_type;
1248
1298
  }
1249
1299
  export interface Solid3dGetAllEdgeFaces_type {
1250
1300
  faces: string[];
@@ -1293,7 +1343,7 @@ export interface TextToCad_type {
1293
1343
  started_at?: string;
1294
1344
  status: ApiCallStatus_type;
1295
1345
  updated_at: string;
1296
- user_id: string;
1346
+ user_id: Uuid_type;
1297
1347
  }
1298
1348
  export interface TextToCadCreateBody_type {
1299
1349
  prompt: string;
@@ -1315,7 +1365,7 @@ export interface UnitAngleConversion_type {
1315
1365
  started_at?: string;
1316
1366
  status: ApiCallStatus_type;
1317
1367
  updated_at: string;
1318
- user_id: string;
1368
+ user_id: Uuid_type;
1319
1369
  }
1320
1370
  export declare type UnitArea_type = 'cm2' | 'dm2' | 'ft2' | 'in2' | 'km2' | 'm2' | 'mm2' | 'yd2';
1321
1371
  export interface UnitAreaConversion_type {
@@ -1330,7 +1380,7 @@ export interface UnitAreaConversion_type {
1330
1380
  started_at?: string;
1331
1381
  status: ApiCallStatus_type;
1332
1382
  updated_at: string;
1333
- user_id: string;
1383
+ user_id: Uuid_type;
1334
1384
  }
1335
1385
  export declare type UnitCurrent_type = 'amperes' | 'microamperes' | 'milliamperes' | 'nanoamperes';
1336
1386
  export interface UnitCurrentConversion_type {
@@ -1345,7 +1395,7 @@ export interface UnitCurrentConversion_type {
1345
1395
  started_at?: string;
1346
1396
  status: ApiCallStatus_type;
1347
1397
  updated_at: string;
1348
- user_id: string;
1398
+ user_id: Uuid_type;
1349
1399
  }
1350
1400
  export declare type UnitDensity_type = 'lb:ft3' | 'kg:m3';
1351
1401
  export declare type UnitEnergy_type = 'btu' | 'electronvolts' | 'joules' | 'kilocalories' | 'kilowatt_hours' | 'watt_hours';
@@ -1361,7 +1411,7 @@ export interface UnitEnergyConversion_type {
1361
1411
  started_at?: string;
1362
1412
  status: ApiCallStatus_type;
1363
1413
  updated_at: string;
1364
- user_id: string;
1414
+ user_id: Uuid_type;
1365
1415
  }
1366
1416
  export declare type UnitForce_type = 'dynes' | 'kiloponds' | 'micronewtons' | 'millinewtons' | 'newtons' | 'poundals' | 'pounds';
1367
1417
  export interface UnitForceConversion_type {
@@ -1376,7 +1426,7 @@ export interface UnitForceConversion_type {
1376
1426
  started_at?: string;
1377
1427
  status: ApiCallStatus_type;
1378
1428
  updated_at: string;
1379
- user_id: string;
1429
+ user_id: Uuid_type;
1380
1430
  }
1381
1431
  export declare type UnitFrequency_type = 'gigahertz' | 'hertz' | 'kilohertz' | 'megahertz' | 'microhertz' | 'millihertz' | 'nanohertz' | 'terahertz';
1382
1432
  export interface UnitFrequencyConversion_type {
@@ -1391,7 +1441,7 @@ export interface UnitFrequencyConversion_type {
1391
1441
  started_at?: string;
1392
1442
  status: ApiCallStatus_type;
1393
1443
  updated_at: string;
1394
- user_id: string;
1444
+ user_id: Uuid_type;
1395
1445
  }
1396
1446
  export declare type UnitLength_type = 'cm' | 'ft' | 'in' | 'm' | 'mm' | 'yd';
1397
1447
  export interface UnitLengthConversion_type {
@@ -1406,7 +1456,7 @@ export interface UnitLengthConversion_type {
1406
1456
  started_at?: string;
1407
1457
  status: ApiCallStatus_type;
1408
1458
  updated_at: string;
1409
- user_id: string;
1459
+ user_id: Uuid_type;
1410
1460
  }
1411
1461
  export declare type UnitMass_type = 'g' | 'kg' | 'lb';
1412
1462
  export interface UnitMassConversion_type {
@@ -1421,7 +1471,7 @@ export interface UnitMassConversion_type {
1421
1471
  started_at?: string;
1422
1472
  status: ApiCallStatus_type;
1423
1473
  updated_at: string;
1424
- user_id: string;
1474
+ user_id: Uuid_type;
1425
1475
  }
1426
1476
  export declare type UnitPower_type = 'btu_per_minute' | 'horsepower' | 'kilowatts' | 'metric_horsepower' | 'microwatts' | 'milliwatts' | 'watts';
1427
1477
  export interface UnitPowerConversion_type {
@@ -1436,7 +1486,7 @@ export interface UnitPowerConversion_type {
1436
1486
  started_at?: string;
1437
1487
  status: ApiCallStatus_type;
1438
1488
  updated_at: string;
1439
- user_id: string;
1489
+ user_id: Uuid_type;
1440
1490
  }
1441
1491
  export declare type UnitPressure_type = 'atmospheres' | 'bars' | 'hectopascals' | 'kilopascals' | 'millibars' | 'pascals' | 'psi';
1442
1492
  export interface UnitPressureConversion_type {
@@ -1451,7 +1501,7 @@ export interface UnitPressureConversion_type {
1451
1501
  started_at?: string;
1452
1502
  status: ApiCallStatus_type;
1453
1503
  updated_at: string;
1454
- user_id: string;
1504
+ user_id: Uuid_type;
1455
1505
  }
1456
1506
  export declare type UnitTemperature_type = 'celsius' | 'fahrenheit' | 'kelvin' | 'rankine';
1457
1507
  export interface UnitTemperatureConversion_type {
@@ -1466,7 +1516,7 @@ export interface UnitTemperatureConversion_type {
1466
1516
  started_at?: string;
1467
1517
  status: ApiCallStatus_type;
1468
1518
  updated_at: string;
1469
- user_id: string;
1519
+ user_id: Uuid_type;
1470
1520
  }
1471
1521
  export declare type UnitTorque_type = 'newton_metres' | 'pound_foot';
1472
1522
  export interface UnitTorqueConversion_type {
@@ -1481,7 +1531,7 @@ export interface UnitTorqueConversion_type {
1481
1531
  started_at?: string;
1482
1532
  status: ApiCallStatus_type;
1483
1533
  updated_at: string;
1484
- user_id: string;
1534
+ user_id: Uuid_type;
1485
1535
  }
1486
1536
  export declare type UnitVolume_type = 'cm3' | 'ft3' | 'in3' | 'm3' | 'yd3' | 'usfloz' | 'usgal' | 'l' | 'ml';
1487
1537
  export interface UnitVolumeConversion_type {
@@ -1496,7 +1546,7 @@ export interface UnitVolumeConversion_type {
1496
1546
  started_at?: string;
1497
1547
  status: ApiCallStatus_type;
1498
1548
  updated_at: string;
1499
- user_id: string;
1549
+ user_id: Uuid_type;
1500
1550
  }
1501
1551
  export interface UpdateUser_type {
1502
1552
  company: string;
@@ -1514,7 +1564,7 @@ export interface User_type {
1514
1564
  email_verified?: string;
1515
1565
  first_name: string;
1516
1566
  github: string;
1517
- id: string;
1567
+ id: Uuid_type;
1518
1568
  image: string;
1519
1569
  last_name: string;
1520
1570
  name: string;
@@ -1526,10 +1576,11 @@ export interface UserResultsPage_type {
1526
1576
  next_page?: string;
1527
1577
  }
1528
1578
  export declare type Uuid_type = string;
1579
+ export declare type UuidBinary_type = string;
1529
1580
  export interface VerificationToken_type {
1530
1581
  created_at: string;
1531
1582
  expires: string;
1532
- id: string;
1583
+ id: Uuid_type;
1533
1584
  identifier: string;
1534
1585
  updated_at: string;
1535
1586
  }
@@ -1574,6 +1625,9 @@ export interface Models {
1574
1625
  AiPluginAuthType_type: AiPluginAuthType_type;
1575
1626
  AiPluginHttpAuthType_type: AiPluginHttpAuthType_type;
1576
1627
  AiPluginManifest_type: AiPluginManifest_type;
1628
+ AiPrompt_type: AiPrompt_type;
1629
+ AiPromptResultsPage_type: AiPromptResultsPage_type;
1630
+ AiPromptType_type: AiPromptType_type;
1577
1631
  Angle_type: Angle_type;
1578
1632
  AnnotationLineEnd_type: AnnotationLineEnd_type;
1579
1633
  AnnotationLineEndOptions_type: AnnotationLineEndOptions_type;
@@ -1684,6 +1738,8 @@ export interface Models {
1684
1738
  OutputFile_type: OutputFile_type;
1685
1739
  OutputFormat_type: OutputFormat_type;
1686
1740
  PathCommand_type: PathCommand_type;
1741
+ PathComponentConstraintBound_type: PathComponentConstraintBound_type;
1742
+ PathComponentConstraintType_type: PathComponentConstraintType_type;
1687
1743
  PathGetCurveUuidsForVertices_type: PathGetCurveUuidsForVertices_type;
1688
1744
  PathGetInfo_type: PathGetInfo_type;
1689
1745
  PathGetVertexUuids_type: PathGetVertexUuids_type;
@@ -1706,6 +1762,7 @@ export interface Models {
1706
1762
  SceneToolType_type: SceneToolType_type;
1707
1763
  SelectGet_type: SelectGet_type;
1708
1764
  SelectWithPoint_type: SelectWithPoint_type;
1765
+ Selection_type: Selection_type;
1709
1766
  Session_type: Session_type;
1710
1767
  Solid3dGetAllEdgeFaces_type: Solid3dGetAllEdgeFaces_type;
1711
1768
  Solid3dGetAllOppositeEdges_type: Solid3dGetAllOppositeEdges_type;
@@ -1751,6 +1808,7 @@ export interface Models {
1751
1808
  User_type: User_type;
1752
1809
  UserResultsPage_type: UserResultsPage_type;
1753
1810
  Uuid_type: Uuid_type;
1811
+ UuidBinary_type: UuidBinary_type;
1754
1812
  VerificationToken_type: VerificationToken_type;
1755
1813
  Volume_type: Volume_type;
1756
1814
  WebSocketRequest_type: WebSocketRequest_type;