@lightsage/mcp 0.4.17 → 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 (281) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +787 -201
  3. package/bin/mcp-server.js.map +72 -55
  4. package/esm/funcs/agentAnalyticsCountriesList.js +1 -0
  5. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -1
  6. package/esm/funcs/agentAnalyticsErrorPagesList.js +1 -0
  7. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -1
  8. package/esm/funcs/agentAnalyticsPagesList.js +1 -0
  9. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -1
  10. package/esm/funcs/agentAnalyticsSourcesList.js +1 -0
  11. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -1
  12. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +1 -1
  13. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +2 -1
  14. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -1
  15. package/esm/funcs/agentsList.d.ts +1 -1
  16. package/esm/funcs/agentsList.js +1 -1
  17. package/esm/funcs/evalsCreate.d.ts +2 -0
  18. package/esm/funcs/evalsCreate.d.ts.map +1 -1
  19. package/esm/funcs/evalsCreate.js +2 -0
  20. package/esm/funcs/evalsCreate.js.map +1 -1
  21. package/esm/funcs/evalsRun.d.ts +2 -0
  22. package/esm/funcs/evalsRun.d.ts.map +1 -1
  23. package/esm/funcs/evalsRun.js +2 -0
  24. package/esm/funcs/evalsRun.js.map +1 -1
  25. package/esm/funcs/promptsRun.d.ts +7 -3
  26. package/esm/funcs/promptsRun.d.ts.map +1 -1
  27. package/esm/funcs/promptsRun.js +7 -3
  28. package/esm/funcs/promptsRun.js.map +1 -1
  29. package/esm/funcs/promptsRunCancel.d.ts +16 -0
  30. package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
  31. package/esm/funcs/promptsRunCancel.js +88 -0
  32. package/esm/funcs/promptsRunCancel.js.map +1 -0
  33. package/esm/funcs/visibilityCitationsList.d.ts +1 -1
  34. package/esm/funcs/visibilityCitationsList.js +2 -1
  35. package/esm/funcs/visibilityCitationsList.js.map +1 -1
  36. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
  37. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  38. package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
  39. package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
  40. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  41. package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
  42. package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
  43. package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
  44. package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
  45. package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
  46. package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
  47. package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
  48. package/esm/landing-page.js +1 -1
  49. package/esm/lib/config.d.ts +2 -2
  50. package/esm/lib/config.js +2 -2
  51. package/esm/mcp-server/mcp-server.js +1 -1
  52. package/esm/mcp-server/server.d.ts.map +1 -1
  53. package/esm/mcp-server/server.js +4 -0
  54. package/esm/mcp-server/server.js.map +1 -1
  55. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +1 -1
  56. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -1
  57. package/esm/mcp-server/tools/agentsList.js +1 -1
  58. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  59. package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
  60. package/esm/mcp-server/tools/evalsCreate.js +3 -1
  61. package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
  62. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  63. package/esm/mcp-server/tools/evalsRun.js +2 -0
  64. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  65. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  66. package/esm/mcp-server/tools/promptsRun.js +7 -3
  67. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  68. package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
  69. package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
  70. package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
  71. package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
  72. package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
  73. package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
  74. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
  75. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  76. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
  77. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
  78. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  79. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  80. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
  81. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
  82. package/esm/models/createv2promptrequest.js +1 -1
  83. package/esm/models/createv2promptrequest.js.map +1 -1
  84. package/esm/models/createv2promptrunrequest.d.ts +1 -0
  85. package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
  86. package/esm/models/createv2promptrunrequest.js +2 -1
  87. package/esm/models/createv2promptrunrequest.js.map +1 -1
  88. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +2 -0
  89. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -1
  90. package/esm/models/publicagentanalyticscountrylistresponse.js +2 -0
  91. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -1
  92. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +2 -0
  93. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -1
  94. package/esm/models/publicagentanalyticserrorpagelistresponse.js +2 -0
  95. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -1
  96. package/esm/models/publicagentanalyticspagelistresponse.d.ts +2 -0
  97. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -1
  98. package/esm/models/publicagentanalyticspagelistresponse.js +2 -0
  99. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -1
  100. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +2 -0
  101. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -1
  102. package/esm/models/publicagentanalyticssourcelistresponse.js +2 -0
  103. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -1
  104. package/esm/models/publicagentanalyticssummary.d.ts +2 -0
  105. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -1
  106. package/esm/models/publicagentanalyticssummary.js +2 -0
  107. package/esm/models/publicagentanalyticssummary.js.map +1 -1
  108. package/esm/models/publiccitationsummarygroup.d.ts +17 -0
  109. package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
  110. package/esm/models/publiccitationsummarygroup.js +20 -0
  111. package/esm/models/publiccitationsummarygroup.js.map +1 -0
  112. package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
  113. package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
  114. package/esm/models/publiccitationsummaryresponse.js +58 -0
  115. package/esm/models/publiccitationsummaryresponse.js.map +1 -0
  116. package/esm/models/publiccitationsummarytotals.d.ts +14 -0
  117. package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
  118. package/esm/models/publiccitationsummarytotals.js +17 -0
  119. package/esm/models/publiccitationsummarytotals.js.map +1 -0
  120. package/esm/models/publiccoverage.d.ts +12 -0
  121. package/esm/models/publiccoverage.d.ts.map +1 -0
  122. package/esm/models/publiccoverage.js +15 -0
  123. package/esm/models/publiccoverage.js.map +1 -0
  124. package/esm/models/publiccoverageday.d.ts +41 -0
  125. package/esm/models/publiccoverageday.d.ts.map +1 -0
  126. package/esm/models/publiccoverageday.js +39 -0
  127. package/esm/models/publiccoverageday.js.map +1 -0
  128. package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
  129. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  130. package/esm/models/publiccurrentvisibilityresponse.js +8 -0
  131. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  132. package/esm/models/publicperiodcoverage.d.ts +13 -0
  133. package/esm/models/publicperiodcoverage.d.ts.map +1 -0
  134. package/esm/models/publicperiodcoverage.js +17 -0
  135. package/esm/models/publicperiodcoverage.js.map +1 -0
  136. package/esm/models/publicperiodrates.d.ts +10 -0
  137. package/esm/models/publicperiodrates.d.ts.map +1 -0
  138. package/esm/models/publicperiodrates.js +14 -0
  139. package/esm/models/publicperiodrates.js.map +1 -0
  140. package/esm/models/publicpreviousvisibility.d.ts +10 -0
  141. package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
  142. package/esm/models/publicpreviousvisibility.js +13 -0
  143. package/esm/models/publicpreviousvisibility.js.map +1 -0
  144. package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
  145. package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
  146. package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
  147. package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
  148. package/esm/models/publicratechanges.d.ts +8 -0
  149. package/esm/models/publicratechanges.d.ts.map +1 -0
  150. package/esm/models/publicratechanges.js +12 -0
  151. package/esm/models/publicratechanges.js.map +1 -0
  152. package/esm/models/publicrates.d.ts +27 -0
  153. package/esm/models/publicrates.d.ts.map +1 -0
  154. package/esm/models/publicrates.js +25 -0
  155. package/esm/models/publicrates.js.map +1 -0
  156. package/esm/models/publicresolvedperiod.d.ts +14 -0
  157. package/esm/models/publicresolvedperiod.d.ts.map +1 -0
  158. package/esm/models/publicresolvedperiod.js +18 -0
  159. package/esm/models/publicresolvedperiod.js.map +1 -0
  160. package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
  161. package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
  162. package/esm/models/publictopcitedurlsresponse.js +9 -3
  163. package/esm/models/publictopcitedurlsresponse.js.map +1 -1
  164. package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
  165. package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
  166. package/esm/models/publicvisibilityoverviewresponse.js +6 -0
  167. package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
  168. package/esm/models/updatev2promptrequest.js +1 -1
  169. package/esm/models/updatev2promptrequest.js.map +1 -1
  170. package/esm/models/v2agentanalyticscountrieslistop.d.ts +1 -0
  171. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -1
  172. package/esm/models/v2agentanalyticscountrieslistop.js +1 -0
  173. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -1
  174. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +1 -0
  175. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -1
  176. package/esm/models/v2agentanalyticserrorpageslistop.js +1 -0
  177. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -1
  178. package/esm/models/v2agentanalyticspageslistop.d.ts +1 -0
  179. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -1
  180. package/esm/models/v2agentanalyticspageslistop.js +1 -0
  181. package/esm/models/v2agentanalyticspageslistop.js.map +1 -1
  182. package/esm/models/v2agentanalyticssourceslistop.d.ts +1 -0
  183. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -1
  184. package/esm/models/v2agentanalyticssourceslistop.js +1 -0
  185. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -1
  186. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +1 -0
  187. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -1
  188. package/esm/models/v2agentanalyticssummaryretrieveop.js +1 -0
  189. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -1
  190. package/esm/models/v2promptrunscancelop.d.ts +38 -0
  191. package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
  192. package/esm/models/v2promptrunscancelop.js +31 -0
  193. package/esm/models/v2promptrunscancelop.js.map +1 -0
  194. package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
  195. package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
  196. package/esm/models/v2visibilitycitationslistop.js +1 -0
  197. package/esm/models/v2visibilitycitationslistop.js.map +1 -1
  198. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
  199. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
  200. package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
  201. package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
  202. package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
  203. package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
  204. package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
  205. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  206. package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
  207. package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
  208. package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
  209. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  210. package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
  211. package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
  212. package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
  213. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  214. package/esm/tool-names.d.ts.map +1 -1
  215. package/esm/tool-names.js +16 -8
  216. package/esm/tool-names.js.map +1 -1
  217. package/package.json +1 -1
  218. package/src/funcs/agentAnalyticsCountriesList.ts +1 -0
  219. package/src/funcs/agentAnalyticsErrorPagesList.ts +1 -0
  220. package/src/funcs/agentAnalyticsPagesList.ts +1 -0
  221. package/src/funcs/agentAnalyticsSourcesList.ts +1 -0
  222. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +2 -1
  223. package/src/funcs/agentsList.ts +1 -1
  224. package/src/funcs/evalsCreate.ts +2 -0
  225. package/src/funcs/evalsRun.ts +2 -0
  226. package/src/funcs/promptsRun.ts +7 -3
  227. package/src/funcs/promptsRunCancel.ts +153 -0
  228. package/src/funcs/visibilityCitationsList.ts +2 -1
  229. package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
  230. package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
  231. package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
  232. package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
  233. package/src/landing-page.ts +1 -1
  234. package/src/lib/config.ts +2 -2
  235. package/src/mcp-server/mcp-server.ts +1 -1
  236. package/src/mcp-server/server.ts +4 -0
  237. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +1 -1
  238. package/src/mcp-server/tools/agentsList.ts +1 -1
  239. package/src/mcp-server/tools/evalsCreate.ts +3 -1
  240. package/src/mcp-server/tools/evalsRun.ts +2 -0
  241. package/src/mcp-server/tools/promptsRun.ts +7 -3
  242. package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
  243. package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
  244. package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
  245. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  246. package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
  247. package/src/models/createv2promptrequest.ts +1 -1
  248. package/src/models/createv2promptrunrequest.ts +5 -1
  249. package/src/models/publicagentanalyticscountrylistresponse.ts +8 -0
  250. package/src/models/publicagentanalyticserrorpagelistresponse.ts +8 -0
  251. package/src/models/publicagentanalyticspagelistresponse.ts +8 -0
  252. package/src/models/publicagentanalyticssourcelistresponse.ts +8 -0
  253. package/src/models/publicagentanalyticssummary.ts +8 -0
  254. package/src/models/publiccitationsummarygroup.ts +54 -0
  255. package/src/models/publiccitationsummaryresponse.ts +110 -0
  256. package/src/models/publiccitationsummarytotals.ts +38 -0
  257. package/src/models/publiccoverage.ts +34 -0
  258. package/src/models/publiccoverageday.ts +68 -0
  259. package/src/models/publiccurrentvisibilityresponse.ts +26 -0
  260. package/src/models/publicperiodcoverage.ts +33 -0
  261. package/src/models/publicperiodrates.ts +29 -0
  262. package/src/models/publicpreviousvisibility.ts +30 -0
  263. package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
  264. package/src/models/publicratechanges.ts +25 -0
  265. package/src/models/publicrates.ts +52 -0
  266. package/src/models/publicresolvedperiod.ts +41 -0
  267. package/src/models/publictopcitedurlsresponse.ts +25 -5
  268. package/src/models/publicvisibilityoverviewresponse.ts +18 -0
  269. package/src/models/updatev2promptrequest.ts +1 -1
  270. package/src/models/v2agentanalyticscountrieslistop.ts +4 -0
  271. package/src/models/v2agentanalyticserrorpageslistop.ts +4 -0
  272. package/src/models/v2agentanalyticspageslistop.ts +4 -0
  273. package/src/models/v2agentanalyticssourceslistop.ts +4 -0
  274. package/src/models/v2agentanalyticssummaryretrieveop.ts +4 -0
  275. package/src/models/v2promptrunscancelop.ts +90 -0
  276. package/src/models/v2visibilitycitationslistop.ts +4 -0
  277. package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
  278. package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
  279. package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
  280. package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
  281. package/src/tool-names.ts +16 -8
