@lightsage/mcp 0.4.16 → 0.4.18

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 (403) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +30 -0
  3. package/bin/mcp-server.js +2495 -660
  4. package/bin/mcp-server.js.map +103 -55
  5. package/esm/funcs/agentAnalyticsCountriesList.d.ts +16 -0
  6. package/esm/funcs/agentAnalyticsCountriesList.d.ts.map +1 -0
  7. package/esm/funcs/agentAnalyticsCountriesList.js +95 -0
  8. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -0
  9. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts +16 -0
  10. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  11. package/esm/funcs/agentAnalyticsErrorPagesList.js +97 -0
  12. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -0
  13. package/esm/funcs/agentAnalyticsPagesList.d.ts +16 -0
  14. package/esm/funcs/agentAnalyticsPagesList.d.ts.map +1 -0
  15. package/esm/funcs/agentAnalyticsPagesList.js +99 -0
  16. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -0
  17. package/esm/funcs/agentAnalyticsSitesList.d.ts +15 -0
  18. package/esm/funcs/agentAnalyticsSitesList.d.ts.map +1 -0
  19. package/esm/funcs/agentAnalyticsSitesList.js +72 -0
  20. package/esm/funcs/agentAnalyticsSitesList.js.map +1 -0
  21. package/esm/funcs/agentAnalyticsSourcesList.d.ts +16 -0
  22. package/esm/funcs/agentAnalyticsSourcesList.d.ts.map +1 -0
  23. package/esm/funcs/agentAnalyticsSourcesList.js +94 -0
  24. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -0
  25. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +16 -0
  26. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  27. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +94 -0
  28. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -0
  29. package/esm/funcs/agentsList.d.ts +1 -1
  30. package/esm/funcs/agentsList.js +1 -1
  31. package/esm/funcs/evalsCreate.d.ts +2 -0
  32. package/esm/funcs/evalsCreate.d.ts.map +1 -1
  33. package/esm/funcs/evalsCreate.js +2 -0
  34. package/esm/funcs/evalsCreate.js.map +1 -1
  35. package/esm/funcs/evalsRun.d.ts +2 -0
  36. package/esm/funcs/evalsRun.d.ts.map +1 -1
  37. package/esm/funcs/evalsRun.js +2 -0
  38. package/esm/funcs/evalsRun.js.map +1 -1
  39. package/esm/funcs/promptsRun.d.ts +7 -3
  40. package/esm/funcs/promptsRun.d.ts.map +1 -1
  41. package/esm/funcs/promptsRun.js +7 -3
  42. package/esm/funcs/promptsRun.js.map +1 -1
  43. package/esm/funcs/promptsRunCancel.d.ts +16 -0
  44. package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
  45. package/esm/funcs/promptsRunCancel.js +88 -0
  46. package/esm/funcs/promptsRunCancel.js.map +1 -0
  47. package/esm/funcs/tasksCreate.d.ts +16 -0
  48. package/esm/funcs/tasksCreate.d.ts.map +1 -0
  49. package/esm/funcs/tasksCreate.js +83 -0
  50. package/esm/funcs/tasksCreate.js.map +1 -0
  51. package/esm/funcs/visibilityCitationsList.d.ts +1 -1
  52. package/esm/funcs/visibilityCitationsList.js +2 -1
  53. package/esm/funcs/visibilityCitationsList.js.map +1 -1
  54. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
  55. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  56. package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
  57. package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
  58. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  59. package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
  60. package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
  61. package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
  62. package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
  63. package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
  64. package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
  65. package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
  66. package/esm/landing-page.js +1 -1
  67. package/esm/lib/config.d.ts +2 -2
  68. package/esm/lib/config.js +2 -2
  69. package/esm/mcp-server/mcp-server.js +1 -1
  70. package/esm/mcp-server/server.d.ts.map +1 -1
  71. package/esm/mcp-server/server.js +19 -1
  72. package/esm/mcp-server/server.js.map +1 -1
  73. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts +7 -0
  74. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts.map +1 -0
  75. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js +35 -0
  76. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js.map +1 -0
  77. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts +7 -0
  78. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  79. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js +35 -0
  80. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js.map +1 -0
  81. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts +7 -0
  82. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts.map +1 -0
  83. package/esm/mcp-server/tools/agentAnalyticsPagesList.js +35 -0
  84. package/esm/mcp-server/tools/agentAnalyticsPagesList.js.map +1 -0
  85. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts +3 -0
  86. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts.map +1 -0
  87. package/esm/mcp-server/tools/agentAnalyticsSitesList.js +30 -0
  88. package/esm/mcp-server/tools/agentAnalyticsSitesList.js.map +1 -0
  89. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts +7 -0
  90. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts.map +1 -0
  91. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js +35 -0
  92. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js.map +1 -0
  93. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts +7 -0
  94. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  95. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +35 -0
  96. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -0
  97. package/esm/mcp-server/tools/agentsList.js +1 -1
  98. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  99. package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
  100. package/esm/mcp-server/tools/evalsCreate.js +3 -1
  101. package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
  102. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  103. package/esm/mcp-server/tools/evalsRun.js +2 -0
  104. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  105. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  106. package/esm/mcp-server/tools/promptsRun.js +7 -3
  107. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  108. package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
  109. package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
  110. package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
  111. package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
  112. package/esm/mcp-server/tools/tasksCreate.d.ts +7 -0
  113. package/esm/mcp-server/tools/tasksCreate.d.ts.map +1 -0
  114. package/esm/mcp-server/tools/tasksCreate.js +35 -0
  115. package/esm/mcp-server/tools/tasksCreate.js.map +1 -0
  116. package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
  117. package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
  118. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
  119. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  120. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
  121. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
  122. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  123. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  124. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
  125. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
  126. package/esm/models/createtaskrequest.d.ts +65 -0
  127. package/esm/models/createtaskrequest.d.ts.map +1 -0
  128. package/esm/models/createtaskrequest.js +64 -0
  129. package/esm/models/createtaskrequest.js.map +1 -0
  130. package/esm/models/createv2promptrequest.js +1 -1
  131. package/esm/models/createv2promptrequest.js.map +1 -1
  132. package/esm/models/createv2promptrunrequest.d.ts +1 -0
  133. package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
  134. package/esm/models/createv2promptrunrequest.js +2 -1
  135. package/esm/models/createv2promptrunrequest.js.map +1 -1
  136. package/esm/models/graderdefinition.d.ts +1 -0
  137. package/esm/models/graderdefinition.d.ts.map +1 -1
  138. package/esm/models/graderdefinition.js +1 -0
  139. package/esm/models/graderdefinition.js.map +1 -1
  140. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +12 -0
  141. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -0
  142. package/esm/models/publicagentanalyticscountrylistresponse.js +15 -0
  143. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -0
  144. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +13 -0
  145. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -0
  146. package/esm/models/publicagentanalyticserrorpagelistresponse.js +16 -0
  147. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -0
  148. package/esm/models/publicagentanalyticspagelistresponse.d.ts +13 -0
  149. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -0
  150. package/esm/models/publicagentanalyticspagelistresponse.js +16 -0
  151. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -0
  152. package/esm/models/publicagentanalyticssite.d.ts +9 -0
  153. package/esm/models/publicagentanalyticssite.d.ts.map +1 -0
  154. package/esm/models/publicagentanalyticssite.js +12 -0
  155. package/esm/models/publicagentanalyticssite.js.map +1 -0
  156. package/esm/models/publicagentanalyticssitelistresponse.d.ts +7 -0
  157. package/esm/models/publicagentanalyticssitelistresponse.d.ts.map +1 -0
  158. package/esm/models/publicagentanalyticssitelistresponse.js +10 -0
  159. package/esm/models/publicagentanalyticssitelistresponse.js.map +1 -0
  160. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +12 -0
  161. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -0
  162. package/esm/models/publicagentanalyticssourcelistresponse.js +15 -0
  163. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -0
  164. package/esm/models/publicagentanalyticssummary.d.ts +13 -0
  165. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -0
  166. package/esm/models/publicagentanalyticssummary.js +16 -0
  167. package/esm/models/publicagentanalyticssummary.js.map +1 -0
  168. package/esm/models/publicagentcountry.d.ts +7 -0
  169. package/esm/models/publicagentcountry.d.ts.map +1 -0
  170. package/esm/models/publicagentcountry.js +11 -0
  171. package/esm/models/publicagentcountry.js.map +1 -0
  172. package/esm/models/publicagenterrorpage.d.ts +12 -0
  173. package/esm/models/publicagenterrorpage.d.ts.map +1 -0
  174. package/esm/models/publicagenterrorpage.js +16 -0
  175. package/esm/models/publicagenterrorpage.js.map +1 -0
  176. package/esm/models/publicagenterrorsource.d.ts +40 -0
  177. package/esm/models/publicagenterrorsource.d.ts.map +1 -0
  178. package/esm/models/publicagenterrorsource.js +40 -0
  179. package/esm/models/publicagenterrorsource.js.map +1 -0
  180. package/esm/models/publicagenttrafficpage.d.ts +14 -0
  181. package/esm/models/publicagenttrafficpage.d.ts.map +1 -0
  182. package/esm/models/publicagenttrafficpage.js +17 -0
  183. package/esm/models/publicagenttrafficpage.js.map +1 -0
  184. package/esm/models/publicagenttrafficsource.d.ts +47 -0
  185. package/esm/models/publicagenttrafficsource.d.ts.map +1 -0
  186. package/esm/models/publicagenttrafficsource.js +44 -0
  187. package/esm/models/publicagenttrafficsource.js.map +1 -0
  188. package/esm/models/publicagenttraffictotals.d.ts +13 -0
  189. package/esm/models/publicagenttraffictotals.d.ts.map +1 -0
  190. package/esm/models/publicagenttraffictotals.js +16 -0
  191. package/esm/models/publicagenttraffictotals.js.map +1 -0
  192. package/esm/models/publiccitationsummarygroup.d.ts +17 -0
  193. package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
  194. package/esm/models/publiccitationsummarygroup.js +20 -0
  195. package/esm/models/publiccitationsummarygroup.js.map +1 -0
  196. package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
  197. package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
  198. package/esm/models/publiccitationsummaryresponse.js +58 -0
  199. package/esm/models/publiccitationsummaryresponse.js.map +1 -0
  200. package/esm/models/publiccitationsummarytotals.d.ts +14 -0
  201. package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
  202. package/esm/models/publiccitationsummarytotals.js +17 -0
  203. package/esm/models/publiccitationsummarytotals.js.map +1 -0
  204. package/esm/models/publiccoverage.d.ts +12 -0
  205. package/esm/models/publiccoverage.d.ts.map +1 -0
  206. package/esm/models/publiccoverage.js +15 -0
  207. package/esm/models/publiccoverage.js.map +1 -0
  208. package/esm/models/publiccoverageday.d.ts +41 -0
  209. package/esm/models/publiccoverageday.d.ts.map +1 -0
  210. package/esm/models/publiccoverageday.js +39 -0
  211. package/esm/models/publiccoverageday.js.map +1 -0
  212. package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
  213. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  214. package/esm/models/publiccurrentvisibilityresponse.js +8 -0
  215. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  216. package/esm/models/publicperiodcoverage.d.ts +13 -0
  217. package/esm/models/publicperiodcoverage.d.ts.map +1 -0
  218. package/esm/models/publicperiodcoverage.js +17 -0
  219. package/esm/models/publicperiodcoverage.js.map +1 -0
  220. package/esm/models/publicperiodrates.d.ts +10 -0
  221. package/esm/models/publicperiodrates.d.ts.map +1 -0
  222. package/esm/models/publicperiodrates.js +14 -0
  223. package/esm/models/publicperiodrates.js.map +1 -0
  224. package/esm/models/publicpreviousvisibility.d.ts +10 -0
  225. package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
  226. package/esm/models/publicpreviousvisibility.js +13 -0
  227. package/esm/models/publicpreviousvisibility.js.map +1 -0
  228. package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
  229. package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
  230. package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
  231. package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
  232. package/esm/models/publicratechanges.d.ts +8 -0
  233. package/esm/models/publicratechanges.d.ts.map +1 -0
  234. package/esm/models/publicratechanges.js +12 -0
  235. package/esm/models/publicratechanges.js.map +1 -0
  236. package/esm/models/publicrates.d.ts +27 -0
  237. package/esm/models/publicrates.d.ts.map +1 -0
  238. package/esm/models/publicrates.js +25 -0
  239. package/esm/models/publicrates.js.map +1 -0
  240. package/esm/models/publicresolvedperiod.d.ts +14 -0
  241. package/esm/models/publicresolvedperiod.d.ts.map +1 -0
  242. package/esm/models/publicresolvedperiod.js +18 -0
  243. package/esm/models/publicresolvedperiod.js.map +1 -0
  244. package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
  245. package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
  246. package/esm/models/publictopcitedurlsresponse.js +9 -3
  247. package/esm/models/publictopcitedurlsresponse.js.map +1 -1
  248. package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
  249. package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
  250. package/esm/models/publicvisibilityoverviewresponse.js +6 -0
  251. package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
  252. package/esm/models/updatetaskrequest.d.ts +8 -8
  253. package/esm/models/updatetaskrequest.d.ts.map +1 -1
  254. package/esm/models/updatetaskrequest.js +6 -6
  255. package/esm/models/updatetaskrequest.js.map +1 -1
  256. package/esm/models/updatev2promptrequest.js +1 -1
  257. package/esm/models/updatev2promptrequest.js.map +1 -1
  258. package/esm/models/v2agentanalyticscountrieslistop.d.ts +14 -0
  259. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -0
  260. package/esm/models/v2agentanalyticscountrieslistop.js +19 -0
  261. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -0
  262. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +40 -0
  263. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -0
  264. package/esm/models/v2agentanalyticserrorpageslistop.js +40 -0
  265. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -0
  266. package/esm/models/v2agentanalyticspageslistop.d.ts +69 -0
  267. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -0
  268. package/esm/models/v2agentanalyticspageslistop.js +66 -0
  269. package/esm/models/v2agentanalyticspageslistop.js.map +1 -0
  270. package/esm/models/v2agentanalyticssourceslistop.d.ts +13 -0
  271. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -0
  272. package/esm/models/v2agentanalyticssourceslistop.js +18 -0
  273. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -0
  274. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +13 -0
  275. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -0
  276. package/esm/models/v2agentanalyticssummaryretrieveop.js +18 -0
  277. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -0
  278. package/esm/models/v2inlinemcpdefinition.js +1 -1
  279. package/esm/models/v2inlinemcpdefinition.js.map +1 -1
  280. package/esm/models/v2promptrunscancelop.d.ts +38 -0
  281. package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
  282. package/esm/models/v2promptrunscancelop.js +31 -0
  283. package/esm/models/v2promptrunscancelop.js.map +1 -0
  284. package/esm/models/v2repository.d.ts +4 -4
  285. package/esm/models/v2repository.d.ts.map +1 -1
  286. package/esm/models/v2repository.js +3 -3
  287. package/esm/models/v2repository.js.map +1 -1
  288. package/esm/models/v2taskscreateop.d.ts +13 -0
  289. package/esm/models/v2taskscreateop.d.ts.map +1 -0
  290. package/esm/models/v2taskscreateop.js +16 -0
  291. package/esm/models/v2taskscreateop.js.map +1 -0
  292. package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
  293. package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
  294. package/esm/models/v2visibilitycitationslistop.js +1 -0
  295. package/esm/models/v2visibilitycitationslistop.js.map +1 -1
  296. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
  297. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
  298. package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
  299. package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
  300. package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
  301. package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
  302. package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
  303. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  304. package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
  305. package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
  306. package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
  307. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  308. package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
  309. package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
  310. package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
  311. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  312. package/esm/tool-names.d.ts.map +1 -1
  313. package/esm/tool-names.js +43 -7
  314. package/esm/tool-names.js.map +1 -1
  315. package/lib/tracker.js +219 -0
  316. package/package.json +3 -1
  317. package/src/funcs/agentAnalyticsCountriesList.ts +160 -0
  318. package/src/funcs/agentAnalyticsErrorPagesList.ts +162 -0
  319. package/src/funcs/agentAnalyticsPagesList.ts +164 -0
  320. package/src/funcs/agentAnalyticsSitesList.ts +124 -0
  321. package/src/funcs/agentAnalyticsSourcesList.ts +159 -0
  322. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +159 -0
  323. package/src/funcs/agentsList.ts +1 -1
  324. package/src/funcs/evalsCreate.ts +2 -0
  325. package/src/funcs/evalsRun.ts +2 -0
  326. package/src/funcs/promptsRun.ts +7 -3
  327. package/src/funcs/promptsRunCancel.ts +153 -0
  328. package/src/funcs/tasksCreate.ts +145 -0
  329. package/src/funcs/visibilityCitationsList.ts +2 -1
  330. package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
  331. package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
  332. package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
  333. package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
  334. package/src/landing-page.ts +1 -1
  335. package/src/lib/config.ts +2 -2
  336. package/src/mcp-server/mcp-server.ts +1 -1
  337. package/src/mcp-server/server.ts +19 -1
  338. package/src/mcp-server/tools/agentAnalyticsCountriesList.ts +43 -0
  339. package/src/mcp-server/tools/agentAnalyticsErrorPagesList.ts +43 -0
  340. package/src/mcp-server/tools/agentAnalyticsPagesList.ts +43 -0
  341. package/src/mcp-server/tools/agentAnalyticsSitesList.ts +36 -0
  342. package/src/mcp-server/tools/agentAnalyticsSourcesList.ts +43 -0
  343. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +43 -0
  344. package/src/mcp-server/tools/agentsList.ts +1 -1
  345. package/src/mcp-server/tools/evalsCreate.ts +3 -1
  346. package/src/mcp-server/tools/evalsRun.ts +2 -0
  347. package/src/mcp-server/tools/promptsRun.ts +7 -3
  348. package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
  349. package/src/mcp-server/tools/tasksCreate.ts +43 -0
  350. package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
  351. package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
  352. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  353. package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
  354. package/src/models/createtaskrequest.ts +98 -0
  355. package/src/models/createv2promptrequest.ts +1 -1
  356. package/src/models/createv2promptrunrequest.ts +5 -1
  357. package/src/models/graderdefinition.ts +2 -0
  358. package/src/models/publicagentanalyticscountrylistresponse.ts +36 -0
  359. package/src/models/publicagentanalyticserrorpagelistresponse.ts +40 -0
  360. package/src/models/publicagentanalyticspagelistresponse.ts +38 -0
  361. package/src/models/publicagentanalyticssite.ts +26 -0
  362. package/src/models/publicagentanalyticssitelistresponse.ts +20 -0
  363. package/src/models/publicagentanalyticssourcelistresponse.ts +36 -0
  364. package/src/models/publicagentanalyticssummary.ts +36 -0
  365. package/src/models/publicagentcountry.ts +16 -0
  366. package/src/models/publicagenterrorpage.ts +35 -0
  367. package/src/models/publicagenterrorsource.ts +63 -0
  368. package/src/models/publicagenttrafficpage.ts +46 -0
  369. package/src/models/publicagenttrafficsource.ts +77 -0
  370. package/src/models/publicagenttraffictotals.ts +42 -0
  371. package/src/models/publiccitationsummarygroup.ts +54 -0
  372. package/src/models/publiccitationsummaryresponse.ts +110 -0
  373. package/src/models/publiccitationsummarytotals.ts +38 -0
  374. package/src/models/publiccoverage.ts +34 -0
  375. package/src/models/publiccoverageday.ts +68 -0
  376. package/src/models/publiccurrentvisibilityresponse.ts +26 -0
  377. package/src/models/publicperiodcoverage.ts +33 -0
  378. package/src/models/publicperiodrates.ts +29 -0
  379. package/src/models/publicpreviousvisibility.ts +30 -0
  380. package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
  381. package/src/models/publicratechanges.ts +25 -0
  382. package/src/models/publicrates.ts +52 -0
  383. package/src/models/publicresolvedperiod.ts +41 -0
  384. package/src/models/publictopcitedurlsresponse.ts +25 -5
  385. package/src/models/publicvisibilityoverviewresponse.ts +18 -0
  386. package/src/models/updatetaskrequest.ts +14 -10
  387. package/src/models/updatev2promptrequest.ts +1 -1
  388. package/src/models/v2agentanalyticscountrieslistop.ts +49 -0
  389. package/src/models/v2agentanalyticserrorpageslistop.ts +83 -0
  390. package/src/models/v2agentanalyticspageslistop.ts +123 -0
  391. package/src/models/v2agentanalyticssourceslistop.ts +47 -0
  392. package/src/models/v2agentanalyticssummaryretrieveop.ts +47 -0
  393. package/src/models/v2inlinemcpdefinition.ts +1 -1
  394. package/src/models/v2promptrunscancelop.ts +90 -0
  395. package/src/models/v2repository.ts +5 -5
  396. package/src/models/v2taskscreateop.ts +34 -0
  397. package/src/models/v2visibilitycitationslistop.ts +4 -0
  398. package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
  399. package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
  400. package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
  401. package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
  402. package/src/tool-names.ts +43 -7
  403. package/test/tracker.test.js +323 -0
