@lovable.dev/sdk 0.1.8 → 0.1.10

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/index.d.ts CHANGED
@@ -1488,159 +1488,6 @@ interface components {
1488
1488
  source: string;
1489
1489
  user_id: string;
1490
1490
  };
1491
- BuildDiagnostic: {
1492
- category?: string;
1493
- code?: string;
1494
- /** Format: int64 */
1495
- column?: number;
1496
- /** Format: date-time */
1497
- created_at: string;
1498
- file_path?: string;
1499
- fingerprint?: string;
1500
- id: string;
1501
- issue_id?: string;
1502
- /** Format: int64 */
1503
- line?: number;
1504
- message: string;
1505
- run_id: string;
1506
- severity: string;
1507
- target: string;
1508
- };
1509
- BuildRun: {
1510
- actor: string;
1511
- branch?: string;
1512
- commit_sha?: string;
1513
- /** Format: date-time */
1514
- created_at: string;
1515
- edit_id?: string;
1516
- /** Format: date-time */
1517
- finished_at?: string;
1518
- flow: string;
1519
- id: string;
1520
- message_id?: string;
1521
- project_id: string;
1522
- requested_by_user?: string;
1523
- requested_targets?: string[] | null;
1524
- run_summary?: string;
1525
- /** Format: date-time */
1526
- started_at?: string;
1527
- status: string;
1528
- /** Format: date-time */
1529
- ttl_at?: string;
1530
- /** Format: date-time */
1531
- updated_at: string;
1532
- workflow_id?: string;
1533
- };
1534
- BuildRunActionRequest: {
1535
- /**
1536
- * Format: uri
1537
- * @description A URL to the JSON Schema for this object.
1538
- * @example https://example.com/BuildRunActionRequest.json
1539
- */
1540
- readonly $schema?: string;
1541
- action: string;
1542
- actor?: string;
1543
- issue_id?: string;
1544
- target?: string;
1545
- };
1546
- BuildRunActionResponse: {
1547
- /**
1548
- * Format: uri
1549
- * @description A URL to the JSON Schema for this object.
1550
- * @example https://example.com/BuildRunActionResponse.json
1551
- */
1552
- readonly $schema?: string;
1553
- action: string;
1554
- issue_id?: string;
1555
- run_id: string;
1556
- status: string;
1557
- target?: string;
1558
- };
1559
- BuildRunDetailsResponse: {
1560
- /**
1561
- * Format: uri
1562
- * @description A URL to the JSON Schema for this object.
1563
- * @example https://example.com/BuildRunDetailsResponse.json
1564
- */
1565
- readonly $schema?: string;
1566
- diagnostics: components["schemas"]["BuildDiagnostic"][] | null;
1567
- run: components["schemas"]["BuildRun"];
1568
- targets: components["schemas"]["BuildRunTarget"][] | null;
1569
- };
1570
- BuildRunEvent: {
1571
- id: string;
1572
- payload?: unknown;
1573
- /** Format: date-time */
1574
- timestamp: string;
1575
- type: string;
1576
- };
1577
- BuildRunTarget: {
1578
- artifact_ref?: string;
1579
- /** Format: int64 */
1580
- attempt: number;
1581
- /** Format: date-time */
1582
- created_at: string;
1583
- depends_on?: string[] | null;
1584
- /** Format: int64 */
1585
- diagnostic_count?: number;
1586
- failure_summary?: string;
1587
- /** Format: date-time */
1588
- finished_at?: string;
1589
- log_ref?: string;
1590
- run_id: string;
1591
- sandbox_id?: string;
1592
- /** Format: date-time */
1593
- started_at?: string;
1594
- status: string;
1595
- target: string;
1596
- /** Format: date-time */
1597
- updated_at: string;
1598
- };
1599
- BuildRunTargetLogResponse: {
1600
- /**
1601
- * Format: uri
1602
- * @description A URL to the JSON Schema for this object.
1603
- * @example https://example.com/BuildRunTargetLogResponse.json
1604
- */
1605
- readonly $schema?: string;
1606
- log: components["schemas"]["BuildTargetLog"];
1607
- stderr?: string;
1608
- stdout?: string;
1609
- };
1610
- BuildTargetLog: {
1611
- /** Format: int64 */
1612
- attempt: number;
1613
- content_ref: string;
1614
- /** Format: date-time */
1615
- created_at: string;
1616
- /** Format: int64 */
1617
- exit_status: number;
1618
- run_id: string;
1619
- target: string;
1620
- /** Format: date-time */
1621
- updated_at: string;
1622
- };
1623
- BulkSetToolPreferencesInputBody: {
1624
- /**
1625
- * Format: uri
1626
- * @description A URL to the JSON Schema for this object.
1627
- * @example https://example.com/BulkSetToolPreferencesInputBody.json
1628
- */
1629
- readonly $schema?: string;
1630
- /** @enum {string} */
1631
- approval_preference: "never_ask" | "ask" | "disable";
1632
- integration_name: string;
1633
- tool_names: string[] | null;
1634
- };
1635
- BulkSetToolPreferencesOutputBody: {
1636
- /**
1637
- * Format: uri
1638
- * @description A URL to the JSON Schema for this object.
1639
- * @example https://example.com/BulkSetToolPreferencesOutputBody.json
1640
- */
1641
- readonly $schema?: string;
1642
- success: boolean;
1643
- };
1644
1491
  CastleEventRequest: {
1645
1492
  /**
1646
1493
  * Format: uri
@@ -2084,34 +1931,6 @@ interface components {
2084
1931
  /** @description Friendly name */
2085
1932
  name: string;
2086
1933
  };
