@kittycad/lib 0.0.30 → 0.0.31

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.
@@ -78,6 +78,10 @@ export interface ApiCallWithPriceResultsPage_type {
78
78
  items: ApiCallWithPrice_type[];
79
79
  next_page?: string;
80
80
  }
81
+ export interface ApiError_type {
82
+ error_code: ErrorCode_type;
83
+ message: string;
84
+ }
81
85
  export interface ApiToken_type {
82
86
  created_at: string;
83
87
  id: string;
@@ -90,6 +94,12 @@ export interface ApiTokenResultsPage_type {
90
94
  items: ApiToken_type[];
91
95
  next_page?: string;
92
96
  }
97
+ export interface ApiWebSocketResponse_type {
98
+ errors: ApiError_type[];
99
+ request_id?: string;
100
+ resp: OkWebSocketResponseData_type;
101
+ success: boolean;
102
+ }
93
103
  export interface AppClientInfo_type {
94
104
  url: string;
95
105
  }
@@ -307,6 +317,12 @@ export interface Coupon_type {
307
317
  }
308
318
  export declare type CreatedAtSortMode_type = 'created_at_ascending' | 'created_at_descending';
309
319
  export declare type Currency_type = 'aed' | 'afn' | 'all' | 'amd' | 'ang' | 'aoa' | 'ars' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bob' | 'brl' | 'bsd' | 'bwp' | 'bzd' | 'cad' | 'cdf' | 'chf' | 'clp' | 'cny' | 'cop' | 'crc' | 'cve' | 'czk' | 'djf' | 'dkk' | 'dop' | 'dzd' | 'eek' | 'egp' | 'etb' | 'eur' | 'fjd' | 'fkp' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gnf' | 'gtq' | 'gyd' | 'hkd' | 'hnl' | 'hrk' | 'htg' | 'huf' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lak' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'ltl' | 'lvl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mnt' | 'mop' | 'mro' | 'mur' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nio' | 'nok' | 'npr' | 'nzd' | 'pab' | 'pen' | 'pgk' | 'php' | 'pkr' | 'pln' | 'pyg' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'shp' | 'sll' | 'sos' | 'srd' | 'std' | 'svc' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'twd' | 'tzs' | 'uah' | 'ugx' | 'usd' | 'uyu' | 'uzs' | 'vef' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'xof' | 'xpf' | 'yer' | 'zar' | 'zmw';
320
+ export interface CurveGetControlPoints_type {
321
+ control_points: Point3d_type[];
322
+ }
323
+ export interface CurveGetType_type {
324
+ curve_type: CurveType_type;
325
+ }
310
326
  export declare type CurveType_type = 'line' | 'nurbs';
311
327
  export interface Customer_type {
312
328
  address: NewAddress_type;
@@ -415,10 +431,6 @@ export interface EmailAuthenticationForm_type {
415
431
  callback_url?: string;
416
432
  email: string;
417
433
  }
418
- export interface EngineError_type {
419
- error_code: ErrorCode_type;
420
- message: string;
421
- }
422
434
  export interface EngineMetadata_type {
423
435
  async_jobs_running: boolean;
424
436
  cache: CacheMetadata_type;
@@ -427,6 +439,18 @@ export interface EngineMetadata_type {
427
439
  git_hash: string;
428
440
  pubsub: Connection_type;
429
441
  }
442
+ export interface EntityGetAllChildUuids_type {
443
+ entity_ids: string[];
444
+ }
445
+ export interface EntityGetChildUuid_type {
446
+ entity_id: string;
447
+ }
448
+ export interface EntityGetNumChildren_type {
449
+ num: number;
450
+ }
451
+ export interface EntityGetParentId_type {
452
+ entity_id: string;
453
+ }
430
454
  export declare type EntityType_type = 'entity' | 'object' | 'path' | 'curve' | 'solid2d' | 'solid3d' | 'edge' | 'face' | 'plane';
431
455
  export declare type Environment_type = 'DEVELOPMENT' | 'PREVIEW' | 'PRODUCTION';
432
456
  export interface Error_type {
@@ -434,15 +458,15 @@ export interface Error_type {
434
458
  message: string;
435
459
  request_id: string;
436
460
  }
437
- export declare type ErrorCode_type = 'bad_request' | 'internal_engine';
438
- export interface ErrorResponse_type {
439
- errors: EngineError_type[];
440
- }
461
+ export declare type ErrorCode_type = 'internal_engine' | 'internal_api' | 'bad_request' | 'invalid_json' | 'connection_problem' | 'message_type_not_accepted' | 'message_type_not_accepted_for_web_r_t_c';
441
462
  export interface ExecutorMetadata_type {
442
463
  docker_info: DockerSystemInfo_type;
443
464
  environment: Environment_type;
444
465
  git_hash: string;
445
466
  }
467
+ export interface Export_type {
468
+ files: ExportFile_type[];
469
+ }
446
470
  export interface ExportFile_type {
447
471
  contents: string;
448
472
  name: string;
@@ -515,7 +539,7 @@ export interface FileDensity_type {
515
539
  updated_at: string;
516
540
  user_id: string;
517
541
  }
518
- export declare type FileExportFormat_type = 'gltf' | 'obj' | 'ply' | 'step' | 'stl';
542
+ export declare type FileExportFormat_type = 'glb' | 'gltf' | 'obj' | 'ply' | 'step' | 'stl';
519
543
  export declare type FileImportFormat_type = 'gltf' | 'obj' | 'ply' | 'step' | 'stl';
520
544
  export interface FileMass_type {
521
545
  completed_at?: string;
@@ -568,11 +592,19 @@ export interface Gateway_type {
568
592
  port: number;
569
593
  tls_timeout: number;
570
594
  }
595
+ export interface GetEntityType_type {
596
+ entity_type: EntityType_type;
597
+ }
598
+ export interface HighlightSetEntity_type {
599
+ entity_id?: string;
600
+ sequence?: number;
601
+ }
571
602
  export interface IceServer_type {
572
603
  credential?: string;
573
604
  urls: string[];
574
605
  username?: string;
575
606
  }
607
+ export declare type ImageFormat_type = 'png';
576
608
  export declare type ImageType_type = 'png' | 'jpg';
577
609
  export interface IndexInfo_type {
578
610
  mirrors: string[];
@@ -868,6 +900,9 @@ export declare type ModelingCmd_type = {
868
900
  } | {
869
901
  curve_id: string;
870
902
  type: 'curve_get_control_points';
903
+ } | {
904
+ format: ImageFormat_type;
905
+ type: 'take_snapshot';
871
906
  };
872
907
  export declare type ModelingCmdId_type = string;
873
908
  export interface ModelingCmdReq_type {
@@ -899,6 +934,10 @@ export interface ModelingOutcomes_type {
899
934
  [key: string]: ModelingOutcome_type;
900
935
  };
901
936
  }
937
+ export interface MouseClick_type {
938
+ entities_modified: string[];
939
+ entities_selected: string[];
940
+ }
902
941
  export interface NewAddress_type {
903
942
  city: string;
904
943
  country: CountryCode_type;
@@ -917,58 +956,85 @@ export declare type OAuth2GrantType_type = 'urn:ietf:params:oauth:grant-type:dev
917
956
  export declare type OkModelingCmdResponse_type = {
918
957
  type: 'empty';
919
958
  } | {
920
- files: ExportFile_type[];
959
+ data: any;
921
960
  type: 'export';
922
961
  } | {
923
- entity_id?: string;
962
+ data: any;
924
963
  type: 'select_with_point';
925
964
  } | {
926
- entity_id?: string;
927
- sequence?: number;
965
+ data: any;
928
966
  type: 'highlight_set_entity';
929
967
  } | {
930
- entity_id: string;
968
+ data: any;
931
969
  type: 'entity_get_child_uuid';
932
970
  } | {
933
- num: number;
971
+ data: any;
934
972
  type: 'entity_get_num_children';
935
973
  } | {
936
- entity_id: string;
974
+ data: any;
937
975
  type: 'entity_get_parent_id';
938
976
  } | {
939
- entity_ids: string[];
977
+ data: any;
940
978
  type: 'entity_get_all_child_uuids';
941
979
  } | {
942
- entity_ids: string[];
980
+ data: any;
943
981
  type: 'select_get';
944
982
  } | {
945
- entity_type: EntityType_type;
983
+ data: any;
946
984
  type: 'get_entity_type';
947
985
  } | {
948
- faces: string[];
986
+ data: any;
949
987
  type: 'solid3d_get_all_edge_faces';
950
988
  } | {
951
- edges: string[];
989
+ data: any;
952
990
  type: 'solid3d_get_all_opposite_edges';
953
991
  } | {
954
- edge: string;
992
+ data: any;
955
993
  type: 'solid3d_get_opposite_edge';
956
994
  } | {
957
- edge: string;
995
+ data: any;
958
996
  type: 'solid3d_get_prev_adjacent_edge';
959
997
  } | {
960
- edge: string;
998
+ data: any;
961
999
  type: 'solid3d_get_next_adjacent_edge';
962
1000
  } | {
963
- entities_modified: string[];
964
- entities_selected: string[];
1001
+ data: any;
965
1002
  type: 'mouse_click';
966
1003
  } | {
967
- curve_type: CurveType_type;
1004
+ data: any;
968
1005
  type: 'curve_get_type';
969
1006
  } | {
970
- control_points: Point3d_type[];
1007
+ data: any;
971
1008
  type: 'curve_get_control_points';
1009
+ } | {
1010
+ data: any;
1011
+ type: 'take_snapshot';
1012
+ };
1013
+ export declare type OkWebSocketResponseData_type = {
1014
+ data: {
1015
+ ice_servers: IceServer_type[];
1016
+ };
1017
+ type: 'ice_server_info';
1018
+ } | {
1019
+ data: {
1020
+ candidate: RtcIceCandidateInit_type;
1021
+ };
1022
+ type: 'trickle_ice';
1023
+ } | {
1024
+ data: {
1025
+ answer: RtcSessionDescription_type;
1026
+ };
1027
+ type: 'sdp_answer';
1028
+ } | {
1029
+ data: {
1030
+ modeling_response: OkModelingCmdResponse_type;
1031
+ };
1032
+ type: 'modeling';
1033
+ } | {
1034
+ data: {
1035
+ files: RawFile_type[];
1036
+ };
1037
+ type: 'export';
972
1038
  };
973
1039
  export interface Onboarding_type {
974
1040
  first_call_from_their_machine_date: string;
@@ -980,6 +1046,7 @@ export interface OutputFile_type {
980
1046
  name: string;
981
1047
  }
982
1048
  export declare type OutputFormat_type = {
1049
+ presentation: Presentation_type;
983
1050
  storage: Storage_type;
984
1051
  type: 'gltf';
985
1052
  } | {
@@ -1052,6 +1119,7 @@ export interface PointEMetadata_type {
1052
1119
  export interface Pong_type {
1053
1120
  message: string;
1054
1121
  }
1122
+ export declare type Presentation_type = 'compact' | 'pretty';
1055
1123
  export interface RawFile_type {
1056
1124
  contents: number[];
1057
1125
  name: string;
@@ -1065,27 +1133,12 @@ export interface RegistryServiceConfig_type {
1065
1133
  insecure_registry_cid_rs: string[];
1066
1134
  mirrors: string[];
1067
1135
  }
1068
- export interface RtcIceCandidate_type {
1069
- address: string;
1070
- component: number;
1071
- foundation: string;
1072
- port: number;
1073
- priority: number;
1074
- protocol: RtcIceProtocol_type;
1075
- related_address: string;
1076
- related_port: number;
1077
- stats_id: string;
1078
- tcp_type: string;
1079
- typ: RtcIceCandidateType_type;
1080
- }
1081
1136
  export interface RtcIceCandidateInit_type {
1082
1137
  candidate: string;
1083
1138
  sdpMLineIndex?: number;
1084
1139
  sdpMid?: string;
1085
1140
  usernameFragment?: string;
1086
1141
  }
1087
- export declare type RtcIceCandidateType_type = 'unspecified' | 'host' | 'srflx' | 'prflx' | 'relay';
1088
- export declare type RtcIceProtocol_type = 'unspecified' | 'udp' | 'tcp';
1089
1142
  export declare type RtcSdpType_type = 'unspecified' | 'offer' | 'pranswer' | 'answer' | 'rollback';
1090
1143
  export interface RtcSessionDescription_type {
1091
1144
  sdp: string;
@@ -1097,6 +1150,12 @@ export interface Runtime_type {
1097
1150
  }
1098
1151
  export declare type SceneSelectionType_type = 'replace' | 'add' | 'remove';
1099
1152
  export declare type SceneToolType_type = 'camera_revolve' | 'select' | 'move' | 'sketch_line' | 'sketch_curve' | 'sketch_curve_mod';
1153
+ export interface SelectGet_type {
1154
+ entity_ids: string[];
1155
+ }
1156
+ export interface SelectWithPoint_type {
1157
+ entity_id?: string;
1158
+ }
1100
1159
  export interface Session_type {
1101
1160
  created_at: string;
1102
1161
  expires: string;
@@ -1105,11 +1164,21 @@ export interface Session_type {
1105
1164
  updated_at: string;
1106
1165
  user_id: string;
1107
1166
  }
1108
- export declare type SnakeCaseResult_type = {
1109
- ok: any;
1110
- } | {
1111
- err: any;
1112
- };
1167
+ export interface Solid3dGetAllEdgeFaces_type {
1168
+ faces: string[];
1169
+ }
1170
+ export interface Solid3dGetAllOppositeEdges_type {
1171
+ edges: string[];
1172
+ }
1173
+ export interface Solid3dGetNextAdjacentEdge_type {
1174
+ edge: string;
1175
+ }
1176
+ export interface Solid3dGetOppositeEdge_type {
1177
+ edge: string;
1178
+ }
1179
+ export interface Solid3dGetPrevAdjacentEdge_type {
1180
+ edge: string;
1181
+ }
1113
1182
  export declare type Storage_type = 'binary' | 'standard' | 'embedded';
1114
1183
  export interface System_type {
1115
1184
  forward: AxisDirectionPair_type;
@@ -1122,6 +1191,9 @@ export interface SystemInfoDefaultAddressPools_type {
1122
1191
  size?: number;
1123
1192
  }
1124
1193
  export declare type SystemInfoIsolationEnum_type = '' | 'default' | 'hyperv' | 'process';
1194
+ export interface TakeSnapshot_type {
1195
+ contents: number[];
1196
+ }
1125
1197
  export declare type UnitAngle_type = 'degrees' | 'radians';
1126
1198
  export interface UnitAngleConversion_type {
1127
1199
  completed_at?: string;
@@ -1363,23 +1435,8 @@ export declare type WebSocketMessages_type = {
1363
1435
  cmd: ModelingCmd_type;
1364
1436
  cmd_id: ModelingCmdId_type;
1365
1437
  type: 'modeling_cmd_req';
1366
- };
1367
- export declare type WebSocketResponses_type = {
1368
- candidate: RtcIceCandidate_type;
1369
- type: 'trickle_ice';
1370
- } | {
1371
- answer: RtcSessionDescription_type;
1372
- type: 'sdp_answer';
1373
1438
  } | {
1374
- ice_servers: IceServer_type[];
1375
- type: 'ice_server_info';
1376
- } | {
1377
- cmd_id: ModelingCmdId_type;
1378
- result: SnakeCaseResult_type;
1379
- type: 'modeling';
1380
- } | {
1381
- files: RawFile_type[];
1382
- type: 'export';
1439
+ type: 'ping';
1383
1440
  };
1384
1441
  export interface Models {
1385
1442
  AccountProvider_type: AccountProvider_type;
@@ -1401,8 +1458,10 @@ export interface Models {
1401
1458
  ApiCallStatus_type: ApiCallStatus_type;
1402
1459
  ApiCallWithPrice_type: ApiCallWithPrice_type;
1403
1460
  ApiCallWithPriceResultsPage_type: ApiCallWithPriceResultsPage_type;
1461
+ ApiError_type: ApiError_type;
1404
1462
  ApiToken_type: ApiToken_type;
1405
1463
  ApiTokenResultsPage_type: ApiTokenResultsPage_type;
1464
+ ApiWebSocketResponse_type: ApiWebSocketResponse_type;
1406
1465
  AppClientInfo_type: AppClientInfo_type;
1407
1466
  AsyncApiCall_type: AsyncApiCall_type;
1408
1467
  AsyncApiCallOutput_type: AsyncApiCallOutput_type;
@@ -1424,6 +1483,8 @@ export interface Models {
1424
1483
  Coupon_type: Coupon_type;
1425
1484
  CreatedAtSortMode_type: CreatedAtSortMode_type;
1426
1485
  Currency_type: Currency_type;
1486
+ CurveGetControlPoints_type: CurveGetControlPoints_type;
1487
+ CurveGetType_type: CurveGetType_type;
1427
1488
  CurveType_type: CurveType_type;
1428
1489
  Customer_type: Customer_type;
1429
1490
  CustomerBalance_type: CustomerBalance_type;
@@ -1434,14 +1495,17 @@ export interface Models {
1434
1495
  Discount_type: Discount_type;
1435
1496
  DockerSystemInfo_type: DockerSystemInfo_type;
1436
1497
  EmailAuthenticationForm_type: EmailAuthenticationForm_type;
1437
- EngineError_type: EngineError_type;
1438
1498
  EngineMetadata_type: EngineMetadata_type;
1499
+ EntityGetAllChildUuids_type: EntityGetAllChildUuids_type;
1500
+ EntityGetChildUuid_type: EntityGetChildUuid_type;
1501
+ EntityGetNumChildren_type: EntityGetNumChildren_type;
1502
+ EntityGetParentId_type: EntityGetParentId_type;
1439
1503
  EntityType_type: EntityType_type;
1440
1504
  Environment_type: Environment_type;
1441
1505
  Error_type: Error_type;
1442
1506
  ErrorCode_type: ErrorCode_type;
1443
- ErrorResponse_type: ErrorResponse_type;
1444
1507
  ExecutorMetadata_type: ExecutorMetadata_type;
1508
+ Export_type: Export_type;
1445
1509
  ExportFile_type: ExportFile_type;
1446
1510
  ExtendedUser_type: ExtendedUser_type;
1447
1511
  ExtendedUserResultsPage_type: ExtendedUserResultsPage_type;
@@ -1455,7 +1519,10 @@ export interface Models {
1455
1519
  FileSystemMetadata_type: FileSystemMetadata_type;
1456
1520
  FileVolume_type: FileVolume_type;
1457
1521
  Gateway_type: Gateway_type;
1522
+ GetEntityType_type: GetEntityType_type;
1523
+ HighlightSetEntity_type: HighlightSetEntity_type;
1458
1524
  IceServer_type: IceServer_type;
1525
+ ImageFormat_type: ImageFormat_type;
1459
1526
  ImageType_type: ImageType_type;
1460
1527
  IndexInfo_type: IndexInfo_type;
1461
1528
  InputFormat_type: InputFormat_type;
@@ -1478,10 +1545,12 @@ export interface Models {
1478
1545
  ModelingError_type: ModelingError_type;
1479
1546
  ModelingOutcome_type: ModelingOutcome_type;
1480
1547
  ModelingOutcomes_type: ModelingOutcomes_type;
1548
+ MouseClick_type: MouseClick_type;
1481
1549
  NewAddress_type: NewAddress_type;
1482
1550
  OAuth2ClientInfo_type: OAuth2ClientInfo_type;
1483
1551
  OAuth2GrantType_type: OAuth2GrantType_type;
1484
1552
  OkModelingCmdResponse_type: OkModelingCmdResponse_type;
1553
+ OkWebSocketResponseData_type: OkWebSocketResponseData_type;
1485
1554
  Onboarding_type: Onboarding_type;
1486
1555
  OutputFile_type: OutputFile_type;
1487
1556
  OutputFormat_type: OutputFormat_type;
@@ -1495,25 +1564,30 @@ export interface Models {
1495
1564
  Point3d_type: Point3d_type;
1496
1565
  PointEMetadata_type: PointEMetadata_type;
1497
1566
  Pong_type: Pong_type;
1567
+ Presentation_type: Presentation_type;
1498
1568
  RawFile_type: RawFile_type;
1499
1569
  RegistryServiceConfig_type: RegistryServiceConfig_type;
1500
- RtcIceCandidate_type: RtcIceCandidate_type;
1501
1570
  RtcIceCandidateInit_type: RtcIceCandidateInit_type;
1502
- RtcIceCandidateType_type: RtcIceCandidateType_type;
1503
- RtcIceProtocol_type: RtcIceProtocol_type;
1504
1571
  RtcSdpType_type: RtcSdpType_type;
1505
1572
  RtcSessionDescription_type: RtcSessionDescription_type;
1506
1573
  Runtime_type: Runtime_type;
1507
1574
  SceneSelectionType_type: SceneSelectionType_type;
1508
1575
  SceneToolType_type: SceneToolType_type;
1576
+ SelectGet_type: SelectGet_type;
1577
+ SelectWithPoint_type: SelectWithPoint_type;
1509
1578
  Session_type: Session_type;
1510
- SnakeCaseResult_type: SnakeCaseResult_type;
1579
+ Solid3dGetAllEdgeFaces_type: Solid3dGetAllEdgeFaces_type;
1580
+ Solid3dGetAllOppositeEdges_type: Solid3dGetAllOppositeEdges_type;
1581
+ Solid3dGetNextAdjacentEdge_type: Solid3dGetNextAdjacentEdge_type;
1582
+ Solid3dGetOppositeEdge_type: Solid3dGetOppositeEdge_type;
1583
+ Solid3dGetPrevAdjacentEdge_type: Solid3dGetPrevAdjacentEdge_type;
1511
1584
  Storage_type: Storage_type;
1512
1585
  System_type: System_type;
1513
1586
  SystemInfoCgroupDriverEnum_type: SystemInfoCgroupDriverEnum_type;
1514
1587
  SystemInfoCgroupVersionEnum_type: SystemInfoCgroupVersionEnum_type;
1515
1588
  SystemInfoDefaultAddressPools_type: SystemInfoDefaultAddressPools_type;
1516
1589
  SystemInfoIsolationEnum_type: SystemInfoIsolationEnum_type;
1590
+ TakeSnapshot_type: TakeSnapshot_type;
1517
1591
  UnitAngle_type: UnitAngle_type;
1518
1592
  UnitAngleConversion_type: UnitAngleConversion_type;
1519
1593
  UnitArea_type: UnitArea_type;
@@ -1547,6 +1621,5 @@ export interface Models {
1547
1621
  Uuid_type: Uuid_type;
1548
1622
  VerificationToken_type: VerificationToken_type;
1549
1623
  WebSocketMessages_type: WebSocketMessages_type;
1550
- WebSocketResponses_type: WebSocketResponses_type;
1551
1624
  }
1552
1625
  //# sourceMappingURL=models.d.ts.map