@lightsage/mcp 0.4.17 → 0.4.19

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 (345) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +4 -1
  3. package/bin/mcp-server.js +1115 -205
  4. package/bin/mcp-server.js.map +82 -56
  5. package/esm/funcs/agentAnalyticsCountriesList.js +1 -0
  6. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -1
  7. package/esm/funcs/agentAnalyticsErrorPagesList.js +1 -0
  8. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -1
  9. package/esm/funcs/agentAnalyticsPagesList.js +1 -0
  10. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -1
  11. package/esm/funcs/agentAnalyticsSourcesList.js +1 -0
  12. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -1
  13. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +1 -1
  14. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +2 -1
  15. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -1
  16. package/esm/funcs/agentsList.d.ts +1 -1
  17. package/esm/funcs/agentsList.js +1 -1
  18. package/esm/funcs/evalsCreate.d.ts +2 -0
  19. package/esm/funcs/evalsCreate.d.ts.map +1 -1
  20. package/esm/funcs/evalsCreate.js +2 -0
  21. package/esm/funcs/evalsCreate.js.map +1 -1
  22. package/esm/funcs/evalsRun.d.ts +2 -0
  23. package/esm/funcs/evalsRun.d.ts.map +1 -1
  24. package/esm/funcs/evalsRun.js +2 -0
  25. package/esm/funcs/evalsRun.js.map +1 -1
  26. package/esm/funcs/promptsRun.d.ts +8 -3
  27. package/esm/funcs/promptsRun.d.ts.map +1 -1
  28. package/esm/funcs/promptsRun.js +8 -3
  29. package/esm/funcs/promptsRun.js.map +1 -1
  30. package/esm/funcs/promptsRunCancel.d.ts +16 -0
  31. package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
  32. package/esm/funcs/promptsRunCancel.js +88 -0
  33. package/esm/funcs/promptsRunCancel.js.map +1 -0
  34. package/esm/funcs/promptsTargetsList.d.ts +16 -0
  35. package/esm/funcs/promptsTargetsList.d.ts.map +1 -0
  36. package/esm/funcs/promptsTargetsList.js +86 -0
  37. package/esm/funcs/promptsTargetsList.js.map +1 -0
  38. package/esm/funcs/promptsTargetsSet.d.ts +16 -0
  39. package/esm/funcs/promptsTargetsSet.d.ts.map +1 -0
  40. package/esm/funcs/promptsTargetsSet.js +83 -0
  41. package/esm/funcs/promptsTargetsSet.js.map +1 -0
  42. package/esm/funcs/visibilityCitationsList.d.ts +1 -1
  43. package/esm/funcs/visibilityCitationsList.js +2 -1
  44. package/esm/funcs/visibilityCitationsList.js.map +1 -1
  45. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
  46. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  47. package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
  48. package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
  49. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  50. package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
  51. package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
  52. package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
  53. package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
  54. package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
  55. package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
  56. package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
  57. package/esm/landing-page.js +1 -1
  58. package/esm/lib/config.d.ts +2 -2
  59. package/esm/lib/config.js +2 -2
  60. package/esm/mcp-server/mcp-server.js +1 -1
  61. package/esm/mcp-server/server.d.ts.map +1 -1
  62. package/esm/mcp-server/server.js +9 -1
  63. package/esm/mcp-server/server.js.map +1 -1
  64. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +1 -1
  65. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -1
  66. package/esm/mcp-server/tools/agentsList.js +1 -1
  67. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  68. package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
  69. package/esm/mcp-server/tools/evalsCreate.js +3 -1
  70. package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
  71. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  72. package/esm/mcp-server/tools/evalsRun.js +2 -0
  73. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  74. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  75. package/esm/mcp-server/tools/promptsRun.js +8 -3
  76. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  77. package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
  78. package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
  79. package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
  80. package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
  81. package/esm/mcp-server/tools/promptsTargetsList.d.ts +7 -0
  82. package/esm/mcp-server/tools/promptsTargetsList.d.ts.map +1 -0
  83. package/esm/mcp-server/tools/promptsTargetsList.js +35 -0
  84. package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -0
  85. package/esm/mcp-server/tools/promptsTargetsSet.d.ts +7 -0
  86. package/esm/mcp-server/tools/promptsTargetsSet.d.ts.map +1 -0
  87. package/esm/mcp-server/tools/promptsTargetsSet.js +35 -0
  88. package/esm/mcp-server/tools/promptsTargetsSet.js.map +1 -0
  89. package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
  90. package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
  91. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
  92. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  93. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
  94. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
  95. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  96. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  97. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
  98. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
  99. package/esm/models/createv2promptrequest.js +1 -1
  100. package/esm/models/createv2promptrequest.js.map +1 -1
  101. package/esm/models/createv2promptrunrequest.d.ts +1 -0
  102. package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
  103. package/esm/models/createv2promptrunrequest.js +2 -1
  104. package/esm/models/createv2promptrunrequest.js.map +1 -1
  105. package/esm/models/evaltemplateschedule.d.ts +4 -4
  106. package/esm/models/evaltemplateschedule.d.ts.map +1 -1
  107. package/esm/models/evaltemplateschedule.js +4 -3
  108. package/esm/models/evaltemplateschedule.js.map +1 -1
  109. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +2 -0
  110. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -1
  111. package/esm/models/publicagentanalyticscountrylistresponse.js +2 -0
  112. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -1
  113. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +2 -0
  114. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -1
  115. package/esm/models/publicagentanalyticserrorpagelistresponse.js +2 -0
  116. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -1
  117. package/esm/models/publicagentanalyticspagelistresponse.d.ts +2 -0
  118. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -1
  119. package/esm/models/publicagentanalyticspagelistresponse.js +2 -0
  120. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -1
  121. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +2 -0
  122. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -1
  123. package/esm/models/publicagentanalyticssourcelistresponse.js +2 -0
  124. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -1
  125. package/esm/models/publicagentanalyticssummary.d.ts +2 -0
  126. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -1
  127. package/esm/models/publicagentanalyticssummary.js +2 -0
  128. package/esm/models/publicagentanalyticssummary.js.map +1 -1
  129. package/esm/models/publiccitationsummarygroup.d.ts +17 -0
  130. package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
  131. package/esm/models/publiccitationsummarygroup.js +20 -0
  132. package/esm/models/publiccitationsummarygroup.js.map +1 -0
  133. package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
  134. package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
  135. package/esm/models/publiccitationsummaryresponse.js +58 -0
  136. package/esm/models/publiccitationsummaryresponse.js.map +1 -0
  137. package/esm/models/publiccitationsummarytotals.d.ts +14 -0
  138. package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
  139. package/esm/models/publiccitationsummarytotals.js +17 -0
  140. package/esm/models/publiccitationsummarytotals.js.map +1 -0
  141. package/esm/models/publiccoverage.d.ts +12 -0
  142. package/esm/models/publiccoverage.d.ts.map +1 -0
  143. package/esm/models/publiccoverage.js +15 -0
  144. package/esm/models/publiccoverage.js.map +1 -0
  145. package/esm/models/publiccoverageday.d.ts +41 -0
  146. package/esm/models/publiccoverageday.d.ts.map +1 -0
  147. package/esm/models/publiccoverageday.js +39 -0
  148. package/esm/models/publiccoverageday.js.map +1 -0
  149. package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
  150. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  151. package/esm/models/publiccurrentvisibilityresponse.js +8 -0
  152. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  153. package/esm/models/publicperiodcoverage.d.ts +13 -0
  154. package/esm/models/publicperiodcoverage.d.ts.map +1 -0
  155. package/esm/models/publicperiodcoverage.js +17 -0
  156. package/esm/models/publicperiodcoverage.js.map +1 -0
  157. package/esm/models/publicperiodrates.d.ts +10 -0
  158. package/esm/models/publicperiodrates.d.ts.map +1 -0
  159. package/esm/models/publicperiodrates.js +14 -0
  160. package/esm/models/publicperiodrates.js.map +1 -0
  161. package/esm/models/publicpreviousvisibility.d.ts +10 -0
  162. package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
  163. package/esm/models/publicpreviousvisibility.js +13 -0
  164. package/esm/models/publicpreviousvisibility.js.map +1 -0
  165. package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
  166. package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
  167. package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
  168. package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
  169. package/esm/models/publicratechanges.d.ts +8 -0
  170. package/esm/models/publicratechanges.d.ts.map +1 -0
  171. package/esm/models/publicratechanges.js +12 -0
  172. package/esm/models/publicratechanges.js.map +1 -0
  173. package/esm/models/publicrates.d.ts +27 -0
  174. package/esm/models/publicrates.d.ts.map +1 -0
  175. package/esm/models/publicrates.js +25 -0
  176. package/esm/models/publicrates.js.map +1 -0
  177. package/esm/models/publicresolvedperiod.d.ts +14 -0
  178. package/esm/models/publicresolvedperiod.d.ts.map +1 -0
  179. package/esm/models/publicresolvedperiod.js +18 -0
  180. package/esm/models/publicresolvedperiod.js.map +1 -0
  181. package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
  182. package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
  183. package/esm/models/publictopcitedurlsresponse.js +9 -3
  184. package/esm/models/publictopcitedurlsresponse.js.map +1 -1
  185. package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
  186. package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
  187. package/esm/models/publicvisibilityoverviewresponse.js +6 -0
  188. package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
  189. package/esm/models/setv2prompttargetsrequest.d.ts +8 -0
  190. package/esm/models/setv2prompttargetsrequest.d.ts.map +1 -0
  191. package/esm/models/setv2prompttargetsrequest.js +11 -0
  192. package/esm/models/setv2prompttargetsrequest.js.map +1 -0
  193. package/esm/models/setv2prompttargetsresponse.d.ts +9 -0
  194. package/esm/models/setv2prompttargetsresponse.d.ts.map +1 -0
  195. package/esm/models/setv2prompttargetsresponse.js +12 -0
  196. package/esm/models/setv2prompttargetsresponse.js.map +1 -0
  197. package/esm/models/updatev2promptrequest.js +1 -1
  198. package/esm/models/updatev2promptrequest.js.map +1 -1
  199. package/esm/models/v2agentanalyticscountrieslistop.d.ts +1 -0
  200. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -1
  201. package/esm/models/v2agentanalyticscountrieslistop.js +1 -0
  202. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -1
  203. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +1 -0
  204. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -1
  205. package/esm/models/v2agentanalyticserrorpageslistop.js +1 -0
  206. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -1
  207. package/esm/models/v2agentanalyticspageslistop.d.ts +1 -0
  208. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -1
  209. package/esm/models/v2agentanalyticspageslistop.js +1 -0
  210. package/esm/models/v2agentanalyticspageslistop.js.map +1 -1
  211. package/esm/models/v2agentanalyticssourceslistop.d.ts +1 -0
  212. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -1
  213. package/esm/models/v2agentanalyticssourceslistop.js +1 -0
  214. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -1
  215. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +1 -0
  216. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -1
  217. package/esm/models/v2agentanalyticssummaryretrieveop.js +1 -0
  218. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -1
  219. package/esm/models/v2promptrunscancelop.d.ts +38 -0
  220. package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
  221. package/esm/models/v2promptrunscancelop.js +31 -0
  222. package/esm/models/v2promptrunscancelop.js.map +1 -0
  223. package/esm/models/v2prompttarget.d.ts +44 -0
  224. package/esm/models/v2prompttarget.d.ts.map +1 -0
  225. package/esm/models/v2prompttarget.js +41 -0
  226. package/esm/models/v2prompttarget.js.map +1 -0
  227. package/esm/models/v2prompttargetinput.d.ts +47 -0
  228. package/esm/models/v2prompttargetinput.d.ts.map +1 -0
  229. package/esm/models/v2prompttargetinput.js +45 -0
  230. package/esm/models/v2prompttargetinput.js.map +1 -0
  231. package/esm/models/v2prompttargetslistop.d.ts +10 -0
  232. package/esm/models/v2prompttargetslistop.d.ts.map +1 -0
  233. package/esm/models/v2prompttargetslistop.js +15 -0
  234. package/esm/models/v2prompttargetslistop.js.map +1 -0
  235. package/esm/models/v2prompttargetsresponse.d.ts +8 -0
  236. package/esm/models/v2prompttargetsresponse.d.ts.map +1 -0
  237. package/esm/models/v2prompttargetsresponse.js +11 -0
  238. package/esm/models/v2prompttargetsresponse.js.map +1 -0
  239. package/esm/models/v2prompttargetssetop.d.ts +6 -0
  240. package/esm/models/v2prompttargetssetop.d.ts.map +1 -0
  241. package/esm/models/v2prompttargetssetop.js +12 -0
  242. package/esm/models/v2prompttargetssetop.js.map +1 -0
  243. package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
  244. package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
  245. package/esm/models/v2visibilitycitationslistop.js +1 -0
  246. package/esm/models/v2visibilitycitationslistop.js.map +1 -1
  247. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
  248. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
  249. package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
  250. package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
  251. package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
  252. package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
  253. package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
  254. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  255. package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
  256. package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
  257. package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
  258. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  259. package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
  260. package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
  261. package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
  262. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  263. package/esm/tool-names.d.ts.map +1 -1
  264. package/esm/tool-names.js +24 -8
  265. package/esm/tool-names.js.map +1 -1
  266. package/lib/feedback.js +47 -0
  267. package/lib/tracker.js +4 -2
  268. package/package.json +5 -4
  269. package/src/funcs/agentAnalyticsCountriesList.ts +1 -0
  270. package/src/funcs/agentAnalyticsErrorPagesList.ts +1 -0
  271. package/src/funcs/agentAnalyticsPagesList.ts +1 -0
  272. package/src/funcs/agentAnalyticsSourcesList.ts +1 -0
  273. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +2 -1
  274. package/src/funcs/agentsList.ts +1 -1
  275. package/src/funcs/evalsCreate.ts +2 -0
  276. package/src/funcs/evalsRun.ts +2 -0
  277. package/src/funcs/promptsRun.ts +8 -3
  278. package/src/funcs/promptsRunCancel.ts +153 -0
  279. package/src/funcs/promptsTargetsList.ts +148 -0
  280. package/src/funcs/promptsTargetsSet.ts +145 -0
  281. package/src/funcs/visibilityCitationsList.ts +2 -1
  282. package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
  283. package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
  284. package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
  285. package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
  286. package/src/landing-page.ts +1 -1
  287. package/src/lib/config.ts +2 -2
  288. package/src/mcp-server/mcp-server.ts +1 -1
  289. package/src/mcp-server/server.ts +9 -1
  290. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +1 -1
  291. package/src/mcp-server/tools/agentsList.ts +1 -1
  292. package/src/mcp-server/tools/evalsCreate.ts +3 -1
  293. package/src/mcp-server/tools/evalsRun.ts +2 -0
  294. package/src/mcp-server/tools/promptsRun.ts +8 -3
  295. package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
  296. package/src/mcp-server/tools/promptsTargetsList.ts +43 -0
  297. package/src/mcp-server/tools/promptsTargetsSet.ts +43 -0
  298. package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
  299. package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
  300. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  301. package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
  302. package/src/models/createv2promptrequest.ts +1 -1
  303. package/src/models/createv2promptrunrequest.ts +5 -1
  304. package/src/models/evaltemplateschedule.ts +8 -7
  305. package/src/models/publicagentanalyticscountrylistresponse.ts +8 -0
  306. package/src/models/publicagentanalyticserrorpagelistresponse.ts +8 -0
  307. package/src/models/publicagentanalyticspagelistresponse.ts +8 -0
  308. package/src/models/publicagentanalyticssourcelistresponse.ts +8 -0
  309. package/src/models/publicagentanalyticssummary.ts +8 -0
  310. package/src/models/publiccitationsummarygroup.ts +54 -0
  311. package/src/models/publiccitationsummaryresponse.ts +110 -0
  312. package/src/models/publiccitationsummarytotals.ts +38 -0
  313. package/src/models/publiccoverage.ts +34 -0
  314. package/src/models/publiccoverageday.ts +68 -0
  315. package/src/models/publiccurrentvisibilityresponse.ts +26 -0
  316. package/src/models/publicperiodcoverage.ts +33 -0
  317. package/src/models/publicperiodrates.ts +29 -0
  318. package/src/models/publicpreviousvisibility.ts +30 -0
  319. package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
  320. package/src/models/publicratechanges.ts +25 -0
  321. package/src/models/publicrates.ts +52 -0
  322. package/src/models/publicresolvedperiod.ts +41 -0
  323. package/src/models/publictopcitedurlsresponse.ts +25 -5
  324. package/src/models/publicvisibilityoverviewresponse.ts +18 -0
  325. package/src/models/setv2prompttargetsrequest.ts +26 -0
  326. package/src/models/setv2prompttargetsresponse.ts +23 -0
  327. package/src/models/updatev2promptrequest.ts +1 -1
  328. package/src/models/v2agentanalyticscountrieslistop.ts +4 -0
  329. package/src/models/v2agentanalyticserrorpageslistop.ts +4 -0
  330. package/src/models/v2agentanalyticspageslistop.ts +4 -0
  331. package/src/models/v2agentanalyticssourceslistop.ts +4 -0
  332. package/src/models/v2agentanalyticssummaryretrieveop.ts +4 -0
  333. package/src/models/v2promptrunscancelop.ts +90 -0
  334. package/src/models/v2prompttarget.ts +79 -0
  335. package/src/models/v2prompttargetinput.ts +72 -0
  336. package/src/models/v2prompttargetslistop.ts +33 -0
  337. package/src/models/v2prompttargetsresponse.ts +19 -0
  338. package/src/models/v2prompttargetssetop.ts +25 -0
  339. package/src/models/v2visibilitycitationslistop.ts +4 -0
  340. package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
  341. package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
  342. package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
  343. package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
  344. package/src/tool-names.ts +24 -8
  345. package/test/tracker.test.js +83 -1