2087
- CreateBuildRunRequest: {
2088
- /**
2089
- * Format: uri
2090
- * @description A URL to the JSON Schema for this object.
2091
- * @example https://example.com/CreateBuildRunRequest.json
2092
- */
2093
- readonly $schema?: string;
2094
- actor?: string;
2095
- branch?: string;
2096
- commit_sha?: string;
2097
- flow?: string;
2098
- /** Format: int64 */
2099
- max_parallel_targets?: number;
2100
- message_id?: string;
2101
- requested_targets?: string[] | null;
2102
- run_summary?: string;
2103
- };
2104
- CreateBuildRunResponse: {
2105
- /**
2106
- * Format: uri
2107
- * @description A URL to the JSON Schema for this object.
2108
- * @example https://example.com/CreateBuildRunResponse.json
2109
- */
2110
- readonly $schema?: string;
2111
- run_id: string;
2112
- status: string;
2113
- workflow_id: string;
2114
- };
2115
1934
  CreateComponentRequest: {
2116
1935
  /**
2117
1936
  * Format: uri
@@ -2349,7 +2168,6 @@ interface components {
2349
2168
  };
2350
2169
  project_type?: string;
2351
2170
  prompt_name?: string;
2352
- sandbox_template?: string;
2353
2171
  selected_libraries?: components["schemas"]["Item"][] | null;
2354
2172
  selected_theme?: string;
2355
2173
  source_repo_url?: string;
@@ -2404,27 +2222,6 @@ interface components {
2404
2222
  /** @description Stripe checkout session URL */
2405
2223
  checkout_url: string;
2406
2224
  };
2407
- CreateRepoSkillInputBody: {
2408
- /**
2409
- * Format: uri
2410
- * @description A URL to the JSON Schema for this object.
2411
- * @example https://example.com/CreateRepoSkillInputBody.json
2412
- */
2413
- readonly $schema?: string;
2414
- /** @description Full SKILL.md contents (frontmatter + body) */
2415
- markdown: string;
2416
- };
2417
- CreateRepoSkillOutputBody: {
2418
- /**
2419
- * Format: uri
2420
- * @description A URL to the JSON Schema for this object.
2421
- * @example https://example.com/CreateRepoSkillOutputBody.json
2422
- */
2423
- readonly $schema?: string;
2424
- /** @description Pierre commit SHA produced by this write */
2425
- commit_sha: string;
2426
- skill: components["schemas"]["RepoSkillDTO"];
2427
- };
2428
2225
  CreateSurveyInputBody: {
2429
2226
  /**
2430
2227
  * Format: uri
@@ -2804,13 +2601,6 @@ interface components {
2804
2601
  */
2805
2602
  readonly $schema?: string;
2806
2603
  };
