langwatch 2.2.0 → 2.3.0

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 (46) hide show
  1. package/dist/agent/index.js +1 -1
  2. package/dist/agent/index.js.map +1 -1
  3. package/dist/agent/index.mjs +1 -1
  4. package/dist/agent/index.mjs.map +1 -1
  5. package/dist/{types-RkiBQZ9j.d.mts → braid-baggage-span-processor-CBNdRYKr.d.mts} +28 -1
  6. package/dist/{types-RkiBQZ9j.d.ts → braid-baggage-span-processor-CBNdRYKr.d.ts} +28 -1
  7. package/dist/{chunk-OAAGWSLX.mjs → chunk-5TNHAT3S.mjs} +101 -4
  8. package/dist/chunk-5TNHAT3S.mjs.map +1 -0
  9. package/dist/{chunk-TQJS5H5P.js → chunk-FQJHCT5Y.js} +111 -14
  10. package/dist/chunk-FQJHCT5Y.js.map +1 -0
  11. package/dist/{chunk-PDTYQM5C.js → chunk-HWKTHOMP.js} +58 -3
  12. package/dist/chunk-HWKTHOMP.js.map +1 -0
  13. package/dist/{chunk-P65KWWFU.mjs → chunk-IMUFSW7Z.mjs} +58 -3
  14. package/dist/chunk-IMUFSW7Z.mjs.map +1 -0
  15. package/dist/{chunk-XQ4CP2JK.mjs → chunk-MCWJ3AWF.mjs} +1 -1
  16. package/dist/{chunk-WDUUAIG3.js → chunk-PDYPOYVZ.js} +1 -1
  17. package/dist/{chunk-WDUUAIG3.js.map → chunk-PDYPOYVZ.js.map} +1 -1
  18. package/dist/cli/bundle.js +691 -421
  19. package/dist/{implementation-CaKFOMnp.d.ts → implementation-BparHh-q.d.ts} +1 -1
  20. package/dist/{implementation-CMJfitMa.d.mts → implementation-CrBgn1V6.d.mts} +1 -1
  21. package/dist/index.d.mts +47 -4
  22. package/dist/index.d.ts +47 -4
  23. package/dist/index.js +168 -38
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +138 -8
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/observability-sdk/index.d.mts +27 -6
  28. package/dist/observability-sdk/index.d.ts +27 -6
  29. package/dist/observability-sdk/index.js +13 -3
  30. package/dist/observability-sdk/index.js.map +1 -1
  31. package/dist/observability-sdk/index.mjs +12 -2
  32. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
  33. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
  34. package/dist/observability-sdk/setup/node/index.d.mts +39 -3
  35. package/dist/observability-sdk/setup/node/index.d.ts +39 -3
  36. package/dist/observability-sdk/setup/node/index.js +9 -3
  37. package/dist/observability-sdk/setup/node/index.js.map +1 -1
  38. package/dist/observability-sdk/setup/node/index.mjs +10 -4
  39. package/dist/{types-0leNdzy4.d.ts → types-BXcB5Uov.d.ts} +255 -12
  40. package/dist/{types-DNjiOkpS.d.mts → types-D_MsVA5r.d.mts} +255 -12
  41. package/package.json +1 -1
  42. package/dist/chunk-OAAGWSLX.mjs.map +0 -1
  43. package/dist/chunk-P65KWWFU.mjs.map +0 -1
  44. package/dist/chunk-PDTYQM5C.js.map +0 -1
  45. package/dist/chunk-TQJS5H5P.js.map +0 -1
  46. /package/dist/{chunk-XQ4CP2JK.mjs.map → chunk-MCWJ3AWF.mjs.map} +0 -0
