@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
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5da2b8693555
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicCitationSummaryGroup = {
9
+ key: string;
10
+ url?: string | null | undefined;
11
+ title?: string | null | undefined;
12
+ is_company_link: boolean;
13
+ citation_count: number;
14
+ previous_citation_count: number;
15
+ change?: number | null | undefined;
16
+ citations_per_run?: number | null | undefined;
17
+ previous_citations_per_run?: number | null | undefined;
18
+ per_run_change?: number | null | undefined;
19
+ prompt_count: number;
20
+ url_count: number;
21
+ };
22
+
23
+ export const PublicCitationSummaryGroup$zodSchema: z.ZodType<
24
+ PublicCitationSummaryGroup
25
+ > = z.object({
26
+ change: z.number().nullable().optional().describe(
27
+ "Relative change in citations; 0.25 means 25% higher.",
28
+ ),
29
+ citation_count: z.int().describe("Citations in the period."),
30
+ citations_per_run: z.number().nullable().optional(),
31
+ is_company_link: z.boolean().describe(
32
+ "Whether the group includes an owned company domain.",
33
+ ),
34
+ key: z.string().describe(
35
+ "The group: a URL prefix (domain and first path segment, such as `example.com/blog`), a normalized URL, a domain, or a day (YYYY-MM-DD).",
36
+ ),
37
+ per_run_change: z.number().nullable().optional().describe(
38
+ "Relative change in citations per run.",
39
+ ),
40
+ previous_citation_count: z.int().describe(
41
+ "Citations in the previous period. For `day` groups, the matching day of the previous period.",
42
+ ),
43
+ previous_citations_per_run: z.number().nullable().optional(),
44
+ prompt_count: z.int().describe(
45
+ "Distinct active prompts that cited the group in the period.",
46
+ ),
47
+ title: z.string().nullable().optional().describe(
48
+ "Page title, for `url` groups.",
49
+ ),
50
+ url: z.string().nullable().optional().describe(
51
+ "Most frequently observed variant of the URL, for `url` groups.",
52
+ ),
53
+ url_count: z.int().describe("Distinct URLs in the group in the period."),
54
+ });
@@ -0,0 +1,110 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0db6ff4a9411
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ PublicCitationSummaryGroup,
10
+ PublicCitationSummaryGroup$zodSchema,
11
+ } from "./publiccitationsummarygroup.js";
12
+ import {
13
+ PublicCitationSummaryTotals,
14
+ PublicCitationSummaryTotals$zodSchema,
15
+ } from "./publiccitationsummarytotals.js";
16
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
17
+ import {
18
+ PublicResolvedPeriod,
19
+ PublicResolvedPeriod$zodSchema,
20
+ } from "./publicresolvedperiod.js";
21
+
22
+ export const GroupBy = {
23
+ UrlPrefix: "url_prefix",
24
+ Url: "url",
25
+ Domain: "domain",
26
+ Day: "day",
27
+ } as const;
28
+ export type GroupBy = ClosedEnum<typeof GroupBy>;
29
+
30
+ export const GroupBy$zodSchema = z.enum([
31
+ "url_prefix",
32
+ "url",
33
+ "domain",
34
+ "day",
35
+ ]);
36
+
37
+ export const PublicCitationSummaryResponseSourceType = {
38
+ All: "all",
39
+ Owned: "owned",
40
+ External: "external",
41
+ } as const;
42
+ export type PublicCitationSummaryResponseSourceType = ClosedEnum<
43
+ typeof PublicCitationSummaryResponseSourceType
44
+ >;
45
+
46
+ export const PublicCitationSummaryResponseSourceType$zodSchema = z.enum([
47
+ "all",
48
+ "owned",
49
+ "external",
50
+ ]);
51
+
52
+ /**
53
+ * The number to lead with: citation counts when the periods are comparable, otherwise citations per run.
54
+ */
55
+ export const PublicCitationSummaryResponseHeadlineMetric = {
56
+ CitationCount: "citation_count",
57
+ CitationsPerRun: "citations_per_run",
58
+ } as const;
59
+ /**
60
+ * The number to lead with: citation counts when the periods are comparable, otherwise citations per run.
61
+ */
62
+ export type PublicCitationSummaryResponseHeadlineMetric = ClosedEnum<
63
+ typeof PublicCitationSummaryResponseHeadlineMetric
64
+ >;
65
+
66
+ export const PublicCitationSummaryResponseHeadlineMetric$zodSchema = z.enum([
67
+ "citation_count",
68
+ "citations_per_run",
69
+ ]).describe(
70
+ "The number to lead with: citation counts when the periods are comparable, otherwise citations per run.",
71
+ );
72
+
73
+ export type PublicCitationSummaryResponse = {
74
+ period: PublicResolvedPeriod;
75
+ group_by: GroupBy;
76
+ url_prefix?: string | null | undefined;
77
+ source_type: PublicCitationSummaryResponseSourceType;
78
+ platform?: string | null | undefined;
79
+ headline_metric: PublicCitationSummaryResponseHeadlineMetric;
80
+ totals: PublicCitationSummaryTotals;
81
+ has_data: boolean;
82
+ group_count: number;
83
+ count: number;
84
+ groups?: Array<PublicCitationSummaryGroup> | undefined;
85
+ coverage: PublicCoverage;
86
+ };
87
+
88
+ export const PublicCitationSummaryResponse$zodSchema: z.ZodType<
89
+ PublicCitationSummaryResponse
90
+ > = z.object({
91
+ count: z.int().describe("Groups returned."),
92
+ coverage: PublicCoverage$zodSchema,
93
+ group_by: GroupBy$zodSchema,
94
+ group_count: z.int().describe("Groups matching the filters, before `limit`."),
95
+ groups: z.array(PublicCitationSummaryGroup$zodSchema).optional().describe(
96
+ "Groups by citation count, most first; `day` groups are in date order.",
97
+ ),
98
+ has_data: z.boolean(),
99
+ headline_metric: PublicCitationSummaryResponseHeadlineMetric$zodSchema
100
+ .describe(
101
+ "The number to lead with: citation counts when the periods are comparable, otherwise citations per run.",
102
+ ),
103
+ period: PublicResolvedPeriod$zodSchema,
104
+ platform: z.string().nullable().optional(),
105
+ source_type: PublicCitationSummaryResponseSourceType$zodSchema,
106
+ totals: PublicCitationSummaryTotals$zodSchema,
107
+ url_prefix: z.string().nullable().optional().describe(
108
+ "URL prefix filter applied, if any.",
109
+ ),
110
+ });
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 10a1503650d5
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicCitationSummaryTotals = {
9
+ citation_count: number;
10
+ previous_citation_count: number;
11
+ change?: number | null | undefined;
12
+ run_count: number;
13
+ previous_run_count: number;
14
+ citations_per_run?: number | null | undefined;
15
+ previous_citations_per_run?: number | null | undefined;
16
+ per_run_change?: number | null | undefined;
17
+ url_count: number;
18
+ };
19
+
20
+ export const PublicCitationSummaryTotals$zodSchema: z.ZodType<
21
+ PublicCitationSummaryTotals
22
+ > = z.object({
23
+ change: z.number().nullable().optional().describe(
24
+ "Relative change in citations; 0.25 means 25% higher.",
25
+ ),
26
+ citation_count: z.int(),
27
+ citations_per_run: z.number().nullable().optional(),
28
+ per_run_change: z.number().nullable().optional().describe(
29
+ "Relative change in citations per run.",
30
+ ),
31
+ previous_citation_count: z.int(),
32
+ previous_citations_per_run: z.number().nullable().optional(),
33
+ previous_run_count: z.int(),
34
+ run_count: z.int().describe(
35
+ "Successful runs of active prompts in the period, after the platform filter.",
36
+ ),
37
+ url_count: z.int().describe("Distinct cited URLs in the period."),
38
+ });
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4193289784d8
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import {
8
+ PublicCoverageDay,
9
+ PublicCoverageDay$zodSchema,
10
+ } from "./publiccoverageday.js";
11
+ import {
12
+ PublicPeriodCoverage,
13
+ PublicPeriodCoverage$zodSchema,
14
+ } from "./publicperiodcoverage.js";
15
+
16
+ export type PublicCoverage = {
17
+ comparable: boolean;
18
+ notes?: Array<string> | undefined;
19
+ current: PublicPeriodCoverage;
20
+ previous: PublicPeriodCoverage;
21
+ days?: Array<PublicCoverageDay> | undefined;
22
+ };
23
+
24
+ export const PublicCoverage$zodSchema: z.ZodType<PublicCoverage> = z.object({
25
+ comparable: z.boolean().describe(
26
+ "Whether totals can be compared between the two periods. False when either period has a missing or short day or runs per day differ by more than 20%; compare per-run rates instead.",
27
+ ),
28
+ current: PublicPeriodCoverage$zodSchema,
29
+ days: z.array(PublicCoverageDay$zodSchema).optional(),
30
+ notes: z.array(z.string()).optional().describe(
31
+ "Why the periods are not comparable, in plain sentences.",
32
+ ),
33
+ previous: PublicPeriodCoverage$zodSchema,
34
+ });
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 934b3f835415
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+
9
+ export const Period = {
10
+ Current: "current",
11
+ Previous: "previous",
12
+ } as const;
13
+ export type Period = ClosedEnum<typeof Period>;
14
+
15
+ export const Period$zodSchema = z.enum([
16
+ "current",
17
+ "previous",
18
+ ]);
19
+
20
+ /**
21
+ * `missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.
22
+ */
23
+ export const PublicCoverageDayStatus = {
24
+ Ok: "ok",
25
+ Short: "short",
26
+ Missing: "missing",
27
+ InProgress: "in_progress",
28
+ NotExpected: "not_expected",
29
+ } as const;
30
+ /**
31
+ * `missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.
32
+ */
33
+ export type PublicCoverageDayStatus = ClosedEnum<
34
+ typeof PublicCoverageDayStatus
35
+ >;
36
+
37
+ export const PublicCoverageDayStatus$zodSchema = z.enum([
38
+ "ok",
39
+ "short",
40
+ "missing",
41
+ "in_progress",
42
+ "not_expected",
43
+ ]).describe(
44
+ "`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.",
45
+ );
46
+
47
+ export type PublicCoverageDay = {
48
+ date: string;
49
+ period: Period;
50
+ runs: number;
51
+ expected_runs: number;
52
+ status: PublicCoverageDayStatus;
53
+ };
54
+
55
+ export const PublicCoverageDay$zodSchema: z.ZodType<PublicCoverageDay> = z
56
+ .object({
57
+ date: z.string(),
58
+ expected_runs: z.int().describe(
59
+ "Median daily runs over the 7 days before; 0 when no daily runs are expected.",
60
+ ),
61
+ period: Period$zodSchema,
62
+ runs: z.int().describe(
63
+ "Successful prompt runs of active prompts that day.",
64
+ ),
65
+ status: PublicCoverageDayStatus$zodSchema.describe(
66
+ "`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.",
67
+ ),
68
+ });
@@ -5,6 +5,16 @@
5
5
 
