@kittycad/lib 3.1.2 → 3.1.4
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.
- package/dist/cjs/index.cjs +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/__tests__/gen/ml-get_text_to_cad_part_for_user.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ml-get_text_to_cad_part_for_user.test.d.ts.map +1 -0
- package/dist/types/__tests__/gen/ml-list_text_to_cad_parts_for_user.test.d.ts.map +1 -1
- package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts +8 -0
- package/dist/types/src/api/ml/create_proprietary_to_kcl.d.ts.map +1 -1
- package/dist/types/src/api/ml/{get_text_to_cad_parts_for_user.d.ts → get_text_to_cad_part_for_user.d.ts} +5 -5
- package/dist/types/src/api/ml/get_text_to_cad_part_for_user.d.ts.map +1 -0
- package/dist/types/src/api/ml/list_text_to_cad_parts_for_user.d.ts +4 -2
- package/dist/types/src/api/ml/list_text_to_cad_parts_for_user.d.ts.map +1 -1
- package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts +3 -1
- package/dist/types/src/api/payments/delete_payment_method_for_user.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +400 -10
- package/dist/types/src/models.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/__tests__/gen/ml-get_text_to_cad_parts_for_user.test.d.ts +0 -2
- package/dist/types/__tests__/gen/ml-get_text_to_cad_parts_for_user.test.d.ts.map +0 -1
- package/dist/types/src/api/ml/get_text_to_cad_parts_for_user.d.ts.map +0 -1
|
@@ -46,18 +46,224 @@ export interface Angle {
|
|
|
46
46
|
*/
|
|
47
47
|
value: number;
|
|
48
48
|
}
|
|
49
|
+
export interface AnnotationBasicDimension {
|
|
50
|
+
/** Basic dimension parameters (symbol and tolerance) */
|
|
51
|
+
dimension: AnnotationMbdBasicDimension;
|
|
52
|
+
/**
|
|
53
|
+
* {
|
|
54
|
+
* "format": "uint32",
|
|
55
|
+
* "minimum": 0,
|
|
56
|
+
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
|
|
57
|
+
* }
|
|
58
|
+
*/
|
|
59
|
+
font_point_size: number;
|
|
60
|
+
/** format:float, description:The scale of the font label in 3D space */
|
|
61
|
+
font_scale: number;
|
|
62
|
+
/** format:uuid, description:Entity to measure the dimension from */
|
|
63
|
+
from_entity_id: string;
|
|
64
|
+
/** Normalized position within the entity to position the dimension from */
|
|
65
|
+
from_entity_pos: Point2d;
|
|
66
|
+
/** 2D Position offset of the annotation within the plane. */
|
|
67
|
+
offset: Point2d;
|
|
68
|
+
/**
|
|
69
|
+
* {
|
|
70
|
+
* "format": "uuid",
|
|
71
|
+
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
plane_id: string;
|
|
75
|
+
/**
|
|
76
|
+
* {
|
|
77
|
+
* "format": "uint32",
|
|
78
|
+
* "minimum": 0,
|
|
79
|
+
* "description": "Number of decimal places to use when displaying tolerance and dimension values"
|
|
80
|
+
* }
|
|
81
|
+
*/
|
|
82
|
+
precision: number;
|
|
83
|
+
/** format:uuid, description:Entity to measure the dimension to */
|
|
84
|
+
to_entity_id: string;
|
|
85
|
+
/** Normalized position within the entity to position the dimension to */
|
|
86
|
+
to_entity_pos: Point2d;
|
|
87
|
+
}
|
|
88
|
+
export interface AnnotationFeatureControl {
|
|
89
|
+
/** nullable:true, description:MBD Control frame for geometric control */
|
|
90
|
+
control_frame?: AnnotationMbdControlFrame;
|
|
91
|
+
/**
|
|
92
|
+
* {
|
|
93
|
+
* "nullable": true,
|
|
94
|
+
* "minLength": 1,
|
|
95
|
+
* "maxLength": 1,
|
|
96
|
+
* "description": "Set if this annotation is defining a datum"
|
|
97
|
+
* }
|
|
98
|
+
*/
|
|
99
|
+
defined_datum?: string;
|
|
100
|
+
/** nullable:true, description:Basic dimensions */
|
|
101
|
+
dimension?: AnnotationMbdBasicDimension;
|
|
102
|
+
/** format:uuid, description:Entity to place the annotation leader from */
|
|
103
|
+
entity_id: string;
|
|
104
|
+
/** Normalized position within the entity to position the annotation leader from */
|
|
105
|
+
entity_pos: Point2d;
|
|
106
|
+
/**
|
|
107
|
+
* {
|
|
108
|
+
* "format": "uint32",
|
|
109
|
+
* "minimum": 0,
|
|
110
|
+
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
|
|
111
|
+
* }
|
|
112
|
+
*/
|
|
113
|
+
font_point_size: number;
|
|
114
|
+
/** format:float, description:The scale of the font label in 3D space */
|
|
115
|
+
font_scale: number;
|
|
116
|
+
/** Type of leader to use */
|
|
117
|
+
leader_type: AnnotationLineEnd;
|
|
118
|
+
/** 2D Position offset of the annotation within the plane. */
|
|
119
|
+
offset: Point2d;
|
|
120
|
+
/**
|
|
121
|
+
* {
|
|
122
|
+
* "format": "uuid",
|
|
123
|
+
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
|
|
124
|
+
* }
|
|
125
|
+
*/
|
|
126
|
+
plane_id: string;
|
|
127
|
+
/**
|
|
128
|
+
* {
|
|
129
|
+
* "format": "uint32",
|
|
130
|
+
* "minimum": 0,
|
|
131
|
+
* "description": "Number of decimal places to use when displaying tolerance and dimension values"
|
|
132
|
+
* }
|
|
133
|
+
*/
|
|
134
|
+
precision: number;
|
|
135
|
+
/**
|
|
136
|
+
* {
|
|
137
|
+
* "nullable": true,
|
|
138
|
+
* "description": "Prefix text which will appear before the basic dimension"
|
|
139
|
+
* }
|
|
140
|
+
*/
|
|
141
|
+
prefix?: string;
|
|
142
|
+
/**
|
|
143
|
+
* {
|
|
144
|
+
* "nullable": true,
|
|
145
|
+
* "description": "Suffix text which will appear after the basic dimension"
|
|
146
|
+
* }
|
|
147
|
+
*/
|
|
148
|
+
suffix?: string;
|
|
149
|
+
}
|
|
150
|
+
export interface AnnotationFeatureTag {
|
|
151
|
+
/** format:uuid, description:Entity to place the annotation leader from */
|
|
152
|
+
entity_id: string;
|
|
153
|
+
/** Normalized position within the entity to position the annotation leader from */
|
|
154
|
+
entity_pos: Point2d;
|
|
155
|
+
/**
|
|
156
|
+
* {
|
|
157
|
+
* "format": "uint32",
|
|
158
|
+
* "minimum": 0,
|
|
159
|
+
* "description": "The point size of the fonts used to generate the annotation label. Very large values can negatively affect performance."
|
|
160
|
+
* }
|
|
161
|
+
*/
|
|
162
|
+
font_point_size: number;
|
|
163
|
+
/** format:float, description:The scale of the font label in 3D space */
|
|
164
|
+
font_scale: number;
|
|
165
|
+
/** Tag key */
|
|
166
|
+
key: string;
|
|
167
|
+
/** Type of leader to use */
|
|
168
|
+
leader_type: AnnotationLineEnd;
|
|
169
|
+
/** 2D Position offset of the annotation within the plane. */
|
|
170
|
+
offset: Point2d;
|
|
171
|
+
/**
|
|
172
|
+
* {
|
|
173
|
+
* "format": "uuid",
|
|
174
|
+
* "description": "Orientation plane. The annotation will lie in this plane which is positioned about the leader position as its origin."
|
|
175
|
+
* }
|
|
176
|
+
*/
|
|
177
|
+
plane_id: string;
|
|
178
|
+
/** Whether or not to display the key on the annotation label */
|
|
179
|
+
show_key: boolean;
|
|
180
|
+
/** Tag value */
|
|
181
|
+
value: string;
|
|
182
|
+
}
|
|
49
183
|
export declare type AnnotationLineEnd =
|
|
50
184
|
/** Annotation line end type */
|
|
51
|
-
'none' | 'arrow';
|
|
185
|
+
'none' | 'arrow' | 'dot';
|
|
52
186
|
export interface AnnotationLineEndOptions {
|
|
53
187
|
/** How to style the end of the annotation line. */
|
|
54
188
|
end: AnnotationLineEnd;
|
|
55
189
|
/** How to style the start of the annotation line. */
|
|
56
190
|
start: AnnotationLineEnd;
|
|
57
191
|
}
|
|
192
|
+
export interface AnnotationMbdBasicDimension {
|
|
193
|
+
/**
|
|
194
|
+
* {
|
|
195
|
+
* "nullable": true,
|
|
196
|
+
* "format": "double",
|
|
197
|
+
* "description": "The explicitly defined dimension. Only required if the measurement is not automatically calculated."
|
|
198
|
+
* }
|
|
199
|
+
*/
|
|
200
|
+
dimension?: number;
|
|
201
|
+
/**
|
|
202
|
+
* {
|
|
203
|
+
* "nullable": true,
|
|
204
|
+
* "description": "Type of symbol to use for this dimension (if required)"
|
|
205
|
+
* }
|
|
206
|
+
*/
|
|
207
|
+
symbol?: MbdSymbol;
|
|
208
|
+
/** format:double, description:The tolerance of the dimension */
|
|
209
|
+
tolerance: number;
|
|
210
|
+
}
|
|
211
|
+
export interface AnnotationMbdControlFrame {
|
|
212
|
+
/**
|
|
213
|
+
* {
|
|
214
|
+
* "nullable": true,
|
|
215
|
+
* "description": "Diameter symbol (if required) whether the geometric control requires a cylindrical or diameter tolerance"
|
|
216
|
+
* }
|
|
217
|
+
*/
|
|
218
|
+
diameter_symbol?: MbdSymbol;
|
|
219
|
+
/** nullable:true, description:Feature of size or tolerance modifiers */
|
|
220
|
+
modifier?: MbdSymbol;
|
|
221
|
+
/**
|
|
222
|
+
* {
|
|
223
|
+
* "nullable": true,
|
|
224
|
+
* "minLength": 1,
|
|
225
|
+
* "maxLength": 1,
|
|
226
|
+
* "description": "Primary datum"
|
|
227
|
+
* }
|
|
228
|
+
*/
|
|
229
|
+
primary_datum?: string;
|
|
230
|
+
/**
|
|
231
|
+
* {
|
|
232
|
+
* "nullable": true,
|
|
233
|
+
* "minLength": 1,
|
|
234
|
+
* "maxLength": 1,
|
|
235
|
+
* "description": "Secondary datum"
|
|
236
|
+
* }
|
|
237
|
+
*/
|
|
238
|
+
secondary_datum?: string;
|
|
239
|
+
/** Geometric symbol, the type of geometric control specified */
|
|
240
|
+
symbol: MbdSymbol;
|
|
241
|
+
/**
|
|
242
|
+
* {
|
|
243
|
+
* "nullable": true,
|
|
244
|
+
* "minLength": 1,
|
|
245
|
+
* "maxLength": 1,
|
|
246
|
+
* "description": "Tertiary datum"
|
|
247
|
+
* }
|
|
248
|
+
*/
|
|
249
|
+
tertiary_datum?: string;
|
|
250
|
+
/**
|
|
251
|
+
* {
|
|
252
|
+
* "format": "double",
|
|
253
|
+
* "description": "Tolerance value - the total tolerance of the geometric control. The unit is based on the drawing standard."
|
|
254
|
+
* }
|
|
255
|
+
*/
|
|
256
|
+
tolerance: number;
|
|
257
|
+
}
|
|
58
258
|
export interface AnnotationOptions {
|
|
59
259
|
/** nullable:true, description:Color to render the annotation */
|
|
60
260
|
color?: Color;
|
|
261
|
+
/** nullable:true, description:Set as an MBD measured basic dimension annotation */
|
|
262
|
+
dimension?: AnnotationBasicDimension;
|
|
263
|
+
/** nullable:true, description:Set as an MBD Feature control annotation */
|
|
264
|
+
feature_control?: AnnotationFeatureControl;
|
|
265
|
+
/** nullable:true, description:Set as a feature tag annotation */
|
|
266
|
+
feature_tag?: AnnotationFeatureTag;
|
|
61
267
|
/** nullable:true, description:How to style the start and end of the line */
|
|
62
268
|
line_ends?: AnnotationLineEndOptions;
|
|
63
269
|
/** nullable:true, format:float, description:Width of the annotation's line */
|
|
@@ -169,6 +375,14 @@ export interface ApiCallWithPrice {
|
|
|
169
375
|
* }
|
|
170
376
|
*/
|
|
171
377
|
response_body?: string;
|
|
378
|
+
/**
|
|
379
|
+
* {
|
|
380
|
+
* "nullable": true,
|
|
381
|
+
* "format": "int32",
|
|
382
|
+
* "description": "The number of seconds the API call was billed for."
|
|
383
|
+
* }
|
|
384
|
+
*/
|
|
385
|
+
seconds?: number;
|
|
172
386
|
/**
|
|
173
387
|
* {
|
|
174
388
|
* "nullable": true,
|
|
@@ -1377,6 +1591,45 @@ export interface CustomerBalance {
|
|
|
1377
1591
|
}
|
|
1378
1592
|
export declare type CutStrategy = 'basic' | 'csg' | 'automatic';
|
|
1379
1593
|
export declare type CutType = 'fillet' | 'chamfer';
|
|
1594
|
+
export declare type CutTypeV2 = {
|
|
1595
|
+
fillet: {
|
|
1596
|
+
/** The radius of the fillet. */
|
|
1597
|
+
radius: LengthUnit;
|
|
1598
|
+
/**
|
|
1599
|
+
* {
|
|
1600
|
+
* "nullable": true,
|
|
1601
|
+
* "description": "The second length affects the edge length of the second face of the cut. This will cause the fillet to take on the shape of a conic section, instead of an arc."
|
|
1602
|
+
* }
|
|
1603
|
+
*/
|
|
1604
|
+
second_length?: LengthUnit;
|
|
1605
|
+
};
|
|
1606
|
+
} | {
|
|
1607
|
+
chamfer: {
|
|
1608
|
+
/** nullable:true, description:The angle of the chamfer, default is 45deg. */
|
|
1609
|
+
angle?: Angle;
|
|
1610
|
+
/** The distance from the edge to cut on each face. */
|
|
1611
|
+
distance: LengthUnit;
|
|
1612
|
+
/**
|
|
1613
|
+
* {
|
|
1614
|
+
* "nullable": true,
|
|
1615
|
+
* "description": "The second distance affects the edge length of the second face of the cut."
|
|
1616
|
+
* }
|
|
1617
|
+
*/
|
|
1618
|
+
second_distance?: LengthUnit;
|
|
1619
|
+
/** If true, the second distance or angle is applied to the other face of the cut. */
|
|
1620
|
+
swap: boolean;
|
|
1621
|
+
};
|
|
1622
|
+
} | {
|
|
1623
|
+
custom: {
|
|
1624
|
+
/**
|
|
1625
|
+
* {
|
|
1626
|
+
* "format": "uuid",
|
|
1627
|
+
* "description": "The path that will be used for the custom profile."
|
|
1628
|
+
* }
|
|
1629
|
+
*/
|
|
1630
|
+
path: string;
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1380
1633
|
export interface DefaultCameraCenterToScene {
|
|
1381
1634
|
}
|
|
1382
1635
|
export interface DefaultCameraCenterToSelection {
|
|
@@ -1721,6 +1974,35 @@ export interface ExtendedUserResultsPage {
|
|
|
1721
1974
|
export interface Extrude {
|
|
1722
1975
|
}
|
|
1723
1976
|
export declare type ExtrudeMethod = 'new' | 'merge';
|
|
1977
|
+
export declare type ExtrudeReference = {
|
|
1978
|
+
entity_reference: {
|
|
1979
|
+
/** format:uuid, description:The UUID of the entity to extrude to. */
|
|
1980
|
+
entity_id: string;
|
|
1981
|
+
};
|
|
1982
|
+
} | {
|
|
1983
|
+
axis: {
|
|
1984
|
+
/** The axis to extrude to. */
|
|
1985
|
+
axis: Point3d;
|
|
1986
|
+
/**
|
|
1987
|
+
* {
|
|
1988
|
+
* "default": {
|
|
1989
|
+
* "x": 0,
|
|
1990
|
+
* "y": 0,
|
|
1991
|
+
* "z": 0
|
|
1992
|
+
* },
|
|
1993
|
+
* "description": "Point the axis goes through. Defaults to (0, 0, 0)."
|
|
1994
|
+
* }
|
|
1995
|
+
*/
|
|
1996
|
+
point?: Point3d;
|
|
1997
|
+
};
|
|
1998
|
+
} | {
|
|
1999
|
+
point: {
|
|
2000
|
+
/** The point to extrude to. */
|
|
2001
|
+
point: Point3d;
|
|
2002
|
+
};
|
|
2003
|
+
};
|
|
2004
|
+
export interface ExtrudeToReference {
|
|
2005
|
+
}
|
|
1724
2006
|
export interface ExtrudedFaceInfo {
|
|
1725
2007
|
/**
|
|
1726
2008
|
* {
|
|
@@ -2322,6 +2604,13 @@ export interface Invoice {
|
|
|
2322
2604
|
* }
|
|
2323
2605
|
*/
|
|
2324
2606
|
paid?: boolean;
|
|
2607
|
+
/**
|
|
2608
|
+
* {
|
|
2609
|
+
* "nullable": true,
|
|
2610
|
+
* "description": "Identifier for the payment intent backing this invoice."
|
|
2611
|
+
* }
|
|
2612
|
+
*/
|
|
2613
|
+
payment_intent_id?: string;
|
|
2325
2614
|
/** nullable:true, format:uri, description:The link to download the PDF for the invoice. */
|
|
2326
2615
|
pdf?: string;
|
|
2327
2616
|
/** This is the transaction number that appears on email receipts sent for this invoice. */
|
|
@@ -2500,6 +2789,13 @@ export interface KclCodeCompletionRequest {
|
|
|
2500
2789
|
* }
|
|
2501
2790
|
*/
|
|
2502
2791
|
max_tokens?: number;
|
|
2792
|
+
/**
|
|
2793
|
+
* {
|
|
2794
|
+
* "nullable": true,
|
|
2795
|
+
* "description": "Zoo provided model, or custom model which should be used to process this request."
|
|
2796
|
+
* }
|
|
2797
|
+
*/
|
|
2798
|
+
model_version?: string;
|
|
2503
2799
|
/**
|
|
2504
2800
|
* {
|
|
2505
2801
|
* "nullable": true,
|
|
@@ -2516,7 +2812,7 @@ export interface KclCodeCompletionRequest {
|
|
|
2516
2812
|
* }
|
|
2517
2813
|
*/
|
|
2518
2814
|
nwo?: string;
|
|
2519
|
-
/** default:, description:The prompt for the
|
|
2815
|
+
/** default:, description:The prompt for the desired part. */
|
|
2520
2816
|
prompt?: string;
|
|
2521
2817
|
stop?: string[];
|
|
2522
2818
|
/**
|
|
@@ -2526,7 +2822,7 @@ export interface KclCodeCompletionRequest {
|
|
|
2526
2822
|
* }
|
|
2527
2823
|
*/
|
|
2528
2824
|
stream?: boolean;
|
|
2529
|
-
/** default:, description:The suffix for the
|
|
2825
|
+
/** default:, description:The suffix for the desired part. */
|
|
2530
2826
|
suffix?: string;
|
|
2531
2827
|
/** nullable:true, format:float, description:The temperature for the model. */
|
|
2532
2828
|
temperature?: number;
|
|
@@ -2563,6 +2859,9 @@ export interface Mass {
|
|
|
2563
2859
|
/** The output unit for the mass. */
|
|
2564
2860
|
output_unit: UnitMass;
|
|
2565
2861
|
}
|
|
2862
|
+
export declare type MbdSymbol =
|
|
2863
|
+
/** MBD symbol type */
|
|
2864
|
+
'none' | 'arclength' | 'between' | 'degrees' | 'plusminus' | 'angularity' | 'cylindricity' | 'roundness' | 'concentricity' | 'straightness' | 'parallelism' | 'flatness' | 'profileofline' | 'surfaceprofile' | 'symmetry' | 'perpendicularity' | 'runout' | 'totalrunout' | 'position' | 'centerline' | 'partingline' | 'isoenvelope' | 'isoenvelopenony145m' | 'freestate' | 'statisticaltolerance' | 'continuousfeature' | 'independency' | 'depth' | 'start' | 'leastcondition' | 'maxcondition' | 'conicaltaper' | 'projected' | 'slope' | 'micro' | 'tangentplane' | 'unilateral' | 'squarefeature' | 'countersink' | 'spotface' | 'target' | 'diameter' | 'radius' | 'sphericalradius' | 'sphericaldiameter' | 'controlledradius' | 'boxstart' | 'boxbar' | 'boxbarbetween' | 'letterbackwardunderline' | 'punctuationbackwardunderline' | 'modifierbackwardunderline' | 'numericbackwardunderline' | 'boxend' | 'datumup' | 'datumleft' | 'datumright' | 'datumdown' | 'datumtriangle' | 'halfspace' | 'quarterspace' | 'eighthspace' | 'modifierspace';
|
|
2566
2865
|
export declare type Method = 'OPTIONS' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'TRACE' | 'CONNECT' | 'PATCH' | 'EXTENSION';
|
|
2567
2866
|
export declare type MlCopilotClientMessage = {
|
|
2568
2867
|
headers: {
|
|
@@ -2830,11 +3129,12 @@ export interface ModelingAppSubscriptionTier {
|
|
|
2830
3129
|
/**
|
|
2831
3130
|
* {
|
|
2832
3131
|
* "title": "double",
|
|
3132
|
+
* "default": 0,
|
|
2833
3133
|
* "format": "money-usd",
|
|
2834
3134
|
* "description": "The monetary value of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month."
|
|
2835
3135
|
* }
|
|
2836
3136
|
*/
|
|
2837
|
-
monthly_pay_as_you_go_api_credits_monetary_value
|
|
3137
|
+
monthly_pay_as_you_go_api_credits_monetary_value?: number;
|
|
2838
3138
|
/** The name of the tier. */
|
|
2839
3139
|
name: ModelingAppSubscriptionTierName;
|
|
2840
3140
|
/**
|
|
@@ -2842,7 +3142,7 @@ export interface ModelingAppSubscriptionTier {
|
|
|
2842
3142
|
* "title": "double",
|
|
2843
3143
|
* "default": 0,
|
|
2844
3144
|
* "format": "money-usd",
|
|
2845
|
-
* "description": "The price of an API credit (meaning 1 credit = 1
|
|
3145
|
+
* "description": "The price of an API credit (meaning 1 credit = 1 second of API usage)."
|
|
2846
3146
|
* }
|
|
2847
3147
|
*/
|
|
2848
3148
|
pay_as_you_go_api_credit_price?: number;
|
|
@@ -2880,6 +3180,13 @@ export declare type ModelingCmd = {
|
|
|
2880
3180
|
to: Point3d;
|
|
2881
3181
|
type: 'move_path_pen';
|
|
2882
3182
|
} | {
|
|
3183
|
+
/**
|
|
3184
|
+
* {
|
|
3185
|
+
* "nullable": true,
|
|
3186
|
+
* "description": "Optional label to associate with the new path segment."
|
|
3187
|
+
* }
|
|
3188
|
+
*/
|
|
3189
|
+
label?: string;
|
|
2883
3190
|
/** The ID of the command which created the path. */
|
|
2884
3191
|
path: ModelingCmdId;
|
|
2885
3192
|
/** Segment to append to the path. This segment will implicitly begin at the current "pen" location. */
|
|
@@ -2912,6 +3219,26 @@ export declare type ModelingCmd = {
|
|
|
2912
3219
|
/** Which sketch to extrude. Must be a closed 2D solid. */
|
|
2913
3220
|
target: ModelingCmdId;
|
|
2914
3221
|
type: 'extrude';
|
|
3222
|
+
} | {
|
|
3223
|
+
/**
|
|
3224
|
+
* {
|
|
3225
|
+
* "default": "merge",
|
|
3226
|
+
* "description": "Should the extrusion create a new object or be part of the existing object."
|
|
3227
|
+
* }
|
|
3228
|
+
*/
|
|
3229
|
+
extrude_method?: ExtrudeMethod;
|
|
3230
|
+
/**
|
|
3231
|
+
* {
|
|
3232
|
+
* "nullable": true,
|
|
3233
|
+
* "description": "Which IDs should the new faces have? If this isn't given, the engine will generate IDs."
|
|
3234
|
+
* }
|
|
3235
|
+
*/
|
|
3236
|
+
faces?: ExtrudedFaceInfo;
|
|
3237
|
+
/** Reference to extrude to. Extrusion occurs along the target's normal until it is as close to the reference as possible. */
|
|
3238
|
+
reference: ExtrudeReference;
|
|
3239
|
+
/** Which sketch to extrude. Must be a closed 2D solid. */
|
|
3240
|
+
target: ModelingCmdId;
|
|
3241
|
+
type: 'extrude_to_reference';
|
|
2915
3242
|
} | {
|
|
2916
3243
|
/**
|
|
2917
3244
|
* {
|
|
@@ -3248,8 +3575,13 @@ export declare type ModelingCmd = {
|
|
|
3248
3575
|
cylinder_id: string;
|
|
3249
3576
|
/** Is the helix rotation clockwise? */
|
|
3250
3577
|
is_clockwise: boolean;
|
|
3251
|
-
/**
|
|
3252
|
-
|
|
3578
|
+
/**
|
|
3579
|
+
* {
|
|
3580
|
+
* "nullable": true,
|
|
3581
|
+
* "description": "Length of the helix. If None, the length of the cylinder will be used instead."
|
|
3582
|
+
* }
|
|
3583
|
+
*/
|
|
3584
|
+
length?: LengthUnit;
|
|
3253
3585
|
/** format:double, description:Number of revolutions. */
|
|
3254
3586
|
revolutions: number;
|
|
3255
3587
|
/** default:{unit:degrees, value:0}, description:Start angle. */
|
|
@@ -3519,6 +3851,28 @@ export declare type ModelingCmd = {
|
|
|
3519
3851
|
/** The maximum acceptable surface gap computed between the filleted surfaces. Must be positive (i.e. greater than zero). */
|
|
3520
3852
|
tolerance: LengthUnit;
|
|
3521
3853
|
type: 'solid3d_fillet_edge';
|
|
3854
|
+
} | {
|
|
3855
|
+
/** The cut type and information required to perform the cut. */
|
|
3856
|
+
cut_type: CutTypeV2;
|
|
3857
|
+
/**
|
|
3858
|
+
* {
|
|
3859
|
+
* "format": "uuid"
|
|
3860
|
+
* }
|
|
3861
|
+
*/
|
|
3862
|
+
edge_ids?: string[];
|
|
3863
|
+
/**
|
|
3864
|
+
* {
|
|
3865
|
+
* "format": "uuid"
|
|
3866
|
+
* }
|
|
3867
|
+
*/
|
|
3868
|
+
extra_face_ids?: string[];
|
|
3869
|
+
/** format:uuid, description:Which object is being cut. */
|
|
3870
|
+
object_id: string;
|
|
3871
|
+
/** default:automatic, description:Which cutting algorithm to use. */
|
|
3872
|
+
strategy?: CutStrategy;
|
|
3873
|
+
/** The maximum acceptable surface gap computed between the cut surfaces. Must be positive (i.e. greater than zero). */
|
|
3874
|
+
tolerance: LengthUnit;
|
|
3875
|
+
type: 'solid3d_cut_edges';
|
|
3522
3876
|
} | {
|
|
3523
3877
|
/** format:uuid, description:Which face is being queried. */
|
|
3524
3878
|
object_id: string;
|
|
@@ -4157,6 +4511,14 @@ export declare type OkModelingCmdResponse = {
|
|
|
4157
4511
|
*/
|
|
4158
4512
|
data: Extrude;
|
|
4159
4513
|
type: 'extrude';
|
|
4514
|
+
} | {
|
|
4515
|
+
/**
|
|
4516
|
+
* {
|
|
4517
|
+
* "$ref": "#/components/schemas/ExtrudeToReference"
|
|
4518
|
+
* }
|
|
4519
|
+
*/
|
|
4520
|
+
data: ExtrudeToReference;
|
|
4521
|
+
type: 'extrude_to_reference';
|
|
4160
4522
|
} | {
|
|
4161
4523
|
/**
|
|
4162
4524
|
* {
|
|
@@ -4325,6 +4687,14 @@ export declare type OkModelingCmdResponse = {
|
|
|
4325
4687
|
*/
|
|
4326
4688
|
data: Solid3dFilletEdge;
|
|
4327
4689
|
type: 'solid3d_fillet_edge';
|
|
4690
|
+
} | {
|
|
4691
|
+
/**
|
|
4692
|
+
* {
|
|
4693
|
+
* "$ref": "#/components/schemas/Solid3dCutEdges"
|
|
4694
|
+
* }
|
|
4695
|
+
*/
|
|
4696
|
+
data: Solid3dCutEdges;
|
|
4697
|
+
type: 'solid3d_cut_edges';
|
|
4328
4698
|
} | {
|
|
4329
4699
|
/**
|
|
4330
4700
|
* {
|
|
@@ -6148,6 +6518,8 @@ export interface SketchModeDisable {
|
|
|
6148
6518
|
}
|
|
6149
6519
|
export interface Solid2dAddHole {
|
|
6150
6520
|
}
|
|
6521
|
+
export interface Solid3dCutEdges {
|
|
6522
|
+
}
|
|
6151
6523
|
export interface Solid3dFilletEdge {
|
|
6152
6524
|
}
|
|
6153
6525
|
export interface Solid3dGetAdjacencyInfo {
|
|
@@ -6354,6 +6726,13 @@ export interface TextToCadCreateBody {
|
|
|
6354
6726
|
* }
|
|
6355
6727
|
*/
|
|
6356
6728
|
kcl_version?: string;
|
|
6729
|
+
/**
|
|
6730
|
+
* {
|
|
6731
|
+
* "nullable": true,
|
|
6732
|
+
* "description": "Zoo provided model, or custom model which should be used to process this request."
|
|
6733
|
+
* }
|
|
6734
|
+
*/
|
|
6735
|
+
model_version?: string;
|
|
6357
6736
|
/**
|
|
6358
6737
|
* {
|
|
6359
6738
|
* "nullable": true,
|
|
@@ -6361,7 +6740,7 @@ export interface TextToCadCreateBody {
|
|
|
6361
6740
|
* }
|
|
6362
6741
|
*/
|
|
6363
6742
|
project_name?: string;
|
|
6364
|
-
/** The prompt for the
|
|
6743
|
+
/** The prompt for the desired part. */
|
|
6365
6744
|
prompt: string;
|
|
6366
6745
|
}
|
|
6367
6746
|
export interface TextToCadIteration {
|
|
@@ -7739,11 +8118,12 @@ export declare type ZooProductSubscription = {
|
|
|
7739
8118
|
/**
|
|
7740
8119
|
* {
|
|
7741
8120
|
* "title": "double",
|
|
8121
|
+
* "default": 0,
|
|
7742
8122
|
* "format": "money-usd",
|
|
7743
8123
|
* "description": "The monetary value of pay-as-you-go API credits the individual or org gets outside the modeling app per month. This re-ups on the 1st of each month."
|
|
7744
8124
|
* }
|
|
7745
8125
|
*/
|
|
7746
|
-
monthly_pay_as_you_go_api_credits_monetary_value
|
|
8126
|
+
monthly_pay_as_you_go_api_credits_monetary_value?: number;
|
|
7747
8127
|
/** The name of the tier. */
|
|
7748
8128
|
name: ModelingAppSubscriptionTierName;
|
|
7749
8129
|
/**
|
|
@@ -7751,7 +8131,7 @@ export declare type ZooProductSubscription = {
|
|
|
7751
8131
|
* "title": "double",
|
|
7752
8132
|
* "default": 0,
|
|
7753
8133
|
* "format": "money-usd",
|
|
7754
|
-
* "description": "The price of an API credit (meaning 1 credit = 1
|
|
8134
|
+
* "description": "The price of an API credit (meaning 1 credit = 1 second of API usage)."
|
|
7755
8135
|
* }
|
|
7756
8136
|
*/
|
|
7757
8137
|
pay_as_you_go_api_credit_price?: number;
|
|
@@ -7820,8 +8200,13 @@ export interface Models {
|
|
|
7820
8200
|
AddressDetails: AddressDetails;
|
|
7821
8201
|
AdjacencyInfo: AdjacencyInfo;
|
|
7822
8202
|
Angle: Angle;
|
|
8203
|
+
AnnotationBasicDimension: AnnotationBasicDimension;
|
|
8204
|
+
AnnotationFeatureControl: AnnotationFeatureControl;
|
|
8205
|
+
AnnotationFeatureTag: AnnotationFeatureTag;
|
|
7823
8206
|
AnnotationLineEnd: AnnotationLineEnd;
|
|
7824
8207
|
AnnotationLineEndOptions: AnnotationLineEndOptions;
|
|
8208
|
+
AnnotationMbdBasicDimension: AnnotationMbdBasicDimension;
|
|
8209
|
+
AnnotationMbdControlFrame: AnnotationMbdControlFrame;
|
|
7825
8210
|
AnnotationOptions: AnnotationOptions;
|
|
7826
8211
|
AnnotationTextAlignmentX: AnnotationTextAlignmentX;
|
|
7827
8212
|
AnnotationTextAlignmentY: AnnotationTextAlignmentY;
|
|
@@ -7884,6 +8269,7 @@ export interface Models {
|
|
|
7884
8269
|
CustomerBalance: CustomerBalance;
|
|
7885
8270
|
CutStrategy: CutStrategy;
|
|
7886
8271
|
CutType: CutType;
|
|
8272
|
+
CutTypeV2: CutTypeV2;
|
|
7887
8273
|
DefaultCameraCenterToScene: DefaultCameraCenterToScene;
|
|
7888
8274
|
DefaultCameraCenterToSelection: DefaultCameraCenterToSelection;
|
|
7889
8275
|
DefaultCameraFocusOn: DefaultCameraFocusOn;
|
|
@@ -7944,6 +8330,8 @@ export interface Models {
|
|
|
7944
8330
|
ExtendedUserResultsPage: ExtendedUserResultsPage;
|
|
7945
8331
|
Extrude: Extrude;
|
|
7946
8332
|
ExtrudeMethod: ExtrudeMethod;
|
|
8333
|
+
ExtrudeReference: ExtrudeReference;
|
|
8334
|
+
ExtrudeToReference: ExtrudeToReference;
|
|
7947
8335
|
ExtrudedFaceInfo: ExtrudedFaceInfo;
|
|
7948
8336
|
ExtrusionFaceCapType: ExtrusionFaceCapType;
|
|
7949
8337
|
ExtrusionFaceInfo: ExtrusionFaceInfo;
|
|
@@ -7996,6 +8384,7 @@ export interface Models {
|
|
|
7996
8384
|
MakeOffsetPath: MakeOffsetPath;
|
|
7997
8385
|
MakePlane: MakePlane;
|
|
7998
8386
|
Mass: Mass;
|
|
8387
|
+
MbdSymbol: MbdSymbol;
|
|
7999
8388
|
Method: Method;
|
|
8000
8389
|
MlCopilotClientMessage: MlCopilotClientMessage;
|
|
8001
8390
|
MlCopilotServerMessage: MlCopilotServerMessage;
|
|
@@ -8113,6 +8502,7 @@ export interface Models {
|
|
|
8113
8502
|
SideFace: SideFace;
|
|
8114
8503
|
SketchModeDisable: SketchModeDisable;
|
|
8115
8504
|
Solid2dAddHole: Solid2dAddHole;
|
|
8505
|
+
Solid3dCutEdges: Solid3dCutEdges;
|
|
8116
8506
|
Solid3dFilletEdge: Solid3dFilletEdge;
|
|
8117
8507
|
Solid3dGetAdjacencyInfo: Solid3dGetAdjacencyInfo;
|
|
8118
8508
|
Solid3dGetAllEdgeFaces: Solid3dGetAllEdgeFaces;
|