langwatch 2.1.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-UHM5RXEW.mjs → chunk-5TNHAT3S.mjs} +101 -4
  8. package/dist/chunk-5TNHAT3S.mjs.map +1 -0
  9. package/dist/{chunk-VJK42Y3W.js → chunk-FQJHCT5Y.js} +111 -14
  10. package/dist/chunk-FQJHCT5Y.js.map +1 -0
  11. package/dist/{chunk-4HRQZXNE.js → chunk-HWKTHOMP.js} +58 -3
  12. package/dist/chunk-HWKTHOMP.js.map +1 -0
  13. package/dist/{chunk-XVXTLQGK.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 +1232 -458
  19. package/dist/{implementation-Atjtldz3.d.ts → implementation-BparHh-q.d.ts} +1 -1
  20. package/dist/{implementation-CNNrmXZu.d.mts → implementation-CrBgn1V6.d.mts} +1 -1
  21. package/dist/index.d.mts +112 -7
  22. package/dist/index.d.ts +112 -7
  23. package/dist/index.js +270 -46
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +240 -16
  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--djDPuMb.d.ts → types-BXcB5Uov.d.ts} +809 -23
  40. package/dist/{types-GklcWLfF.d.mts → types-D_MsVA5r.d.mts} +809 -23
  41. package/package.json +1 -1
  42. package/dist/chunk-4HRQZXNE.js.map +0 -1
  43. package/dist/chunk-UHM5RXEW.mjs.map +0 -1
  44. package/dist/chunk-VJK42Y3W.js.map +0 -1
  45. package/dist/chunk-XVXTLQGK.mjs.map +0 -1
  46. /package/dist/{chunk-XQ4CP2JK.mjs.map → chunk-MCWJ3AWF.mjs.map} +0 -0
@@ -32,7 +32,10 @@ interface paths {
32
32
  path?: never;
33
33
  cookie?: never;
34
34
  };
35
- /** Get an agent in the caller's project */
35
+ /**
36
+ * Get an agent in the caller's project
37
+ * @description Reads the latest version unless `label` or `version` is given. The id also takes a suffix: `agent_1:production`, `agent_1:3` or `agent_1:latest`.
38
+ */
36
39
  get: operations["getAgent"];
37
40
  /** Update an authored agent; PUT retains partial update semantics */
38
41
  put: operations["replaceAgent"];
@@ -45,6 +48,47 @@ interface paths {
45
48
  patch: operations["updateAgent"];
46
49
  trace?: never;
47
50
  };
