@kittycad/lib 4.4.11 → 4.4.13

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 (43) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/mjs/index.js +1 -1
  3. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts +5 -1
  4. package/dist/types/src/api/modeling/modeling_commands_ws.d.ts.map +1 -1
  5. package/dist/types/src/index.d.ts +1 -43
  6. package/dist/types/src/index.d.ts.map +1 -1
  7. package/dist/types/src/models.d.ts +94 -488
  8. package/dist/types/src/models.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. package/dist/types/src/api/apps/apps_github_callback.d.ts +0 -21
  11. package/dist/types/src/api/apps/apps_github_callback.d.ts.map +0 -1
  12. package/dist/types/src/api/apps/apps_github_consent.d.ts +0 -24
  13. package/dist/types/src/api/apps/apps_github_consent.d.ts.map +0 -1
  14. package/dist/types/src/api/apps/apps_github_webhook.d.ts +0 -21
  15. package/dist/types/src/api/apps/apps_github_webhook.d.ts.map +0 -1
  16. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts +0 -26
  17. package/dist/types/src/api/meta/internal_get_api_token_for_discord_user.d.ts.map +0 -1
  18. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_org.d.ts +0 -32
  19. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_org.d.ts.map +0 -1
  20. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_user.d.ts +0 -32
  21. package/dist/types/src/api/oauth2/list_oauth2_apps_for_any_user.d.ts.map +0 -1
  22. package/dist/types/src/api/orgs/get_billing_contract_for_any_org.d.ts +0 -24
  23. package/dist/types/src/api/orgs/get_billing_contract_for_any_org.d.ts.map +0 -1
  24. package/dist/types/src/api/orgs/upsert_billing_contract_for_any_org.d.ts +0 -26
  25. package/dist/types/src/api/orgs/upsert_billing_contract_for_any_org.d.ts.map +0 -1
  26. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts +0 -26
  27. package/dist/types/src/api/payments/get_payment_balance_for_any_org.d.ts.map +0 -1
  28. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts +0 -26
  29. package/dist/types/src/api/payments/get_payment_balance_for_any_user.d.ts.map +0 -1
  30. package/dist/types/src/api/payments/update_org_subscription_for_any_org.d.ts +0 -26
  31. package/dist/types/src/api/payments/update_org_subscription_for_any_org.d.ts.map +0 -1
  32. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts +0 -28
  33. package/dist/types/src/api/payments/update_payment_balance_for_any_org.d.ts.map +0 -1
  34. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts +0 -28
  35. package/dist/types/src/api/payments/update_payment_balance_for_any_user.d.ts.map +0 -1
  36. package/dist/types/src/api/payments/upsert_subscription_plan_price.d.ts +0 -26
  37. package/dist/types/src/api/payments/upsert_subscription_plan_price.d.ts.map +0 -1
  38. package/dist/types/src/api/store/create_store_coupon.d.ts +0 -24
  39. package/dist/types/src/api/store/create_store_coupon.d.ts.map +0 -1
  40. package/dist/types/src/api/users/update_subscription_for_user.d.ts +0 -26
  41. package/dist/types/src/api/users/update_subscription_for_user.d.ts.map +0 -1
  42. package/dist/types/src/api/users/user_admin_details_get.d.ts +0 -24
  43. package/dist/types/src/api/users/user_admin_details_get.d.ts.map +0 -1
@@ -13,28 +13,6 @@ export interface AddOrgMember {
13
13
  /** The organization role to give the user. */
14
14
  role: UserOrgRole;
15
15
  }
