@kittycad/lib 3.1.0 → 3.1.2
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.
|
@@ -93,7 +93,6 @@ export interface ApiCallQueryGroup {
|
|
|
93
93
|
count: number;
|
|
94
94
|
query: string;
|
|
95
95
|
}
|
|
96
|
-
export declare type ApiCallQueryGroupBy = 'email' | 'method' | 'endpoint' | 'user_id' | 'origin' | 'ip_address';
|
|
97
96
|
export declare type ApiCallStatus = 'queued' | 'uploaded' | 'in_progress' | 'completed' | 'failed';
|
|
98
97
|
export interface ApiCallWithPrice {
|
|
99
98
|
/**
|
|
@@ -1086,14 +1085,6 @@ export interface ClosePath {
|
|
|
1086
1085
|
*/
|
|
1087
1086
|
face_id: string;
|
|
1088
1087
|
}
|
|
1089
|
-
export declare type CodeLanguage = 'go' | 'python' | 'node';
|
|
1090
|
-
export declare type CodeOption =
|
|
1091
|
-
/** Code option for running and verifying kcl.
|
|
1092
|
-
|
|
1093
|
-
<details><summary>JSON schema</summary>
|
|
1094
|
-
|
|
1095
|
-
```json { "title": "CodeOption", "description": "Code option for running and verifying kcl.", "type": "string", "enum": [ "parse", "execute", "cleanup", "mock_execute" ] } ``` </details> */
|
|
1096
|
-
'parse' | 'execute' | 'cleanup' | 'mock_execute';
|
|
1097
1088
|
export interface CodeOutput {
|
|
1098
1089
|
/** The contents of the files requested if they were passed. */
|
|
1099
1090
|
output_files?: OutputFile[];
|
|
@@ -1243,7 +1234,6 @@ export interface CreateShortlinkResponse {
|
|
|
1243
1234
|
/** format:uri, description:The shortened url. */
|
|
1244
1235
|
url: string;
|
|
1245
1236
|
}
|
|
1246
|
-
export declare type CreatedAtSortMode = 'created_at_ascending' | 'created_at_descending';
|
|
1247
1237
|
export interface CrmData {
|
|
1248
1238
|
/** nullable:true, description:The industry of the user. */
|
|
1249
1239
|
cad_industry?: string;
|
|
@@ -2603,6 +2593,11 @@ export declare type MlCopilotClientMessage = {
|
|
|
2603
2593
|
type: 'system';
|
|
2604
2594
|
};
|
|
2605
2595
|
export declare type MlCopilotServerMessage = {
|
|
2596
|
+
session_data: {
|
|
2597
|
+
/** The API call id associated with this websocket session. */
|
|
2598
|
+
api_call_id: string;
|
|
2599
|
+
};
|
|
2600
|
+
} | {
|
|
2606
2601
|
conversation_id: {
|
|
2607
2602
|
/** The unique identifier for the conversation. */
|
|
2608
2603
|
conversation_id: string;
|
|
@@ -2634,6 +2629,10 @@ export declare type MlCopilotServerMessage = {
|
|
|
2634
2629
|
* }
|
|
2635
2630
|
*/
|
|
2636
2631
|
reasoning: ReasoningMessage;
|
|
2632
|
+
} | {
|
|
2633
|
+
replay: {
|
|
2634
|
+
messages: number[][];
|
|
2635
|
+
};
|
|
2637
2636
|
} | {
|
|
2638
2637
|
end_of_stream: {
|
|
2639
2638
|
/**
|
|
@@ -2644,6 +2643,10 @@ export declare type MlCopilotServerMessage = {
|
|
|
2644
2643
|
* }
|
|
2645
2644
|
*/
|
|
2646
2645
|
completed_at?: string;
|
|
2646
|
+
/** nullable:true, description:The conversation id for this session. */
|
|
2647
|
+
conversation_id?: string;
|
|
2648
|
+
/** nullable:true, description:The ML prompt id for this turn. */
|
|
2649
|
+
id?: Uuid;
|
|
2647
2650
|
/**
|
|
2648
2651
|
* {
|
|
2649
2652
|
* "nullable": true,
|
|
@@ -2711,6 +2714,14 @@ export interface MlPrompt {
|
|
|
2711
2714
|
project_name?: string;
|
|
2712
2715
|
/** The prompt. */
|
|
2713
2716
|
prompt: string;
|
|
2717
|
+
/**
|
|
2718
|
+
* {
|
|
2719
|
+
* "nullable": true,
|
|
2720
|
+
* "format": "int64",
|
|
2721
|
+
* "description": "Sum of EndOfStream durations, in seconds. Nullable to allow lazy backfill."
|
|
2722
|
+
* }
|
|
2723
|
+
*/
|
|
2724
|
+
seconds?: number;
|
|
2714
2725
|
/**
|
|
2715
2726
|
* {
|
|
2716
2727
|
* "nullable": true,
|
|
@@ -2736,6 +2747,8 @@ export interface MlPromptMetadata {
|
|
|
2736
2747
|
original_source_code?: string;
|
|
2737
2748
|
/** The source ranges the user suggested to change. */
|
|
2738
2749
|
source_ranges?: SourceRangePrompt[];
|
|
2750
|
+
/** nullable:true, description:The upstream conversation ID, if any. */
|
|
2751
|
+
upstream_conversation_id?: string;
|
|
2739
2752
|
}
|
|
2740
2753
|
export interface MlPromptResultsPage {
|
|
2741
2754
|
/** list of items on this page of results */
|
|
@@ -2748,7 +2761,7 @@ export interface MlPromptResultsPage {
|
|
|
2748
2761
|
*/
|
|
2749
2762
|
next_page?: string;
|
|
2750
2763
|
}
|
|
2751
|
-
export declare type MlPromptType = 'text_to_cad' | 'text_to_kcl' | 'text_to_kcl_iteration' | 'text_to_kcl_multi_file_iteration';
|
|
2764
|
+
export declare type MlPromptType = 'text_to_cad' | 'text_to_kcl' | 'text_to_kcl_iteration' | 'text_to_kcl_multi_file_iteration' | 'copilot';
|
|
2752
2765
|
export declare type MlToolResult = {
|
|
2753
2766
|
/**
|
|
2754
2767
|
* {
|
|
@@ -5780,9 +5793,6 @@ export interface Pong {
|
|
|
5780
5793
|
/** The pong response. */
|
|
5781
5794
|
message: string;
|
|
5782
5795
|
}
|
|
5783
|
-
export declare type PostEffectType =
|
|
5784
|
-
/** Post effect type */
|
|
5785
|
-
'phosphor' | 'ssao' | 'noeffect';
|
|
5786
5796
|
export interface PrivacySettings {
|
|
5787
5797
|
/** If we can train on the data. If the user is a member of an organization, the organization's setting will override this. The organization's setting takes priority. */
|
|
5788
5798
|
can_train_on_data: boolean;
|
|
@@ -6749,15 +6759,15 @@ export interface Transform {
|
|
|
6749
6759
|
/**
|
|
6750
6760
|
* {
|
|
6751
6761
|
* "default": {
|
|
6752
|
-
* "angle": {
|
|
6753
|
-
* "unit": "degrees",
|
|
6754
|
-
* "value": 0
|
|
6755
|
-
* },
|
|
6756
6762
|
* "axis": {
|
|
6757
6763
|
* "x": 0,
|
|
6758
6764
|
* "y": 0,
|
|
6759
6765
|
* "z": 1
|
|
6760
6766
|
* },
|
|
6767
|
+
* "angle": {
|
|
6768
|
+
* "unit": "degrees",
|
|
6769
|
+
* "value": 0
|
|
6770
|
+
* },
|
|
6761
6771
|
* "origin": {
|
|
6762
6772
|
* "type": "local"
|
|
6763
6773
|
* }
|
|
@@ -7516,7 +7526,6 @@ export interface User {
|
|
|
7516
7526
|
/** title:DateTime, format:date-time, description:The date and time the user was last updated. */
|
|
7517
7527
|
updated_at: string;
|
|
7518
7528
|
}
|
|
7519
|
-
export declare type UserIdentifier = string;
|
|
7520
7529
|
export interface UserOrgInfo {
|
|
7521
7530
|
/**
|
|
7522
7531
|
* {
|
|
@@ -7790,6 +7799,20 @@ export interface ZoomToFit {
|
|
|
7790
7799
|
/** Camera settings */
|
|
7791
7800
|
settings: CameraSettings;
|
|
7792
7801
|
}
|
|
7802
|
+
export declare type ApiCallQueryGroupBy = 'email' | 'method' | 'endpoint' | 'user_id' | 'origin' | 'ip_address';
|
|
7803
|
+
export declare type CreatedAtSortMode = 'created_at_ascending' | 'created_at_descending';
|
|
7804
|
+
export declare type CodeLanguage = 'go' | 'python' | 'node';
|
|
7805
|
+
export declare type CodeOption =
|
|
7806
|
+
/** Code option for running and verifying kcl.
|
|
7807
|
+
|
|
7808
|
+
<details><summary>JSON schema</summary>
|
|
7809
|
+
|
|
7810
|
+
```json { "title": "CodeOption", "description": "Code option for running and verifying kcl.", "type": "string", "enum": [ "parse", "execute", "cleanup", "mock_execute" ] } ``` </details> */
|
|
7811
|
+
'parse' | 'execute' | 'cleanup' | 'mock_execute';
|
|
7812
|
+
export declare type UserIdentifier = string;
|
|
7813
|
+
export declare type PostEffectType =
|
|
7814
|
+
/** Post effect type */
|
|
7815
|
+
'phosphor' | 'ssao' | 'noeffect';
|
|
7793
7816
|
export interface Models {
|
|
7794
7817
|
AccountProvider: AccountProvider;
|
|
7795
7818
|
AddHoleFromOffset: AddHoleFromOffset;
|
|
@@ -7805,7 +7828,6 @@ export interface Models {
|
|
|
7805
7828
|
AnnotationTextOptions: AnnotationTextOptions;
|
|
7806
7829
|
AnnotationType: AnnotationType;
|
|
7807
7830
|
ApiCallQueryGroup: ApiCallQueryGroup;
|
|
7808
|
-
ApiCallQueryGroupBy: ApiCallQueryGroupBy;
|
|
7809
7831
|
ApiCallStatus: ApiCallStatus;
|
|
7810
7832
|
ApiCallWithPrice: ApiCallWithPrice;
|
|
7811
7833
|
ApiCallWithPriceResultsPage: ApiCallWithPriceResultsPage;
|
|
@@ -7840,8 +7862,6 @@ export interface Models {
|
|
|
7840
7862
|
CenterOfMass: CenterOfMass;
|
|
7841
7863
|
ClientMetrics: ClientMetrics;
|
|
7842
7864
|
ClosePath: ClosePath;
|
|
7843
|
-
CodeLanguage: CodeLanguage;
|
|
7844
|
-
CodeOption: CodeOption;
|
|
7845
7865
|
CodeOutput: CodeOutput;
|
|
7846
7866
|
Color: Color;
|
|
7847
7867
|
ComplementaryEdges: ComplementaryEdges;
|
|
@@ -7853,7 +7873,6 @@ export interface Models {
|
|
|
7853
7873
|
Coupon: Coupon;
|
|
7854
7874
|
CreateShortlinkRequest: CreateShortlinkRequest;
|
|
7855
7875
|
CreateShortlinkResponse: CreateShortlinkResponse;
|
|
7856
|
-
CreatedAtSortMode: CreatedAtSortMode;
|
|
7857
7876
|
CrmData: CrmData;
|
|
7858
7877
|
Currency: Currency;
|
|
7859
7878
|
CurveGetControlPoints: CurveGetControlPoints;
|
|
@@ -8046,7 +8065,6 @@ export interface Models {
|
|
|
8046
8065
|
Point3d: Point3d;
|
|
8047
8066
|
Point4d: Point4d;
|
|
8048
8067
|
Pong: Pong;
|
|
8049
|
-
PostEffectType: PostEffectType;
|
|
8050
8068
|
PrivacySettings: PrivacySettings;
|
|
8051
8069
|
ProjectEntityToPlane: ProjectEntityToPlane;
|
|
8052
8070
|
ProjectPointsToPlane: ProjectPointsToPlane;
|
|
@@ -8169,7 +8187,6 @@ export interface Models {
|
|
|
8169
8187
|
UpdateShortlinkRequest: UpdateShortlinkRequest;
|
|
8170
8188
|
UpdateUser: UpdateUser;
|
|
8171
8189
|
User: User;
|
|
8172
|
-
UserIdentifier: UserIdentifier;
|
|
8173
8190
|
UserOrgInfo: UserOrgInfo;
|
|
8174
8191
|
UserOrgRole: UserOrgRole;
|
|
8175
8192
|
UserResultsPage: UserResultsPage;
|
|
@@ -8186,6 +8203,12 @@ export interface Models {
|
|
|
8186
8203
|
ZooProductSubscriptionsUserRequest: ZooProductSubscriptionsUserRequest;
|
|
8187
8204
|
ZooTool: ZooTool;
|
|
8188
8205
|
ZoomToFit: ZoomToFit;
|
|
8206
|
+
ApiCallQueryGroupBy: ApiCallQueryGroupBy;
|
|
8207
|
+
CreatedAtSortMode: CreatedAtSortMode;
|
|
8208
|
+
CodeLanguage: CodeLanguage;
|
|
8209
|
+
CodeOption: CodeOption;
|
|
8210
|
+
UserIdentifier: UserIdentifier;
|
|
8211
|
+
PostEffectType: PostEffectType;
|
|
8189
8212
|
}
|
|
8190
8213
|
export declare type File = {
|
|
8191
8214
|
readonly name: string;
|