@@ -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
+ ]);
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: bcbdf1e69dc7
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ V2PromptRunTopic,
10
+ V2PromptRunTopic$zodSchema,
11
+ } from "./v2promptruntopic.js";
12
+
13
+ export const V2PromptTargetKind = {
14
+ AnswerEngine: "answer_engine",
15
+ CodingAgent: "coding_agent",
16
+ } as const;
17
+ export type V2PromptTargetKind = ClosedEnum<typeof V2PromptTargetKind>;
18
+
19
+ export const V2PromptTargetKind$zodSchema = z.enum([
20
+ "answer_engine",
21
+ "coding_agent",
22
+ ]);
23
+
24
+ /**
25
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
26
+ */
27
+ export const V2PromptTargetFrequency = {
28
+ Daily: "daily",
29
+ EveryOtherDay: "every_other_day",
30
+ Weekly: "weekly",
31
+ Manual: "manual",
32
+ } as const;
33
+ /**
34
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
35
+ */
36
+ export type V2PromptTargetFrequency = ClosedEnum<
37
+ typeof V2PromptTargetFrequency
38
+ >;
39
+
40
+ export const V2PromptTargetFrequency$zodSchema = z.enum([
41
+ "daily",
42
+ "every_other_day",
43
+ "weekly",
44
+ "manual",
45
+ ]).describe(
46
+ "How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.",
47
+ );
48
+
49
+ export type V2PromptTarget = {
50
+ id: string;
51
+ topic?: V2PromptRunTopic | null | undefined;
52
+ kind: V2PromptTargetKind;
53
+ answer_engine?: string | null | undefined;
54
+ agent?: string | null | undefined;
55
+ name: string;
56
+ frequency: V2PromptTargetFrequency;
57
+ next_run_at?: string | null | undefined;
58
+ last_run_at?: string | null | undefined;
59
+ };
60
+
61
+ export const V2PromptTarget$zodSchema: z.ZodType<V2PromptTarget> = z.object({
62
+ agent: z.string().nullable().optional().describe(
63
+ "Agent ID from `GET /v2/agents` for coding-agent targets.",
64
+ ),
65
+ answer_engine: z.string().nullable().optional().describe(
66
+ "Answer engine identifier for answer-engine targets.",
67
+ ),
68
+ frequency: V2PromptTargetFrequency$zodSchema.describe(
69
+ "How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.",
70
+ ),
71
+ id: z.string(),
72
+ kind: V2PromptTargetKind$zodSchema,
73
+ last_run_at: z.string().nullable().optional(),
74
+ name: z.string().describe("Human-readable answer engine or agent name."),
75
+ next_run_at: z.string().nullable().optional(),
76
+ topic: V2PromptRunTopic$zodSchema.nullable().optional().describe(
77
+ "Topic the target runs for. Null means it runs for every topic.",
78
+ ),
79
+ });
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 69ccb1989872
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ export const AnswerEngine = {
10
+ Chatgpt: "chatgpt",
11
+ GoogleAiOverviews: "google-ai-overviews",
12
+ GoogleAiMode: "google-ai-mode",
13
+ GeminiSearch: "gemini-search",
14
+ Perplexity: "perplexity",
15
+ Claude: "claude",
16
+ MicrosoftCopilot: "microsoft-copilot",
17
+ } as const;
18
+ export type AnswerEngine = ClosedEnum<typeof AnswerEngine>;
19
+
20
+ export const AnswerEngine$zodSchema = z.enum([
21
+ "chatgpt",
22
+ "google-ai-overviews",
23
+ "google-ai-mode",
24
+ "gemini-search",
25
+ "perplexity",
26
+ "claude",
27
+ "microsoft-copilot",
28
+ ]);
29
+
30
+ /**
31
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
32
+ */
33
+ export const V2PromptTargetInputFrequency = {
34
+ Daily: "daily",
35
+ EveryOtherDay: "every_other_day",
36
+ Weekly: "weekly",
37
+ Manual: "manual",
38
+ } as const;
39
+ /**
40
+ * How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.
41
+ */
42
+ export type V2PromptTargetInputFrequency = ClosedEnum<
43
+ typeof V2PromptTargetInputFrequency
44
+ >;
45
+
46
+ export const V2PromptTargetInputFrequency$zodSchema = z.enum([
47
+ "daily",
48
+ "every_other_day",
49
+ "weekly",
50
+ "manual",
51
+ ]).describe(
52
+ "How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.",
53
+ );
54
+
55
+ export type V2PromptTargetInput = {
56
+ answer_engine?: AnswerEngine | null | undefined;
57
+ agent?: string | null | undefined;
58
+ frequency?: V2PromptTargetInputFrequency | undefined;
59
+ };
60
+
61
+ export const V2PromptTargetInput$zodSchema: z.ZodType<V2PromptTargetInput> = z
62
+ .object({
63
+ agent: z.string().nullable().optional().describe(
64
+ "Runnable agent from `GET /v2/agents`, a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Set this or `answer_engine`, not both.",
65
+ ),
66
+ answer_engine: AnswerEngine$zodSchema.nullable().optional().describe(
67
+ "Answer engine to run the topic's prompts on. Set this or `agent`, not both.",
68
+ ),
69
+ frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe(
70
+ "How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.",
71
+ ),
72
+ });
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 31f493d5ba11
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ V2PromptTargetsResponse,
13
+ V2PromptTargetsResponse$zodSchema,
14
+ } from "./v2prompttargetsresponse.js";
15
+
16
+ export type V2PromptTargetsListRequest = { topic_id?: string | undefined };
17
+
18
+ export const V2PromptTargetsListRequest$zodSchema: z.ZodType<
19
+ V2PromptTargetsListRequest
20
+ > = z.object({
21
+ topic_id: z.string().describe("Optional prompt topic ID.").optional(),
22
+ });
23
+
24
+ export type V2PromptTargetsListResponse =
25
+ | V2PromptTargetsResponse
26
+ | HTTPValidationError;
27
+
28
+ export const V2PromptTargetsListResponse$zodSchema: z.ZodType<
29
+ V2PromptTargetsListResponse
30
+ > = z.union([
31
+ V2PromptTargetsResponse$zodSchema,
32
+ HTTPValidationError$zodSchema,
33
+ ]);
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 25379b3b6438
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { V2PromptTarget, V2PromptTarget$zodSchema } from "./v2prompttarget.js";
8
+
9
+ export type V2PromptTargetsResponse = {
10
+ data?: Array<V2PromptTarget> | undefined;
11
+ count: number;
12
+ };
13
+
14
+ export const V2PromptTargetsResponse$zodSchema: z.ZodType<
15
+ V2PromptTargetsResponse
16
+ > = z.object({
17
+ count: z.int(),
18
+ data: z.array(V2PromptTarget$zodSchema).optional(),
19
+ });
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4187502eab53
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ HTTPValidationError,
9
+ HTTPValidationError$zodSchema,
10
+ } from "./httpvalidationerror.js";
11
+ import {
12
+ SetV2PromptTargetsResponse,
13
+ SetV2PromptTargetsResponse$zodSchema,
14
+ } from "./setv2prompttargetsresponse.js";
15
+
16
+ export type V2PromptTargetsSetResponse =
17
+ | SetV2PromptTargetsResponse
18
+ | HTTPValidationError;
19
+
20
+ export const V2PromptTargetsSetResponse$zodSchema: z.ZodType<
21
+ V2PromptTargetsSetResponse
22
+ > = z.union([
23
+ SetV2PromptTargetsResponse$zodSchema,
24
+ HTTPValidationError$zodSchema,
25
+ ]);
@@ -35,6 +35,7 @@ export type V2VisibilityCitationsListRequest = {
35
35
  platform?: string | undefined;
36
36
  source_type?: V2VisibilityCitationsListSourceType | undefined;
37
37
  limit?: number | undefined;
38
+ period?: string | undefined;
38
39
  };
