@kittycad/lib 4.3.12 → 4.3.14

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 (28) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/src/api/factory/create_user_factory_job.d.ts +4 -6
  4. package/dist/types/src/api/factory/create_user_factory_job.d.ts.map +1 -1
  5. package/dist/types/src/api/factory/get_user_factory_finishes.d.ts +22 -0
  6. package/dist/types/src/api/factory/get_user_factory_finishes.d.ts.map +1 -0
  7. package/dist/types/src/api/factory/get_user_factory_materials.d.ts +22 -0
  8. package/dist/types/src/api/factory/get_user_factory_materials.d.ts.map +1 -0
  9. package/dist/types/src/api/ml/create_text_to_cad.d.ts +1 -1
  10. package/dist/types/src/api/ml/create_text_to_cad_iteration.d.ts +1 -1
  11. package/dist/types/src/api/ml/create_text_to_cad_multi_file_iteration.d.ts +1 -1
  12. package/dist/types/src/api/payments/get_org_usage_collection_threshold.d.ts +20 -0
  13. package/dist/types/src/api/payments/get_org_usage_collection_threshold.d.ts.map +1 -0
  14. package/dist/types/src/api/payments/get_user_usage_collection_threshold.d.ts +22 -0
  15. package/dist/types/src/api/payments/get_user_usage_collection_threshold.d.ts.map +1 -0
  16. package/dist/types/src/api/payments/reset_org_usage_collection_threshold.d.ts +22 -0
  17. package/dist/types/src/api/payments/reset_org_usage_collection_threshold.d.ts.map +1 -0
  18. package/dist/types/src/api/payments/reset_user_usage_collection_threshold.d.ts +22 -0
  19. package/dist/types/src/api/payments/reset_user_usage_collection_threshold.d.ts.map +1 -0
  20. package/dist/types/src/api/payments/set_org_usage_collection_threshold.d.ts +22 -0
  21. package/dist/types/src/api/payments/set_org_usage_collection_threshold.d.ts.map +1 -0
  22. package/dist/types/src/api/payments/set_user_usage_collection_threshold.d.ts +22 -0
  23. package/dist/types/src/api/payments/set_user_usage_collection_threshold.d.ts.map +1 -0
  24. package/dist/types/src/index.d.ts +17 -1
  25. package/dist/types/src/index.d.ts.map +1 -1
  26. package/dist/types/src/models.d.ts +191 -11
  27. package/dist/types/src/models.d.ts.map +1 -1
  28. package/package.json +2 -2
@@ -50,12 +50,108 @@ export interface AddressDetails {
50
50
  zip?: string;
51
51
  }
