@kittycad/lib 4.5.16 → 4.5.19

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.
Files changed (27) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/src/api/meta/get_announcements.d.ts +5 -11
  4. package/dist/types/src/api/meta/get_announcements.d.ts.map +1 -1
  5. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts +2 -0
  6. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts.map +1 -1
  7. package/dist/types/src/api/projects/create_project_library.d.ts +22 -0
  8. package/dist/types/src/api/projects/create_project_library.d.ts.map +1 -0
  9. package/dist/types/src/api/projects/delete_project_library.d.ts +22 -0
  10. package/dist/types/src/api/projects/delete_project_library.d.ts.map +1 -0
  11. package/dist/types/src/api/projects/list_library_projects.d.ts +28 -0
  12. package/dist/types/src/api/projects/list_library_projects.d.ts.map +1 -0
  13. package/dist/types/src/api/projects/list_project_categories.d.ts +4 -10
  14. package/dist/types/src/api/projects/list_project_categories.d.ts.map +1 -1
  15. package/dist/types/src/api/projects/list_project_libraries.d.ts +26 -0
  16. package/dist/types/src/api/projects/list_project_libraries.d.ts.map +1 -0
  17. package/dist/types/src/api/projects/list_projects.d.ts +8 -10
  18. package/dist/types/src/api/projects/list_projects.d.ts.map +1 -1
  19. package/dist/types/src/api/projects/list_public_projects.d.ts +4 -2
  20. package/dist/types/src/api/projects/list_public_projects.d.ts.map +1 -1
  21. package/dist/types/src/api/projects/rename_project_library.d.ts +24 -0
  22. package/dist/types/src/api/projects/rename_project_library.d.ts.map +1 -0
  23. package/dist/types/src/index.d.ts +15 -7
  24. package/dist/types/src/index.d.ts.map +1 -1
  25. package/dist/types/src/models.d.ts +186 -25
  26. package/dist/types/src/models.d.ts.map +1 -1
  27. package/package.json +2 -2
@@ -528,16 +528,9 @@ export interface Announcement {
528
528
  */
529
529
  updated_at: string;
530
530
  }