@@ -10,11 +10,17 @@ import {
10
10
  PublicCitedUrlDateRange,
11
11
  PublicCitedUrlDateRange$zodSchema,
12
12
  } from "./publiccitedurldaterange.js";
13
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
14
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
15
+ import {
16
+ PublicResolvedPeriod,
17
+ PublicResolvedPeriod$zodSchema,
18
+ } from "./publicresolvedperiod.js";
13
19
 
14
20
  /**
15
21
  * Whether the results include all, owned, or external URLs.
16
22
  */
17
- export const SourceType = {
23
+ export const PublicTopCitedUrlsResponseSourceType = {
18
24
  All: "all",
19
25
  Owned: "owned",
20
26
  External: "external",
@@ -22,9 +28,11 @@ export const SourceType = {
22
28
  /**
23
29
  * Whether the results include all, owned, or external URLs.
24
30
  */
25
- export type SourceType = ClosedEnum<typeof SourceType>;
31
+ export type PublicTopCitedUrlsResponseSourceType = ClosedEnum<
32
+ typeof PublicTopCitedUrlsResponseSourceType
33
+ >;
26
34
 
27
- export const SourceType$zodSchema = z.enum([
35
+ export const PublicTopCitedUrlsResponseSourceType$zodSchema = z.enum([
28
36
  "all",
29
37
  "owned",
30
38
  "external",
@@ -33,16 +41,22 @@ export const SourceType$zodSchema = z.enum([
33
41
  export type PublicTopCitedUrlsResponse = {
34
42
  date_range: PublicCitedUrlDateRange;
35
43
  platform?: string | null | undefined;
36
- source_type: SourceType;
44
+ source_type: PublicTopCitedUrlsResponseSourceType;
37
45
  has_data: boolean;
38
46
  count: number;
39
47
  data?: Array<PublicCitedUrl> | undefined;
48
+ period?: PublicResolvedPeriod | null | undefined;
49
+ coverage?: PublicCoverage | null | undefined;
50
+ rates?: PublicRates | null | undefined;
40
51
  };
41
52
 
42
53
  export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
43
54
  PublicTopCitedUrlsResponse
44
55
  > = z.object({
45
56
  count: z.int().describe("Number of URL rows returned."),
57
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
58
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
59
+ ),
46
60
  data: z.array(PublicCitedUrl$zodSchema).optional().describe(
47
61
  "Cited URLs ranked by citation count in descending order.",
48
62
  ),
@@ -50,10 +64,16 @@ export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
50
64
  has_data: z.boolean().describe(
51
65
  "Whether any citations matched the selected filters.",
52
66
  ),
67
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
68
+ "The resolved period and the previous period it is compared with.",
69
+ ),
53
70
  platform: z.string().nullable().optional().describe(
54
71
  "Platform selector applied to the results, or null for all platforms.",
55
72
  ),
56
- source_type: SourceType$zodSchema.describe(
73
+ rates: PublicRates$zodSchema.nullable().optional().describe(
74
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
75
+ ),
76
+ source_type: PublicTopCitedUrlsResponseSourceType$zodSchema.describe(
57
77
  "Whether the results include all, owned, or external URLs.",
58
78
  ),
59
79
  });
@@ -9,6 +9,12 @@ import {
9
9
  PublicCompetitorRow,
10
10
  PublicCompetitorRow$zodSchema,
11
11
  } from "./publiccompetitorrow.js";
12
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
13
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
14
+ import {
15
+ PublicResolvedPeriod,
16
+ PublicResolvedPeriod$zodSchema,
17
+ } from "./publicresolvedperiod.js";
12
18
  import {
13
19
  PublicVisibilityByPlatform,
14
20
  PublicVisibilityByPlatform$zodSchema,
@@ -34,6 +40,9 @@ export type PublicVisibilityOverviewResponse = {
34
40
  timeseries: PublicVisibilityTimeseries;
35
41
  by_platform: PublicVisibilityByPlatform;
36
42
  competitors?: Array<PublicCompetitorRow> | undefined;
43
+ period?: PublicResolvedPeriod | null | undefined;
44
+ coverage?: PublicCoverage | null | undefined;
45
+ rates?: PublicRates | null | undefined;
37
46
  };
38
47
 
39
48
  export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
@@ -44,8 +53,17 @@ export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
44
53
  competitors: z.array(PublicCompetitorRow$zodSchema).optional().describe(
45
54
  "Includes the primary company.",
46
55
  ),
56
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
57
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
58
+ ),
47
59
  date_range: PublicVisibilityDateRange$zodSchema,
48
60
  has_data: z.boolean(),
61
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
62
+ "The resolved period and the previous period it is compared with.",
63
+ ),
64
+ rates: PublicRates$zodSchema.nullable().optional().describe(
65
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
66
+ ),
49
67
  snapshot: PublicVisibilitySnapshot$zodSchema,
50
68
  timeseries: PublicVisibilityTimeseries$zodSchema,
51
69
  });
@@ -35,44 +35,48 @@ export const UpdateTaskRequestStatus$zodSchema = z.enum([
35
35
  "The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
36
36
  );
37
37
 
38
- export const Priority = {
38
+ export const UpdateTaskRequestPriority = {
39
39
  Urgent: "urgent",
40
40
  High: "high",
41
41
  Medium: "medium",
42
42
  Low: "low",
43
43
  } as const;
44
- export type Priority = ClosedEnum<typeof Priority>;
44
+ export type UpdateTaskRequestPriority = ClosedEnum<
45
+ typeof UpdateTaskRequestPriority
46
+ >;
45
47
 
46
- export const Priority$zodSchema = z.enum([
48
+ export const UpdateTaskRequestPriority$zodSchema = z.enum([
47
49
  "urgent",
48
50
  "high",
49
51
  "medium",
50
52
  "low",
51
53
  ]);
52
54
 
53
- export const ActionType = {
55
+ export const UpdateTaskRequestActionType = {
54
56
  AgentDiscovery: "agent_discovery",
55
57
  AgentUsability: "agent_usability",
56
58
  } as const;
57
- export type ActionType = ClosedEnum<typeof ActionType>;
59
+ export type UpdateTaskRequestActionType = ClosedEnum<
60
+ typeof UpdateTaskRequestActionType
61
+ >;
58
62
 
59
- export const ActionType$zodSchema = z.enum([
63
+ export const UpdateTaskRequestActionType$zodSchema = z.enum([
60
64
  "agent_discovery",
61
65
  "agent_usability",
62
66
  ]);
63
67
 
64
68
  export type UpdateTaskRequest = {
65
69
  status?: UpdateTaskRequestStatus | undefined;
66
- priority?: Priority | undefined;
70
+ priority?: UpdateTaskRequestPriority | undefined;
67
71
  assignee_user_id?: string | undefined;
68
- action_type?: ActionType | undefined;
72
+ action_type?: UpdateTaskRequestActionType | undefined;
69
73
  };
70
74
 
71
75
  export const UpdateTaskRequest$zodSchema: z.ZodType<UpdateTaskRequest> = z
72
76
  .object({
73
- action_type: ActionType$zodSchema.optional(),
77
+ action_type: UpdateTaskRequestActionType$zodSchema.optional(),
74
78
  assignee_user_id: z.string().optional(),
75
- priority: Priority$zodSchema.optional(),
79
+ priority: UpdateTaskRequestPriority$zodSchema.optional(),
76
80
  status: UpdateTaskRequestStatus$zodSchema.optional().describe(
77
81
  "The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
78
82
  ),
@@ -38,7 +38,7 @@ export const UpdateV2PromptRequest$zodSchema: z.ZodType<UpdateV2PromptRequest> =
38
38
  "Marks the prompt as branded or unbranded. Omit to keep the current value; changing `text` does not change it.",
39
39
  ),
40
40
  platform_ids: z.array(z.string()).nullable().optional().describe(
41
- "Replacement list of answer-platform IDs.",
41
+ "Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`.",
42
42
  ),
43
43
  run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional()
44
44
  .describe(
@@ -0,0 +1,49 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: c96ad2487ae4
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsCountryListResponse,
13
+ PublicAgentAnalyticsCountryListResponse$zodSchema,
14
+ } from "./publicagentanalyticscountrylistresponse.js";
15
+
16
+ export type V2AgentAnalyticsCountriesListRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ period?: string | undefined;
21
+ limit?: number | undefined;
22
+ };
23
+
24
+ export const V2AgentAnalyticsCountriesListRequest$zodSchema: z.ZodType<
25
+ V2AgentAnalyticsCountriesListRequest
26
+ > = z.object({
27
+ end_date: z.string().date().describe(
28
+ "Inclusive range end in UTC; defaults to today.",
29
+ ).optional(),
30
+ limit: z.int().default(20),
31
+ period: z.string().describe(
32
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
33
+ ).optional(),
34
+ site_id: z.string(),
35
+ start_date: z.string().date().describe(
36
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
37
+ ).optional(),
38
+ });
39
+
40
+ export type V2AgentAnalyticsCountriesListResponse =
41
+ | PublicAgentAnalyticsCountryListResponse
42
+ | HTTPValidationError;
43
+
44
+ export const V2AgentAnalyticsCountriesListResponse$zodSchema: z.ZodType<
45
+ V2AgentAnalyticsCountriesListResponse
46
+ > = z.union([
47
+ PublicAgentAnalyticsCountryListResponse$zodSchema,
48
+ HTTPValidationError$zodSchema,
49
+ ]);
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9329eca6bf33
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ HTTPValidationError,
10
+ HTTPValidationError$zodSchema,
11
+ } from "./httpvalidationerror.js";
12
+ import {
13
+ PublicAgentAnalyticsErrorPageListResponse,
14
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema,
15
+ } from "./publicagentanalyticserrorpagelistresponse.js";
16
+
17
+ /**
18
+ * Only errors this traffic type got.
19
+ */
20
+ export const V2AgentAnalyticsErrorPagesListType = {
21
+ Coding: "coding",
22
+ User: "user",
23
+ Search: "search",
24
+ Training: "training",
25
+ Other: "other",
26
+ People: "people",
27
+ } as const;
28
+ /**
29
+ * Only errors this traffic type got.
30
+ */
31
+ export type V2AgentAnalyticsErrorPagesListType = ClosedEnum<
32
+ typeof V2AgentAnalyticsErrorPagesListType
33
+ >;
34
+
35
+ export const V2AgentAnalyticsErrorPagesListType$zodSchema = z.enum([
36
+ "coding",
37
+ "user",
38
+ "search",
39
+ "training",
40
+ "other",
41
+ "people",
42
+ ]).describe("Only errors this traffic type got.");
43
+
44
+ export type V2AgentAnalyticsErrorPagesListRequest = {
45
+ site_id: string;
46
+ start_date?: string | undefined;
47
+ end_date?: string | undefined;
48
+ period?: string | undefined;
49
+ limit?: number | undefined;
50
+ status?: number | undefined;
51
+ type?: V2AgentAnalyticsErrorPagesListType | undefined;
52
+ };
53
+
54
+ export const V2AgentAnalyticsErrorPagesListRequest$zodSchema: z.ZodType<
55
+ V2AgentAnalyticsErrorPagesListRequest
56
+ > = z.object({
57
+ end_date: z.string().date().describe(
58
+ "Inclusive range end in UTC; defaults to today.",
59
+ ).optional(),
60
+ limit: z.int().default(50),
61
+ period: z.string().describe(
62
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
63
+ ).optional(),
64
+ site_id: z.string(),
65
+ start_date: z.string().date().describe(
66
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
67
+ ).optional(),
68
+ status: z.int().describe("Only this status code, such as 404.").optional(),
69
+ type: V2AgentAnalyticsErrorPagesListType$zodSchema.optional().describe(
70
+ "Only errors this traffic type got.",
71
+ ),
72
+ });
73
+
74
+ export type V2AgentAnalyticsErrorPagesListResponse =
75
+ | PublicAgentAnalyticsErrorPageListResponse
76
+ | HTTPValidationError;
77
+
78
+ export const V2AgentAnalyticsErrorPagesListResponse$zodSchema: z.ZodType<
79
+ V2AgentAnalyticsErrorPagesListResponse
80
+ > = z.union([
81
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema,
82
+ HTTPValidationError$zodSchema,
83
+ ]);
@@ -0,0 +1,123 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1623e8feffb2
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ HTTPValidationError,
10
+ HTTPValidationError$zodSchema,
11
+ } from "./httpvalidationerror.js";
12
+ import {
13
+ PublicAgentAnalyticsPageListResponse,
14
+ PublicAgentAnalyticsPageListResponse$zodSchema,
15
+ } from "./publicagentanalyticspagelistresponse.js";
16
+
17
+ /**
18
+ * Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
19
+ */
20
+ export const Sort = {
21
+ Coding: "coding",
22
+ User: "user",
23
+ Search: "search",
24
+ Training: "training",
25
+ Other: "other",
26
+ People: "people",
27
+ AiTotal: "ai_total",
28
+ LastSeen: "last_seen",
29
+ } as const;
30
+ /**
31
+ * Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
32
+ */
33
+ export type Sort = ClosedEnum<typeof Sort>;
34
+
35
+ export const Sort$zodSchema = z.enum([
36
+ "coding",
37
+ "user",
38
+ "search",
39
+ "training",
40
+ "other",
41
+ "people",
42
+ "ai_total",
43
+ "last_seen",
44
+ ]).describe(
45
+ "Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
46
+ );
47
+
48
+ /**
49
+ * Only pages this traffic type visited.
50
+ */
51
+ export const V2AgentAnalyticsPagesListType = {
52
+ Coding: "coding",
53
+ User: "user",
54
+ Search: "search",
55
+ Training: "training",
56
+ Other: "other",
57
+ People: "people",
58
+ } as const;
59
+ /**
60
+ * Only pages this traffic type visited.
61
+ */
62
+ export type V2AgentAnalyticsPagesListType = ClosedEnum<
63
+ typeof V2AgentAnalyticsPagesListType
64
+ >;
65
+
66
+ export const V2AgentAnalyticsPagesListType$zodSchema = z.enum([
67
+ "coding",
68
+ "user",
69
+ "search",
70
+ "training",
71
+ "other",
72
+ "people",
73
+ ]).describe("Only pages this traffic type visited.");
74
+
75
+ export type V2AgentAnalyticsPagesListRequest = {
76
+ site_id: string;
77
+ start_date?: string | undefined;
78
+ end_date?: string | undefined;
79
+ period?: string | undefined;
80
+ limit?: number | undefined;
81
+ search?: string | undefined;
82
+ sort?: Sort | undefined;
83
+ type?: V2AgentAnalyticsPagesListType | undefined;
84
+ agent?: string | undefined;
85
+ };
86
+
87
+ export const V2AgentAnalyticsPagesListRequest$zodSchema: z.ZodType<
88
+ V2AgentAnalyticsPagesListRequest
89
+ > = z.object({
90
+ agent: z.string().describe(
91
+ "Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.",
92
+ ).optional(),
93
+ end_date: z.string().date().describe(
94
+ "Inclusive range end in UTC; defaults to today.",
95
+ ).optional(),
96
+ limit: z.int().default(20),
97
+ period: z.string().describe(
98
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
99
+ ).optional(),
100
+ search: z.string().describe("Only pages whose path contains this text.")
101
+ .optional(),
102
+ site_id: z.string(),
103
+ sort: Sort$zodSchema.default("ai_total").describe(
104
+ "Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
105
+ ),
106
+ start_date: z.string().date().describe(
107
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
108
+ ).optional(),
109
+ type: V2AgentAnalyticsPagesListType$zodSchema.optional().describe(
110
+ "Only pages this traffic type visited.",
111
+ ),
112
+ });
113
+
114
+ export type V2AgentAnalyticsPagesListResponse =
115
+ | PublicAgentAnalyticsPageListResponse
116
+ | HTTPValidationError;
117
+
118
+ export const V2AgentAnalyticsPagesListResponse$zodSchema: z.ZodType<
119
+ V2AgentAnalyticsPagesListResponse
120
+ > = z.union([
121
+ PublicAgentAnalyticsPageListResponse$zodSchema,
122
+ HTTPValidationError$zodSchema,
123
+ ]);
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: da5c8805b14f
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsSourceListResponse,
13
+ PublicAgentAnalyticsSourceListResponse$zodSchema,
14
+ } from "./publicagentanalyticssourcelistresponse.js";
15
+
16
+ export type V2AgentAnalyticsSourcesListRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ period?: string | undefined;
21
+ };
22
+
23
+ export const V2AgentAnalyticsSourcesListRequest$zodSchema: z.ZodType<
24
+ V2AgentAnalyticsSourcesListRequest
25
+ > = z.object({
26
+ end_date: z.string().date().describe(
27
+ "Inclusive range end in UTC; defaults to today.",
28
+ ).optional(),
29
+ period: z.string().describe(
30
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
31
+ ).optional(),
32
+ site_id: z.string(),
33
+ start_date: z.string().date().describe(
34
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
35
+ ).optional(),
36
+ });
37
+
38
+ export type V2AgentAnalyticsSourcesListResponse =
39
+ | PublicAgentAnalyticsSourceListResponse
40
+ | HTTPValidationError;
41
+
42
+ export const V2AgentAnalyticsSourcesListResponse$zodSchema: z.ZodType<
43
+ V2AgentAnalyticsSourcesListResponse
44
+ > = z.union([
45
+ PublicAgentAnalyticsSourceListResponse$zodSchema,
46
+ HTTPValidationError$zodSchema,
47
+ ]);
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b5dfa63686f4
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ PublicAgentAnalyticsSummary,
13
+ PublicAgentAnalyticsSummary$zodSchema,
14
+ } from "./publicagentanalyticssummary.js";
15
+
16
+ export type V2AgentAnalyticsSummaryRetrieveRequest = {
17
+ site_id: string;
18
+ start_date?: string | undefined;
19
+ end_date?: string | undefined;
20
+ period?: string | undefined;
21
+ };
22
+
23
+ export const V2AgentAnalyticsSummaryRetrieveRequest$zodSchema: z.ZodType<
24
+ V2AgentAnalyticsSummaryRetrieveRequest
25
+ > = z.object({
26
+ end_date: z.string().date().describe(
27
+ "Inclusive range end in UTC; defaults to today.",
28
+ ).optional(),
29
+ period: z.string().describe(
30
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
31
+ ).optional(),
32
+ site_id: z.string(),
33
+ start_date: z.string().date().describe(
34
+ "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
35
+ ).optional(),
36
+ });
37
+
38
+ export type V2AgentAnalyticsSummaryRetrieveResponse =
39
+ | PublicAgentAnalyticsSummary
40
+ | HTTPValidationError;
41
+
42
+ export const V2AgentAnalyticsSummaryRetrieveResponse$zodSchema: z.ZodType<
43
+ V2AgentAnalyticsSummaryRetrieveResponse
44
+ > = z.union([
45
+ PublicAgentAnalyticsSummary$zodSchema,
46
+ HTTPValidationError$zodSchema,
47
+ ]);
@@ -38,7 +38,7 @@ export const V2InlineMcpDefinition$zodSchema: z.ZodType<V2InlineMcpDefinition> =
38
38
  "Executable command for a `stdio` MCP server.",
39
39
  ),
40
40
  env: z.record(z.string(), z.string()).optional().describe(
41
- "Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`.",
41
+ "Environment mapping for a `stdio` MCP server. Values may reference the run environment's variables with `${VARIABLE_NAME}`; secrets (names ending in KEY, TOKEN, SECRET or PASSWORD) must.",
42
42
  ),
43
43
  headers: z.record(z.string(), z.string()).optional().describe(
44
44
  "HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials.",
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d19d5cd47b00
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ V2PromptRunJobResponse,
13
+ V2PromptRunJobResponse$zodSchema,
14
+ } from "./v2promptrunjobresponse.js";
15
+
16
+ export type V2PromptRunsCancelRequest = { run_id: string };
17
+
18
+ export const V2PromptRunsCancelRequest$zodSchema: z.ZodType<
19
+ V2PromptRunsCancelRequest
20
+ > = z.object({
21
+ run_id: z.string().describe(
22
+ "Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.",
23
+ ),
24
+ });
25
+
26
+ /**
27
+ * Prompt run cancellation is temporarily unavailable.
28
+ */
29
+ export type V2PromptRunsCancelServiceUnavailableResponseBody = {
30
+ detail: string;
31
+ };
32
+
33
+ export const V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema:
34
+ z.ZodType<V2PromptRunsCancelServiceUnavailableResponseBody> = z.object({
35
+ detail: z.string(),
36
+ }).describe("Prompt run cancellation is temporarily unavailable.");
37
+
38
+ /**
39
+ * The prompt run has already completed or failed.
40
+ */
41
+ export type V2PromptRunsCancelConflictResponseBody = { detail: string };
42
+
43
+ export const V2PromptRunsCancelConflictResponseBody$zodSchema: z.ZodType<
44
+ V2PromptRunsCancelConflictResponseBody
45
+ > = z.object({
46
+ detail: z.string(),
47
+ }).describe("The prompt run has already completed or failed.");
48
+
49
+ /**
50
+ * Prompt run not found. Use the run ID returned when you started the prompt run.
51
+ */
52
+ export type V2PromptRunsCancelNotFoundResponseBody = { detail: string };
53
+
54
+ export const V2PromptRunsCancelNotFoundResponseBody$zodSchema: z.ZodType<
55
+ V2PromptRunsCancelNotFoundResponseBody
56
+ > = z.object({
57
+ detail: z.string(),
58
+ }).describe(
59
+ "Prompt run not found. Use the run ID returned when you started the prompt run.",
60
+ );
61
+
62
+ /**
63
+ * The prompt run ID is not a valid UUID.
64
+ */
65
+ export type V2PromptRunsCancelBadRequestResponseBody = { detail: string };
66
+
67
+ export const V2PromptRunsCancelBadRequestResponseBody$zodSchema: z.ZodType<
68
+ V2PromptRunsCancelBadRequestResponseBody
69
+ > = z.object({
70
+ detail: z.string(),
71
+ }).describe("The prompt run ID is not a valid UUID.");
72
+
73
+ export type V2PromptRunsCancelResponse =
74
+ | V2PromptRunJobResponse
75
+ | V2PromptRunsCancelBadRequestResponseBody
76
+ | V2PromptRunsCancelNotFoundResponseBody
77
+ | V2PromptRunsCancelConflictResponseBody
78
+ | V2PromptRunsCancelServiceUnavailableResponseBody
79
+ | HTTPValidationError;
80
+
81
+ export const V2PromptRunsCancelResponse$zodSchema: z.ZodType<
82
+ V2PromptRunsCancelResponse
83
+ > = z.union([
84
+ V2PromptRunJobResponse$zodSchema,
85
+ z.lazy(() => V2PromptRunsCancelBadRequestResponseBody$zodSchema),
86
+ z.lazy(() => V2PromptRunsCancelNotFoundResponseBody$zodSchema),
87
+ z.lazy(() => V2PromptRunsCancelConflictResponseBody$zodSchema),
88
+ z.lazy(() => V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema),
89
+ HTTPValidationError$zodSchema,
90
+ ]);
@@ -9,16 +9,16 @@ import { ClosedEnum } from "../types/enums.js";
9
9
  /**
10
10
  * Whether the repository is a read-only built-in template or an organization-owned saved repository.
11
11
  */
12
- export const Kind = {
12
+ export const V2RepositoryKind = {
13
13
  Template: "template",
14
14
  Saved: "saved",
15
15
  } as const;
16
16
  /**
17
17
  * Whether the repository is a read-only built-in template or an organization-owned saved repository.
18
18
  */
19
- export type Kind = ClosedEnum<typeof Kind>;
19
+ export type V2RepositoryKind = ClosedEnum<typeof V2RepositoryKind>;
20
20
 
21
- export const Kind$zodSchema = z.enum([
21
+ export const V2RepositoryKind$zodSchema = z.enum([
22
22
  "template",
23
23
  "saved",
24
24
  ]).describe(
@@ -54,7 +54,7 @@ export const V2RepositoryFramework$zodSchema = z.enum([
54
54
 
55
55
  export type V2Repository = {
56
56
  id: string;
57
- kind: Kind;
57
+ kind: V2RepositoryKind;
58
58
  name: string;
59
59
  repo_url: string;
60
60
  ref: string;
@@ -74,7 +74,7 @@ export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
74
74
  "Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs.",
75
75
  ),
76
76
  install_steps: z.array(z.string()).optional(),
77
- kind: Kind$zodSchema.describe(
77
+ kind: V2RepositoryKind$zodSchema.describe(
78
78
  "Whether the repository is a read-only built-in template or an organization-owned saved repository.",
79
79
  ),
80
80
  name: z.string(),