@roarkanalytics/sdk 2.21.0 → 2.21.1

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 (419) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +83 -45
  3. package/api-promise.d.mts +47 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +47 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +84 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +80 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/client.d.mts +201 -0
  12. package/client.d.mts.map +1 -0
  13. package/client.d.ts +201 -0
  14. package/client.d.ts.map +1 -0
  15. package/client.js +454 -0
  16. package/client.js.map +1 -0
  17. package/client.mjs +427 -0
  18. package/client.mjs.map +1 -0
  19. package/error.d.mts +47 -0
  20. package/error.d.mts.map +1 -0
  21. package/error.d.ts +1 -1
  22. package/error.d.ts.map +1 -1
  23. package/error.js +2 -2
  24. package/error.js.map +1 -1
  25. package/error.mjs +1 -1
  26. package/error.mjs.map +1 -1
  27. package/index.d.mts +4 -130
  28. package/index.d.mts.map +1 -0
  29. package/index.d.ts +4 -130
  30. package/index.d.ts.map +1 -1
  31. package/index.js +10 -128
  32. package/index.js.map +1 -1
  33. package/index.mjs +4 -102
  34. package/index.mjs.map +1 -1
  35. package/internal/builtin-types.d.mts +65 -0
  36. package/internal/builtin-types.d.mts.map +1 -0
  37. package/internal/builtin-types.d.ts +65 -0
  38. package/internal/builtin-types.d.ts.map +1 -0
  39. package/internal/builtin-types.js +4 -0
  40. package/internal/builtin-types.js.map +1 -0
  41. package/internal/builtin-types.mjs +3 -0
  42. package/internal/builtin-types.mjs.map +1 -0
  43. package/internal/detect-platform.d.mts +15 -0
  44. package/internal/detect-platform.d.mts.map +1 -0
  45. package/internal/detect-platform.d.ts +15 -0
  46. package/internal/detect-platform.d.ts.map +1 -0
  47. package/internal/detect-platform.js +162 -0
  48. package/internal/detect-platform.js.map +1 -0
  49. package/internal/detect-platform.mjs +157 -0
  50. package/internal/detect-platform.mjs.map +1 -0
  51. package/internal/errors.d.mts +3 -0
  52. package/internal/errors.d.mts.map +1 -0
  53. package/internal/errors.d.ts +3 -0
  54. package/internal/errors.d.ts.map +1 -0
  55. package/internal/errors.js +26 -0
  56. package/internal/errors.js.map +1 -0
  57. package/internal/errors.mjs +21 -0
  58. package/internal/errors.mjs.map +1 -0
  59. package/internal/headers.d.mts +21 -0
  60. package/internal/headers.d.mts.map +1 -0
  61. package/internal/headers.d.ts +21 -0
  62. package/internal/headers.d.ts.map +1 -0
  63. package/internal/headers.js +77 -0
  64. package/internal/headers.js.map +1 -0
  65. package/internal/headers.mjs +72 -0
  66. package/internal/headers.mjs.map +1 -0
  67. package/internal/parse.d.mts +10 -0
  68. package/internal/parse.d.mts.map +1 -0
  69. package/internal/parse.d.ts +10 -0
  70. package/internal/parse.d.ts.map +1 -0
  71. package/internal/parse.js +28 -0
  72. package/internal/parse.js.map +1 -0
  73. package/internal/parse.mjs +24 -0
  74. package/internal/parse.mjs.map +1 -0
  75. package/internal/polyfill/crypto.node.d.ts +10 -0
  76. package/internal/polyfill/crypto.node.js +11 -0
  77. package/internal/polyfill/crypto.node.mjs +2 -0
  78. package/internal/polyfill/file.node.d.ts +9 -0
  79. package/internal/polyfill/file.node.js +17 -0
  80. package/internal/polyfill/file.node.mjs +9 -0
  81. package/internal/qs/formats.d.mts +6 -0
  82. package/internal/qs/formats.d.mts.map +1 -0
  83. package/internal/qs/formats.d.ts.map +1 -1
  84. package/internal/qs/index.d.mts +10 -0
  85. package/internal/qs/index.d.mts.map +1 -0
  86. package/internal/qs/index.d.ts.map +1 -1
  87. package/internal/qs/stringify.d.mts +3 -0
  88. package/internal/qs/stringify.d.mts.map +1 -0
  89. package/internal/qs/stringify.d.ts.map +1 -1
  90. package/internal/qs/types.d.mts +57 -0
  91. package/internal/qs/types.d.mts.map +1 -0
  92. package/internal/qs/utils.d.mts +14 -0
  93. package/internal/qs/utils.d.mts.map +1 -0
  94. package/internal/qs/utils.d.ts.map +1 -1
  95. package/internal/request-options.d.mts +34 -0
  96. package/internal/request-options.d.mts.map +1 -0
  97. package/internal/request-options.d.ts +34 -0
  98. package/internal/request-options.d.ts.map +1 -0
  99. package/internal/request-options.js +39 -0
  100. package/internal/request-options.js.map +1 -0
  101. package/internal/request-options.mjs +34 -0
  102. package/internal/request-options.mjs.map +1 -0
  103. package/internal/shim-types.d.mts +28 -0
  104. package/internal/shim-types.d.ts +28 -0
  105. package/internal/shims.d.mts +61 -0
  106. package/internal/shims.d.mts.map +1 -0
  107. package/internal/shims.d.ts +61 -0
  108. package/internal/shims.d.ts.map +1 -0
  109. package/internal/shims.js +101 -0
  110. package/internal/shims.js.map +1 -0
  111. package/internal/shims.mjs +92 -0
  112. package/internal/shims.mjs.map +1 -0
  113. package/internal/types.d.mts +68 -0
  114. package/internal/types.d.mts.map +1 -0
  115. package/internal/types.d.ts +68 -0
  116. package/internal/types.d.ts.map +1 -0
  117. package/internal/types.js +4 -0
  118. package/internal/types.js.map +1 -0
  119. package/internal/types.mjs +3 -0
  120. package/internal/types.mjs.map +1 -0
  121. package/internal/uploads.d.mts +73 -0
  122. package/internal/uploads.d.mts.map +1 -0
  123. package/internal/uploads.d.ts +73 -0
  124. package/internal/uploads.d.ts.map +1 -0
  125. package/internal/uploads.js +208 -0
  126. package/internal/uploads.js.map +1 -0
  127. package/internal/uploads.mjs +200 -0
  128. package/internal/uploads.mjs.map +1 -0
  129. package/internal/utils/base64.d.mts +3 -0
  130. package/internal/utils/base64.d.mts.map +1 -0
  131. package/internal/utils/base64.d.ts +3 -0
  132. package/internal/utils/base64.d.ts.map +1 -0
  133. package/internal/utils/base64.js +33 -0
  134. package/internal/utils/base64.js.map +1 -0
  135. package/internal/utils/base64.mjs +28 -0
  136. package/internal/utils/base64.mjs.map +1 -0
  137. package/internal/utils/env.d.mts +9 -0
  138. package/internal/utils/env.d.mts.map +1 -0
  139. package/internal/utils/env.d.ts +9 -0
  140. package/internal/utils/env.d.ts.map +1 -0
  141. package/internal/utils/env.js +22 -0
  142. package/internal/utils/env.js.map +1 -0
  143. package/internal/utils/env.mjs +18 -0
  144. package/internal/utils/env.mjs.map +1 -0
  145. package/internal/utils/log.d.mts +4 -0
  146. package/internal/utils/log.d.mts.map +1 -0
  147. package/internal/utils/log.d.ts +4 -0
  148. package/internal/utils/log.d.ts.map +1 -0
  149. package/internal/utils/log.js +47 -0
  150. package/internal/utils/log.js.map +1 -0
  151. package/internal/utils/log.mjs +43 -0
  152. package/internal/utils/log.mjs.map +1 -0
  153. package/internal/utils/sleep.d.mts +2 -0
  154. package/internal/utils/sleep.d.mts.map +1 -0
  155. package/internal/utils/sleep.d.ts +2 -0
  156. package/internal/utils/sleep.d.ts.map +1 -0
  157. package/internal/utils/sleep.js +7 -0
  158. package/internal/utils/sleep.js.map +1 -0
  159. package/internal/utils/sleep.mjs +3 -0
  160. package/internal/utils/sleep.mjs.map +1 -0
  161. package/internal/utils/uuid.d.mts +5 -0
  162. package/internal/utils/uuid.d.mts.map +1 -0
  163. package/internal/utils/uuid.d.ts +5 -0
  164. package/internal/utils/uuid.d.ts.map +1 -0
  165. package/internal/utils/uuid.js +15 -0
  166. package/internal/utils/uuid.js.map +1 -0
  167. package/internal/utils/uuid.mjs +11 -0
  168. package/internal/utils/uuid.mjs.map +1 -0
  169. package/internal/utils/values.d.mts +15 -0
  170. package/internal/utils/values.d.mts.map +1 -0
  171. package/internal/utils/values.d.ts +15 -0
  172. package/internal/utils/values.d.ts.map +1 -0
  173. package/internal/utils/values.js +100 -0
  174. package/internal/utils/values.js.map +1 -0
  175. package/internal/utils/values.mjs +84 -0
  176. package/internal/utils/values.mjs.map +1 -0
  177. package/internal/utils.d.mts +7 -0
  178. package/internal/utils.d.mts.map +1 -0
  179. package/internal/utils.d.ts +7 -0
  180. package/internal/utils.d.ts.map +1 -0
  181. package/{_shims/auto/runtime-bun.js → internal/utils.js} +8 -5
  182. package/internal/utils.js.map +1 -0
  183. package/internal/utils.mjs +8 -0
  184. package/internal/utils.mjs.map +1 -0
  185. package/package.json +83 -66
  186. package/resource.d.mts +6 -0
  187. package/resource.d.mts.map +1 -0
  188. package/resource.d.ts +2 -2
  189. package/resource.d.ts.map +1 -1
  190. package/resource.js.map +1 -1
  191. package/resource.mjs.map +1 -1
  192. package/resources/call.d.mts +1197 -0
  193. package/resources/call.d.mts.map +1 -0
  194. package/resources/call.d.ts +13 -24
  195. package/resources/call.d.ts.map +1 -1
  196. package/resources/call.js +15 -15
  197. package/resources/call.js.map +1 -1
  198. package/resources/call.mjs +15 -15
  199. package/resources/call.mjs.map +1 -1
  200. package/resources/evaluation.d.mts +1295 -0
  201. package/resources/evaluation.d.mts.map +1 -0
  202. package/resources/evaluation.d.ts +13 -26
  203. package/resources/evaluation.d.ts.map +1 -1
  204. package/resources/evaluation.js +13 -13
  205. package/resources/evaluation.js.map +1 -1
  206. package/resources/evaluation.mjs +13 -13
  207. package/resources/evaluation.mjs.map +1 -1
  208. package/resources/health.d.mts +29 -0
  209. package/resources/health.d.mts.map +1 -0
  210. package/resources/health.d.ts +3 -2
  211. package/resources/health.d.ts.map +1 -1
  212. package/resources/health.js.map +1 -1
  213. package/resources/health.mjs.map +1 -1
  214. package/resources/index.d.mts +8 -0
  215. package/resources/index.d.mts.map +1 -0
  216. package/resources/index.d.ts.map +1 -1
  217. package/resources/integrations.d.mts +81 -0
  218. package/resources/integrations.d.mts.map +1 -0
  219. package/resources/integrations.d.ts +8 -40
  220. package/resources/integrations.d.ts.map +1 -1
  221. package/resources/integrations.js +0 -25
  222. package/resources/integrations.js.map +1 -1
  223. package/resources/integrations.mjs +0 -25
  224. package/resources/integrations.mjs.map +1 -1
  225. package/resources/metric.d.mts +75 -0
  226. package/resources/metric.d.mts.map +1 -0
  227. package/resources/metric.d.ts +3 -2
  228. package/resources/metric.d.ts.map +1 -1
  229. package/resources/metric.js.map +1 -1
  230. package/resources/metric.mjs.map +1 -1
  231. package/resources/persona.d.mts +491 -0
  232. package/resources/persona.d.mts.map +1 -0
  233. package/resources/persona.d.ts +13 -51
  234. package/resources/persona.d.ts.map +1 -1
  235. package/resources/persona.js +10 -26
  236. package/resources/persona.js.map +1 -1
  237. package/resources/persona.mjs +10 -26
  238. package/resources/persona.mjs.map +1 -1
  239. package/resources/simulation.d.mts +756 -0
  240. package/resources/simulation.d.mts.map +1 -0
  241. package/resources/simulation.d.ts +11 -58
  242. package/resources/simulation.d.ts.map +1 -1
  243. package/resources/simulation.js +13 -43
  244. package/resources/simulation.js.map +1 -1
  245. package/resources/simulation.mjs +13 -43
  246. package/resources/simulation.mjs.map +1 -1
  247. package/src/api-promise.ts +92 -0
  248. package/src/client.ts +751 -0
  249. package/src/error.ts +1 -1
  250. package/src/index.ts +4 -307
  251. package/src/internal/builtin-types.ts +79 -0
  252. package/src/internal/detect-platform.ts +196 -0
  253. package/src/internal/errors.ts +22 -0
  254. package/src/internal/headers.ts +96 -0
  255. package/src/internal/parse.ts +41 -0
  256. package/src/internal/polyfill/crypto.node.d.ts +10 -0
  257. package/src/internal/polyfill/crypto.node.js +11 -0
  258. package/src/internal/polyfill/crypto.node.mjs +2 -0
  259. package/src/internal/polyfill/file.node.d.ts +9 -0
  260. package/src/internal/polyfill/file.node.js +17 -0
  261. package/src/internal/polyfill/file.node.mjs +9 -0
  262. package/src/internal/request-options.ts +67 -0
  263. package/src/internal/shim-types.d.ts +28 -0
  264. package/src/internal/shims.ts +145 -0
  265. package/src/internal/types.ts +98 -0
  266. package/src/internal/uploads.ts +307 -0
  267. package/src/internal/utils/base64.ts +37 -0
  268. package/src/internal/utils/env.ts +18 -0
  269. package/src/internal/utils/log.ts +49 -0
  270. package/src/internal/utils/sleep.ts +3 -0
  271. package/src/internal/utils/uuid.ts +13 -0
  272. package/src/internal/utils/values.ts +94 -0
  273. package/src/internal/utils.ts +8 -0
  274. package/src/resource.ts +2 -2
  275. package/src/resources/call.ts +22 -42
  276. package/src/resources/evaluation.ts +25 -42
  277. package/src/resources/health.ts +3 -2
  278. package/src/resources/integrations.ts +10 -34
  279. package/src/resources/metric.ts +3 -2
  280. package/src/resources/persona.ts +22 -61
  281. package/src/resources/simulation.ts +22 -84
  282. package/src/tsconfig.json +2 -2
  283. package/src/uploads.ts +1 -255
  284. package/src/version.ts +1 -1
  285. package/uploads.d.mts +2 -0
  286. package/uploads.d.mts.map +1 -0
  287. package/uploads.d.ts +1 -74
  288. package/uploads.d.ts.map +1 -1
  289. package/uploads.js +3 -168
  290. package/uploads.js.map +1 -1
  291. package/uploads.mjs +1 -157
  292. package/uploads.mjs.map +1 -1
  293. package/version.d.mts +2 -0
  294. package/version.d.mts.map +1 -0
  295. package/version.d.ts +1 -1
  296. package/version.js +1 -1
  297. package/version.mjs +1 -1
  298. package/_shims/MultipartBody.d.ts +0 -9
  299. package/_shims/MultipartBody.d.ts.map +0 -1
  300. package/_shims/MultipartBody.js +0 -16
  301. package/_shims/MultipartBody.js.map +0 -1
  302. package/_shims/MultipartBody.mjs +0 -12
  303. package/_shims/MultipartBody.mjs.map +0 -1
  304. package/_shims/README.md +0 -46
  305. package/_shims/auto/runtime-bun.d.ts +0 -5
  306. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  307. package/_shims/auto/runtime-bun.js.map +0 -1
  308. package/_shims/auto/runtime-bun.mjs +0 -2
  309. package/_shims/auto/runtime-bun.mjs.map +0 -1
  310. package/_shims/auto/runtime-node.d.ts +0 -5
  311. package/_shims/auto/runtime-node.d.ts.map +0 -1
  312. package/_shims/auto/runtime-node.js +0 -21
  313. package/_shims/auto/runtime-node.js.map +0 -1
  314. package/_shims/auto/runtime-node.mjs +0 -2
  315. package/_shims/auto/runtime-node.mjs.map +0 -1
  316. package/_shims/auto/runtime.d.ts +0 -5
  317. package/_shims/auto/runtime.d.ts.map +0 -1
  318. package/_shims/auto/runtime.js +0 -21
  319. package/_shims/auto/runtime.js.map +0 -1
  320. package/_shims/auto/runtime.mjs +0 -2
  321. package/_shims/auto/runtime.mjs.map +0 -1
  322. package/_shims/auto/types-node.d.ts +0 -5
  323. package/_shims/auto/types-node.d.ts.map +0 -1
  324. package/_shims/auto/types-node.js +0 -21
  325. package/_shims/auto/types-node.js.map +0 -1
  326. package/_shims/auto/types-node.mjs +0 -2
  327. package/_shims/auto/types-node.mjs.map +0 -1
  328. package/_shims/auto/types.d.ts +0 -101
  329. package/_shims/auto/types.js +0 -3
  330. package/_shims/auto/types.mjs +0 -3
  331. package/_shims/bun-runtime.d.ts +0 -6
  332. package/_shims/bun-runtime.d.ts.map +0 -1
  333. package/_shims/bun-runtime.js +0 -14
  334. package/_shims/bun-runtime.js.map +0 -1
  335. package/_shims/bun-runtime.mjs +0 -10
  336. package/_shims/bun-runtime.mjs.map +0 -1
  337. package/_shims/index.d.ts +0 -83
  338. package/_shims/index.js +0 -17
  339. package/_shims/index.mjs +0 -11
  340. package/_shims/manual-types.d.ts +0 -12
  341. package/_shims/manual-types.js +0 -3
  342. package/_shims/manual-types.mjs +0 -3
  343. package/_shims/node-runtime.d.ts +0 -3
  344. package/_shims/node-runtime.d.ts.map +0 -1
  345. package/_shims/node-runtime.js +0 -89
  346. package/_shims/node-runtime.js.map +0 -1
  347. package/_shims/node-runtime.mjs +0 -56
  348. package/_shims/node-runtime.mjs.map +0 -1
  349. package/_shims/node-types.d.ts +0 -42
  350. package/_shims/node-types.js +0 -3
  351. package/_shims/node-types.mjs +0 -3
  352. package/_shims/registry.d.ts +0 -37
  353. package/_shims/registry.d.ts.map +0 -1
  354. package/_shims/registry.js +0 -41
  355. package/_shims/registry.js.map +0 -1
  356. package/_shims/registry.mjs +0 -37
  357. package/_shims/registry.mjs.map +0 -1
  358. package/_shims/web-runtime.d.ts +0 -5
  359. package/_shims/web-runtime.d.ts.map +0 -1
  360. package/_shims/web-runtime.js +0 -78
  361. package/_shims/web-runtime.js.map +0 -1
  362. package/_shims/web-runtime.mjs +0 -71
  363. package/_shims/web-runtime.mjs.map +0 -1
  364. package/_shims/web-types.d.ts +0 -83
  365. package/_shims/web-types.js +0 -3
  366. package/_shims/web-types.mjs +0 -3
  367. package/core.d.ts +0 -255
  368. package/core.d.ts.map +0 -1
  369. package/core.js +0 -929
  370. package/core.js.map +0 -1
  371. package/core.mjs +0 -897
  372. package/core.mjs.map +0 -1
  373. package/resources.d.ts +0 -2
  374. package/resources.d.ts.map +0 -1
  375. package/resources.js +0 -18
  376. package/resources.js.map +0 -1
  377. package/resources.mjs +0 -2
  378. package/resources.mjs.map +0 -1
  379. package/shims/node.d.ts +0 -30
  380. package/shims/node.d.ts.map +0 -1
  381. package/shims/node.js +0 -31
  382. package/shims/node.js.map +0 -1
  383. package/shims/node.mjs +0 -5
  384. package/shims/node.mjs.map +0 -1
  385. package/shims/web.d.ts +0 -26
  386. package/shims/web.d.ts.map +0 -1
  387. package/shims/web.js +0 -31
  388. package/shims/web.js.map +0 -1
  389. package/shims/web.mjs +0 -5
  390. package/shims/web.mjs.map +0 -1
  391. package/src/_shims/MultipartBody.ts +0 -9
  392. package/src/_shims/README.md +0 -46
  393. package/src/_shims/auto/runtime-bun.ts +0 -4
  394. package/src/_shims/auto/runtime-node.ts +0 -4
  395. package/src/_shims/auto/runtime.ts +0 -4
  396. package/src/_shims/auto/types-node.ts +0 -4
  397. package/src/_shims/auto/types.d.ts +0 -101
  398. package/src/_shims/auto/types.js +0 -3
  399. package/src/_shims/auto/types.mjs +0 -3
  400. package/src/_shims/bun-runtime.ts +0 -14
  401. package/src/_shims/index.d.ts +0 -83
  402. package/src/_shims/index.js +0 -17
  403. package/src/_shims/index.mjs +0 -11
  404. package/src/_shims/manual-types.d.ts +0 -12
  405. package/src/_shims/manual-types.js +0 -3
  406. package/src/_shims/manual-types.mjs +0 -3
  407. package/src/_shims/node-runtime.ts +0 -81
  408. package/src/_shims/node-types.d.ts +0 -42
  409. package/src/_shims/node-types.js +0 -3
  410. package/src/_shims/node-types.mjs +0 -3
  411. package/src/_shims/registry.ts +0 -67
  412. package/src/_shims/web-runtime.ts +0 -103
  413. package/src/_shims/web-types.d.ts +0 -83
  414. package/src/_shims/web-types.js +0 -3
  415. package/src/_shims/web-types.mjs +0 -3
  416. package/src/core.ts +0 -1242
  417. package/src/resources.ts +0 -1
  418. package/src/shims/node.ts +0 -50
  419. package/src/shims/web.ts +0 -50
