@kittycad/lib 4.3.3 → 4.3.5

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.
@@ -10,6 +10,8 @@ type CreateTextToCadReturn = TextToCad;
10
10
  /**
11
11
  * Generate a CAD model from text.
12
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
+ *
13
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.
14
16
  *
15
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.
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAA8B,kBAAkB,CAAC,EAC/C,MAAM,EACN,aAAa,EACb,GAAG,EACH,IAAI,GACL,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAuBvD"}
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"}
@@ -8,13 +8,15 @@ type CreateTextToCadIterationReturn = TextToCadIteration;
8
8
  /**
9
9
  * Iterate on a CAD model with a prompt.
10
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
+ *
11
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.
12
14
  *
13
15
  * You always get the whole code back, even if you only changed a small part of it.
14
16
  *
15
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.
16
18
  *
17
- * This endpoint will soon be deprecated in favor of the `/ml/text-to-cad/multi-file/iteration` endpoint. In that the endpoint path will remain but it will have the same behavior as `ml/text-to-cad/multi-file/iteration`.
19
+ * This endpoint is deprecated in favor of `/ws/ml/copilot`.
18
20
  *
19
21
  * Tags: ml
20
22
  *
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAA8B,4BAA4B,CAAC,EACzD,MAAM,EACN,IAAI,GACL,EAAE,6BAA6B,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAuBzE"}
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"}
@@ -10,6 +10,8 @@ type CreateTextToCadMultiFileIterationReturn = TextToCadMultiFileIteration;
10
10
  /**
11
11
  * Iterate on a multi-file CAD model with a prompt.
12
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
+ *
13
15
  * This endpoint can iterate on multi-file projects.
14
16
  *
15
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.
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAA8B,uCAAuC,CAAC,EACpE,MAAM,EACN,KAAK,EACL,IAAI,GACL,EAAE,sCAAsC,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAkC3F"}
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"}
@@ -5878,7 +5878,7 @@ export type OAuth2GrantType = 'urn:ietf:params:oauth:grant-type:device_code';
5878
5878
  export type OAuth2RefreshTokenUuid =
5879
5879
  /** An auth token. A uuid with a prefix of zoo-rfr- */
5880
5880
  string;
5881
- export type OAuth2Scope = 'modeling' | 'admin:write';
5881
+ export type OAuth2Scope = 'user:read' | 'modeling' | 'admin:write';
5882
5882
  export type OAuth2Scopes =
5883
5883
  /** OAuth 2.0 scopes encoded as a space-delimited string. */
5884
5884
  string;
@@ -8509,6 +8509,22 @@ export type ReasoningMessage = {
8509
8509
  /** The file name. */
8510
8510
  file_name: string;
8511
8511
  type: 'deleted_kcl_file';
8512
+ } | {
8513
+ /** The content of the file. */
8514
+ content: string;
8515
+ /** The file name. */
8516
+ file_name: string;
8517
+ type: 'created_project_file';
8518
+ } | {
8519
+ /** The content of the file. */
8520
+ content: string;
8521
+ /** The file name. */
8522
+ file_name: string;
8523
+ type: 'updated_project_file';
8524
+ } | {
8525
+ /** The file name. */
8526
+ file_name: string;
8527
+ type: 'deleted_project_file';
8512
8528
  };
8513
8529
  export interface ReconfigureStream {
8514
8530
  }
@@ -10421,7 +10437,7 @@ export interface UserCadInfoAdminDetails {
10421
10437
  */
10422
10438
  what_are_you_building?: string;
10423
10439
  }
10424
- export type UserFeature = 'bodies_pane' | 'enable_z0006_lint' | 'modeling_dialogs' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'sketch_experimental_features' | 'web_app_file_browser';
10440
+ export type UserFeature = 'bodies_pane' | 'enable_z0006_lint' | 'modeling_dialogs' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'sketch_experimental_features' | 'web_app_file_browser';
10425
10441
  export interface UserFeatureEntry {
10426
10442
  /** Stable identifier for the feature flag (snake_case). */
10427
10443
  id: UserFeature;