2807
- DependencyVulnerabilityResponse: {
2808
- fix_command?: string;
2809
- link: string;
2810
- minimum_fixed_version?: string;
2811
- name: string;
2812
- severity: string;
2813
- };
2814
2604
  Deployment: {
2815
2605
  branch: string;
2816
2606
  commit_sha: string;
@@ -3387,20 +3177,6 @@ interface components {
3387
3177
  */
3388
3178
  target_type: "user" | "workspace";
3389
3179
  };
3390
- FullProjectSecurityScan: {
3391
- /**
3392
- * Format: uri
3393
- * @description A URL to the JSON Schema for this object.
3394
- * @example https://example.com/FullProjectSecurityScan.json
3395
- */
3396
- readonly $schema?: string;
3397
- is_scanning: boolean;
3398
- project_id: string;
3399
- results: {
3400
- [key: string]: components["schemas"]["SecurityScanResult"];
3401
- };
3402
- scan_contexts?: components["schemas"]["ScanContext"][] | null;
3403
- };
3404
3180
  GCPMarketplaceActivateInputBody: {
3405
3181
  /**
3406
3182
  * Format: uri
@@ -4605,17 +4381,6 @@ interface components {
4605
4381
  */
4606
4382
  version: string;
4607
4383
  };
4608
- HighValueTargetResponse: {
4609
- /**
4610
- * Format: uri
4611
- * @description A URL to the JSON Schema for this object.
4612
- * @example https://example.com/HighValueTargetResponse.json
4613
- */
4614
- readonly $schema?: string;
4615
- is_critical: boolean;
4616
- is_high_value_target: boolean;
4617
- tier: string;
4618
- };
4619
4384
  HistogramObservation: {
4620
4385
  labels?: {
4621
4386
  [key: string]: string;
@@ -5004,12 +4769,6 @@ interface components {
5004
4769
  readonly $schema?: string;
5005
4770
  success: boolean;
5006
4771
  };
5007
- LinkedAuthProvider: {
5008
- can_unlink: boolean;
5009
- email?: string;
5010
- is_primary: boolean;
5011
- provider_id: string;
5012
- };
5013
4772
  LinkedInOAuthCallbackInputBody: {
5014
4773
  /**
5015
4774
  * Format: uri
@@ -5066,24 +4825,6 @@ interface components {
5066
4825
  /** @description List of audit log exports */
5067
4826
  exports: components["schemas"]["AuditLogExportEntry"][] | null;
5068
4827
  };
5069
- ListBuildRunEventsResponse: {
5070
- /**
5071
- * Format: uri
5072
- * @description A URL to the JSON Schema for this object.
5073
- * @example https://example.com/ListBuildRunEventsResponse.json
5074
- */
5075
- readonly $schema?: string;
5076
- events: components["schemas"]["BuildRunEvent"][] | null;
5077
- };
5078
- ListBuildRunsResponse: {
5079
- /**
5080
- * Format: uri
5081
- * @description A URL to the JSON Schema for this object.
5082
- * @example https://example.com/ListBuildRunsResponse.json
5083
- */
5084
- readonly $schema?: string;
5085
- runs: components["schemas"]["BuildRun"][] | null;
5086
- };
5087
4828
  ListConnectorAppUserClientsResponse: {
5088
4829
  /**
5089
4830
  * Format: uri
@@ -5235,15 +4976,6 @@ interface components {
5235
4976
  /** @description List of hooks */
5236
4977
  hooks: components["schemas"]["Hook"][] | null;
5237
4978
  };
5238
- ListLinkedAuthProvidersOutputBody: {
5239
- /**
5240
- * Format: uri
5241
- * @description A URL to the JSON Schema for this object.
5242
- * @example https://example.com/ListLinkedAuthProvidersOutputBody.json
5243
- */
5244
- readonly $schema?: string;
5245
- providers: components["schemas"]["LinkedAuthProvider"][] | null;
5246
- };
5247
4979
  ListMCPConnectorsResponse: {
5248
4980
  /**
5249
4981
  * Format: uri
@@ -6273,24 +6005,6 @@ interface components {
6273
6005
  /** @description Project repo commit SHA produced by this deletion */
6274
6006
  commit_sha: string;
6275
6007
  };
6276
- ProjectDependenciesResponse: {
6277
- /**
6278
- * Format: uri
6279
- * @description A URL to the JSON Schema for this object.
6280
- * @example https://example.com/ProjectDependenciesResponse.json
6281
- */
6282
- readonly $schema?: string;
6283
- dependencies: components["schemas"]["ProjectDependencyResponse"][] | null;
6284
- log?: string;
6285
- /** Format: date-time */
6286
- updated_at?: string;
6287
- };
6288
- ProjectDependencyResponse: {
6289
- is_dev: boolean;
6290
- name: string;
6291
- version: string;
6292
- vulnerabilities: components["schemas"]["DependencyVulnerabilityResponse"][] | null;
6293
- };
6294
6008
  ProjectEmailConfig: {
6295
6009
  default_marketing_sender_domain?: string;
6296
6010
  default_transactional_sender_domain?: string;
@@ -6775,9 +6489,7 @@ interface components {
6775
6489
  * @example https://example.com/QueryInputBody.json
6776
6490
  */
6777
6491
  readonly $schema?: string;
6778
- /** @description When true, run DLP-based PII anonymization before returning results */
6779
- pii_removal?: boolean;
6780
- /** @description BTQL query to execute */
6492
+ /** @description BTQL query to execute and anonymize */
6781
6493
  query: string;
6782
6494
  };
6783
6495
  QueryResult: {
@@ -7390,26 +7102,6 @@ interface components {
7390
7102
  signOnUrl: string;
7391
7103
  x509Certificate: string;
7392
7104
  };
7393
- SEOFindingDTO: {
7394
- category: string;
7395
- /** Format: date-time */
7396
- created_at?: string;
7397
- description: string;
7398
- details?: string;
7399
- finding_id?: string;
7400
- id: string;
7401
- level: string;
7402
- link?: string;
7403
- metadata?: {
7404
- [key: string]: unknown;
7405
- };
7406
- name: string;
7407
- route?: string;
7408
- state?: string;
7409
- /** Format: date-time */
7410
- state_at?: string;
7411
- state_by?: string;
7412
- };
7413
7105
  SEOFixMetadata: {
7414
7106
  audit_key: string;
7415
7107
  audit_title: string;
@@ -7423,31 +7115,6 @@ interface components {
7423
7115
  is_fix_all?: boolean;
7424
7116
  name: string;
7425
7117
  };
7426
- SEOReviewResponse: {
7427
- /**
7428
- * Format: uri
7429
- * @description A URL to the JSON Schema for this object.
7430
- * @example https://example.com/SEOReviewResponse.json
7431
- */
7432
- readonly $schema?: string;
7433
- is_running: boolean;
7434
- /** Format: date-time */
7435
- last_scan_at?: string;
7436
- project_id: string;
7437
- scanners: {
7438
- [key: string]: components["schemas"]["SEOScannerStatusDTO"];
7439
- };
7440
- };
7441
- SEOScannerStatusDTO: {
7442
- commit?: string;
7443
- error?: string;
7444
- findings: components["schemas"]["SEOFindingDTO"][] | null;
7445
- /** Format: date-time */
7446
- finished_at?: string;
7447
- is_scanning: boolean;
7448
- /** Format: date-time */
7449
- started_at: string;
7450
- };
7451
7118
  SSOProvider: {
7452
7119
  client_id: string;
7453
7120
  /** Format: date-time */
@@ -7493,16 +7160,6 @@ interface components {
7493
7160
  /** @description Plan file content */
7494
7161
  content: string;
7495
7162
  };
7496
- ScanContext: {
7497
- id: string;
7498
- scanners: string[] | null;
7499
- /** Format: date-time */
7500
- started_at: string;
7501
- type: string;
7502
- };
7503
- ScannerConfig: {
7504
- name: string;
7505
- };
7506
7163
  SeamlessConnectorAPI: {
7507
7164
  alias?: string;
7508
7165
  categories: string[] | null;
@@ -7617,115 +7274,6 @@ interface components {
7617
7274
  is_user_secret: boolean;
7618
7275
  name: string;
7619
7276
  };
7620
- SecurityFinding: {
7621
- category?: string;
7622
- connector_id?: string;
7623
- /** Format: date-time */
7624
- created_at?: string;
7625
- /** Format: date-time */
7626
- deleted_at?: string;
7627
- description: string;
7628
- details?: string;
7629
- id: string;
7630
- ignore?: boolean;
7631
- ignore_reason?: string;
7632
- /** Format: date-time */
7633
- ignored_at?: string;
7634
- ignored_by?: string;
7635
- internal_id?: string;
7636
- level: string;
7637
- link?: string;
7638
- metadata?: {
7639
- [key: string]: unknown;
7640
- };
7641
- name: string;
7642
- remediation_difficulty?: string;
7643
- };
7644
- SecurityFindingOperationRequestBody: {
7645
- /**
7646
- * Format: uri
7647
- * @description A URL to the JSON Schema for this object.
7648
- * @example https://example.com/SecurityFindingOperationRequestBody.json
7649
- */
7650
- readonly $schema?: string;
7651
- operations: components["schemas"]["SecurityFindingOperationRequestItem"][] | null;
7652
- };
7653
- SecurityFindingOperationRequestItem: {
7654
- action?: string;
7655
- action_context?: string;
7656
- finding?: components["schemas"]["SecurityFindingPatch"];
7657
- internal_id?: string;
7658
- operation: string;
7659
- scanner_name?: string;
7660
- };
7661
- SecurityFindingOperationResponse: {
7662
- /**
7663
- * Format: uri
7664
- * @description A URL to the JSON Schema for this object.
7665
- * @example https://example.com/SecurityFindingOperationResponse.json
7666
- */
7667
- readonly $schema?: string;
7668
- /** Format: int64 */
7669
- count: number;
7670
- results: string[] | null;
7671
- };
7672
- SecurityFindingPatch: {
7673
- category?: string;
7674
- connector_id?: string;
7675
- /** Format: date-time */
7676
- created_at?: string;
7677
- /** Format: date-time */
7678
- deleted_at?: string;
7679
- description?: string;
7680
- details?: string;
7681
- id?: string;
7682
- ignore?: boolean;
7683
- ignore_reason?: string;
7684
- /** Format: date-time */
7685
- ignored_at?: string;
7686
- ignored_by?: string;
7687
- internal_id?: string;
7688
- level?: string;
7689
- link?: string;
7690
- metadata?: {
7691
- [key: string]: unknown;
7692
- };
7693
- name?: string;
7694
- remediation_difficulty?: string;
7695
- };
7696
- SecurityMemoryBody: {
7697
- /**
7698
- * Format: uri
7699
- * @description A URL to the JSON Schema for this object.
7700
- * @example https://example.com/SecurityMemoryBody.json
7701
- */
7702
- readonly $schema?: string;
7703
- content: string;
7704
- };
7705
- SecurityScanRequestBody: {
7706
- /**
7707
- * Format: uri
7708
- * @description A URL to the JSON Schema for this object.
7709
- * @example https://example.com/SecurityScanRequestBody.json
7710
- */
7711
- readonly $schema?: string;
7712
- /** @description Run scan in the background */
7713
- background?: boolean;
7714
- /** @description Admin-only: force a fresh run even when results are up-to-date */
7715
- force?: boolean;
7716
- /** @description Scanner configurations to run */
7717
- scanner_configs?: components["schemas"]["ScannerConfig"][] | null;
7718
- /** @description Deprecated: use scanner_configs */
7719
- scanner_names?: string[] | null;
7720
- };
7721
- SecurityScanResult: {
7722
- commit: string;
7723
- findings: components["schemas"]["SecurityFinding"][] | null;
7724
- scanner_name: string;
7725
- /** Format: date-time */
7726
- timestamp: string;
7727
- version: string;
7728
- };
7729
7277
  SelectedCanvasShape: {
7730
7278
  componentPath: string;
7731
7279
  id: string;
@@ -7788,28 +7336,6 @@ interface components {
7788
7336
  /** @description Updated lock state */
7789
7337
  locked: boolean;
7790
7338
  };
7791
- SetToolPreferenceInputBody: {
7792
- /**
7793
- * Format: uri
7794
- * @description A URL to the JSON Schema for this object.
7795
- * @example https://example.com/SetToolPreferenceInputBody.json
7796
- */
7797
- readonly $schema?: string;
7798
- /** @enum {string} */
7799
- approval_preference: "never_ask" | "ask" | "disable";
7800
- config?: {
7801
- [key: string]: string;
7802
- };
7803
- };
7804
- SetToolPreferenceOutputBody: {
7805
- /**
7806
- * Format: uri
7807
- * @description A URL to the JSON Schema for this object.
7808
- * @example https://example.com/SetToolPreferenceOutputBody.json
7809
- */
7810
- readonly $schema?: string;
7811
- success: boolean;
7812
- };
7813
7339
  SharedSearchProjectItem: {
7814
7340
  access_level?: string;
7815
7341
  activity_group?: string;
@@ -8286,14 +7812,6 @@ interface components {
8286
7812
  input_schema?: unknown;
8287
7813
  name: string;
8288
7814
  };
8289
- ToolPreference: {
8290
- approval_preference?: string;
8291
- config?: {
8292
- [key: string]: string;
8293
- };
8294
- integration_name?: string;
8295
- tool_name?: string;
8296
- };
8297
7815
  TraceSpan: {
8298
7816
  created?: string;
8299
7817
  error?: unknown;
@@ -8441,30 +7959,6 @@ interface components {
8441
7959
  /** @description Temporal workflow ID for the readiness check */
8442
7960
  workflow_id: string;
8443
7961
  };
8444
- TriggerSEOReviewInputBody: {
8445
- /**
8446
- * Format: uri
8447
- * @description A URL to the JSON Schema for this object.
8448
- * @example https://example.com/TriggerSEOReviewInputBody.json
8449
- */
8450
- readonly $schema?: string;
8451
- /** @description Bypass the per-scanner skip-if-up-to-date check (admin only) */
8452
- force?: boolean;
8453
- /** @description Narrow the dispatch set; empty means all registered scanners */
8454
- scanner_names?: string[] | null;
8455
- };
8456
- TriggerSecurityScanResponse: {
8457
- /**
8458
- * Format: uri
8459
- * @description A URL to the JSON Schema for this object.
8460
- * @example https://example.com/TriggerSecurityScanResponse.json
8461
- */
8462
- readonly $schema?: string;
8463
- message?: string;
8464
- run_id?: string;
8465
- status?: string;
8466
- workflow_id?: string;
8467
- };
8468
7962
  URLResponse: {
8469
7963
  /**
8470
7964
  * Format: uri
@@ -8713,34 +8207,6 @@ interface components {
8713
8207
  /** @description Updated DNS record */
8714
8208
  record: components["schemas"]["DNSRecordOutput"];
8715
8209
  };
8716
- UpdateSEOFindingsInputBody: {
8717
- /**
8718
- * Format: uri
8719
- * @description A URL to the JSON Schema for this object.
8720
- * @example https://example.com/UpdateSEOFindingsInputBody.json
8721
- */
8722
- readonly $schema?: string;
8723
- /** @description Composite finding IDs (scanner:internal_id) */
8724
- finding_ids: string[] | null;
8725
- /**
8726
- * @description User-state to set; empty restores
8727
- * @enum {string}
8728
- */
8729
- state: "" | "pending" | "fixed" | "ignored";
8730
- };
8731
- UpdateSEOFindingsOutputBody: {
8732
- /**
8733
- * Format: uri
8734
- * @description A URL to the JSON Schema for this object.
8735
- * @example https://example.com/UpdateSEOFindingsOutputBody.json
8736
- */
8737
- readonly $schema?: string;
8738
- /**
8739
- * Format: int64
8740
- * @description Number of findings whose state changed
8741
- */
8742
- touched: number;
8743
- };
8744
8210
  UpdateSSOProviderInputBody: {
8745
8211
  /**
8746
8212
  * Format: uri
@@ -12390,6 +11856,12 @@ interface ProjectResponse {
12390
11856
  is_github?: boolean;
12391
11857
  is_supabase_enabled?: boolean;
12392
11858
  url?: string;
11859
+ /**
11860
+ * Preview URL with a short-lived signed token (`?__lovable_token=…`) that
11861
+ * authenticates an iframe load without an in-iframe Lovable login. Use this
11862
+ * to embed the running app inside a partner UI. Token TTL is 1 hour.
11863
+ */
11864
+ embed_url?: string;
12393
11865
  og_image_url?: string;
12394
11866
  latest_screenshot_url?: string;
12395
11867
  user_id?: string;
@@ -12577,80 +12049,6 @@ interface ChatResponse {
12577
12049
  interface ChatResponseOptions {
12578
12050
  timeout?: number;
12579
12051
  }
12580
- type TracePurpose = "main_agent" | "codebase_rag" | "knowledge_rag" | "review";
12581
- interface TraceSpan {
12582
- span_id: string;
12583
- root_span_id?: string;
12584
- span_parents?: unknown;
12585
- span_name?: string;
12586
- span_type?: string;
12587
- purpose?: string;
12588
- subpurpose?: string;
12589
- created?: string;
12590
- input?: unknown;
12591
- output?: unknown;
12592
- error?: unknown;
12593
- metadata?: unknown;
12594
- metrics?: unknown;
12595
- scores?: unknown;
12596
- tags?: unknown;
12597
- }
12598
- interface MessageTracesResponse {
12599
- message_id: string;
12600
- braintrust_span_id: string;
12601
- root_span_id: string;
12602
- response_message_id?: string;
12603
- spans: TraceSpan[];
12604
- }
12605
- interface GetMessageTracesOptions {
12606
- purposes?: TracePurpose[];
12607
- }
12608
- interface TraceQuery {
12609
- projectId: string;
12610
- messageId: string;
12611
- }
12612
- interface BatchTracesResult {
12613
- traces: Map<string, MessageTracesResponse>;
12614
- errors: Map<string, Error>;
12615
- }
12616
- interface ReplayReviewsItemInput {
12617
- /** Assistant (AI) message id for the turn to score */
12618
- response_message_id: string;
12619
- /** Optional per-item reviewer types */
12620
- reviewer_types?: string[] | null;
12621
- }
12622
- interface ReplayReviewsRequestBody {
12623
- items: ReplayReviewsItemInput[];
12624
- /** Defaults to project_success_v3 and user_sentiment when omitted */
12625
- reviewer_types?: string[] | null;
12626
- /** Parallel items (default 4, max 16) */
12627
- concurrency?: number;
12628
- }
12629
- interface ReviewerRunResult {
12630
- reviewer_type: string;
12631
- score?: number;
12632
- message?: string;
12633
- model?: string;
12634
- published_rubric_rows: number;
12635
- error?: string;
12636
- }
12637
- interface ReplayOutcome {
12638
- response_message_id: string;
12639
- user_message_id: string;
12640
- results: ReviewerRunResult[] | null;
12641
- }
12642
- interface BatchItemOutcome {
12643
- response_message_id: string;
12644
- ok: boolean;
12645
- error?: string;
12646
- replay?: ReplayOutcome;
12647
- }
12648
- interface BatchReplayReviewsOutcome {
12649
- items: BatchItemOutcome[];
12650
- }
12651
- interface ReplayReviewsResponse {
12652
- results: BatchReplayReviewsOutcome;
12653
- }
12654
12052
  type RemixJobStatus = "unknown" | "preparing" | "running" | "completed" | "error";
12655
12053
  type RemixJobStep = "starting" | "creating_new_project" | "restoring_supabase" | "copying_history" | "preparing_repository" | "remixing_integration" | "pushing_repository" | "finalizing" | "completed";
12656
12054
  interface RemixJobStepInfo {
@@ -12754,6 +12152,45 @@ interface MessageCompletionOptions {
12754
12152
  interface KnowledgeResponse {
12755
12153
  content: string;
12756
12154
  }
12155
+ interface WorkspaceSkillFile {
12156
+ name: string;
12157
+ contents?: string;
12158
+ binary: boolean;
12159
+ sizeExceeded: boolean;
12160
+ sizeBytes: number;
12161
+ }
12162
+ interface WorkspaceSkill {
12163
+ name: string;
12164
+ description: string;
12165
+ metadata?: Record<string, unknown>;
12166
+ markdown?: string;
12167
+ files: WorkspaceSkillFile[];
12168
+ }
12169
+ interface ListWorkspaceSkillsResponse {
12170
+ skills: WorkspaceSkill[];
12171
+ }
12172
+ interface WorkspaceSkillResponse {
12173
+ skill: WorkspaceSkill;
12174
+ }
12175
+ interface WorkspaceSkillWriteResponse {
12176
+ skill: WorkspaceSkill;
12177
+ commit_sha: string;
12178
+ }
12179
+ interface WorkspaceSkillDeleteResponse {
12180
+ commit_sha: string;
12181
+ }
12182
+ interface ProjectSkill {
12183
+ name: string;
12184
+ description: string;
12185
+ metadata?: Record<string, unknown>;
12186
+ enabled: boolean;
12187
+ }
12188
+ interface ListProjectSkillsResponse {
12189
+ skills: ProjectSkill[];
12190
+ }
12191
+ interface ProjectSkillResponse {
12192
+ skill: Pick<ProjectSkill, "name" | "enabled">;
12193
+ }
12757
12194
  interface FileUploadUrlResponse {
12758
12195
  url: string;
12759
12196
  file_id: string;
@@ -13084,6 +12521,22 @@ declare class LovableClient {
13084
12521
  getWorkspaceKnowledge(workspaceId: string): Promise<KnowledgeResponse>;
13085
12522
  /** Set workspace knowledge. Max 10,000 characters. */
13086
12523
  setWorkspaceKnowledge(workspaceId: string, content: string): Promise<KnowledgeResponse>;
12524
+ /** List workspace skills. */
12525
+ listWorkspaceSkills(workspaceId: string, options?: {
12526
+ includeMarkdown?: boolean;
12527
+ }): Promise<ListWorkspaceSkillsResponse>;
12528
+ /** Get a single workspace skill, including SKILL.md contents. */
12529
+ getWorkspaceSkill(workspaceId: string, skillName: string): Promise<WorkspaceSkillResponse>;
12530
+ /** Create a workspace skill from full SKILL.md markdown. */
12531
+ createWorkspaceSkill(workspaceId: string, skillName: string, markdown: string): Promise<WorkspaceSkillWriteResponse>;
12532
+ /** Update a workspace skill by replacing its SKILL.md markdown. */
12533
+ updateWorkspaceSkill(workspaceId: string, skillName: string, markdown: string): Promise<WorkspaceSkillWriteResponse>;
12534
+ /** Delete a workspace skill. */
12535
+ deleteWorkspaceSkill(workspaceId: string, skillName: string): Promise<WorkspaceSkillDeleteResponse>;
12536
+ /** List project skills, including whether each skill is enabled. */
12537
+ listProjectSkills(projectId: string): Promise<ListProjectSkillsResponse>;
12538
+ /** Enable or disable a project skill without removing it from the project repo. */
12539
+ setProjectSkillEnabled(projectId: string, skillName: string, enabled: boolean): Promise<ProjectSkillResponse>;
13087
12540
  /** Get project knowledge (custom instructions for the AI agent). */
13088
12541
  getProjectKnowledge(projectId: string): Promise<KnowledgeResponse>;
13089
12542
  /** Set project knowledge. Max 10,000 characters. */
@@ -13244,47 +12697,6 @@ declare class LovableClient {
13244
12697
  * @throws Error if the stream fails or timeout is reached
13245
12698
  */
13246
12699
  waitForResponse(projectId: string, options?: ChatResponseOptions): Promise<ChatResponse>;
13247
- /**
13248
- * Developer/experimental APIs. These are not part of the stable v1 surface
13249
- * and may change without notice.
13250
- */
13251
- get _dev(): {
13252
- /**
13253
- * Fetch Braintrust traces for a specific chat message.
13254
- *
13255
- * Returns the trace spans associated with the AI response message.
13256
- * The messageId is available from the ChatResponse returned by waitForResponse().
13257
- *
13258
- * Use the `purposes` option to filter which span types are returned.
13259
- * When a purpose has multiple spans (e.g. main_agent across turns),
13260
- * only the last span is returned — it contains the full accumulated context.
13261
- *
13262
- * @param projectId - The project ID
13263
- * @param messageId - The AI message ID (from ChatResponse.messageId)
13264
- * @param options.purposes - Filter spans by purpose (e.g. ["main_agent", "knowledge_rag"])
13265
- * @returns The trace data including filtered spans
13266
- */
13267
- getMessageTraces: (projectId: string, messageId: string, options?: GetMessageTracesOptions) => Promise<MessageTracesResponse>;
13268
- /**
13269
- * Fetch traces for multiple messages across projects in parallel.
13270
- *
13271
- * Fires concurrent requests (up to `concurrency` at a time) and collects
13272
- * results. Failed requests are captured in `errors` instead of throwing.
13273
- *
13274
- * @param queries - Array of { projectId, messageId } to fetch
13275
- * @param options.purposes - Filter spans by purpose (applied to all queries)
13276
- * @param options.concurrency - Max parallel requests (default: 5)
13277
- * @returns Object with `traces` map (keyed by messageId) and `errors` map
13278
- */
13279
- getMessageTracesBatch: (queries: TraceQuery[], options?: GetMessageTracesOptions & {
13280
- concurrency?: number;
13281
- }) => Promise<BatchTracesResult>;
13282
- /**
13283
- * Re-run project reviewers (e.g. project_success_v3, user_sentiment) for past assistant
13284
- * messages. Requires an API key with project write access.
13285
- */
13286
- replayReviews: (projectId: string, body: ReplayReviewsRequestBody) => Promise<ReplayReviewsResponse>;
13287
- };
13288
12700
  private isFileInput;
13289
12701
  private uploadFile;
13290
12702
  private uploadFiles;
@@ -13304,4 +12716,4 @@ declare class LovableClient {
13304
12716
  waitForProjectPublished(projectId: string, options?: WaitOptions): Promise<ProjectResponse>;
13305
12717
  }
13306
12718
 
13307
- export { type AddConnectorBody, type AddUserToWorkspaceInputBody, ApiError, type AvailableConnectorEntry, type BatchItemOutcome, type BatchReplayReviewsOutcome, type BatchTracesResult, type ChatMessageOptions, type ChatRequest, type ChatResponse, type ChatResponseOptions, type ConnectionItem, type ConnectorResponse, type ContinuationOverride, type CreateProjectBody, type CreateProjectOptions, type CustomModelConfig, type DatabaseQueryResult, type DatabaseStatus, type DeploymentResponse, type DiffEntry, type DiffHunk, type DiffLine, type EditSummary, type EditsResponse, type EnableDatabaseResult, type FileInput, type FileUploadUrlResponse, type GetMessageResponse, type GetMessageTracesOptions, type GitDiffResponse, type GitFileEntry, type GitFilesResponse, type InviteCollaboratorOptions, type KnowledgeResponse, type LibraryProjectResponse, type ListData, type ListDataPoint, type ListMessagesResponse, type ListProjectItem, type ListProjectsOptions, type ListProjectsResponse, LovableClient, type LovableClientOptions, type LovableError, type MCPConnectorItem, type MeResponse, type MeWorkspace, type MemberRole, type MessageCompletionOptions, type MessageCompletionResult, type MessageSummary, type MessageTracesResponse, type ProjectAnalyticsResponse, type ProjectAnalyticsTrendResponse, type ProjectResponse, type ProjectStatus, type ProjectVisibility, type RemixJobStatus, type RemixJobStep, type RemixJobStepInfo, type RemixMode, type RemixProjectOptions, type RemixResult, type RemixWaitOptions, type ReplayOutcome, type ReplayReviewsItemInput, type ReplayReviewsRequestBody, type ReplayReviewsResponse, type ReviewerRunResult, type SeamlessConnectorItem, type SendMessageResponse, type StandardConnectorItem, type TemplateProjectResponse, type TimeSeriesData, type TimeSeriesDataPoint, type TracePurpose, type TraceQuery, type TraceSpan, type TrendDataPoint, type UnscopedFile, type WaitOptions, type WorkspaceMembership, type WorkspaceMembershipResponse, type WorkspaceWithMembership };
12719
+ export { type AddConnectorBody, type AddUserToWorkspaceInputBody, ApiError, type AvailableConnectorEntry, type ChatMessageOptions, type ChatRequest, type ChatResponse, type ChatResponseOptions, type ConnectionItem, type ConnectorResponse, type ContinuationOverride, type CreateProjectBody, type CreateProjectOptions, type DatabaseQueryResult, type DatabaseStatus, type DeploymentResponse, type DiffEntry, type DiffHunk, type DiffLine, type EditSummary, type EditsResponse, type EnableDatabaseResult, type FileInput, type FileUploadUrlResponse, type GetMessageResponse, type GitDiffResponse, type GitFileEntry, type GitFilesResponse, type InviteCollaboratorOptions, type KnowledgeResponse, type LibraryProjectResponse, type ListData, type ListDataPoint, type ListMessagesResponse, type ListProjectItem, type ListProjectsOptions, type ListProjectsResponse, LovableClient, type LovableClientOptions, type LovableError, type MCPConnectorItem, type MeResponse, type MeWorkspace, type MemberRole, type MessageCompletionOptions, type MessageCompletionResult, type MessageSummary, type ProjectAnalyticsResponse, type ProjectAnalyticsTrendResponse, type ProjectResponse, type ProjectStatus, type ProjectVisibility, type RemixJobStatus, type RemixJobStep, type RemixJobStepInfo, type RemixMode, type RemixProjectOptions, type RemixResult, type RemixWaitOptions, type SeamlessConnectorItem, type SendMessageResponse, type StandardConnectorItem, type TemplateProjectResponse, type TimeSeriesData, type TimeSeriesDataPoint, type TrendDataPoint, type UnscopedFile, type WaitOptions, type WorkspaceMembership, type WorkspaceMembershipResponse, type WorkspaceWithMembership };