@kittycad/lib 4.3.26 → 4.3.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kittycad/lib",
3
- "version": "4.3.26",
3
+ "version": "4.3.27",
4
4
  "description": "Javascript library for KittyCAD API",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -1,34 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { TextToCad, FileExportFormat, TextToCadCreateBody } from '../../models.js';
3
- interface CreateTextToCadInput {
4
- client?: Client;
5
- output_format: FileExportFormat;
6
- kcl?: boolean;
7
- body: TextToCadCreateBody;
8
- }
9
- type CreateTextToCadReturn = TextToCad;
10
- /**
11
- * Generate a CAD model from text.
12
- *
13
- * Prefer the ML copilot websocket (`/ws/ml/copilot`) for new integrations. This REST endpoint is kept for existing Text-to-CAD clients, but it is no longer the recommended way to generate CAD models from a prompt.
14
- *
15
- * Because our source of truth for the resulting model is a STEP file, you will always have STEP file contents when you list your generated parts. Any other formats you request here will also be returned when you list your generated parts.
16
- *
17
- * This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
18
- *
19
- * One thing to note, if you hit the cache, this endpoint will return right away. So you only have to wait if the status is not `Completed` or `Failed`.
20
- *
21
- * Tags: ml, hidden
22
- *
23
- * @param params Function parameters.
24
- * @property {Client} [client] Optional client with auth token.
25
- * @property {FileExportFormat} output_format The format the output file should be converted to. (path)
26
- * @property {boolean} kcl If we should output the kcl for the model. (query)
27
- * @property {TextToCadCreateBody} body Request body payload
28
- * @returns {Promise<CreateTextToCadReturn>} successful creation
29
- *
30
- * Possible return types: TextToCad
31
- */
32
- export default function create_text_to_cad({ client, output_format, kcl, body, }: CreateTextToCadInput): Promise<CreateTextToCadReturn>;
33
- export {};
34
- //# sourceMappingURL=create_text_to_cad.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_text_to_cad.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/create_text_to_cad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,iBAAiB,CAAA;AAExB,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,gBAAgB,CAAA;IAC/B,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,mBAAmB,CAAA;CAC1B;AAED,KAAK,qBAAqB,GAAG,SAAS,CAAA;AAEtC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,aAAa,EACb,GAAG,EACH,IAAI,GACL,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAuBvD"}
@@ -1,32 +0,0 @@
1
- import { Client } from '../../client.js';
2
- import { TextToCadIteration, TextToCadIterationBody } from '../../models.js';
3
- interface CreateTextToCadIterationInput {
4
- client?: Client;
5
- body: TextToCadIterationBody;
6
- }
7
- type CreateTextToCadIterationReturn = TextToCadIteration;
8
- /**
9
- * Iterate on a CAD model with a prompt.
10
- *
11
- * Prefer the ML copilot websocket (`/ws/ml/copilot`) for new prompt-to-edit integrations. This REST endpoint is kept for existing clients, but it is no longer the recommended way to edit KCL or CAD models from a prompt.
12
- *
13
- * Even if you give specific ranges to edit, the model might change more than just those in order to make the changes you requested without breaking the code.
14
- *
15
- * You always get the whole code back, even if you only changed a small part of it.
16
- *
17
- * This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
18
- *
19
- * This endpoint is deprecated in favor of `/ws/ml/copilot`.
20
- *
21
- * Tags: ml, hidden
22
- *
23
- * @param params Function parameters.
24
- * @property {Client} [client] Optional client with auth token.
25
- * @property {TextToCadIterationBody} body Request body payload
26
- * @returns {Promise<CreateTextToCadIterationReturn>} successful creation
27
- *
28
- * Possible return types: TextToCadIteration
29
- */
30
- export default function create_text_to_cad_iteration({ client, body, }: CreateTextToCadIterationInput): Promise<CreateTextToCadIterationReturn>;
31
- export {};
32
- //# sourceMappingURL=create_text_to_cad_iteration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_text_to_cad_iteration.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/create_text_to_cad_iteration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,UAAU,6BAA6B;IACrC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,sBAAsB,CAAA;CAC7B;AAED,KAAK,8BAA8B,GAAG,kBAAkB,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,IAAI,GACL,EAAE,6BAA6B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAuBzE"}
@@ -1,37 +0,0 @@
1
- import { File } from '../../models.js';
2
- import { Client } from '../../client.js';
3
- import { TextToCadMultiFileIteration, TextToCadMultiFileIterationBody } from '../../models.js';
4
- interface CreateTextToCadMultiFileIterationInput {
5
- client?: Client;
6
- files: File[];
7
- body: TextToCadMultiFileIterationBody;
8
- }
9
- type CreateTextToCadMultiFileIterationReturn = TextToCadMultiFileIteration;
10
- /**
11
- * Iterate on a multi-file CAD model with a prompt.
12
- *
13
- * Prefer the ML copilot websocket (`/ws/ml/copilot`) for new prompt-to-edit integrations. This REST endpoint is kept for existing multi-file iteration clients, but it is no longer the recommended way to edit KCL or CAD models from a prompt.
14
- *
15
- * This endpoint can iterate on multi-file projects.
16
- *
17
- * Even if you give specific ranges to edit, the model might change more than just those in order to make the changes you requested without breaking the code.
18
- *
19
- * You always get the whole code back, even if you only changed a small part of it. This endpoint will always return all the code back, including files that were not changed. If your original source code imported a stl/gltf/step/etc file, the output will not include that file since the model will never change non-kcl files. The endpoint will only return the kcl files that were changed.
20
- *
21
- * This operation is performed asynchronously, the `id` of the operation will be returned. You can use the `id` returned from the request to get status information about the async operation from the `/async/operations/{id}` endpoint.
22
- *
23
- * Input filepaths will be normalized and re-canonicalized to be under the current working directory -- so returned paths may differ from provided paths, and care must be taken when handling user provided paths.
24
- *
25
- * Tags: ml, hidden
26
- *
27
- * @param params Function parameters.
28
- * @property {Client} [client] Optional client with auth token.
29
- * @property {File[]} files Files attached as multipart/form-data.
30
- * @property {TextToCadMultiFileIterationBody} body Iteration on a multi-file CAD model
31
- * @returns {Promise<CreateTextToCadMultiFileIterationReturn>} successful creation
32
- *
33
- * Possible return types: TextToCadMultiFileIteration
34
- */
35
- export default function create_text_to_cad_multi_file_iteration({ client, files, body, }: CreateTextToCadMultiFileIterationInput): Promise<CreateTextToCadMultiFileIterationReturn>;
36
- export {};
37
- //# sourceMappingURL=create_text_to_cad_multi_file_iteration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_text_to_cad_multi_file_iteration.d.ts","sourceRoot":"","sources":["../../../../../src/api/ml/create_text_to_cad_multi_file_iteration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAChC,MAAM,iBAAiB,CAAA;AAExB,UAAU,sCAAsC;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,IAAI,EAAE,+BAA+B,CAAA;CACtC;AAED,KAAK,uCAAuC,GAAG,2BAA2B,CAAA;AAE1E;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAA8B,uCAAuC,CAAC,EACpE,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,sCAAsC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAkC3F"}