scorecard-ai 0.1.10

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 (846) hide show
  1. package/Client.d.ts +31 -0
  2. package/Client.js +32 -0
  3. package/README.md +99 -0
  4. package/api/errors/ForbiddenError.d.ts +8 -0
  5. package/api/errors/ForbiddenError.js +41 -0
  6. package/api/errors/NotFoundError.d.ts +8 -0
  7. package/api/errors/NotFoundError.js +41 -0
  8. package/api/errors/UnauthorizedError.d.ts +8 -0
  9. package/api/errors/UnauthorizedError.js +41 -0
  10. package/api/errors/UnprocessableEntityError.d.ts +8 -0
  11. package/api/errors/UnprocessableEntityError.js +41 -0
  12. package/api/errors/index.d.ts +4 -0
  13. package/api/errors/index.js +20 -0
  14. package/api/index.d.ts +3 -0
  15. package/api/index.js +19 -0
  16. package/api/resources/index.d.ts +10 -0
  17. package/api/resources/index.js +39 -0
  18. package/api/resources/run/client/Client.d.ts +52 -0
  19. package/api/resources/run/client/Client.js +327 -0
  20. package/api/resources/run/client/index.d.ts +1 -0
  21. package/api/resources/run/client/index.js +17 -0
  22. package/api/resources/run/client/requests/RunCreateParams.d.ts +9 -0
  23. package/api/resources/run/client/requests/RunCreateParams.js +5 -0
  24. package/api/resources/run/client/requests/UpdateStatusParams.d.ts +13 -0
  25. package/api/resources/run/client/requests/UpdateStatusParams.js +5 -0
  26. package/api/resources/run/client/requests/index.d.ts +2 -0
  27. package/api/resources/run/client/requests/index.js +2 -0
  28. package/api/resources/run/index.d.ts +1 -0
  29. package/api/resources/run/index.js +17 -0
  30. package/api/resources/testcase/client/Client.d.ts +44 -0
  31. package/api/resources/testcase/client/Client.js +312 -0
  32. package/api/resources/testcase/client/index.d.ts +1 -0
  33. package/api/resources/testcase/client/index.js +17 -0
  34. package/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +11 -0
  35. package/api/resources/testcase/client/requests/TestcaseCreateParams.js +5 -0
  36. package/api/resources/testcase/client/requests/index.d.ts +1 -0
  37. package/api/resources/testcase/client/requests/index.js +2 -0
  38. package/api/resources/testcase/index.d.ts +2 -0
  39. package/api/resources/testcase/index.js +18 -0
  40. package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +5 -0
  41. package/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +5 -0
  42. package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +5 -0
  43. package/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +5 -0
  44. package/api/resources/testcase/types/index.d.ts +2 -0
  45. package/api/resources/testcase/types/index.js +18 -0
  46. package/api/resources/testrecord/client/Client.d.ts +36 -0
  47. package/api/resources/testrecord/client/Client.js +230 -0
  48. package/api/resources/testrecord/client/index.d.ts +1 -0
  49. package/api/resources/testrecord/client/index.js +17 -0
  50. package/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +15 -0
  51. package/api/resources/testrecord/client/requests/TestrecordCreateParams.js +5 -0
  52. package/api/resources/testrecord/client/requests/index.d.ts +1 -0
  53. package/api/resources/testrecord/client/requests/index.js +2 -0
  54. package/api/resources/testrecord/index.d.ts +2 -0
  55. package/api/resources/testrecord/index.js +18 -0
  56. package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +5 -0
  57. package/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +5 -0
  58. package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +5 -0
  59. package/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +5 -0
  60. package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +5 -0
  61. package/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +5 -0
  62. package/api/resources/testrecord/types/index.d.ts +3 -0
  63. package/api/resources/testrecord/types/index.js +19 -0
  64. package/api/resources/testset/client/Client.d.ts +69 -0
  65. package/api/resources/testset/client/Client.js +512 -0
  66. package/api/resources/testset/client/index.d.ts +1 -0
  67. package/api/resources/testset/client/index.js +17 -0
  68. package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +10 -0
  69. package/api/resources/testset/client/requests/TestsetCreateParams.js +5 -0
  70. package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +7 -0
  71. package/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +5 -0
  72. package/api/resources/testset/client/requests/index.d.ts +2 -0
  73. package/api/resources/testset/client/requests/index.js +2 -0
  74. package/api/resources/testset/index.d.ts +1 -0
  75. package/api/resources/testset/index.js +17 -0
  76. package/api/types/AppCreateRunParams.d.ts +4 -0
  77. package/api/types/AppCreateRunParams.js +5 -0
  78. package/api/types/AppTestRecordCreate.d.ts +4 -0
  79. package/api/types/AppTestRecordCreate.js +5 -0
  80. package/api/types/AppTestSetCreate.d.ts +4 -0
  81. package/api/types/AppTestSetCreate.js +5 -0
  82. package/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +4 -0
  83. package/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +5 -0
  84. package/api/types/CreateRunParams.d.ts +9 -0
  85. package/api/types/CreateRunParams.js +5 -0
  86. package/api/types/CustomSchemaInput.d.ts +11 -0
  87. package/api/types/CustomSchemaInput.js +5 -0
  88. package/api/types/CustomSchemaOutput.d.ts +11 -0
  89. package/api/types/CustomSchemaOutput.js +5 -0
  90. package/api/types/CustomVariable.d.ts +13 -0
  91. package/api/types/CustomVariable.js +5 -0
  92. package/api/types/DataTypeEnum.d.ts +12 -0
  93. package/api/types/DataTypeEnum.js +11 -0
  94. package/api/types/ExecutionParams.d.ts +4 -0
  95. package/api/types/ExecutionParams.js +5 -0
  96. package/api/types/FileUrl.d.ts +10 -0
  97. package/api/types/FileUrl.js +5 -0
  98. package/api/types/HttpValidationError.d.ts +7 -0
  99. package/api/types/HttpValidationError.js +5 -0
  100. package/api/types/LibDtoTypesCreateRunParams.d.ts +4 -0
  101. package/api/types/LibDtoTypesCreateRunParams.js +5 -0
  102. package/api/types/LibDtoTypesTestRecordCreate.d.ts +4 -0
  103. package/api/types/LibDtoTypesTestRecordCreate.js +5 -0
  104. package/api/types/LibDtoTypesTestSetCreate.d.ts +4 -0
  105. package/api/types/LibDtoTypesTestSetCreate.js +5 -0
  106. package/api/types/ModelParams.d.ts +4 -0
  107. package/api/types/ModelParams.js +5 -0
  108. package/api/types/NotFoundErrorBody.d.ts +8 -0
  109. package/api/types/NotFoundErrorBody.js +5 -0
  110. package/api/types/PaginatedTestcaseResponse.d.ts +10 -0
  111. package/api/types/PaginatedTestcaseResponse.js +5 -0
  112. package/api/types/RoleEnum.d.ts +13 -0
  113. package/api/types/RoleEnum.js +12 -0
  114. package/api/types/RunExternal.d.ts +20 -0
  115. package/api/types/RunExternal.js +5 -0
  116. package/api/types/RunStatus.d.ts +12 -0
  117. package/api/types/RunStatus.js +14 -0
  118. package/api/types/ScoreExecutionParams.d.ts +4 -0
  119. package/api/types/ScoreExecutionParams.js +5 -0
  120. package/api/types/ScoringParams.d.ts +4 -0
  121. package/api/types/ScoringParams.js +5 -0
  122. package/api/types/TestCase.d.ts +14 -0
  123. package/api/types/TestCase.js +5 -0
  124. package/api/types/TestCaseCreate.d.ts +10 -0
  125. package/api/types/TestCaseCreate.js +5 -0
  126. package/api/types/TestCaseCreateInput.d.ts +4 -0
  127. package/api/types/TestCaseCreateInput.js +5 -0
  128. package/api/types/TestCaseCustomInputsValue.d.ts +5 -0
  129. package/api/types/TestCaseCustomInputsValue.js +5 -0
  130. package/api/types/TestCaseCustomLabelsValue.d.ts +5 -0
  131. package/api/types/TestCaseCustomLabelsValue.js +5 -0
  132. package/api/types/TestRecordCreate.d.ts +16 -0
  133. package/api/types/TestRecordCreate.js +5 -0
  134. package/api/types/TestSetCreate.d.ts +8 -0
  135. package/api/types/TestSetCreate.js +5 -0
  136. package/api/types/Testrecord.d.ts +18 -0
  137. package/api/types/Testrecord.js +5 -0
  138. package/api/types/TestrecordCustomInputsValue.d.ts +5 -0
  139. package/api/types/TestrecordCustomInputsValue.js +5 -0
  140. package/api/types/TestrecordCustomLabelsValue.d.ts +5 -0
  141. package/api/types/TestrecordCustomLabelsValue.js +5 -0
  142. package/api/types/TestrecordCustomOutputsValue.d.ts +5 -0
  143. package/api/types/TestrecordCustomOutputsValue.js +5 -0
  144. package/api/types/Testset.d.ts +18 -0
  145. package/api/types/Testset.js +5 -0
  146. package/api/types/UnauthenticatedError.d.ts +8 -0
  147. package/api/types/UnauthenticatedError.js +5 -0
  148. package/api/types/UnauthorizedErrorBody.d.ts +8 -0
  149. package/api/types/UnauthorizedErrorBody.js +5 -0
  150. package/api/types/ValidationError.d.ts +9 -0
  151. package/api/types/ValidationError.js +5 -0
  152. package/api/types/ValidationErrorLocItem.d.ts +4 -0
  153. package/api/types/ValidationErrorLocItem.js +5 -0
  154. package/api/types/index.d.ts +39 -0
  155. package/api/types/index.js +55 -0
  156. package/core/fetcher/APIResponse.d.ts +10 -0
  157. package/core/fetcher/APIResponse.js +2 -0
  158. package/core/fetcher/Fetcher.d.ts +35 -0
  159. package/core/fetcher/Fetcher.js +150 -0
  160. package/core/fetcher/Supplier.d.ts +4 -0
  161. package/core/fetcher/Supplier.js +22 -0
  162. package/core/fetcher/getHeader.d.ts +1 -0
  163. package/core/fetcher/getHeader.js +12 -0
  164. package/core/fetcher/index.d.ts +5 -0
  165. package/core/fetcher/index.js +9 -0
  166. package/core/index.d.ts +2 -0
  167. package/core/index.js +31 -0
  168. package/core/schemas/Schema.d.ts +81 -0
  169. package/core/schemas/Schema.js +21 -0
  170. package/core/schemas/builders/date/date.d.ts +2 -0
  171. package/core/schemas/builders/date/date.js +63 -0
  172. package/core/schemas/builders/date/index.d.ts +1 -0
  173. package/core/schemas/builders/date/index.js +5 -0
  174. package/core/schemas/builders/enum/enum.d.ts +2 -0
  175. package/core/schemas/builders/enum/enum.js +39 -0
  176. package/core/schemas/builders/enum/index.d.ts +1 -0
  177. package/core/schemas/builders/enum/index.js +5 -0
  178. package/core/schemas/builders/index.d.ts +13 -0
  179. package/core/schemas/builders/index.js +29 -0
  180. package/core/schemas/builders/lazy/index.d.ts +3 -0
  181. package/core/schemas/builders/lazy/index.js +7 -0
  182. package/core/schemas/builders/lazy/lazy.d.ts +5 -0
  183. package/core/schemas/builders/lazy/lazy.js +36 -0
  184. package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  185. package/core/schemas/builders/lazy/lazyObject.js +21 -0
  186. package/core/schemas/builders/list/index.d.ts +1 -0
  187. package/core/schemas/builders/list/index.js +5 -0
  188. package/core/schemas/builders/list/list.d.ts +2 -0
  189. package/core/schemas/builders/list/list.js +68 -0
  190. package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  191. package/core/schemas/builders/literals/booleanLiteral.js +29 -0
  192. package/core/schemas/builders/literals/index.d.ts +2 -0
  193. package/core/schemas/builders/literals/index.js +7 -0
  194. package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  195. package/core/schemas/builders/literals/stringLiteral.js +29 -0
  196. package/core/schemas/builders/object/index.d.ts +6 -0
  197. package/core/schemas/builders/object/index.js +11 -0
  198. package/core/schemas/builders/object/object.d.ts +3 -0
  199. package/core/schemas/builders/object/object.js +258 -0
  200. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  201. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  202. package/core/schemas/builders/object/property.d.ts +8 -0
  203. package/core/schemas/builders/object/property.js +16 -0
  204. package/core/schemas/builders/object/types.d.ts +26 -0
  205. package/core/schemas/builders/object/types.js +2 -0
  206. package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  207. package/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
  208. package/core/schemas/builders/object-like/index.d.ts +2 -0
  209. package/core/schemas/builders/object-like/index.js +6 -0
  210. package/core/schemas/builders/object-like/types.d.ts +7 -0
  211. package/core/schemas/builders/object-like/types.js +2 -0
  212. package/core/schemas/builders/primitives/any.d.ts +1 -0
  213. package/core/schemas/builders/primitives/any.js +6 -0
  214. package/core/schemas/builders/primitives/boolean.d.ts +1 -0
  215. package/core/schemas/builders/primitives/boolean.js +25 -0
  216. package/core/schemas/builders/primitives/index.d.ts +5 -0
  217. package/core/schemas/builders/primitives/index.js +13 -0
  218. package/core/schemas/builders/primitives/number.d.ts +1 -0
  219. package/core/schemas/builders/primitives/number.js +25 -0
  220. package/core/schemas/builders/primitives/string.d.ts +1 -0
  221. package/core/schemas/builders/primitives/string.js +25 -0
  222. package/core/schemas/builders/primitives/unknown.d.ts +1 -0
  223. package/core/schemas/builders/primitives/unknown.js +6 -0
  224. package/core/schemas/builders/record/index.d.ts +2 -0
  225. package/core/schemas/builders/record/index.js +5 -0
  226. package/core/schemas/builders/record/record.d.ts +3 -0
  227. package/core/schemas/builders/record/record.js +106 -0
  228. package/core/schemas/builders/record/types.d.ts +4 -0
  229. package/core/schemas/builders/record/types.js +2 -0
  230. package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  231. package/core/schemas/builders/schema-utils/JsonError.js +12 -0
  232. package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  233. package/core/schemas/builders/schema-utils/ParseError.js +12 -0
  234. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  235. package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
  236. package/core/schemas/builders/schema-utils/index.d.ts +4 -0
  237. package/core/schemas/builders/schema-utils/index.js +11 -0
  238. package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  239. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  240. package/core/schemas/builders/set/index.d.ts +1 -0
  241. package/core/schemas/builders/set/index.js +5 -0
  242. package/core/schemas/builders/set/set.d.ts +2 -0
  243. package/core/schemas/builders/set/set.js +53 -0
  244. package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  245. package/core/schemas/builders/undiscriminated-union/index.js +5 -0
  246. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  247. package/core/schemas/builders/undiscriminated-union/types.js +2 -0
  248. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  249. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
  250. package/core/schemas/builders/union/discriminant.d.ts +5 -0
  251. package/core/schemas/builders/union/discriminant.js +10 -0
  252. package/core/schemas/builders/union/index.d.ts +4 -0
  253. package/core/schemas/builders/union/index.js +7 -0
  254. package/core/schemas/builders/union/types.d.ts +13 -0
  255. package/core/schemas/builders/union/types.js +2 -0
  256. package/core/schemas/builders/union/union.d.ts +4 -0
  257. package/core/schemas/builders/union/union.js +141 -0
  258. package/core/schemas/index.d.ts +2 -0
  259. package/core/schemas/index.js +17 -0
  260. package/core/schemas/utils/MaybePromise.d.ts +1 -0
  261. package/core/schemas/utils/MaybePromise.js +2 -0
  262. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  263. package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  264. package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  265. package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  266. package/core/schemas/utils/entries.d.ts +1 -0
  267. package/core/schemas/utils/entries.js +7 -0
  268. package/core/schemas/utils/filterObject.d.ts +1 -0
  269. package/core/schemas/utils/filterObject.js +14 -0
  270. package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  271. package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  272. package/core/schemas/utils/isPlainObject.d.ts +1 -0
  273. package/core/schemas/utils/isPlainObject.js +18 -0
  274. package/core/schemas/utils/keys.d.ts +1 -0
  275. package/core/schemas/utils/keys.js +7 -0
  276. package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  277. package/core/schemas/utils/maybeSkipValidation.js +37 -0
  278. package/core/schemas/utils/partition.d.ts +1 -0
  279. package/core/schemas/utils/partition.js +16 -0
  280. package/dist/Client.d.ts +31 -0
  281. package/dist/Client.js +32 -0
  282. package/dist/api/errors/ForbiddenError.d.ts +8 -0
  283. package/dist/api/errors/ForbiddenError.js +41 -0
  284. package/dist/api/errors/NotFoundError.d.ts +8 -0
  285. package/dist/api/errors/NotFoundError.js +41 -0
  286. package/dist/api/errors/UnauthorizedError.d.ts +8 -0
  287. package/dist/api/errors/UnauthorizedError.js +41 -0
  288. package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
  289. package/dist/api/errors/UnprocessableEntityError.js +41 -0
  290. package/dist/api/errors/index.d.ts +4 -0
  291. package/dist/api/errors/index.js +20 -0
  292. package/dist/api/index.d.ts +3 -0
  293. package/dist/api/index.js +19 -0
  294. package/dist/api/resources/index.d.ts +10 -0
  295. package/dist/api/resources/index.js +39 -0
  296. package/dist/api/resources/run/client/Client.d.ts +52 -0
  297. package/dist/api/resources/run/client/Client.js +327 -0
  298. package/dist/api/resources/run/client/index.d.ts +1 -0
  299. package/dist/api/resources/run/client/index.js +17 -0
  300. package/dist/api/resources/run/client/requests/RunCreateParams.d.ts +9 -0
  301. package/dist/api/resources/run/client/requests/RunCreateParams.js +5 -0
  302. package/dist/api/resources/run/client/requests/UpdateStatusParams.d.ts +13 -0
  303. package/dist/api/resources/run/client/requests/UpdateStatusParams.js +5 -0
  304. package/dist/api/resources/run/client/requests/index.d.ts +2 -0
  305. package/dist/api/resources/run/client/requests/index.js +2 -0
  306. package/dist/api/resources/run/index.d.ts +1 -0
  307. package/dist/api/resources/run/index.js +17 -0
  308. package/dist/api/resources/testcase/client/Client.d.ts +44 -0
  309. package/dist/api/resources/testcase/client/Client.js +312 -0
  310. package/dist/api/resources/testcase/client/index.d.ts +1 -0
  311. package/dist/api/resources/testcase/client/index.js +17 -0
  312. package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.d.ts +11 -0
  313. package/dist/api/resources/testcase/client/requests/TestcaseCreateParams.js +5 -0
  314. package/dist/api/resources/testcase/client/requests/index.d.ts +1 -0
  315. package/dist/api/resources/testcase/client/requests/index.js +2 -0
  316. package/dist/api/resources/testcase/index.d.ts +2 -0
  317. package/dist/api/resources/testcase/index.js +18 -0
  318. package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +5 -0
  319. package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +5 -0
  320. package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +5 -0
  321. package/dist/api/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +5 -0
  322. package/dist/api/resources/testcase/types/index.d.ts +2 -0
  323. package/dist/api/resources/testcase/types/index.js +18 -0
  324. package/dist/api/resources/testrecord/client/Client.d.ts +36 -0
  325. package/dist/api/resources/testrecord/client/Client.js +230 -0
  326. package/dist/api/resources/testrecord/client/index.d.ts +1 -0
  327. package/dist/api/resources/testrecord/client/index.js +17 -0
  328. package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +15 -0
  329. package/dist/api/resources/testrecord/client/requests/TestrecordCreateParams.js +5 -0
  330. package/dist/api/resources/testrecord/client/requests/index.d.ts +1 -0
  331. package/dist/api/resources/testrecord/client/requests/index.js +2 -0
  332. package/dist/api/resources/testrecord/index.d.ts +2 -0
  333. package/dist/api/resources/testrecord/index.js +18 -0
  334. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +5 -0
  335. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +5 -0
  336. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +5 -0
  337. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +5 -0
  338. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +5 -0
  339. package/dist/api/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +5 -0
  340. package/dist/api/resources/testrecord/types/index.d.ts +3 -0
  341. package/dist/api/resources/testrecord/types/index.js +19 -0
  342. package/dist/api/resources/testset/client/Client.d.ts +69 -0
  343. package/dist/api/resources/testset/client/Client.js +512 -0
  344. package/dist/api/resources/testset/client/index.d.ts +1 -0
  345. package/dist/api/resources/testset/client/index.js +17 -0
  346. package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +10 -0
  347. package/dist/api/resources/testset/client/requests/TestsetCreateParams.js +5 -0
  348. package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.d.ts +7 -0
  349. package/dist/api/resources/testset/client/requests/TestsetGetTestcasesRequest.js +5 -0
  350. package/dist/api/resources/testset/client/requests/index.d.ts +2 -0
  351. package/dist/api/resources/testset/client/requests/index.js +2 -0
  352. package/dist/api/resources/testset/index.d.ts +1 -0
  353. package/dist/api/resources/testset/index.js +17 -0
  354. package/dist/api/types/AppCreateRunParams.d.ts +4 -0
  355. package/dist/api/types/AppCreateRunParams.js +5 -0
  356. package/dist/api/types/AppTestRecordCreate.d.ts +4 -0
  357. package/dist/api/types/AppTestRecordCreate.js +5 -0
  358. package/dist/api/types/AppTestSetCreate.d.ts +4 -0
  359. package/dist/api/types/AppTestSetCreate.js +5 -0
  360. package/dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +4 -0
  361. package/dist/api/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +5 -0
  362. package/dist/api/types/CreateRunParams.d.ts +9 -0
  363. package/dist/api/types/CreateRunParams.js +5 -0
  364. package/dist/api/types/CustomSchemaInput.d.ts +11 -0
  365. package/dist/api/types/CustomSchemaInput.js +5 -0
  366. package/dist/api/types/CustomSchemaOutput.d.ts +11 -0
  367. package/dist/api/types/CustomSchemaOutput.js +5 -0
  368. package/dist/api/types/CustomVariable.d.ts +13 -0
  369. package/dist/api/types/CustomVariable.js +5 -0
  370. package/dist/api/types/DataTypeEnum.d.ts +12 -0
  371. package/dist/api/types/DataTypeEnum.js +11 -0
  372. package/dist/api/types/ExecutionParams.d.ts +4 -0
  373. package/dist/api/types/ExecutionParams.js +5 -0
  374. package/dist/api/types/FileUrl.d.ts +10 -0
  375. package/dist/api/types/FileUrl.js +5 -0
  376. package/dist/api/types/HttpValidationError.d.ts +7 -0
  377. package/dist/api/types/HttpValidationError.js +5 -0
  378. package/dist/api/types/LibDtoTypesCreateRunParams.d.ts +4 -0
  379. package/dist/api/types/LibDtoTypesCreateRunParams.js +5 -0
  380. package/dist/api/types/LibDtoTypesTestRecordCreate.d.ts +4 -0
  381. package/dist/api/types/LibDtoTypesTestRecordCreate.js +5 -0
  382. package/dist/api/types/LibDtoTypesTestSetCreate.d.ts +4 -0
  383. package/dist/api/types/LibDtoTypesTestSetCreate.js +5 -0
  384. package/dist/api/types/ModelParams.d.ts +4 -0
  385. package/dist/api/types/ModelParams.js +5 -0
  386. package/dist/api/types/NotFoundErrorBody.d.ts +8 -0
  387. package/dist/api/types/NotFoundErrorBody.js +5 -0
  388. package/dist/api/types/PaginatedTestcaseResponse.d.ts +10 -0
  389. package/dist/api/types/PaginatedTestcaseResponse.js +5 -0
  390. package/dist/api/types/RoleEnum.d.ts +13 -0
  391. package/dist/api/types/RoleEnum.js +12 -0
  392. package/dist/api/types/RunExternal.d.ts +20 -0
  393. package/dist/api/types/RunExternal.js +5 -0
  394. package/dist/api/types/RunStatus.d.ts +12 -0
  395. package/dist/api/types/RunStatus.js +14 -0
  396. package/dist/api/types/ScoreExecutionParams.d.ts +4 -0
  397. package/dist/api/types/ScoreExecutionParams.js +5 -0
  398. package/dist/api/types/ScoringParams.d.ts +4 -0
  399. package/dist/api/types/ScoringParams.js +5 -0
  400. package/dist/api/types/TestCase.d.ts +14 -0
  401. package/dist/api/types/TestCase.js +5 -0
  402. package/dist/api/types/TestCaseCreate.d.ts +10 -0
  403. package/dist/api/types/TestCaseCreate.js +5 -0
  404. package/dist/api/types/TestCaseCreateInput.d.ts +4 -0
  405. package/dist/api/types/TestCaseCreateInput.js +5 -0
  406. package/dist/api/types/TestCaseCustomInputsValue.d.ts +5 -0
  407. package/dist/api/types/TestCaseCustomInputsValue.js +5 -0
  408. package/dist/api/types/TestCaseCustomLabelsValue.d.ts +5 -0
  409. package/dist/api/types/TestCaseCustomLabelsValue.js +5 -0
  410. package/dist/api/types/TestRecordCreate.d.ts +16 -0
  411. package/dist/api/types/TestRecordCreate.js +5 -0
  412. package/dist/api/types/TestSetCreate.d.ts +8 -0
  413. package/dist/api/types/TestSetCreate.js +5 -0
  414. package/dist/api/types/Testrecord.d.ts +18 -0
  415. package/dist/api/types/Testrecord.js +5 -0
  416. package/dist/api/types/TestrecordCustomInputsValue.d.ts +5 -0
  417. package/dist/api/types/TestrecordCustomInputsValue.js +5 -0
  418. package/dist/api/types/TestrecordCustomLabelsValue.d.ts +5 -0
  419. package/dist/api/types/TestrecordCustomLabelsValue.js +5 -0
  420. package/dist/api/types/TestrecordCustomOutputsValue.d.ts +5 -0
  421. package/dist/api/types/TestrecordCustomOutputsValue.js +5 -0
  422. package/dist/api/types/Testset.d.ts +18 -0
  423. package/dist/api/types/Testset.js +5 -0
  424. package/dist/api/types/UnauthenticatedError.d.ts +8 -0
  425. package/dist/api/types/UnauthenticatedError.js +5 -0
  426. package/dist/api/types/UnauthorizedErrorBody.d.ts +8 -0
  427. package/dist/api/types/UnauthorizedErrorBody.js +5 -0
  428. package/dist/api/types/ValidationError.d.ts +9 -0
  429. package/dist/api/types/ValidationError.js +5 -0
  430. package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
  431. package/dist/api/types/ValidationErrorLocItem.js +5 -0
  432. package/dist/api/types/index.d.ts +39 -0
  433. package/dist/api/types/index.js +55 -0
  434. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  435. package/dist/core/fetcher/APIResponse.js +2 -0
  436. package/dist/core/fetcher/Fetcher.d.ts +35 -0
  437. package/dist/core/fetcher/Fetcher.js +150 -0
  438. package/dist/core/fetcher/Supplier.d.ts +4 -0
  439. package/dist/core/fetcher/Supplier.js +22 -0
  440. package/dist/core/fetcher/getHeader.d.ts +1 -0
  441. package/dist/core/fetcher/getHeader.js +12 -0
  442. package/dist/core/fetcher/index.d.ts +5 -0
  443. package/dist/core/fetcher/index.js +9 -0
  444. package/dist/core/index.d.ts +2 -0
  445. package/dist/core/index.js +31 -0
  446. package/dist/core/schemas/Schema.d.ts +81 -0
  447. package/dist/core/schemas/Schema.js +21 -0
  448. package/dist/core/schemas/builders/date/date.d.ts +2 -0
  449. package/dist/core/schemas/builders/date/date.js +63 -0
  450. package/dist/core/schemas/builders/date/index.d.ts +1 -0
  451. package/dist/core/schemas/builders/date/index.js +5 -0
  452. package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
  453. package/dist/core/schemas/builders/enum/enum.js +39 -0
  454. package/dist/core/schemas/builders/enum/index.d.ts +1 -0
  455. package/dist/core/schemas/builders/enum/index.js +5 -0
  456. package/dist/core/schemas/builders/index.d.ts +13 -0
  457. package/dist/core/schemas/builders/index.js +29 -0
  458. package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
  459. package/dist/core/schemas/builders/lazy/index.js +7 -0
  460. package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
  461. package/dist/core/schemas/builders/lazy/lazy.js +36 -0
  462. package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
  463. package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
  464. package/dist/core/schemas/builders/list/index.d.ts +1 -0
  465. package/dist/core/schemas/builders/list/index.js +5 -0
  466. package/dist/core/schemas/builders/list/list.d.ts +2 -0
  467. package/dist/core/schemas/builders/list/list.js +68 -0
  468. package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
  469. package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
  470. package/dist/core/schemas/builders/literals/index.d.ts +2 -0
  471. package/dist/core/schemas/builders/literals/index.js +7 -0
  472. package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
  473. package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
  474. package/dist/core/schemas/builders/object/index.d.ts +6 -0
  475. package/dist/core/schemas/builders/object/index.js +11 -0
  476. package/dist/core/schemas/builders/object/object.d.ts +3 -0
  477. package/dist/core/schemas/builders/object/object.js +258 -0
  478. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
  479. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
  480. package/dist/core/schemas/builders/object/property.d.ts +8 -0
  481. package/dist/core/schemas/builders/object/property.js +16 -0
  482. package/dist/core/schemas/builders/object/types.d.ts +26 -0
  483. package/dist/core/schemas/builders/object/types.js +2 -0
  484. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
  485. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
  486. package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
  487. package/dist/core/schemas/builders/object-like/index.js +6 -0
  488. package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
  489. package/dist/core/schemas/builders/object-like/types.js +2 -0
  490. package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
  491. package/dist/core/schemas/builders/primitives/any.js +6 -0
  492. package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
  493. package/dist/core/schemas/builders/primitives/boolean.js +25 -0
  494. package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
  495. package/dist/core/schemas/builders/primitives/index.js +13 -0
  496. package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
  497. package/dist/core/schemas/builders/primitives/number.js +25 -0
  498. package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
  499. package/dist/core/schemas/builders/primitives/string.js +25 -0
  500. package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
  501. package/dist/core/schemas/builders/primitives/unknown.js +6 -0
  502. package/dist/core/schemas/builders/record/index.d.ts +2 -0
  503. package/dist/core/schemas/builders/record/index.js +5 -0
  504. package/dist/core/schemas/builders/record/record.d.ts +3 -0
  505. package/dist/core/schemas/builders/record/record.js +106 -0
  506. package/dist/core/schemas/builders/record/types.d.ts +4 -0
  507. package/dist/core/schemas/builders/record/types.js +2 -0
  508. package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  509. package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
  510. package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  511. package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
  512. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
  513. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
  514. package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
  515. package/dist/core/schemas/builders/schema-utils/index.js +11 -0
  516. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  517. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
  518. package/dist/core/schemas/builders/set/index.d.ts +1 -0
  519. package/dist/core/schemas/builders/set/index.js +5 -0
  520. package/dist/core/schemas/builders/set/set.d.ts +2 -0
  521. package/dist/core/schemas/builders/set/set.js +53 -0
  522. package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
  523. package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
  524. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
  525. package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
  526. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
  527. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
  528. package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
  529. package/dist/core/schemas/builders/union/discriminant.js +10 -0
  530. package/dist/core/schemas/builders/union/index.d.ts +4 -0
  531. package/dist/core/schemas/builders/union/index.js +7 -0
  532. package/dist/core/schemas/builders/union/types.d.ts +13 -0
  533. package/dist/core/schemas/builders/union/types.js +2 -0
  534. package/dist/core/schemas/builders/union/union.d.ts +4 -0
  535. package/dist/core/schemas/builders/union/union.js +141 -0
  536. package/dist/core/schemas/index.d.ts +2 -0
  537. package/dist/core/schemas/index.js +17 -0
  538. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
  539. package/dist/core/schemas/utils/MaybePromise.js +2 -0
  540. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
  541. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
  542. package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  543. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
  544. package/dist/core/schemas/utils/entries.d.ts +1 -0
  545. package/dist/core/schemas/utils/entries.js +7 -0
  546. package/dist/core/schemas/utils/filterObject.d.ts +1 -0
  547. package/dist/core/schemas/utils/filterObject.js +14 -0
  548. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
  549. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
  550. package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
  551. package/dist/core/schemas/utils/isPlainObject.js +18 -0
  552. package/dist/core/schemas/utils/keys.d.ts +1 -0
  553. package/dist/core/schemas/utils/keys.js +7 -0
  554. package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
  555. package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
  556. package/dist/core/schemas/utils/partition.d.ts +1 -0
  557. package/dist/core/schemas/utils/partition.js +16 -0
  558. package/dist/environments.d.ts +7 -0
  559. package/dist/environments.js +9 -0
  560. package/dist/errors/ScorecardError.d.ts +12 -0
  561. package/dist/errors/ScorecardError.js +32 -0
  562. package/dist/errors/ScorecardTimeoutError.d.ts +6 -0
  563. package/dist/errors/ScorecardTimeoutError.js +13 -0
  564. package/dist/errors/index.d.ts +2 -0
  565. package/dist/errors/index.js +7 -0
  566. package/dist/index.d.ts +4 -0
  567. package/dist/index.js +34 -0
  568. package/dist/serialization/index.d.ts +2 -0
  569. package/dist/serialization/index.js +18 -0
  570. package/dist/serialization/resources/index.d.ts +10 -0
  571. package/dist/serialization/resources/index.js +39 -0
  572. package/dist/serialization/resources/run/client/index.d.ts +1 -0
  573. package/dist/serialization/resources/run/client/index.js +17 -0
  574. package/dist/serialization/resources/run/client/requests/RunCreateParams.d.ts +15 -0
  575. package/dist/serialization/resources/run/client/requests/RunCreateParams.js +36 -0
  576. package/dist/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +12 -0
  577. package/dist/serialization/resources/run/client/requests/UpdateStatusParams.js +42 -0
  578. package/dist/serialization/resources/run/client/requests/index.d.ts +2 -0
  579. package/dist/serialization/resources/run/client/requests/index.js +7 -0
  580. package/dist/serialization/resources/run/index.d.ts +1 -0
  581. package/dist/serialization/resources/run/index.js +17 -0
  582. package/dist/serialization/resources/testcase/client/index.d.ts +1 -0
  583. package/dist/serialization/resources/testcase/client/index.js +17 -0
  584. package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +16 -0
  585. package/dist/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +54 -0
  586. package/dist/serialization/resources/testcase/client/requests/index.d.ts +1 -0
  587. package/dist/serialization/resources/testcase/client/requests/index.js +5 -0
  588. package/dist/serialization/resources/testcase/index.d.ts +2 -0
  589. package/dist/serialization/resources/testcase/index.js +18 -0
  590. package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +10 -0
  591. package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +43 -0
  592. package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +10 -0
  593. package/dist/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +43 -0
  594. package/dist/serialization/resources/testcase/types/index.d.ts +2 -0
  595. package/dist/serialization/resources/testcase/types/index.js +18 -0
  596. package/dist/serialization/resources/testrecord/client/index.d.ts +1 -0
  597. package/dist/serialization/resources/testrecord/client/index.js +17 -0
  598. package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +20 -0
  599. package/dist/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +62 -0
  600. package/dist/serialization/resources/testrecord/client/requests/index.d.ts +1 -0
  601. package/dist/serialization/resources/testrecord/client/requests/index.js +5 -0
  602. package/dist/serialization/resources/testrecord/index.d.ts +2 -0
  603. package/dist/serialization/resources/testrecord/index.js +18 -0
  604. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +10 -0
  605. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +43 -0
  606. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +10 -0
  607. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +43 -0
  608. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +10 -0
  609. package/dist/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +43 -0
  610. package/dist/serialization/resources/testrecord/types/index.d.ts +3 -0
  611. package/dist/serialization/resources/testrecord/types/index.js +19 -0
  612. package/dist/serialization/resources/testset/client/index.d.ts +1 -0
  613. package/dist/serialization/resources/testset/client/index.js +17 -0
  614. package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +15 -0
  615. package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +45 -0
  616. package/dist/serialization/resources/testset/client/requests/index.d.ts +1 -0
  617. package/dist/serialization/resources/testset/client/requests/index.js +5 -0
  618. package/dist/serialization/resources/testset/index.d.ts +1 -0
  619. package/dist/serialization/resources/testset/index.js +17 -0
  620. package/dist/serialization/types/AppCreateRunParams.d.ts +10 -0
  621. package/dist/serialization/types/AppCreateRunParams.js +31 -0
  622. package/dist/serialization/types/AppTestRecordCreate.d.ts +10 -0
  623. package/dist/serialization/types/AppTestRecordCreate.js +31 -0
  624. package/dist/serialization/types/AppTestSetCreate.d.ts +10 -0
  625. package/dist/serialization/types/AppTestSetCreate.js +31 -0
  626. package/dist/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +10 -0
  627. package/dist/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +31 -0
  628. package/dist/serialization/types/CreateRunParams.d.ts +15 -0
  629. package/dist/serialization/types/CreateRunParams.js +36 -0
  630. package/dist/serialization/types/CustomSchemaInput.d.ts +12 -0
  631. package/dist/serialization/types/CustomSchemaInput.js +44 -0
  632. package/dist/serialization/types/CustomSchemaOutput.d.ts +12 -0
  633. package/dist/serialization/types/CustomSchemaOutput.js +44 -0
  634. package/dist/serialization/types/CustomVariable.d.ts +15 -0
  635. package/dist/serialization/types/CustomVariable.js +45 -0
  636. package/dist/serialization/types/DataTypeEnum.d.ts +10 -0
  637. package/dist/serialization/types/DataTypeEnum.js +31 -0
  638. package/dist/serialization/types/ExecutionParams.d.ts +10 -0
  639. package/dist/serialization/types/ExecutionParams.js +31 -0
  640. package/dist/serialization/types/FileUrl.d.ts +13 -0
  641. package/dist/serialization/types/FileUrl.js +34 -0
  642. package/dist/serialization/types/HttpValidationError.d.ts +12 -0
  643. package/dist/serialization/types/HttpValidationError.js +44 -0
  644. package/dist/serialization/types/LibDtoTypesCreateRunParams.d.ts +10 -0
  645. package/dist/serialization/types/LibDtoTypesCreateRunParams.js +31 -0
  646. package/dist/serialization/types/LibDtoTypesTestRecordCreate.d.ts +10 -0
  647. package/dist/serialization/types/LibDtoTypesTestRecordCreate.js +31 -0
  648. package/dist/serialization/types/LibDtoTypesTestSetCreate.d.ts +10 -0
  649. package/dist/serialization/types/LibDtoTypesTestSetCreate.js +31 -0
  650. package/dist/serialization/types/ModelParams.d.ts +10 -0
  651. package/dist/serialization/types/ModelParams.js +31 -0
  652. package/dist/serialization/types/NotFoundErrorBody.d.ts +14 -0
  653. package/dist/serialization/types/NotFoundErrorBody.js +35 -0
  654. package/dist/serialization/types/PaginatedTestcaseResponse.d.ts +15 -0
  655. package/dist/serialization/types/PaginatedTestcaseResponse.js +45 -0
  656. package/dist/serialization/types/RoleEnum.d.ts +10 -0
  657. package/dist/serialization/types/RoleEnum.js +31 -0
  658. package/dist/serialization/types/RunExternal.d.ts +26 -0
  659. package/dist/serialization/types/RunExternal.js +47 -0
  660. package/dist/serialization/types/RunStatus.d.ts +10 -0
  661. package/dist/serialization/types/RunStatus.js +38 -0
  662. package/dist/serialization/types/ScoreExecutionParams.d.ts +10 -0
  663. package/dist/serialization/types/ScoreExecutionParams.js +31 -0
  664. package/dist/serialization/types/ScoringParams.d.ts +10 -0
  665. package/dist/serialization/types/ScoringParams.js +31 -0
  666. package/dist/serialization/types/TestCase.d.ts +19 -0
  667. package/dist/serialization/types/TestCase.js +53 -0
  668. package/dist/serialization/types/TestCaseCreate.d.ts +16 -0
  669. package/dist/serialization/types/TestCaseCreate.js +37 -0
  670. package/dist/serialization/types/TestCaseCreateInput.d.ts +10 -0
  671. package/dist/serialization/types/TestCaseCreateInput.js +31 -0
  672. package/dist/serialization/types/TestCaseCustomInputsValue.d.ts +10 -0
  673. package/dist/serialization/types/TestCaseCustomInputsValue.js +44 -0
  674. package/dist/serialization/types/TestCaseCustomLabelsValue.d.ts +10 -0
  675. package/dist/serialization/types/TestCaseCustomLabelsValue.js +44 -0
  676. package/dist/serialization/types/TestRecordCreate.d.ts +22 -0
  677. package/dist/serialization/types/TestRecordCreate.js +43 -0
  678. package/dist/serialization/types/TestSetCreate.d.ts +14 -0
  679. package/dist/serialization/types/TestSetCreate.js +35 -0
  680. package/dist/serialization/types/Testrecord.d.ts +23 -0
  681. package/dist/serialization/types/Testrecord.js +59 -0
  682. package/dist/serialization/types/TestrecordCustomInputsValue.d.ts +10 -0
  683. package/dist/serialization/types/TestrecordCustomInputsValue.js +44 -0
  684. package/dist/serialization/types/TestrecordCustomLabelsValue.d.ts +10 -0
  685. package/dist/serialization/types/TestrecordCustomLabelsValue.js +44 -0
  686. package/dist/serialization/types/TestrecordCustomOutputsValue.d.ts +10 -0
  687. package/dist/serialization/types/TestrecordCustomOutputsValue.js +44 -0
  688. package/dist/serialization/types/Testset.d.ts +23 -0
  689. package/dist/serialization/types/Testset.js +53 -0
  690. package/dist/serialization/types/UnauthenticatedError.d.ts +14 -0
  691. package/dist/serialization/types/UnauthenticatedError.js +35 -0
  692. package/dist/serialization/types/UnauthorizedErrorBody.d.ts +14 -0
  693. package/dist/serialization/types/UnauthorizedErrorBody.js +35 -0
  694. package/dist/serialization/types/ValidationError.d.ts +14 -0
  695. package/dist/serialization/types/ValidationError.js +44 -0
  696. package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  697. package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
  698. package/dist/serialization/types/index.d.ts +39 -0
  699. package/dist/serialization/types/index.js +55 -0
  700. package/dist/wrapper/ScorecardClient.d.ts +32 -0
  701. package/dist/wrapper/ScorecardClient.js +86 -0
  702. package/environments.d.ts +7 -0
  703. package/environments.js +9 -0
  704. package/errors/ScorecardError.d.ts +12 -0
  705. package/errors/ScorecardError.js +32 -0
  706. package/errors/ScorecardTimeoutError.d.ts +6 -0
  707. package/errors/ScorecardTimeoutError.js +13 -0
  708. package/errors/index.d.ts +2 -0
  709. package/errors/index.js +7 -0
  710. package/index.d.ts +4 -0
  711. package/index.js +34 -0
  712. package/package.json +27 -0
  713. package/serialization/index.d.ts +2 -0
  714. package/serialization/index.js +18 -0
  715. package/serialization/resources/index.d.ts +10 -0
  716. package/serialization/resources/index.js +39 -0
  717. package/serialization/resources/run/client/index.d.ts +1 -0
  718. package/serialization/resources/run/client/index.js +17 -0
  719. package/serialization/resources/run/client/requests/RunCreateParams.d.ts +15 -0
  720. package/serialization/resources/run/client/requests/RunCreateParams.js +36 -0
  721. package/serialization/resources/run/client/requests/UpdateStatusParams.d.ts +12 -0
  722. package/serialization/resources/run/client/requests/UpdateStatusParams.js +42 -0
  723. package/serialization/resources/run/client/requests/index.d.ts +2 -0
  724. package/serialization/resources/run/client/requests/index.js +7 -0
  725. package/serialization/resources/run/index.d.ts +1 -0
  726. package/serialization/resources/run/index.js +17 -0
  727. package/serialization/resources/testcase/client/index.d.ts +1 -0
  728. package/serialization/resources/testcase/client/index.js +17 -0
  729. package/serialization/resources/testcase/client/requests/TestcaseCreateParams.d.ts +16 -0
  730. package/serialization/resources/testcase/client/requests/TestcaseCreateParams.js +54 -0
  731. package/serialization/resources/testcase/client/requests/index.d.ts +1 -0
  732. package/serialization/resources/testcase/client/requests/index.js +5 -0
  733. package/serialization/resources/testcase/index.d.ts +2 -0
  734. package/serialization/resources/testcase/index.js +18 -0
  735. package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.d.ts +10 -0
  736. package/serialization/resources/testcase/types/TestcaseCreateParamsCustomInputsValue.js +43 -0
  737. package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.d.ts +10 -0
  738. package/serialization/resources/testcase/types/TestcaseCreateParamsCustomLabelsValue.js +43 -0
  739. package/serialization/resources/testcase/types/index.d.ts +2 -0
  740. package/serialization/resources/testcase/types/index.js +18 -0
  741. package/serialization/resources/testrecord/client/index.d.ts +1 -0
  742. package/serialization/resources/testrecord/client/index.js +17 -0
  743. package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.d.ts +20 -0
  744. package/serialization/resources/testrecord/client/requests/TestrecordCreateParams.js +62 -0
  745. package/serialization/resources/testrecord/client/requests/index.d.ts +1 -0
  746. package/serialization/resources/testrecord/client/requests/index.js +5 -0
  747. package/serialization/resources/testrecord/index.d.ts +2 -0
  748. package/serialization/resources/testrecord/index.js +18 -0
  749. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.d.ts +10 -0
  750. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomInputsValue.js +43 -0
  751. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.d.ts +10 -0
  752. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomLabelsValue.js +43 -0
  753. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.d.ts +10 -0
  754. package/serialization/resources/testrecord/types/TestrecordCreateParamsCustomOutputsValue.js +43 -0
  755. package/serialization/resources/testrecord/types/index.d.ts +3 -0
  756. package/serialization/resources/testrecord/types/index.js +19 -0
  757. package/serialization/resources/testset/client/index.d.ts +1 -0
  758. package/serialization/resources/testset/client/index.js +17 -0
  759. package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +15 -0
  760. package/serialization/resources/testset/client/requests/TestsetCreateParams.js +45 -0
  761. package/serialization/resources/testset/client/requests/index.d.ts +1 -0
  762. package/serialization/resources/testset/client/requests/index.js +5 -0
  763. package/serialization/resources/testset/index.d.ts +1 -0
  764. package/serialization/resources/testset/index.js +17 -0
  765. package/serialization/types/AppCreateRunParams.d.ts +10 -0
  766. package/serialization/types/AppCreateRunParams.js +31 -0
  767. package/serialization/types/AppTestRecordCreate.d.ts +10 -0
  768. package/serialization/types/AppTestRecordCreate.js +31 -0
  769. package/serialization/types/AppTestSetCreate.d.ts +10 -0
  770. package/serialization/types/AppTestSetCreate.js +31 -0
  771. package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.d.ts +10 -0
  772. package/serialization/types/BodyStartGithubWorkflowStartGithubWorkflowPost.js +31 -0
  773. package/serialization/types/CreateRunParams.d.ts +15 -0
  774. package/serialization/types/CreateRunParams.js +36 -0
  775. package/serialization/types/CustomSchemaInput.d.ts +12 -0
  776. package/serialization/types/CustomSchemaInput.js +44 -0
  777. package/serialization/types/CustomSchemaOutput.d.ts +12 -0
  778. package/serialization/types/CustomSchemaOutput.js +44 -0
  779. package/serialization/types/CustomVariable.d.ts +15 -0
  780. package/serialization/types/CustomVariable.js +45 -0
  781. package/serialization/types/DataTypeEnum.d.ts +10 -0
  782. package/serialization/types/DataTypeEnum.js +31 -0
  783. package/serialization/types/ExecutionParams.d.ts +10 -0
  784. package/serialization/types/ExecutionParams.js +31 -0
  785. package/serialization/types/FileUrl.d.ts +13 -0
  786. package/serialization/types/FileUrl.js +34 -0
  787. package/serialization/types/HttpValidationError.d.ts +12 -0
  788. package/serialization/types/HttpValidationError.js +44 -0
  789. package/serialization/types/LibDtoTypesCreateRunParams.d.ts +10 -0
  790. package/serialization/types/LibDtoTypesCreateRunParams.js +31 -0
  791. package/serialization/types/LibDtoTypesTestRecordCreate.d.ts +10 -0
  792. package/serialization/types/LibDtoTypesTestRecordCreate.js +31 -0
  793. package/serialization/types/LibDtoTypesTestSetCreate.d.ts +10 -0
  794. package/serialization/types/LibDtoTypesTestSetCreate.js +31 -0
  795. package/serialization/types/ModelParams.d.ts +10 -0
  796. package/serialization/types/ModelParams.js +31 -0
  797. package/serialization/types/NotFoundErrorBody.d.ts +14 -0
  798. package/serialization/types/NotFoundErrorBody.js +35 -0
  799. package/serialization/types/PaginatedTestcaseResponse.d.ts +15 -0
  800. package/serialization/types/PaginatedTestcaseResponse.js +45 -0
  801. package/serialization/types/RoleEnum.d.ts +10 -0
  802. package/serialization/types/RoleEnum.js +31 -0
  803. package/serialization/types/RunExternal.d.ts +26 -0
  804. package/serialization/types/RunExternal.js +47 -0
  805. package/serialization/types/RunStatus.d.ts +10 -0
  806. package/serialization/types/RunStatus.js +38 -0
  807. package/serialization/types/ScoreExecutionParams.d.ts +10 -0
  808. package/serialization/types/ScoreExecutionParams.js +31 -0
  809. package/serialization/types/ScoringParams.d.ts +10 -0
  810. package/serialization/types/ScoringParams.js +31 -0
  811. package/serialization/types/TestCase.d.ts +19 -0
  812. package/serialization/types/TestCase.js +53 -0
  813. package/serialization/types/TestCaseCreate.d.ts +16 -0
  814. package/serialization/types/TestCaseCreate.js +37 -0
  815. package/serialization/types/TestCaseCreateInput.d.ts +10 -0
  816. package/serialization/types/TestCaseCreateInput.js +31 -0
  817. package/serialization/types/TestCaseCustomInputsValue.d.ts +10 -0
  818. package/serialization/types/TestCaseCustomInputsValue.js +44 -0
  819. package/serialization/types/TestCaseCustomLabelsValue.d.ts +10 -0
  820. package/serialization/types/TestCaseCustomLabelsValue.js +44 -0
  821. package/serialization/types/TestRecordCreate.d.ts +22 -0
  822. package/serialization/types/TestRecordCreate.js +43 -0
  823. package/serialization/types/TestSetCreate.d.ts +14 -0
  824. package/serialization/types/TestSetCreate.js +35 -0
  825. package/serialization/types/Testrecord.d.ts +23 -0
  826. package/serialization/types/Testrecord.js +59 -0
  827. package/serialization/types/TestrecordCustomInputsValue.d.ts +10 -0
  828. package/serialization/types/TestrecordCustomInputsValue.js +44 -0
  829. package/serialization/types/TestrecordCustomLabelsValue.d.ts +10 -0
  830. package/serialization/types/TestrecordCustomLabelsValue.js +44 -0
  831. package/serialization/types/TestrecordCustomOutputsValue.d.ts +10 -0
  832. package/serialization/types/TestrecordCustomOutputsValue.js +44 -0
  833. package/serialization/types/Testset.d.ts +23 -0
  834. package/serialization/types/Testset.js +53 -0
  835. package/serialization/types/UnauthenticatedError.d.ts +14 -0
  836. package/serialization/types/UnauthenticatedError.js +35 -0
  837. package/serialization/types/UnauthorizedErrorBody.d.ts +14 -0
  838. package/serialization/types/UnauthorizedErrorBody.js +35 -0
  839. package/serialization/types/ValidationError.d.ts +14 -0
  840. package/serialization/types/ValidationError.js +44 -0
  841. package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
  842. package/serialization/types/ValidationErrorLocItem.js +31 -0
  843. package/serialization/types/index.d.ts +39 -0
  844. package/serialization/types/index.js +55 -0
  845. package/wrapper/ScorecardClient.d.ts +32 -0
  846. package/wrapper/ScorecardClient.js +86 -0