51
+ "/api/v1/agents/{agentId}/versions": {
52
+ parameters: {
53
+ query?: never;
54
+ header?: never;
55
+ path?: never;
56
+ cookie?: never;
57
+ };
58
+ /**
59
+ * List an agent's versions
60
+ * @description Every version of the agent, newest first, with the labels on each.
61
+ */
62
+ get: operations["listAgentVersions"];
63
+ put?: never;
64
+ post?: never;
65
+ delete?: never;
66
+ options?: never;
67
+ head?: never;
68
+ patch?: never;
69
+ trace?: never;
70
+ };
71
+ "/api/v1/agents/{agentId}/labels/{label}": {
72
+ parameters: {
73
+ query?: never;
74
+ header?: never;
75
+ path?: never;
76
+ cookie?: never;
77
+ };
78
+ get?: never;
79
+ /**
80
+ * Point a deploy label at an agent version
81
+ * @description Points a deploy label, such as production, at one of the agent's versions.
82
+ */
83
+ put: operations["assignAgentLabel"];
84
+ post?: never;
85
+ /** Remove a deploy label from an agent */
86
+ delete: operations["removeAgentLabel"];
87
+ options?: never;
88
+ head?: never;
89
+ patch?: never;
90
+ trace?: never;
91
+ };
48
92
  "/api/v1/agents/{id}/call": {
49
93
  parameters: {
50
94
  query?: never;
@@ -539,7 +583,7 @@ interface paths {
539
583
  /** @description List all non-archived datasets for the project (paginated) */
540
584
  get: operations["getApiDataset"];
541
585
  put?: never;
542
- /** @description Create a new dataset */
586
+ /** @description Create a new dataset, optionally with its first rows in `entries`, written in the same call. */
543
587
  post: operations["postApiDataset"];
544
588
  delete?: never;
545
589
  options?: never;
@@ -581,7 +625,7 @@ interface paths {
581
625
  delete: operations["deleteApiDatasetBySlugOrId"];
582
626
  options?: never;
583
627
  head?: never;
584
- /** @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. */
585
629
  patch: operations["patchApiDatasetBySlugOrId"];
586
630
  trace?: never;
587
631
  };
@@ -612,7 +656,7 @@ interface paths {
612
656
  /** @description Get all evaluators for a project */
613
657
  get: operations["getApiEvaluators"];
614
658
  put?: never;
615
- /** @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"`) */
616
660
  post: operations["postApiEvaluators"];
617
661
  delete?: never;
618
662
  options?: never;
@@ -627,7 +671,7 @@ interface paths {
627
671
  path?: never;
628
672
  cookie?: never;
629
673
  };
630
- /** @description Get a specific evaluator by ID or slug */
674
+ /** @description Get a specific evaluator by ID or slug, at the latest version unless `label` or `version` is given. The address also takes a suffix: `toxicity:production`, `toxicity:2` or `toxicity:latest`. */
631
675
  get: operations["getApiEvaluatorsByIdOrSlug"];
632
676
  put?: never;
633
677
  post?: never;
@@ -655,6 +699,41 @@ interface paths {
655
699
  patch?: never;
656
700
  trace?: never;
657
701
  };
702
+ "/api/v1/evaluators/{evaluatorId}/versions": {
703
+ parameters: {
704
+ query?: never;
705
+ header?: never;
706
+ path?: never;
707
+ cookie?: never;
708
+ };
709
+ /** @description List an evaluator's versions, newest first, with the labels on each */
710
+ get: operations["getApiEvaluatorsVersions"];
711
+ put?: never;
712
+ post?: never;
713
+ delete?: never;
714
+ options?: never;
715
+ head?: never;
716
+ patch?: never;
717
+ trace?: never;
718
+ };
719
+ "/api/v1/evaluators/{evaluatorId}/labels/{label}": {
720
+ parameters: {
721
+ query?: never;
722
+ header?: never;
723
+ path?: never;
724
+ cookie?: never;
725
+ };
726
+ get?: never;
727
+ /** @description Point a deploy label, such as production, at one of the evaluator's versions */
728
+ put: operations["putApiEvaluatorsLabel"];
729
+ post?: never;
730
+ /** @description Remove a deploy label from an evaluator */
731
+ delete: operations["deleteApiEvaluatorsLabel"];
732
+ options?: never;
733
+ head?: never;
734
+ patch?: never;
735
+ trace?: never;
736
+ };
658
737
  "/api/v1/experiments/{slug}/run": {
659
738
  parameters: {
660
739
  query?: never;
@@ -666,7 +745,7 @@ interface paths {
666
745
  put?: never;
667
746
  /**
668
747
  * Run an experiment
669
- * @description Start a run of a saved experiment, addressed by slug. Returns a runId to poll straight away. Send `Accept: text/event-stream` instead to stream progress events until the run finishes.
748
+ * @description Start a run of a saved experiment, addressed by slug. Returns a runId to poll straight away. Send `Accept: text/event-stream` instead to stream progress events until the run finishes. The run reads a version of its saved dataset: `dataset_version` when given, else the version the experiment pins, else the current content saved as a new version.
670
749
  */
671
750
  post: operations["postApiExperimentsBySlugRun"];
672
751
  delete?: never;
@@ -1286,6 +1365,46 @@ interface paths {
1286
1365
  patch?: never;
1287
1366
  trace?: never;
1288
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
+ };
1289
1408
  "/api/v1/test-suites/{id}": {
1290
1409
  parameters: {
1291
1410
  query?: never;
@@ -1624,6 +1743,23 @@ interface operations {
1624
1743
  selectable: boolean;
1625
1744
  /** @description Why the agent cannot be run by this credential. Null when it can. */
1626
1745
  notSelectableReason: "owned_by_another_person" | null;
1746
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. Null for connected agents, which are versioned by their code. */
1747
+ version: number | null;
1748
+ /** @description The deploy labels the agent carries, such as production, and the version each points at. */
1749
+ labels: {
1750
+ label: string;
1751
+ version: number;
1752
+ }[];
1753
+ /** @description The user who created the agent. Null when an API key created it, or it predates creators being recorded. */
1754
+ createdBy: {
1755
+ id: string;
1756
+ name: string | null;
1757
+ } | null;
1758
+ /** @description The user who changed the agent last. Null when an API key changed it. */
1759
+ updatedBy: {
1760
+ id: string;
1761
+ name: string | null;
1762
+ } | null;
1627
1763
  /** Format: date-time */
1628
1764
  createdAt: string;
1629
1765
  /** Format: date-time */
@@ -1653,6 +1789,8 @@ interface operations {
1653
1789
  content: {
1654
1790
  "application/json": {
1655
1791
  name: string;
1792
+ /** @description What changed, kept on the version this write creates. */
1793
+ commitMessage?: string;
1656
1794
  workflowId?: string;
1657
1795
  copiedFromAgentId?: string;
1658
1796
  /** @constant */
@@ -1741,6 +1879,8 @@ interface operations {
1741
1879
  };
1742
1880
  } | {
1743
1881
  name: string;
1882
+ /** @description What changed, kept on the version this write creates. */
1883
+ commitMessage?: string;
1744
1884
  workflowId?: string;
1745
1885
  copiedFromAgentId?: string;
1746
1886
  /** @constant */
@@ -1819,6 +1959,8 @@ interface operations {
1819
1959
  };
1820
1960
  } | {
1821
1961
  name: string;
1962
+ /** @description What changed, kept on the version this write creates. */
1963
+ commitMessage?: string;
1822
1964
  workflowId?: string;
1823
1965
  copiedFromAgentId?: string;
1824
1966
  /** @constant */
@@ -1922,6 +2064,8 @@ interface operations {
1922
2064
  };
1923
2065
  } | {
1924
2066
  name: string;
2067
+ /** @description What changed, kept on the version this write creates. */
2068
+ commitMessage?: string;
1925
2069
  workflowId?: string;
1926
2070
  copiedFromAgentId?: string;
1927
2071
  /** @constant */
@@ -2025,6 +2169,8 @@ interface operations {
2025
2169
  };
2026
2170
  } | {
2027
2171
  name: string;
2172
+ /** @description What changed, kept on the version this write creates. */
2173
+ commitMessage?: string;
2028
2174
  workflowId?: string;
2029
2175
  copiedFromAgentId?: string;
2030
2176
  /** @constant */
@@ -2034,6 +2180,8 @@ interface operations {
2034
2180
  };
2035
2181
  } | {
2036
2182
  name: string;
2183
+ /** @description What changed, kept on the version this write creates. */
2184
+ commitMessage?: string;
2037
2185
  workflowId?: string;
2038
2186
  copiedFromAgentId?: string;
2039
2187
  /** @constant */
@@ -2123,6 +2271,23 @@ interface operations {
2123
2271
  selectable: boolean;
2124
2272
  /** @description Why the agent cannot be run by this credential. Null when it can. */
2125
2273
  notSelectableReason: "owned_by_another_person" | null;
2274
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. Null for connected agents, which are versioned by their code. */
2275
+ version: number | null;
2276
+ /** @description The deploy labels the agent carries, such as production, and the version each points at. */
2277
+ labels: {
2278
+ label: string;
2279
+ version: number;
2280
+ }[];
2281
+ /** @description The user who created the agent. Null when an API key created it, or it predates creators being recorded. */
2282
+ createdBy: {
2283
+ id: string;
2284
+ name: string | null;
2285
+ } | null;
2286
+ /** @description The user who changed the agent last. Null when an API key changed it. */
2287
+ updatedBy: {
2288
+ id: string;
2289
+ name: string | null;
2290
+ } | null;
2126
2291
  /** Format: date-time */
2127
2292
  createdAt: string;
2128
2293
  /** Format: date-time */
@@ -2136,7 +2301,12 @@ interface operations {
2136
2301
  };
2137
2302
  getAgent: {
2138
2303
  parameters: {
2139
- query?: never;
2304
+ query?: {
2305
+ /** @description A deploy label, for example production. Omit both to read the latest version. */
2306
+ label?: string;
2307
+ /** @description A version number. */
2308
+ version?: number;
2309
+ };
2140
2310
  header?: never;
2141
2311
  path: {
2142
2312
  /** @description The agent id. */
@@ -2213,6 +2383,23 @@ interface operations {
2213
2383
  selectable: boolean;
2214
2384
  /** @description Why the agent cannot be run by this credential. Null when it can. */
2215
2385
  notSelectableReason: "owned_by_another_person" | null;
2386
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. Null for connected agents, which are versioned by their code. */
2387
+ version: number | null;
2388
+ /** @description The deploy labels the agent carries, such as production, and the version each points at. */
2389
+ labels: {
2390
+ label: string;
2391
+ version: number;
2392
+ }[];
2393
+ /** @description The user who created the agent. Null when an API key created it, or it predates creators being recorded. */
2394
+ createdBy: {
2395
+ id: string;
2396
+ name: string | null;
2397
+ } | null;
2398
+ /** @description The user who changed the agent last. Null when an API key changed it. */
2399
+ updatedBy: {
2400
+ id: string;
2401
+ name: string | null;
2402
+ } | null;
2216
2403
  /** Format: date-time */
2217
2404
  createdAt: string;
2218
2405
  /** Format: date-time */
@@ -2244,6 +2431,8 @@ interface operations {
2244
2431
  [key: string]: unknown;
2245
2432
  };
2246
2433
  workflowId?: string | null;
2434
+ /** @description What changed, kept on the version this write creates. */
2435
+ commitMessage?: string;
2247
2436
  };
2248
2437
  };
2249
2438
  };
@@ -2315,6 +2504,23 @@ interface operations {
2315
2504
  selectable: boolean;
2316
2505
  /** @description Why the agent cannot be run by this credential. Null when it can. */
2317
2506
  notSelectableReason: "owned_by_another_person" | null;
2507
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. Null for connected agents, which are versioned by their code. */
2508
+ version: number | null;
2509
+ /** @description The deploy labels the agent carries, such as production, and the version each points at. */
2510
+ labels: {
2511
+ label: string;
2512
+ version: number;
2513
+ }[];
2514
+ /** @description The user who created the agent. Null when an API key created it, or it predates creators being recorded. */
2515
+ createdBy: {
2516
+ id: string;
2517
+ name: string | null;
2518
+ } | null;
2519
+ /** @description The user who changed the agent last. Null when an API key changed it. */
2520
+ updatedBy: {
2521
+ id: string;
2522
+ name: string | null;
2523
+ } | null;
2318
2524
  /** Format: date-time */
2319
2525
  createdAt: string;
2320
2526
  /** Format: date-time */
@@ -2375,6 +2581,8 @@ interface operations {
2375
2581
  [key: string]: unknown;
2376
2582
  };
2377
2583
  workflowId?: string | null;
2584
+ /** @description What changed, kept on the version this write creates. */
2585
+ commitMessage?: string;
2378
2586
  };
2379
2587
  };
2380
2588
  };
@@ -2446,6 +2654,23 @@ interface operations {
2446
2654
  selectable: boolean;
2447
2655
  /** @description Why the agent cannot be run by this credential. Null when it can. */
2448
2656
  notSelectableReason: "owned_by_another_person" | null;
2657
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. Null for connected agents, which are versioned by their code. */
2658
+ version: number | null;
2659
+ /** @description The deploy labels the agent carries, such as production, and the version each points at. */
2660
+ labels: {
2661
+ label: string;
2662
+ version: number;
2663
+ }[];
2664
+ /** @description The user who created the agent. Null when an API key created it, or it predates creators being recorded. */
2665
+ createdBy: {
2666
+ id: string;
2667
+ name: string | null;
2668
+ } | null;
2669
+ /** @description The user who changed the agent last. Null when an API key changed it. */
2670
+ updatedBy: {
2671
+ id: string;
2672
+ name: string | null;
2673
+ } | null;
2449
2674
  /** Format: date-time */
2450
2675
  createdAt: string;
2451
2676
  /** Format: date-time */
@@ -2457,6 +2682,123 @@ interface operations {
2457
2682
  };
2458
2683
  };
2459
2684
  };
2685
+ listAgentVersions: {
2686
+ parameters: {
2687
+ query?: never;
2688
+ header?: never;
2689
+ path: {
2690
+ /** @description The agent id. */
2691
+ agentId: string;
2692
+ };
2693
+ cookie?: never;
2694
+ };
2695
+ requestBody?: never;
2696
+ responses: {
2697
+ /** @description Success */
2698
+ 200: {
2699
+ headers: {
2700
+ [name: string]: unknown;
2701
+ };
2702
+ content: {
2703
+ "application/json": {
2704
+ data: {
2705
+ id: string;
2706
+ agentId: string;
2707
+ projectId: string;
2708
+ version: number;
2709
+ name: string;
2710
+ /** @enum {string} */
2711
+ type: "signature" | "code" | "workflow" | "http" | "connected" | "voice";
2712
+ config: {
2713
+ [key: string]: unknown;
2714
+ };
2715
+ workflowId: string | null;
2716
+ commitMessage: string | null;
2717
+ authorId: string | null;
2718
+ authorKind: ("user" | "api_key" | "system") | null;
2719
+ author: {
2720
+ id: string;
2721
+ name: string | null;
2722
+ email: string | null;
2723
+ } | null;
2724
+ /** Format: date-time */
2725
+ createdAt: string;
2726
+ labels: string[];
2727
+ }[];
2728
+ labels: {
2729
+ label: string;
2730
+ version: number;
2731
+ }[];
2732
+ };
2733
+ };
2734
+ };
2735
+ };
2736
+ };
2737
+ assignAgentLabel: {
2738
+ parameters: {
2739
+ query?: never;
2740
+ header?: never;
2741
+ path: {
2742
+ /** @description The agent id. */
2743
+ agentId: string;
2744
+ /** @description The deploy label, for example production. */
2745
+ label: string;
2746
+ };
2747
+ cookie?: never;
2748
+ };
2749
+ requestBody: {
2750
+ content: {
2751
+ "application/json": {
2752
+ /** @description The version number the label points at. */
2753
+ version: number;
2754
+ };
2755
+ };
2756
+ };
2757
+ responses: {
2758
+ /** @description Success */
2759
+ 200: {
2760
+ headers: {
2761
+ [name: string]: unknown;
2762
+ };
2763
+ content: {
2764
+ "application/json": {
2765
+ label: string;
2766
+ version: number;
2767
+ versionId: string;
2768
+ };
2769
+ };
2770
+ };
2771
+ };
2772
+ };
2773
+ removeAgentLabel: {
2774
+ parameters: {
2775
+ query?: never;
2776
+ header?: never;
2777
+ path: {
2778
+ /** @description The agent id. */
2779
+ agentId: string;
2780
+ /** @description The deploy label, for example production. */
2781
+ label: string;
2782
+ };
2783
+ cookie?: never;
2784
+ };
2785
+ requestBody?: never;
2786
+ responses: {
2787
+ /** @description Success */
2788
+ 200: {
2789
+ headers: {
2790
+ [name: string]: unknown;
2791
+ };
2792
+ content: {
2793
+ "application/json": {
2794
+ label: string;
2795
+ /** @constant */
2796
+ removed: true;
2797
+ };
2798
+ };
2799
+ };
2800
+ };
2801
+ };
2460
2802
  callConnectedAgent: {
2461
2803
  parameters: {
2462
2804
  query?: never;
@@ -2556,7 +2898,9 @@ interface operations {
2556
2898
  requestBody: {
2557
2899
  content: {
2558
2900
  "application/json": {
2901
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
2559
2902
  startDate: number | string;
2903
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
2560
2904
  endDate: number | string;
2561
2905
  query?: string;
2562
2906
  /** @default {} */
@@ -3362,7 +3706,7 @@ interface operations {
3362
3706
  type: string;
3363
3707
  description: string;
3364
3708
  unit: string | null;
3365
- 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"))[];
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"))[];
3366
3710
  available: boolean;
3367
3711
  }[];
3368
3712
  exampleSql: string;
@@ -3377,7 +3721,7 @@ interface operations {
3377
3721
  /** @enum {string} */
3378
3722
  kind: "extraction" | "eval";
3379
3723
  cap: number;
3380
- 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"))[];
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"))[];
3381
3725
  available: boolean;
3382
3726
  exampleSql: string;
3383
3727
  }[];
@@ -3540,7 +3884,7 @@ interface operations {
3540
3884
  type: string;
3541
3885
  description: string;
3542
3886
  unit: string | null;
3543
- 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"))[];
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"))[];
3544
3888
  available: boolean;
3545
3889
  }[];
3546
3890
  exampleSql: string;
@@ -3555,7 +3899,7 @@ interface operations {
3555
3899
  /** @enum {string} */
3556
3900
  kind: "extraction" | "eval";
3557
3901
  cap: number;
3558
- 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"))[];
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"))[];
3559
3903
  available: boolean;
3560
3904
  exampleSql: string;
3561
3905
  }[];
@@ -3613,7 +3957,7 @@ interface operations {
3613
3957
  description: string;
3614
3958
  }[];
3615
3959
  requires: {
3616
- 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"))[];
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"))[];
3617
3961
  readonly functions: string[];
3618
3962
  };
3619
3963
  available: boolean;
@@ -8616,6 +8960,13 @@ interface operations {
8616
8960
  /** @enum {string} */
8617
8961
  type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image" | "file";
8618
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
+ })[];
8619
8970
  };
8620
8971
  };
8621
8972
  };
@@ -8869,6 +9220,11 @@ interface operations {
8869
9220
  /** @enum {string} */
8870
9221
  type: "string" | "boolean" | "number" | "date" | "list" | "json" | "spans" | "rag_contexts" | "chat_messages" | "annotations" | "evaluations" | "image" | "file";
8871
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
+ }[];
8872
9228
  };
8873
9229
  };
8874
9230
  };
@@ -9002,11 +9358,28 @@ interface operations {
9002
9358
  }[];
9003
9359
  workflowName?: string;
9004
9360
  workflowIcon?: string;
9005
- /** Format: uri */
9006
- platformUrl: string;
9007
- }[];
9008
- };
9009
- };
9361
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. */
9362
+ version: number | null;
9363
+ /** @description The deploy labels the evaluator carries, such as production, and the version each points at. */
9364
+ labels: {
9365
+ label: string;
9366
+ version: number;
9367
+ }[];
9368
+ /** @description The user who created the evaluator. Null when an API key created it, or it predates creators being recorded. */
9369
+ createdBy: {
9370
+ id: string;
9371
+ name: string | null;
9372
+ } | null;
9373
+ /** @description The user who changed the evaluator last. Null when an API key changed it. */
9374
+ updatedBy: {
9375
+ id: string;
9376
+ name: string | null;
9377
+ } | null;
9378
+ /** Format: uri */
9379
+ platformUrl: string;
9380
+ }[];
9381
+ };
9382
+ };
9010
9383
  };
9011
9384
  };
9012
9385
  postApiEvaluators: {
@@ -9020,9 +9393,18 @@ interface operations {
9020
9393
  content: {
9021
9394
  "application/json": {
9022
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: {}. */
9023
9403
  config: {
9024
9404
  [key: string]: unknown;
9025
9405
  };
9406
+ /** @description The workflow a "workflow" evaluator wraps. Only for type "workflow". */
9407
+ workflowId?: string;
9026
9408
  };
9027
9409
  };
9028
9410
  };
@@ -9060,6 +9442,23 @@ interface operations {
9060
9442
  }[];
9061
9443
  workflowName?: string;
9062
9444
  workflowIcon?: string;
9445
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. */
9446
+ version: number | null;
9447
+ /** @description The deploy labels the evaluator carries, such as production, and the version each points at. */
9448
+ labels: {
9449
+ label: string;
9450
+ version: number;
9451
+ }[];
9452
+ /** @description The user who created the evaluator. Null when an API key created it, or it predates creators being recorded. */
9453
+ createdBy: {
9454
+ id: string;
9455
+ name: string | null;
9456
+ } | null;
9457
+ /** @description The user who changed the evaluator last. Null when an API key changed it. */
9458
+ updatedBy: {
9459
+ id: string;
9460
+ name: string | null;
9461
+ } | null;
9063
9462
  /** Format: uri */
9064
9463
  platformUrl: string;
9065
9464
  };
@@ -9069,7 +9468,12 @@ interface operations {
9069
9468
  };
9070
9469
  getApiEvaluatorsByIdOrSlug: {
9071
9470
  parameters: {
9072
- query?: never;
9471
+ query?: {
9472
+ /** @description A deploy label, for example production. Omit both to read the latest version. */
9473
+ label?: string;
9474
+ /** @description A version number. */
9475
+ version?: number;
9476
+ };
9073
9477
  header?: never;
9074
9478
  path: {
9075
9479
  /** @description The evaluator id or its project-unique slug. */
@@ -9112,6 +9516,23 @@ interface operations {
9112
9516
  }[];
9113
9517
  workflowName?: string;
9114
9518
  workflowIcon?: string;
9519
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. */
9520
+ version: number | null;
9521
+ /** @description The deploy labels the evaluator carries, such as production, and the version each points at. */
9522
+ labels: {
9523
+ label: string;
9524
+ version: number;
9525
+ }[];
9526
+ /** @description The user who created the evaluator. Null when an API key created it, or it predates creators being recorded. */
9527
+ createdBy: {
9528
+ id: string;
9529
+ name: string | null;
9530
+ } | null;
9531
+ /** @description The user who changed the evaluator last. Null when an API key changed it. */
9532
+ updatedBy: {
9533
+ id: string;
9534
+ name: string | null;
9535
+ } | null;
9115
9536
  /** Format: uri */
9116
9537
  platformUrl: string;
9117
9538
  };
@@ -9148,6 +9569,8 @@ interface operations {
9148
9569
  config?: {
9149
9570
  [key: string]: unknown;
9150
9571
  };
9572
+ /** @description A note kept on the version this update appends. */
9573
+ commitMessage?: string;
9151
9574
  };
9152
9575
  };
9153
9576
  };
@@ -9185,6 +9608,23 @@ interface operations {
9185
9608
  }[];
9186
9609
  workflowName?: string;
9187
9610
  workflowIcon?: string;
9611
+ /** @description The version this response shows: the latest, unless a label or a version was asked for. */
9612
+ version: number | null;
9613
+ /** @description The deploy labels the evaluator carries, such as production, and the version each points at. */
9614
+ labels: {
9615
+ label: string;
9616
+ version: number;
9617
+ }[];
9618
+ /** @description The user who created the evaluator. Null when an API key created it, or it predates creators being recorded. */
9619
+ createdBy: {
9620
+ id: string;
9621
+ name: string | null;
9622
+ } | null;
9623
+ /** @description The user who changed the evaluator last. Null when an API key changed it. */
9624
+ updatedBy: {
9625
+ id: string;
9626
+ name: string | null;
9627
+ } | null;
9188
9628
  /** Format: uri */
9189
9629
  platformUrl: string;
9190
9630
  };
@@ -9253,6 +9693,171 @@ interface operations {
9253
9693
  };
9254
9694
  };
9255
9695
  };