6
6
  import * as z from "zod";
7
7
  import { PublicCompany, PublicCompany$zodSchema } from "./publiccompany.js";
8
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
9
+ import {
10
+ PublicPreviousVisibility,
11
+ PublicPreviousVisibility$zodSchema,
12
+ } from "./publicpreviousvisibility.js";
13
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
14
+ import {
15
+ PublicResolvedPeriod,
16
+ PublicResolvedPeriod$zodSchema,
17
+ } from "./publicresolvedperiod.js";
8
18
 
9
19
  export type PublicCurrentVisibilityResponse = {
10
20
  company: PublicCompany;
@@ -21,6 +31,10 @@ export type PublicCurrentVisibilityResponse = {
21
31
  end_date: string;
22
32
  active_prompts_only?: boolean | undefined;
23
33
  has_data: boolean;
34
+ period?: PublicResolvedPeriod | null | undefined;
35
+ previous?: PublicPreviousVisibility | null | undefined;
36
+ coverage?: PublicCoverage | null | undefined;
37
+ rates?: PublicRates | null | undefined;
24
38
  };
25
39
 
26
40
  export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
@@ -32,11 +46,23 @@ export const PublicCurrentVisibilityResponse$zodSchema: z.ZodType<
32
46
  ),
33
47
  average_position_rank: z.int().nullable().optional(),