39
40
 
40
41
  export const V2VisibilityCitationsListRequest$zodSchema: z.ZodType<
@@ -44,6 +45,9 @@ export const V2VisibilityCitationsListRequest$zodSchema: z.ZodType<
44
45
  "Inclusive range end; defaults to today.",
45
46
  ).optional(),
46
47
  limit: z.int().default(20),
48
+ period: z.string().describe(
49
+ "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`.",
50
+ ).optional(),
47
51
  platform: z.string().describe("Optional answer-platform ID, name, or slug.")
48
52
  .optional(),
49
53
  source_type: V2VisibilityCitationsListSourceType$zodSchema.default("all"),
@@ -0,0 +1,113 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 704776418479
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
+ PublicCitationSummaryResponse,
14
+ PublicCitationSummaryResponse$zodSchema,
15
+ } from "./publiccitationsummaryresponse.js";
16
+
17
+ /**
18
+ * How to group citations.
19
+ */
20
+ export const V2VisibilityCitationsSummaryRetrieveGroupBy = {
21
+ UrlPrefix: "url_prefix",
22
+ Url: "url",
23
+ Domain: "domain",
24
+ Day: "day",
25
+ } as const;
26
+ /**
27
+ * How to group citations.
28
+ */
29
+ export type V2VisibilityCitationsSummaryRetrieveGroupBy = ClosedEnum<
30
+ typeof V2VisibilityCitationsSummaryRetrieveGroupBy
31
+ >;
32
+
33
+ export const V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema = z.enum([
34
+ "url_prefix",
35
+ "url",
36
+ "domain",
37
+ "day",
38
+ ]).describe("How to group citations.");
39
+
40
+ /**
41
+ * All citations, only owned company domains, or only external ones.
42
+ */
43
+ export const V2VisibilityCitationsSummaryRetrieveSourceType = {
44
+ All: "all",
45
+ Owned: "owned",
46
+ External: "external",
47
+ } as const;
48
+ /**
49
+ * All citations, only owned company domains, or only external ones.
50
+ */
51
+ export type V2VisibilityCitationsSummaryRetrieveSourceType = ClosedEnum<
52
+ typeof V2VisibilityCitationsSummaryRetrieveSourceType
53
+ >;
54
+
55
+ export const V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema = z.enum([
56
+ "all",
57
+ "owned",
58
+ "external",
59
+ ]).describe(
60
+ "All citations, only owned company domains, or only external ones.",
61
+ );
62
+
63
+ export type V2VisibilityCitationsSummaryRetrieveRequest = {
64
+ period?: string | undefined;
65
+ start_date?: string | undefined;
66
+ end_date?: string | undefined;
67
+ group_by?: V2VisibilityCitationsSummaryRetrieveGroupBy | undefined;
68
+ url_prefix?: string | undefined;
69
+ source_type?: V2VisibilityCitationsSummaryRetrieveSourceType | undefined;
70
+ platform?: string | undefined;
71
+ limit?: number | undefined;
72
+ };
73
+
74
+ export const V2VisibilityCitationsSummaryRetrieveRequest$zodSchema: z.ZodType<
75
+ V2VisibilityCitationsSummaryRetrieveRequest
76
+ > = z.object({
77
+ end_date: z.string().date().describe(
78
+ "Inclusive range end; defaults to today.",
79
+ ).optional(),
80
+ group_by: V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema.default(
81
+ "url_prefix",
82
+ ).describe("How to group citations."),
83
+ limit: z.int().default(20).describe(
84
+ "Groups to return; `day` groups return every day.",
85
+ ),
86
+ period: z.string().describe(
87
+ "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`.",
88
+ ).optional(),
89
+ platform: z.string().describe("Optional answer-platform ID, name, or slug.")
90
+ .optional(),
91
+ source_type: V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema.default(
92
+ "all",
93
+ ).describe(
94
+ "All citations, only owned company domains, or only external ones.",
95
+ ),
96
+ start_date: z.string().date().describe(
97
+ "Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.",
98
+ ).optional(),
99
+ url_prefix: z.string().describe(
100
+ "Only citations under this URL prefix, such as `https://example.com/blog/`. Scheme and `www.` are ignored.",
101
+ ).optional(),
102
+ });
103
+
104
+ export type V2VisibilityCitationsSummaryRetrieveResponse =
105
+ | PublicCitationSummaryResponse
106
+ | HTTPValidationError;
107
+
108
+ export const V2VisibilityCitationsSummaryRetrieveResponse$zodSchema: z.ZodType<
109
+ V2VisibilityCitationsSummaryRetrieveResponse
110
+ > = z.union([
111
+ PublicCitationSummaryResponse$zodSchema,
112
+ HTTPValidationError$zodSchema,
113
+ ]);
@@ -16,6 +16,7 @@ import {
16
16
  export type V2VisibilityCurrentRetrieveRequest = {
17
17
  start_date?: string | undefined;
18
18
  end_date?: string | undefined;
19
+ period?: string | undefined;
19
20
  };
20
21
 
21
22
  export const V2VisibilityCurrentRetrieveRequest$zodSchema: z.ZodType<
@@ -24,6 +25,9 @@ export const V2VisibilityCurrentRetrieveRequest$zodSchema: z.ZodType<
24
25
  end_date: z.string().date().describe(
25
26
  "Inclusive range end; defaults to today.",
26
27
  ).optional(),
28
+ period: z.string().describe(
29
+ "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`.",
30
+ ).optional(),
27
31
  start_date: z.string().date().describe(
28
32
  "Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.",
29
33
  ).optional(),
@@ -16,6 +16,7 @@ import {
16
16
  export type V2VisibilityOverviewRetrieveRequest = {
17
17
  start_date?: string | undefined;
18
18
  end_date?: string | undefined;
19
+ period?: string | undefined;
19
20
  };
20
21
 
21
22
  export const V2VisibilityOverviewRetrieveRequest$zodSchema: z.ZodType<
@@ -24,6 +25,9 @@ export const V2VisibilityOverviewRetrieveRequest$zodSchema: z.ZodType<
24
25
  end_date: z.string().date().describe(
25
26
  "Inclusive range end; defaults to today.",
26
27
  ).optional(),
28
+ period: z.string().describe(
29
+ "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`.",
30
+ ).optional(),
27
31
  start_date: z.string().date().describe(
28
32
  "Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.",
29
33
  ).optional(),
@@ -16,6 +16,7 @@ import {
16
16
  export type V2VisibilityPromptsRetrieveRequest = {
17
17
  start_date?: string | undefined;
18
18
  end_date?: string | undefined;
19
+ period?: string | undefined;
19
20
  };
20
21
 
21
22
  export const V2VisibilityPromptsRetrieveRequest$zodSchema: z.ZodType<
@@ -24,6 +25,9 @@ export const V2VisibilityPromptsRetrieveRequest$zodSchema: z.ZodType<
24
25
  end_date: z.string().date().describe(
25
26
  "Inclusive range end; defaults to today.",
26
27
  ).optional(),
28
+ period: z.string().describe(
29
+ "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`.",
30
+ ).optional(),
27
31
  start_date: z.string().date().describe(
28
32
  "Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.",
29
33
  ).optional(),
package/src/tool-names.ts CHANGED
@@ -10,20 +10,24 @@ export const toolNames: Array<{ name: string; description: string }>= [
10
10
  },
11
11
  {
12
12
  "name": "visibility-current-retrieve",
13
- "description": "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are `null`."
13
+ "description": "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are `null`. Pass `period` (for example `last_30_days` or `2026Q4`) instead of computing dates."
14
14
  },
15
15
  {
16
16
  "name": "visibility-overview-retrieve",
17
- "description": "Retrieve Visibility Overview\n\nReturns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only."
17
+ "description": "Retrieve Visibility Overview\n\nReturns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only."
18
18
  },
19
19
  {
20
20
  "name": "visibility-citations-list",
21
- "description": "List Top Cited Urls\n\nReturns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources."
21
+ "description": "List Top Cited Urls\n\nReturns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary."
22
22
  },
23
23
  {
24
24
  "name": "visibility-prompts-retrieve",
25
25
  "description": "Retrieve Prompt Visibility Report\n\nReturns per-topic and per-prompt visibility metrics including recommendation score, rank, visibility score, average position, and citation counts."
26
26
  },
27
+ {
28
+ "name": "visibility-citations-summary-retrieve",
29
+ "description": "Retrieve Citation Summary\n\nReturns citation totals grouped by URL prefix (domain and first path segment, such as `example.com/blog`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with `url_prefix`, for example `https://example.com/blog/`. Aggregated in one call; use it instead of paging the citations list."
30
+ },
27
31
  {
28
32
  "name": "prompts-list",
29
33
  "description": "List Prompts\n\nReturns active and inactive prompts by default. Set `include_archived` to include archived prompts."
@@ -48,6 +52,14 @@ export const toolNames: Array<{ name: string; description: string }>= [
48
52
  "name": "prompts-topics-delete",
49
53
  "description": "Delete Topic\n\nArchives a prompt topic. Set `archive_prompts` to archive remaining prompts; otherwise the request fails with `400` if prompts remain."
50
54
  },
55
+ {
56
+ "name": "prompts-targets-list",
57
+ "description": "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide `topic_id` to list one topic's targets."
58
+ },
59
+ {
60
+ "name": "prompts-targets-set",
61
+ "description": "Set Targets\n\nSets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with `platform_ids`. Name coding agents with IDs from `GET /v2/agents`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass `agent` to `POST /v2/prompts/runs` instead."
62
+ },
51
63
  {
52
64
  "name": "prompts-runs-list",
53
65
  "description": "List Prompt Runs\n\nReturns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range."
@@ -70,12 +82,16 @@ export const toolNames: Array<{ name: string; description: string }>= [
70
82
  },
71
83
  {
72
84
  "name": "prompts-run",
73
- "description": "Run Prompts\n\nQueue saved prompts using the organization's configured targets.\n\nProvide `prompt_ids` to run selected prompts, or omit them to run all active\nprompts. Saved prompt run settings apply to coding-agent targets. The\nresponse returns a run ID to poll with\n`GET /v2/prompts/runs/{run_id}/status`."
85
+ "description": "Run Prompts\n\nQueue saved prompts on answer engines and coding agents.\n\nProvide `prompt_ids` to run selected prompts, or omit them to run all active\nprompts. By default the run uses the organization's configured targets,\nlisted by `GET /v2/prompts/targets`.\nProvide `agent` with IDs from `GET /v2/agents` to run the prompts on\nspecific coding-agent harnesses and models instead, for example to compare\nhow several coding tools answer the same developer question. Results\ninclude mentions and citations. Saved prompt run settings apply to\ncoding-agent targets. The response returns a run ID to poll with\n`GET /v2/prompts/runs/{run_id}/status`."
74
86
  },
75
87
  {
76
88
  "name": "prompts-run-status",
77
89
  "description": "Get Prompt Run Status\n\nReturn status and progress for a queued prompt run.\n\nPoll this endpoint until `status` is `completed`, `failed`, or `cancelled`.\nIndividual stored results are available from `GET /v2/prompts/runs`."
78
90
  },
91
+ {
92
+ "name": "prompts-run-cancel",
93
+ "description": "Cancel a prompt run\n\nMarks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in `progress.cancelled`. Repeating this request for an already-cancelled run is safe."
94
+ },
79
95
  {
80
96
  "name": "opportunities-list",
81
97
  "description": "List Opportunities\n\nReturns ranked opportunities computed from stored prompt visibility results. Each includes an `execution_prompt` with context for an AI agent. Default window is 30 days."
@@ -114,7 +130,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
114
130
  },
115
131
  {
116
132
  "name": "agent-analytics-summary-retrieve",
117
- "description": "Retrieve Agent Analytics Summary\n\nReturns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it."
133
+ "description": "Retrieve Agent Analytics Summary\n\nReturns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named `period`)."
118
134
  },
119
135
  {
120
136
  "name": "agent-analytics-sources-list",
@@ -138,7 +154,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
138
154
  },
139
155
  {
140
156
  "name": "evals-create",
141
- "description": "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
157
+ "description": "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.\n\nEvals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with `POST /v2/prompts/runs` instead."
142
158
  },
143
159
  {
144
160
  "name": "evals-batch-create",
@@ -178,7 +194,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
178
194
  },
179
195
  {
180
196
  "name": "evals-run",
181
- "description": "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
197
+ "description": "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nEval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use `POST /v2/prompts/runs` with `agent` instead.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
182
198
  },
183
199
  {
184
200
  "name": "evals-cancel",
@@ -250,7 +266,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
250
266
  },
251
267
  {
252
268
  "name": "agents-list",
253
- "description": "List Agents\n\nReturns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs."
269
+ "description": "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations, or to `PUT /v2/prompts/targets` to run them on a schedule; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
254
270
  },
255
271
  {
256
272
  "name": "repositories-list",