52
52
  export interface AdjacencyInfo {
53
- /** nullable:true, description:Adjacent edge and face info. */
53
+ /** nullable:true, description:Next adjacent edge and face info. */
54
54
  adjacent_info?: EdgeInfo;
55
55
  /** nullable:true, description:Opposite edge and face info. */
56
56
  opposite_info?: EdgeInfo;
57
57
  /** nullable:true, description:Original edge id and face info. */
58
58
  original_info?: EdgeInfo;
59
+ /** nullable:true, description:Previous adjacent edge and face info. */
60
+ previous_adjacent_info?: EdgeInfo;
61
+ }
62
+ export interface AggregateUsageCollectionThresholdBounds {
63
+ /**
64
+ * {
65
+ * "title": "double",
66
+ * "format": "money-usd"
67
+ * }
68
+ */
69
+ maximum_amount: number;
70
+ /**
71
+ * {
72
+ * "title": "double",
73
+ * "format": "money-usd"
74
+ * }
75
+ */
76
+ minimum_amount: number;
77
+ }
78
+ export interface AggregateUsageCollectionThresholdSet {
79
+ /**
80
+ * {
81
+ * "title": "double",
82
+ * "format": "money-usd"
83
+ * }
84
+ */
85
+ amount: number;
86
+ /**
87
+ * {
88
+ * "format": "int64",
89
+ * "description": "Version returned by the read that this mutation is based on."
90
+ * }
91
+ */
92
+ expected_version: number;
93
+ }
94
+ export type AggregateUsageCollectionThresholdSource =
95
+ /** Precedence source that determines an account's effective threshold. */
96
+ 'admin' | 'customer' | 'system_default';
97
+ export interface AggregateUsageCollectionThresholdView {
98
+ /**
99
+ * {
100
+ * "nullable": true,
101
+ * "title": "double",
102
+ * "format": "money-usd",
103
+ * "description": "Zoo-controlled override. When present, customer mutations are disabled."
104
+ * }
105
+ */
106
+ admin_amount?: number;
107
+ /**
108
+ * {
109
+ * "$ref": "#/components/schemas/AggregateUsageCollectionThresholdBounds"
110
+ * }
111
+ */
112
+ admin_bounds: AggregateUsageCollectionThresholdBounds;
113
+ /**
114
+ * {
115
+ * "nullable": true,
116
+ * "title": "double",
117
+ * "format": "money-usd",
118
+ * "description": "Customer preference used when no Zoo-controlled override is active."
119
+ * }
120
+ */
121
+ customer_amount?: number;
122
+ /**
123
+ * {
124
+ * "$ref": "#/components/schemas/AggregateUsageCollectionThresholdBounds"
125
+ * }
126
+ */
127
+ customer_bounds: AggregateUsageCollectionThresholdBounds;
128
+ /**
129
+ * {
130
+ * "title": "double",
131
+ * "format": "money-usd"
132
+ * }
133
+ */
134
+ default_amount: number;
135
+ /**
136
+ * {
137
+ * "title": "double",
138
+ * "format": "money-usd"
139
+ * }
140
+ */
141
+ effective_amount: number;
142
+ /**
143
+ * {
144
+ * "$ref": "#/components/schemas/AggregateUsageCollectionThresholdSource"
145
+ * }
146
+ */
147
+ source: AggregateUsageCollectionThresholdSource;
148
+ /**
149
+ * {
150
+ * "format": "int64",
151
+ * "description": "Monotonic version of the account's append-only threshold history."
152
+ * }
153
+ */
154
+ version: number;
59
155
  }