34
48
  company: PublicCompany$zodSchema,
49
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
50
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
51
+ ),
35
52
  date: z.string().nullable().optional().describe(
36
53
  "Latest prompt-run date in the range.",
37
54
  ),
38
55
  end_date: z.string(),
39
56
  has_data: z.boolean(),
57
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
58
+ "The resolved period and the previous period it is compared with.",
59
+ ),
60
+ previous: PublicPreviousVisibility$zodSchema.nullable().optional().describe(
61
+ "The same metrics for the previous period.",
62
+ ),
63
+ rates: PublicRates$zodSchema.nullable().optional().describe(
64
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
65
+ ),
40
66
  recommendation_score: z.number().nullable().optional().describe(
41
67
  "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation.",
42
68
  ),
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 826ee3c7ea7a
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicPeriodCoverage = {
9
+ start_date: string;
10
+ end_date: string;
11
+ runs: number;
12
+ expected_runs: number;
13
+ complete_days: number;
14
+ runs_per_day?: number | null | undefined;
15
+ missing_days?: Array<string> | undefined;
16
+ short_days?: Array<string> | undefined;
17
+ };
18
+
19
+ export const PublicPeriodCoverage$zodSchema: z.ZodType<PublicPeriodCoverage> = z
20
+ .object({
21
+ complete_days: z.int().describe(
22
+ "Days in the period other than today in progress.",
23
+ ),
24
+ end_date: z.string(),
25
+ expected_runs: z.int(),
26
+ missing_days: z.array(z.string()).optional(),
27
+ runs: z.int(),
28
+ runs_per_day: z.number().nullable().optional().describe(
29
+ "Runs per complete day.",
30
+ ),
31
+ short_days: z.array(z.string()).optional(),
32
+ start_date: z.string(),
33
+ });
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e7a509001b7d
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicPeriodRates = {
9
+ runs: number;
10
+ owned_citations: number;
11
+ owned_citations_per_run?: number | null | undefined;
12
+ brand_mention_runs: number;
13
+ mention_rate?: number | null | undefined;
14
+ };
15
+
16
+ export const PublicPeriodRates$zodSchema: z.ZodType<PublicPeriodRates> = z
17
+ .object({
18
+ brand_mention_runs: z.int().describe(
19
+ "Runs that mention the primary company.",
20
+ ),
21
+ mention_rate: z.number().nullable().optional().describe(
22
+ "Share of runs that mention the primary company, from 0 to 1.",
23
+ ),
24
+ owned_citations: z.int().describe(
25
+ "Citations of the organization's own domains.",
26
+ ),
27
+ owned_citations_per_run: z.number().nullable().optional(),
28
+ runs: z.int(),
29
+ });
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b65281016f32
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicPreviousVisibility = {
9
+ recommendation_score?: number | null | undefined;
10
+ visibility_score?: number | null | undefined;
11
+ share_of_voice?: number | null | undefined;
12
+ average_position?: number | null | undefined;
13
+ has_data?: boolean | undefined;
14
+ };
15
+
16
+ export const PublicPreviousVisibility$zodSchema: z.ZodType<
17
+ PublicPreviousVisibility
18
+ > = z.object({
19
+ average_position: z.number().nullable().optional(),
20
+ has_data: z.boolean().default(false),
21
+ recommendation_score: z.number().nullable().optional().describe(
22
+ "Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation.",
23
+ ),
24
+ share_of_voice: z.number().nullable().optional().describe(
25
+ "The company's share of all mentions of tracked companies (your company plus configured competitors) in the same prompt runs, from 0 to 1; tracked companies add up to 1. Each company counts once per run. `null` for companies you do not track. Not the `share_of_voice` field removed in October 2026, which held the mention rate now returned as `visibility_score`.",
26
+ ),
27
+ visibility_score: z.number().nullable().optional().describe(
28
+ "Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.",
29
+ ),
30
+ });
@@ -5,6 +5,7 @@
5
5
 
