@lightsage/mcp 0.4.4 → 0.4.6

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 (250) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +1320 -565
  3. package/bin/mcp-server.js.map +46 -24
  4. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +15 -0
  5. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
  6. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js +72 -0
  7. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
  8. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +16 -0
  9. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
  10. package/esm/funcs/{contentV2ContentDraftsCreate.js → agentPreferenceV2AgentPreferenceEvalsCreate.js} +9 -9
  11. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
  12. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +16 -0
  13. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
  14. package/esm/funcs/{contentV2ContentFinalize.js → agentPreferenceV2AgentPreferenceEvalsDelete.js} +11 -11
  15. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
  16. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts +15 -0
  17. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
  18. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js +72 -0
  19. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
  20. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +16 -0
  21. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
  22. package/esm/funcs/{contentV2ContentRetrieve.js → agentPreferenceV2AgentPreferenceEvalsRetrieve.js} +10 -10
  23. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
  24. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +16 -0
  25. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
  26. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js +89 -0
  27. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
  28. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +16 -0
  29. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  30. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +86 -0
  31. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
  32. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts +16 -0
  33. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
  34. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js +93 -0
  35. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
  36. package/esm/landing-page.js +1 -1
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/mcp-server/mcp-server.js +1 -1
  40. package/esm/mcp-server/server.d.ts.map +1 -1
  41. package/esm/mcp-server/server.js +17 -7
  42. package/esm/mcp-server/server.js.map +1 -1
  43. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +3 -0
  44. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
  45. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js +30 -0
  46. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
  47. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +7 -0
  48. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
  49. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js +35 -0
  50. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
  51. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +7 -0
  52. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
  53. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js +35 -0
  54. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
  55. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts +3 -0
  56. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
  57. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js +30 -0
  58. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
  59. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +7 -0
  60. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
  61. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js +35 -0
  62. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
  63. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +7 -0
  64. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
  65. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js +35 -0
  66. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
  67. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +7 -0
  68. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  69. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +35 -0
  70. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
  71. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts +7 -0
  72. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
  73. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js +35 -0
  74. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
  75. package/esm/models/createevaltemplaterequest.d.ts +1 -1
  76. package/esm/models/createv2agentpreferenceevalrequest.d.ts +14 -0
  77. package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -0
  78. package/esm/models/createv2agentpreferenceevalrequest.js +17 -0
  79. package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -0
  80. package/esm/models/evaltemplate.d.ts +1 -1
  81. package/esm/models/updateevaltemplaterequest.d.ts +1 -1
  82. package/esm/models/updatev2agentpreferenceevalrequest.d.ts +13 -0
  83. package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -0
  84. package/esm/models/updatev2agentpreferenceevalrequest.js +16 -0
  85. package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -0
  86. package/esm/models/v2agentpreferencecompany.d.ts +7 -0
  87. package/esm/models/v2agentpreferencecompany.d.ts.map +1 -0
  88. package/esm/models/v2agentpreferencecompany.js +10 -0
  89. package/esm/models/v2agentpreferencecompany.js.map +1 -0
  90. package/esm/models/v2agentpreferencecompetitor.d.ts +9 -0
  91. package/esm/models/v2agentpreferencecompetitor.d.ts.map +1 -0
  92. package/esm/models/v2agentpreferencecompetitor.js +12 -0
  93. package/esm/models/v2agentpreferencecompetitor.js.map +1 -0
  94. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts +8 -0
  95. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts.map +1 -0
  96. package/esm/models/v2agentpreferencecompetitorsresponse.js +11 -0
  97. package/esm/models/v2agentpreferencecompetitorsresponse.js.map +1 -0
  98. package/esm/models/v2agentpreferenceeval.d.ts +19 -0
  99. package/esm/models/v2agentpreferenceeval.d.ts.map +1 -0
  100. package/esm/models/v2agentpreferenceeval.js +23 -0
  101. package/esm/models/v2agentpreferenceeval.js.map +1 -0
  102. package/esm/models/v2agentpreferenceevalscreateop.d.ts +6 -0
  103. package/esm/models/v2agentpreferenceevalscreateop.d.ts.map +1 -0
  104. package/esm/models/v2agentpreferenceevalscreateop.js +12 -0
  105. package/esm/models/v2agentpreferenceevalscreateop.js.map +1 -0
  106. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts +10 -0
  107. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts.map +1 -0
  108. package/esm/models/v2agentpreferenceevalsdeleteop.js +15 -0
  109. package/esm/models/v2agentpreferenceevalsdeleteop.js.map +1 -0
  110. package/esm/models/v2agentpreferenceevalsresponse.d.ts +8 -0
  111. package/esm/models/v2agentpreferenceevalsresponse.d.ts.map +1 -0
  112. package/esm/models/v2agentpreferenceevalsresponse.js +11 -0
  113. package/esm/models/v2agentpreferenceevalsresponse.js.map +1 -0
  114. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts +10 -0
  115. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts.map +1 -0
  116. package/esm/models/v2agentpreferenceevalsretrieveop.js +15 -0
  117. package/esm/models/v2agentpreferenceevalsretrieveop.js.map +1 -0
  118. package/esm/models/v2agentpreferenceevalsupdateop.d.ts +12 -0
  119. package/esm/models/v2agentpreferenceevalsupdateop.d.ts.map +1 -0
  120. package/esm/models/v2agentpreferenceevalsupdateop.js +17 -0
  121. package/esm/models/v2agentpreferenceevalsupdateop.js.map +1 -0
  122. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts +15 -0
  123. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts.map +1 -0
  124. package/esm/models/v2agentpreferenceheadtoheadresponse.js +18 -0
  125. package/esm/models/v2agentpreferenceheadtoheadresponse.js.map +1 -0
  126. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts +10 -0
  127. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts.map +1 -0
  128. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js +15 -0
  129. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js.map +1 -0
  130. package/esm/models/v2agentpreferencematchup.d.ts +14 -0
  131. package/esm/models/v2agentpreferencematchup.d.ts.map +1 -0
  132. package/esm/models/v2agentpreferencematchup.js +17 -0
  133. package/esm/models/v2agentpreferencematchup.js.map +1 -0
  134. package/esm/models/v2agentpreferencerecord.d.ts +10 -0
  135. package/esm/models/v2agentpreferencerecord.d.ts.map +1 -0
  136. package/esm/models/v2agentpreferencerecord.js +13 -0
  137. package/esm/models/v2agentpreferencerecord.js.map +1 -0
  138. package/esm/models/v2agentpreferenceresult.d.ts +12 -0
  139. package/esm/models/v2agentpreferenceresult.d.ts.map +1 -0
  140. package/esm/models/v2agentpreferenceresult.js +16 -0
  141. package/esm/models/v2agentpreferenceresult.js.map +1 -0
  142. package/esm/models/v2agentpreferenceresultslistop.d.ts +12 -0
  143. package/esm/models/v2agentpreferenceresultslistop.d.ts.map +1 -0
  144. package/esm/models/v2agentpreferenceresultslistop.js +17 -0
  145. package/esm/models/v2agentpreferenceresultslistop.js.map +1 -0
  146. package/esm/models/v2agentpreferenceresultsresponse.d.ts +11 -0
  147. package/esm/models/v2agentpreferenceresultsresponse.d.ts.map +1 -0
  148. package/esm/models/v2agentpreferenceresultsresponse.js +14 -0
  149. package/esm/models/v2agentpreferenceresultsresponse.js.map +1 -0
  150. package/esm/models/v2evalresultsummary.d.ts +2 -0
  151. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  152. package/esm/models/v2evalresultsummary.js +3 -0
  153. package/esm/models/v2evalresultsummary.js.map +1 -1
  154. package/esm/models/v2preferenceresult.d.ts +30 -0
  155. package/esm/models/v2preferenceresult.d.ts.map +1 -0
  156. package/esm/models/v2preferenceresult.js +26 -0
  157. package/esm/models/v2preferenceresult.js.map +1 -0
  158. package/esm/tool-names.d.ts.map +1 -1
  159. package/esm/tool-names.js +32 -12
  160. package/esm/tool-names.js.map +1 -1
  161. package/package.json +1 -1
  162. package/src/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.ts +124 -0
  163. package/src/funcs/{contentV2ContentDraftsCreate.ts → agentPreferenceV2AgentPreferenceEvalsCreate.ts} +13 -13
  164. package/src/funcs/{contentV2ContentFinalize.ts → agentPreferenceV2AgentPreferenceEvalsDelete.ts} +14 -14
  165. package/src/funcs/agentPreferenceV2AgentPreferenceEvalsList.ts +124 -0
  166. package/src/funcs/{contentV2ContentRetrieve.ts → agentPreferenceV2AgentPreferenceEvalsRetrieve.ts} +13 -13
  167. package/src/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +154 -0
  168. package/src/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +151 -0
  169. package/src/funcs/agentPreferenceV2AgentPreferenceResultsList.ts +158 -0
  170. package/src/landing-page.ts +1 -1
  171. package/src/lib/config.ts +2 -2
  172. package/src/mcp-server/mcp-server.ts +1 -1
  173. package/src/mcp-server/server.ts +17 -7
  174. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.ts +37 -0
  175. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.ts +45 -0
  176. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.ts +45 -0
  177. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.ts +36 -0
  178. package/src/mcp-server/tools/{contentV2ContentRetrieve.ts → agentPreferenceV2AgentPreferenceEvalsRetrieve.ts} +11 -9
  179. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +45 -0
  180. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +44 -0
  181. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.ts +45 -0
  182. package/src/models/createv2agentpreferenceevalrequest.ts +48 -0
  183. package/src/models/updatev2agentpreferenceevalrequest.ts +38 -0
  184. package/src/models/v2agentpreferencecompany.ts +18 -0
  185. package/src/models/v2agentpreferencecompetitor.ts +22 -0
  186. package/src/models/v2agentpreferencecompetitorsresponse.ts +22 -0
  187. package/src/models/v2agentpreferenceeval.ts +54 -0
  188. package/src/models/v2agentpreferenceevalscreateop.ts +25 -0
  189. package/src/models/v2agentpreferenceevalsdeleteop.ts +33 -0
  190. package/src/models/v2agentpreferenceevalsresponse.ts +22 -0
  191. package/src/models/v2agentpreferenceevalsretrieveop.ts +33 -0
  192. package/src/models/v2agentpreferenceevalsupdateop.ts +41 -0
  193. package/src/models/v2agentpreferenceheadtoheadresponse.ts +46 -0
  194. package/src/models/v2agentpreferenceheadtoheadretrieveop.ts +37 -0
  195. package/src/models/v2agentpreferencematchup.ts +42 -0
  196. package/src/models/v2agentpreferencerecord.ts +30 -0
  197. package/src/models/v2agentpreferenceresult.ts +35 -0
  198. package/src/models/v2agentpreferenceresultslistop.ts +39 -0
  199. package/src/models/v2agentpreferenceresultsresponse.ts +28 -0
  200. package/src/models/v2evalresultsummary.ts +9 -0
  201. package/src/models/v2preferenceresult.ts +50 -0
  202. package/src/tool-names.ts +32 -12
  203. package/esm/funcs/contentV2ContentDraftsCreate.d.ts +0 -16
  204. package/esm/funcs/contentV2ContentDraftsCreate.d.ts.map +0 -1
  205. package/esm/funcs/contentV2ContentDraftsCreate.js.map +0 -1
  206. package/esm/funcs/contentV2ContentFinalize.d.ts +0 -16
  207. package/esm/funcs/contentV2ContentFinalize.d.ts.map +0 -1
  208. package/esm/funcs/contentV2ContentFinalize.js.map +0 -1
  209. package/esm/funcs/contentV2ContentRetrieve.d.ts +0 -16
  210. package/esm/funcs/contentV2ContentRetrieve.d.ts.map +0 -1
  211. package/esm/funcs/contentV2ContentRetrieve.js.map +0 -1
  212. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts +0 -7
  213. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts.map +0 -1
  214. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js +0 -35
  215. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js.map +0 -1
  216. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts +0 -7
  217. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts.map +0 -1
  218. package/esm/mcp-server/tools/contentV2ContentFinalize.js +0 -35
  219. package/esm/mcp-server/tools/contentV2ContentFinalize.js.map +0 -1
  220. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts +0 -7
  221. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts.map +0 -1
  222. package/esm/mcp-server/tools/contentV2ContentRetrieve.js +0 -35
  223. package/esm/mcp-server/tools/contentV2ContentRetrieve.js.map +0 -1
  224. package/esm/models/generatecontentdraftrequest.d.ts +0 -9
  225. package/esm/models/generatecontentdraftrequest.d.ts.map +0 -1
  226. package/esm/models/generatecontentdraftrequest.js +0 -12
  227. package/esm/models/generatecontentdraftrequest.js.map +0 -1
  228. package/esm/models/publiccontent.d.ts +0 -11
  229. package/esm/models/publiccontent.d.ts.map +0 -1
  230. package/esm/models/publiccontent.js +0 -14
  231. package/esm/models/publiccontent.js.map +0 -1
  232. package/esm/models/v2contentdraftscreateop.d.ts +0 -6
  233. package/esm/models/v2contentdraftscreateop.d.ts.map +0 -1
  234. package/esm/models/v2contentdraftscreateop.js +0 -12
  235. package/esm/models/v2contentdraftscreateop.js.map +0 -1
  236. package/esm/models/v2contentfinalizeop.d.ts +0 -10
  237. package/esm/models/v2contentfinalizeop.d.ts.map +0 -1
  238. package/esm/models/v2contentfinalizeop.js +0 -15
  239. package/esm/models/v2contentfinalizeop.js.map +0 -1
  240. package/esm/models/v2contentretrieveop.d.ts +0 -10
  241. package/esm/models/v2contentretrieveop.d.ts.map +0 -1
  242. package/esm/models/v2contentretrieveop.js +0 -15
  243. package/esm/models/v2contentretrieveop.js.map +0 -1
  244. package/src/mcp-server/tools/contentV2ContentDraftsCreate.ts +0 -43
  245. package/src/mcp-server/tools/contentV2ContentFinalize.ts +0 -43
  246. package/src/models/generatecontentdraftrequest.ts +0 -28
  247. package/src/models/publiccontent.ts +0 -24
  248. package/src/models/v2contentdraftscreateop.ts +0 -20
  249. package/src/models/v2contentfinalizeop.ts +0 -28
  250. package/src/models/v2contentretrieveop.ts +0 -28