60
156
  export interface Angle {
61
157
  /** What unit is the measurement? */
@@ -1318,7 +1414,7 @@ export type BillingRolloverPolicy = 'none' | 'year1_to_year2_once';
1318
1414
  export type BillingUnit = 'file' | 'minute' | 'second' | 'year' | 'period';
1319
1415
  export type BillingUnitGranularity = 'minute' | 'second';
1320
1416
  export type BlendType = 'tangent';
1321
- export type BlockReason = 'missing_payment_method' | 'payment_method_failed' | 'upgrade_downgrade_abuse' | 'admin';
1417
+ export type BlockReason = 'missing_payment_method' | 'payment_method_failed' | 'billing_threshold_reached' | 'upgrade_downgrade_abuse' | 'admin';
1322
1418
  export interface BodiesCreated {
1323
1419
  /** All bodies created by this operation. */
1324
1420
  bodies: BodyCreated[];
@@ -1896,6 +1992,20 @@ export type Currency =
1896
1992
 
1897
1993
  This is intentionally billing-owned instead of Stripe-owned, so contract and manual invoice flows can use the same validated type without reaching back into a provider-specific crate. */
1898
1994
  string;
1995
+ export interface CurveDebug {
1996
+ /** nullable:true, description:Center point of segment. */
1997
+ center?: Point2d;
1998
+ /** nullable:true, description:End point of segment. */
1999
+ end?: Point2d;
2000
+ /** ID for this segment. */
2001
+ id: ModelingCmdId;
2002
+ /** nullable:true, description:Midpoint on a three point arc */
2003
+ mid?: Point2d;
2004
+ /** What kind of segment is it (line, arc, etc) */
2005
+ segment_type: CurveTypeDebug;
2006
+ /** nullable:true, description:Start point of segment or circle. */
2007
+ start?: Point2d;
2008
+ }
1899
2009
  export interface CurveGetControlPoints {
1900
2010
  /** Control points in the curve. */
1901
2011
  control_points: Point3d[];
@@ -1915,6 +2025,7 @@ export interface CurveSetConstraint {
1915
2025
  export type CurveType =
1916
2026
  /** The type of Curve (embedded within path) */
1917
2027
  'line' | 'arc' | 'nurbs';
2028
+ export type CurveTypeDebug = 'line' | 'three_point_arc' | 'circle';
1918
2029
  export interface CustomModel {
1919
2030
  /** title:DateTime, format:date-time, description:The date and time the model was created. */
1920
2031
  created_at: string;
@@ -2705,6 +2816,10 @@ export interface FaceIsPlanar {
2705
2816
  /** nullable:true, description:plane's local z-axis (normal) */
2706
2817
  z_axis?: Point3d;
2707
2818
  }
2819
+ export interface FactoryCustomerCatalogOption {
2820
+ /** Exact catalog name to submit in the corresponding intake field. */
2821
+ name: string;
2822
+ }
2708
2823
  export interface FactoryJobResponse {
2709
2824
  /** nullable:true, description:The current (first) version id of the job. */
2710
2825
  current_version_id?: Uuid;
@@ -2728,7 +2843,7 @@ export interface FailureWebSocketResponse {
2728
2843
  success: boolean;
2729
2844
  }
2730
2845
  export type FbxStorage = 'ascii' | 'binary';
2731
- export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'disallow_self_signup' | 'email_with_s_e_s' | 'enable_z0006_lint' | 'factory_portal' | 'kcl_new_lexer_parser' | 'redirect_to_govcloud' | 'require_saml_auth' | 'local_dev' | 'newsletter' | 'prefix_email_subject' | 'enterprise_cockroach' | 'same_site_none_cookies' | 'validate_tax_info' | 'modeling_dialogs' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'sketch_experimental_features' | 'web_app_file_browser' | 'zookeeper_pro_mode' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2846
+ export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'disallow_self_signup' | 'email_with_s_e_s' | 'enable_z0006_lint' | 'factory_portal' | 'kcl_new_lexer_parser' | 'redirect_to_govcloud' | 'require_saml_auth' | 'local_dev' | 'newsletter' | 'prefix_email_subject' | 'enterprise_cockroach' | 'same_site_none_cookies' | 'validate_tax_info' | 'modeling_dialogs' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'sketch_experimental_features' | 'web_app_file_browser' | 'zookeeper_pro_mode' | 'zookeeper_ultra_mode' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2732
2847
  export interface FileCenterOfMass {
2733
2848
  /** nullable:true, description:The resulting center of mass. */
2734
2849
  center_of_mass?: Point3d;
@@ -3653,6 +3768,11 @@ export type MirrorAcross = {
3653
3768
  /** format:uuid, description:Edge ID. */
3654
3769
  id: string;
3655
3770
  };
3771
+ } | {
3772
+ edge_reference: {
3773
+ /** Stable edge reference. */
3774
+ reference: EdgeSpecifier;
3775
+ };
3656
3776
  } | {
3657
3777
  axis: {
3658
3778
  /** Axis to use as mirror. */
@@ -3758,7 +3878,7 @@ export interface MlCopilotFile {
3758
3878
  /** The name of the file. */
3759
3879
  name: string;
3760
3880
  }
3761
- export type MlCopilotMode = 'fast' | 'thoughtful' | 'auto' | 'zookeeper_pro';
3881
+ export type MlCopilotMode = 'fast' | 'thoughtful' | 'auto' | 'zookeeper_pro' | 'zookeeper_ultra';
3762
3882
  export interface MlCopilotModeOption {
3763
3883
  /** Human-readable display description. */
3764
3884
  description: string;
@@ -4107,10 +4227,17 @@ export type ModelingCmd = {
4107
4227
  /**
4108
4228
  * {
4109
4229
  * "nullable": true,
4110
- * "description": "What direction to extrude in. If None, the engine will extrude in the direction normal of the target's plane."
4230
+ * "description": "What direction to extrude in. If None, the engine will extrude in the direction normal of the target's plane. Legacy field; if `direction_reference` is provided, the reference takes precedence."
4111
4231
  * }
4112
4232
  */
4113
4233
  direction?: DirectionType;
4234
+ /**
4235
+ * {
4236
+ * "nullable": true,
4237
+ * "description": "Edge specifier identifying the edge direction to use. If provided, this takes precedence over `direction`."
4238
+ * }
4239
+ */
4240
+ direction_reference?: EdgeSpecifier;
4114
4241
  /** How far off the plane to extrude */
4115
4242
  distance: LengthUnit;
4116
4243
  /**
@@ -4148,8 +4275,20 @@ export type ModelingCmd = {
4148
4275
  * }
4149
4276
  */
4150
4277
  opposite?: OppositeForLengthUnit;
4151
- /** Which sketch to extrude. Must be a closed 2D solid. */
4152
- target: ModelingCmdId;
4278
+ /**
4279
+ * {
4280
+ * "nullable": true,
4281
+ * "description": "Which sketch to extrude (legacy API). Must be a closed 2D solid. If `target_reference` is provided, the reference takes precedence."
4282
+ * }
4283
+ */
4284
+ target?: ModelingCmdId;
4285
+ /**
4286
+ * {
4287
+ * "nullable": true,
4288
+ * "description": "Edge specifier identifying the edge to extrude. If provided, this takes precedence over `target`."
4289
+ * }
4290
+ */
4291
+ target_reference?: EdgeSpecifier;
4153
4292
  type: 'extrude';
4154
4293
  } | {
4155
4294
  /**
@@ -4237,6 +4376,13 @@ export type ModelingCmd = {
4237
4376
  * }
4238
4377
  */
4239
4378
  orient_profile_perpendicular?: boolean;
4379
+ /**
4380
+ * {
4381
+ * "nullable": true,
4382
+ * "description": "If orient_profile_perpendicular is true, the sketch shall be oriented such that the local Y axis of the sketch will be oriented to align with this element as much as possible. Defaults to +Z if not set"
4383
+ * }
4384
+ */
4385
+ projected_axis?: DirectionType;
4240
4386
  /**
4241
4387
  * {
4242
4388
  * "nullable": true,
@@ -5503,8 +5649,8 @@ export type ModelingCmd = {
5503
5649
  padding?: number;
5504
5650
  type: 'view_isometric';
5505
5651
  } | {
5506
- /** format:uuid, description:Any edge that lies on the extrusion base path. */
5507
- edge_id: string;
5652
+ /** nullable:true, format:uuid, description:Any edge that lies on the extrusion base path. */
5653
+ edge_id?: string;
5508
5654
  /**
5509
5655
  * {
5510
5656
  * "format": "uuid",
@@ -5514,8 +5660,8 @@ export type ModelingCmd = {
5514
5660
  object_id: string;
5515
5661
  type: 'solid3d_get_extrusion_face_info';
5516
5662
  } | {
5517
- /** format:uuid, description:Any edge that lies on the extrusion base path. */
5518
- edge_id: string;
5663
+ /** nullable:true, format:uuid, description:Any edge that lies on the extrusion base path. */
5664
+ edge_id?: string;
5519
5665
  /** format:uuid, description:The Solid3d object whose info is being queried. */
5520
5666
  object_id: string;
5521
5667
  type: 'solid3d_get_adjacency_info';
@@ -5779,6 +5925,10 @@ export type ModelingCmd = {
5779
5925
  */
5780
5926
  object_id?: string;
5781
5927
  type: 'closest_edge';
5928
+ } | {
5929
+ /** Which path to query */
5930
+ path_id: ModelingCmdId;
5931
+ type: 'sketch_get_info';
5782
5932
  };
5783
5933
  export type ModelingCmdId =
5784
5934
  /**
@@ -7290,6 +7440,14 @@ export type OkModelingCmdResponse = {
7290
7440
  */
7291
7441
  data: ClosestEdge;
7292
7442
  type: 'closest_edge';
7443
+ } | {
7444
+ /**
7445
+ * {
7446
+ * "$ref": "#/components/schemas/SketchGetInfo"
7447
+ * }
7448
+ */
7449
+ data: SketchGetInfo;
7450
+ type: 'sketch_get_info';
7293
7451
  };
7294
7452
  export type OkWebSocketResponseData = {
7295
7453
  data: {
@@ -8927,6 +9085,20 @@ export interface SideFace {
8927
9085
  /** format:uuid, description:ID of the path this face is being extruded from. */
8928
9086
  path_id: string;
8929
9087
  }
9088
+ export interface SketchGetInfo {
9089
+ /** All curves in this sketch. */
9090
+ curves: CurveDebug[];
9091
+ /**
9092
+ * {
9093
+ * "format": "uint16",
9094
+ * "minimum": 0,
9095
+ * "description": "How many regions the Toolpaths library thinks exist"
9096
+ * }
9097
+ */
9098
+ region_count: number;
9099
+ /** OBJ representation of the topology from Toolpaths library. */
9100
+ region_obj: string;
9101
+ }
8930
9102
  export interface SketchModeDisable {
8931
9103
  }
8932
9104
  export interface Solid2dAddHole {
@@ -10996,6 +11168,10 @@ export interface Models {
10996
11168
  Address: Address;
10997
11169
  AddressDetails: AddressDetails;
10998
11170
  AdjacencyInfo: AdjacencyInfo;
11171
+ AggregateUsageCollectionThresholdBounds: AggregateUsageCollectionThresholdBounds;
11172
+ AggregateUsageCollectionThresholdSet: AggregateUsageCollectionThresholdSet;
11173
+ AggregateUsageCollectionThresholdSource: AggregateUsageCollectionThresholdSource;
11174
+ AggregateUsageCollectionThresholdView: AggregateUsageCollectionThresholdView;
10999
11175
  Angle: Angle;
11000
11176
  AnnotationBasicDimension: AnnotationBasicDimension;
11001
11177
  AnnotationFeatureControl: AnnotationFeatureControl;
@@ -11104,11 +11280,13 @@ export interface Models {
11104
11280
  CreateShortlinkResponse: CreateShortlinkResponse;
11105
11281
  CreatedAtSortMode: CreatedAtSortMode;
11106
11282
  Currency: Currency;
11283
+ CurveDebug: CurveDebug;
11107
11284
  CurveGetControlPoints: CurveGetControlPoints;
11108
11285
  CurveGetEndPoints: CurveGetEndPoints;
11109
11286
  CurveGetType: CurveGetType;
11110
11287
  CurveSetConstraint: CurveSetConstraint;
11111
11288
  CurveType: CurveType;
11289
+ CurveTypeDebug: CurveTypeDebug;
11112
11290
  CustomModel: CustomModel;
11113
11291
  Customer: Customer;
11114
11292
  CustomerBalance: CustomerBalance;
@@ -11193,6 +11371,7 @@ export interface Models {
11193
11371
  FaceGetGradient: FaceGetGradient;
11194
11372
  FaceGetPosition: FaceGetPosition;
11195
11373
  FaceIsPlanar: FaceIsPlanar;
11374
+ FactoryCustomerCatalogOption: FactoryCustomerCatalogOption;
11196
11375
  FactoryJobResponse: FactoryJobResponse;
11197
11376
  FailureWebSocketResponse: FailureWebSocketResponse;
11198
11377
  FbxStorage: FbxStorage;
@@ -11414,6 +11593,7 @@ export interface Models {
11414
11593
  Shortlink: Shortlink;
11415
11594
  ShortlinkResultsPage: ShortlinkResultsPage;
11416
11595
  SideFace: SideFace;
11596
+ SketchGetInfo: SketchGetInfo;
11417
11597
  SketchModeDisable: SketchModeDisable;
11418
11598
  Solid2dAddHole: Solid2dAddHole;
11419
11599
  Solid3dCutEdgeReferences: Solid3dCutEdgeReferences;