@kittycad/lib 0.0.37 → 0.0.39

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.
@@ -23,6 +23,10 @@ export interface AiPluginManifest_type {
23
23
  name_for_model: string;
24
24
  schema_version: string;
25
25
  }
26
+ export interface Angle_type {
27
+ unit: UnitAngle_type;
28
+ value: number;
29
+ }
26
30
  export declare type AnnotationLineEnd_type = 'none' | 'arrow';
27
31
  export interface AnnotationLineEndOptions_type {
28
32
  end: AnnotationLineEnd_type;
@@ -62,7 +66,7 @@ export interface ApiCallWithPrice_type {
62
66
  method: Method_type;
63
67
  minutes?: number;
64
68
  origin: string;
65
- price?: number;
69
+ price?: string;
66
70
  request_body?: string;
67
71
  request_query_params: string;
68
72
  response_body?: string;
@@ -257,17 +261,13 @@ export interface Color_type {
257
261
  g: number;
258
262
  r: number;
259
263
  }
260
- export interface Commit_type {
261
- expected?: string;
262
- id?: string;
263
- }
264
264
  export interface Connection_type {
265
265
  auth_timeout: number;
266
266
  cluster: Cluster_type;
267
267
  config_load_time: string;
268
268
  connections: number;
269
269
  cores: number;
270
- cpu?: number;
270
+ cpu: number;
271
271
  gateway: Gateway_type;
272
272
  git_commit: string;
273
273
  go: string;
@@ -313,7 +313,7 @@ export interface Connection_type {
313
313
  }
314
314
  export declare type CountryCode_type = string;
315
315
  export interface Coupon_type {
316
- amount_off?: number;
316
+ amount_off?: string;
317
317
  deleted: boolean;
318
318
  id: string;
319
319
  percent_off?: number;
@@ -323,13 +323,17 @@ export declare type Currency_type = string;
323
323
  export interface CurveGetControlPoints_type {
324
324
  control_points: Point3d_type[];
325
325
  }
326
+ export interface CurveGetEndPoints_type {
327
+ end: Point3d_type;
328
+ start: Point3d_type;
329
+ }
326
330
  export interface CurveGetType_type {
327
331
  curve_type: CurveType_type;
328
332
  }
329
333
  export declare type CurveType_type = 'line' | 'arc' | 'nurbs';
330
334
  export interface Customer_type {
331
335
  address: NewAddress_type;
332
- balance: number;
336
+ balance: string;
333
337
  created_at: string;
334
338
  currency: Currency_type;
335
339
  delinquent: boolean;
@@ -344,10 +348,10 @@ export interface Customer_type {
344
348
  export interface CustomerBalance_type {
345
349
  created_at: string;
346
350
  id: Uuid_type;
347
- monthly_credits_remaining: number;
348
- pre_pay_cash_remaining: number;
349
- pre_pay_credits_remaining: number;
350
- total_due: number;
351
+ monthly_credits_remaining: string;
352
+ pre_pay_cash_remaining: string;
353
+ pre_pay_credits_remaining: string;
354
+ total_due: string;
351
355
  updated_at: string;
352
356
  user_id: string;
353
357
  }
@@ -366,82 +370,10 @@ export declare type Direction_type = 'positive' | 'negative';
366
370
  export interface Discount_type {
367
371
  coupon: Coupon_type;
368
372
  }
369
- export interface DockerSystemInfo_type {
370
- architecture?: string;
371
- bridge_nf_ip6tables?: boolean;
372
- bridge_nf_iptables?: boolean;
373
- cgroup_driver: SystemInfoCgroupDriverEnum_type;
374
- cgroup_version: SystemInfoCgroupVersionEnum_type;
375
- cluster_advertise?: string;
376
- cluster_store?: string;
377
- containerd_commit: Commit_type;
378
- containers?: number;
379
- containers_paused?: number;
380
- containers_running?: number;
381
- containers_stopped?: number;
382
- cpu_cfs_period?: boolean;
383
- cpu_cfs_quota?: boolean;
384
- cpu_set?: boolean;
385
- cpu_shares?: boolean;
386
- debug?: boolean;
387
- default_address_pools: SystemInfoDefaultAddressPools_type[];
388
- default_runtime?: string;
389
- docker_root_dir?: string;
390
- driver?: string;
391
- driver_status: string[][];
392
- experimental_build?: boolean;
393
- http_proxy?: string;
394
- https_proxy?: string;
395
- id?: string;
396
- images?: number;
397
- index_server_address?: string;
398
- init_binary?: string;
399
- init_commit: Commit_type;
400
- ipv4_forwarding?: boolean;
401
- isolation: SystemInfoIsolationEnum_type;
402
- kernel_memory?: boolean;
403
- kernel_memory_tcp?: boolean;
404
- kernel_version?: string;
405
- labels: string[];
406
- live_restore_enabled?: boolean;
407
- logging_driver?: string;
408
- mem_total?: number;
409
- memory_limit?: boolean;
410
- n_events_listener?: number;
411
- n_fd?: number;
412
- name?: string;
413
- ncpu?: number;
414
- no_proxy?: string;
415
- oom_kill_disable?: boolean;
416
- operating_system?: string;
417
- os_type?: string;
418
- os_version?: string;
419
- pids_limit?: boolean;
420
- plugins: PluginsInfo_type;
421
- product_license?: string;
422
- registry_config: RegistryServiceConfig_type;
423
- runc_commit: Commit_type;
424
- runtimes: {
425
- [key: string]: Runtime_type;
426
- };
427
- security_options: string[];
428
- server_version?: string;
429
- swap_limit?: boolean;
430
- system_time?: string;
431
- warnings: string[];
432
- }
433
373
  export interface EmailAuthenticationForm_type {
434
374
  callback_url?: string;
435
375
  email: string;
436
376
  }
437
- export interface EngineMetadata_type {
438
- async_jobs_running: boolean;
439
- cache: CacheMetadata_type;
440
- environment: Environment_type;
441
- fs: FileSystemMetadata_type;
442
- git_hash: string;
443
- pubsub: Connection_type;
444
- }
445
377
  export interface EntityGetAllChildUuids_type {
446
378
  entity_ids: string[];
447
379
  }
@@ -462,11 +394,6 @@ export interface Error_type {
462
394
  request_id: string;
463
395
  }
464
396
  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';
465
- export interface ExecutorMetadata_type {
466
- docker_info: DockerSystemInfo_type;
467
- environment: Environment_type;
468
- git_hash: string;
469
- }
470
397
  export interface Export_type {
471
398
  files: ExportFile_type[];
472
399
  }
@@ -616,12 +543,6 @@ export interface IceServer_type {
616
543
  }
617
544
  export declare type ImageFormat_type = 'png' | 'jpeg';
618
545
  export declare type ImageType_type = 'png' | 'jpg';
619
- export interface IndexInfo_type {
620
- mirrors: string[];
621
- name?: string;
622
- official?: boolean;
623
- secure?: boolean;
624
- }
625
546
  export declare type InputFormat_type = {
626
547
  type: 'fbx';
627
548
  } | {
@@ -644,9 +565,9 @@ export declare type InputFormat_type = {
644
565
  units: UnitLength_type;
645
566
  };
646
567
  export interface Invoice_type {
647
- amount_due: number;
648
- amount_paid: number;
649
- amount_remaining: number;
568
+ amount_due: string;
569
+ amount_paid: string;
570
+ amount_remaining: string;
650
571
  attempt_count: number;
651
572
  attempted: boolean;
652
573
  created_at: string;
@@ -667,13 +588,13 @@ export interface Invoice_type {
667
588
  receipt_number: string;
668
589
  statement_descriptor: string;
669
590
  status: InvoiceStatus_type;
670
- subtotal: number;
671
- tax: number;
672
- total: number;
591
+ subtotal: string;
592
+ tax: string;
593
+ total: string;
673
594
  url?: string;
674
595
  }
675
596
  export interface InvoiceLineItem_type {
676
- amount: number;
597
+ amount: string;
677
598
  currency: Currency_type;
678
599
  description: string;
679
600
  id: string;
@@ -724,9 +645,7 @@ export interface MetaClusterInfo_type {
724
645
  }
725
646
  export interface Metadata_type {
726
647
  cache: CacheMetadata_type;
727
- engine: EngineMetadata_type;
728
648
  environment: Environment_type;
729
- executor: ExecutorMetadata_type;
730
649
  fs: FileSystemMetadata_type;
731
650
  git_hash: string;
732
651
  point_e: PointEMetadata_type;
@@ -925,6 +844,10 @@ export declare type ModelingCmd_type = {
925
844
  } | {
926
845
  path_id: string;
927
846
  type: 'path_get_info';
847
+ } | {
848
+ path_id: string;
849
+ type: 'path_get_curve_uuids_for_vertices';
850
+ vertex_ids: string[];
928
851
  } | {
929
852
  type: 'handle_mouse_drag_start';
930
853
  window: Point2d_type;
@@ -938,37 +861,28 @@ export declare type ModelingCmd_type = {
938
861
  } | {
939
862
  object_ids: string[];
940
863
  type: 'remove_scene_objects';
941
- };
942
- export declare type ModelingCmdId_type = string;
943
- export interface ModelingCmdReq_type {
944
- cmd: ModelingCmd_type;
945
- cmd_id: ModelingCmdId_type;
946
- }
947
- export interface ModelingCmdReqBatch_type {
948
- cmds: {
949
- [key: string]: ModelingCmdReq_type;
950
- };
951
- }
952
- export interface ModelingError_type {
953
- error_code: string;
954
- external_message: string;
955
- internal_message: string;
956
- status_code: number;
957
- }
958
- export declare type ModelingOutcome_type = {
959
- success: OkModelingCmdResponse_type;
960
864
  } | {
961
- error: ModelingError_type;
865
+ angle_snap_increment: Angle_type;
866
+ to: Point3d_type;
867
+ type: 'path_tangential_arc_to';
962
868
  } | {
963
- cancelled: {
964
- what_failed: ModelingCmdId_type;
965
- };
869
+ offset: Angle_type;
870
+ radius: number;
871
+ type: 'path_tangential_arc';
872
+ } | {
873
+ plane_id: string;
874
+ type: 'plane_intersect_and_project';
875
+ window: Point2d_type;
876
+ } | {
877
+ curve_id: string;
878
+ type: 'curve_get_end_points';
879
+ } | {
880
+ fps: number;
881
+ height: number;
882
+ type: 'reconfigure_stream';
883
+ width: number;
966
884
  };
967
- export interface ModelingOutcomes_type {
968
- outcomes: {
969
- [key: string]: ModelingOutcome_type;
970
- };
971
- }
885
+ export declare type ModelingCmdId_type = string;
972
886
  export interface MouseClick_type {
973
887
  entities_modified: string[];
974
888
  entities_selected: string[];
@@ -1047,6 +961,15 @@ export declare type OkModelingCmdResponse_type = {
1047
961
  } | {
1048
962
  data: PathGetInfo_type;
1049
963
  type: 'path_get_info';
964
+ } | {
965
+ data: PathGetCurveUuidsForVertices_type;
966
+ type: 'path_get_curve_uuids_for_vertices';
967
+ } | {
968
+ data: PlaneIntersectAndProject_type;
969
+ type: 'plane_intersect_and_project';
970
+ } | {
971
+ data: CurveGetEndPoints_type;
972
+ type: 'curve_get_end_points';
1050
973
  };
1051
974
  export declare type OkWebSocketResponseData_type = {
1052
975
  data: {
@@ -1096,6 +1019,7 @@ export declare type OutputFormat_type = {
1096
1019
  } | {
1097
1020
  coords: System_type;
1098
1021
  type: 'obj';
1022
+ units: UnitLength_type;
1099
1023
  } | {
1100
1024
  coords: System_type;
1101
1025
  storage: PlyStorage_type;
@@ -1107,29 +1031,37 @@ export declare type OutputFormat_type = {
1107
1031
  coords: System_type;
1108
1032
  storage: StlStorage_type;
1109
1033
  type: 'stl';
1034
+ units: UnitLength_type;
1110
1035
  };
1111
1036
  export declare type PathCommand_type = 'move_to' | 'line_to' | 'bez_curve_to' | 'nurbs_curve_to' | 'add_arc';
1037
+ export interface PathGetCurveUuidsForVertices_type {
1038
+ curve_ids: string[];
1039
+ }
1112
1040
  export interface PathGetInfo_type {
1113
1041
  segments: PathSegmentInfo_type[];
1114
1042
  }
1115
1043
  export declare type PathSegment_type = {
1116
1044
  end: Point3d_type;
1045
+ relative: boolean;
1117
1046
  type: 'line';
1118
1047
  } | {
1119
1048
  angle_end: number;
1120
1049
  angle_start: number;
1121
1050
  center: Point2d_type;
1122
1051
  radius: number;
1052
+ relative: boolean;
1123
1053
  type: 'arc';
1124
1054
  } | {
1125
1055
  control1: Point3d_type;
1126
1056
  control2: Point3d_type;
1127
1057
  end: Point3d_type;
1058
+ relative: boolean;
1128
1059
  type: 'bezier';
1129
1060
  };
1130
1061
  export interface PathSegmentInfo_type {
1131
1062
  command: PathCommand_type;
1132
1063
  command_id: ModelingCmdId_type;
1064
+ relative: boolean;
1133
1065
  }
1134
1066
  export interface PaymentIntent_type {
1135
1067
  client_secret: string;
@@ -1150,11 +1082,8 @@ export interface PaymentMethodCardChecks_type {
1150
1082
  cvc_check: string;
1151
1083
  }
1152
1084
  export declare type PaymentMethodType_type = 'card';
1153
- export interface PluginsInfo_type {
1154
- authorization: string[];
1155
- log: string[];
1156
- network: string[];
1157
- volume: string[];
1085
+ export interface PlaneIntersectAndProject_type {
1086
+ plane_coordinates: Point2d_type;
1158
1087
  }
1159
1088
  export declare type PlyStorage_type = 'ascii' | 'binary_little_endian' | 'binary_big_endian';
1160
1089
  export interface Point2d_type {
@@ -1176,15 +1105,6 @@ export interface RawFile_type {
1176
1105
  contents: number[];
1177
1106
  name: string;
1178
1107
  }
1179
- export interface RegistryServiceConfig_type {
1180
- allow_nondistributable_artifacts_cid_rs: string[];
1181
- allow_nondistributable_artifacts_hostnames: string[];
1182
- index_configs: {
1183
- [key: string]: IndexInfo_type;
1184
- };
1185
- insecure_registry_cid_rs: string[];
1186
- mirrors: string[];
1187
- }
1188
1108
  export interface RtcIceCandidateInit_type {
1189
1109
  candidate: string;
1190
1110
  sdpMLineIndex?: number;
@@ -1196,10 +1116,6 @@ export interface RtcSessionDescription_type {
1196
1116
  sdp: string;
1197
1117
  type: RtcSdpType_type;
1198
1118
  }
1199
- export interface Runtime_type {
1200
- path?: string;
1201
- runtime_args: string[];
1202
- }
1203
1119
  export declare type SceneSelectionType_type = 'replace' | 'add' | 'remove';
1204
1120
  export declare type SceneToolType_type = 'camera_revolve' | 'select' | 'move' | 'sketch_line' | 'sketch_curve' | 'sketch_curve_mod';
1205
1121
  export interface SelectGet_type {
@@ -1241,13 +1157,6 @@ export interface System_type {
1241
1157
  forward: AxisDirectionPair_type;
1242
1158
  up: AxisDirectionPair_type;
1243
1159
  }
1244
- export declare type SystemInfoCgroupDriverEnum_type = '' | 'cgroupfs' | 'systemd' | 'none';
1245
- export declare type SystemInfoCgroupVersionEnum_type = '' | '1' | '2';
1246
- export interface SystemInfoDefaultAddressPools_type {
1247
- base?: string;
1248
- size?: number;
1249
- }
1250
- export declare type SystemInfoIsolationEnum_type = '' | 'default' | 'hyperv' | 'process';
1251
1160
  export interface TakeSnapshot_type {
1252
1161
  contents: string;
1253
1162
  }
@@ -1515,6 +1424,7 @@ export interface Models {
1515
1424
  AiPluginAuthType_type: AiPluginAuthType_type;
1516
1425
  AiPluginHttpAuthType_type: AiPluginHttpAuthType_type;
1517
1426
  AiPluginManifest_type: AiPluginManifest_type;
1427
+ Angle_type: Angle_type;
1518
1428
  AnnotationLineEnd_type: AnnotationLineEnd_type;
1519
1429
  AnnotationLineEndOptions_type: AnnotationLineEndOptions_type;
1520
1430
  AnnotationOptions_type: AnnotationOptions_type;
@@ -1546,13 +1456,13 @@ export interface Models {
1546
1456
  CodeLanguage_type: CodeLanguage_type;
1547
1457
  CodeOutput_type: CodeOutput_type;
1548
1458
  Color_type: Color_type;
1549
- Commit_type: Commit_type;
1550
1459
  Connection_type: Connection_type;
1551
1460
  CountryCode_type: CountryCode_type;
1552
1461
  Coupon_type: Coupon_type;
1553
1462
  CreatedAtSortMode_type: CreatedAtSortMode_type;
1554
1463
  Currency_type: Currency_type;
1555
1464
  CurveGetControlPoints_type: CurveGetControlPoints_type;
1465
+ CurveGetEndPoints_type: CurveGetEndPoints_type;
1556
1466
  CurveGetType_type: CurveGetType_type;
1557
1467
  CurveType_type: CurveType_type;
1558
1468
  Customer_type: Customer_type;
@@ -1562,9 +1472,7 @@ export interface Models {
1562
1472
  DeviceAuthVerifyParams_type: DeviceAuthVerifyParams_type;
1563
1473
  Direction_type: Direction_type;
1564
1474
  Discount_type: Discount_type;
1565
- DockerSystemInfo_type: DockerSystemInfo_type;
1566
1475
  EmailAuthenticationForm_type: EmailAuthenticationForm_type;
1567
- EngineMetadata_type: EngineMetadata_type;
1568
1476
  EntityGetAllChildUuids_type: EntityGetAllChildUuids_type;
1569
1477
  EntityGetChildUuid_type: EntityGetChildUuid_type;
1570
1478
  EntityGetNumChildren_type: EntityGetNumChildren_type;
@@ -1573,7 +1481,6 @@ export interface Models {
1573
1481
  Environment_type: Environment_type;
1574
1482
  Error_type: Error_type;
1575
1483
  ErrorCode_type: ErrorCode_type;
1576
- ExecutorMetadata_type: ExecutorMetadata_type;
1577
1484
  Export_type: Export_type;
1578
1485
  ExportFile_type: ExportFile_type;
1579
1486
  ExtendedUser_type: ExtendedUser_type;
@@ -1597,7 +1504,6 @@ export interface Models {
1597
1504
  IceServer_type: IceServer_type;
1598
1505
  ImageFormat_type: ImageFormat_type;
1599
1506
  ImageType_type: ImageType_type;
1600
- IndexInfo_type: IndexInfo_type;
1601
1507
  InputFormat_type: InputFormat_type;
1602
1508
  Invoice_type: Invoice_type;
1603
1509
  InvoiceLineItem_type: InvoiceLineItem_type;
@@ -1613,11 +1519,6 @@ export interface Models {
1613
1519
  Method_type: Method_type;
1614
1520
  ModelingCmd_type: ModelingCmd_type;
1615
1521
  ModelingCmdId_type: ModelingCmdId_type;
1616
- ModelingCmdReq_type: ModelingCmdReq_type;
1617
- ModelingCmdReqBatch_type: ModelingCmdReqBatch_type;
1618
- ModelingError_type: ModelingError_type;
1619
- ModelingOutcome_type: ModelingOutcome_type;
1620
- ModelingOutcomes_type: ModelingOutcomes_type;
1621
1522
  MouseClick_type: MouseClick_type;
1622
1523
  NewAddress_type: NewAddress_type;
1623
1524
  OAuth2ClientInfo_type: OAuth2ClientInfo_type;
@@ -1628,6 +1529,7 @@ export interface Models {
1628
1529
  OutputFile_type: OutputFile_type;
1629
1530
  OutputFormat_type: OutputFormat_type;
1630
1531
  PathCommand_type: PathCommand_type;
1532
+ PathGetCurveUuidsForVertices_type: PathGetCurveUuidsForVertices_type;
1631
1533
  PathGetInfo_type: PathGetInfo_type;
1632
1534
  PathSegment_type: PathSegment_type;
1633
1535
  PathSegmentInfo_type: PathSegmentInfo_type;
@@ -1635,18 +1537,16 @@ export interface Models {
1635
1537
  PaymentMethod_type: PaymentMethod_type;
1636
1538
  PaymentMethodCardChecks_type: PaymentMethodCardChecks_type;
1637
1539
  PaymentMethodType_type: PaymentMethodType_type;
1638
- PluginsInfo_type: PluginsInfo_type;
1540
+ PlaneIntersectAndProject_type: PlaneIntersectAndProject_type;
1639
1541
  PlyStorage_type: PlyStorage_type;
1640
1542
  Point2d_type: Point2d_type;
1641
1543
  Point3d_type: Point3d_type;
1642
1544
  PointEMetadata_type: PointEMetadata_type;
1643
1545
  Pong_type: Pong_type;
1644
1546
  RawFile_type: RawFile_type;
1645
- RegistryServiceConfig_type: RegistryServiceConfig_type;
1646
1547
  RtcIceCandidateInit_type: RtcIceCandidateInit_type;
1647
1548
  RtcSdpType_type: RtcSdpType_type;
1648
1549
  RtcSessionDescription_type: RtcSessionDescription_type;
1649
- Runtime_type: Runtime_type;
1650
1550
  SceneSelectionType_type: SceneSelectionType_type;
1651
1551
  SceneToolType_type: SceneToolType_type;
1652
1552
  SelectGet_type: SelectGet_type;
@@ -1660,10 +1560,6 @@ export interface Models {
1660
1560
  StlStorage_type: StlStorage_type;
1661
1561
  SuccessWebSocketResponse_type: SuccessWebSocketResponse_type;
1662
1562
  System_type: System_type;
1663
- SystemInfoCgroupDriverEnum_type: SystemInfoCgroupDriverEnum_type;
1664
- SystemInfoCgroupVersionEnum_type: SystemInfoCgroupVersionEnum_type;
1665
- SystemInfoDefaultAddressPools_type: SystemInfoDefaultAddressPools_type;
1666
- SystemInfoIsolationEnum_type: SystemInfoIsolationEnum_type;
1667
1563
  TakeSnapshot_type: TakeSnapshot_type;
1668
1564
  UnitAngle_type: UnitAngle_type;
1669
1565
  UnitAngleConversion_type: UnitAngleConversion_type;