@@ -583,7 +583,7 @@ interface paths {
583
583
  /** @description List all non-archived datasets for the project (paginated) */
584
584
  get: operations["getApiDataset"];
585
585
  put?: never;
586
- /** @description Create a new dataset */
586
+ /** @description Create a new dataset, optionally with its first rows in `entries`, written in the same call. */
587
587
  post: operations["postApiDataset"];
588
588
  delete?: never;
589
589
  options?: never;
@@ -625,7 +625,7 @@ interface paths {
625
625
  delete: operations["deleteApiDatasetBySlugOrId"];
626
626
  options?: never;
627
627
  head?: never;
628
- /** @description Update a dataset by its slug or id */
628
+ /** @description Update a dataset by its slug or id. New `columnTypes` re-key every record; send `columnRenames` to say which existing column each renamed column came from, so a save that deletes one column and renames another moves the right values. */
629
629
  patch: operations["patchApiDatasetBySlugOrId"];
630
630
  trace?: never;
631
631
  };
@@ -656,7 +656,7 @@ interface paths {
656
656
  /** @description Get all evaluators for a project */
657
657
  get: operations["getApiEvaluators"];
658
658
  put?: never;
659
- /** @description Create a new evaluator */
659
+ /** @description Create a new evaluator: a built-in one, a custom code evaluator (`type: "code"`) or one that wraps a workflow (`type: "workflow"`) */
660
660
  post: operations["postApiEvaluators"];
661
661
  delete?: never;
662
662
  options?: never;
@@ -1365,6 +1365,46 @@ interface paths {
1365
1365
  patch?: never;
1366
1366
  trace?: never;
1367
1367
  };
1368
+ "/api/v1/test-suites/templates": {
1369
+ parameters: {
1370
+ query?: never;
1371
+ header?: never;
1372
+ path?: never;
1373
+ cookie?: never;
1374
+ };
1375
+ /**
1376
+ * List suite templates
1377
+ * @description List the suite templates that ship with LangWatch: archetypes of everyday behaviour tests and red team packs such as the OWASP Top 10 lists. Each carries its full scenario data, so a caller can preview what applying it creates.
1378
+ */
1379
+ get: operations["listSuiteTemplates"];
1380
+ put?: never;
1381
+ post?: never;
1382
+ delete?: never;
1383
+ options?: never;
1384
+ head?: never;
1385
+ patch?: never;
1386
+ trace?: never;
1387
+ };
1388
+ "/api/v1/test-suites/templates/{templateId}/apply": {
1389
+ parameters: {
1390
+ query?: never;
1391
+ header?: never;
1392
+ path?: never;
1393
+ cookie?: never;
1394
+ };
1395
+ get?: never;
1396
+ put?: never;
1397
+ /**
1398
+ * Apply a suite template
1399
+ * @description Create a test suite from a template, with one scenario per template scenario filled from the fit: the agent's name, its tools and what it must never do. The suite name defaults to the template title. An unknown template id answers 404 suite_template_not_found.
1400
+ */
1401
+ post: operations["applySuiteTemplate"];
1402
+ delete?: never;
1403
+ options?: never;
1404
+ head?: never;
1405
+ patch?: never;
1406
+ trace?: never;
1407
+ };
1368
1408
  "/api/v1/test-suites/{id}": {
1369
1409
  parameters: {
1370
1410
  query?: never;
@@ -2858,7 +2898,9 @@ interface operations {
2858
2898
  requestBody: {
2859
2899
  content: {
2860
2900
  "application/json": {
2901
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
2861
2902
  startDate: number | string;
2903
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
2862
2904
  endDate: number | string;
2863
2905
  query?: string;
2864
2906
  /** @default {} */
@@ -3664,7 +3706,7 @@ interface operations {
3664
3706
  type: string;
3665
3707
  description: string;
3666
3708
  unit: string | null;
3667
- readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy"))[];
3709
+ readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy" | "subscription:upgrade" | "subscription:manage" | "seatRequests:view" | "seatRequests:manage" | "members:view" | "braids:manage" | "spans:braided"))[];
3668
3710
  available: boolean;
3669
3711
  }[];
3670
3712
  exampleSql: string;
@@ -3679,7 +3721,7 @@ interface operations {
3679
3721
  /** @enum {string} */
3680
3722
  kind: "extraction" | "eval";
3681
3723
  cap: number;
3682
- readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy"))[];
3724
+ readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy" | "subscription:upgrade" | "subscription:manage" | "seatRequests:view" | "seatRequests:manage" | "members:view" | "braids:manage" | "spans:braided"))[];
3683
3725
  available: boolean;
3684
3726
  exampleSql: string;
3685
3727
  }[];
@@ -3842,7 +3884,7 @@ interface operations {
3842
3884
  type: string;
3843
3885
  description: string;
3844
3886
  unit: string | null;
3845
- readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy"))[];
3887
+ readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy" | "subscription:upgrade" | "subscription:manage" | "seatRequests:view" | "seatRequests:manage" | "members:view" | "braids:manage" | "spans:braided"))[];
3846
3888
  available: boolean;
3847
3889
  }[];
3848
3890
  exampleSql: string;
@@ -3857,7 +3899,7 @@ interface operations {
3857
3899
  /** @enum {string} */
3858
3900
  kind: "extraction" | "eval";
3859
3901
  cap: number;
3860
- readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy"))[];
3902
+ readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy" | "subscription:upgrade" | "subscription:manage" | "seatRequests:view" | "seatRequests:manage" | "members:view" | "braids:manage" | "spans:braided"))[];
3861
3903
  available: boolean;
3862
3904
  exampleSql: string;
3863
3905
  }[];
@@ -3915,7 +3957,7 @@ interface operations {
3915
3957
  description: string;
3916
3958
  }[];
3917
3959
  requires: {
3918
- readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy"))[];
3960
+ readonly gates: (("input" | "output" | "costs") | ("organization:view" | "organization:manage" | "organization:delete" | "project:view" | "project:create" | "project:update" | "project:delete" | "project:manage" | "team:view" | "team:manage" | "analytics:view" | "analytics:create" | "analytics:update" | "analytics:delete" | "analytics:manage" | "cost:view" | "traces:view" | "traces:create" | "traces:update" | "traces:share" | "scenarios:view" | "scenarios:create" | "scenarios:update" | "scenarios:delete" | "scenarios:manage" | "annotations:view" | "annotations:create" | "annotations:update" | "annotations:delete" | "annotations:manage" | "evaluations:view" | "evaluations:create" | "evaluations:update" | "evaluations:delete" | "evaluations:manage" | "datasets:view" | "datasets:create" | "datasets:update" | "datasets:delete" | "datasets:manage" | "triggers:view" | "triggers:create" | "triggers:update" | "triggers:delete" | "triggers:manage" | "workflows:view" | "workflows:create" | "workflows:update" | "workflows:delete" | "workflows:manage" | "experiments:view" | "experiments:create" | "experiments:update" | "experiments:delete" | "experiments:manage" | "prompts:view" | "prompts:create" | "prompts:update" | "prompts:delete" | "prompts:manage" | "secrets:view" | "secrets:create" | "secrets:update" | "secrets:delete" | "secrets:manage" | "playground:view" | "playground:create" | "playground:update" | "playground:delete" | "playground:manage" | "ops:view" | "ops:manage" | "auditLog:view" | "virtualKeys:view" | "virtualKeys:create" | "virtualKeys:update" | "virtualKeys:delete" | "virtualKeys:rotate" | "virtualKeys:manage" | "virtualKeys:viewOtherPersonal" | "gatewayBudgets:view" | "gatewayBudgets:create" | "gatewayBudgets:update" | "gatewayBudgets:delete" | "gatewayBudgets:manage" | "gatewayProviders:view" | "gatewayProviders:update" | "gatewayProviders:manage" | "routingPolicies:view" | "routingPolicies:manage" | "gatewayGuardrails:view" | "gatewayGuardrails:attach" | "gatewayGuardrails:detach" | "gatewayGuardrails:manage" | "gatewayLogs:view" | "gatewayUsage:view" | "gatewayCacheRules:view" | "gatewayCacheRules:create" | "gatewayCacheRules:update" | "gatewayCacheRules:delete" | "gatewayCacheRules:manage" | "governance:view" | "governance:manage" | "ingestionSources:view" | "ingestionSources:create" | "ingestionSources:update" | "ingestionSources:delete" | "ingestionSources:manage" | "anomalyRules:view" | "anomalyRules:create" | "anomalyRules:update" | "anomalyRules:delete" | "anomalyRules:manage" | "complianceExport:view" | "activityMonitor:view" | "aiTools:view" | "aiTools:manage" | "webhookEndpoints:view" | "webhookEndpoints:manage" | "gatewaySpend:view" | "gatewaySpend:manage" | "langy:view" | "langy:create" | "langy:update" | "langy:delete" | "langy:manage" | "agentCache:view" | "agentCache:manage" | "featureFlags:manageExperiments" | "governanceCost:view" | "sso:view" | "sso:manage" | "agents:deploy" | "evaluators:deploy" | "subscription:upgrade" | "subscription:manage" | "seatRequests:view" | "seatRequests:manage" | "members:view" | "braids:manage" | "spans:braided"))[];
3919
3961
  readonly functions: string[];
3920
3962
  };
3921
3963
  available: boolean;
@@ -8918,6 +8960,13 @@ interface operations {
8918
8960
  /** @enum {string} */
8919
8961
  type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image" | "file";
8920
8962
  }[];
8963
+ /** @description The dataset's first rows, written with it in one call. Each key must be a column in `columnTypes`. */
8964
+ entries?: ({
8965
+ /** @description Leave it out: record ids are unique across projects, so the platform picks them. */
8966
+ id?: string;
8967
+ } & {
8968
+ [key: string]: unknown;
8969
+ })[];
8921
8970
  };
8922
8971
  };
8923
8972
  };
@@ -9171,6 +9220,11 @@ interface operations {
9171
9220
  /** @enum {string} */
9172
9221
  type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image" | "file";
9173
9222
  }[];
9223
+ /** @description Which existing column each renamed column came from, as `{ from, to }` names. Sent, values move by these renames and by unchanged names only. Omitted, columns left over after matching names pair by position. */
9224
+ columnRenames?: {
9225
+ from: string;
9226
+ to: string;
9227
+ }[];
9174
9228
  };
9175
9229
  };
9176
9230
  };
@@ -9339,9 +9393,18 @@ interface operations {
9339
9393
  content: {
9340
9394
  "application/json": {
9341
9395
  name: string;
9396
+ /**
9397
+ * @description The kind of evaluator. "evaluator" (the default) is a built-in type named by config.evaluatorType; "code" is a custom Python evaluator whose config carries code and inputs; "workflow" wraps the workflow named by workflowId.
9398
+ * @default evaluator
9399
+ * @enum {string}
9400
+ */
9401
+ type?: "evaluator" | "code" | "workflow";
9402
+ /** @description For a built-in evaluator: { evaluatorType, settings }. For a code evaluator: { code, inputs: [{ identifier, type }] }; outputs are the fixed passed, score, label and details. For a workflow evaluator: {}. */
9342
9403
  config: {
9343
9404
  [key: string]: unknown;
9344
9405
  };
9406
+ /** @description The workflow a "workflow" evaluator wraps. Only for type "workflow". */
9407
+ workflowId?: string;
9345
9408
  };
9346
9409
  };
9347
9410
  };
@@ -9818,6 +9881,7 @@ interface operations {
9818
9881
  };
9819
9882
  row_indices?: number[];
9820
9883
  concurrency?: number;
9884
+ repeat?: number;
9821
9885
  };
9822
9886
  };