9696
+ getApiEvaluatorsVersions: {
9697
+ parameters: {
9698
+ query?: never;
9699
+ header?: never;
9700
+ path: {
9701
+ /** @description The evaluator id. */
9702
+ evaluatorId: string;
9703
+ };
9704
+ cookie?: never;
9705
+ };
9706
+ requestBody?: never;
9707
+ responses: {
9708
+ /** @description Success */
9709
+ 200: {
9710
+ headers: {
9711
+ [name: string]: unknown;
9712
+ };
9713
+ content: {
9714
+ "application/json": {
9715
+ data: {
9716
+ id: string;
9717
+ evaluatorId: string;
9718
+ projectId: string;
9719
+ version: number;
9720
+ name: string;
9721
+ /** @enum {string} */
9722
+ type: "evaluator" | "code" | "workflow";
9723
+ config: {
9724
+ [key: string]: unknown;
9725
+ };
9726
+ workflowId: string | null;
9727
+ commitMessage: string | null;
9728
+ authorId: string | null;
9729
+ authorKind: ("user" | "api_key" | "system") | null;
9730
+ author: {
9731
+ id: string;
9732
+ name: string | null;
9733
+ email: string | null;
9734
+ } | null;
9735
+ /** Format: date-time */
9736
+ createdAt: string;
9737
+ labels: string[];
9738
+ }[];
9739
+ labels: {
9740
+ label: string;
9741
+ version: number;
9742
+ }[];
9743
+ };
9744
+ };
9745
+ };
9746
+ /** @description Not Found */
9747
+ 404: {
9748
+ headers: {
9749
+ [name: string]: unknown;
9750
+ };
9751
+ content: {
9752
+ "application/json": {
9753
+ error: string;
9754
+ message?: string;
9755
+ };
9756
+ };
9757
+ };
9758
+ };
9759
+ };
9760
+ putApiEvaluatorsLabel: {
9761
+ parameters: {
9762
+ query?: never;
9763
+ header?: never;
9764
+ path: {
9765
+ /** @description The evaluator id. */
9766
+ evaluatorId: string;
9767
+ /** @description The deploy label, for example production. */
9768
+ label: string;
9769
+ };
9770
+ cookie?: never;
9771
+ };
9772
+ requestBody: {
9773
+ content: {
9774
+ "application/json": {
9775
+ /** @description The version number the label points at. */
9776
+ version: number;
9777
+ };
9778
+ };
9779
+ };
9780
+ responses: {
9781
+ /** @description Success */
9782
+ 200: {
9783
+ headers: {
9784
+ [name: string]: unknown;
9785
+ };
9786
+ content: {
9787
+ "application/json": {
9788
+ label: string;
9789
+ version: number;
9790
+ versionId: string;
9791
+ };
9792
+ };
9793
+ };
9794
+ /** @description Bad Request */
9795
+ 400: {
9796
+ headers: {
9797
+ [name: string]: unknown;
9798
+ };
9799
+ content: {
9800
+ "application/json": {
9801
+ error: string;
9802
+ message?: string;
9803
+ };
9804
+ };
9805
+ };
9806
+ /** @description Not Found */
9807
+ 404: {
9808
+ headers: {
9809
+ [name: string]: unknown;
9810
+ };
9811
+ content: {
9812
+ "application/json": {
9813
+ error: string;
9814
+ message?: string;
9815
+ };
9816
+ };
9817
+ };
9818
+ };
9819
+ };
9820
+ deleteApiEvaluatorsLabel: {
9821
+ parameters: {
9822
+ query?: never;
9823
+ header?: never;
9824
+ path: {
9825
+ /** @description The evaluator id. */
9826
+ evaluatorId: string;
9827
+ /** @description The deploy label, for example production. */
9828
+ label: string;
9829
+ };
9830
+ cookie?: never;
9831
+ };
9832
+ requestBody?: never;
9833
+ responses: {
9834
+ /** @description Success */
9835
+ 200: {
9836
+ headers: {
9837
+ [name: string]: unknown;
9838
+ };
9839
+ content: {
9840
+ "application/json": {
9841
+ label: string;
9842
+ /** @constant */
9843
+ removed: true;
9844
+ };
9845
+ };
9846
+ };
9847
+ /** @description Not Found */
9848
+ 404: {
9849
+ headers: {
9850
+ [name: string]: unknown;
9851
+ };
9852
+ content: {
9853
+ "application/json": {
9854
+ error: string;
9855
+ message?: string;
9856
+ };
9857
+ };
9858
+ };
9859
+ };
9860
+ };
9256
9861
  postApiExperimentsBySlugRun: {
9257
9862
  parameters: {
9258
9863
  query?: never;
@@ -9270,11 +9875,13 @@ interface operations {
9270
9875
  [key: string]: unknown;
9271
9876
  }[];
9272
9877
  dataset_id?: string;
9878
+ dataset_version?: number;
9273
9879
  parameters?: {
9274
9880
  [key: string]: string | number | boolean;
9275
9881
  };
9276
9882
  row_indices?: number[];
9277
9883
  concurrency?: number;
9884
+ repeat?: number;
9278
9885
  };
9279
9886
  };
