@kittycad/lib 0.0.37 → 0.0.38

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,23 @@ 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';
966
879
  };
967
- export interface ModelingOutcomes_type {
968
- outcomes: {
969
- [key: string]: ModelingOutcome_type;
970
- };
971
- }
880
+ export declare type ModelingCmdId_type = string;
972
881
  export interface MouseClick_type {
973
882
  entities_modified: string[];
974
883
  entities_selected: string[];
@@ -1047,6 +956,15 @@ export declare type OkModelingCmdResponse_type = {
1047
956
  } | {
1048
957
  data: PathGetInfo_type;
1049
958
  type: 'path_get_info';
959
+ } | {
960
+ data: PathGetCurveUuidsForVertices_type;
961
+ type: 'path_get_curve_uuids_for_vertices';
962
+ } | {
963
+ data: PlaneIntersectAndProject_type;
964
+ type: 'plane_intersect_and_project';
965
+ } | {
966
+ data: CurveGetEndPoints_type;
967
+ type: 'curve_get_end_points';
1050
968
  };
1051
969
  export declare type OkWebSocketResponseData_type = {
1052
970
  data: {
@@ -1109,27 +1027,34 @@ export declare type OutputFormat_type = {
1109
1027
  type: 'stl';
1110
1028
  };
1111
1029
  export declare type PathCommand_type = 'move_to' | 'line_to' | 'bez_curve_to' | 'nurbs_curve_to' | 'add_arc';
1030
+ export interface PathGetCurveUuidsForVertices_type {
1031
+ curve_ids: string[];
1032
+ }
1112
1033
  export interface PathGetInfo_type {
1113
1034
  segments: PathSegmentInfo_type[];
1114
1035
  }
1115
1036
  export declare type PathSegment_type = {
1116
1037
  end: Point3d_type;
1038
+ relative: boolean;
1117
1039
  type: 'line';
1118
1040
  } | {
1119
1041
  angle_end: number;
1120
1042
  angle_start: number;
1121
1043
  center: Point2d_type;
1122
1044
  radius: number;
1045
+ relative: boolean;
1123
1046
  type: 'arc';
1124
1047
  } | {
1125
1048
  control1: Point3d_type;
1126
1049
  control2: Point3d_type;
1127
1050
  end: Point3d_type;
1051
+ relative: boolean;
1128
1052
  type: 'bezier';
1129
1053
  };
1130
1054
  export interface PathSegmentInfo_type {
1131
1055
  command: PathCommand_type;
1132
1056
  command_id: ModelingCmdId_type;
1057
+ relative: boolean;
1133
1058
  }
1134
1059
  export interface PaymentIntent_type {
1135
1060
  client_secret: string;
@@ -1150,11 +1075,8 @@ export interface PaymentMethodCardChecks_type {
1150
1075
  cvc_check: string;
1151
1076
  }
1152
1077
  export declare type PaymentMethodType_type = 'card';
1153
- export interface PluginsInfo_type {
1154
- authorization: string[];
1155
- log: string[];
1156
- network: string[];
1157
- volume: string[];
1078
+ export interface PlaneIntersectAndProject_type {
1079
+ plane_coordinates: Point2d_type;
1158
1080
  }
1159
1081
  export declare type PlyStorage_type = 'ascii' | 'binary_little_endian' | 'binary_big_endian';
1160
1082
  export interface Point2d_type {
@@ -1176,15 +1098,6 @@ export interface RawFile_type {
1176
1098
  contents: number[];
1177
1099
  name: string;
1178
1100
  }
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
1101
  export interface RtcIceCandidateInit_type {
1189
1102
  candidate: string;
1190
1103
  sdpMLineIndex?: number;
@@ -1196,10 +1109,6 @@ export interface RtcSessionDescription_type {
1196
1109
  sdp: string;
1197
1110
  type: RtcSdpType_type;
1198
1111
  }
1199
- export interface Runtime_type {
1200
- path?: string;
1201
- runtime_args: string[];
1202
- }
1203
1112
  export declare type SceneSelectionType_type = 'replace' | 'add' | 'remove';
1204
1113
  export declare type SceneToolType_type = 'camera_revolve' | 'select' | 'move' | 'sketch_line' | 'sketch_curve' | 'sketch_curve_mod';
1205
1114
  export interface SelectGet_type {
@@ -1241,13 +1150,6 @@ export interface System_type {
1241
1150
  forward: AxisDirectionPair_type;
1242
1151
  up: AxisDirectionPair_type;
1243
1152
  }
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
1153
  export interface TakeSnapshot_type {
1252
1154
  contents: string;
1253
1155
  }
@@ -1515,6 +1417,7 @@ export interface Models {
1515
1417
  AiPluginAuthType_type: AiPluginAuthType_type;
1516
1418
  AiPluginHttpAuthType_type: AiPluginHttpAuthType_type;
1517
1419
  AiPluginManifest_type: AiPluginManifest_type;
1420
+ Angle_type: Angle_type;
1518
1421
  AnnotationLineEnd_type: AnnotationLineEnd_type;
1519
1422
  AnnotationLineEndOptions_type: AnnotationLineEndOptions_type;
1520
1423
  AnnotationOptions_type: AnnotationOptions_type;
@@ -1546,13 +1449,13 @@ export interface Models {
1546
1449
  CodeLanguage_type: CodeLanguage_type;
1547
1450
  CodeOutput_type: CodeOutput_type;
1548
1451
  Color_type: Color_type;
1549
- Commit_type: Commit_type;
1550
1452
  Connection_type: Connection_type;
1551
1453
  CountryCode_type: CountryCode_type;
1552
1454
  Coupon_type: Coupon_type;
1553
1455
  CreatedAtSortMode_type: CreatedAtSortMode_type;
1554
1456
  Currency_type: Currency_type;
1555
1457
  CurveGetControlPoints_type: CurveGetControlPoints_type;
1458
+ CurveGetEndPoints_type: CurveGetEndPoints_type;
1556
1459
  CurveGetType_type: CurveGetType_type;
1557
1460
  CurveType_type: CurveType_type;
1558
1461
  Customer_type: Customer_type;
@@ -1562,9 +1465,7 @@ export interface Models {
1562
1465
  DeviceAuthVerifyParams_type: DeviceAuthVerifyParams_type;
1563
1466
  Direction_type: Direction_type;
1564
1467
  Discount_type: Discount_type;
1565
- DockerSystemInfo_type: DockerSystemInfo_type;
1566
1468
  EmailAuthenticationForm_type: EmailAuthenticationForm_type;
1567
- EngineMetadata_type: EngineMetadata_type;
1568
1469
  EntityGetAllChildUuids_type: EntityGetAllChildUuids_type;
1569
1470
  EntityGetChildUuid_type: EntityGetChildUuid_type;
1570
1471
  EntityGetNumChildren_type: EntityGetNumChildren_type;
@@ -1573,7 +1474,6 @@ export interface Models {
1573
1474
  Environment_type: Environment_type;
1574
1475
  Error_type: Error_type;
1575
1476
  ErrorCode_type: ErrorCode_type;
1576
- ExecutorMetadata_type: ExecutorMetadata_type;
1577
1477
  Export_type: Export_type;
1578
1478
  ExportFile_type: ExportFile_type;
1579
1479
  ExtendedUser_type: ExtendedUser_type;
@@ -1597,7 +1497,6 @@ export interface Models {
1597
1497
  IceServer_type: IceServer_type;
1598
1498
  ImageFormat_type: ImageFormat_type;
1599
1499
  ImageType_type: ImageType_type;
1600
- IndexInfo_type: IndexInfo_type;
1601
1500
  InputFormat_type: InputFormat_type;
1602
1501
  Invoice_type: Invoice_type;
1603
1502
  InvoiceLineItem_type: InvoiceLineItem_type;
@@ -1613,11 +1512,6 @@ export interface Models {
1613
1512
  Method_type: Method_type;
1614
1513
  ModelingCmd_type: ModelingCmd_type;
1615
1514
  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
1515
  MouseClick_type: MouseClick_type;
1622
1516
  NewAddress_type: NewAddress_type;
1623
1517
  OAuth2ClientInfo_type: OAuth2ClientInfo_type;
@@ -1628,6 +1522,7 @@ export interface Models {
1628
1522
  OutputFile_type: OutputFile_type;
1629
1523
  OutputFormat_type: OutputFormat_type;
1630
1524
  PathCommand_type: PathCommand_type;
1525
+ PathGetCurveUuidsForVertices_type: PathGetCurveUuidsForVertices_type;
1631
1526
  PathGetInfo_type: PathGetInfo_type;
1632
1527
  PathSegment_type: PathSegment_type;
1633
1528
  PathSegmentInfo_type: PathSegmentInfo_type;
@@ -1635,18 +1530,16 @@ export interface Models {
1635
1530
  PaymentMethod_type: PaymentMethod_type;
1636
1531
  PaymentMethodCardChecks_type: PaymentMethodCardChecks_type;
1637
1532
  PaymentMethodType_type: PaymentMethodType_type;
1638
- PluginsInfo_type: PluginsInfo_type;
1533
+ PlaneIntersectAndProject_type: PlaneIntersectAndProject_type;
1639
1534
  PlyStorage_type: PlyStorage_type;
1640
1535
  Point2d_type: Point2d_type;
1641
1536
  Point3d_type: Point3d_type;
1642
1537
  PointEMetadata_type: PointEMetadata_type;
1643
1538
  Pong_type: Pong_type;
1644
1539
  RawFile_type: RawFile_type;
1645
- RegistryServiceConfig_type: RegistryServiceConfig_type;
1646
1540
  RtcIceCandidateInit_type: RtcIceCandidateInit_type;
1647
1541
  RtcSdpType_type: RtcSdpType_type;
1648
1542
  RtcSessionDescription_type: RtcSessionDescription_type;
1649
- Runtime_type: Runtime_type;
1650
1543
  SceneSelectionType_type: SceneSelectionType_type;
1651
1544
  SceneToolType_type: SceneToolType_type;
1652
1545
  SelectGet_type: SelectGet_type;
@@ -1660,10 +1553,6 @@ export interface Models {
1660
1553
  StlStorage_type: StlStorage_type;
1661
1554
  SuccessWebSocketResponse_type: SuccessWebSocketResponse_type;
1662
1555
  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
1556
  TakeSnapshot_type: TakeSnapshot_type;
1668
1557
  UnitAngle_type: UnitAngle_type;
1669
1558
  UnitAngleConversion_type: UnitAngleConversion_type;