9823
9887
  };
@@ -9835,13 +9899,15 @@ interface operations {
9835
9899
  status: "running";
9836
9900
  /** @description Number of cells this run will execute */
9837
9901
  total: number;
9902
+ /** @description Cells this run executes at once: the request's `concurrency`, else the server default */
9903
+ concurrency?: number;
9838
9904
  /** @description Link to the run in the LangWatch app */
9839
9905
  runUrl?: string;
9840
9906
  };
9841
9907
  "text/event-stream": string;
9842
9908
  };
9843
9909
  };
9844
- /** @description The body was not valid JSON, failed input validation, or the experiment has no dataset configured */
9910
+ /** @description The body was not valid JSON, failed input validation, the experiment has no dataset configured, or `dataset_version` was sent while the run reads no saved dataset (no `dataset_id` and an inline active dataset) */
9845
9911
  400: {
9846
9912
  headers: {
9847
9913
  [name: string]: unknown;
@@ -9889,6 +9955,8 @@ interface operations {
9889
9955
  progress: number;
9890
9956
  /** @description Cells in the run */
9891
9957
  total: number;
9958
+ /** @description Cells the run executes at once, as it was fixed when the run started */
9959
+ concurrency?: number;
9892
9960
  /** @description Unix milliseconds */
9893
9961
  startedAt?: number;
9894
9962
  /** @description Unix milliseconds; set once the run is no longer running */
@@ -11470,7 +11538,6 @@ interface operations {
11470
11538
  /** @enum {string} */
11471
11539
  schemaVersion?: "1.0";
11472
11540
  tags?: string[];
11473
- /** @default {} */
11474
11541
  parameters?: {
11475
11542
  [key: string]: components["schemas"]["JsonValue"];
11476
11543
  };
@@ -12450,7 +12517,6 @@ interface operations {
12450
12517
  /** @enum {string} */
12451
12518
  schemaVersion?: "1.0";
12452
12519
  tags?: string[];
12453
- /** @default {} */
12454
12520
  parameters?: {
12455
12521
  [key: string]: components["schemas"]["JsonValue"];
12456
12522
  };
@@ -13114,6 +13180,10 @@ interface operations {
13114
13180
  simulatorModel?: string | null;
13115
13181
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
13116
13182
  judgeModel?: string | null;
13183
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13184
+ traceQuietPeriodMs?: number | null;
13185
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13186
+ traceWaitTimeoutMs?: number | null;
13117
13187
  /** @description The most conversation turns a run of this scenario takes, or null for the default. Absent on servers that predate turn limits on this family. */
13118
13188
  maxTurns?: number | null;
13119
13189
  /** @description The fewest conversation turns before the judge may end a run, or null for the default. Absent on servers that predate turn limits on this family. */
@@ -13162,6 +13232,10 @@ interface operations {
13162
13232
  simulatorModel?: string | null;
13163
13233
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
13164
13234
  judgeModel?: string | null;
13235
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it. Null uses the project's recommendation. */
13236
+ traceQuietPeriodMs?: number | null;
13237
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict. Null uses the project's recommendation. */
13238
+ traceWaitTimeoutMs?: number | null;
13165
13239
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
13166
13240
  maxTurns?: number | null;
13167
13241
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -13172,6 +13246,25 @@ interface operations {
13172
13246
  fields?: {
13173
13247
  [key: string]: string | number | boolean;
13174
13248
  };
13249
+ /**
13250
+ * @description Absent or "standard" plays a user simulator. "red_team" plays an attacker and requires redTeam; a standard scenario with redTeam answers 422 scenario_red_team_config_mismatch.
13251
+ * @enum {string}
13252
+ */
13253
+ kind?: "standard" | "red_team";
13254
+ /** @description The attack a red_team scenario plays: goal, OWASP ids, strategy and turn budget. */
13255
+ redTeam?: {
13256
+ attackGoal: string;
13257
+ owaspIds: string[];
13258
+ /**
13259
+ * @default crescendo
13260
+ * @enum {string}
13261
+ */
13262
+ strategy?: "crescendo" | "goat";
13263
+ /** @default 30 */
13264
+ maxTurns?: number;
13265
+ };
13266
+ /** @description Refused: only applying a suite template marks a scenario with its template. */
13267
+ sourceTemplateId?: unknown;
13175
13268
  };
13176
13269
  };
13177
13270
  };
@@ -13202,6 +13295,10 @@ interface operations {
13202
13295
  simulatorModel?: string | null;
13203
13296
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
13204
13297
  judgeModel?: string | null;
13298
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13299
+ traceQuietPeriodMs?: number | null;
13300
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13301
+ traceWaitTimeoutMs?: number | null;
13205
13302
  /** @description The most conversation turns a run of this scenario takes, or null for the default. Absent on servers that predate turn limits on this family. */
13206
13303
  maxTurns?: number | null;
13207
13304
  /** @description The fewest conversation turns before the judge may end a run, or null for the default. Absent on servers that predate turn limits on this family. */
@@ -13256,6 +13353,10 @@ interface operations {
13256
13353
  simulatorModel?: string | null;
13257
13354
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
13258
13355
  judgeModel?: string | null;
13356
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13357
+ traceQuietPeriodMs?: number | null;
13358
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13359
+ traceWaitTimeoutMs?: number | null;
13259
13360
  /** @description The most conversation turns a run of this scenario takes, or null for the default. Absent on servers that predate turn limits on this family. */
13260
13361
  maxTurns?: number | null;
13261
13362
  /** @description The fewest conversation turns before the judge may end a run, or null for the default. Absent on servers that predate turn limits on this family. */
@@ -13315,6 +13416,10 @@ interface operations {
13315
13416
  simulatorModel?: string | null;
13316
13417
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
13317
13418
  judgeModel?: string | null;
13419
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it. Null uses the project's recommendation. */
13420
+ traceQuietPeriodMs?: number | null;
13421
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict. Null uses the project's recommendation. */
13422
+ traceWaitTimeoutMs?: number | null;
13318
13423
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
13319
13424
  maxTurns?: number | null;
13320
13425
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -13355,6 +13460,10 @@ interface operations {
13355
13460
  simulatorModel?: string | null;
13356
13461
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
13357
13462
  judgeModel?: string | null;
13463
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13464
+ traceQuietPeriodMs?: number | null;
13465
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13466
+ traceWaitTimeoutMs?: number | null;
13358
13467
  /** @description The most conversation turns a run of this scenario takes, or null for the default. Absent on servers that predate turn limits on this family. */
13359
13468
  maxTurns?: number | null;
13360
13469
  /** @description The fewest conversation turns before the judge may end a run, or null for the default. Absent on servers that predate turn limits on this family. */
@@ -13450,6 +13559,10 @@ interface operations {
13450
13559
  simulatorModel?: string | null;
13451
13560
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
13452
13561
  judgeModel?: string | null;
13562
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it. Null uses the project's recommendation. */
13563
+ traceQuietPeriodMs?: number | null;
13564
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict. Null uses the project's recommendation. */
13565
+ traceWaitTimeoutMs?: number | null;
13453
13566
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
13454
13567
  maxTurns?: number | null;
13455
13568
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -13490,6 +13603,10 @@ interface operations {
13490
13603
  simulatorModel?: string | null;
13491
13604
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
13492
13605
  judgeModel?: string | null;
13606
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13607
+ traceQuietPeriodMs?: number | null;
13608
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the project's recommendation. Absent on servers that predate judge trace settings. */
13609
+ traceWaitTimeoutMs?: number | null;
13493
13610
  /** @description The most conversation turns a run of this scenario takes, or null for the default. Absent on servers that predate turn limits on this family. */
13494
13611
  maxTurns?: number | null;
13495
13612
  /** @description The fewest conversation turns before the judge may end a run, or null for the default. Absent on servers that predate turn limits on this family. */
@@ -13995,6 +14112,10 @@ interface operations {
13995
14112
  simulatorModel: string | null;
13996
14113
  /** @description The model that judges the run, or null for the scenario or project default. */
13997
14114
  judgeModel: string | null;
14115
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings. */
14116
+ traceQuietPeriodMs?: number | null;
14117
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings. */
14118
+ traceWaitTimeoutMs?: number | null;
13998
14119
  /** @description The labels the plan carries. */
13999
14120
  labels: string[];
14000
14121
  /** @description The plan's own evaluators. Absent on servers that predate evaluators on this family. */
@@ -14094,6 +14215,10 @@ interface operations {
14094
14215
  simulatorModel?: string | null;
14095
14216
  /** @description The model that judges every scenario in the run. Overrides each scenario's own choice. Leave it out for the scenario or project default. */
14096
14217
  judgeModel?: string | null;
14218
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it, for every scenario in the run. Overrides each scenario's own setting. Leave it out for the scenario setting or the project's recommendation. */
14219
+ traceQuietPeriodMs?: number | null;
14220
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict, for every scenario in the run. Overrides each scenario's own setting. Leave it out for the scenario setting or the project's recommendation. */
14221
+ traceWaitTimeoutMs?: number | null;
14097
14222
  /** @description The scenarios a test_suites or scenarios scope covers. Read by a scenarios scope alone; a scope that states a rule resolves its own list at run time. */
14098
14223
  scenarioIds?: string[];
14099
14224
  /** @description The plan's own evaluators, run beside the ones attached to the test suites its scenarios belong to. A plan evaluator reads the conversation and the trace, never a scenario field. Leave it out to keep what the plan already holds. */
@@ -14272,6 +14397,10 @@ interface operations {
14272
14397
  simulatorModel: string | null;
14273
14398
  /** @description The model that judges the run, or null for the scenario or project default. */
14274
14399
  judgeModel: string | null;
14400
+ /** @description Milliseconds the agent's trace must stay unchanged before the judge reads it, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings. */
14401
+ traceQuietPeriodMs?: number | null;
14402
+ /** @description Milliseconds the judge waits for the agent's trace before a verdict, or null for the scenario setting or the project's recommendation. Absent on servers that predate judge trace settings. */
14403
+ traceWaitTimeoutMs?: number | null;
14275
14404
  /** @description The labels the plan carries. */
14276
14405
  labels: string[];
14277
14406
  /** @description The plan's own evaluators. Absent on servers that predate evaluators on this family. */
@@ -14667,6 +14796,104 @@ interface operations {
14667
14796
  };
14668
14797
  };
14669
14798
  };
14799
+ listSuiteTemplates: {
14800
+ parameters: {
14801
+ query?: never;
14802
+ header?: never;
14803
+ path?: never;
14804
+ cookie?: never;
14805
+ };
14806
+ requestBody?: never;
14807
+ responses: {
14808
+ /** @description Success */
14809
+ 200: {
14810
+ headers: {
14811
+ [name: string]: unknown;
14812
+ };
14813
+ content: {
14814
+ "application/json": {
14815
+ id: string;
14816
+ version: number;
14817
+ /** @enum {string} */
14818
+ kind: "archetype" | "red_team_pack";
14819
+ title: string;
14820
+ description: string;
14821
+ /** @default [] */
14822
+ criteria: string[];
14823
+ scenarios: {
14824
+ key: string;
14825
+ name: string;
14826
+ situation: string;
14827
+ criteria: string[];
14828
+ /** @default [] */
14829
+ labels: string[];
14830
+ attack?: {
14831
+ attackGoal: string;
14832
+ owaspIds: string[];
14833
+ /** @enum {string} */
14834
+ strategy: "crescendo" | "goat";
14835
+ /** @default 30 */
14836
+ maxTurns: number;
14837
+ };
14838
+ }[];
14839
+ }[];
14840
+ };
14841
+ };
14842
+ };
14843
+ };
14844
+ applySuiteTemplate: {
14845
+ parameters: {
14846
+ query?: never;
14847
+ header?: never;
14848
+ path: {
14849
+ templateId: string;
14850
+ };
14851
+ cookie?: never;
14852
+ };
14853
+ requestBody: {
14854
+ content: {
14855
+ "application/json": {
14856
+ fit: {
14857
+ agentName: string;
14858
+ /** @default [] */
14859
+ tools?: string[];
14860
+ /** @default [] */
14861
+ mustNever?: string[];
14862
+ };
14863
+ name?: string;
14864
+ };
14865
+ };
14866
+ };
14867
+ responses: {
14868
+ /** @description Success */
14869
+ 201: {
14870
+ headers: {
14871
+ [name: string]: unknown;
14872
+ };
14873
+ content: {
14874
+ "application/json": {
14875
+ suiteId: string;
14876
+ slug: string;
14877
+ name: string;
14878
+ scenarioIds: string[];
14879
+ };
14880
+ };
14881
+ };
14882
+ /** @description Not Found */
14883
+ 404: {
14884
+ headers: {
14885
+ [name: string]: unknown;
14886
+ };
14887
+ content: {
14888
+ "application/json": {
14889
+ error: string;
14890
+ message?: string;
14891
+ code: string;
14892
+ };
14893
+ };
14894
+ };
14895
+ };
14896
+ };
14670
14897
  getTestSuite: {
14671
14898
  parameters: {
14672
14899
  query?: never;
@@ -14759,6 +14986,7 @@ interface operations {
14759
14986
  "application/json": {
14760
14987
  error: string;
14761
14988
  message?: string;
14989
+ code: string;
14762
14990
  };
14763
14991
  };
14764
14992
  };
@@ -14802,6 +15030,7 @@ interface operations {
14802
15030
  "application/json": {
14803
15031
  error: string;
14804
15032
  message?: string;
15033
+ code: string;
14805
15034
  };
14806
15035
  };
14807
15036
  };
@@ -14932,6 +15161,7 @@ interface operations {
14932
15161
  "application/json": {
14933
15162
  error: string;
14934
15163
  message?: string;
15164
+ code: string;
14935
15165
  };
14936
15166
  };
14937
15167
  };
@@ -14980,6 +15210,10 @@ interface operations {
14980
15210
  simulatorModel?: string | null;
14981
15211
  /** @description The model that judges every scenario in this run. Leave it out for the scenario or project default. */
14982
15212
  judgeModel?: string | null;
15213
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it, for every scenario in the run. Overrides each scenario's own setting. Leave it out for the scenario setting or the project's recommendation. */
15214
+ traceQuietPeriodMs?: number | null;
15215
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict, for every scenario in the run. Overrides each scenario's own setting. Leave it out for the scenario setting or the project's recommendation. */
15216
+ traceWaitTimeoutMs?: number | null;
14983
15217
  /** @description Repeat the same key to make a retry join the batch the first call started instead of running everything again. Send the same request with it: the same key over a different configuration starts its own batch. Defaults to a new key per call. */
14984
15218
  idempotencyKey?: string;
14985
15219
  /** @description Constant values applied to every scenario in the run, e.g. a fixture id or a tenant. A value supplied here overrides the scenario's own default for that name, and a target that names the same parameter in its runParameters overrides it for that target. */
@@ -15068,6 +15302,7 @@ interface operations {
15068
15302
  "application/json": {
15069
15303
  error: string;
15070
15304
  message?: string;
15305
+ code: string;
15071
15306
  };
15072
15307
  };
15073
15308
  };
@@ -15666,6 +15901,10 @@ interface operations {
15666
15901
  simulatorModel?: string | null;
15667
15902
  /** @description The model that judges every scenario in the run. Used only when the id names a test suite. */
15668
15903
  judgeModel?: string | null;
15904
+ /** @description Milliseconds (0 to 60000) the agent's trace must stay unchanged before the judge reads it, for every scenario in the run. Used only when the id names a test suite. */
15905
+ traceQuietPeriodMs?: number | null;
15906
+ /** @description Milliseconds (1000 to 300000) the judge waits for the agent's trace before a verdict, for every scenario in the run. Used only when the id names a test suite. */
15907
+ traceWaitTimeoutMs?: number | null;
15669
15908
  /** @description Constant values applied to every scenario in the run, e.g. a fixture id or a tenant. A value supplied here overrides the scenario's own default for that name. */
15670
15909
  parameters?: {
15671
15910
  [key: string]: string | number | boolean;
@@ -15966,7 +16205,9 @@ interface operations {
15966
16205
  sortDirection?: string;
15967
16206
  updatedAt?: number;
15968
16207
  scrollId?: string | null;
16208
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15969
16209
  startDate: number | string;
16210
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15970
16211
  endDate: number | string;
15971
16212
  /** @description A trace filter string in the same language the Trace Explorer's search bar speaks — `status:error AND model:gpt-*`, `trace.attribute.langwatch.user_id:alice`, a quoted phrase for free text. Combined with `filters`/`query`/`traceIds` rather than replacing them, so every condition sent must hold. A malformed filter, or one naming a field the language does not have, is a 422 that names the `filter` field. */
15972
16213
  filter?: string;
@@ -15975,7 +16216,7 @@ interface operations {
15975
16216
  * @enum {string}
15976
16217
  */
15977
16218
  format?: "digest" | "json";
15978
- /** @description When true, fetches full span data for each trace. Useful for bulk export. Default false. */
16219
+ /** @description When true, fetches full span data for each trace. Useful for bulk export. Default false. A page with spans holds at most 100 traces, and that is its default; a larger `pageSize` is refused with 422 `trace_page_size_too_large`. When a response carries a `scrollId`, send it to fetch the next page. */
15979
16220
  includeSpans?: boolean;
15980
16221
  llmMode?: boolean;
15981
16222
  /**
@@ -16081,7 +16322,9 @@ interface operations {
16081
16322
  prefix?: string;
16082
16323
  limit?: number;
16083
16324
  offset?: number;
16325
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
16084
16326
  startDate?: string;
16327
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
16085
16328
  endDate?: string;
16086
16329
  };
16087
16330
  header?: never;