9280
9887
  };
@@ -9292,13 +9899,15 @@ interface operations {
9292
9899
  status: "running";
9293
9900
  /** @description Number of cells this run will execute */
9294
9901
  total: number;
9902
+ /** @description Cells this run executes at once: the request's `concurrency`, else the server default */
9903
+ concurrency?: number;
9295
9904
  /** @description Link to the run in the LangWatch app */
9296
9905
  runUrl?: string;
9297
9906
  };
9298
9907
  "text/event-stream": string;
9299
9908
  };
9300
9909
  };
9301
- /** @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) */
9302
9911
  400: {
9303
9912
  headers: {
9304
9913
  [name: string]: unknown;
@@ -9312,7 +9921,7 @@ interface operations {
9312
9921
  };
9313
9922
  content?: never;
9314
9923
  };
9315
- /** @description No such experiment or run in this project */
9924
+ /** @description No such experiment in this project, or its dataset has no version `dataset_version` names (`dataset_version_not_found`) */
9316
9925
  404: {
9317
9926
  headers: {
9318
9927
  [name: string]: unknown;
@@ -9346,6 +9955,8 @@ interface operations {
9346
9955
  progress: number;
9347
9956
  /** @description Cells in the run */
9348
9957
  total: number;
9958
+ /** @description Cells the run executes at once, as it was fixed when the run started */
9959
+ concurrency?: number;
9349
9960
  /** @description Unix milliseconds */
9350
9961
  startedAt?: number;
9351
9962
  /** @description Unix milliseconds; set once the run is no longer running */
@@ -10927,7 +11538,6 @@ interface operations {
10927
11538
  /** @enum {string} */
10928
11539
  schemaVersion?: "1.0";
10929
11540
  tags?: string[];
10930
- /** @default {} */
10931
11541
  parameters?: {
10932
11542
  [key: string]: components["schemas"]["JsonValue"];
10933
11543
  };
@@ -11907,7 +12517,6 @@ interface operations {
11907
12517
  /** @enum {string} */
11908
12518
  schemaVersion?: "1.0";
11909
12519
  tags?: string[];
11910
- /** @default {} */
11911
12520
  parameters?: {
11912
12521
  [key: string]: components["schemas"]["JsonValue"];
11913
12522
  };
@@ -12571,6 +13180,10 @@ interface operations {
12571
13180
  simulatorModel?: string | null;
12572
13181
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
12573
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;
12574
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. */
12575
13188
  maxTurns?: number | null;
12576
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. */
@@ -12619,6 +13232,10 @@ interface operations {
12619
13232
  simulatorModel?: string | null;
12620
13233
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12621
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;
12622
13239
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12623
13240
  maxTurns?: number | null;
12624
13241
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -12629,6 +13246,25 @@ interface operations {
12629
13246
  fields?: {
12630
13247
  [key: string]: string | number | boolean;
12631
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;
12632
13268
  };
12633
13269
  };
12634
13270
  };
@@ -12659,6 +13295,10 @@ interface operations {
12659
13295
  simulatorModel?: string | null;
12660
13296
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
12661
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;
12662
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. */
12663
13303
  maxTurns?: number | null;
12664
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. */
@@ -12713,6 +13353,10 @@ interface operations {
12713
13353
  simulatorModel?: string | null;
12714
13354
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
12715
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;
12716
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. */
12717
13361
  maxTurns?: number | null;
12718
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. */
@@ -12772,6 +13416,10 @@ interface operations {
12772
13416
  simulatorModel?: string | null;
12773
13417
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12774
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;
12775
13423
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12776
13424
  maxTurns?: number | null;
12777
13425
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -12812,6 +13460,10 @@ interface operations {
12812
13460
  simulatorModel?: string | null;
12813
13461
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
12814
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;
12815
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. */
12816
13468
  maxTurns?: number | null;
12817
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. */
@@ -12907,6 +13559,10 @@ interface operations {
12907
13559
  simulatorModel?: string | null;
12908
13560
  /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12909
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;
12910
13566
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12911
13567
  maxTurns?: number | null;
12912
13568
  /** @description Minimum conversation turns before the judge may end the run. Null uses the default. */
@@ -12947,6 +13603,10 @@ interface operations {
12947
13603
  simulatorModel?: string | null;
12948
13604
  /** @description The model that judges the run, or null for the project default. Absent on servers that predate model overrides on this family. */
12949
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;
12950
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. */
12951
13611
  maxTurns?: number | null;
12952
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. */
@@ -13452,6 +14112,10 @@ interface operations {
13452
14112
  simulatorModel: string | null;
13453
14113
  /** @description The model that judges the run, or null for the scenario or project default. */
13454
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;
13455
14119
  /** @description The labels the plan carries. */
13456
14120
  labels: string[];
13457
14121
  /** @description The plan's own evaluators. Absent on servers that predate evaluators on this family. */
@@ -13551,6 +14215,10 @@ interface operations {
13551
14215
  simulatorModel?: string | null;
13552
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. */
13553
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;
13554
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. */
13555
14223
  scenarioIds?: string[];
13556
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. */
@@ -13729,6 +14397,10 @@ interface operations {
13729
14397
  simulatorModel: string | null;
13730
14398
  /** @description The model that judges the run, or null for the scenario or project default. */
13731
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;
13732
14404
  /** @description The labels the plan carries. */
13733
14405
  labels: string[];
13734
14406
  /** @description The plan's own evaluators. Absent on servers that predate evaluators on this family. */
@@ -14124,6 +14796,104 @@ interface operations {
14124
14796
  };
14125
14797
  };
14126
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
+ };
14127
14897
  getTestSuite: {
14128
14898
  parameters: {
14129
14899
  query?: never;
@@ -14216,6 +14986,7 @@ interface operations {
14216
14986
  "application/json": {
14217
14987
  error: string;
14218
14988
  message?: string;
14989
+ code: string;
14219
14990
  };
14220
14991
  };
14221
14992
  };
@@ -14259,6 +15030,7 @@ interface operations {
14259
15030
  "application/json": {
14260
15031
  error: string;
14261
15032
  message?: string;
15033
+ code: string;
14262
15034
  };
14263
15035
  };
14264
15036
  };
@@ -14389,6 +15161,7 @@ interface operations {
14389
15161
  "application/json": {
14390
15162
  error: string;
14391
15163
  message?: string;
15164
+ code: string;
14392
15165
  };
14393
15166
  };
14394
15167
  };
@@ -14437,6 +15210,10 @@ interface operations {
14437
15210
  simulatorModel?: string | null;
14438
15211
  /** @description The model that judges every scenario in this run. Leave it out for the scenario or project default. */
14439
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;
14440
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. */
14441
15218
  idempotencyKey?: string;
14442
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. */
@@ -14525,6 +15302,7 @@ interface operations {
14525
15302
  "application/json": {
14526
15303
  error: string;
14527
15304
  message?: string;
15305
+ code: string;
14528
15306
  };
14529
15307
  };
14530
15308
  };
@@ -15123,6 +15901,10 @@ interface operations {
15123
15901
  simulatorModel?: string | null;
15124
15902
  /** @description The model that judges every scenario in the run. Used only when the id names a test suite. */
15125
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;
15126
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. */
15127
15909
  parameters?: {
15128
15910
  [key: string]: string | number | boolean;
@@ -15423,7 +16205,9 @@ interface operations {
15423
16205
  sortDirection?: string;
15424
16206
  updatedAt?: number;
15425
16207
  scrollId?: string | null;
16208
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15426
16209
  startDate: number | string;
16210
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15427
16211
  endDate: number | string;
15428
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. */
15429
16213
  filter?: string;
@@ -15432,7 +16216,7 @@ interface operations {
15432
16216
  * @enum {string}
15433
16217
  */
15434
16218
  format?: "digest" | "json";
15435
- /** @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. */
15436
16220
  includeSpans?: boolean;
15437
16221
  llmMode?: boolean;
15438
16222
  /**
@@ -15538,7 +16322,9 @@ interface operations {
15538
16322
  prefix?: string;
15539
16323
  limit?: number;
15540
16324
  offset?: number;
16325
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15541
16326
  startDate?: string;
16327
+ /** @description Epoch milliseconds, or an ISO 8601 date string. */
15542
16328
  endDate?: string;
15543
16329
  };
15544
16330
  header?: never;