@roarkanalytics/sdk 2.21.0 → 2.21.2

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 (502) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +112 -51
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/client.d.mts +196 -0
  12. package/client.d.mts.map +1 -0
  13. package/client.d.ts +196 -0
  14. package/client.d.ts.map +1 -0
  15. package/client.js +472 -0
  16. package/client.js.map +1 -0
  17. package/client.mjs +468 -0
  18. package/client.mjs.map +1 -0
  19. package/core/api-promise.d.mts +46 -0
  20. package/core/api-promise.d.mts.map +1 -0
  21. package/core/api-promise.d.ts +46 -0
  22. package/core/api-promise.d.ts.map +1 -0
  23. package/core/api-promise.js +74 -0
  24. package/core/api-promise.js.map +1 -0
  25. package/core/api-promise.mjs +70 -0
  26. package/core/api-promise.mjs.map +1 -0
  27. package/core/error.d.mts +46 -0
  28. package/core/error.d.mts.map +1 -0
  29. package/core/error.d.ts +46 -0
  30. package/core/error.d.ts.map +1 -0
  31. package/core/error.js +113 -0
  32. package/core/error.js.map +1 -0
  33. package/core/error.mjs +97 -0
  34. package/core/error.mjs.map +1 -0
  35. package/core/resource.d.mts +6 -0
  36. package/core/resource.d.mts.map +1 -0
  37. package/core/resource.d.ts +6 -0
  38. package/core/resource.d.ts.map +1 -0
  39. package/core/resource.js +11 -0
  40. package/core/resource.js.map +1 -0
  41. package/core/resource.mjs +7 -0
  42. package/core/resource.mjs.map +1 -0
  43. package/core/uploads.d.mts +3 -0
  44. package/core/uploads.d.mts.map +1 -0
  45. package/core/uploads.d.ts +3 -0
  46. package/core/uploads.d.ts.map +1 -0
  47. package/core/uploads.js +6 -0
  48. package/core/uploads.js.map +1 -0
  49. package/core/uploads.mjs +2 -0
  50. package/core/uploads.mjs.map +1 -0
  51. package/error.d.mts +2 -0
  52. package/error.d.mts.map +1 -0
  53. package/error.d.ts +1 -46
  54. package/error.d.ts.map +1 -1
  55. package/error.js +3 -110
  56. package/error.js.map +1 -1
  57. package/error.mjs +1 -96
  58. package/error.mjs.map +1 -1
  59. package/index.d.mts +6 -132
  60. package/index.d.mts.map +1 -0
  61. package/index.d.ts +5 -131
  62. package/index.d.ts.map +1 -1
  63. package/index.js +12 -130
  64. package/index.js.map +1 -1
  65. package/index.mjs +5 -103
  66. package/index.mjs.map +1 -1
  67. package/internal/builtin-types.d.mts +73 -0
  68. package/internal/builtin-types.d.mts.map +1 -0
  69. package/internal/builtin-types.d.ts +73 -0
  70. package/internal/builtin-types.d.ts.map +1 -0
  71. package/internal/builtin-types.js +4 -0
  72. package/internal/builtin-types.js.map +1 -0
  73. package/internal/builtin-types.mjs +3 -0
  74. package/internal/builtin-types.mjs.map +1 -0
  75. package/internal/detect-platform.d.mts +15 -0
  76. package/internal/detect-platform.d.mts.map +1 -0
  77. package/internal/detect-platform.d.ts +15 -0
  78. package/internal/detect-platform.d.ts.map +1 -0
  79. package/internal/detect-platform.js +162 -0
  80. package/internal/detect-platform.js.map +1 -0
  81. package/internal/detect-platform.mjs +157 -0
  82. package/internal/detect-platform.mjs.map +1 -0
  83. package/internal/errors.d.mts +3 -0
  84. package/internal/errors.d.mts.map +1 -0
  85. package/internal/errors.d.ts +3 -0
  86. package/internal/errors.d.ts.map +1 -0
  87. package/internal/errors.js +41 -0
  88. package/internal/errors.js.map +1 -0
  89. package/internal/errors.mjs +36 -0
  90. package/internal/errors.mjs.map +1 -0
  91. package/internal/headers.d.mts +20 -0
  92. package/internal/headers.d.mts.map +1 -0
  93. package/internal/headers.d.ts +20 -0
  94. package/internal/headers.d.ts.map +1 -0
  95. package/internal/headers.js +79 -0
  96. package/internal/headers.js.map +1 -0
  97. package/internal/headers.mjs +74 -0
  98. package/internal/headers.mjs.map +1 -0
  99. package/internal/parse.d.mts +12 -0
  100. package/internal/parse.d.mts.map +1 -0
  101. package/internal/parse.d.ts +12 -0
  102. package/internal/parse.d.ts.map +1 -0
  103. package/internal/parse.js +40 -0
  104. package/internal/parse.js.map +1 -0
  105. package/internal/parse.mjs +37 -0
  106. package/internal/parse.mjs.map +1 -0
  107. package/internal/qs/formats.d.mts +7 -0
  108. package/internal/qs/formats.d.mts.map +1 -0
  109. package/internal/qs/formats.d.ts +1 -0
  110. package/internal/qs/formats.d.ts.map +1 -1
  111. package/internal/qs/formats.js +4 -2
  112. package/internal/qs/formats.js.map +1 -1
  113. package/internal/qs/formats.mjs +2 -1
  114. package/internal/qs/formats.mjs.map +1 -1
  115. package/internal/qs/index.d.mts +10 -0
  116. package/internal/qs/index.d.mts.map +1 -0
  117. package/internal/qs/index.d.ts.map +1 -1
  118. package/internal/qs/stringify.d.mts +3 -0
  119. package/internal/qs/stringify.d.mts.map +1 -0
  120. package/internal/qs/stringify.d.ts.map +1 -1
  121. package/internal/qs/stringify.js +16 -19
  122. package/internal/qs/stringify.js.map +1 -1
  123. package/internal/qs/stringify.mjs +17 -19
  124. package/internal/qs/stringify.mjs.map +1 -1
  125. package/internal/qs/types.d.mts +57 -0
  126. package/internal/qs/types.d.mts.map +1 -0
  127. package/internal/qs/utils.d.mts +15 -0
  128. package/internal/qs/utils.d.mts.map +1 -0
  129. package/internal/qs/utils.d.ts +1 -0
  130. package/internal/qs/utils.d.ts.map +1 -1
  131. package/internal/qs/utils.js +22 -21
  132. package/internal/qs/utils.js.map +1 -1
  133. package/internal/qs/utils.mjs +12 -12
  134. package/internal/qs/utils.mjs.map +1 -1
  135. package/internal/request-options.d.mts +75 -0
  136. package/internal/request-options.d.mts.map +1 -0
  137. package/internal/request-options.d.ts +75 -0
  138. package/internal/request-options.d.ts.map +1 -0
  139. package/internal/request-options.js +14 -0
  140. package/internal/request-options.js.map +1 -0
  141. package/internal/request-options.mjs +10 -0
  142. package/internal/request-options.mjs.map +1 -0
  143. package/internal/shim-types.d.mts +17 -0
  144. package/internal/shim-types.d.mts.map +1 -0
  145. package/internal/shim-types.d.ts +17 -0
  146. package/internal/shim-types.d.ts.map +1 -0
  147. package/internal/shim-types.js +4 -0
  148. package/internal/shim-types.js.map +1 -0
  149. package/internal/shim-types.mjs +3 -0
  150. package/internal/shim-types.mjs.map +1 -0
  151. package/internal/shims.d.mts +20 -0
  152. package/internal/shims.d.mts.map +1 -0
  153. package/internal/shims.d.ts +20 -0
  154. package/internal/shims.d.ts.map +1 -0
  155. package/internal/shims.js +92 -0
  156. package/internal/shims.js.map +1 -0
  157. package/internal/shims.mjs +85 -0
  158. package/internal/shims.mjs.map +1 -0
  159. package/internal/to-file.d.mts +45 -0
  160. package/internal/to-file.d.mts.map +1 -0
  161. package/internal/to-file.d.ts +45 -0
  162. package/internal/to-file.d.ts.map +1 -0
  163. package/internal/to-file.js +91 -0
  164. package/internal/to-file.js.map +1 -0
  165. package/internal/to-file.mjs +88 -0
  166. package/internal/to-file.mjs.map +1 -0
  167. package/internal/tslib.js +81 -0
  168. package/internal/tslib.mjs +17 -0
  169. package/internal/types.d.mts +69 -0
  170. package/internal/types.d.mts.map +1 -0
  171. package/internal/types.d.ts +69 -0
  172. package/internal/types.d.ts.map +1 -0
  173. package/internal/types.js +4 -0
  174. package/internal/types.js.map +1 -0
  175. package/internal/types.mjs +3 -0
  176. package/internal/types.mjs.map +1 -0
  177. package/internal/uploads.d.mts +42 -0
  178. package/internal/uploads.d.mts.map +1 -0
  179. package/internal/uploads.d.ts +42 -0
  180. package/internal/uploads.d.ts.map +1 -0
  181. package/internal/uploads.js +141 -0
  182. package/internal/uploads.js.map +1 -0
  183. package/internal/uploads.mjs +131 -0
  184. package/internal/uploads.mjs.map +1 -0
  185. package/internal/utils/base64.d.mts +3 -0
  186. package/internal/utils/base64.d.mts.map +1 -0
  187. package/internal/utils/base64.d.ts +3 -0
  188. package/internal/utils/base64.d.ts.map +1 -0
  189. package/internal/utils/base64.js +38 -0
  190. package/internal/utils/base64.js.map +1 -0
  191. package/internal/utils/base64.mjs +33 -0
  192. package/internal/utils/base64.mjs.map +1 -0
  193. package/internal/utils/bytes.d.mts +4 -0
  194. package/internal/utils/bytes.d.mts.map +1 -0
  195. package/internal/utils/bytes.d.ts +4 -0
  196. package/internal/utils/bytes.d.ts.map +1 -0
  197. package/internal/utils/bytes.js +31 -0
  198. package/internal/utils/bytes.js.map +1 -0
  199. package/internal/utils/bytes.mjs +26 -0
  200. package/internal/utils/bytes.mjs.map +1 -0
  201. package/internal/utils/env.d.mts +9 -0
  202. package/internal/utils/env.d.mts.map +1 -0
  203. package/internal/utils/env.d.ts +9 -0
  204. package/internal/utils/env.d.ts.map +1 -0
  205. package/internal/utils/env.js +22 -0
  206. package/internal/utils/env.js.map +1 -0
  207. package/internal/utils/env.mjs +18 -0
  208. package/internal/utils/env.mjs.map +1 -0
  209. package/internal/utils/log.d.mts +37 -0
  210. package/internal/utils/log.d.mts.map +1 -0
  211. package/internal/utils/log.d.ts +37 -0
  212. package/internal/utils/log.d.ts.map +1 -0
  213. package/internal/utils/log.js +85 -0
  214. package/internal/utils/log.js.map +1 -0
  215. package/internal/utils/log.mjs +79 -0
  216. package/internal/utils/log.mjs.map +1 -0
  217. package/internal/utils/path.d.mts +15 -0
  218. package/internal/utils/path.d.mts.map +1 -0
  219. package/internal/utils/path.d.ts +15 -0
  220. package/internal/utils/path.d.ts.map +1 -0
  221. package/internal/utils/path.js +79 -0
  222. package/internal/utils/path.js.map +1 -0
  223. package/internal/utils/path.mjs +74 -0
  224. package/internal/utils/path.mjs.map +1 -0
  225. package/internal/utils/sleep.d.mts +2 -0
  226. package/internal/utils/sleep.d.mts.map +1 -0
  227. package/internal/utils/sleep.d.ts +2 -0
  228. package/internal/utils/sleep.d.ts.map +1 -0
  229. package/internal/utils/sleep.js +7 -0
  230. package/internal/utils/sleep.js.map +1 -0
  231. package/internal/utils/sleep.mjs +3 -0
  232. package/internal/utils/sleep.mjs.map +1 -0
  233. package/internal/utils/uuid.d.mts +5 -0
  234. package/internal/utils/uuid.d.mts.map +1 -0
  235. package/internal/utils/uuid.d.ts +5 -0
  236. package/internal/utils/uuid.d.ts.map +1 -0
  237. package/internal/utils/uuid.js +19 -0
  238. package/internal/utils/uuid.js.map +1 -0
  239. package/internal/utils/uuid.mjs +15 -0
  240. package/internal/utils/uuid.mjs.map +1 -0
  241. package/internal/utils/values.d.mts +18 -0
  242. package/internal/utils/values.d.mts.map +1 -0
  243. package/internal/utils/values.d.ts +18 -0
  244. package/internal/utils/values.d.ts.map +1 -0
  245. package/internal/utils/values.js +112 -0
  246. package/internal/utils/values.js.map +1 -0
  247. package/internal/utils/values.mjs +94 -0
  248. package/internal/utils/values.mjs.map +1 -0
  249. package/internal/utils.d.mts +7 -0
  250. package/internal/utils.d.mts.map +1 -0
  251. package/internal/utils.d.ts +7 -0
  252. package/internal/utils.d.ts.map +1 -0
  253. package/internal/utils.js +11 -0
  254. package/internal/utils.js.map +1 -0
  255. package/internal/utils.mjs +8 -0
  256. package/internal/utils.mjs.map +1 -0
  257. package/package.json +108 -73
  258. package/resource.d.mts +2 -0
  259. package/resource.d.mts.map +1 -0
  260. package/resource.d.ts +1 -5
  261. package/resource.d.ts.map +1 -1
  262. package/resource.js +3 -8
  263. package/resource.js.map +1 -1
  264. package/resource.mjs +1 -6
  265. package/resource.mjs.map +1 -1
  266. package/resources/call.d.mts +1207 -0
  267. package/resources/call.d.mts.map +1 -0
  268. package/resources/call.d.ts +9 -10
  269. package/resources/call.d.ts.map +1 -1
  270. package/resources/call.js +17 -16
  271. package/resources/call.js.map +1 -1
  272. package/resources/call.mjs +17 -16
  273. package/resources/call.mjs.map +1 -1
  274. package/resources/evaluation.d.mts +1307 -0
  275. package/resources/evaluation.d.mts.map +1 -0
  276. package/resources/evaluation.d.ts +8 -9
  277. package/resources/evaluation.d.ts.map +1 -1
  278. package/resources/evaluation.js +15 -14
  279. package/resources/evaluation.js.map +1 -1
  280. package/resources/evaluation.mjs +15 -14
  281. package/resources/evaluation.mjs.map +1 -1
  282. package/resources/health.d.mts +29 -0
  283. package/resources/health.d.mts.map +1 -0
  284. package/resources/health.d.ts +4 -3
  285. package/resources/health.d.ts.map +1 -1
  286. package/resources/health.js +1 -1
  287. package/resources/health.js.map +1 -1
  288. package/resources/health.mjs +1 -1
  289. package/resources/health.mjs.map +1 -1
  290. package/resources/index.d.mts +8 -0
  291. package/resources/index.d.mts.map +1 -0
  292. package/resources/index.d.ts.map +1 -1
  293. package/resources/integrations.d.mts +114 -0
  294. package/resources/integrations.d.mts.map +1 -0
  295. package/resources/integrations.d.ts +5 -4
  296. package/resources/integrations.d.ts.map +1 -1
  297. package/resources/integrations.js +1 -1
  298. package/resources/integrations.js.map +1 -1
  299. package/resources/integrations.mjs +1 -1
  300. package/resources/integrations.mjs.map +1 -1
  301. package/resources/metric.d.mts +75 -0
  302. package/resources/metric.d.mts.map +1 -0
  303. package/resources/metric.d.ts +4 -3
  304. package/resources/metric.d.ts.map +1 -1
  305. package/resources/metric.js +1 -1
  306. package/resources/metric.js.map +1 -1
  307. package/resources/metric.mjs +1 -1
  308. package/resources/metric.mjs.map +1 -1
  309. package/resources/persona.d.mts +528 -0
  310. package/resources/persona.d.mts.map +1 -0
  311. package/resources/persona.d.ts +8 -9
  312. package/resources/persona.d.ts.map +1 -1
  313. package/resources/persona.js +23 -13
  314. package/resources/persona.js.map +1 -1
  315. package/resources/persona.mjs +23 -13
  316. package/resources/persona.mjs.map +1 -1
  317. package/resources/simulation.d.mts +802 -0
  318. package/resources/simulation.d.mts.map +1 -0
  319. package/resources/simulation.d.ts +10 -11
  320. package/resources/simulation.d.ts.map +1 -1
  321. package/resources/simulation.js +26 -15
  322. package/resources/simulation.js.map +1 -1
  323. package/resources/simulation.mjs +26 -15
  324. package/resources/simulation.mjs.map +1 -1
  325. package/resources.d.mts +2 -0
  326. package/resources.d.mts.map +1 -0
  327. package/resources.d.ts.map +1 -1
  328. package/resources.js +2 -15
  329. package/resources.js.map +1 -1
  330. package/src/api-promise.ts +2 -0
  331. package/src/client.ts +842 -0
  332. package/src/core/README.md +3 -0
  333. package/src/core/api-promise.ts +92 -0
  334. package/src/core/error.ts +130 -0
  335. package/src/core/resource.ts +11 -0
  336. package/src/core/uploads.ts +2 -0
  337. package/src/error.ts +2 -130
  338. package/src/index.ts +5 -308
  339. package/src/internal/README.md +3 -0
  340. package/src/internal/builtin-types.ts +93 -0
  341. package/src/internal/detect-platform.ts +196 -0
  342. package/src/internal/errors.ts +33 -0
  343. package/src/internal/headers.ts +97 -0
  344. package/src/internal/parse.ts +56 -0
  345. package/src/internal/qs/formats.ts +2 -1
  346. package/src/internal/qs/stringify.ts +17 -20
  347. package/src/internal/qs/utils.ts +14 -14
  348. package/src/internal/request-options.ts +91 -0
  349. package/src/internal/shim-types.ts +26 -0
  350. package/src/internal/shims.ts +107 -0
  351. package/src/internal/to-file.ts +154 -0
  352. package/src/internal/types.ts +95 -0
  353. package/src/internal/uploads.ts +187 -0
  354. package/src/internal/utils/base64.ts +40 -0
  355. package/src/internal/utils/bytes.ts +32 -0
  356. package/src/internal/utils/env.ts +18 -0
  357. package/src/internal/utils/log.ts +126 -0
  358. package/src/internal/utils/path.ts +88 -0
  359. package/src/internal/utils/sleep.ts +3 -0
  360. package/src/internal/utils/uuid.ts +17 -0
  361. package/src/internal/utils/values.ts +105 -0
  362. package/src/internal/utils.ts +8 -0
  363. package/src/resource.ts +2 -11
  364. package/src/resources/call.ts +19 -38
  365. package/src/resources/evaluation.ts +21 -37
  366. package/src/resources/health.ts +4 -3
  367. package/src/resources/integrations.ts +7 -6
  368. package/src/resources/metric.ts +4 -3
  369. package/src/resources/persona.ts +16 -29
  370. package/src/resources/simulation.ts +22 -43
  371. package/src/tsconfig.json +2 -2
  372. package/src/uploads.ts +2 -255
  373. package/src/version.ts +1 -1
  374. package/uploads.d.mts +2 -0
  375. package/uploads.d.mts.map +1 -0
  376. package/uploads.d.ts +1 -74
  377. package/uploads.d.ts.map +1 -1
  378. package/uploads.js +3 -168
  379. package/uploads.js.map +1 -1
  380. package/uploads.mjs +1 -157
  381. package/uploads.mjs.map +1 -1
  382. package/version.d.mts +2 -0
  383. package/version.d.mts.map +1 -0
  384. package/version.d.ts +1 -1
  385. package/version.js +1 -1
  386. package/version.mjs +1 -1
  387. package/_shims/MultipartBody.d.ts +0 -9
  388. package/_shims/MultipartBody.d.ts.map +0 -1
  389. package/_shims/MultipartBody.js +0 -16
  390. package/_shims/MultipartBody.js.map +0 -1
  391. package/_shims/MultipartBody.mjs +0 -12
  392. package/_shims/MultipartBody.mjs.map +0 -1
  393. package/_shims/README.md +0 -46
  394. package/_shims/auto/runtime-bun.d.ts +0 -5
  395. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  396. package/_shims/auto/runtime-bun.js +0 -21
  397. package/_shims/auto/runtime-bun.js.map +0 -1
  398. package/_shims/auto/runtime-bun.mjs +0 -2
  399. package/_shims/auto/runtime-bun.mjs.map +0 -1
  400. package/_shims/auto/runtime-node.d.ts +0 -5
  401. package/_shims/auto/runtime-node.d.ts.map +0 -1
  402. package/_shims/auto/runtime-node.js +0 -21
  403. package/_shims/auto/runtime-node.js.map +0 -1
  404. package/_shims/auto/runtime-node.mjs +0 -2
  405. package/_shims/auto/runtime-node.mjs.map +0 -1
  406. package/_shims/auto/runtime.d.ts +0 -5
  407. package/_shims/auto/runtime.d.ts.map +0 -1
  408. package/_shims/auto/runtime.js +0 -21
  409. package/_shims/auto/runtime.js.map +0 -1
  410. package/_shims/auto/runtime.mjs +0 -2
  411. package/_shims/auto/runtime.mjs.map +0 -1
  412. package/_shims/auto/types-node.d.ts +0 -5
  413. package/_shims/auto/types-node.d.ts.map +0 -1
  414. package/_shims/auto/types-node.js +0 -21
  415. package/_shims/auto/types-node.js.map +0 -1
  416. package/_shims/auto/types-node.mjs +0 -2
  417. package/_shims/auto/types-node.mjs.map +0 -1
  418. package/_shims/auto/types.d.ts +0 -101
  419. package/_shims/auto/types.js +0 -3
  420. package/_shims/auto/types.mjs +0 -3
  421. package/_shims/bun-runtime.d.ts +0 -6
  422. package/_shims/bun-runtime.d.ts.map +0 -1
  423. package/_shims/bun-runtime.js +0 -14
  424. package/_shims/bun-runtime.js.map +0 -1
  425. package/_shims/bun-runtime.mjs +0 -10
  426. package/_shims/bun-runtime.mjs.map +0 -1
  427. package/_shims/index.d.ts +0 -83
  428. package/_shims/index.js +0 -17
  429. package/_shims/index.mjs +0 -11
  430. package/_shims/manual-types.d.ts +0 -12
  431. package/_shims/manual-types.js +0 -3
  432. package/_shims/manual-types.mjs +0 -3
  433. package/_shims/node-runtime.d.ts +0 -3
  434. package/_shims/node-runtime.d.ts.map +0 -1
  435. package/_shims/node-runtime.js +0 -89
  436. package/_shims/node-runtime.js.map +0 -1
  437. package/_shims/node-runtime.mjs +0 -56
  438. package/_shims/node-runtime.mjs.map +0 -1
  439. package/_shims/node-types.d.ts +0 -42
  440. package/_shims/node-types.js +0 -3
  441. package/_shims/node-types.mjs +0 -3
  442. package/_shims/registry.d.ts +0 -37
  443. package/_shims/registry.d.ts.map +0 -1
  444. package/_shims/registry.js +0 -41
  445. package/_shims/registry.js.map +0 -1
  446. package/_shims/registry.mjs +0 -37
  447. package/_shims/registry.mjs.map +0 -1
  448. package/_shims/web-runtime.d.ts +0 -5
  449. package/_shims/web-runtime.d.ts.map +0 -1
  450. package/_shims/web-runtime.js +0 -78
  451. package/_shims/web-runtime.js.map +0 -1
  452. package/_shims/web-runtime.mjs +0 -71
  453. package/_shims/web-runtime.mjs.map +0 -1
  454. package/_shims/web-types.d.ts +0 -83
  455. package/_shims/web-types.js +0 -3
  456. package/_shims/web-types.mjs +0 -3
  457. package/core.d.ts +0 -255
  458. package/core.d.ts.map +0 -1
  459. package/core.js +0 -929
  460. package/core.js.map +0 -1
  461. package/core.mjs +0 -897
  462. package/core.mjs.map +0 -1
  463. package/shims/node.d.ts +0 -30
  464. package/shims/node.d.ts.map +0 -1
  465. package/shims/node.js +0 -31
  466. package/shims/node.js.map +0 -1
  467. package/shims/node.mjs +0 -5
  468. package/shims/node.mjs.map +0 -1
  469. package/shims/web.d.ts +0 -26
  470. package/shims/web.d.ts.map +0 -1
  471. package/shims/web.js +0 -31
  472. package/shims/web.js.map +0 -1
  473. package/shims/web.mjs +0 -5
  474. package/shims/web.mjs.map +0 -1
  475. package/src/_shims/MultipartBody.ts +0 -9
  476. package/src/_shims/README.md +0 -46
  477. package/src/_shims/auto/runtime-bun.ts +0 -4
  478. package/src/_shims/auto/runtime-node.ts +0 -4
  479. package/src/_shims/auto/runtime.ts +0 -4
  480. package/src/_shims/auto/types-node.ts +0 -4
  481. package/src/_shims/auto/types.d.ts +0 -101
  482. package/src/_shims/auto/types.js +0 -3
  483. package/src/_shims/auto/types.mjs +0 -3
  484. package/src/_shims/bun-runtime.ts +0 -14
  485. package/src/_shims/index.d.ts +0 -83
  486. package/src/_shims/index.js +0 -17
  487. package/src/_shims/index.mjs +0 -11
  488. package/src/_shims/manual-types.d.ts +0 -12
  489. package/src/_shims/manual-types.js +0 -3
  490. package/src/_shims/manual-types.mjs +0 -3
  491. package/src/_shims/node-runtime.ts +0 -81
  492. package/src/_shims/node-types.d.ts +0 -42
  493. package/src/_shims/node-types.js +0 -3
  494. package/src/_shims/node-types.mjs +0 -3
  495. package/src/_shims/registry.ts +0 -67
  496. package/src/_shims/web-runtime.ts +0 -103
  497. package/src/_shims/web-types.d.ts +0 -83
  498. package/src/_shims/web-types.js +0 -3
  499. package/src/_shims/web-types.mjs +0 -3
  500. package/src/core.ts +0 -1242
  501. package/src/shims/node.ts +0 -50
  502. package/src/shims/web.ts +0 -50