16
- export interface Address {
17
- /** The city component. */
18
- city?: string;
19
- /** The country component. This is a two-letter ISO country code. */
20
- country: CountryCode;
21
- /** title:DateTime, format:date-time, description:The time and date the address was created. */
22
- created_at: string;
23
- /** The unique identifier of the address. */
24
- id: Uuid;
25
- /** The state component. */
26
- state?: string;
27
- /** The first street component. */
28
- street1?: string;
29
- /** The second street component. */
30
- street2?: string;
31
- /** title:DateTime, format:date-time, description:The time and date the address was last updated. */
32
- updated_at: string;
33
- /** The user ID that this address belongs to. */
34
- user_id: Uuid;
35
- /** The zip component. */
36
- zip?: string;
37
- }
38
16
  export interface AddressDetails {
39
17
  /** The city component. */
40
18
  city?: string;
@@ -358,7 +336,7 @@ export interface AnnotationMbdBasicDimension {
358
336
  * {
359
337
  * "nullable": true,
360
338
  * "format": "double",
361
- * "description": "The explicitly defined dimension. Only required if the measurement is not automatically calculated."
339
+ * "description": "The explicitly defined dimension. Only required if the measurement is not automatically calculated."
362
340
  * }
363
341
  */
364
342
  dimension?: number;
@@ -369,8 +347,8 @@ export interface AnnotationMbdBasicDimension {
369
347
  * }
370
348
  */
371
349
  symbol?: MbdSymbol;
372
- /** format:double, description:The tolerance of the dimension */
373
- tolerance: number;
350
+ /** nullable:true, format:double, description:The tolerance of the dimension */
351
+ tolerance?: number;
374
352
  }
375
353
  export interface AnnotationMbdControlFrame {
376
354
  /**
@@ -414,7 +392,7 @@ export interface AnnotationMbdControlFrame {
414
392
  /**
415
393
  * {
416
394
  * "format": "double",
417
- * "description": "Tolerance value - the total tolerance of the geometric control. The unit is based on the drawing standard."
395
+ * "description": "Tolerance value - the total tolerance of the geometric control. The unit is based on the drawing standard."
418
396
  * }
419
397
  */
420
398
  tolerance: number;
@@ -432,6 +410,13 @@ export interface AnnotationOptions {
432
410
  line_ends?: AnnotationLineEndOptions;
433
411
  /** nullable:true, format:float, description:Width of the annotation's line */
434
412
  line_width?: number;
413
+ /**
414
+ * {
415
+ * "nullable": true,
416
+ * "description": "Human-friendly identifier for this annotation. Included in some exports and metadata of the model. This is _not_ displayed visually in, the annotation, it's only metadata."
417
+ * }
418
+ */
419
+ name?: string;
435
420
  /** nullable:true, description:Position to put the annotation */
436
421
  position?: Point3d;
437
422
  /** nullable:true, description:Text displayed on the annotation */
@@ -652,10 +637,6 @@ export interface ApiTokenWithFullToken {
652
637
  /** The ID of the user that owns the API token. */
653
638
  user_id: Uuid;
654
639
  }
655
- export interface AppClientInfo {
656
- /** The URL for consent. */
657
- url?: string;
658
- }
659
640
  export type AsyncApiCallOutput = {
660
641
  /**
661
642
  * {
@@ -1157,162 +1138,6 @@ export type BatchResponse = {
1157
1138
  };
1158
1139
  export interface BeginExecution {
1159
1140
  }
1160
- export type BillingCadence = 'annual' | 'quarterly' | 'monthly' | 'manual';
1161
- export type BillingCommitmentScope = 'pooled' | 'per_item';
1162
- export interface BillingContractItemInput {
1163
- /**
1164
- * {
1165
- * "default": true,
1166
- * "description": "Whether the item should participate in billing decisions immediately."
1167
- * }
1168
- */
1169
- active?: boolean;
1170
- /**
1171
- * {
1172
- * "nullable": true,
1173
- * "description": "Optional normalization rule used before rating usage."
1174
- * }
1175
- */
1176
- billing_unit_granularity?: BillingUnitGranularity;
1177
- /** Canonical item code so later metering can find the right price row. */
1178
- code: BillingItemCode;
1179
- /** Human-readable name shown in finance tooling. */
1180
- display_name: string;
1181
- /**
1182
- * {
1183
- * "nullable": true,
1184
- * "title": "double",
1185
- * "format": "money-usd",
1186
- * "description": "Fixed fee charged for the item when the kind is `fixed_fee`."
1187
- * }
1188
- */
1189
- fixed_fee_amount?: number;
1190
- /**
1191
- * {
1192
- * "default": false,
1193
- * "description": "Whether usage from this item may burn down contract commitment."
1194
- * }
1195
- */
1196
- is_commitment_eligible?: boolean;
1197
- /** Pricing model for this item. */
1198
- kind: BillingItemKind;
1199
- /** default:[], description:Pricing tiers for usage-rated items. */
1200
- rate_tiers?: BillingRateTierInput[];
1201
- /** Base measurement unit for pricing and usage. */
1202
- unit: BillingUnit;
1203
- }
1204
- export interface BillingContractItemView {
1205
- /** Whether the item is active. */
1206
- active: boolean;
1207
- /** nullable:true, description:Optional normalization rule for usage. */
1208
- billing_unit_granularity?: BillingUnitGranularity;
1209
- /** Canonical item code. */
1210
- code: BillingItemCode;
1211
- /** Human-readable item name. */
1212
- display_name: string;
1213
- /**
1214
- * {
1215
- * "nullable": true,
1216
- * "title": "double",
1217
- * "format": "money-usd",
1218
- * "description": "Fixed fee charged for the item when applicable."
1219
- * }
1220
- */
1221
- fixed_fee_amount?: number;
1222
- /** Database identifier for the contract item row. */
1223
- id: Uuid;
1224
- /** Whether this item can consume commitment. */
1225
- is_commitment_eligible: boolean;
1226
- /** Pricing model for the item. */
1227
- kind: BillingItemKind;
1228
- /** Usage tiers for the item. */
1229
- rate_tiers: BillingRateTierView[];
1230
- /** Measurement unit for the item. */
1231
- unit: BillingUnit;
1232
- }
1233
- export type BillingContractStatus = 'draft' | 'scheduled' | 'active' | 'closed' | 'canceled';
1234
- export interface BillingContractUpsert {
1235
- /** Operational cadence used for finance workflows. */
1236
- billing_cadence: BillingCadence;
1237
- /** Whether commitment is shared or item-scoped. */
1238
- commitment_scope: BillingCommitmentScope;
1239
- /** Contract currency shared by every money field in this definition. */
1240
- currency: Currency;
1241
- /**
1242
- * {
1243
- * "nullable": true,
1244
- * "description": "Free-form finance note for discounts or negotiated pricing."
1245
- * }
1246
- */
1247
- discount_description?: string;
1248
- /** title:DateTime, format:date-time, description:Timestamp when the contract starts to apply. */
1249
- effective_at: string;
1250
- /**
1251
- * {
1252
- * "nullable": true,
1253
- * "description": "Provider-owned customer reference, when one already exists."
1254
- * }
1255
- */
1256
- external_customer_id?: BillingExternalCustomerId;
1257
- /** Billable items attached to the contract. */
1258
- items: BillingContractItemInput[];
1259
- /** Human-readable contract label. */
1260
- name: string;
1261
- /** nullable:true, description:Internal notes about the contract. */
1262
- notes?: string;
1263
- /** Period schedule for the contract term. */
1264
- periods: BillingPeriodInput[];
1265
- /** Downstream provider responsible for collecting the invoice. */
1266
- provider: BillingProvider;
1267
- /** What should happen to unused commitment when a period ends. */
1268
- rollover_policy: BillingRolloverPolicy;
1269
- /** Lifecycle state for the new contract. */
1270
- status: BillingContractStatus;
1271
- /** title:DateTime, format:date-time, description:Timestamp when the contract term ends. */
1272
- term_end_at: string;
1273
- }
1274
- export interface BillingContractView {
1275
- /** Billing account identifier that owns the contract. */
1276
- account_id: Uuid;
1277
- /** Operational cadence for finance workflows. */
1278
- billing_cadence: BillingCadence;
1279
- /** Whether commitment is shared or item-scoped. */
1280
- commitment_scope: BillingCommitmentScope;
1281
- /** Billing contract identifier. */
1282
- contract_id: Uuid;
1283
- /** Currency shared by every money field in the contract. */
1284
- currency: Currency;
1285
- /** nullable:true, description:Discount note associated with the contract. */
1286
- discount_description?: string;
1287
- /** title:DateTime, format:date-time, description:Timestamp when the contract started applying. */
1288
- effective_at: string;
1289
- /**
1290
- * {
1291
- * "nullable": true,
1292
- * "description": "Provider-owned customer reference, when one exists."
1293
- * }
1294
- */
1295
- external_customer_id?: BillingExternalCustomerId;
1296
- /** Billable items attached to the contract. */
1297
- items: BillingContractItemView[];
1298
- /** Human-readable contract label. */
1299
- name: string;
1300
- /** nullable:true, description:Internal notes for the contract. */
1301
- notes?: string;
1302
- /** Period schedule for the contract. */
1303
- periods: BillingPeriodView[];
1304
- /** Downstream invoice provider. */
1305
- provider: BillingProvider;
1306
- /** What happens to unused commitment when a period ends. */
1307
- rollover_policy: BillingRolloverPolicy;
1308
- /** Lifecycle state for the contract. */
1309
- status: BillingContractStatus;
1310
- /** title:DateTime, format:date-time, description:Timestamp when the contract term ends. */
1311
- term_end_at: string;
1312
- }
1313
- export type BillingExternalCustomerId =
1314
- /** Provider-owned customer reference for downstream invoicing systems. */
1315
- string;
1316
1141
  export interface BillingInfo {
1317
1142
  /** nullable:true, description:The address of the customer. */
1318
1143
  address?: AddressDetails;
@@ -1328,117 +1153,6 @@ export interface BillingInfo {
1328
1153
  */
1329
1154
  phone?: string;
1330
1155
  }
1331
- export type BillingItemCode = 'enterprise_support' | 'fde' | 'govcloud_management' | 'file_ingestion_conversion' | 'licensed_api_credits';
1332
- export type BillingItemKind = 'fixed_fee' | 'usage_tiered' | 'usage_commitment_bucket';
1333
- export type BillingPeriodIndex =
1334
- /**
1335
- * {
1336
- * "format": "int32",
1337
- * "description": "Non-negative index of a billing period inside a contract."
1338
- * }
1339
- */
1340
- number;
1341
- export interface BillingPeriodInput {
1342
- /** title:double, format:money-usd, description:New commitment funded for this period. */
1343
- commitment_amount: number;
1344
- /** title:DateTime, format:date-time, description:Exclusive period end timestamp. */
1345
- period_end_at: string;
1346
- /** Sequence index for the period inside the contract. */
1347
- period_index: BillingPeriodIndex;
1348
- /** title:DateTime, format:date-time, description:Inclusive period start timestamp. */
1349
- period_start_at: string;
1350
- /**
1351
- * {
1352
- * "nullable": true,
1353
- * "title": "double",
1354
- * "format": "money-usd",
1355
- * "description": "Commitment carried in from an earlier period."
1356
- * }
1357
- */
1358
- rollover_in_amount?: number;
1359
- /**
1360
- * {
1361
- * "nullable": true,
1362
- * "title": "double",
1363
- * "format": "money-usd",
1364
- * "description": "Commitment intentionally rolled out to a later period."
1365
- * }
1366
- */
1367
- rollover_out_amount?: number;
1368
- /** nullable:true, description:Operational status for the period. */
1369
- status?: BillingPeriodStatus;
1370
- }
1371
- export type BillingPeriodStatus = 'open' | 'closed';
1372
- export interface BillingPeriodView {
1373
- /** title:double, format:money-usd, description:New commitment funded for this period. */
1374
- commitment_amount: number;
1375
- /** Database identifier for the period row. */
1376
- id: Uuid;
1377
- /** title:DateTime, format:date-time, description:Exclusive period end timestamp. */
1378
- period_end_at: string;
1379
- /** Sequence index for the period inside the contract. */
1380
- period_index: BillingPeriodIndex;
1381
- /** title:DateTime, format:date-time, description:Inclusive period start timestamp. */
1382
- period_start_at: string;
1383
- /** title:double, format:money-usd, description:Commitment carried in from a previous period. */
1384
- rollover_in_amount: number;
1385
- /**
1386
- * {
1387
- * "title": "double",
1388
- * "format": "money-usd",
1389
- * "description": "Commitment intentionally rolled out to a later period."
1390
- * }
1391
- */
1392
- rollover_out_amount: number;
1393
- /** Operational status for the period. */
1394
- status: BillingPeriodStatus;
1395
- }
1396
- export type BillingProvider = 'stripe' | 'manual_invoice';
1397
- export type BillingQuantity =
1398
- /**
1399
- * {
1400
- * "format": "int64",
1401
- * "description": "Non-negative quantity used for tier boundaries and later usage counts."
1402
- * }
1403
- */
1404
- number;
1405
- export interface BillingRateTierInput {
1406
- /**
1407
- * {
1408
- * "nullable": true,
1409
- * "description": "Exclusive upper bound for the tier, or `None` when the tier is open-ended."
1410
- * }
1411
- */
1412
- tier_end_exclusive?: BillingQuantity;
1413
- /** First billable quantity in this tier. */
1414
- tier_start_inclusive: BillingQuantity;
1415
- /**
1416
- * {
1417
- * "title": "double",
1418
- * "format": "money-usd",
1419
- * "description": "Price to charge for each unit that lands in this tier."
1420
- * }
1421
- */
1422
- unit_price: number;
1423
- }
1424
- export interface BillingRateTierView {
1425
- /** Database identifier for the tier row. */
1426
- id: Uuid;
1427
- /**
1428
- * {
1429
- * "nullable": true,
1430
- * "description": "Exclusive upper bound for the tier, or `None` when the tier is open-ended."
1431
- * }
1432
- */
1433
- tier_end_exclusive?: BillingQuantity;
1434
- /** First billable quantity in this tier. */
1435
- tier_start_inclusive: BillingQuantity;
1436
- /** title:double, format:money-usd, description:Price charged for each unit in the tier. */
1437
- unit_price: number;
1438
- }
1439
- export type BillingRolloverPolicy = 'none' | 'year1_to_year2_once';
1440
- export type BillingUnit = 'file' | 'minute' | 'second' | 'year' | 'period';
1441
- export type BillingUnitGranularity = 'minute' | 'second';
1442
1156
  export type BlendType = 'tangent';
1443
1157
  export type BlockReason = 'missing_payment_method' | 'payment_method_failed' | 'billing_threshold_reached' | 'pay_as_you_go_disabled' | 'upgrade_downgrade_abuse' | 'admin';
1444
1158
  export interface BodiesCreated {
@@ -1764,7 +1478,7 @@ export interface ClientMetrics {
1764
1478
  * {
1765
1479
  * "nullable": true,
1766
1480
  * "format": "float",
1767
- * "description": "Total duration of pauses in seconds.\n\nThis is the \"ping\" between the client and the STUN server. Not to be confused with the E2E RTT documented [here](https://www.w3.org/TR/webrtc-stats/#dom-rtcremoteinboundrtpstreamstats-roundtriptime)\n\nhttps://www.w3.org/TR/webrtc-stats/#dom-rtcicecandidatepairstats-currentroundtriptime"
1481
+ * "description": "Estimated round trip time, measured in seconds.\n\nThis is the \"ping\" between the client and the STUN server. Not to be confused with the E2E RTT documented [here](https://www.w3.org/TR/webrtc-stats/#dom-rtcremoteinboundrtpstreamstats-roundtriptime)\n\nhttps://www.w3.org/TR/webrtc-stats/#dom-rtcicecandidatepairstats-currentroundtriptime"
1768
1482
  * }
1769
1483
  */
1770
1484
  rtc_stun_rtt_sec?: number;
@@ -2305,14 +2019,6 @@ export interface Discount {
2305
2019
  /** The coupon that applied to create this discount. */
2306
2020
  coupon: Coupon;
2307
2021
  }
2308
- export interface DiscountCode {
2309
- /** The code for the discount. */
2310
- code: string;
2311
- /** nullable:true, format:date-time, description:The date the discount code expires. */
2312
- expires_at?: string;
2313
- /** format:uint32, minimum:0, description:The percent off for the discount. */
2314
- percent_off: number;
2315
- }
2316
2022
  export type DistanceType = {
2317
2023
  type: 'euclidean';
2318
2024
  } | {
@@ -2909,7 +2615,7 @@ export interface FailureWebSocketResponse {
2909
2615
  success: boolean;
2910
2616
  }
2911
2617
  export type FbxStorage = 'ascii' | 'binary';
2912
- export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'cpu_engine_pool' | 'disallow_self_signup' | 'email_with_s_e_s' | 'engine_manager_quarantine' | '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' | 'drawings' | 'modeling_dialogs' | 'named_views_ui' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'legacy_sketch_mode' | 'sketch_experimental_features' | 'web_app_file_browser' | 'zookeeper_pro_mode' | 'zookeeper_ultra_mode' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2618
+ export type Feature = 'auth_restricted_to_employees' | 'big_query_telemetry' | 'billing' | 'cpu_engine_pool' | 'disallow_self_signup' | 'email_with_s_e_s' | 'engine_manager_quarantine' | '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' | 'drawings' | 'modeling_dialogs' | 'named_views_ui' | 'plugins' | 'proprietary_to_kcl_conversion_beta' | 'segments_based_regions' | 'legacy_sketch_mode' | 'sketch_experimental_features' | 'web_app_file_browser' | 'zookeeper_pro_mode' | 'zookeeper_ultra_mode' | 'zookeeper_client_commands' | 'unsafe_allow_api_key_auth' | 'unsafe_allow_localhost_shortlinks' | 'zoo_corp_auth';
2913
2619
  export interface FileCenterOfMass {
2914
2620
  /**
2915
2621
  * {
@@ -3806,6 +3512,7 @@ export type KclProjectFileRole = 'project_toml' | 'project_file' | 'preview_imag
3806
3512
  export type KclProjectPreviewStatus = 'pending' | 'ready' | 'failed';
3807
3513
  export type KclProjectPublicationStatus = 'private' | 'draft' | 'pending_review' | 'published' | 'rejected' | 'deleted' | 'changes_requested';
3808
3514
  export type KclProjectShareLinkAccessMode = 'anyone_with_link' | 'organization_only';
3515
+ export type KclVersion = '1.0' | '2.0' | '3.0-preview';
3809
3516
  export type LengthUnit = number;
3810
3517
  export type LenientUrl =
3811
3518
  /**
@@ -3865,6 +3572,16 @@ export type MirrorAcross = {
3865
3572
  };
3866
3573
  };
3867
3574
  export type MlCopilotAccessDeniedCode = 'missing_payment_method' | 'payment_method_failed' | 'billing_threshold_reached' | 'pay_as_you_go_disabled' | 'upgrade_downgrade_abuse' | 'admin';
3575
+ export interface MlCopilotClientCommand {
3576
+ /** Description used when Zookeeper searches the client catalog. */
3577
+ description: string;
3578
+ /** Stable identifier used to invoke the command, for example `modeling.export`. */
3579
+ id: string;
3580
+ input_schema: string;
3581
+ /** Short human-readable command name. */
3582
+ title: string;
3583
+ }
3584
+ export type MlCopilotClientCommandStatus = 'accepted' | 'succeeded' | 'rejected' | 'failed' | 'cancelled';
3868
3585
  export type MlCopilotClientMessage = {
3869
3586
  type: 'ping';
3870
3587
  } | {
@@ -4007,6 +3724,43 @@ export type MlCopilotClientMessage = {
4007
3724
  /** nullable:true, format:int32, description:Specific client message sequence, when requested. */
4008
3725
  seq?: number;
4009
3726
  type: 'attachment_response';
3727
+ } | {
3728
+ /** Complete set of commands available at this revision. */
3729
+ commands: MlCopilotClientCommand[];
3730
+ /**
3731
+ * {
3732
+ * "format": "uint16",
3733
+ * "minimum": 0,
3734
+ * "description": "Version of the client-command wire protocol understood by the client."
3735
+ * }
3736
+ */
3737
+ protocol_version: number;
3738
+ /**
3739
+ * {
3740
+ * "format": "uint64",
3741
+ * "minimum": 0,
3742
+ * "description": "Monotonically increasing catalog revision for this connection."
3743
+ * }
3744
+ */
3745
+ revision: number;
3746
+ type: 'update_client_command_schema';
3747
+ } | {
3748
+ /**
3749
+ * {
3750
+ * "format": "uint64",
3751
+ * "minimum": 0,
3752
+ * "description": "Catalog revision against which the request was validated."
3753
+ * }
3754
+ */
3755
+ catalog_revision: number;
3756
+ /** nullable:true, description:Optional error or rejection detail. */
3757
+ error?: string;
3758
+ /** Correlation identifier supplied in `ClientCommandRequest`. */
3759
+ request_id: string;
3760
+ result: unknown;
3761
+ /** Current execution state. */
3762
+ status: MlCopilotClientCommandStatus;
3763
+ type: 'client_command_response';
4010
3764
  };
4011
3765
  export interface MlCopilotFile {
4012
3766
  /** nullable:true, description:Reference for fetching this attachment on demand. */
@@ -4148,6 +3902,22 @@ export type MlCopilotServerMessage = {
4148
3902
  /** How the submitted snapshot affected canonical state. */
4149
3903
  status: MlCopilotProjectSnapshotStatus;
4150
3904
  };
3905
+ } | {
3906
+ client_command_request: {
3907
+ arguments: string;
3908
+ /**
3909
+ * {
3910
+ * "format": "uint64",
3911
+ * "minimum": 0,
3912
+ * "description": "Catalog revision used when Zookeeper selected the command."
3913
+ * }
3914
+ */
3915
+ catalog_revision: number;
3916
+ /** Identifier from the advertised client command catalog. */
3917
+ command_id: string;
3918
+ /** Unique request identifier used to correlate client responses. */
3919
+ request_id: string;
3920
+ };
4151
3921
  } | {
4152
3922
  /**
4153
3923
  * {
@@ -4491,7 +4261,7 @@ export type ModelingCmd = {
4491
4261
  * }
4492
4262
  */
4493
4263
  direction_reference?: EdgeSpecifier;
4494
- /** How far off the plane to extrude */
4264
+ /** How far off the plane to extrude This distance is relative to the target's plane, not an absolute coordinate. Symmetric extrusions will extrude outwards from both sides of the sketch to the length specified. */
4495
4265
  distance: LengthUnit;
4496
4266
  /**
4497
4267
  * {
@@ -4925,7 +4695,7 @@ export type ModelingCmd = {
4925
4695
  /**
4926
4696
  * {
4927
4697
  * "format": "float",
4928
- * "description": "Move the camera forward along the vector it's looking at, by this magnitudedefaultCameraZoom. Basically, how much should the camera move forward by."
4698
+ * "description": "Move the camera forward along the vector it's looking at, by this magnitude. Basically, how much should the camera move forward by."
4929
4699
  * }
4930
4700
  */
4931
4701
  magnitude: number;
@@ -5336,7 +5106,7 @@ export type ModelingCmd = {
5336
5106
  object_id: string;
5337
5107
  type: 'solid3d_get_opposite_edge';
5338
5108
  } | {
5339
- /** format:uuid, description:Which edge you want the opposite of. */
5109
+ /** format:uuid, description:Which edge you want the next edge of. */
5340
5110
  edge_id: string;
5341
5111
  /**
5342
5112
  * {
@@ -5349,7 +5119,7 @@ export type ModelingCmd = {
5349
5119
  object_id: string;
5350
5120
  type: 'solid3d_get_next_adjacent_edge';
5351
5121
  } | {
5352
- /** format:uuid, description:Which edge you want the opposite of. */
5122
+ /** format:uuid, description:Which edge you want the previous edge of. */
5353
5123
  edge_id: string;
5354
5124
  /**
5355
5125
  * {
@@ -5589,6 +5359,13 @@ export type ModelingCmd = {
5589
5359
  backface_color?: Color;
5590
5360
  /** nullable:true, description:The default system color. */
5591
5361
  color?: Color;
5362
+ /**
5363
+ * {
5364
+ * "nullable": true,
5365
+ * "description": "The default color to use for the edges of 3D bodies."
5366
+ * }
5367
+ */
5368
+ edge_3d_color?: Color;
5592
5369
  /** nullable:true, description:The default color to use for highlight */
5593
5370
  highlight_color?: Color;
5594
5371
  /** nullable:true, description:The default color to use for selection */
@@ -7788,6 +7565,9 @@ export type OkWebSocketResponseData = {
7788
7565
  name: string;
7789
7566
  };
7790
7567
  type: 'debug';
7568
+ } | {
7569
+ data: Record<string, unknown>;
7570
+ type: 'reconnect';
7791
7571
  };
7792
7572
  export type OppositeForAngle = string;
7793
7573
  export type OppositeForLengthUnit = string;
@@ -8668,16 +8448,6 @@ export interface Pong {
8668
8448
  export type PostEffectType =
8669
8449
  /** Post effect type */
8670
8450
  'phosphor' | 'ssao' | 'noeffect';
8671
- export interface PriceUpsertRequest {
8672
- /** default:true, description:Whether the price should be active. */
8673
- active?: boolean;
8674
- /** Billing model (flat or per-user). */
8675
- billing_model: SubscriptionPlanBillingModel;
8676
- /** Cadence for billing (day, week, month, year). */
8677
- cadence: PlanInterval;
8678
- /** format:double, description:Amount in USD. */
8679
- unit_amount: number;
8680
- }
8681
8451
  export interface PrimitiveTopologyFallback {
8682
8452
  /**
8683
8453
  * {
@@ -9509,39 +9279,8 @@ export type StepImportTargetRepresentation = 'mesh' | 'brep';
9509
9279
  export type StepPresentation = 'compact' | 'pretty';
9510
9280
  export type StlStorage = 'ascii' | 'binary';
9511
9281
  export type StorageProvider = 's3' | 'zoo_managed';
9512
- export interface StoreCouponParams {
9513
- /** format:uint32, minimum:0, description:The percentage off. */
9514
- percent_off: number;
9515
- }
9516
9282
  export type SubscriptionActionType = 'payment_intent' | 'setup_intent';
9517
9283
  export type SubscriptionBillingMode = 'standard' | 'contract';
9518
- export type SubscriptionPlanBillingModel = 'flat' | 'per_user';
9519
- export interface SubscriptionPlanPriceRecord {
9520
- /** Whether this price is currently active. */
9521
- active: boolean;
9522
- /** Billing model persisted in the database (`flat`, `per_user`, or `enterprise`). */
9523
- billing_model: SubscriptionPlanBillingModel;
9524
- /** Billing cadence string (for example `month` or `year`). */
9525
- cadence: PlanInterval;
9526
- /** title:DateTime, format:date-time, description:Timestamp when the price row was created. */
9527
- created_at: string;
9528
- /** Unique identifier for the plan price entry. */
9529
- id: Uuid;
9530
- /** nullable:true, description:Stripe price identifier, when synchronized. */
9531
- stripe_price_id?: string;
9532
- /** Foreign key referencing the parent plan. */
9533
- subscription_plan_id: Uuid;
9534
- /**
9535
- * {
9536
- * "nullable": true,
9537
- * "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
9538
- * "description": "Optional monetary amount associated with the price row."
9539
- * }
9540
- */
9541
- unit_amount?: string;
9542
- /** title:DateTime, format:date-time, description:Timestamp when the price row was last updated. */
9543
- updated_at: string;
9544
- }
9545
9284
  export interface SubscriptionTierFeature {
9546
9285
  /** minLength:1, maxLength:80, description:Information about the feature. */
9547
9286
  info: string;
@@ -10558,26 +10297,6 @@ export interface UpdateOrgDatasetSource {
10558
10297
  */
10559
10298
  uri?: string;
10560
10299
  }
10561
- export interface UpdatePaymentBalance {
10562
- /**
10563
- * {
10564
- * "nullable": true,
10565
- * "title": "double",
10566
- * "format": "money-usd",
10567
- * "description": "The monetary value of the monthy API credits remaining in the balance. This gets re-upped every month,"
10568
- * }
10569
- */
10570
- monthly_api_credits_remaining_monetary_value?: number;
10571
- /**
10572
- * {
10573
- * "nullable": true,
10574
- * "title": "double",
10575
- * "format": "money-usd",
10576
- * "description": "The monetary value of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits."
10577
- * }
10578
- */
10579
- stable_api_credits_remaining_monetary_value?: number;
10580
- }
10581
10300
  export interface UpdateShortlinkRequest {
10582
10301
  /**
10583
10302
  * {
@@ -10635,91 +10354,6 @@ export interface UploadOrgDatasetFilesResponse {
10635
10354
  /** format:uint, minimum:0, description:Number of files accepted and stored. */
10636
10355
  uploaded_files: number;
10637
10356
  }
10638
- export interface UserAdminDetails {
10639
- /** format:int64, description:Count of valid API tokens. */
10640
- active_api_tokens_count: number;
10641
- /**
10642
- * {
10643
- * "format": "int64",
10644
- * "description": "Count of active (non-expired) device access tokens."
10645
- * }
10646
- */
10647
- active_device_tokens_count: number;
10648
- /** format:int64, description:Count of active (non-expired) sessions. */
10649
- active_sessions_count: number;
10650
- /** nullable:true, description:Latest billing address stored for the user. */
10651
- address?: Address;
10652
- /** nullable:true, description:Readable billing address summary. */
10653
- address_summary?: string;
10654
- /** nullable:true, description:Block reason when the user is blocked. */
10655
- block?: BlockReason;
10656
- /** nullable:true, description:Human-friendly block reason message. */
10657
- block_message?: string;
10658
- /**
10659
- * {
10660
- * "nullable": true,
10661
- * "description": "CAD user info collected from website onboarding/CRM form."
10662
- * }
10663
- */
10664
- cad_user_info?: UserCadInfoAdminDetails;
10665
- /** Whether this user is permanently exempt from blocking. */
10666
- never_block: boolean;
10667
- /** Known payment methods on file. */
10668
- payment_methods: PaymentMethod[];
10669
- payment_methods_summary: string[];
10670
- /** nullable:true, description:Stripe customer identifier if one exists. */
10671
- stripe_customer_id?: string;
10672
- /** nullable:true, description:Direct link to the Stripe customer dashboard. */
10673
- stripe_dashboard_url?: string;
10674
- }
10675
- export interface UserCadInfoAdminDetails {
10676
- /** nullable:true, description:CAD/API experience level. */
10677
- cad_experience_level?: CadExperienceLevel;
10678
- /** nullable:true, description:CAD industry selection. */
10679
- cad_industry?: CadIndustry;
10680
- /** nullable:true, description:CAD user persona/type. */
10681
- cad_user_type?: CadUserType;
10682
- /** nullable:true, description:Company size selection. */
10683
- company_size?: CompanySize;
10684
- /** nullable:true, description:Preferred design workflow. */
10685
- design_workflow?: CadDesignWorkflow;
10686
- /**
10687
- * {
10688
- * "nullable": true,
10689
- * "description": "Whether the user has used Zoo Design Studio or the API before."
10690
- * }
10691
- */
10692
- has_used_zoo_design_studio_or_api_before?: boolean;
10693
- /** nullable:true, description:Acquisition source selection. */
10694
- how_did_you_find_us?: CadDiscoverySource;
10695
- /**
10696
- * {
10697
- * "nullable": true,
10698
- * "description": "Free-text acquisition source when `other` was selected."
10699
- * }
10700
- */
10701
- how_did_you_find_us_other?: string;
10702
- /** nullable:true, description:Free-text city for the user's location. */
10703
- location_city?: string;
10704
- /** nullable:true, description:Free-text country for the user's location. */
10705
- location_country?: string;
10706
- /**
10707
- * {
10708
- * "nullable": true,
10709
- * "description": "Free-text state or region for the user's location."
10710
- * }
10711
- */
10712
- location_state?: string;
10713
- /** nullable:true, description:Number of CAD users. */
10714
- number_of_cad_users?: string;
10715
- /**
10716
- * {
10717
- * "nullable": true,
10718
- * "description": "Free-text description of what the user wants to build."
10719
- * }
10720
- */
10721
- what_are_you_building?: string;
10722
- }
10723
10357
  export interface UserFeatureEntry {
10724
10358
  /** Stable identifier for the feature flag (snake_case). */
10725
10359
  id: Feature;
@@ -11483,7 +11117,6 @@ export interface Models {
11483
11117
  AccountProvider: AccountProvider;
11484
11118
  AddHoleFromOffset: AddHoleFromOffset;
11485
11119
  AddOrgMember: AddOrgMember;
11486
- Address: Address;
11487
11120
  AddressDetails: AddressDetails;
11488
11121
  AdjacencyInfo: AdjacencyInfo;
11489
11122
  AggregateUsageCollectionThresholdBounds: AggregateUsageCollectionThresholdBounds;
@@ -11514,7 +11147,6 @@ export interface Models {
11514
11147
  ApiTokenResultsPage: ApiTokenResultsPage;
11515
11148
  ApiTokenUuid: ApiTokenUuid;
11516
11149
  ApiTokenWithFullToken: ApiTokenWithFullToken;
11517
- AppClientInfo: AppClientInfo;
11518
11150
  AsyncApiCallOutput: AsyncApiCallOutput;
11519
11151
  AttachmentRef: AttachmentRef;
11520
11152
  AuthApiKeyResponse: AuthApiKeyResponse;
@@ -11523,28 +11155,7 @@ export interface Models {
11523
11155
  AxisDirectionPair: AxisDirectionPair;
11524
11156
  BatchResponse: BatchResponse;
11525
11157
  BeginExecution: BeginExecution;
11526
- BillingCadence: BillingCadence;
11527
- BillingCommitmentScope: BillingCommitmentScope;
11528
- BillingContractItemInput: BillingContractItemInput;
11529
- BillingContractItemView: BillingContractItemView;
11530
- BillingContractStatus: BillingContractStatus;
11531
- BillingContractUpsert: BillingContractUpsert;
11532
- BillingContractView: BillingContractView;
11533
- BillingExternalCustomerId: BillingExternalCustomerId;
11534
11158
  BillingInfo: BillingInfo;
11535
- BillingItemCode: BillingItemCode;
11536
- BillingItemKind: BillingItemKind;
11537
- BillingPeriodIndex: BillingPeriodIndex;
11538
- BillingPeriodInput: BillingPeriodInput;
11539
- BillingPeriodStatus: BillingPeriodStatus;
11540
- BillingPeriodView: BillingPeriodView;
11541
- BillingProvider: BillingProvider;
11542
- BillingQuantity: BillingQuantity;
11543
- BillingRateTierInput: BillingRateTierInput;
11544
- BillingRateTierView: BillingRateTierView;
11545
- BillingRolloverPolicy: BillingRolloverPolicy;
11546
- BillingUnit: BillingUnit;
11547
- BillingUnitGranularity: BillingUnitGranularity;
11548
11159
  BlendType: BlendType;
11549
11160
  BlockReason: BlockReason;
11550
11161
  BodiesCreated: BodiesCreated;
@@ -11633,7 +11244,6 @@ export interface Models {
11633
11244
  Direction: Direction;
11634
11245
  DirectionType: DirectionType;
11635
11246
  Discount: Discount;
11636
- DiscountCode: DiscountCode;
11637
11247
  DistanceType: DistanceType;
11638
11248
  DxfStorage: DxfStorage;
11639
11249
  EdgeCutVersion: EdgeCutVersion;
@@ -11739,6 +11349,7 @@ export interface Models {
11739
11349
  KclProjectPreviewStatus: KclProjectPreviewStatus;
11740
11350
  KclProjectPublicationStatus: KclProjectPublicationStatus;
11741
11351
  KclProjectShareLinkAccessMode: KclProjectShareLinkAccessMode;
11352
+ KclVersion: KclVersion;
11742
11353
  LengthUnit: LengthUnit;
11743
11354
  LenientUrl: LenientUrl;
11744
11355
  Loft: Loft;
@@ -11750,6 +11361,8 @@ export interface Models {
11750
11361
  Method: Method;
11751
11362
  MirrorAcross: MirrorAcross;
11752
11363
  MlCopilotAccessDeniedCode: MlCopilotAccessDeniedCode;
11364
+ MlCopilotClientCommand: MlCopilotClientCommand;
11365
+ MlCopilotClientCommandStatus: MlCopilotClientCommandStatus;
11753
11366
  MlCopilotClientMessage: MlCopilotClientMessage;
11754
11367
  MlCopilotFile: MlCopilotFile;
11755
11368
  MlCopilotModeOption: MlCopilotModeOption;
@@ -11849,7 +11462,6 @@ export interface Models {
11849
11462
  Point4d: Point4d;
11850
11463
  Pong: Pong;
11851
11464
  PostEffectType: PostEffectType;
11852
- PriceUpsertRequest: PriceUpsertRequest;
11853
11465
  PrimitiveTopologyFallback: PrimitiveTopologyFallback;
11854
11466
  PrivacySettings: PrivacySettings;
11855
11467
  ProjectAccessResponse: ProjectAccessResponse;
@@ -11952,11 +11564,8 @@ export interface Models {
11952
11564
  StepPresentation: StepPresentation;
11953
11565
  StlStorage: StlStorage;
11954
11566
  StorageProvider: StorageProvider;
11955
- StoreCouponParams: StoreCouponParams;
11956
11567
  SubscriptionActionType: SubscriptionActionType;
11957
11568
  SubscriptionBillingMode: SubscriptionBillingMode;
11958
- SubscriptionPlanBillingModel: SubscriptionPlanBillingModel;
11959
- SubscriptionPlanPriceRecord: SubscriptionPlanPriceRecord;
11960
11569
  SubscriptionTierFeature: SubscriptionTierFeature;
11961
11570
  SubscriptionTierPrice: SubscriptionTierPrice;
11962
11571
  SubscriptionTierType: SubscriptionTierType;
@@ -12013,12 +11622,9 @@ export interface Models {
12013
11622
  UpdateOAuth2AppRequest: UpdateOAuth2AppRequest;
12014
11623
  UpdateOrgDataset: UpdateOrgDataset;
12015
11624
  UpdateOrgDatasetSource: UpdateOrgDatasetSource;
12016
- UpdatePaymentBalance: UpdatePaymentBalance;
12017
11625
  UpdateShortlinkRequest: UpdateShortlinkRequest;
12018
11626
  UpdateUser: UpdateUser;
12019
11627
  UploadOrgDatasetFilesResponse: UploadOrgDatasetFilesResponse;
12020
- UserAdminDetails: UserAdminDetails;
12021
- UserCadInfoAdminDetails: UserCadInfoAdminDetails;
12022
11628
  UserFeatureEntry: UserFeatureEntry;
12023
11629
  UserFeatureList: UserFeatureList;
12024
11630
  UserIdentifier: UserIdentifier;