@@ -0,0 +1,1295 @@
1
+ import { APIResource } from "../resource.mjs";
2
+ import { APIPromise } from "../api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Evaluation extends APIResource {
5
+ /**
6
+ * Create a evaluation job for a single call or dataset of calls
7
+ */
8
+ createJob(body: EvaluationCreateJobParams, options?: RequestOptions): APIPromise<EvaluationCreateJobResponse>;
9
+ /**
10
+ * Returns a specific evaluator with its blocks and configuration.
11
+ */
12
+ getEvaluatorByID(evaluatorID: string, options?: RequestOptions): APIPromise<EvaluationGetEvaluatorByIDResponse>;
13
+ /**
14
+ * Retrieve details of a specific evaluation job
15
+ */
16
+ getJob(jobID: string, options?: RequestOptions): APIPromise<EvaluationGetJobResponse>;
17
+ /**
18
+ * Returns a list of evaluators with their blocks and configuration for the
19
+ * authenticated project.
20
+ */
21
+ listEvaluators(query?: EvaluationListEvaluatorsParams | null | undefined, options?: RequestOptions): APIPromise<EvaluationListEvaluatorsResponse>;
22
+ /**
23
+ * Retrieve paginated details of a specific evaluation job runs
24
+ */
25
+ listJobRuns(jobID: string, query?: EvaluationListJobRunsParams | null | undefined, options?: RequestOptions): APIPromise<EvaluationListJobRunsResponse>;
26
+ }
27
+ export interface EvaluationCreateJobResponse {
28
+ data: EvaluationCreateJobResponse.Data;
29
+ }
30
+ export declare namespace EvaluationCreateJobResponse {
31
+ interface Data {
32
+ /**
33
+ * ID of the evaluation job
34
+ */
35
+ jobId: string;
36
+ /**
37
+ * Status of the evaluation job
38
+ */
39
+ status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
40
+ /**
41
+ * ID of the call being evaluated (only present for single call evaluations)
42
+ */
43
+ callId?: string;
44
+ }
45
+ }
46
+ /**
47
+ * Evaluator with its configured blocks
48
+ */
49
+ export interface EvaluationGetEvaluatorByIDResponse {
50
+ /**
51
+ * Unique identifier for the evaluator
52
+ */
53
+ id: string;
54
+ /**
55
+ * Array of evaluation blocks configured for this evaluator
56
+ */
57
+ blocks: Array<EvaluationGetEvaluatorByIDResponse.UnionMember0 | EvaluationGetEvaluatorByIDResponse.UnionMember1 | EvaluationGetEvaluatorByIDResponse.UnionMember2 | EvaluationGetEvaluatorByIDResponse.UnionMember3 | EvaluationGetEvaluatorByIDResponse.UnionMember4 | EvaluationGetEvaluatorByIDResponse.UnionMember5 | EvaluationGetEvaluatorByIDResponse.UnionMember6 | EvaluationGetEvaluatorByIDResponse.UnionMember7 | EvaluationGetEvaluatorByIDResponse.UnionMember8>;
58
+ /**
59
+ * ISO timestamp when the evaluator was created
60
+ */
61
+ createdAt: string;
62
+ /**
63
+ * Optional description of the evaluator
64
+ */
65
+ description: string | null;
66
+ /**
67
+ * Name of the evaluator
68
+ */
69
+ name: string;
70
+ /**
71
+ * Unique slug identifier for the evaluator
72
+ */
73
+ slug: string;
74
+ /**
75
+ * ISO timestamp when the evaluator was last updated
76
+ */
77
+ updatedAt: string;
78
+ }
79
+ export declare namespace EvaluationGetEvaluatorByIDResponse {
80
+ interface UnionMember0 {
81
+ /**
82
+ * Unique identifier for the block
83
+ */
84
+ id: string;
85
+ /**
86
+ * Block type identifier
87
+ */
88
+ blockType: 'CUSTOM_PROMPT';
89
+ /**
90
+ * Optional description of what this block evaluates
91
+ */
92
+ description: string | null;
93
+ /**
94
+ * Name of the metric this prompt evaluates
95
+ */
96
+ metricName: string;
97
+ /**
98
+ * Display name of the evaluation block
99
+ */
100
+ name: string;
101
+ /**
102
+ * Order in which this block is executed
103
+ */
104
+ orderIndex: number;
105
+ /**
106
+ * The prompt to evaluate the call against
107
+ */
108
+ prompt: string;
109
+ /**
110
+ * Minimum score threshold to pass evaluation (0-1)
111
+ */
112
+ threshold: number;
113
+ /**
114
+ * Weight of this block in the overall evaluation score (0-100)
115
+ */
116
+ weight: number;
117
+ }
118
+ interface UnionMember1 {
119
+ /**
120
+ * Unique identifier for the block
121
+ */
122
+ id: string;
123
+ /**
124
+ * Block type identifier
125
+ */
126
+ blockType: 'DATAFIELD_CHECK';
127
+ /**
128
+ * Optional description of what this block evaluates
129
+ */
130
+ description: string | null;
131
+ /**
132
+ * Criteria for evaluating the property
133
+ */
134
+ evaluationCriteria: string;
135
+ /**
136
+ * Whether this property must be present
137
+ */
138
+ isRequired: boolean;
139
+ /**
140
+ * Display name of the evaluation block
141
+ */
142
+ name: string;
143
+ /**
144
+ * Order in which this block is executed
145
+ */
146
+ orderIndex: number;
147
+ /**
148
+ * Name of the property to check
149
+ */
150
+ propertyName: string;
151
+ /**
152
+ * Minimum score threshold to pass evaluation (0-1)
153
+ */
154
+ threshold: number;
155
+ /**
156
+ * Expected type of the property value
157
+ */
158
+ valueType: string;
159
+ /**
160
+ * Weight of this block in the overall evaluation score (0-100)
161
+ */
162
+ weight: number;
163
+ }
164
+ interface UnionMember2 {
165
+ /**
166
+ * Unique identifier for the block
167
+ */
168
+ id: string;
169
+ /**
170
+ * Block type identifier
171
+ */
172
+ blockType: 'EMOTION';
173
+ /**
174
+ * Optional description of what this block evaluates
175
+ */
176
+ description: string | null;
177
+ /**
178
+ * Display name of the evaluation block
179
+ */
180
+ name: string;
181
+ /**
182
+ * Order in which this block is executed
183
+ */
184
+ orderIndex: number;
185
+ /**
186
+ * The emotion to detect (e.g., "joy", "anger", "sadness")
187
+ */
188
+ selectedEmotion: string;
189
+ /**
190
+ * Minimum confidence threshold for emotion detection (0-1)
191
+ */
192
+ threshold: number;
193
+ /**
194
+ * Weight of this block in the overall evaluation score (0-100)
195
+ */
196
+ weight: number;
197
+ }
198
+ interface UnionMember3 {
199
+ /**
200
+ * Unique identifier for the block
201
+ */
202
+ id: string;
203
+ /**
204
+ * Block type identifier
205
+ */
206
+ blockType: 'LATENCY';
207
+ /**
208
+ * Optional description of what this block evaluates
209
+ */
210
+ description: string | null;
211
+ /**
212
+ * Maximum number of silence periods allowed
213
+ */
214
+ maxAllowedSilences: number;
215
+ /**
216
+ * Minimum duration of silence in milliseconds to be considered
217
+ */
218
+ minSilenceDuration: number;
219
+ /**
220
+ * Display name of the evaluation block
221
+ */
222
+ name: string;
223
+ /**
224
+ * Order in which this block is executed
225
+ */
226
+ orderIndex: number;
227
+ /**
228
+ * Maximum allowed latency score
229
+ */
230
+ threshold: number;
231
+ /**
232
+ * Weight of this block in the overall evaluation score (0-100)
233
+ */
234
+ weight: number;
235
+ }
236
+ interface UnionMember4 {
237
+ /**
238
+ * Unique identifier for the block
239
+ */
240
+ id: string;
241
+ /**
242
+ * Block type identifier
243
+ */
244
+ blockType: 'POLITENESS';
245
+ /**
246
+ * Optional description of what this block evaluates
247
+ */
248
+ description: string | null;
249
+ /**
250
+ * Display name of the evaluation block
251
+ */
252
+ name: string;
253
+ /**
254
+ * Order in which this block is executed
255
+ */
256
+ orderIndex: number;
257
+ /**
258
+ * Minimum politeness score threshold (0-1)
259
+ */
260
+ threshold: number;
261
+ /**
262
+ * Weight of this block in the overall evaluation score (0-100)
263
+ */
264
+ weight: number;
265
+ }
266
+ interface UnionMember5 {
267
+ /**
268
+ * Unique identifier for the block
269
+ */
270
+ id: string;
271
+ /**
272
+ * Block type identifier
273
+ */
274
+ blockType: 'SENTIMENT';
275
+ /**
276
+ * Optional description of what this block evaluates
277
+ */
278
+ description: string | null;
279
+ /**
280
+ * Display name of the evaluation block
281
+ */
282
+ name: string;
283
+ /**
284
+ * Order in which this block is executed
285
+ */
286
+ orderIndex: number;
287
+ /**
288
+ * Minimum sentiment score threshold (0-1)
289
+ */
290
+ threshold: number;
291
+ /**
292
+ * Weight of this block in the overall evaluation score (0-100)
293
+ */
294
+ weight: number;
295
+ }
296
+ interface UnionMember6 {
297
+ /**
298
+ * Unique identifier for the block
299
+ */
300
+ id: string;
301
+ /**
302
+ * Block type identifier
303
+ */
304
+ blockType: 'TOOL_CALLS';
305
+ /**
306
+ * Optional description of what this block evaluates
307
+ */
308
+ description: string | null;
309
+ /**
310
+ * Condition that must be met for tool invocation
311
+ */
312
+ invocationCondition: string | null;
313
+ /**
314
+ * Minimum number of times the tool should be invoked
315
+ */
316
+ minInvocationCount: number | null;
317
+ /**
318
+ * Display name of the evaluation block
319
+ */
320
+ name: string;
321
+ /**
322
+ * Order in which this block is executed
323
+ */
324
+ orderIndex: number;
325
+ /**
326
+ * Whether the tool should be invoked
327
+ */
328
+ shouldBeInvoked: boolean;
329
+ /**
330
+ * ID of the tool definition
331
+ */
332
+ toolDefinitionId: string;
333
+ /**
334
+ * Weight of this block in the overall evaluation score (0-100)
335
+ */
336
+ weight: number;
337
+ }
338
+ interface UnionMember7 {
339
+ /**
340
+ * Unique identifier for the block
341
+ */
342
+ id: string;
343
+ /**
344
+ * Block type identifier
345
+ */
346
+ blockType: 'TOXICITY';
347
+ /**
348
+ * Optional description of what this block evaluates
349
+ */
350
+ description: string | null;
351
+ /**
352
+ * Display name of the evaluation block
353
+ */
354
+ name: string;
355
+ /**
356
+ * Order in which this block is executed
357
+ */
358
+ orderIndex: number;
359
+ /**
360
+ * Maximum allowed toxicity score (0-1)
361
+ */
362
+ threshold: number;
363
+ /**
364
+ * Weight of this block in the overall evaluation score (0-100)
365
+ */
366
+ weight: number;
367
+ }
368
+ interface UnionMember8 {
369
+ /**
370
+ * Unique identifier for the block
371
+ */
372
+ id: string;
373
+ /**
374
+ * Block type identifier
375
+ */
376
+ blockType: 'VOCAL_CUE';
377
+ /**
378
+ * Optional description of what this block evaluates
379
+ */
380
+ description: string | null;
381
+ /**
382
+ * Display name of the evaluation block
383
+ */
384
+ name: string;
385
+ /**
386
+ * Order in which this block is executed
387
+ */
388
+ orderIndex: number;
389
+ /**
390
+ * The vocal cue to detect (e.g., "pace", "tone", "volume")
391
+ */
392
+ selectedCue: string;
393
+ /**
394
+ * Minimum confidence threshold for vocal cue detection (0-1)
395
+ */
396
+ threshold: number;
397
+ /**
398
+ * Weight of this block in the overall evaluation score (0-100)
399
+ */
400
+ weight: number;
401
+ }
402
+ }
403
+ export interface EvaluationGetJobResponse {
404
+ /**
405
+ * Evaluation job response payload
406
+ */
407
+ data: EvaluationGetJobResponse.Data;
408
+ }
409
+ export declare namespace EvaluationGetJobResponse {
410
+ /**
411
+ * Evaluation job response payload
412
+ */
413
+ interface Data {
414
+ /**
415
+ * ID of the evaluation job
416
+ */
417
+ id: string;
418
+ /**
419
+ * Status of the evaluation job
420
+ */
421
+ status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
422
+ /**
423
+ * Call being evaluated
424
+ */
425
+ call?: Data.Call;
426
+ /**
427
+ * Dataset being evaluated
428
+ */
429
+ dataset?: Data.Dataset;
430
+ }
431
+ namespace Data {
432
+ /**
433
+ * Call being evaluated
434
+ */
435
+ interface Call {
436
+ /**
437
+ * ID of the call being evaluated
438
+ */
439
+ id: string | null;
440
+ }
441
+ /**
442
+ * Dataset being evaluated
443
+ */
444
+ interface Dataset {
445
+ /**
446
+ * ID of the dataset
447
+ */
448
+ id: string | null;
449
+ /**
450
+ * Calls in the dataset
451
+ */
452
+ calls: Array<Dataset.Call>;
453
+ }
454
+ namespace Dataset {
455
+ interface Call {
456
+ /**
457
+ * ID of the call
458
+ */
459
+ id: string | null;
460
+ }
461
+ }
462
+ }
463
+ }
464
+ /**
465
+ * Response containing evaluators and pagination info
466
+ */
467
+ export interface EvaluationListEvaluatorsResponse {
468
+ /**
469
+ * Array of evaluators with their blocks
470
+ */
471
+ data: Array<EvaluationListEvaluatorsResponse.Data>;
472
+ /**
473
+ * Pagination information
474
+ */
475
+ pagination: EvaluationListEvaluatorsResponse.Pagination;
476
+ }
477
+ export declare namespace EvaluationListEvaluatorsResponse {
478
+ /**
479
+ * Evaluator with its configured blocks
480
+ */
481
+ interface Data {
482
+ /**
483
+ * Unique identifier for the evaluator
484
+ */
485
+ id: string;
486
+ /**
487
+ * Array of evaluation blocks configured for this evaluator
488
+ */
489
+ blocks: Array<Data.UnionMember0 | Data.UnionMember1 | Data.UnionMember2 | Data.UnionMember3 | Data.UnionMember4 | Data.UnionMember5 | Data.UnionMember6 | Data.UnionMember7 | Data.UnionMember8>;
490
+ /**
491
+ * ISO timestamp when the evaluator was created
492
+ */
493
+ createdAt: string;
494
+ /**
495
+ * Optional description of the evaluator
496
+ */
497
+ description: string | null;
498
+ /**
499
+ * Name of the evaluator
500
+ */
501
+ name: string;
502
+ /**
503
+ * Unique slug identifier for the evaluator
504
+ */
505
+ slug: string;
506
+ /**
507
+ * ISO timestamp when the evaluator was last updated
508
+ */
509
+ updatedAt: string;
510
+ }
511
+ namespace Data {
512
+ interface UnionMember0 {
513
+ /**
514
+ * Unique identifier for the block
515
+ */
516
+ id: string;
517
+ /**
518
+ * Block type identifier
519
+ */
520
+ blockType: 'CUSTOM_PROMPT';
521
+ /**
522
+ * Optional description of what this block evaluates
523
+ */
524
+ description: string | null;
525
+ /**
526
+ * Name of the metric this prompt evaluates
527
+ */
528
+ metricName: string;
529
+ /**
530
+ * Display name of the evaluation block
531
+ */
532
+ name: string;
533
+ /**
534
+ * Order in which this block is executed
535
+ */
536
+ orderIndex: number;
537
+ /**
538
+ * The prompt to evaluate the call against
539
+ */
540
+ prompt: string;
541
+ /**
542
+ * Minimum score threshold to pass evaluation (0-1)
543
+ */
544
+ threshold: number;
545
+ /**
546
+ * Weight of this block in the overall evaluation score (0-100)
547
+ */
548
+ weight: number;
549
+ }
550
+ interface UnionMember1 {
551
+ /**
552
+ * Unique identifier for the block
553
+ */
554
+ id: string;
555
+ /**
556
+ * Block type identifier
557
+ */
558
+ blockType: 'DATAFIELD_CHECK';
559
+ /**
560
+ * Optional description of what this block evaluates
561
+ */
562
+ description: string | null;
563
+ /**
564
+ * Criteria for evaluating the property
565
+ */
566
+ evaluationCriteria: string;
567
+ /**
568
+ * Whether this property must be present
569
+ */
570
+ isRequired: boolean;
571
+ /**
572
+ * Display name of the evaluation block
573
+ */
574
+ name: string;
575
+ /**
576
+ * Order in which this block is executed
577
+ */
578
+ orderIndex: number;
579
+ /**
580
+ * Name of the property to check
581
+ */
582
+ propertyName: string;
583
+ /**
584
+ * Minimum score threshold to pass evaluation (0-1)
585
+ */
586
+ threshold: number;
587
+ /**
588
+ * Expected type of the property value
589
+ */
590
+ valueType: string;
591
+ /**
592
+ * Weight of this block in the overall evaluation score (0-100)
593
+ */
594
+ weight: number;
595
+ }
596
+ interface UnionMember2 {
597
+ /**
598
+ * Unique identifier for the block
599
+ */
600
+ id: string;
601
+ /**
602
+ * Block type identifier
603
+ */
604
+ blockType: 'EMOTION';
605
+ /**
606
+ * Optional description of what this block evaluates
607
+ */
608
+ description: string | null;
609
+ /**
610
+ * Display name of the evaluation block
611
+ */
612
+ name: string;
613
+ /**
614
+ * Order in which this block is executed
615
+ */
616
+ orderIndex: number;
617
+ /**
618
+ * The emotion to detect (e.g., "joy", "anger", "sadness")
619
+ */
620
+ selectedEmotion: string;
621
+ /**
622
+ * Minimum confidence threshold for emotion detection (0-1)
623
+ */
624
+ threshold: number;
625
+ /**
626
+ * Weight of this block in the overall evaluation score (0-100)
627
+ */
628
+ weight: number;
629
+ }
630
+ interface UnionMember3 {
631
+ /**
632
+ * Unique identifier for the block
633
+ */
634
+ id: string;
635
+ /**
636
+ * Block type identifier
637
+ */
638
+ blockType: 'LATENCY';
639
+ /**
640
+ * Optional description of what this block evaluates
641
+ */
642
+ description: string | null;
643
+ /**
644
+ * Maximum number of silence periods allowed
645
+ */
646
+ maxAllowedSilences: number;
647
+ /**
648
+ * Minimum duration of silence in milliseconds to be considered
649
+ */
650
+ minSilenceDuration: number;
651
+ /**
652
+ * Display name of the evaluation block
653
+ */
654
+ name: string;
655
+ /**
656
+ * Order in which this block is executed
657
+ */
658
+ orderIndex: number;
659
+ /**
660
+ * Maximum allowed latency score
661
+ */
662
+ threshold: number;
663
+ /**
664
+ * Weight of this block in the overall evaluation score (0-100)
665
+ */
666
+ weight: number;
667
+ }
668
+ interface UnionMember4 {
669
+ /**
670
+ * Unique identifier for the block
671
+ */
672
+ id: string;
673
+ /**
674
+ * Block type identifier
675
+ */
676
+ blockType: 'POLITENESS';
677
+ /**
678
+ * Optional description of what this block evaluates
679
+ */
680
+ description: string | null;
681
+ /**
682
+ * Display name of the evaluation block
683
+ */
684
+ name: string;
685
+ /**
686
+ * Order in which this block is executed
687
+ */
688
+ orderIndex: number;
689
+ /**
690
+ * Minimum politeness score threshold (0-1)
691
+ */
692
+ threshold: number;
693
+ /**
694
+ * Weight of this block in the overall evaluation score (0-100)
695
+ */
696
+ weight: number;
697
+ }
698
+ interface UnionMember5 {
699
+ /**
700
+ * Unique identifier for the block
701
+ */
702
+ id: string;
703
+ /**
704
+ * Block type identifier
705
+ */
706
+ blockType: 'SENTIMENT';
707
+ /**
708
+ * Optional description of what this block evaluates
709
+ */
710
+ description: string | null;
711
+ /**
712
+ * Display name of the evaluation block
713
+ */
714
+ name: string;
715
+ /**
716
+ * Order in which this block is executed
717
+ */
718
+ orderIndex: number;
719
+ /**
720
+ * Minimum sentiment score threshold (0-1)
721
+ */
722
+ threshold: number;
723
+ /**
724
+ * Weight of this block in the overall evaluation score (0-100)
725
+ */
726
+ weight: number;
727
+ }
728
+ interface UnionMember6 {
729
+ /**
730
+ * Unique identifier for the block
731
+ */
732
+ id: string;
733
+ /**
734
+ * Block type identifier
735
+ */
736
+ blockType: 'TOOL_CALLS';
737
+ /**
738
+ * Optional description of what this block evaluates
739
+ */
740
+ description: string | null;
741
+ /**
742
+ * Condition that must be met for tool invocation
743
+ */
744
+ invocationCondition: string | null;
745
+ /**
746
+ * Minimum number of times the tool should be invoked
747
+ */
748
+ minInvocationCount: number | null;
749
+ /**
750
+ * Display name of the evaluation block
751
+ */
752
+ name: string;
753
+ /**
754
+ * Order in which this block is executed
755
+ */
756
+ orderIndex: number;
757
+ /**
758
+ * Whether the tool should be invoked
759
+ */
760
+ shouldBeInvoked: boolean;
761
+ /**
762
+ * ID of the tool definition
763
+ */
764
+ toolDefinitionId: string;
765
+ /**
766
+ * Weight of this block in the overall evaluation score (0-100)
767
+ */
768
+ weight: number;
769
+ }
770
+ interface UnionMember7 {
771
+ /**
772
+ * Unique identifier for the block
773
+ */
774
+ id: string;
775
+ /**
776
+ * Block type identifier
777
+ */
778
+ blockType: 'TOXICITY';
779
+ /**
780
+ * Optional description of what this block evaluates
781
+ */
782
+ description: string | null;
783
+ /**
784
+ * Display name of the evaluation block
785
+ */
786
+ name: string;
787
+ /**
788
+ * Order in which this block is executed
789
+ */
790
+ orderIndex: number;
791
+ /**
792
+ * Maximum allowed toxicity score (0-1)
793
+ */
794
+ threshold: number;
795
+ /**
796
+ * Weight of this block in the overall evaluation score (0-100)
797
+ */
798
+ weight: number;
799
+ }
800
+ interface UnionMember8 {
801
+ /**
802
+ * Unique identifier for the block
803
+ */
804
+ id: string;
805
+ /**
806
+ * Block type identifier
807
+ */
808
+ blockType: 'VOCAL_CUE';
809
+ /**
810
+ * Optional description of what this block evaluates
811
+ */
812
+ description: string | null;
813
+ /**
814
+ * Display name of the evaluation block
815
+ */
816
+ name: string;
817
+ /**
818
+ * Order in which this block is executed
819
+ */
820
+ orderIndex: number;
821
+ /**
822
+ * The vocal cue to detect (e.g., "pace", "tone", "volume")
823
+ */
824
+ selectedCue: string;
825
+ /**
826
+ * Minimum confidence threshold for vocal cue detection (0-1)
827
+ */
828
+ threshold: number;
829
+ /**
830
+ * Weight of this block in the overall evaluation score (0-100)
831
+ */
832
+ weight: number;
833
+ }
834
+ }
835
+ /**
836
+ * Pagination information
837
+ */
838
+ interface Pagination {
839
+ /**
840
+ * Whether there are more evaluators to fetch
841
+ */
842
+ hasMore: boolean;
843
+ /**
844
+ * Cursor for the next page, null if no more pages
845
+ */
846
+ nextCursor: string | null;
847
+ /**
848
+ * Total number of evaluators
849
+ */
850
+ total: number;
851
+ }
852
+ }
853
+ export interface EvaluationListJobRunsResponse {
854
+ /**
855
+ * Evaluation job runs response payload
856
+ */
857
+ data: EvaluationListJobRunsResponse.Data;
858
+ }
859
+ export declare namespace EvaluationListJobRunsResponse {
860
+ /**
861
+ * Evaluation job runs response payload
862
+ */
863
+ interface Data {
864
+ /**
865
+ * Evaluator runs of the evaluation job
866
+ */
867
+ data: Array<Data.Data> | null;
868
+ /**
869
+ * Pagination information
870
+ */
871
+ pagination: Data.Pagination | null;
872
+ }
873
+ namespace Data {
874
+ interface Data {
875
+ /**
876
+ * All block runs for this evaluator, including skipped ones
877
+ */
878
+ blockRuns: Array<Data.BlockRun>;
879
+ evaluator: Data.Evaluator;
880
+ evidence: Array<Data.Evidence>;
881
+ metrics: Array<Data.Metric>;
882
+ /**
883
+ * Status of the evaluator run
884
+ */
885
+ status: 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
886
+ /**
887
+ * ID of the evaluator run
888
+ */
889
+ id?: string;
890
+ /**
891
+ * When the evaluator run completed
892
+ */
893
+ completedAt?: string | null;
894
+ /**
895
+ * Result of the evaluator run based on score threshold (IRRELEVANT is mapped to
896
+ * SKIPPED)
897
+ */
898
+ result?: 'SUCCESS' | 'FAILURE' | 'SKIPPED' | null;
899
+ /**
900
+ * Score of the evaluation run (0-1)
901
+ */
902
+ score?: number | null;
903
+ /**
904
+ * When the evaluator run started
905
+ */
906
+ startedAt?: string | null;
907
+ /**
908
+ * Summary of the evaluation run
909
+ */
910
+ summary?: string | null;
911
+ }
912
+ namespace Data {
913
+ interface BlockRun {
914
+ /**
915
+ * ID of the block definition
916
+ */
917
+ blockDefinitionId: string;
918
+ /**
919
+ * Name of the evaluation block
920
+ */
921
+ blockName: string;
922
+ /**
923
+ * ID of the block run instance
924
+ */
925
+ blockRunId: string;
926
+ /**
927
+ * When the block run was created
928
+ */
929
+ createdAt: string;
930
+ /**
931
+ * Reason for the outcome (pass/fail explanation or skip reason)
932
+ */
933
+ reason: string | null;
934
+ /**
935
+ * Result of the block run
936
+ */
937
+ result: 'PASSED' | 'FAILED' | 'SKIPPED' | null;
938
+ /**
939
+ * Score of the block run (0-1)
940
+ */
941
+ score: number | null;
942
+ /**
943
+ * Status of the block run
944
+ */
945
+ status: 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED';
946
+ }
947
+ interface Evaluator {
948
+ /**
949
+ * ID of the evaluator
950
+ */
951
+ id: string;
952
+ /**
953
+ * Name of the evaluator
954
+ */
955
+ name: string;
956
+ /**
957
+ * Weight of the evaluator
958
+ */
959
+ weight?: number;
960
+ }
961
+ interface Evidence {
962
+ /**
963
+ * Comment text of the evidence
964
+ */
965
+ commentText: string | null;
966
+ /**
967
+ * Created at of the evidence
968
+ */
969
+ createdAt: string;
970
+ /**
971
+ * Is positive of the evidence
972
+ */
973
+ isPositive: boolean;
974
+ /**
975
+ * Snippet text of the evidence
976
+ */
977
+ snippetText: string;
978
+ }
979
+ interface Metric {
980
+ /**
981
+ * Boolean value of the metric
982
+ */
983
+ booleanValue: boolean | null;
984
+ /**
985
+ * Confidence level of the metric (0-1)
986
+ */
987
+ confidence: number | null;
988
+ /**
989
+ * Created at of the metric
990
+ */
991
+ createdAt: string;
992
+ /**
993
+ * Name of the metric
994
+ */
995
+ name: string;
996
+ /**
997
+ * Numeric value of the metric
998
+ */
999
+ numericValue: number | null;
1000
+ /**
1001
+ * Reasoning of the metric
1002
+ */
1003
+ reasoning: string | null;
1004
+ /**
1005
+ * Role of the metric
1006
+ */
1007
+ role: string;
1008
+ /**
1009
+ * Text value of the metric
1010
+ */
1011
+ textValue: string | null;
1012
+ /**
1013
+ * Value type of the metric
1014
+ */
1015
+ valueType: string;
1016
+ }
1017
+ }
1018
+ /**
1019
+ * Pagination information
1020
+ */
1021
+ interface Pagination {
1022
+ /**
1023
+ * Whether there are more items to fetch
1024
+ */
1025
+ hasMore: boolean;
1026
+ /**
1027
+ * Cursor for the next page of items
1028
+ */
1029
+ nextCursor: string | null;
1030
+ /**
1031
+ * Total number of items
1032
+ */
1033
+ total: number;
1034
+ }
1035
+ }
1036
+ }
1037
+ export interface EvaluationCreateJobParams {
1038
+ /**
1039
+ * List of evaluators slugs to evaluate the calls or "all" to evaluate all
1040
+ * evaluators
1041
+ */
1042
+ evaluators: Array<string> | 'all';
1043
+ /**
1044
+ * Call input to evaluate
1045
+ */
1046
+ call?: EvaluationCreateJobParams.Call;
1047
+ /**
1048
+ * ID of an existing call to evaluate
1049
+ */
1050
+ callId?: string;
1051
+ dataset?: EvaluationCreateJobParams.Dataset;
1052
+ }
1053
+ export declare namespace EvaluationCreateJobParams {
1054
+ /**
1055
+ * Call input to evaluate
1056
+ */
1057
+ interface Call {
1058
+ /**
1059
+ * Direction of the call (INBOUND or OUTBOUND)
1060
+ */
1061
+ callDirection: 'INBOUND' | 'OUTBOUND';
1062
+ /**
1063
+ * Interface type of the call (PHONE or WEB)
1064
+ */
1065
+ interfaceType: 'PHONE' | 'WEB';
1066
+ /**
1067
+ * Exactly two participants in the call
1068
+ */
1069
+ participants: Array<Call.Participant>;
1070
+ /**
1071
+ * URL of source recording (must be an accessible WAV, MP3, or MP4 file). Can be a
1072
+ * signed URL.
1073
+ */
1074
+ recordingUrl: string;
1075
+ /**
1076
+ * When the call started (ISO 8601 format)
1077
+ */
1078
+ startedAt: string;
1079
+ /**
1080
+ * Additional context on why the call terminated with the endedStatus
1081
+ */
1082
+ endedReason?: string;
1083
+ /**
1084
+ * High-level call end status, indicating how the call terminated
1085
+ */
1086
+ endedStatus?: 'PARTICIPANTS_DID_NOT_SPEAK' | 'AGENT_DID_NOT_ANSWER' | 'AGENT_DID_NOT_SPEAK' | 'AGENT_STOPPED_SPEAKING' | 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_BUSY' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_DID_NOT_SPEAK' | 'CUSTOMER_STOPPED_SPEAKING' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
1087
+ /**
1088
+ * Whether this is a test call
1089
+ */
1090
+ isTest?: boolean;
1091
+ /**
1092
+ * Custom properties to include with the call. These can be used for filtering and
1093
+ * will show in the call details page
1094
+ */
1095
+ properties?: Record<string, unknown>;
1096
+ /**
1097
+ * Retell call ID if call is being imported from Retell
1098
+ */
1099
+ retellCallId?: string;
1100
+ /**
1101
+ * URL of source stereo recording. Must be accessible. Can be a signed URL. While
1102
+ * optional it allows for a richer audio player. Supported formats: WAV, MP3, MP4.
1103
+ */
1104
+ stereoRecordingUrl?: string;
1105
+ /**
1106
+ * List of tool invocations made during the call
1107
+ */
1108
+ toolInvocations?: Array<Call.ToolInvocation>;
1109
+ /**
1110
+ * Vapi call ID if call is being imported from Vapi
1111
+ */
1112
+ vapiCallId?: string;
1113
+ }
1114
+ namespace Call {
1115
+ interface Participant {
1116
+ role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
1117
+ isSimulated?: boolean;
1118
+ name?: string | null;
1119
+ participantId?: string | null;
1120
+ phoneNumber?: string | null;
1121
+ spokeFirst?: boolean;
1122
+ }
1123
+ interface ToolInvocation {
1124
+ /**
1125
+ * Name of the tool that was invoked
1126
+ */
1127
+ name: string;
1128
+ /**
1129
+ * Parameters provided to the tool during invocation
1130
+ */
1131
+ parameters: Record<string, ToolInvocation.UnionMember0 | unknown>;
1132
+ /**
1133
+ * Result returned by the tool after execution. Can be a string or a JSON object
1134
+ */
1135
+ result: string | Record<string, unknown>;
1136
+ /**
1137
+ * Offset in milliseconds from the start of the call when the tool was invoked
1138
+ */
1139
+ startOffsetMs: number;
1140
+ /**
1141
+ * Description of when the tool should be invoked
1142
+ */
1143
+ description?: string;
1144
+ /**
1145
+ * Offset in milliseconds from the start of the call when the tool execution
1146
+ * completed. Used to calculate duration of the tool execution
1147
+ */
1148
+ endOffsetMs?: number;
1149
+ }
1150
+ namespace ToolInvocation {
1151
+ interface UnionMember0 {
1152
+ description?: string;
1153
+ type?: 'string' | 'number' | 'boolean';
1154
+ value?: unknown;
1155
+ }
1156
+ }
1157
+ }
1158
+ interface Dataset {
1159
+ /**
1160
+ * List of calls input to evaluate
1161
+ */
1162
+ calls: Array<Dataset.Call>;
1163
+ /**
1164
+ * Name of the dataset
1165
+ */
1166
+ name: string;
1167
+ }
1168
+ namespace Dataset {
1169
+ interface Call {
1170
+ /**
1171
+ * Direction of the call (INBOUND or OUTBOUND)
1172
+ */
1173
+ callDirection: 'INBOUND' | 'OUTBOUND';
1174
+ /**
1175
+ * Interface type of the call (PHONE or WEB)
1176
+ */
1177
+ interfaceType: 'PHONE' | 'WEB';
1178
+ /**
1179
+ * Exactly two participants in the call
1180
+ */
1181
+ participants: Array<Call.Participant>;
1182
+ /**
1183
+ * URL of source recording (must be an accessible WAV, MP3, or MP4 file). Can be a
1184
+ * signed URL.
1185
+ */
1186
+ recordingUrl: string;
1187
+ /**
1188
+ * When the call started (ISO 8601 format)
1189
+ */
1190
+ startedAt: string;
1191
+ /**
1192
+ * Additional context on why the call terminated with the endedStatus
1193
+ */
1194
+ endedReason?: string;
1195
+ /**
1196
+ * High-level call end status, indicating how the call terminated
1197
+ */
1198
+ endedStatus?: 'PARTICIPANTS_DID_NOT_SPEAK' | 'AGENT_DID_NOT_ANSWER' | 'AGENT_DID_NOT_SPEAK' | 'AGENT_STOPPED_SPEAKING' | 'AGENT_ENDED_CALL' | 'AGENT_TRANSFERRED_CALL' | 'AGENT_BUSY' | 'AGENT_ERROR' | 'CUSTOMER_ENDED_CALL' | 'VOICE_MAIL_REACHED' | 'SILENCE_TIME_OUT' | 'PHONE_CALL_PROVIDER_CONNECTION_ERROR' | 'CUSTOMER_DID_NOT_ANSWER' | 'CUSTOMER_DID_NOT_SPEAK' | 'CUSTOMER_STOPPED_SPEAKING' | 'CUSTOMER_BUSY' | 'DIAL_ERROR' | 'MAX_DURATION_REACHED' | 'UNKNOWN';
1199
+ /**
1200
+ * Whether this is a test call
1201
+ */
1202
+ isTest?: boolean;
1203
+ /**
1204
+ * Custom properties to include with the call. These can be used for filtering and
1205
+ * will show in the call details page
1206
+ */
1207
+ properties?: Record<string, unknown>;
1208
+ /**
1209
+ * Retell call ID if call is being imported from Retell
1210
+ */
1211
+ retellCallId?: string;
1212
+ /**
1213
+ * URL of source stereo recording. Must be accessible. Can be a signed URL. While
1214
+ * optional it allows for a richer audio player. Supported formats: WAV, MP3, MP4.
1215
+ */
1216
+ stereoRecordingUrl?: string;
1217
+ /**
1218
+ * List of tool invocations made during the call
1219
+ */
1220
+ toolInvocations?: Array<Call.ToolInvocation>;
1221
+ /**
1222
+ * Vapi call ID if call is being imported from Vapi
1223
+ */
1224
+ vapiCallId?: string;
1225
+ }
1226
+ namespace Call {
1227
+ interface Participant {
1228
+ role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
1229
+ isSimulated?: boolean;
1230
+ name?: string | null;
1231
+ participantId?: string | null;
1232
+ phoneNumber?: string | null;
1233
+ spokeFirst?: boolean;
1234
+ }
1235
+ interface ToolInvocation {
1236
+ /**
1237
+ * Name of the tool that was invoked
1238
+ */
1239
+ name: string;
1240
+ /**
1241
+ * Parameters provided to the tool during invocation
1242
+ */
1243
+ parameters: Record<string, ToolInvocation.UnionMember0 | unknown>;
1244
+ /**
1245
+ * Result returned by the tool after execution. Can be a string or a JSON object
1246
+ */
1247
+ result: string | Record<string, unknown>;
1248
+ /**
1249
+ * Offset in milliseconds from the start of the call when the tool was invoked
1250
+ */
1251
+ startOffsetMs: number;
1252
+ /**
1253
+ * Description of when the tool should be invoked
1254
+ */
1255
+ description?: string;
1256
+ /**
1257
+ * Offset in milliseconds from the start of the call when the tool execution
1258
+ * completed. Used to calculate duration of the tool execution
1259
+ */
1260
+ endOffsetMs?: number;
1261
+ }
1262
+ namespace ToolInvocation {
1263
+ interface UnionMember0 {
1264
+ description?: string;
1265
+ type?: 'string' | 'number' | 'boolean';
1266
+ value?: unknown;
1267
+ }
1268
+ }
1269
+ }
1270
+ }
1271
+ }
1272
+ export interface EvaluationListEvaluatorsParams {
1273
+ /**
1274
+ * Cursor for pagination - evaluator ID to start after
1275
+ */
1276
+ after?: string;
1277
+ /**
1278
+ * Maximum number of evaluators to return (default: 20, max: 50)
1279
+ */
1280
+ limit?: string;
1281
+ }
1282
+ export interface EvaluationListJobRunsParams {
1283
+ /**
1284
+ * Number of items to return per page
1285
+ */
1286
+ limit?: string;
1287
+ /**
1288
+ * Cursor for the next page of items
1289
+ */
1290
+ nextCursor?: string;
1291
+ }
1292
+ export declare namespace Evaluation {
1293
+ export { type EvaluationCreateJobResponse as EvaluationCreateJobResponse, type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse, type EvaluationGetJobResponse as EvaluationGetJobResponse, type EvaluationListEvaluatorsResponse as EvaluationListEvaluatorsResponse, type EvaluationListJobRunsResponse as EvaluationListJobRunsResponse, type EvaluationCreateJobParams as EvaluationCreateJobParams, type EvaluationListEvaluatorsParams as EvaluationListEvaluatorsParams, type EvaluationListJobRunsParams as EvaluationListJobRunsParams, };
1294
+ }
1295
+ //# sourceMappingURL=evaluation.d.mts.map