6
6
  import * as z from "zod";
7
7
  import { PublicCompany, PublicCompany$zodSchema } from "./publiccompany.js";
8
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
8
9
  import {
9
10
  PublicPromptVisibilityDateRange,
10
11
  PublicPromptVisibilityDateRange$zodSchema,
@@ -13,6 +14,11 @@ import {
13
14
  PublicPromptVisibilitySummary,
14
15
  PublicPromptVisibilitySummary$zodSchema,
15
16
  } from "./publicpromptvisibilitysummary.js";
17
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
18
+ import {
19
+ PublicResolvedPeriod,
20
+ PublicResolvedPeriod$zodSchema,
21
+ } from "./publicresolvedperiod.js";
16
22
  import {
17
23
  PublicTopicVisibilityRow,
18
24
  PublicTopicVisibilityRow$zodSchema,
@@ -24,14 +30,26 @@ export type PublicPromptVisibilityReportResponse = {
24
30
  has_data: boolean;
25
31
  summary: PublicPromptVisibilitySummary;
26
32
  topics?: Array<PublicTopicVisibilityRow> | undefined;
33
+ period?: PublicResolvedPeriod | null | undefined;
34
+ coverage?: PublicCoverage | null | undefined;
35
+ rates?: PublicRates | null | undefined;
27
36
  };
28
37
 
29
38
  export const PublicPromptVisibilityReportResponse$zodSchema: z.ZodType<
30
39
  PublicPromptVisibilityReportResponse
31
40
  > = z.object({
32
41
  company: PublicCompany$zodSchema,
42
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
43
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
44
+ ),
33
45
  date_range: PublicPromptVisibilityDateRange$zodSchema,
34
46
  has_data: z.boolean(),
47
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
48
+ "The resolved period and the previous period it is compared with.",
49
+ ),
50
+ rates: PublicRates$zodSchema.nullable().optional().describe(
51
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
52
+ ),
35
53
  summary: PublicPromptVisibilitySummary$zodSchema,
36
54
  topics: z.array(PublicTopicVisibilityRow$zodSchema).optional(),
37
55
  });
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7e8926781b3d
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicRateChanges = {
9
+ owned_citations?: number | null | undefined;
10
+ owned_citations_per_run?: number | null | undefined;
11
+ mention_rate?: number | null | undefined;
12
+ };
13
+
14
+ export const PublicRateChanges$zodSchema: z.ZodType<PublicRateChanges> = z
15
+ .object({
16
+ mention_rate: z.number().nullable().optional().describe(
17
+ "Relative change from the previous period.",
18
+ ),
19
+ owned_citations: z.number().nullable().optional().describe(
20
+ "Relative change from the previous period; 0.25 means 25% higher.",
21
+ ),
22
+ owned_citations_per_run: z.number().nullable().optional().describe(
23
+ "Relative change from the previous period.",
24
+ ),
25
+ });
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 9b8379be34f2
4
+ */
5
+
6
+ import * as z from "zod";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import {
9
+ PublicPeriodRates,
10
+ PublicPeriodRates$zodSchema,
11
+ } from "./publicperiodrates.js";
12
+ import {
13
+ PublicRateChanges,
14
+ PublicRateChanges$zodSchema,
15
+ } from "./publicratechanges.js";
16
+
17
+ /**
18
+ * The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.
19
+ */
20
+ export const PublicRatesHeadlineMetric = {
21
+ OwnedCitations: "owned_citations",
22
+ OwnedCitationsPerRun: "owned_citations_per_run",
23
+ } as const;
24
+ /**
25
+ * The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.
26
+ */
27
+ export type PublicRatesHeadlineMetric = ClosedEnum<
28
+ typeof PublicRatesHeadlineMetric
29
+ >;
30
+
31
+ export const PublicRatesHeadlineMetric$zodSchema = z.enum([
32
+ "owned_citations",
33
+ "owned_citations_per_run",
34
+ ]).describe(
35
+ "The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.",
36
+ );
37
+
38
+ export type PublicRates = {
39
+ headline_metric: PublicRatesHeadlineMetric;
40
+ current: PublicPeriodRates;
41
+ previous: PublicPeriodRates;
42
+ change: PublicRateChanges;
43
+ };
44
+
45
+ export const PublicRates$zodSchema: z.ZodType<PublicRates> = z.object({
46
+ change: PublicRateChanges$zodSchema,
47
+ current: PublicPeriodRates$zodSchema,
48
+ headline_metric: PublicRatesHeadlineMetric$zodSchema.describe(
49
+ "The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.",
50
+ ),
51
+ previous: PublicPeriodRates$zodSchema,
52
+ });
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: eeb8e6b4cc74
4
+ */
5
+
6
+ import * as z from "zod";
7
+
8
+ export type PublicResolvedPeriod = {
9
+ name?: string | null | undefined;
10
+ start_date: string;
11
+ end_date: string;
12
+ days: number;
13
+ previous_start_date: string;
14
+ previous_end_date: string;
15
+ previous_days: number;
16
+ partial: boolean;
17
+ timezone?: "UTC" | undefined;
18
+ };
19
+
20
+ export const PublicResolvedPeriod$zodSchema: z.ZodType<PublicResolvedPeriod> = z
21
+ .object({
22
+ days: z.int().describe("Days in the period, counting both ends."),
23
+ end_date: z.string().describe("Last day of the period (UTC), inclusive."),
24
+ name: z.string().nullable().optional().describe(
25
+ "The `period` requested, or null when the range came from `start_date` and `end_date`.",
26
+ ),
27
+ partial: z.boolean().describe(
28
+ "Whether the period includes today, so its last day is still in progress.",
29
+ ),
30
+ previous_days: z.int().describe("Days in the previous period."),
31
+ previous_end_date: z.string().describe(
32
+ "Last day of the previous period. While a calendar week, month, or quarter is in progress, the previous one is cut to the same number of days.",
33
+ ),
34
+ previous_start_date: z.string().describe(
35
+ "First day of the previous period it is compared with.",
36
+ ),
37
+ start_date: z.string().describe(
38
+ "First day of the period (UTC), inclusive.",
39
+ ),
40
+ timezone: z.literal("UTC").default("UTC"),
41
+ });