@@ -0,0 +1,15 @@
1
+ import * as z from "zod";
2
+ import { V2AgentPreferenceCompany } from "./v2agentpreferencecompany.js";
3
+ import { V2AgentPreferenceMatchup } from "./v2agentpreferencematchup.js";
4
+ import { V2AgentPreferenceRecord } from "./v2agentpreferencerecord.js";
5
+ export type V2AgentPreferenceHeadToHeadResponse = {
6
+ company: V2AgentPreferenceCompany;
7
+ summary: V2AgentPreferenceRecord;
8
+ data?: Array<V2AgentPreferenceMatchup> | undefined;
9
+ count: number;
10
+ attempts_considered: number;
11
+ limit: number;
12
+ truncated: boolean;
13
+ };
14
+ export declare const V2AgentPreferenceHeadToHeadResponse$zodSchema: z.ZodType<V2AgentPreferenceHeadToHeadResponse>;
15
+ //# sourceMappingURL=v2agentpreferenceheadtoheadresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceheadtoheadresponse.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferenceheadtoheadresponse.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,mCAAmC,GAAG;IAChD,OAAO,EAAE,wBAAwB,CAAC;IAClC,OAAO,EAAE,uBAAuB,CAAC;IACjC,IAAI,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,mCAAmC,CAenC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 99637517cc95
4
+ */
5
+ import * as z from "zod";
6
+ import { V2AgentPreferenceCompany$zodSchema, } from "./v2agentpreferencecompany.js";
7
+ import { V2AgentPreferenceMatchup$zodSchema, } from "./v2agentpreferencematchup.js";
8
+ import { V2AgentPreferenceRecord$zodSchema, } from "./v2agentpreferencerecord.js";
9
+ export const V2AgentPreferenceHeadToHeadResponse$zodSchema = z.object({
10
+ attempts_considered: z.int().describe("Recent attempts read to build the records. Attempts without a usable recommendation are read but not counted as comparisons."),
11
+ company: V2AgentPreferenceCompany$zodSchema,
12
+ count: z.int().describe("The number of items in `data`."),
13
+ data: z.array(V2AgentPreferenceMatchup$zodSchema).optional().describe("One record per competitor, most comparisons first."),
14
+ limit: z.int(),
15
+ summary: V2AgentPreferenceRecord$zodSchema,
16
+ truncated: z.boolean().describe("True when older attempts exist beyond `limit` and were not counted."),
17
+ });
18
+ //# sourceMappingURL=v2agentpreferenceheadtoheadresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceheadtoheadresponse.js","sourceRoot":"","sources":["../../src/models/v2agentpreferenceheadtoheadresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AAYtC,MAAM,CAAC,MAAM,6CAA6C,GAEtD,CAAC,CAAC,MAAM,CAAC;IACX,mBAAmB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACnC,8HAA8H,CAC/H;IACD,OAAO,EAAE,kCAAkC;IAC3C,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACnE,oDAAoD,CACrD;IACD,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;IACd,OAAO,EAAE,iCAAiC;IAC1C,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAC7B,qEAAqE,CACtE;CACF,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ import { HTTPValidationError } from "./httpvalidationerror.js";
3
+ import { V2AgentPreferenceHeadToHeadResponse } from "./v2agentpreferenceheadtoheadresponse.js";
4
+ export type V2AgentPreferenceHeadToHeadRetrieveRequest = {
5
+ limit?: number | undefined;
6
+ };
7
+ export declare const V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema: z.ZodType<V2AgentPreferenceHeadToHeadRetrieveRequest>;
8
+ export type V2AgentPreferenceHeadToHeadRetrieveResponse = V2AgentPreferenceHeadToHeadResponse | HTTPValidationError;
9
+ export declare const V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema: z.ZodType<V2AgentPreferenceHeadToHeadRetrieveResponse>;
10
+ //# sourceMappingURL=v2agentpreferenceheadtoheadretrieveop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceheadtoheadretrieveop.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferenceheadtoheadretrieveop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,0CAA0C,GAAG;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,0CAA0C,CAK1C,CAAC;AAEH,MAAM,MAAM,2CAA2C,GACnD,mCAAmC,GACnC,mBAAmB,CAAC;AAExB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,2CAA2C,CAI3C,CAAC"}
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 87046f40d0de
4
+ */
5
+ import * as z from "zod";
6
+ import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
+ import { V2AgentPreferenceHeadToHeadResponse$zodSchema, } from "./v2agentpreferenceheadtoheadresponse.js";
8
+ export const V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema = z.object({
9
+ limit: z.int().default(500).describe("Most recent attempts to include in the records."),
10
+ });
11
+ export const V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema = z.union([
12
+ V2AgentPreferenceHeadToHeadResponse$zodSchema,
13
+ HTTPValidationError$zodSchema,
14
+ ]);
15
+ //# sourceMappingURL=v2agentpreferenceheadtoheadretrieveop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceheadtoheadretrieveop.js","sourceRoot":"","sources":["../../src/models/v2agentpreferenceheadtoheadretrieveop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,6CAA6C,GAC9C,MAAM,0CAA0C,CAAC;AAMlD,MAAM,CAAC,MAAM,oDAAoD,GAE7D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAClC,iDAAiD,CAClD;CACF,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,qDAAqD,GAE9D,CAAC,CAAC,KAAK,CAAC;IACV,6CAA6C;IAC7C,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as z from "zod";
2
+ export type V2AgentPreferenceMatchup = {
3
+ wins: number;
4
+ losses: number;
5
+ ties: number;
6
+ comparisons: number;
7
+ win_rate?: number | null | undefined;
8
+ competitor_id?: string | null | undefined;
9
+ competitor_name: string;
10
+ competitor_domain?: string | null | undefined;
11
+ eval_ids?: Array<string> | undefined;
12
+ };
13
+ export declare const V2AgentPreferenceMatchup$zodSchema: z.ZodType<V2AgentPreferenceMatchup>;
14
+ //# sourceMappingURL=v2agentpreferencematchup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferencematchup.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferencematchup.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,wBAAwB,CAqBxB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6f8baf2ca4f8
4
+ */
5
+ import * as z from "zod";
6
+ export const V2AgentPreferenceMatchup$zodSchema = z.object({
7
+ comparisons: z.int().describe("`wins + losses + ties`."),
8
+ competitor_domain: z.string().nullable().optional(),
9
+ competitor_id: z.string().nullable().optional().describe("Null when the competitor is no longer tracked."),
10
+ competitor_name: z.string(),
11
+ eval_ids: z.array(z.string()).optional().describe("Agent Preference evals that contributed to this record."),
12
+ losses: z.int().describe("Attempts where the agent recommended the competitor."),
13
+ ties: z.int().describe("Attempts where the agent recommended both equally or neither."),
14
+ win_rate: z.number().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
15
+ wins: z.int().describe("Attempts where the agent recommended your company."),
16
+ });
17
+ //# sourceMappingURL=v2agentpreferencematchup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferencematchup.js","sourceRoot":"","sources":["../../src/models/v2agentpreferencematchup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAczB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACxD,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACtD,gDAAgD,CACjD;IACD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC/C,yDAAyD,CAC1D;IACD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACtB,sDAAsD,CACvD;IACD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACpB,+DAA+D,CAChE;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,uEAAuE,CACxE;IACD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAC7E,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as z from "zod";
2
+ export type V2AgentPreferenceRecord = {
3
+ wins: number;
4
+ losses: number;
5
+ ties: number;
6
+ comparisons: number;
7
+ win_rate?: number | null | undefined;
8
+ };
9
+ export declare const V2AgentPreferenceRecord$zodSchema: z.ZodType<V2AgentPreferenceRecord>;
10
+ //# sourceMappingURL=v2agentpreferencerecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferencerecord.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferencerecord.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,uBAAuB,CAavB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e7cdf1901a18
4
+ */
5
+ import * as z from "zod";
6
+ export const V2AgentPreferenceRecord$zodSchema = z.object({
7
+ comparisons: z.int().describe("`wins + losses + ties`."),
8
+ losses: z.int().describe("Attempts where the agent recommended the competitor."),
9
+ ties: z.int().describe("Attempts where the agent recommended both equally or neither."),
10
+ win_rate: z.number().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
11
+ wins: z.int().describe("Attempts where the agent recommended your company."),
12
+ });
13
+ //# sourceMappingURL=v2agentpreferencerecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferencerecord.js","sourceRoot":"","sources":["../../src/models/v2agentpreferencerecord.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAUzB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACxD,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACtB,sDAAsD,CACvD;IACD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CACpB,+DAA+D,CAChE;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD,uEAAuE,CACxE;IACD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAC7E,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as z from "zod";
2
+ import { V2PreferenceResult } from "./v2preferenceresult.js";
3
+ export type V2AgentPreferenceResult = {
4
+ id: string;
5
+ eval_id: string;
6
+ agent?: string | null | undefined;
7
+ preference_result?: V2PreferenceResult | null | undefined;
8
+ latency_ms?: number | null | undefined;
9
+ created_at?: string | null | undefined;
10
+ };
11
+ export declare const V2AgentPreferenceResult$zodSchema: z.ZodType<V2AgentPreferenceResult>;
12
+ //# sourceMappingURL=v2agentpreferenceresult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresult.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresult.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,iBAAiB,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,uBAAuB,CAavB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 028853e29c4e
4
+ */
5
+ import * as z from "zod";
6
+ import { V2PreferenceResult$zodSchema, } from "./v2preferenceresult.js";
7
+ export const V2AgentPreferenceResult$zodSchema = z.object({
8
+ agent: z.string().nullable().optional().describe("Runnable agent combining the harness and model."),
9
+ created_at: z.string().nullable().optional(),
10
+ eval_id: z.string(),
11
+ id: z.string().describe("Result ID for one attempt."),
12
+ latency_ms: z.int().nullable().optional(),
13
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional()
14
+ .describe("Null when the attempt did not produce a usable recommendation, such as an attempt that ended in an error."),
15
+ });
16
+ //# sourceMappingURL=v2agentpreferenceresult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresult.js","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresult.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AAWjC,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,iDAAiD,CAClD;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACrD,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,iBAAiB,EAAE,4BAA4B,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SAClE,QAAQ,CACP,2GAA2G,CAC5G;CACJ,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import * as z from "zod";
2
+ import { HTTPValidationError } from "./httpvalidationerror.js";
3
+ import { V2AgentPreferenceResultsResponse } from "./v2agentpreferenceresultsresponse.js";
4
+ export type V2AgentPreferenceResultsListRequest = {
5
+ eval_id: string;
6
+ limit?: number | undefined;
7
+ offset?: number | undefined;
8
+ };
9
+ export declare const V2AgentPreferenceResultsListRequest$zodSchema: z.ZodType<V2AgentPreferenceResultsListRequest>;
10
+ export type V2AgentPreferenceResultsListResponse = V2AgentPreferenceResultsResponse | HTTPValidationError;
11
+ export declare const V2AgentPreferenceResultsListResponse$zodSchema: z.ZodType<V2AgentPreferenceResultsListResponse>;
12
+ //# sourceMappingURL=v2agentpreferenceresultslistop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresultslistop.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresultslistop.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gCAAgC,EAEjC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,MAAM,mCAAmC,GAAG;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,mCAAmC,CAKnC,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAC5C,gCAAgC,GAChC,mBAAmB,CAAC;AAExB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,oCAAoC,CAIpC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: eb30f69d3567
4
+ */
5
+ import * as z from "zod";
6
+ import { HTTPValidationError$zodSchema, } from "./httpvalidationerror.js";
7
+ import { V2AgentPreferenceResultsResponse$zodSchema, } from "./v2agentpreferenceresultsresponse.js";
8
+ export const V2AgentPreferenceResultsListRequest$zodSchema = z.object({
9
+ eval_id: z.string(),
10
+ limit: z.int().default(50),
11
+ offset: z.int().default(0),
12
+ });
13
+ export const V2AgentPreferenceResultsListResponse$zodSchema = z.union([
14
+ V2AgentPreferenceResultsResponse$zodSchema,
15
+ HTTPValidationError$zodSchema,
16
+ ]);
17
+ //# sourceMappingURL=v2agentpreferenceresultslistop.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresultslistop.js","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresultslistop.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,0CAA0C,GAC3C,MAAM,uCAAuC,CAAC;AAQ/C,MAAM,CAAC,MAAM,6CAA6C,GAEtD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAC3B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,8CAA8C,GAEvD,CAAC,CAAC,KAAK,CAAC;IACV,0CAA0C;IAC1C,6BAA6B;CAC9B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as z from "zod";
2
+ import { V2AgentPreferenceResult } from "./v2agentpreferenceresult.js";
3
+ export type V2AgentPreferenceResultsResponse = {
4
+ data?: Array<V2AgentPreferenceResult> | undefined;
5
+ count: number;
6
+ total: number;
7
+ limit: number;
8
+ offset: number;
9
+ };
10
+ export declare const V2AgentPreferenceResultsResponse$zodSchema: z.ZodType<V2AgentPreferenceResultsResponse>;
11
+ //# sourceMappingURL=v2agentpreferenceresultsresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresultsresponse.d.ts","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresultsresponse.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,gCAAgC,CAOhC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f337a60c79fe
4
+ */
5
+ import * as z from "zod";
6
+ import { V2AgentPreferenceResult$zodSchema, } from "./v2agentpreferenceresult.js";
7
+ export const V2AgentPreferenceResultsResponse$zodSchema = z.object({
8
+ count: z.int().describe("The number of items in `data`."),
9
+ data: z.array(V2AgentPreferenceResult$zodSchema).optional(),
10
+ limit: z.int(),
11
+ offset: z.int(),
12
+ total: z.int().describe("All recorded attempts for this eval."),
13
+ });
14
+ //# sourceMappingURL=v2agentpreferenceresultsresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2agentpreferenceresultsresponse.js","sourceRoot":"","sources":["../../src/models/v2agentpreferenceresultsresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AAUtC,MAAM,CAAC,MAAM,0CAA0C,GAEnD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACzD,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC,QAAQ,EAAE;IAC3D,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CAChE,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import * as z from "zod";
2
2
  import { PublicEvalRunEnvironment } from "./publicevalrunenvironment.js";
