@kittycad/lib 2.0.45 → 2.0.47
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-list_conversations_for_user.test.d.ts +2 -0
- package/dist/types/__tests__/gen/ml-list_conversations_for_user.test.d.ts.map +1 -0
- package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts +2 -2
- package/dist/types/src/api/ml/get_text_to_cad_model_for_user.d.ts.map +1 -1
- package/dist/types/src/api/ml/list_conversations_for_user.d.ts +12 -0
- package/dist/types/src/api/ml/list_conversations_for_user.d.ts.map +1 -0
- package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts +4 -3
- package/dist/types/src/api/ml/list_text_to_cad_models_for_user.d.ts.map +1 -1
- package/dist/types/src/apiGen.d.ts.map +1 -1
- package/dist/types/src/expectedToFail.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +185 -5
- package/dist/types/src/models.d.ts.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +2 -2
- package/dist/types/__tests__/gen/payments-update_user_subscription.test.d.ts +0 -2
- package/dist/types/__tests__/gen/payments-update_user_subscription.test.d.ts.map +0 -1
|
@@ -204,6 +204,7 @@ export declare type AsyncApiCallOutput_type = {
|
|
|
204
204
|
} | {
|
|
205
205
|
code?: string;
|
|
206
206
|
completed_at?: string;
|
|
207
|
+
conversation_id: Uuid_type;
|
|
207
208
|
created_at: string;
|
|
208
209
|
error?: string;
|
|
209
210
|
feedback?: MlFeedback_type;
|
|
@@ -224,6 +225,7 @@ export declare type AsyncApiCallOutput_type = {
|
|
|
224
225
|
} | {
|
|
225
226
|
code: string;
|
|
226
227
|
completed_at?: string;
|
|
228
|
+
conversation_id: Uuid_type;
|
|
227
229
|
created_at: string;
|
|
228
230
|
error?: string;
|
|
229
231
|
feedback?: MlFeedback_type;
|
|
@@ -385,6 +387,17 @@ export interface ComponentTransform_type {
|
|
|
385
387
|
scale?: TransformByForPoint3d_type;
|
|
386
388
|
translate?: TransformByForPoint3d_type;
|
|
387
389
|
}
|
|
390
|
+
export interface Conversation_type {
|
|
391
|
+
created_at: string;
|
|
392
|
+
first_prompt: string;
|
|
393
|
+
id: Uuid_type;
|
|
394
|
+
updated_at: string;
|
|
395
|
+
user_id: Uuid_type;
|
|
396
|
+
}
|
|
397
|
+
export interface ConversationResultsPage_type {
|
|
398
|
+
items: Conversation_type[];
|
|
399
|
+
next_page?: string;
|
|
400
|
+
}
|
|
388
401
|
export interface ConversionParams_type {
|
|
389
402
|
output_format: OutputFormat3d_type;
|
|
390
403
|
src_format: InputFormat3d_type;
|
|
@@ -968,6 +981,47 @@ export interface Mass_type {
|
|
|
968
981
|
output_unit: UnitMass_type;
|
|
969
982
|
}
|
|
970
983
|
export declare type Method_type = 'OPTIONS' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'HEAD' | 'TRACE' | 'CONNECT' | 'PATCH' | 'EXTENSION';
|
|
984
|
+
export declare type MlCopilotClientMessage_type = {
|
|
985
|
+
headers: {
|
|
986
|
+
[key: string]: string;
|
|
987
|
+
};
|
|
988
|
+
type: 'headers';
|
|
989
|
+
} | {
|
|
990
|
+
content: string;
|
|
991
|
+
current_files: {
|
|
992
|
+
[key: string]: number[];
|
|
993
|
+
};
|
|
994
|
+
project_name?: string;
|
|
995
|
+
source_ranges: SourceRangePrompt_type[];
|
|
996
|
+
type: 'user';
|
|
997
|
+
} | {
|
|
998
|
+
command: MlCopilotSystemCommand_type;
|
|
999
|
+
type: 'system';
|
|
1000
|
+
};
|
|
1001
|
+
export declare type MlCopilotServerMessage_type = {
|
|
1002
|
+
delta: {
|
|
1003
|
+
delta: string;
|
|
1004
|
+
};
|
|
1005
|
+
} | {
|
|
1006
|
+
tool_output: {
|
|
1007
|
+
result: MlToolResult_type;
|
|
1008
|
+
};
|
|
1009
|
+
} | {
|
|
1010
|
+
error: {
|
|
1011
|
+
detail: string;
|
|
1012
|
+
};
|
|
1013
|
+
} | {
|
|
1014
|
+
info: {
|
|
1015
|
+
text: string;
|
|
1016
|
+
};
|
|
1017
|
+
} | {
|
|
1018
|
+
reasoning: ReasoningMessage_type;
|
|
1019
|
+
} | {
|
|
1020
|
+
end_of_stream: {
|
|
1021
|
+
whole_response?: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
export declare type MlCopilotSystemCommand_type = 'new' | 'bye';
|
|
971
1025
|
export declare type MlFeedback_type = 'thumbs_up' | 'thumbs_down' | 'accepted' | 'rejected';
|
|
972
1026
|
export interface MlPrompt_type {
|
|
973
1027
|
completed_at?: string;
|
|
@@ -998,6 +1052,26 @@ export interface MlPromptResultsPage_type {
|
|
|
998
1052
|
next_page?: string;
|
|
999
1053
|
}
|
|
1000
1054
|
export declare type MlPromptType_type = 'text_to_cad' | 'text_to_kcl' | 'text_to_kcl_iteration' | 'text_to_kcl_multi_file_iteration';
|
|
1055
|
+
export declare type MlToolResult_type = {
|
|
1056
|
+
error?: string;
|
|
1057
|
+
outputs: {
|
|
1058
|
+
[key: string]: string;
|
|
1059
|
+
};
|
|
1060
|
+
project_name?: string;
|
|
1061
|
+
status_code: number;
|
|
1062
|
+
type: 'text_to_cad';
|
|
1063
|
+
} | {
|
|
1064
|
+
error?: string;
|
|
1065
|
+
outputs: {
|
|
1066
|
+
[key: string]: string;
|
|
1067
|
+
};
|
|
1068
|
+
project_name?: string;
|
|
1069
|
+
status_code: number;
|
|
1070
|
+
type: 'edit_kcl_code';
|
|
1071
|
+
} | {
|
|
1072
|
+
response: string;
|
|
1073
|
+
type: 'mechanical_knowledge_base';
|
|
1074
|
+
};
|
|
1001
1075
|
export declare type ModelingAppEventType_type = 'successful_compile_before_close';
|
|
1002
1076
|
export declare type ModelingAppIndividualSubscriptionTier_type = 'free' | 'plus' | 'pro';
|
|
1003
1077
|
export declare type ModelingAppOrganizationSubscriptionTier_type = 'team' | 'enterprise';
|
|
@@ -2218,7 +2292,7 @@ export declare type PathSegment_type = {
|
|
|
2218
2292
|
} | {
|
|
2219
2293
|
center: Point2d_type;
|
|
2220
2294
|
end_angle: Angle_type;
|
|
2221
|
-
|
|
2295
|
+
major_axis: Point2d_type;
|
|
2222
2296
|
minor_radius: LengthUnit_type;
|
|
2223
2297
|
start_angle: Angle_type;
|
|
2224
2298
|
type: 'ellipse';
|
|
@@ -2260,6 +2334,10 @@ export interface PerspectiveCameraParameters_type {
|
|
|
2260
2334
|
z_near?: number;
|
|
2261
2335
|
}
|
|
2262
2336
|
export declare type PlanInterval_type = 'day' | 'month' | 'week' | 'year';
|
|
2337
|
+
export interface PlanStep_type {
|
|
2338
|
+
edit_instructions: string;
|
|
2339
|
+
filepath_to_edit: string;
|
|
2340
|
+
}
|
|
2263
2341
|
export interface PlaneIntersectAndProject_type {
|
|
2264
2342
|
plane_coordinates?: Point2d_type;
|
|
2265
2343
|
}
|
|
@@ -2298,6 +2376,39 @@ export interface RawFile_type {
|
|
|
2298
2376
|
contents: number[];
|
|
2299
2377
|
name: string;
|
|
2300
2378
|
}
|
|
2379
|
+
export declare type ReasoningMessage_type = {
|
|
2380
|
+
content: string;
|
|
2381
|
+
type: 'text';
|
|
2382
|
+
} | {
|
|
2383
|
+
content: string;
|
|
2384
|
+
type: 'kcl_docs';
|
|
2385
|
+
} | {
|
|
2386
|
+
content: string;
|
|
2387
|
+
type: 'kcl_code_examples';
|
|
2388
|
+
} | {
|
|
2389
|
+
content: string;
|
|
2390
|
+
type: 'feature_tree_outline';
|
|
2391
|
+
} | {
|
|
2392
|
+
steps: PlanStep_type[];
|
|
2393
|
+
type: 'design_plan';
|
|
2394
|
+
} | {
|
|
2395
|
+
code: string;
|
|
2396
|
+
type: 'generated_kcl_code';
|
|
2397
|
+
} | {
|
|
2398
|
+
error: string;
|
|
2399
|
+
type: 'kcl_code_error';
|
|
2400
|
+
} | {
|
|
2401
|
+
content: string;
|
|
2402
|
+
file_name: string;
|
|
2403
|
+
type: 'created_kcl_file';
|
|
2404
|
+
} | {
|
|
2405
|
+
content: string;
|
|
2406
|
+
file_name: string;
|
|
2407
|
+
type: 'updated_kcl_file';
|
|
2408
|
+
} | {
|
|
2409
|
+
file_name: string;
|
|
2410
|
+
type: 'deleted_kcl_file';
|
|
2411
|
+
};
|
|
2301
2412
|
export interface ReconfigureStream_type {
|
|
2302
2413
|
}
|
|
2303
2414
|
export declare type RelativeTo_type = 'sketch_plane' | 'trajectory_curve';
|
|
@@ -2538,6 +2649,7 @@ export interface TakeSnapshot_type {
|
|
|
2538
2649
|
export interface TextToCad_type {
|
|
2539
2650
|
code?: string;
|
|
2540
2651
|
completed_at?: string;
|
|
2652
|
+
conversation_id: Uuid_type;
|
|
2541
2653
|
created_at: string;
|
|
2542
2654
|
error?: string;
|
|
2543
2655
|
feedback?: MlFeedback_type;
|
|
@@ -2563,6 +2675,7 @@ export interface TextToCadCreateBody_type {
|
|
|
2563
2675
|
export interface TextToCadIteration_type {
|
|
2564
2676
|
code: string;
|
|
2565
2677
|
completed_at?: string;
|
|
2678
|
+
conversation_id: Uuid_type;
|
|
2566
2679
|
created_at: string;
|
|
2567
2680
|
error?: string;
|
|
2568
2681
|
feedback?: MlFeedback_type;
|
|
@@ -2613,8 +2726,66 @@ export interface TextToCadMultiFileIterationBody_type {
|
|
|
2613
2726
|
prompt?: string;
|
|
2614
2727
|
source_ranges: SourceRangePrompt_type[];
|
|
2615
2728
|
}
|
|
2616
|
-
export
|
|
2617
|
-
|
|
2729
|
+
export declare type TextToCadResponse_type = {
|
|
2730
|
+
code?: string;
|
|
2731
|
+
completed_at?: string;
|
|
2732
|
+
conversation_id: Uuid_type;
|
|
2733
|
+
created_at: string;
|
|
2734
|
+
error?: string;
|
|
2735
|
+
feedback?: MlFeedback_type;
|
|
2736
|
+
id: Uuid_type;
|
|
2737
|
+
kcl_version?: string;
|
|
2738
|
+
model: TextToCadModel_type;
|
|
2739
|
+
model_version: string;
|
|
2740
|
+
output_format: FileExportFormat_type;
|
|
2741
|
+
outputs: {
|
|
2742
|
+
[key: string]: string;
|
|
2743
|
+
};
|
|
2744
|
+
prompt: string;
|
|
2745
|
+
started_at?: string;
|
|
2746
|
+
status: ApiCallStatus_type;
|
|
2747
|
+
updated_at: string;
|
|
2748
|
+
user_id: Uuid_type;
|
|
2749
|
+
} | {
|
|
2750
|
+
code: string;
|
|
2751
|
+
completed_at?: string;
|
|
2752
|
+
conversation_id: Uuid_type;
|
|
2753
|
+
created_at: string;
|
|
2754
|
+
error?: string;
|
|
2755
|
+
feedback?: MlFeedback_type;
|
|
2756
|
+
id: Uuid_type;
|
|
2757
|
+
model: TextToCadModel_type;
|
|
2758
|
+
model_version: string;
|
|
2759
|
+
original_source_code: string;
|
|
2760
|
+
prompt?: string;
|
|
2761
|
+
source_ranges: SourceRangePrompt_type[];
|
|
2762
|
+
started_at?: string;
|
|
2763
|
+
status: ApiCallStatus_type;
|
|
2764
|
+
updated_at: string;
|
|
2765
|
+
user_id: Uuid_type;
|
|
2766
|
+
} | {
|
|
2767
|
+
completed_at?: string;
|
|
2768
|
+
conversation_id: Uuid_type;
|
|
2769
|
+
created_at: string;
|
|
2770
|
+
error?: string;
|
|
2771
|
+
feedback?: MlFeedback_type;
|
|
2772
|
+
id: Uuid_type;
|
|
2773
|
+
kcl_version?: string;
|
|
2774
|
+
model: TextToCadModel_type;
|
|
2775
|
+
model_version: string;
|
|
2776
|
+
outputs: {
|
|
2777
|
+
[key: string]: string;
|
|
2778
|
+
};
|
|
2779
|
+
project_name?: string;
|
|
2780
|
+
prompt?: string;
|
|
2781
|
+
source_ranges: SourceRangePrompt_type[];
|
|
2782
|
+
started_at?: string;
|
|
2783
|
+
status: ApiCallStatus_type;
|
|
2784
|
+
updated_at: string;
|
|
2785
|
+
user_id: Uuid_type;
|
|
2786
|
+
};
|
|
2787
|
+
export interface TextToCadResponseResultsPage_type {
|
|
2788
|
+
items: TextToCadResponse_type[];
|
|
2618
2789
|
next_page?: string;
|
|
2619
2790
|
}
|
|
2620
2791
|
export interface TokenRevokeRequestForm_type {
|
|
@@ -2908,7 +3079,7 @@ export interface VerificationTokenResponse_type {
|
|
|
2908
3079
|
expires: string;
|
|
2909
3080
|
id: Uuid_type;
|
|
2910
3081
|
identifier: string;
|
|
2911
|
-
|
|
3082
|
+
redirect_url?: string;
|
|
2912
3083
|
updated_at: string;
|
|
2913
3084
|
}
|
|
2914
3085
|
export interface ViewIsometric_type {
|
|
@@ -3043,6 +3214,8 @@ export interface Models {
|
|
|
3043
3214
|
Color_type: Color_type;
|
|
3044
3215
|
ComplementaryEdges_type: ComplementaryEdges_type;
|
|
3045
3216
|
ComponentTransform_type: ComponentTransform_type;
|
|
3217
|
+
Conversation_type: Conversation_type;
|
|
3218
|
+
ConversationResultsPage_type: ConversationResultsPage_type;
|
|
3046
3219
|
ConversionParams_type: ConversionParams_type;
|
|
3047
3220
|
CountryCode_type: CountryCode_type;
|
|
3048
3221
|
Coupon_type: Coupon_type;
|
|
@@ -3173,11 +3346,15 @@ export interface Models {
|
|
|
3173
3346
|
MakePlane_type: MakePlane_type;
|
|
3174
3347
|
Mass_type: Mass_type;
|
|
3175
3348
|
Method_type: Method_type;
|
|
3349
|
+
MlCopilotClientMessage_type: MlCopilotClientMessage_type;
|
|
3350
|
+
MlCopilotServerMessage_type: MlCopilotServerMessage_type;
|
|
3351
|
+
MlCopilotSystemCommand_type: MlCopilotSystemCommand_type;
|
|
3176
3352
|
MlFeedback_type: MlFeedback_type;
|
|
3177
3353
|
MlPrompt_type: MlPrompt_type;
|
|
3178
3354
|
MlPromptMetadata_type: MlPromptMetadata_type;
|
|
3179
3355
|
MlPromptResultsPage_type: MlPromptResultsPage_type;
|
|
3180
3356
|
MlPromptType_type: MlPromptType_type;
|
|
3357
|
+
MlToolResult_type: MlToolResult_type;
|
|
3181
3358
|
ModelingAppEventType_type: ModelingAppEventType_type;
|
|
3182
3359
|
ModelingAppIndividualSubscriptionTier_type: ModelingAppIndividualSubscriptionTier_type;
|
|
3183
3360
|
ModelingAppOrganizationSubscriptionTier_type: ModelingAppOrganizationSubscriptionTier_type;
|
|
@@ -3228,6 +3405,7 @@ export interface Models {
|
|
|
3228
3405
|
PaymentMethodType_type: PaymentMethodType_type;
|
|
3229
3406
|
PerspectiveCameraParameters_type: PerspectiveCameraParameters_type;
|
|
3230
3407
|
PlanInterval_type: PlanInterval_type;
|
|
3408
|
+
PlanStep_type: PlanStep_type;
|
|
3231
3409
|
PlaneIntersectAndProject_type: PlaneIntersectAndProject_type;
|
|
3232
3410
|
PlaneSetColor_type: PlaneSetColor_type;
|
|
3233
3411
|
PlyStorage_type: PlyStorage_type;
|
|
@@ -3240,6 +3418,7 @@ export interface Models {
|
|
|
3240
3418
|
ProjectEntityToPlane_type: ProjectEntityToPlane_type;
|
|
3241
3419
|
ProjectPointsToPlane_type: ProjectPointsToPlane_type;
|
|
3242
3420
|
RawFile_type: RawFile_type;
|
|
3421
|
+
ReasoningMessage_type: ReasoningMessage_type;
|
|
3243
3422
|
ReconfigureStream_type: ReconfigureStream_type;
|
|
3244
3423
|
RelativeTo_type: RelativeTo_type;
|
|
3245
3424
|
RemoveSceneObjects_type: RemoveSceneObjects_type;
|
|
@@ -3317,7 +3496,8 @@ export interface Models {
|
|
|
3317
3496
|
TextToCadModel_type: TextToCadModel_type;
|
|
3318
3497
|
TextToCadMultiFileIteration_type: TextToCadMultiFileIteration_type;
|
|
3319
3498
|
TextToCadMultiFileIterationBody_type: TextToCadMultiFileIterationBody_type;
|
|
3320
|
-
|
|
3499
|
+
TextToCadResponse_type: TextToCadResponse_type;
|
|
3500
|
+
TextToCadResponseResultsPage_type: TextToCadResponseResultsPage_type;
|
|
3321
3501
|
TokenRevokeRequestForm_type: TokenRevokeRequestForm_type;
|
|
3322
3502
|
Transform_type: Transform_type;
|
|
3323
3503
|
TransformByForPoint3d_type: TransformByForPoint3d_type;
|