@@ -0,0 +1,512 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Testset = void 0;
42
+ const environments = __importStar(require("../../../../environments"));
43
+ const core = __importStar(require("../../../../core"));
44
+ const Scorecard = __importStar(require("../../.."));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../serialization"));
47
+ const errors = __importStar(require("../../../../errors"));
48
+ class Testset {
49
+ constructor(_options) {
50
+ this._options = _options;
51
+ }
52
+ /**
53
+ * Retrieve Testset metadata without Testcase data.
54
+ * @throws {@link Scorecard.UnauthorizedError}
55
+ * @throws {@link Scorecard.ForbiddenError}
56
+ * @throws {@link Scorecard.NotFoundError}
57
+ * @throws {@link Scorecard.UnprocessableEntityError}
58
+ *
59
+ * @example
60
+ * await scorecard.testset.get(1)
61
+ */
62
+ get(testsetId, requestOptions) {
63
+ var _a;
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const _response = yield core.fetcher({
66
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}`),
67
+ method: "GET",
68
+ headers: {
69
+ "X-API-Key": yield core.Supplier.get(this._options.apiKey),
70
+ "X-Fern-Language": "JavaScript",
71
+ "X-Fern-SDK-Name": "scorecard-ai",
72
+ "X-Fern-SDK-Version": "0.1.10",
73
+ },
74
+ contentType: "application/json",
75
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
76
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
+ });
78
+ if (_response.ok) {
79
+ return yield serializers.Testset.parseOrThrow(_response.body, {
80
+ unrecognizedObjectKeys: "passthrough",
81
+ allowUnrecognizedUnionMembers: true,
82
+ allowUnrecognizedEnumValues: true,
83
+ skipValidation: true,
84
+ breadcrumbsPrefix: ["response"],
85
+ });
86
+ }
87
+ if (_response.error.reason === "status-code") {
88
+ switch (_response.error.statusCode) {
89
+ case 401:
90
+ throw new Scorecard.UnauthorizedError(yield serializers.UnauthenticatedError.parseOrThrow(_response.error.body, {
91
+ unrecognizedObjectKeys: "passthrough",
92
+ allowUnrecognizedUnionMembers: true,
93
+ allowUnrecognizedEnumValues: true,
94
+ skipValidation: true,
95
+ breadcrumbsPrefix: ["response"],
96
+ }));
97
+ case 403:
98
+ throw new Scorecard.ForbiddenError(yield serializers.UnauthorizedErrorBody.parseOrThrow(_response.error.body, {
99
+ unrecognizedObjectKeys: "passthrough",
100
+ allowUnrecognizedUnionMembers: true,
101
+ allowUnrecognizedEnumValues: true,
102
+ skipValidation: true,
103
+ breadcrumbsPrefix: ["response"],
104
+ }));
105
+ case 404:
106
+ throw new Scorecard.NotFoundError(yield serializers.NotFoundErrorBody.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }));
113
+ case 422:
114
+ throw new Scorecard.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }));
121
+ default:
122
+ throw new errors.ScorecardError({
123
+ statusCode: _response.error.statusCode,
124
+ body: _response.error.body,
125
+ });
126
+ }
127
+ }
128
+ switch (_response.error.reason) {
129
+ case "non-json":
130
+ throw new errors.ScorecardError({
131
+ statusCode: _response.error.statusCode,
132
+ body: _response.error.rawBody,
133
+ });
134
+ case "timeout":
135
+ throw new errors.ScorecardTimeoutError();
136
+ case "unknown":
137
+ throw new errors.ScorecardError({
138
+ message: _response.error.errorMessage,
139
+ });
140
+ }
141
+ });
142
+ }
143
+ /**
144
+ * Delete a Testset
145
+ * @throws {@link Scorecard.UnauthorizedError}
146
+ * @throws {@link Scorecard.ForbiddenError}
147
+ * @throws {@link Scorecard.NotFoundError}
148
+ * @throws {@link Scorecard.UnprocessableEntityError}
149
+ *
150
+ * @example
151
+ * await scorecard.testset.delete(1)
152
+ */
153
+ delete(testsetId, requestOptions) {
154
+ var _a;
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ const _response = yield core.fetcher({
157
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}`),
158
+ method: "DELETE",
159
+ headers: {
160
+ "X-API-Key": yield core.Supplier.get(this._options.apiKey),
161
+ "X-Fern-Language": "JavaScript",
162
+ "X-Fern-SDK-Name": "scorecard-ai",
163
+ "X-Fern-SDK-Version": "0.1.10",
164
+ },
165
+ contentType: "application/json",
166
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
167
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
168
+ });
169
+ if (_response.ok) {
170
+ return yield serializers.Testset.parseOrThrow(_response.body, {
171
+ unrecognizedObjectKeys: "passthrough",
172
+ allowUnrecognizedUnionMembers: true,
173
+ allowUnrecognizedEnumValues: true,
174
+ skipValidation: true,
175
+ breadcrumbsPrefix: ["response"],
176
+ });
177
+ }
178
+ if (_response.error.reason === "status-code") {
179
+ switch (_response.error.statusCode) {
180
+ case 401:
181
+ throw new Scorecard.UnauthorizedError(yield serializers.UnauthenticatedError.parseOrThrow(_response.error.body, {
182
+ unrecognizedObjectKeys: "passthrough",
183
+ allowUnrecognizedUnionMembers: true,
184
+ allowUnrecognizedEnumValues: true,
185
+ skipValidation: true,
186
+ breadcrumbsPrefix: ["response"],
187
+ }));
188
+ case 403:
189
+ throw new Scorecard.ForbiddenError(yield serializers.UnauthorizedErrorBody.parseOrThrow(_response.error.body, {
190
+ unrecognizedObjectKeys: "passthrough",
191
+ allowUnrecognizedUnionMembers: true,
192
+ allowUnrecognizedEnumValues: true,
193
+ skipValidation: true,
194
+ breadcrumbsPrefix: ["response"],
195
+ }));
196
+ case 404:
197
+ throw new Scorecard.NotFoundError(yield serializers.NotFoundErrorBody.parseOrThrow(_response.error.body, {
198
+ unrecognizedObjectKeys: "passthrough",
199
+ allowUnrecognizedUnionMembers: true,
200
+ allowUnrecognizedEnumValues: true,
201
+ skipValidation: true,
202
+ breadcrumbsPrefix: ["response"],
203
+ }));
204
+ case 422:
205
+ throw new Scorecard.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
206
+ unrecognizedObjectKeys: "passthrough",
207
+ allowUnrecognizedUnionMembers: true,
208
+ allowUnrecognizedEnumValues: true,
209
+ skipValidation: true,
210
+ breadcrumbsPrefix: ["response"],
211
+ }));
212
+ default:
213
+ throw new errors.ScorecardError({
214
+ statusCode: _response.error.statusCode,
215
+ body: _response.error.body,
216
+ });
217
+ }
218
+ }
219
+ switch (_response.error.reason) {
220
+ case "non-json":
221
+ throw new errors.ScorecardError({
222
+ statusCode: _response.error.statusCode,
223
+ body: _response.error.rawBody,
224
+ });
225
+ case "timeout":
226
+ throw new errors.ScorecardTimeoutError();
227
+ case "unknown":
228
+ throw new errors.ScorecardError({
229
+ message: _response.error.errorMessage,
230
+ });
231
+ }
232
+ });
233
+ }
234
+ /**
235
+ * Create a new Testset
236
+ * @throws {@link Scorecard.UnauthorizedError}
237
+ * @throws {@link Scorecard.ForbiddenError}
238
+ * @throws {@link Scorecard.NotFoundError}
239
+ * @throws {@link Scorecard.UnprocessableEntityError}
240
+ */
241
+ create(request, requestOptions) {
242
+ var _a;
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const _response = yield core.fetcher({
245
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, "v1/testset"),
246
+ method: "POST",
247
+ headers: {
248
+ "X-API-Key": yield core.Supplier.get(this._options.apiKey),
249
+ "X-Fern-Language": "JavaScript",
250
+ "X-Fern-SDK-Name": "scorecard-ai",
251
+ "X-Fern-SDK-Version": "0.1.10",
252
+ },
253
+ contentType: "application/json",
254
+ body: yield serializers.TestsetCreateParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
255
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
256
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
257
+ });
258
+ if (_response.ok) {
259
+ return yield serializers.Testset.parseOrThrow(_response.body, {
260
+ unrecognizedObjectKeys: "passthrough",
261
+ allowUnrecognizedUnionMembers: true,
262
+ allowUnrecognizedEnumValues: true,
263
+ skipValidation: true,
264
+ breadcrumbsPrefix: ["response"],
265
+ });
266
+ }
267
+ if (_response.error.reason === "status-code") {
268
+ switch (_response.error.statusCode) {
269
+ case 401:
270
+ throw new Scorecard.UnauthorizedError(yield serializers.UnauthenticatedError.parseOrThrow(_response.error.body, {
271
+ unrecognizedObjectKeys: "passthrough",
272
+ allowUnrecognizedUnionMembers: true,
273
+ allowUnrecognizedEnumValues: true,
274
+ skipValidation: true,
275
+ breadcrumbsPrefix: ["response"],
276
+ }));
277
+ case 403:
278
+ throw new Scorecard.ForbiddenError(yield serializers.UnauthorizedErrorBody.parseOrThrow(_response.error.body, {
279
+ unrecognizedObjectKeys: "passthrough",
280
+ allowUnrecognizedUnionMembers: true,
281
+ allowUnrecognizedEnumValues: true,
282
+ skipValidation: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }));
285
+ case 404:
286
+ throw new Scorecard.NotFoundError(yield serializers.NotFoundErrorBody.parseOrThrow(_response.error.body, {
287
+ unrecognizedObjectKeys: "passthrough",
288
+ allowUnrecognizedUnionMembers: true,
289
+ allowUnrecognizedEnumValues: true,
290
+ skipValidation: true,
291
+ breadcrumbsPrefix: ["response"],
292
+ }));
293
+ case 422:
294
+ throw new Scorecard.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
295
+ unrecognizedObjectKeys: "passthrough",
296
+ allowUnrecognizedUnionMembers: true,
297
+ allowUnrecognizedEnumValues: true,
298
+ skipValidation: true,
299
+ breadcrumbsPrefix: ["response"],
300
+ }));
301
+ default:
302
+ throw new errors.ScorecardError({
303
+ statusCode: _response.error.statusCode,
304
+ body: _response.error.body,
305
+ });
306
+ }
307
+ }
308
+ switch (_response.error.reason) {
309
+ case "non-json":
310
+ throw new errors.ScorecardError({
311
+ statusCode: _response.error.statusCode,
312
+ body: _response.error.rawBody,
313
+ });
314
+ case "timeout":
315
+ throw new errors.ScorecardTimeoutError();
316
+ case "unknown":
317
+ throw new errors.ScorecardError({
318
+ message: _response.error.errorMessage,
319
+ });
320
+ }
321
+ });
322
+ }
323
+ /**
324
+ * Read the schema of a Testset.
325
+ * @throws {@link Scorecard.UnauthorizedError}
326
+ * @throws {@link Scorecard.ForbiddenError}
327
+ * @throws {@link Scorecard.NotFoundError}
328
+ * @throws {@link Scorecard.UnprocessableEntityError}
329
+ *
330
+ * @example
331
+ * await scorecard.testset.getSchema(1)
332
+ */
333
+ getSchema(testsetId, requestOptions) {
334
+ var _a;
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ const _response = yield core.fetcher({
337
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}/schema`),
338
+ method: "GET",
339
+ headers: {
340
+ "X-API-Key": yield core.Supplier.get(this._options.apiKey),
341
+ "X-Fern-Language": "JavaScript",
342
+ "X-Fern-SDK-Name": "scorecard-ai",
343
+ "X-Fern-SDK-Version": "0.1.10",
344
+ },
345
+ contentType: "application/json",
346
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
347
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
348
+ });
349
+ if (_response.ok) {
350
+ return yield serializers.CustomSchemaOutput.parseOrThrow(_response.body, {
351
+ unrecognizedObjectKeys: "passthrough",
352
+ allowUnrecognizedUnionMembers: true,
353
+ allowUnrecognizedEnumValues: true,
354
+ skipValidation: true,
355
+ breadcrumbsPrefix: ["response"],
356
+ });
357
+ }
358
+ if (_response.error.reason === "status-code") {
359
+ switch (_response.error.statusCode) {
360
+ case 401:
361
+ throw new Scorecard.UnauthorizedError(yield serializers.UnauthenticatedError.parseOrThrow(_response.error.body, {
362
+ unrecognizedObjectKeys: "passthrough",
363
+ allowUnrecognizedUnionMembers: true,
364
+ allowUnrecognizedEnumValues: true,
365
+ skipValidation: true,
366
+ breadcrumbsPrefix: ["response"],
367
+ }));
368
+ case 403:
369
+ throw new Scorecard.ForbiddenError(yield serializers.UnauthorizedErrorBody.parseOrThrow(_response.error.body, {
370
+ unrecognizedObjectKeys: "passthrough",
371
+ allowUnrecognizedUnionMembers: true,
372
+ allowUnrecognizedEnumValues: true,
373
+ skipValidation: true,
374
+ breadcrumbsPrefix: ["response"],
375
+ }));
376
+ case 404:
377
+ throw new Scorecard.NotFoundError(yield serializers.NotFoundErrorBody.parseOrThrow(_response.error.body, {
378
+ unrecognizedObjectKeys: "passthrough",
379
+ allowUnrecognizedUnionMembers: true,
380
+ allowUnrecognizedEnumValues: true,
381
+ skipValidation: true,
382
+ breadcrumbsPrefix: ["response"],
383
+ }));
384
+ case 422:
385
+ throw new Scorecard.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
386
+ unrecognizedObjectKeys: "passthrough",
387
+ allowUnrecognizedUnionMembers: true,
388
+ allowUnrecognizedEnumValues: true,
389
+ skipValidation: true,
390
+ breadcrumbsPrefix: ["response"],
391
+ }));
392
+ default:
393
+ throw new errors.ScorecardError({
394
+ statusCode: _response.error.statusCode,
395
+ body: _response.error.body,
396
+ });
397
+ }
398
+ }
399
+ switch (_response.error.reason) {
400
+ case "non-json":
401
+ throw new errors.ScorecardError({
402
+ statusCode: _response.error.statusCode,
403
+ body: _response.error.rawBody,
404
+ });
405
+ case "timeout":
406
+ throw new errors.ScorecardTimeoutError();
407
+ case "unknown":
408
+ throw new errors.ScorecardError({
409
+ message: _response.error.errorMessage,
410
+ });
411
+ }
412
+ });
413
+ }
414
+ /**
415
+ * Retrieve all Testcases from a Testset
416
+ * @throws {@link Scorecard.UnauthorizedError}
417
+ * @throws {@link Scorecard.ForbiddenError}
418
+ * @throws {@link Scorecard.NotFoundError}
419
+ * @throws {@link Scorecard.UnprocessableEntityError}
420
+ */
421
+ getTestcases(testsetId, request = {}, requestOptions) {
422
+ var _a;
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ const { page, pageSize } = request;
425
+ const _queryParams = {};
426
+ if (page != null) {
427
+ _queryParams["page"] = page.toString();
428
+ }
429
+ if (pageSize != null) {
430
+ _queryParams["page_size"] = pageSize.toString();
431
+ }
432
+ const _response = yield core.fetcher({
433
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.ScorecardEnvironment.Default, `v1/testset/${testsetId}/testcase`),
434
+ method: "GET",
435
+ headers: {
436
+ "X-API-Key": yield core.Supplier.get(this._options.apiKey),
437
+ "X-Fern-Language": "JavaScript",
438
+ "X-Fern-SDK-Name": "scorecard-ai",
439
+ "X-Fern-SDK-Version": "0.1.10",
440
+ },
441
+ contentType: "application/json",
442
+ queryParameters: _queryParams,
443
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
444
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
445
+ });
446
+ if (_response.ok) {
447
+ return yield serializers.PaginatedTestcaseResponse.parseOrThrow(_response.body, {
448
+ unrecognizedObjectKeys: "passthrough",
449
+ allowUnrecognizedUnionMembers: true,
450
+ allowUnrecognizedEnumValues: true,
451
+ skipValidation: true,
452
+ breadcrumbsPrefix: ["response"],
453
+ });
454
+ }
455
+ if (_response.error.reason === "status-code") {
456
+ switch (_response.error.statusCode) {
457
+ case 401:
458
+ throw new Scorecard.UnauthorizedError(yield serializers.UnauthenticatedError.parseOrThrow(_response.error.body, {
459
+ unrecognizedObjectKeys: "passthrough",
460
+ allowUnrecognizedUnionMembers: true,
461
+ allowUnrecognizedEnumValues: true,
462
+ skipValidation: true,
463
+ breadcrumbsPrefix: ["response"],
464
+ }));
465
+ case 403:
466
+ throw new Scorecard.ForbiddenError(yield serializers.UnauthorizedErrorBody.parseOrThrow(_response.error.body, {
467
+ unrecognizedObjectKeys: "passthrough",
468
+ allowUnrecognizedUnionMembers: true,
469
+ allowUnrecognizedEnumValues: true,
470
+ skipValidation: true,
471
+ breadcrumbsPrefix: ["response"],
472
+ }));
473
+ case 404:
474
+ throw new Scorecard.NotFoundError(yield serializers.NotFoundErrorBody.parseOrThrow(_response.error.body, {
475
+ unrecognizedObjectKeys: "passthrough",
476
+ allowUnrecognizedUnionMembers: true,
477
+ allowUnrecognizedEnumValues: true,
478
+ skipValidation: true,
479
+ breadcrumbsPrefix: ["response"],
480
+ }));
481
+ case 422:
482
+ throw new Scorecard.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
483
+ unrecognizedObjectKeys: "passthrough",
484
+ allowUnrecognizedUnionMembers: true,
485
+ allowUnrecognizedEnumValues: true,
486
+ skipValidation: true,
487
+ breadcrumbsPrefix: ["response"],
488
+ }));
489
+ default:
490
+ throw new errors.ScorecardError({
491
+ statusCode: _response.error.statusCode,
492
+ body: _response.error.body,
493
+ });
494
+ }
495
+ }
496
+ switch (_response.error.reason) {
497
+ case "non-json":
498
+ throw new errors.ScorecardError({
499
+ statusCode: _response.error.statusCode,
500
+ body: _response.error.rawBody,
501
+ });
502
+ case "timeout":
503
+ throw new errors.ScorecardTimeoutError();
504
+ case "unknown":
505
+ throw new errors.ScorecardError({
506
+ message: _response.error.errorMessage,
507
+ });
508
+ }
509
+ });
510
+ }
511
+ }
512
+ exports.Testset = Testset;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Scorecard from "../../../..";
5
+ export interface TestsetCreateParams {
6
+ name: string;
7
+ description?: string;
8
+ usingRetrieval: boolean;
9
+ customSchema?: Scorecard.CustomSchemaInput;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestsetGetTestcasesRequest {
5
+ page?: number;
6
+ pageSize?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { TestsetCreateParams } from "./TestsetCreateParams";
2
+ export { TestsetGetTestcasesRequest } from "./TestsetGetTestcasesRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type AppCreateRunParams = unknown;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type AppTestRecordCreate = unknown;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type AppTestSetCreate = unknown;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type BodyStartGithubWorkflowStartGithubWorkflowPost = unknown;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateRunParams {
5
+ testsetId: number;
6
+ scoringConfigId: number;
7
+ status?: string;
8
+ modelParams?: Record<string, unknown>;
9
+ }