3
3
  import { PublicGraderResult } from "./publicgraderresult.js";
4
4
  import { SearchGroundingMode } from "./searchgroundingmode.js";
5
+ import { V2PreferenceResult } from "./v2preferenceresult.js";
5
6
  export type V2EvalResultSummary = {
6
7
  id: string;
7
8
  eval_id?: string | null | undefined;
@@ -13,6 +14,7 @@ export type V2EvalResultSummary = {
13
14
  score?: number | null | undefined;
14
15
  failure_reasons?: Array<string> | null | undefined;
15
16
  grader_results?: Array<PublicGraderResult> | undefined;
17
+ preference_result?: V2PreferenceResult | null | undefined;
16
18
  latency_ms?: number | null | undefined;
17
19
  search_grounding?: SearchGroundingMode | null | undefined;
18
20
  web_retrieval_observed?: boolean | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"v2evalresultsummary.d.ts","sourceRoot":"","sources":["../../src/models/v2evalresultsummary.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEpB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,IA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AAG,IAAI,GAAG,SAAS,CAAC;CAC3D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAmCrE,CAAC"}
@@ -6,6 +6,7 @@ import * as z from "zod";
6
6
  import { PublicEvalRunEnvironment$zodSchema, } from "./publicevalrunenvironment.js";
7
7
  import { PublicGraderResult$zodSchema, } from "./publicgraderresult.js";
8
8
  import { SearchGroundingMode$zodSchema, } from "./searchgroundingmode.js";
9
+ import { V2PreferenceResult$zodSchema, } from "./v2preferenceresult.js";
9
10
  export const V2EvalResultSummary$zodSchema = z
10
11
  .object({
11
12
  agent: z.string().nullable().optional().describe("Runnable agent combining the harness and model."),
@@ -20,6 +21,8 @@ export const V2EvalResultSummary$zodSchema = z
20
21
  id: z.string().describe("Result ID, not an eval job ID."),
21
22
  latency_ms: z.int().nullable().optional(),
22
23
  passed: z.boolean().nullable().optional(),
24
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional()
25
+ .describe("Which company the agent recommended. Present only for Agent Preference evals that produced a usable recommendation."),
23
26
  prompt: z.string().nullable().optional(),
24
27
  prompt_index: z.int().default(0),
25
28
  repeat_index: z.int().default(0),
@@ -1 +1 @@
1
- {"version":3,"file":"v2evalresultsummary.js","sourceRoot":"","sources":["../../src/models/v2evalresultsummary.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAEL,kCAAkC,GACnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,6BAA6B,GAC9B,MAAM,0BAA0B,CAAC;AAuBlC,MAAM,CAAC,MAAM,6BAA6B,GAAmC,CAAC;KAC3E,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC9C,iDAAiD,CAClD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E;CAC1D,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ /**
4
+ * `won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.
5
+ */
6
+ export declare const Outcome: {
7
+ readonly Won: "won";
8
+ readonly Lost: "lost";
9
+ readonly Tie: "tie";
10
+ };
11
+ /**
12
+ * `won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.
13
+ */
14
+ export type Outcome = ClosedEnum<typeof Outcome>;
15
+ export declare const Outcome$zodSchema: z.ZodEnum<{
16
+ won: "won";
17
+ lost: "lost";
18
+ tie: "tie";
19
+ }>;
20
+ /**
21
+ * Which company an agent recommended, from your company's side.
22
+ */
23
+ export type V2PreferenceResult = {
24
+ outcome: Outcome;
25
+ winner_name?: string | null | undefined;
26
+ competitor_name?: string | null | undefined;
27
+ competitor_domain?: string | null | undefined;
28
+ };
29
+ export declare const V2PreferenceResult$zodSchema: z.ZodType<V2PreferenceResult>;
30
+ //# sourceMappingURL=v2preferenceresult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2preferenceresult.d.ts","sourceRoot":"","sources":["../../src/models/v2preferenceresult.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,OAAO;;;;CAIV,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;EAM7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAUO,CAAC"}
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3496de5752d0
4
+ */
5
+ import * as z from "zod";
6
+ /**
7
+ * `won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.
8
+ */
9
+ export const Outcome = {
10
+ Won: "won",
11
+ Lost: "lost",
12
+ Tie: "tie",
13
+ };
14
+ export const Outcome$zodSchema = z.enum([
15
+ "won",
16
+ "lost",
17
+ "tie",
18
+ ]).describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.");
19
+ export const V2PreferenceResult$zodSchema = z
20
+ .object({
21
+ competitor_domain: z.string().nullable().optional(),
22
+ competitor_name: z.string().nullable().optional(),
23
+ outcome: Outcome$zodSchema.describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither."),
24
+ winner_name: z.string().nullable().optional().describe("The recommended company. Null on a tie."),
25
+ }).describe("Which company an agent recommended, from your company's side.");
26
+ //# sourceMappingURL=v2preferenceresult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2preferenceresult.js","sourceRoot":"","sources":["../../src/models/v2preferenceresult.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;CACF,CAAC;AAMX,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,KAAK;IACL,MAAM;IACN,KAAK;CACN,CAAC,CAAC,QAAQ,CACT,kJAAkJ,CACnJ,CAAC;AAYF,MAAM,CAAC,MAAM,4BAA4B,GAAkC,CAAC;KACzE,MAAM,CAAC;IACN,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACnD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACjD,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CACjC,kJAAkJ,CACnJ;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpD,yCAAyC,CAC1C;CACF,CAAC,CAAC,QAAQ,CAAC,+DAA+D,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAiPlE,CAAC"}
1
+ {"version":3,"file":"tool-names.d.ts","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAqQlE,CAAC"}
package/esm/tool-names.js CHANGED
@@ -96,18 +96,6 @@ export const toolNames = [
96
96
  "name": "tasks-v2-tasks-update",
97
97
  "description": "Update Task\n\nUpdates a task's status, priority, assignee, or action type. Only sent fields are changed; omitted fields remain unchanged."
98
98
  },
99
- {
100
- "name": "content-v2-content-drafts-create",
101
- "description": "Create Content Draft\n\nGenerates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits."
102
- },
103
- {
104
- "name": "content-v2-content-finalize",
105
- "description": "Finalize Content\n\nRewrites an existing draft into final, publish-ready content and updates its status. Consumes credits."
106
- },
107
- {
108
- "name": "content-v2-content-retrieve",
109
- "description": "Retrieve Content\n\nReturns a content record by ID, including title, markdown body, slug, and status."
110
- },
111
99
  {
112
100
  "name": "site-audits-v2-site-audits-list",
113
101
  "description": "List Site Audits\n\nReturns every audited page and its actionable issues. Each page includes its score, priority, issue descriptions, evidence, and recommended fixes. This reads existing data and does not start a crawl."
@@ -200,6 +188,38 @@ export const toolNames = [
200
188
  "name": "eval-runs-v2-eval-runs-list",
201
189
  "description": "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
202
190
  },
191
+ {
192
+ "name": "agent-preference-v2-agent-preference-competitors-9f0",
193
+ "description": "List Competitors\n\nReturns the tracked competitors your company can be compared against. Use a returned `id` as `competitor_id` when creating an Agent Preference eval."
194
+ },
195
+ {
196
+ "name": "agent-preference-v2-agent-preference-head-to-273",
197
+ "description": "Retrieve Head To Head\n\nReturns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to `limit`; `truncated` reports whether older attempts were left out."
198
+ },
199
+ {
200
+ "name": "agent-preference-v2-agent-preference-evals-list",
201
+ "description": "List Evals\n\nReturns all active Agent Preference evals owned by the organization."
202
+ },
203
+ {
204
+ "name": "agent-preference-v2-agent-preference-evals-create",
205
+ "description": "Create Eval\n\nCreates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned `id` as `eval_id` to `POST /v2/eval-runs`."
206
+ },
207
+ {
208
+ "name": "agent-preference-v2-agent-preference-evals-retrieve",
209
+ "description": "Retrieve Eval\n\nReturns one Agent Preference eval."
210
+ },
211
+ {
212
+ "name": "agent-preference-v2-agent-preference-evals-update",
213
+ "description": "Update Eval\n\nUpdates an Agent Preference eval. Omitted fields remain unchanged, an empty `agent` or `tags` array clears that collection, and `persona: null` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed."
214
+ },
215
+ {
216
+ "name": "agent-preference-v2-agent-preference-evals-delete",
217
+ "description": "Delete Eval\n\nPermanently deletes an Agent Preference eval and returns its last saved state."
218
+ },
219
+ {
220
+ "name": "agent-preference-v2-agent-preference-results-list",
221
+ "description": "List Results\n\nReturns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor."
222
+ },
203
223
  {
204
224
  "name": "agents-v2-agents-list",
205
225
  "description": "List Agents\n\nReturns all runnable harness-and-model combinations as single agent IDs for use in eval runs."
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,wKAAwK;KACxL;IACD;QACE,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,6JAA6J;KAC7K;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,yEAAyE;KACzF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,qEAAqE;KACrF;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,uEAAuE;KACvF;IACD;QACE,MAAM,EAAE,iCAAi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AAE,uBAAuB;QAC/B,aAAa,EAAE,8GAA8G;KAC9H;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,6OAA6O;KAC7P;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,wFAAwF;KACxG;IACD;QACE,MAAM,EAAE,uCAAuC;QAC/C,aAAa,EAAE,mEAAmE;KACnF;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,uFAAuF;KACvG;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,mGAAmG;KACnH;IACD;QACE,MAAM,EAAE,mCAAmC;QAC3C,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,oBAAoB;QAC5B,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
1
+ {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,sBAAsB;QAC9B,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,0HAA0H;KAC1I;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,oOAAoO;KACpP;IACD;QACE,MAAM,EAAE,4CAA4C;QACpD,aAAa,EAAE,oKAAoK;KACpL;IACD;QACE,MAAM,EAAE,yCAAyC;QACjD,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2CAA2C;QACnD,aAAa,EAAE,wKAAwK;KACxL;IACD;QACE,MAAM,EAAE,yBAAyB;QACjC,aAAa,EAAE,qHAAqH;KACrI;IACD;QACE,MAAM,EAAE,2BAA2B;QAC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@@
1
1
  {
2
2
  "name": "@lightsage/mcp",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b2566b28e64e
4
+ */
5
+
6
+ import { LightsageMcpCore } from "../core.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { RequestOptions } from "../lib/sdks.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import { APIError } from "../models/errors/apierror.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/httpclienterrors.js";
19
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
20
+ import { APICall, APIPromise } from "../types/async.js";
21
+ import { Result } from "../types/fp.js";
22
+
23
+ /**
24
+ * List Competitors
25
+ *
26
+ * @remarks
27
+ * Returns the tracked competitors your company can be compared against. Use a returned `id` as `competitor_id` when creating an Agent Preference eval.
28
+ */
29
+ export function agentPreferenceV2AgentPreferenceCompetitorsList(
30
+ client$: LightsageMcpCore,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ Response,
35
+ | APIError
36
+ | SDKValidationError
37
+ | UnexpectedClientError
38
+ | InvalidRequestError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | ConnectionError
42
+ >
43
+ > {
44
+ return new APIPromise($do(
45
+ client$,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ async function $do(
51
+ client$: LightsageMcpCore,
52
+ options?: RequestOptions,
53
+ ): Promise<
54
+ [
55
+ Result<
56
+ Response,
57
+ | APIError
58
+ | SDKValidationError
59
+ | UnexpectedClientError
60
+ | InvalidRequestError
61
+ | RequestAbortedError
62
+ | RequestTimeoutError
63
+ | ConnectionError
64
+ >,
65
+ APICall,
66
+ ]
67
+ > {
68
+ const path$ = pathToFunc("/v2/agent-preference/competitors")();
69
+
70
+ const headers$ = new Headers(compactMap({
71
+ Accept: "application/json",
72
+ }));
73
+ const securityInput = await extractSecurity(client$._options.security);
74
+ const requestSecurity = resolveGlobalSecurity(securityInput);
75
+
76
+ const context = {
77
+ options: client$._options,
78
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
79
+ operationID: "v2_agent_preference_competitors_list",
80
+ oAuth2Scopes: null,
81
+ resolvedSecurity: requestSecurity,
82
+ securitySource: client$._options.security,
83
+ retryConfig: options?.retries
84
+ || client$._options.retryConfig
85
+ || { strategy: "none" },
86
+ retryCodes: options?.retryCodes || [
87
+ "429",
88
+ "500",
89
+ "502",
90
+ "503",
91
+ "504",
92
+ ],
93
+ };
94
+
95
+ const requestRes = client$._createRequest(context, {
96
+ security: requestSecurity,
97
+ method: "GET",
98
+ baseURL: options?.serverURL,
99
+ path: path$,
100
+ headers: headers$,
101
+ userAgent: client$._options.userAgent,
102
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
103
+ || -1,
104
+ }, options);
105
+ if (!requestRes.ok) {
106
+ return [requestRes, { status: "invalid" }];
107
+ }
108
+ const req$ = requestRes.value;
109
+
110
+ const doResult = await client$._do(req$, {
111
+ context,
112
+ errorCodes: [],
113
+ retryConfig: context.retryConfig,
114
+ retryCodes: context.retryCodes,
115
+ });
116
+ if (!doResult.ok) {
117
+ return [doResult, { status: "request-error", request: req$ }];
118
+ }
119
+ return [doResult, {
120
+ status: "complete",
121
+ "request": req$,
122
+ response: doResult.value,
123
+ }];
124
+ }