@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,756 @@
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 Simulation extends APIResource {
5
+ /**
6
+ * Retrieve details of a simulation plan job including all associated simulation
7
+ * jobs (calls)
8
+ */
9
+ getRunPlanJob(jobID: unknown, options?: RequestOptions): APIPromise<SimulationGetRunPlanJobResponse>;
10
+ /**
11
+ * Get a individual simulation run directly by its ID. This is generally part of a
12
+ * larger simulation run plan job.
13
+ */
14
+ getSimulationJobByID(jobID: unknown, options?: RequestOptions): APIPromise<SimulationGetSimulationJobByIDResponse>;
15
+ /**
16
+ * Returns a paginated list of simulation run plan jobs. Filter by status, plan ID,
17
+ * or label to find specific simulation batches.
18
+ */
19
+ listRunPlanJobs(query?: SimulationListRunPlanJobsParams | null | undefined, options?: RequestOptions): APIPromise<SimulationListRunPlanJobsResponse>;
20
+ /**
21
+ * Returns a paginated list of simulation scenarios for the authenticated project.
22
+ */
23
+ listScenarios(query?: SimulationListScenariosParams | null | undefined, options?: RequestOptions): APIPromise<SimulationListScenariosResponse>;
24
+ /**
25
+ * Find the matching simulation using the number used by the Roark simulation
26
+ * agent.
27
+ */
28
+ lookupSimulationJob(query: SimulationLookupSimulationJobParams, options?: RequestOptions): APIPromise<SimulationLookupSimulationJobResponse>;
29
+ /**
30
+ * Create and execute a job for an existing simulation run plan
31
+ */
32
+ startRunPlanJob(planID: unknown, options?: RequestOptions): APIPromise<SimulationStartRunPlanJobResponse>;
33
+ }
34
+ export interface SimulationGetRunPlanJobResponse {
35
+ /**
36
+ * Simulation run plan job with all associated simulation jobs
37
+ */
38
+ data: SimulationGetRunPlanJobResponse.Data;
39
+ }
40
+ export declare namespace SimulationGetRunPlanJobResponse {
41
+ /**
42
+ * Simulation run plan job with all associated simulation jobs
43
+ */
44
+ interface Data {
45
+ /**
46
+ * When the job was created
47
+ */
48
+ createdAt: string;
49
+ /**
50
+ * List of simulation jobs (calls) in this run plan job
51
+ */
52
+ simulationJobs: Array<Data.SimulationJob>;
53
+ /**
54
+ * ID of the simulation run plan
55
+ */
56
+ simulationRunPlanId: string;
57
+ /**
58
+ * ID of the simulation run plan job
59
+ */
60
+ simulationRunPlanJobId: string;
61
+ /**
62
+ * Job status
63
+ */
64
+ status: string;
65
+ /**
66
+ * When the job ended
67
+ */
68
+ endedAt?: string | null;
69
+ /**
70
+ * When the job started
71
+ */
72
+ startedAt?: string | null;
73
+ }
74
+ namespace Data {
75
+ interface SimulationJob {
76
+ /**
77
+ * Agent endpoint used in a simulation
78
+ */
79
+ agentEndpoint: SimulationJob.AgentEndpoint;
80
+ /**
81
+ * When the simulation job was created
82
+ */
83
+ createdAt: string;
84
+ persona: SimulationJob.Persona;
85
+ /**
86
+ * Processing status
87
+ */
88
+ processingStatus: string;
89
+ /**
90
+ * Scenario used in a simulation
91
+ */
92
+ scenario: SimulationJob.Scenario;
93
+ /**
94
+ * Simulation job ID
95
+ */
96
+ simulationJobId: string;
97
+ /**
98
+ * Job status
99
+ */
100
+ status: string;
101
+ /**
102
+ * ID of the call created for this simulation job. Null if the call has not been
103
+ * created yet.
104
+ */
105
+ callId?: string | null;
106
+ /**
107
+ * When the simulation job completed
108
+ */
109
+ completedAt?: string | null;
110
+ /**
111
+ * Phone number provisioned by Roark for this simulation job in E.164 format. Null
112
+ * if the simulation job is queued and has not been assigned a phone number yet.
113
+ */
114
+ roarkPhoneNumber?: string | null;
115
+ /**
116
+ * When the simulation job started
117
+ */
118
+ startedAt?: string | null;
119
+ }
120
+ namespace SimulationJob {
121
+ /**
122
+ * Agent endpoint used in a simulation
123
+ */
124
+ interface AgentEndpoint {
125
+ /**
126
+ * Agent endpoint ID
127
+ */
128
+ id: string;
129
+ /**
130
+ * Agent endpoint name
131
+ */
132
+ name: string;
133
+ /**
134
+ * Agent endpoint phone number
135
+ */
136
+ phoneNumber: string | null;
137
+ /**
138
+ * Agent endpoint type
139
+ */
140
+ type: string;
141
+ }
142
+ interface Persona {
143
+ /**
144
+ * Unique identifier of the persona
145
+ */
146
+ id: string;
147
+ /**
148
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
149
+ * optional variants
150
+ */
151
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
152
+ /**
153
+ * Background noise setting
154
+ */
155
+ backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
156
+ /**
157
+ * Base emotional state of the persona
158
+ */
159
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
160
+ /**
161
+ * How the persona confirms information
162
+ */
163
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
164
+ /**
165
+ * Creation timestamp
166
+ */
167
+ createdAt: string;
168
+ /**
169
+ * Gender of the persona
170
+ */
171
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
172
+ /**
173
+ * Whether the persona uses filler words like "um" and "uh"
174
+ */
175
+ hasDisfluencies: boolean;
176
+ /**
177
+ * How clearly the persona expresses their intentions
178
+ */
179
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
180
+ /**
181
+ * Primary language ISO 639-1 code for the persona
182
+ */
183
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
184
+ /**
185
+ * How reliable the persona's memory is
186
+ */
187
+ memoryReliability: 'HIGH' | 'LOW';
188
+ /**
189
+ * The name the agent will identify as during conversations
190
+ */
191
+ name: string;
192
+ /**
193
+ * Additional custom properties about the persona
194
+ */
195
+ properties: Record<string, unknown>;
196
+ /**
197
+ * Speech clarity of the persona
198
+ */
199
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
200
+ /**
201
+ * Speech pace of the persona
202
+ */
203
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
204
+ /**
205
+ * Last update timestamp
206
+ */
207
+ updatedAt: string;
208
+ /**
209
+ * Background story and behavioral patterns for the persona
210
+ */
211
+ backstoryPrompt?: string | null;
212
+ /**
213
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
214
+ */
215
+ secondaryLanguage?: 'EN' | null;
216
+ }
217
+ /**
218
+ * Scenario used in a simulation
219
+ */
220
+ interface Scenario {
221
+ /**
222
+ * Scenario ID
223
+ */
224
+ id: string;
225
+ /**
226
+ * Scenario description
227
+ */
228
+ description?: string | null;
229
+ }
230
+ }
231
+ }
232
+ }
233
+ export interface SimulationGetSimulationJobByIDResponse {
234
+ /**
235
+ * Simulation job with related entities
236
+ */
237
+ data: SimulationGetSimulationJobByIDResponse.Data;
238
+ }
239
+ export declare namespace SimulationGetSimulationJobByIDResponse {
240
+ /**
241
+ * Simulation job with related entities
242
+ */
243
+ interface Data {
244
+ /**
245
+ * Agent endpoint used in a simulation
246
+ */
247
+ agentEndpoint: Data.AgentEndpoint;
248
+ /**
249
+ * When the job was created
250
+ */
251
+ createdAt: string;
252
+ persona: Data.Persona;
253
+ /**
254
+ * Processing status
255
+ */
256
+ processingStatus: string;
257
+ /**
258
+ * Scenario used in a simulation
259
+ */
260
+ scenario: Data.Scenario;
261
+ /**
262
+ * Simulation job ID
263
+ */
264
+ simulationJobId: string;
265
+ /**
266
+ * Job status
267
+ */
268
+ status: string;
269
+ /**
270
+ * ID of the call created for this simulation job. Null if the call has not been
271
+ * created yet.
272
+ */
273
+ callId?: string | null;
274
+ /**
275
+ * When the job completed
276
+ */
277
+ completedAt?: string | null;
278
+ /**
279
+ * Phone number provisioned by Roark for this simulation job in E.164 format. Null
280
+ * if the simulation job is queued and has not been assigned a phone number yet.
281
+ */
282
+ roarkPhoneNumber?: string | null;
283
+ /**
284
+ * When the job started
285
+ */
286
+ startedAt?: string | null;
287
+ }
288
+ namespace Data {
289
+ /**
290
+ * Agent endpoint used in a simulation
291
+ */
292
+ interface AgentEndpoint {
293
+ /**
294
+ * Agent endpoint ID
295
+ */
296
+ id: string;
297
+ /**
298
+ * Agent endpoint name
299
+ */
300
+ name: string;
301
+ /**
302
+ * Agent endpoint phone number
303
+ */
304
+ phoneNumber: string | null;
305
+ /**
306
+ * Agent endpoint type
307
+ */
308
+ type: string;
309
+ }
310
+ interface Persona {
311
+ /**
312
+ * Unique identifier of the persona
313
+ */
314
+ id: string;
315
+ /**
316
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
317
+ * optional variants
318
+ */
319
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
320
+ /**
321
+ * Background noise setting
322
+ */
323
+ backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
324
+ /**
325
+ * Base emotional state of the persona
326
+ */
327
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
328
+ /**
329
+ * How the persona confirms information
330
+ */
331
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
332
+ /**
333
+ * Creation timestamp
334
+ */
335
+ createdAt: string;
336
+ /**
337
+ * Gender of the persona
338
+ */
339
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
340
+ /**
341
+ * Whether the persona uses filler words like "um" and "uh"
342
+ */
343
+ hasDisfluencies: boolean;
344
+ /**
345
+ * How clearly the persona expresses their intentions
346
+ */
347
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
348
+ /**
349
+ * Primary language ISO 639-1 code for the persona
350
+ */
351
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
352
+ /**
353
+ * How reliable the persona's memory is
354
+ */
355
+ memoryReliability: 'HIGH' | 'LOW';
356
+ /**
357
+ * The name the agent will identify as during conversations
358
+ */
359
+ name: string;
360
+ /**
361
+ * Additional custom properties about the persona
362
+ */
363
+ properties: Record<string, unknown>;
364
+ /**
365
+ * Speech clarity of the persona
366
+ */
367
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
368
+ /**
369
+ * Speech pace of the persona
370
+ */
371
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
372
+ /**
373
+ * Last update timestamp
374
+ */
375
+ updatedAt: string;
376
+ /**
377
+ * Background story and behavioral patterns for the persona
378
+ */
379
+ backstoryPrompt?: string | null;
380
+ /**
381
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
382
+ */
383
+ secondaryLanguage?: 'EN' | null;
384
+ }
385
+ /**
386
+ * Scenario used in a simulation
387
+ */
388
+ interface Scenario {
389
+ /**
390
+ * Scenario ID
391
+ */
392
+ id: string;
393
+ /**
394
+ * Scenario description
395
+ */
396
+ description?: string | null;
397
+ }
398
+ }
399
+ }
400
+ /**
401
+ * Paginated list of simulation run plan jobs
402
+ */
403
+ export interface SimulationListRunPlanJobsResponse {
404
+ data: Array<SimulationListRunPlanJobsResponse.Data>;
405
+ pagination: SimulationListRunPlanJobsResponse.Pagination;
406
+ }
407
+ export declare namespace SimulationListRunPlanJobsResponse {
408
+ interface Data {
409
+ /**
410
+ * When the job was created
411
+ */
412
+ createdAt: string;
413
+ /**
414
+ * ID of the simulation run plan
415
+ */
416
+ simulationRunPlanId: string;
417
+ /**
418
+ * ID of the simulation run plan job
419
+ */
420
+ simulationRunPlanJobId: string;
421
+ /**
422
+ * Job status
423
+ */
424
+ status: string;
425
+ /**
426
+ * How the job was triggered (SCHEDULED or USER_TRIGGERED_FROM_UI)
427
+ */
428
+ triggeredBy: string;
429
+ /**
430
+ * When the job ended
431
+ */
432
+ endedAt?: string | null;
433
+ /**
434
+ * When the job started
435
+ */
436
+ startedAt?: string | null;
437
+ }
438
+ interface Pagination {
439
+ /**
440
+ * Whether there are more results available
441
+ */
442
+ hasMore: boolean;
443
+ /**
444
+ * Total number of matching plan jobs
445
+ */
446
+ total: number;
447
+ /**
448
+ * Cursor to use for fetching the next page
449
+ */
450
+ nextCursor?: string | null;
451
+ }
452
+ }
453
+ export interface SimulationListScenariosResponse {
454
+ data: Array<SimulationListScenariosResponse.Data>;
455
+ pagination: SimulationListScenariosResponse.Pagination;
456
+ }
457
+ export declare namespace SimulationListScenariosResponse {
458
+ interface Data {
459
+ /**
460
+ * Unique identifier of the scenario
461
+ */
462
+ id: string;
463
+ /**
464
+ * Creation timestamp in ISO 8601 format
465
+ */
466
+ createdAt: string;
467
+ /**
468
+ * Description of the scenario
469
+ */
470
+ description: string | null;
471
+ /**
472
+ * Name of the scenario (from the start node content)
473
+ */
474
+ name: string | null;
475
+ /**
476
+ * Ordered list of steps in the scenario (excludes the START node)
477
+ */
478
+ steps: Array<Data.Step>;
479
+ /**
480
+ * Last update timestamp in ISO 8601 format
481
+ */
482
+ updatedAt: string;
483
+ }
484
+ namespace Data {
485
+ interface Step {
486
+ /**
487
+ * Content/text of the step
488
+ */
489
+ content: string | null;
490
+ /**
491
+ * Type of step in the scenario
492
+ */
493
+ type: 'START' | 'AGENT_TURN' | 'CUSTOMER_TURN' | 'CUSTOMER_FIRST_MESSAGE' | 'CUSTOMER_SILENCE' | 'VOICEMAIL';
494
+ }
495
+ }
496
+ interface Pagination {
497
+ /**
498
+ * Whether there are more items to fetch
499
+ */
500
+ hasMore: boolean;
501
+ /**
502
+ * Cursor for the next page of items
503
+ */
504
+ nextCursor: string | null;
505
+ /**
506
+ * Total number of items
507
+ */
508
+ total: number;
509
+ }
510
+ }
511
+ export interface SimulationLookupSimulationJobResponse {
512
+ /**
513
+ * Simulation job with related entities
514
+ */
515
+ data: SimulationLookupSimulationJobResponse.Data;
516
+ }
517
+ export declare namespace SimulationLookupSimulationJobResponse {
518
+ /**
519
+ * Simulation job with related entities
520
+ */
521
+ interface Data {
522
+ /**
523
+ * Agent endpoint used in a simulation
524
+ */
525
+ agentEndpoint: Data.AgentEndpoint;
526
+ /**
527
+ * When the job was created
528
+ */
529
+ createdAt: string;
530
+ persona: Data.Persona;
531
+ /**
532
+ * Processing status
533
+ */
534
+ processingStatus: string;
535
+ /**
536
+ * Scenario used in a simulation
537
+ */
538
+ scenario: Data.Scenario;
539
+ /**
540
+ * Simulation job ID
541
+ */
542
+ simulationJobId: string;
543
+ /**
544
+ * Job status
545
+ */
546
+ status: string;
547
+ /**
548
+ * ID of the call created for this simulation job. Null if the call has not been
549
+ * created yet.
550
+ */
551
+ callId?: string | null;
552
+ /**
553
+ * When the job completed
554
+ */
555
+ completedAt?: string | null;
556
+ /**
557
+ * Phone number provisioned by Roark for this simulation job in E.164 format. Null
558
+ * if the simulation job is queued and has not been assigned a phone number yet.
559
+ */
560
+ roarkPhoneNumber?: string | null;
561
+ /**
562
+ * When the job started
563
+ */
564
+ startedAt?: string | null;
565
+ }
566
+ namespace Data {
567
+ /**
568
+ * Agent endpoint used in a simulation
569
+ */
570
+ interface AgentEndpoint {
571
+ /**
572
+ * Agent endpoint ID
573
+ */
574
+ id: string;
575
+ /**
576
+ * Agent endpoint name
577
+ */
578
+ name: string;
579
+ /**
580
+ * Agent endpoint phone number
581
+ */
582
+ phoneNumber: string | null;
583
+ /**
584
+ * Agent endpoint type
585
+ */
586
+ type: string;
587
+ }
588
+ interface Persona {
589
+ /**
590
+ * Unique identifier of the persona
591
+ */
592
+ id: string;
593
+ /**
594
+ * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
595
+ * optional variants
596
+ */
597
+ accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT' | 'ID' | 'TH' | 'JP';
598
+ /**
599
+ * Background noise setting
600
+ */
601
+ backgroundNoise: 'NONE' | 'AIRPORT' | 'CHILDREN_PLAYING' | 'CITY' | 'COFFEE_SHOP' | 'DRIVING' | 'OFFICE' | 'THUNDERSTORM';
602
+ /**
603
+ * Base emotional state of the persona
604
+ */
605
+ baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED';
606
+ /**
607
+ * How the persona confirms information
608
+ */
609
+ confirmationStyle: 'EXPLICIT' | 'VAGUE';
610
+ /**
611
+ * Creation timestamp
612
+ */
613
+ createdAt: string;
614
+ /**
615
+ * Gender of the persona
616
+ */
617
+ gender: 'MALE' | 'FEMALE' | 'NEUTRAL';
618
+ /**
619
+ * Whether the persona uses filler words like "um" and "uh"
620
+ */
621
+ hasDisfluencies: boolean;
622
+ /**
623
+ * How clearly the persona expresses their intentions
624
+ */
625
+ intentClarity: 'CLEAR' | 'INDIRECT' | 'VAGUE';
626
+ /**
627
+ * Primary language ISO 639-1 code for the persona
628
+ */
629
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH' | 'JA';
630
+ /**
631
+ * How reliable the persona's memory is
632
+ */
633
+ memoryReliability: 'HIGH' | 'LOW';
634
+ /**
635
+ * The name the agent will identify as during conversations
636
+ */
637
+ name: string;
638
+ /**
639
+ * Additional custom properties about the persona
640
+ */
641
+ properties: Record<string, unknown>;
642
+ /**
643
+ * Speech clarity of the persona
644
+ */
645
+ speechClarity: 'CLEAR' | 'VAGUE' | 'RAMBLING';
646
+ /**
647
+ * Speech pace of the persona
648
+ */
649
+ speechPace: 'SLOW' | 'NORMAL' | 'FAST';
650
+ /**
651
+ * Last update timestamp
652
+ */
653
+ updatedAt: string;
654
+ /**
655
+ * Background story and behavioral patterns for the persona
656
+ */
657
+ backstoryPrompt?: string | null;
658
+ /**
659
+ * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
660
+ */
661
+ secondaryLanguage?: 'EN' | null;
662
+ }
663
+ /**
664
+ * Scenario used in a simulation
665
+ */
666
+ interface Scenario {
667
+ /**
668
+ * Scenario ID
669
+ */
670
+ id: string;
671
+ /**
672
+ * Scenario description
673
+ */
674
+ description?: string | null;
675
+ }
676
+ }
677
+ }
678
+ export interface SimulationStartRunPlanJobResponse {
679
+ /**
680
+ * Response when triggering a simulation run plan
681
+ */
682
+ data: SimulationStartRunPlanJobResponse.Data;
683
+ }
684
+ export declare namespace SimulationStartRunPlanJobResponse {
685
+ /**
686
+ * Response when triggering a simulation run plan
687
+ */
688
+ interface Data {
689
+ /**
690
+ * When the job was created
691
+ */
692
+ createdAt: string;
693
+ /**
694
+ * ID of the simulation run plan that was executed
695
+ */
696
+ simulationRunPlanId: string;
697
+ /**
698
+ * ID of the simulation run plan job that was created
699
+ */
700
+ simulationRunPlanJobId: string;
701
+ /**
702
+ * Initial status of the job
703
+ */
704
+ status: string;
705
+ }
706
+ }
707
+ export interface SimulationListRunPlanJobsParams {
708
+ /**
709
+ * Cursor for pagination - use the nextCursor value from a previous response
710
+ */
711
+ after?: string;
712
+ /**
713
+ * Filter by label ID attached to the plan job. Use this if you know the label ID.
714
+ */
715
+ labelId?: string;
716
+ /**
717
+ * Filter by label name attached to the plan job. More user-friendly alternative to
718
+ * labelId. Case-insensitive.
719
+ */
720
+ labelName?: string;
721
+ /**
722
+ * Maximum number of plan jobs to return (default: 20, max: 50)
723
+ */
724
+ limit?: number;
725
+ /**
726
+ * Filter by simulation run plan ID
727
+ */
728
+ simulationRunPlanId?: string;
729
+ /**
730
+ * Filter by plan job status (PENDING, CREATING_SNAPSHOTS, CREATING_SIMULATIONS,
731
+ * RUNNING_SIMULATIONS, COMPLETED, FAILED, TIMED_OUT, CANCELLED, CANCELLING)
732
+ */
733
+ status?: string;
734
+ }
735
+ export interface SimulationListScenariosParams {
736
+ after?: string;
737
+ limit?: number;
738
+ }
739
+ export interface SimulationLookupSimulationJobParams {
740
+ /**
741
+ * Phone number provisioned by Roark for the simulation job in E.164 format. In the
742
+ * case of an inbound simulation, this is the number that calls your agent; in the
743
+ * case of an outbound simulation, this is the number you call from your agent.
744
+ */
745
+ roarkPhoneNumber: unknown;
746
+ /**
747
+ * ISO 8601 timestamp of when the call was received. Alternatively, any time
748
+ * between the start and end of the call is valid. Defaults to the current time,
749
+ * which fetches any jobs that are currently ongoing.
750
+ */
751
+ callReceivedAt?: unknown;
752
+ }
753
+ export declare namespace Simulation {
754
+ export { type SimulationGetRunPlanJobResponse as SimulationGetRunPlanJobResponse, type SimulationGetSimulationJobByIDResponse as SimulationGetSimulationJobByIDResponse, type SimulationListRunPlanJobsResponse as SimulationListRunPlanJobsResponse, type SimulationListScenariosResponse as SimulationListScenariosResponse, type SimulationLookupSimulationJobResponse as SimulationLookupSimulationJobResponse, type SimulationStartRunPlanJobResponse as SimulationStartRunPlanJobResponse, type SimulationListRunPlanJobsParams as SimulationListRunPlanJobsParams, type SimulationListScenariosParams as SimulationListScenariosParams, type SimulationLookupSimulationJobParams as SimulationLookupSimulationJobParams, };
755
+ }
756
+ //# sourceMappingURL=simulation.d.mts.map