@@ -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
+ });
@@ -10,11 +10,17 @@ import {
10
10
  PublicCitedUrlDateRange,
11
11
  PublicCitedUrlDateRange$zodSchema,
12
12
  } from "./publiccitedurldaterange.js";
13
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
14
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
15
+ import {
16
+ PublicResolvedPeriod,
17
+ PublicResolvedPeriod$zodSchema,
18
+ } from "./publicresolvedperiod.js";
13
19
 
14
20
  /**
15
21
  * Whether the results include all, owned, or external URLs.
16
22
  */
17
- export const SourceType = {
23
+ export const PublicTopCitedUrlsResponseSourceType = {
18
24
  All: "all",
19
25
  Owned: "owned",
20
26
  External: "external",
@@ -22,9 +28,11 @@ export const SourceType = {
22
28
  /**
23
29
  * Whether the results include all, owned, or external URLs.
24
30
  */
25
- export type SourceType = ClosedEnum<typeof SourceType>;
31
+ export type PublicTopCitedUrlsResponseSourceType = ClosedEnum<
32
+ typeof PublicTopCitedUrlsResponseSourceType
33
+ >;
26
34
 
27
- export const SourceType$zodSchema = z.enum([
35
+ export const PublicTopCitedUrlsResponseSourceType$zodSchema = z.enum([
28
36
  "all",
29
37
  "owned",
30
38
  "external",
@@ -33,16 +41,22 @@ export const SourceType$zodSchema = z.enum([
33
41
  export type PublicTopCitedUrlsResponse = {
34
42
  date_range: PublicCitedUrlDateRange;
35
43
  platform?: string | null | undefined;
36
- source_type: SourceType;
44
+ source_type: PublicTopCitedUrlsResponseSourceType;
37
45
  has_data: boolean;
38
46
  count: number;
39
47
  data?: Array<PublicCitedUrl> | undefined;
48
+ period?: PublicResolvedPeriod | null | undefined;
49
+ coverage?: PublicCoverage | null | undefined;
50
+ rates?: PublicRates | null | undefined;
40
51
  };
41
52
 
42
53
  export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
43
54
  PublicTopCitedUrlsResponse
44
55
  > = z.object({
45
56
  count: z.int().describe("Number of URL rows returned."),
57
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
58
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
59
+ ),
46
60
  data: z.array(PublicCitedUrl$zodSchema).optional().describe(
47
61
  "Cited URLs ranked by citation count in descending order.",
48
62
  ),
@@ -50,10 +64,16 @@ export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
50
64
  has_data: z.boolean().describe(
51
65
  "Whether any citations matched the selected filters.",
52
66
  ),
67
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
68
+ "The resolved period and the previous period it is compared with.",
69
+ ),
53
70
  platform: z.string().nullable().optional().describe(
54
71
  "Platform selector applied to the results, or null for all platforms.",
55
72
  ),
56
- source_type: SourceType$zodSchema.describe(
73
+ rates: PublicRates$zodSchema.nullable().optional().describe(
74
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
75
+ ),
76
+ source_type: PublicTopCitedUrlsResponseSourceType$zodSchema.describe(
57
77
  "Whether the results include all, owned, or external URLs.",
58
78
  ),
59
79
  });
@@ -9,6 +9,12 @@ import {
9
9
  PublicCompetitorRow,
10
10
  PublicCompetitorRow$zodSchema,
11
11
  } from "./publiccompetitorrow.js";
12
+ import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
13
+ import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
14
+ import {
15
+ PublicResolvedPeriod,
16
+ PublicResolvedPeriod$zodSchema,
17
+ } from "./publicresolvedperiod.js";
12
18
  import {
13
19
  PublicVisibilityByPlatform,
14
20
  PublicVisibilityByPlatform$zodSchema,
@@ -34,6 +40,9 @@ export type PublicVisibilityOverviewResponse = {
34
40
  timeseries: PublicVisibilityTimeseries;
35
41
  by_platform: PublicVisibilityByPlatform;
36
42
  competitors?: Array<PublicCompetitorRow> | undefined;
43
+ period?: PublicResolvedPeriod | null | undefined;
44
+ coverage?: PublicCoverage | null | undefined;
45
+ rates?: PublicRates | null | undefined;
37
46
  };
38
47
 
39
48
  export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
@@ -44,8 +53,17 @@ export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
44
53
  competitors: z.array(PublicCompetitorRow$zodSchema).optional().describe(
45
54
  "Includes the primary company.",
46
55
  ),
56
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe(
57
+ "Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
58
+ ),
47
59
  date_range: PublicVisibilityDateRange$zodSchema,
48
60
  has_data: z.boolean(),
61
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
62
+ "The resolved period and the previous period it is compared with.",
63
+ ),
64
+ rates: PublicRates$zodSchema.nullable().optional().describe(
65
+ "Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
66
+ ),
49
67
  snapshot: PublicVisibilitySnapshot$zodSchema,
50
68
  timeseries: PublicVisibilityTimeseries$zodSchema,
51
69
  });
@@ -38,7 +38,7 @@ export const UpdateV2PromptRequest$zodSchema: z.ZodType<UpdateV2PromptRequest> =
38
38
  "Marks the prompt as branded or unbranded. Omit to keep the current value; changing `text` does not change it.",
39
39
  ),
40
40
  platform_ids: z.array(z.string()).nullable().optional().describe(
41
- "Replacement list of answer-platform IDs.",
41
+ "Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`.",
42
42
  ),
43
43
  run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional()
44
44
  .describe(
@@ -17,6 +17,7 @@ export type V2AgentAnalyticsCountriesListRequest = {
17
17
  site_id: string;
18
18
  start_date?: string | undefined;
19
19
  end_date?: string | undefined;
20
+ period?: string | undefined;
20
21
  limit?: number | undefined;
21
22
  };
22
23
 
@@ -27,6 +28,9 @@ export const V2AgentAnalyticsCountriesListRequest$zodSchema: z.ZodType<
27
28
  "Inclusive range end in UTC; defaults to today.",
28
29
  ).optional(),
29
30
  limit: z.int().default(20),
31
+ period: z.string().describe(
32
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
33
+ ).optional(),
30
34
  site_id: z.string(),
31
35
  start_date: z.string().date().describe(
32
36
  "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
@@ -45,6 +45,7 @@ export type V2AgentAnalyticsErrorPagesListRequest = {
45
45
  site_id: string;
46
46
  start_date?: string | undefined;
47
47
  end_date?: string | undefined;
48
+ period?: string | undefined;
48
49
  limit?: number | undefined;
49
50
  status?: number | undefined;
50
51
  type?: V2AgentAnalyticsErrorPagesListType | undefined;
@@ -57,6 +58,9 @@ export const V2AgentAnalyticsErrorPagesListRequest$zodSchema: z.ZodType<
57
58
  "Inclusive range end in UTC; defaults to today.",
58
59
  ).optional(),
59
60
  limit: z.int().default(50),
61
+ period: z.string().describe(
62
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
63
+ ).optional(),
60
64
  site_id: z.string(),
61
65
  start_date: z.string().date().describe(
62
66
  "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
@@ -76,6 +76,7 @@ export type V2AgentAnalyticsPagesListRequest = {
76
76
  site_id: string;
77
77
  start_date?: string | undefined;
78
78
  end_date?: string | undefined;
79
+ period?: string | undefined;
79
80
  limit?: number | undefined;
80
81
  search?: string | undefined;
81
82
  sort?: Sort | undefined;
@@ -93,6 +94,9 @@ export const V2AgentAnalyticsPagesListRequest$zodSchema: z.ZodType<
93
94
  "Inclusive range end in UTC; defaults to today.",
94
95
  ).optional(),
95
96
  limit: z.int().default(20),
97
+ period: z.string().describe(
98
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
99
+ ).optional(),
96
100
  search: z.string().describe("Only pages whose path contains this text.")
97
101
  .optional(),
98
102
  site_id: z.string(),
@@ -17,6 +17,7 @@ export type V2AgentAnalyticsSourcesListRequest = {
17
17
  site_id: string;
18
18
  start_date?: string | undefined;
19
19
  end_date?: string | undefined;
20
+ period?: string | undefined;
20
21
  };
21
22
 
22
23
  export const V2AgentAnalyticsSourcesListRequest$zodSchema: z.ZodType<
@@ -25,6 +26,9 @@ export const V2AgentAnalyticsSourcesListRequest$zodSchema: z.ZodType<
25
26
  end_date: z.string().date().describe(
26
27
  "Inclusive range end in UTC; defaults to today.",
27
28
  ).optional(),
29
+ period: z.string().describe(
30
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
31
+ ).optional(),
28
32
  site_id: z.string(),
29
33
  start_date: z.string().date().describe(
30
34
  "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
@@ -17,6 +17,7 @@ export type V2AgentAnalyticsSummaryRetrieveRequest = {
17
17
  site_id: string;
18
18
  start_date?: string | undefined;
19
19
  end_date?: string | undefined;
20
+ period?: string | undefined;
20
21
  };
21
22
 
22
23
  export const V2AgentAnalyticsSummaryRetrieveRequest$zodSchema: z.ZodType<
@@ -25,6 +26,9 @@ export const V2AgentAnalyticsSummaryRetrieveRequest$zodSchema: z.ZodType<
25
26
  end_date: z.string().date().describe(
26
27
  "Inclusive range end in UTC; defaults to today.",
27
28
  ).optional(),
29
+ period: z.string().describe(
30
+ "Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
31
+ ).optional(),
28
32
  site_id: z.string(),
29
33
  start_date: z.string().date().describe(
30
34
  "Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",