531
- export interface AnnouncementResultsPage {
532
- /** list of items on this page of results */
533
- items: Announcement[];
534
- /**
535
- * {
536
- * "nullable": true,
537
- * "description": "token used to fetch the next page of results (if any)"
538
- * }
539
- */
540
- next_page?: string;
531
+ export interface AnnouncementList {
532
+ /** The list of active announcements. */
533
+ announcements: Announcement[];
541
534
  }
542
535
  export type ApiCallStatus = 'queued' | 'uploaded' | 'in_progress' | 'completed' | 'failed';
543
536
  export interface ApiCallWithPrice {
@@ -1804,6 +1797,12 @@ export interface CreatePlanarSurface {
1804
1797
  */
1805
1798
  surfaces: string[];
1806
1799
  }
1800
+ export interface CreateProjectLibraryRequest {
1801
+ /** Display name for the library. */
1802
+ name: string;
1803
+ /** Whether the library belongs to the user or their active organization. */
1804
+ scope: ProjectLibraryScope;
1805
+ }
1807
1806
  export interface CreateProjectShareLinkRequest {
1808
1807
  /** default:anyone_with_link, description:Access policy for the generated share link. */
1809
1808
  access_mode?: KclProjectShareLinkAccessMode;
@@ -2767,7 +2766,7 @@ export interface FailureWebSocketResponse {
2767
2766
  success: boolean;
2768
2767
  }
2769
2768
  export type FbxStorage = 'ascii' | 'binary';
2770
- export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'disallow_self_signup' | 'email_with_s_e_s' | 'execution_jobs' | 'enable_z0006_lint' | 'factory_portal' | 'kcl_cek_executor' | 'kcl_new_lexer_parser' | 'redirect_to_govcloud' | 'require_saml_auth' | 'local_dev' | 'newsletter' | 'prefix_email_subject' | 'enterprise_cockroach' | 'same_site_none_cookies' | 'validate_tax_info' | 'dfm_review' | 'drawings' | 'modeling_dialogs' | 'named_views_ui' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'legacy_sketch_mode' | 'sketch_experimental_features' | 'zookeeper_pro_mode' | 'zookeeper_ultra_mode' | 'zookeeper_client_commands' | 'zookeeper_kcl_migration' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2769
+ export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'disallow_self_signup' | 'email_with_s_e_s' | 'execution_jobs' | 'enable_z0006_lint' | 'factory_portal' | 'kcl_cek_executor' | 'redirect_to_govcloud' | 'require_saml_auth' | 'local_dev' | 'newsletter' | 'prefix_email_subject' | 'enterprise_cockroach' | 'same_site_none_cookies' | 'validate_tax_info' | 'dfm_review' | 'drawings' | 'modeling_dialogs' | 'named_views_ui' | 'scene_browser' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'sketch_experimental_features' | 'zookeeper_pro_mode' | 'zookeeper_ultra_mode' | 'zookeeper_client_commands' | 'zookeeper_kcl_migration' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2771
2770
  export interface FileBoundingBox {
2772
2771
  /**
2773
2772
  * {
@@ -3708,6 +3707,19 @@ export interface KclCodeCompletionRequest {
3708
3707
  export interface KclCodeCompletionResponse {
3709
3708
  completions: string[];
3710
3709
  }
3710
+ export interface KclMigrationApplication {
3711
+ /**
3712
+ * {
3713
+ * "format": "uint32",
3714
+ * "minimum": 0,
3715
+ * "description": "Starts at zero. Each accepted state change increments it once."
3716
+ * }
3717
+ */
3718
+ revision: number;
3719
+ /** Last reported state; not independent verification of local files. */
3720
+ status: KclMigrationApplicationStatus;
3721
+ }
3722
+ export type KclMigrationApplicationStatus = 'not_applied' | 'applied' | 'undone';
3711
3723
  export type KclMigrationClientMessage = {
3712
3724
  headers: {
3713
3725
  [key: string]: string;
@@ -3737,9 +3749,67 @@ export type KclMigrationClientMessage = {
3737
3749
  */
3738
3750
  operation_id: Uuid;
3739
3751
  type: 'cancel';
3752
+ } | {
3753
+ /**
3754
+ * {
3755
+ * "$ref": "#/components/schemas/Uuid"
3756
+ * }
3757
+ */
3758
+ conversation_id: Uuid;
3759
+ type: 'history';
3760
+ } | {
3761
+ /**
3762
+ * {
3763
+ * "format": "uint32",
3764
+ * "minimum": 0,
3765
+ * "description": "The revision read before making the local change. Retrying is idempotent."
3766
+ * }
3767
+ */
3768
+ expected_revision: number;
3769
+ /**
3770
+ * {
3771
+ * "$ref": "#/components/schemas/Uuid"
3772
+ * }
3773
+ */
3774
+ operation_id: Uuid;
3775
+ /**
3776
+ * {
3777
+ * "$ref": "#/components/schemas/KclMigrationApplicationStatus"
3778
+ * }
3779
+ */
3780
+ status: KclMigrationApplicationStatus;
3781
+ type: 'application';
3740
3782
  } | {
3741
3783
  type: 'ping';
3742
3784
  };
3785
+ export interface KclMigrationHistoryEntry {
3786
+ /**
3787
+ * {
3788
+ * "nullable": true,
3789
+ * "description": "Place this entry after this ordinary prompt when replaying the conversation."
3790
+ * }
3791
+ */
3792
+ after_prompt_id?: Uuid;
3793
+ /** Most recent client acknowledgement. */
3794
+ application: KclMigrationApplication;
3795
+ /** Conversation that owns this entry. */
3796
+ conversation_id: Uuid;
3797
+ /** format:date-time, description:Admission time, used for chronological display. */
3798
+ created_at: string;
3799
+ /** Outcome summary for display and subsequent model context. */
3800
+ detail: string;
3801
+ /** Migration request ID. Use the status command to retrieve a candidate explicitly. */
3802
+ operation_id: Uuid;
3803
+ /**
3804
+ * {
3805
+ * "nullable": true,
3806
+ * "description": "Persisted Copilot prompt, when this migration has a conversation transcript."
3807
+ * }
3808
+ */
3809
+ prompt_id?: Uuid;
3810
+ /** Conversion outcome. Success alone does not mean files were applied. */
3811
+ status: KclMigrationStatus;
3812
+ }
3743
3813
  export interface KclMigrationOperation {
3744
3814
  /**
3745
3815
  * {
@@ -3767,6 +3837,13 @@ export interface KclMigrationOperation {
3767
3837
  export interface KclMigrationRequest {
3768
3838
  /** default:false, description:Explicit consent to unstable preview semantics. */
3769
3839
  allow_preview?: boolean;
3840
+ /**
3841
+ * {
3842
+ * "nullable": true,
3843
+ * "description": "Existing customer conversation to link and use as background context. API verifies ownership; migration keeps its own sponsored execution record."
3844
+ * }
3845
+ */
3846
+ conversation_id?: Uuid;
3770
3847
  current_files: {
3771
3848
  [key: string]: number[];
3772
3849
  };
@@ -3816,6 +3893,29 @@ export type KclMigrationServerMessage = {
3816
3893
  /** The initiating request ID, used to keep progress with its migration. */
3817
3894
  operation_id: Uuid;
3818
3895
  type: 'progress';
3896
+ } | {
3897
+ /**
3898
+ * {
3899
+ * "$ref": "#/components/schemas/Uuid"
3900
+ * }
3901
+ */
3902
+ conversation_id: Uuid;
3903
+ entries: KclMigrationHistoryEntry[];
3904
+ type: 'history';
3905
+ } | {
3906
+ /**
3907
+ * {
3908
+ * "$ref": "#/components/schemas/KclMigrationApplication"
3909
+ * }
3910
+ */
3911
+ application: KclMigrationApplication;
3912
+ /**
3913
+ * {
3914
+ * "$ref": "#/components/schemas/Uuid"
3915
+ * }
3916
+ */
3917
+ operation_id: Uuid;
3918
+ type: 'application';
3819
3919
  } | {
3820
3920
  detail: string;
3821
3921
  type: 'error';
@@ -3853,7 +3953,7 @@ export type KclProjectPreviewStatus = 'pending' | 'ready' | 'failed';
3853
3953
  export type KclProjectPublicationStatus = 'private' | 'draft' | 'pending_review' | 'published' | 'rejected' | 'deleted' | 'changes_requested';
3854
3954
  export type KclProjectShareLinkAccessMode = 'anyone_with_link' | 'organization_only';
3855
3955
  export type KclProjectVersionAncestryStatus = 'root' | 'recorded' | 'legacy_unknown';
3856
- export type KclVersion = '1.0' | '2.0' | '3.0-preview' | '3.0';
3956
+ export type KclVersion = '1.0' | '2.0' | '3.0-preview' | '3.0' | '4.0-preview';
3857
3957
  export type LengthUnit = number;
3858
3958
  export type LenientUrl =
3859
3959
  /**
@@ -6309,6 +6409,10 @@ export type ModelingCmd = {
6309
6409
  type: 'create_region';
6310
6410
  /** Which version of the Region endpoint to call. */
6311
6411
  version?: RegionVersion;
6412
+ } | {
6413
+ /** Should graphics be enabled? */
6414
+ graphics_enabled: boolean;
6415
+ type: 'toggle_graphics';
6312
6416
  } | {
6313
6417
  /**
6314
6418
  * {
@@ -7835,6 +7939,14 @@ export type OkModelingCmdResponse = {
7835
7939
  */
7836
7940
  data: CreateRegion;
7837
7941
  type: 'create_region';
7942
+ } | {
7943
+ /**
7944
+ * {
7945
+ * "$ref": "#/components/schemas/ToggleGraphics"
7946
+ * }
7947
+ */
7948
+ data: ToggleGraphics;
7949
+ type: 'toggle_graphics';
7838
7950
  } | {
7839
7951
  /**
7840
7952
  * {
@@ -8971,17 +9083,6 @@ export interface ProjectCategoryResponse {
8971
9083
  */
8972
9084
  sort_order: number;
8973
9085
  }
8974
- export interface ProjectCategoryResponseResultsPage {
8975
- /** list of items on this page of results */
8976
- items: ProjectCategoryResponse[];
8977
- /**
8978
- * {
8979
- * "nullable": true,
8980
- * "description": "token used to fetch the next page of results (if any)"
8981
- * }
8982
- */
8983
- next_page?: string;
8984
- }
8985
9086
  export interface ProjectEntityToPlane {
8986
9087
  /** Projected points. */
8987
9088
  projected_points: Point3d[];
@@ -9011,6 +9112,36 @@ export interface ProjectFileResponse {
9011
9112
  /** title:DateTime, format:date-time, description:File last update timestamp. */
9012
9113
  updated_at: string;
9013
9114
  }
9115
+ export interface ProjectLibraryResponse {
9116
+ /** Whether the caller may rename or delete this library. */
9117
+ can_manage: boolean;
9118
+ /** title:DateTime, format:date-time, description:When the library was created. */
9119
+ created_at: string;
9120
+ /** Unique library identifier. */
9121
+ id: Uuid;
9122
+ /** Display name, preserving the owner's capitalization. */
9123
+ name: string;
9124
+ /** nullable:true, description:Organization owner; null for a personal library. */
9125
+ org_id?: Uuid;
9126
+ /** Opaque revision token required when renaming or deleting the library. */
9127
+ revision: string;
9128
+ /** title:DateTime, format:date-time, description:When the library was last updated. */
9129
+ updated_at: string;
9130
+ /** nullable:true, description:Personal owner; null for an organization library. */
9131
+ user_id?: Uuid;
9132
+ }
9133
+ export interface ProjectLibraryResponseResultsPage {
9134
+ /** list of items on this page of results */
9135
+ items: ProjectLibraryResponse[];
9136
+ /**
9137
+ * {
9138
+ * "nullable": true,
9139
+ * "description": "token used to fetch the next page of results (if any)"
9140
+ * }
9141
+ */
9142
+ next_page?: string;
9143
+ }
9144
+ export type ProjectLibraryScope = 'personal' | 'organization';
9014
9145
  export interface ProjectPointsToPlane {
9015
9146
  /** Projected points. */
9016
9147
  projected_points: Point3d[];
@@ -9066,6 +9197,13 @@ export interface ProjectResponse {
9066
9197
  files: ProjectFileResponse[];
9067
9198
  /** Unique project identifier. */
9068
9199
  id: Uuid;
9200
+ /**
9201
+ * {
9202
+ * "nullable": true,
9203
+ * "description": "Named library containing the project; null means unassigned."
9204
+ * }
9205
+ */
9206
+ library_id?: Uuid;
9069
9207
  /** Current preview generation state. */
9070
9208
  preview_status: KclProjectPreviewStatus;
9071
9209
  /**
@@ -9124,6 +9262,13 @@ export interface ProjectSummaryResponse {
9124
9262
  entrypoint_path: string;
9125
9263
  /** Unique project identifier. */
9126
9264
  id: Uuid;
9265
+ /**
9266
+ * {
9267
+ * "nullable": true,
9268
+ * "description": "Named library containing the project; null means unassigned."
9269
+ * }
9270
+ */
9271
+ library_id?: Uuid;
9127
9272
  /** Current preview generation state. */
9128
9273
  preview_status: KclProjectPreviewStatus;
9129
9274
  /**
@@ -9402,6 +9547,12 @@ export type RegionVersion = 'V0' | 'V1';
9402
9547
  export type RelativeTo = 'sketch_plane' | 'trajectory_curve';
9403
9548
  export interface RemoveSceneObjects {
9404
9549
  }
9550
+ export interface RenameProjectLibraryRequest {
9551
+ /** Revision returned by the last library read. */
9552
+ expected_revision: string;
9553
+ /** New display name. */
9554
+ name: string;
9555
+ }
9405
9556
  export interface Revolve {
9406
9557
  /** Any new bodies created by the request. */
9407
9558
  bodies_created?: BodiesCreated;
@@ -10162,6 +10313,8 @@ export interface TextToCadResponseResultsPage {
10162
10313
  */
10163
10314
  next_page?: string;
10164
10315
  }
10316
+ export interface ToggleGraphics {
10317
+ }
10165
10318
  export interface TokenRevokeRequestForm {
10166
10319
  /** format:uuid, description:The client ID. */
10167
10320
  client_id: string;
@@ -11712,7 +11865,7 @@ export interface Models {
11712
11865
  AnnotationTextOptions: AnnotationTextOptions;
11713
11866
  AnnotationType: AnnotationType;
11714
11867
  Announcement: Announcement;
11715
- AnnouncementResultsPage: AnnouncementResultsPage;
11868
+ AnnouncementList: AnnouncementList;
11716
11869
  ApiCallStatus: ApiCallStatus;
11717
11870
  ApiCallWithPrice: ApiCallWithPrice;
11718
11871
  ApiCallWithPriceResultsPage: ApiCallWithPriceResultsPage;
@@ -11779,6 +11932,7 @@ export interface Models {
11779
11932
  CreateOAuth2AppRequest: CreateOAuth2AppRequest;
11780
11933
  CreateOrgDataset: CreateOrgDataset;
11781
11934
  CreatePlanarSurface: CreatePlanarSurface;
11935
+ CreateProjectLibraryRequest: CreateProjectLibraryRequest;
11782
11936
  CreateProjectShareLinkRequest: CreateProjectShareLinkRequest;
11783
11937
  CreateProjectVersionResponse: CreateProjectVersionResponse;
11784
11938
  CreateRegion: CreateRegion;
@@ -11924,7 +12078,10 @@ export interface Models {
11924
12078
  KclCodeCompletionParams: KclCodeCompletionParams;
11925
12079
  KclCodeCompletionRequest: KclCodeCompletionRequest;
11926
12080
  KclCodeCompletionResponse: KclCodeCompletionResponse;
12081
+ KclMigrationApplication: KclMigrationApplication;
12082
+ KclMigrationApplicationStatus: KclMigrationApplicationStatus;
11927
12083
  KclMigrationClientMessage: KclMigrationClientMessage;
12084
+ KclMigrationHistoryEntry: KclMigrationHistoryEntry;
11928
12085
  KclMigrationOperation: KclMigrationOperation;
11929
12086
  KclMigrationRequest: KclMigrationRequest;
11930
12087
  KclMigrationResult: KclMigrationResult;
@@ -12060,9 +12217,11 @@ export interface Models {
12060
12217
  ProjectAccessScope: ProjectAccessScope;
12061
12218
  ProjectArchiveFormat: ProjectArchiveFormat;
12062
12219
  ProjectCategoryResponse: ProjectCategoryResponse;
12063
- ProjectCategoryResponseResultsPage: ProjectCategoryResponseResultsPage;
12064
12220
  ProjectEntityToPlane: ProjectEntityToPlane;
12065
12221
  ProjectFileResponse: ProjectFileResponse;
12222
+ ProjectLibraryResponse: ProjectLibraryResponse;
12223
+ ProjectLibraryResponseResultsPage: ProjectLibraryResponseResultsPage;
12224
+ ProjectLibraryScope: ProjectLibraryScope;
12066
12225
  ProjectPointsToPlane: ProjectPointsToPlane;
12067
12226
  ProjectPublicationInfoResponse: ProjectPublicationInfoResponse;
12068
12227
  ProjectResponse: ProjectResponse;
@@ -12089,6 +12248,7 @@ export interface Models {
12089
12248
  RegionVersion: RegionVersion;
12090
12249
  RelativeTo: RelativeTo;
12091
12250
  RemoveSceneObjects: RemoveSceneObjects;
12251
+ RenameProjectLibraryRequest: RenameProjectLibraryRequest;
12092
12252
  Revolve: Revolve;
12093
12253
  RevolveAboutEdge: RevolveAboutEdge;
12094
12254
  Rotation: Rotation;
@@ -12184,6 +12344,7 @@ export interface Models {
12184
12344
  TextToCadMultiFileIterationBody: TextToCadMultiFileIterationBody;
12185
12345
  TextToCadResponse: TextToCadResponse;
12186
12346
  TextToCadResponseResultsPage: TextToCadResponseResultsPage;
12347
+ ToggleGraphics: ToggleGraphics;
12187
12348
  TokenRevokeRequestForm: TokenRevokeRequestForm;
12188
12349
  Tolerance: Tolerance;
12189
12350
  Transform: Transform;