@@ -1,47 +1,40 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
6
7
 
7
8
  export class Call extends APIResource {
8
9
  /**
9
10
  * Create a new call with recording, transcript, agents, and customers
10
11
  */
11
- create(body: CallCreateParams, options?: Core.RequestOptions): Core.APIPromise<CallCreateResponse> {
12
+ create(body: CallCreateParams, options?: RequestOptions): APIPromise<CallCreateResponse> {
12
13
  return this._client.post('/v1/call', { body, ...options });
13
14
  }
14
15
 
15
16
  /**
16
17
  * Returns a paginated list of calls for the authenticated project.
17
18
  */
18
- list(query?: CallListParams, options?: Core.RequestOptions): Core.APIPromise<CallListResponse>;
19
- list(options?: Core.RequestOptions): Core.APIPromise<CallListResponse>;
20
19
  list(
21
- query: CallListParams | Core.RequestOptions = {},
22
- options?: Core.RequestOptions,
23
- ): Core.APIPromise<CallListResponse> {
24
- if (isRequestOptions(query)) {
25
- return this.list({}, query);
26
- }
20
+ query: CallListParams | null | undefined = {},
21
+ options?: RequestOptions,
22
+ ): APIPromise<CallListResponse> {
27
23
  return this._client.get('/v1/call', { query, ...options });
28
24
  }
29
25
 
30
26
  /**
31
27
  * Retrieve an existing call by its unique identifier
32
28
  */
33
- getById(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallGetByIDResponse> {
34
- return this._client.get(`/v1/call/${callId}`, options);
29
+ getByID(callID: string, options?: RequestOptions): APIPromise<CallGetByIDResponse> {
30
+ return this._client.get(path`/v1/call/${callID}`, options);
35
31
  }
36
32
 
37
33
  /**
38
34
  * Fetch all evaluation run results for a specific call.
39
35
  */
40
- listEvaluationRuns(
41
- callId: string,
42
- options?: Core.RequestOptions,
43
- ): Core.APIPromise<CallListEvaluationRunsResponse> {
44
- return this._client.get(`/v1/call/${callId}/evaluation-run`, options);
36
+ listEvaluationRuns(callID: string, options?: RequestOptions): APIPromise<CallListEvaluationRunsResponse> {
37
+ return this._client.get(path`/v1/call/${callID}/evaluation-run`, options);
45
38
  }
46
39
 
47
40
  /**
@@ -49,31 +42,19 @@ export class Call extends APIResource {
49
42
  * system-generated and custom metrics. Only returns successfully computed metrics.
50
43
  */
51
44
  listMetrics(
52
- callId: string,
53
- query?: CallListMetricsParams,
54
- options?: Core.RequestOptions,
55
- ): Core.APIPromise<CallListMetricsResponse>;
56
- listMetrics(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallListMetricsResponse>;
57
- listMetrics(
58
- callId: string,
59
- query: CallListMetricsParams | Core.RequestOptions = {},
60
- options?: Core.RequestOptions,
61
- ): Core.APIPromise<CallListMetricsResponse> {
62
- if (isRequestOptions(query)) {
63
- return this.listMetrics(callId, {}, query);
64
- }
65
- return this._client.get(`/v1/call/${callId}/metrics`, { query, ...options });
45
+ callID: string,
46
+ query: CallListMetricsParams | null | undefined = {},
47
+ options?: RequestOptions,
48
+ ): APIPromise<CallListMetricsResponse> {
49
+ return this._client.get(path`/v1/call/${callID}/metrics`, { query, ...options });
66
50
  }
67
51
 
68
52
  /**
69
53
  * Fetch detailed sentiment analysis results for a specific call, including
70
54
  * emotional tone, key phrases, and sentiment scores.
71
55
  */
72
- listSentimentRuns(
73
- callId: string,
74
- options?: Core.RequestOptions,
75
- ): Core.APIPromise<CallListSentimentRunsResponse> {
76
- return this._client.get(`/v1/call/${callId}/sentiment-run`, options);
56
+ listSentimentRuns(callID: string, options?: RequestOptions): APIPromise<CallListSentimentRunsResponse> {
57
+ return this._client.get(path`/v1/call/${callID}/sentiment-run`, options);
77
58
  }
78
59
  }
79
60
 
@@ -1,8 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
6
7
 
7
8
  export class Evaluation extends APIResource {
8
9
  /**
@@ -10,26 +11,26 @@ export class Evaluation extends APIResource {
10
11
  */
11
12
  createJob(
12
13
  body: EvaluationCreateJobParams,
13
- options?: Core.RequestOptions,
14
- ): Core.APIPromise<EvaluationCreateJobResponse> {
14
+ options?: RequestOptions,
15
+ ): APIPromise<EvaluationCreateJobResponse> {
15
16
  return this._client.post('/v1/evaluation/job', { body, ...options });
16
17
  }
17
18
 
18
19
  /**
19
20
  * Returns a specific evaluator with its blocks and configuration.
20
21
  */
21
- getEvaluatorById(
22
- evaluatorId: string,
23
- options?: Core.RequestOptions,
24
- ): Core.APIPromise<EvaluationGetEvaluatorByIDResponse> {
25
- return this._client.get(`/v1/evaluation/evaluators/${evaluatorId}`, options);
22
+ getEvaluatorByID(
23
+ evaluatorID: string,
24
+ options?: RequestOptions,
25
+ ): APIPromise<EvaluationGetEvaluatorByIDResponse> {
26
+ return this._client.get(path`/v1/evaluation/evaluators/${evaluatorID}`, options);
26
27
  }
27
28
 
28
29
  /**
29
30
  * Retrieve details of a specific evaluation job
30
31
  */
31
- getJob(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationGetJobResponse> {
32
- return this._client.get(`/v1/evaluation/job/${jobId}`, options);
32
+ getJob(jobID: string, options?: RequestOptions): APIPromise<EvaluationGetJobResponse> {
33
+ return this._client.get(path`/v1/evaluation/job/${jobID}`, options);
33
34
  }
34
35
 
35
36
  /**
@@ -37,17 +38,9 @@ export class Evaluation extends APIResource {
37
38
  * authenticated project.
38
39
  */
39
40
  listEvaluators(
40
- query?: EvaluationListEvaluatorsParams,
41
- options?: Core.RequestOptions,
42
- ): Core.APIPromise<EvaluationListEvaluatorsResponse>;
43
- listEvaluators(options?: Core.RequestOptions): Core.APIPromise<EvaluationListEvaluatorsResponse>;
44
- listEvaluators(
45
- query: EvaluationListEvaluatorsParams | Core.RequestOptions = {},
46
- options?: Core.RequestOptions,
47
- ): Core.APIPromise<EvaluationListEvaluatorsResponse> {
48
- if (isRequestOptions(query)) {
49
- return this.listEvaluators({}, query);
50
- }
41
+ query: EvaluationListEvaluatorsParams | null | undefined = {},
42
+ options?: RequestOptions,
43
+ ): APIPromise<EvaluationListEvaluatorsResponse> {
51
44
  return this._client.get('/v1/evaluation/evaluators', { query, ...options });
52
45
  }
53
46
 
@@ -55,20 +48,11 @@ export class Evaluation extends APIResource {
55
48
  * Retrieve paginated details of a specific evaluation job runs
56
49
  */
57
50
  listJobRuns(
58
- jobId: string,
59
- query?: EvaluationListJobRunsParams,
60
- options?: Core.RequestOptions,
61
- ): Core.APIPromise<EvaluationListJobRunsResponse>;
62
- listJobRuns(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationListJobRunsResponse>;
63
- listJobRuns(
64
- jobId: string,
65
- query: EvaluationListJobRunsParams | Core.RequestOptions = {},
66
- options?: Core.RequestOptions,
67
- ): Core.APIPromise<EvaluationListJobRunsResponse> {
68
- if (isRequestOptions(query)) {
69
- return this.listJobRuns(jobId, {}, query);
70
- }
71
- return this._client.get(`/v1/evaluation/job/${jobId}/runs`, { query, ...options });
51
+ jobID: string,
52
+ query: EvaluationListJobRunsParams | null | undefined = {},
53
+ options?: RequestOptions,
54
+ ): APIPromise<EvaluationListJobRunsResponse> {
55
+ return this._client.get(path`/v1/evaluation/job/${jobID}/runs`, { query, ...options });
72
56
  }
73
57
  }
74
58
 
@@ -1,13 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
5
6
 
6
7
  export class Health extends APIResource {
7
8
  /**
8
9
  * Returns the health status of the API and its dependencies
9
10
  */
10
- get(options?: Core.RequestOptions): Core.APIPromise<HealthGetResponse> {
11
+ get(options?: RequestOptions): APIPromise<HealthGetResponse> {
11
12
  return this._client.get('/health', options);
12
13
  }
13
14
  }
@@ -1,7 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
5
6
 
6
7
  export class Integrations extends APIResource {
7
8
  /**
@@ -16,8 +17,8 @@ export class Integrations extends APIResource {
16
17
  */
17
18
  createRetellCall(
18
19
  body: IntegrationCreateRetellCallParams,
19
- options?: Core.RequestOptions,
20
- ): Core.APIPromise<IntegrationCreateRetellCallResponse> {
20
+ options?: RequestOptions,
21
+ ): APIPromise<IntegrationCreateRetellCallResponse> {
21
22
  return this._client.post('/v1/retell/call', { body, ...options });
22
23
  }
23
24
 
@@ -44,8 +45,8 @@ export class Integrations extends APIResource {
44
45
  */
45
46
  createVapiCall(
46
47
  body: IntegrationCreateVapiCallParams,
47
- options?: Core.RequestOptions,
48
- ): Core.APIPromise<IntegrationCreateVapiCallResponse> {
48
+ options?: RequestOptions,
49
+ ): APIPromise<IntegrationCreateVapiCallResponse> {
49
50
  return this._client.post('/v1/vapi/call', { body, ...options });
50
51
  }
51
52
  }
@@ -1,7 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
5
6
 
6
7
  export class Metric extends APIResource {
7
8
  /**
@@ -9,7 +10,7 @@ export class Metric extends APIResource {
9
10
  * system-generated and custom metrics. Only returns metrics from enabled analysis
10
11
  * packages.
11
12
  */
12
- listDefinitions(options?: Core.RequestOptions): Core.APIPromise<MetricListDefinitionsResponse> {
13
+ listDefinitions(options?: RequestOptions): APIPromise<MetricListDefinitionsResponse> {
13
14
  return this._client.get('/v1/metric/definitions', options);
14
15
  }
15
16
  }
@@ -1,8 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
6
7
 
7
8
  export class Persona extends APIResource {
8
9
  /**
@@ -18,7 +19,7 @@ export class Persona extends APIResource {
18
19
  * });
19
20
  * ```
20
21
  */
21
- create(body: PersonaCreateParams, options?: Core.RequestOptions): Core.APIPromise<PersonaCreateResponse> {
22
+ create(body: PersonaCreateParams, options?: RequestOptions): APIPromise<PersonaCreateResponse> {
22
23
  return this._client.post('/v1/persona', { body, ...options });
23
24
  }
24
25
 
@@ -31,20 +32,11 @@ export class Persona extends APIResource {
31
32
  * ```
32
33
  */
33
34
  update(
34
- personaId: string,
35
- body?: PersonaUpdateParams,
36
- options?: Core.RequestOptions,
37
- ): Core.APIPromise<PersonaUpdateResponse>;
38
- update(personaId: string, options?: Core.RequestOptions): Core.APIPromise<PersonaUpdateResponse>;
39
- update(
40
- personaId: string,
41
- body: PersonaUpdateParams | Core.RequestOptions = {},
42
- options?: Core.RequestOptions,
43
- ): Core.APIPromise<PersonaUpdateResponse> {
44
- if (isRequestOptions(body)) {
45
- return this.update(personaId, {}, body);
46
- }
47
- return this._client.put(`/v1/persona/${personaId}`, { body, ...options });
35
+ personaID: string,
36
+ body: PersonaUpdateParams | null | undefined = {},
37
+ options?: RequestOptions,
38
+ ): APIPromise<PersonaUpdateResponse> {
39
+ return this._client.put(path`/v1/persona/${personaID}`, { body, ...options });
48
40
  }
49
41
 
50
42
  /**
@@ -55,15 +47,10 @@ export class Persona extends APIResource {
55
47
  * const personas = await client.persona.list();
56
48
  * ```
57
49
  */
58
- list(query?: PersonaListParams, options?: Core.RequestOptions): Core.APIPromise<PersonaListResponse>;
59
- list(options?: Core.RequestOptions): Core.APIPromise<PersonaListResponse>;
60
50
  list(
61
- query: PersonaListParams | Core.RequestOptions = {},
62
- options?: Core.RequestOptions,
63
- ): Core.APIPromise<PersonaListResponse> {
64
- if (isRequestOptions(query)) {
65
- return this.list({}, query);
66
- }
51
+ query: PersonaListParams | null | undefined = {},
52
+ options?: RequestOptions,
53
+ ): APIPromise<PersonaListResponse> {
67
54
  return this._client.get('/v1/persona', { query, ...options });
68
55
  }
69
56
 
@@ -72,11 +59,11 @@ export class Persona extends APIResource {
72
59
  *
73
60
  * @example
74
61
  * ```ts
75
- * const response = await client.persona.getById('personaId');
62
+ * const response = await client.persona.getByID('personaId');
76
63
  * ```
77
64
  */
78
- getById(personaId: string, options?: Core.RequestOptions): Core.APIPromise<PersonaGetByIDResponse> {
79
- return this._client.get(`/v1/persona/${personaId}`, options);
65
+ getByID(personaID: string, options?: RequestOptions): APIPromise<PersonaGetByIDResponse> {
66
+ return this._client.get(path`/v1/persona/${personaID}`, options);
80
67
  }
81
68
  }
82
69
 
@@ -1,8 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+ import { path } from '../internal/utils/path';
6
7
 
7
8
  export class Simulation extends APIResource {
8
9
  /**
@@ -16,11 +17,8 @@ export class Simulation extends APIResource {
16
17
  * );
17
18
  * ```
18
19
  */
19
- getRunPlanJob(
20
- jobId: unknown,
21
- options?: Core.RequestOptions,
22
- ): Core.APIPromise<SimulationGetRunPlanJobResponse> {
23
- return this._client.get(`/v1/simulation/plan/job/${jobId}`, options);
20
+ getRunPlanJob(jobID: unknown, options?: RequestOptions): APIPromise<SimulationGetRunPlanJobResponse> {
21
+ return this._client.get(path`/v1/simulation/plan/job/${jobID}`, options);
24
22
  }
25
23
 
26
24
  /**
@@ -30,16 +28,16 @@ export class Simulation extends APIResource {
30
28
  * @example
31
29
  * ```ts
32
30
  * const response =
33
- * await client.simulation.getSimulationJobById(
31
+ * await client.simulation.getSimulationJobByID(
34
32
  * '7f3e4d2c-8a91-4b5c-9e6f-1a2b3c4d5e6f',
35
33
  * );
36
34
  * ```
37
35
  */
38
- getSimulationJobById(
39
- jobId: unknown,
40
- options?: Core.RequestOptions,
41
- ): Core.APIPromise<SimulationGetSimulationJobByIDResponse> {
42
- return this._client.get(`/v1/simulation/job/${jobId}`, options);
36
+ getSimulationJobByID(
37
+ jobID: unknown,
38
+ options?: RequestOptions,
39
+ ): APIPromise<SimulationGetSimulationJobByIDResponse> {
40
+ return this._client.get(path`/v1/simulation/job/${jobID}`, options);
43
41
  }
44
42
 
45
43
  /**
@@ -52,17 +50,9 @@ export class Simulation extends APIResource {
52
50
  * ```
53
51
  */
54
52
  listRunPlanJobs(
55
- query?: SimulationListRunPlanJobsParams,
56
- options?: Core.RequestOptions,
57
- ): Core.APIPromise<SimulationListRunPlanJobsResponse>;
58
- listRunPlanJobs(options?: Core.RequestOptions): Core.APIPromise<SimulationListRunPlanJobsResponse>;
59
- listRunPlanJobs(
60
- query: SimulationListRunPlanJobsParams | Core.RequestOptions = {},
61
- options?: Core.RequestOptions,
62
- ): Core.APIPromise<SimulationListRunPlanJobsResponse> {
63
- if (isRequestOptions(query)) {
64
- return this.listRunPlanJobs({}, query);
65
- }
53
+ query: SimulationListRunPlanJobsParams | null | undefined = {},
54
+ options?: RequestOptions,
55
+ ): APIPromise<SimulationListRunPlanJobsResponse> {
66
56
  return this._client.get('/v1/simulation/plan/jobs', { query, ...options });
67
57
  }
68
58
 
@@ -75,17 +65,9 @@ export class Simulation extends APIResource {
75
65
  * ```
76
66
  */
77
67
  listScenarios(
78
- query?: SimulationListScenariosParams,
79
- options?: Core.RequestOptions,
80
- ): Core.APIPromise<SimulationListScenariosResponse>;
81
- listScenarios(options?: Core.RequestOptions): Core.APIPromise<SimulationListScenariosResponse>;
82
- listScenarios(
83
- query: SimulationListScenariosParams | Core.RequestOptions = {},
84
- options?: Core.RequestOptions,
85
- ): Core.APIPromise<SimulationListScenariosResponse> {
86
- if (isRequestOptions(query)) {
87
- return this.listScenarios({}, query);
88
- }
68
+ query: SimulationListScenariosParams | null | undefined = {},
69
+ options?: RequestOptions,
70
+ ): APIPromise<SimulationListScenariosResponse> {
89
71
  return this._client.get('/v1/simulation/scenario', { query, ...options });
90
72
  }
91
73
 
@@ -103,8 +85,8 @@ export class Simulation extends APIResource {
103
85
  */
104
86
  lookupSimulationJob(
105
87
  query: SimulationLookupSimulationJobParams,
106
- options?: Core.RequestOptions,
107
- ): Core.APIPromise<SimulationLookupSimulationJobResponse> {
88
+ options?: RequestOptions,
89
+ ): APIPromise<SimulationLookupSimulationJobResponse> {
108
90
  return this._client.get('/v1/simulation/job/lookup', { query, ...options });
109
91
  }
110
92
 
@@ -118,11 +100,8 @@ export class Simulation extends APIResource {
118
100
  * );
119
101
  * ```
120
102
  */
121
- startRunPlanJob(
122
- planId: unknown,
123
- options?: Core.RequestOptions,
124
- ): Core.APIPromise<SimulationStartRunPlanJobResponse> {
125
- return this._client.post(`/v1/simulation/plan/${planId}/job`, options);
103
+ startRunPlanJob(planID: unknown, options?: RequestOptions): APIPromise<SimulationStartRunPlanJobResponse> {
104
+ return this._client.post(path`/v1/simulation/plan/${planID}/job`, options);
126
105
  }
127
106
  }
128
107
 
package/src/tsconfig.json CHANGED
@@ -4,8 +4,8 @@
4
4
  // via declaration maps
5
5
  "include": ["index.ts"],
6
6
  "compilerOptions": {
7
- "target": "es2015",
8
- "lib": ["DOM"],
7
+ "target": "ES2015",
8
+ "lib": ["DOM", "DOM.Iterable", "ES2018"],
9
9
  "moduleResolution": "node"
10
10
  }
11
11
  }