@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.
- package/README.md +2 -2
- package/bin/mcp-server.js +787 -201
- package/bin/mcp-server.js.map +72 -55
- package/esm/funcs/agentAnalyticsCountriesList.js +1 -0
- package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsErrorPagesList.js +1 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsPagesList.js +1 -0
- package/esm/funcs/agentAnalyticsPagesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsSourcesList.js +1 -0
- package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +1 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js +2 -1
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -1
- package/esm/funcs/agentsList.d.ts +1 -1
- package/esm/funcs/agentsList.js +1 -1
- package/esm/funcs/evalsCreate.d.ts +2 -0
- package/esm/funcs/evalsCreate.d.ts.map +1 -1
- package/esm/funcs/evalsCreate.js +2 -0
- package/esm/funcs/evalsCreate.js.map +1 -1
- package/esm/funcs/evalsRun.d.ts +2 -0
- package/esm/funcs/evalsRun.d.ts.map +1 -1
- package/esm/funcs/evalsRun.js +2 -0
- package/esm/funcs/evalsRun.js.map +1 -1
- package/esm/funcs/promptsRun.d.ts +7 -3
- package/esm/funcs/promptsRun.d.ts.map +1 -1
- package/esm/funcs/promptsRun.js +7 -3
- package/esm/funcs/promptsRun.js.map +1 -1
- package/esm/funcs/promptsRunCancel.d.ts +16 -0
- package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
- package/esm/funcs/promptsRunCancel.js +88 -0
- package/esm/funcs/promptsRunCancel.js.map +1 -0
- package/esm/funcs/visibilityCitationsList.d.ts +1 -1
- package/esm/funcs/visibilityCitationsList.js +2 -1
- package/esm/funcs/visibilityCitationsList.js.map +1 -1
- package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
- package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
- package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
- package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
- package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
- package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
- package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
- package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
- package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
- package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +4 -0
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +1 -1
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -1
- package/esm/mcp-server/tools/agentsList.js +1 -1
- package/esm/mcp-server/tools/agentsList.js.map +1 -1
- package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsCreate.js +3 -1
- package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +2 -0
- package/esm/mcp-server/tools/evalsRun.js.map +1 -1
- package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/promptsRun.js +7 -3
- package/esm/mcp-server/tools/promptsRun.js.map +1 -1
- package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
- package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
- package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
- package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
- package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
- package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
- package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
- package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
- package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
- package/esm/models/createv2promptrequest.js +1 -1
- package/esm/models/createv2promptrequest.js.map +1 -1
- package/esm/models/createv2promptrunrequest.d.ts +1 -0
- package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
- package/esm/models/createv2promptrunrequest.js +2 -1
- package/esm/models/createv2promptrunrequest.js.map +1 -1
- package/esm/models/publicagentanalyticscountrylistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticscountrylistresponse.js +2 -0
- package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticserrorpagelistresponse.js +2 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticspagelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticspagelistresponse.js +2 -0
- package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts +2 -0
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -1
- package/esm/models/publicagentanalyticssourcelistresponse.js +2 -0
- package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -1
- package/esm/models/publicagentanalyticssummary.d.ts +2 -0
- package/esm/models/publicagentanalyticssummary.d.ts.map +1 -1
- package/esm/models/publicagentanalyticssummary.js +2 -0
- package/esm/models/publicagentanalyticssummary.js.map +1 -1
- package/esm/models/publiccitationsummarygroup.d.ts +17 -0
- package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
- package/esm/models/publiccitationsummarygroup.js +20 -0
- package/esm/models/publiccitationsummarygroup.js.map +1 -0
- package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
- package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
- package/esm/models/publiccitationsummaryresponse.js +58 -0
- package/esm/models/publiccitationsummaryresponse.js.map +1 -0
- package/esm/models/publiccitationsummarytotals.d.ts +14 -0
- package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
- package/esm/models/publiccitationsummarytotals.js +17 -0
- package/esm/models/publiccitationsummarytotals.js.map +1 -0
- package/esm/models/publiccoverage.d.ts +12 -0
- package/esm/models/publiccoverage.d.ts.map +1 -0
- package/esm/models/publiccoverage.js +15 -0
- package/esm/models/publiccoverage.js.map +1 -0
- package/esm/models/publiccoverageday.d.ts +41 -0
- package/esm/models/publiccoverageday.d.ts.map +1 -0
- package/esm/models/publiccoverageday.js +39 -0
- package/esm/models/publiccoverageday.js.map +1 -0
- package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
- package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
- package/esm/models/publiccurrentvisibilityresponse.js +8 -0
- package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
- package/esm/models/publicperiodcoverage.d.ts +13 -0
- package/esm/models/publicperiodcoverage.d.ts.map +1 -0
- package/esm/models/publicperiodcoverage.js +17 -0
- package/esm/models/publicperiodcoverage.js.map +1 -0
- package/esm/models/publicperiodrates.d.ts +10 -0
- package/esm/models/publicperiodrates.d.ts.map +1 -0
- package/esm/models/publicperiodrates.js +14 -0
- package/esm/models/publicperiodrates.js.map +1 -0
- package/esm/models/publicpreviousvisibility.d.ts +10 -0
- package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
- package/esm/models/publicpreviousvisibility.js +13 -0
- package/esm/models/publicpreviousvisibility.js.map +1 -0
- package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
- package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
- package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
- package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
- package/esm/models/publicratechanges.d.ts +8 -0
- package/esm/models/publicratechanges.d.ts.map +1 -0
- package/esm/models/publicratechanges.js +12 -0
- package/esm/models/publicratechanges.js.map +1 -0
- package/esm/models/publicrates.d.ts +27 -0
- package/esm/models/publicrates.d.ts.map +1 -0
- package/esm/models/publicrates.js +25 -0
- package/esm/models/publicrates.js.map +1 -0
- package/esm/models/publicresolvedperiod.d.ts +14 -0
- package/esm/models/publicresolvedperiod.d.ts.map +1 -0
- package/esm/models/publicresolvedperiod.js +18 -0
- package/esm/models/publicresolvedperiod.js.map +1 -0
- package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
- package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
- package/esm/models/publictopcitedurlsresponse.js +9 -3
- package/esm/models/publictopcitedurlsresponse.js.map +1 -1
- package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
- package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
- package/esm/models/publicvisibilityoverviewresponse.js +6 -0
- package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
- package/esm/models/updatev2promptrequest.js +1 -1
- package/esm/models/updatev2promptrequest.js.map +1 -1
- package/esm/models/v2agentanalyticscountrieslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticscountrieslistop.js +1 -0
- package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -1
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticserrorpageslistop.js +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -1
- package/esm/models/v2agentanalyticspageslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticspageslistop.js +1 -0
- package/esm/models/v2agentanalyticspageslistop.js.map +1 -1
- package/esm/models/v2agentanalyticssourceslistop.d.ts +1 -0
- package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticssourceslistop.js +1 -0
- package/esm/models/v2agentanalyticssourceslistop.js.map +1 -1
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -1
- package/esm/models/v2agentanalyticssummaryretrieveop.js +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -1
- package/esm/models/v2promptrunscancelop.d.ts +38 -0
- package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
- package/esm/models/v2promptrunscancelop.js +31 -0
- package/esm/models/v2promptrunscancelop.js.map +1 -0
- package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
- package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
- package/esm/models/v2visibilitycitationslistop.js +1 -0
- package/esm/models/v2visibilitycitationslistop.js.map +1 -1
- package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
- package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
- package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
- package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
- package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
- package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
- package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
- package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +16 -8
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentAnalyticsCountriesList.ts +1 -0
- package/src/funcs/agentAnalyticsErrorPagesList.ts +1 -0
- package/src/funcs/agentAnalyticsPagesList.ts +1 -0
- package/src/funcs/agentAnalyticsSourcesList.ts +1 -0
- package/src/funcs/agentAnalyticsSummaryRetrieve.ts +2 -1
- package/src/funcs/agentsList.ts +1 -1
- package/src/funcs/evalsCreate.ts +2 -0
- package/src/funcs/evalsRun.ts +2 -0
- package/src/funcs/promptsRun.ts +7 -3
- package/src/funcs/promptsRunCancel.ts +153 -0
- package/src/funcs/visibilityCitationsList.ts +2 -1
- package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
- package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
- package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
- package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +4 -0
- package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +1 -1
- package/src/mcp-server/tools/agentsList.ts +1 -1
- package/src/mcp-server/tools/evalsCreate.ts +3 -1
- package/src/mcp-server/tools/evalsRun.ts +2 -0
- package/src/mcp-server/tools/promptsRun.ts +7 -3
- package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
- package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
- package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
- package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
- package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
- package/src/models/createv2promptrequest.ts +1 -1
- package/src/models/createv2promptrunrequest.ts +5 -1
- package/src/models/publicagentanalyticscountrylistresponse.ts +8 -0
- package/src/models/publicagentanalyticserrorpagelistresponse.ts +8 -0
- package/src/models/publicagentanalyticspagelistresponse.ts +8 -0
- package/src/models/publicagentanalyticssourcelistresponse.ts +8 -0
- package/src/models/publicagentanalyticssummary.ts +8 -0
- package/src/models/publiccitationsummarygroup.ts +54 -0
- package/src/models/publiccitationsummaryresponse.ts +110 -0
- package/src/models/publiccitationsummarytotals.ts +38 -0
- package/src/models/publiccoverage.ts +34 -0
- package/src/models/publiccoverageday.ts +68 -0
- package/src/models/publiccurrentvisibilityresponse.ts +26 -0
- package/src/models/publicperiodcoverage.ts +33 -0
- package/src/models/publicperiodrates.ts +29 -0
- package/src/models/publicpreviousvisibility.ts +30 -0
- package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
- package/src/models/publicratechanges.ts +25 -0
- package/src/models/publicrates.ts +52 -0
- package/src/models/publicresolvedperiod.ts +41 -0
- package/src/models/publictopcitedurlsresponse.ts +25 -5
- package/src/models/publicvisibilityoverviewresponse.ts +18 -0
- package/src/models/updatev2promptrequest.ts +1 -1
- package/src/models/v2agentanalyticscountrieslistop.ts +4 -0
- package/src/models/v2agentanalyticserrorpageslistop.ts +4 -0
- package/src/models/v2agentanalyticspageslistop.ts +4 -0
- package/src/models/v2agentanalyticssourceslistop.ts +4 -0
- package/src/models/v2agentanalyticssummaryretrieveop.ts +4 -0
- package/src/models/v2promptrunscancelop.ts +90 -0
- package/src/models/v2visibilitycitationslistop.ts +4 -0
- package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
- package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
- package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
- package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
- package/src/tool-names.ts +16 -8
package/src/mcp-server/server.ts
CHANGED
|
@@ -64,6 +64,7 @@ import { tool$promptsDelete } from "./tools/promptsDelete.js";
|
|
|
64
64
|
import { tool$promptsList } from "./tools/promptsList.js";
|
|
65
65
|
import { tool$promptsRetrieve } from "./tools/promptsRetrieve.js";
|
|
66
66
|
import { tool$promptsRun } from "./tools/promptsRun.js";
|
|
67
|
+
import { tool$promptsRunCancel } from "./tools/promptsRunCancel.js";
|
|
67
68
|
import { tool$promptsRunsList } from "./tools/promptsRunsList.js";
|
|
68
69
|
import { tool$promptsRunsRetrieve } from "./tools/promptsRunsRetrieve.js";
|
|
69
70
|
import { tool$promptsRunStatus } from "./tools/promptsRunStatus.js";
|
|
@@ -87,6 +88,7 @@ import { tool$tasksList } from "./tools/tasksList.js";
|
|
|
87
88
|
import { tool$tasksRetrieve } from "./tools/tasksRetrieve.js";
|
|
88
89
|
import { tool$tasksUpdate } from "./tools/tasksUpdate.js";
|
|
89
90
|
import { tool$visibilityCitationsList } from "./tools/visibilityCitationsList.js";
|
|
91
|
+
import { tool$visibilityCitationsSummaryRetrieve } from "./tools/visibilityCitationsSummaryRetrieve.js";
|
|
90
92
|
import { tool$visibilityCurrentRetrieve } from "./tools/visibilityCurrentRetrieve.js";
|
|
91
93
|
import { tool$visibilityOverviewRetrieve } from "./tools/visibilityOverviewRetrieve.js";
|
|
92
94
|
import { tool$visibilityPromptsRetrieve } from "./tools/visibilityPromptsRetrieve.js";
|
|
@@ -161,6 +163,7 @@ export function createMCPServer(deps: {
|
|
|
161
163
|
tool(tool$visibilityOverviewRetrieve);
|
|
162
164
|
tool(tool$visibilityCitationsList);
|
|
163
165
|
tool(tool$visibilityPromptsRetrieve);
|
|
166
|
+
tool(tool$visibilityCitationsSummaryRetrieve);
|
|
164
167
|
tool(tool$promptsList);
|
|
165
168
|
tool(tool$promptsCreate);
|
|
166
169
|
tool(tool$promptsTopicsList);
|
|
@@ -174,6 +177,7 @@ export function createMCPServer(deps: {
|
|
|
174
177
|
tool(tool$promptsDelete);
|
|
175
178
|
tool(tool$promptsRun);
|
|
176
179
|
tool(tool$promptsRunStatus);
|
|
180
|
+
tool(tool$promptsRunCancel);
|
|
177
181
|
tool(tool$opportunitiesList);
|
|
178
182
|
tool(tool$opportunitiesRetrieve);
|
|
179
183
|
tool(tool$tasksList);
|
|
@@ -15,7 +15,7 @@ export const tool$agentAnalyticsSummaryRetrieve: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "agent-analytics-summary-retrieve",
|
|
16
16
|
description: `Retrieve Agent Analytics Summary
|
|
17
17
|
|
|
18
|
-
Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`,
|
|
18
|
+
Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named \`period\`).`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -10,7 +10,7 @@ export const tool$agentsList: ToolDefinition = {
|
|
|
10
10
|
name: "agents-list",
|
|
11
11
|
description: `List Agents
|
|
12
12
|
|
|
13
|
-
Returns the harness-and-model combinations your plan can run, as single agent IDs
|
|
13
|
+
Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as \`agent\` to \`POST /v2/prompts/runs\` to see how coding agents answer your prompts, with mentions and citations; to \`POST /v2/agent-preference/evals\` to see whether agents recommend your company over one competitor; or to \`POST /v2/evals\` and \`POST /v2/eval-runs\` to measure how well agents complete tasks with your product.`,
|
|
14
14
|
annotations: {
|
|
15
15
|
"title": "",
|
|
16
16
|
"destructiveHint": false,
|
|
@@ -15,7 +15,9 @@ export const tool$evalsCreate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "evals-create",
|
|
16
16
|
description: `Create Eval
|
|
17
17
|
|
|
18
|
-
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values
|
|
18
|
+
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.
|
|
19
|
+
|
|
20
|
+
Evals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with \`POST /v2/prompts/runs\` instead.`,
|
|
19
21
|
annotations: {
|
|
20
22
|
"title": "",
|
|
21
23
|
"destructiveHint": false,
|
|
@@ -17,6 +17,8 @@ export const tool$evalsRun: ToolDefinition<typeof args> = {
|
|
|
17
17
|
|
|
18
18
|
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
|
|
19
19
|
|
|
20
|
+
Eval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use \`POST /v2/prompts/runs\` with \`agent\` instead.
|
|
21
|
+
|
|
20
22
|
Send one of these flat request forms:
|
|
21
23
|
|
|
22
24
|
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
@@ -15,11 +15,15 @@ export const tool$promptsRun: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "prompts-run",
|
|
16
16
|
description: `Run Prompts
|
|
17
17
|
|
|
18
|
-
Queue saved prompts
|
|
18
|
+
Queue saved prompts on answer engines and coding agents.
|
|
19
19
|
|
|
20
20
|
Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
|
|
21
|
-
prompts.
|
|
22
|
-
|
|
21
|
+
prompts. By default the run uses the organization's configured targets.
|
|
22
|
+
Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
|
|
23
|
+
specific coding-agent harnesses and models instead, for example to compare
|
|
24
|
+
how several coding tools answer the same developer question. Results
|
|
25
|
+
include mentions and citations. Saved prompt run settings apply to
|
|
26
|
+
coding-agent targets. The response returns a run ID to poll with
|
|
23
27
|
\`GET /v2/prompts/runs/{run_id}/status\`.`,
|
|
24
28
|
annotations: {
|
|
25
29
|
"title": "",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0560657e0c9b
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsRunCancel } from "../../funcs/promptsRunCancel.js";
|
|
7
|
+
import { V2PromptRunsCancelRequest$zodSchema } from "../../models/v2promptrunscancelop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2PromptRunsCancelRequest$zodSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$promptsRunCancel: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "prompts-run-cancel",
|
|
16
|
+
description: `Cancel a prompt run
|
|
17
|
+
|
|
18
|
+
Marks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in \`progress.cancelled\`. Repeating this request for an already-cancelled run is safe.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": false,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await promptsRunCancel(
|
|
29
|
+
client,
|
|
30
|
+
args.request,
|
|
31
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
32
|
+
).$inspect();
|
|
33
|
+
|
|
34
|
+
if (!result.ok) {
|
|
35
|
+
return {
|
|
36
|
+
content: [{ type: "text", text: result.error.message }],
|
|
37
|
+
isError: true,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return formatResult(result.value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$visibilityCitationsList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "visibility-citations-list",
|
|
16
16
|
description: `List Top Cited Urls
|
|
17
17
|
|
|
18
|
-
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`,
|
|
18
|
+
Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 094c7750d43d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { visibilityCitationsSummaryRetrieve } from "../../funcs/visibilityCitationsSummaryRetrieve.js";
|
|
7
|
+
import { V2VisibilityCitationsSummaryRetrieveRequest$zodSchema } from "../../models/v2visibilitycitationssummaryretrieveop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional(),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$visibilityCitationsSummaryRetrieve: ToolDefinition<
|
|
15
|
+
typeof args
|
|
16
|
+
> = {
|
|
17
|
+
name: "visibility-citations-summary-retrieve",
|
|
18
|
+
description: `Retrieve Citation Summary
|
|
19
|
+
|
|
20
|
+
Returns citation totals grouped by URL prefix (domain and first path segment, such as \`example.com/blog\`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with \`url_prefix\`, for example \`https://example.com/blog/\`. Aggregated in one call; use it instead of paging the citations list.`,
|
|
21
|
+
annotations: {
|
|
22
|
+
"title": "",
|
|
23
|
+
"destructiveHint": false,
|
|
24
|
+
"idempotentHint": false,
|
|
25
|
+
"openWorldHint": false,
|
|
26
|
+
"readOnlyHint": true,
|
|
27
|
+
},
|
|
28
|
+
args,
|
|
29
|
+
tool: async (client, args, ctx) => {
|
|
30
|
+
const [result] = await visibilityCitationsSummaryRetrieve(
|
|
31
|
+
client,
|
|
32
|
+
args.request,
|
|
33
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
34
|
+
).$inspect();
|
|
35
|
+
|
|
36
|
+
if (!result.ok) {
|
|
37
|
+
return {
|
|
38
|
+
content: [{ type: "text", text: result.error.message }],
|
|
39
|
+
isError: true,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return formatResult(result.value);
|
|
44
|
+
},
|
|
45
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$visibilityCurrentRetrieve: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "visibility-current-retrieve",
|
|
16
16
|
description: `Retrieve Current Visibility
|
|
17
17
|
|
|
18
|
-
Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are \`null
|
|
18
|
+
Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are \`null\`. Pass \`period\` (for example \`last_30_days\` or \`2026Q4\`) instead of computing dates.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -15,7 +15,7 @@ export const tool$visibilityOverviewRetrieve: ToolDefinition<typeof args> = {
|
|
|
15
15
|
name: "visibility-overview-retrieve",
|
|
16
16
|
description: `Retrieve Visibility Overview
|
|
17
17
|
|
|
18
|
-
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`,
|
|
18
|
+
Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only.`,
|
|
19
19
|
annotations: {
|
|
20
20
|
"title": "",
|
|
21
21
|
"destructiveHint": false,
|
|
@@ -19,7 +19,7 @@ export type CreateV2PromptRequest = {
|
|
|
19
19
|
export const CreateV2PromptRequest$zodSchema: z.ZodType<CreateV2PromptRequest> =
|
|
20
20
|
z.object({
|
|
21
21
|
platform_ids: z.array(z.string()).optional().describe(
|
|
22
|
-
"
|
|
22
|
+
"Platform IDs, as returned in `platforms` on `GET /v2/prompts`. Omit to attach none. To choose which coding-agent models a run uses, pass `agent` to `POST /v2/prompts/runs`.",
|
|
23
23
|
),
|
|
24
24
|
run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional()
|
|
25
25
|
.describe(
|
|
@@ -7,14 +7,18 @@ import * as z from "zod";
|
|
|
7
7
|
|
|
8
8
|
export type CreateV2PromptRunRequest = {
|
|
9
9
|
prompt_ids?: Array<string> | null | undefined;
|
|
10
|
+
agent?: Array<string> | null | undefined;
|
|
10
11
|
force?: boolean | undefined;
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export const CreateV2PromptRunRequest$zodSchema: z.ZodType<
|
|
14
15
|
CreateV2PromptRunRequest
|
|
15
16
|
> = z.object({
|
|
17
|
+
agent: z.array(z.string()).nullable().optional().describe(
|
|
18
|
+
"Runnable agents from `GET /v2/agents`, each a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines. Omit it to use the configured targets. CLI clients expose repeatable `--agent`.",
|
|
19
|
+
),
|
|
16
20
|
force: z.boolean().default(false).describe(
|
|
17
|
-
"Run even when a prompt already ran today on the
|
|
21
|
+
"Run even when a prompt already ran today on the same platform and model.",
|
|
18
22
|
),
|
|
19
23
|
prompt_ids: z.array(z.string()).nullable().optional().describe(
|
|
20
24
|
"Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.",
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
PublicAgentCountry,
|
|
9
9
|
PublicAgentCountry$zodSchema,
|
|
10
10
|
} from "./publicagentcountry.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicResolvedPeriod,
|
|
13
|
+
PublicResolvedPeriod$zodSchema,
|
|
14
|
+
} from "./publicresolvedperiod.js";
|
|
11
15
|
|
|
12
16
|
export type PublicAgentAnalyticsCountryListResponse = {
|
|
13
17
|
site_id: string;
|
|
14
18
|
start_date: string;
|
|
15
19
|
end_date: string;
|
|
20
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
16
21
|
countries?: Array<PublicAgentCountry> | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
@@ -23,6 +28,9 @@ export const PublicAgentAnalyticsCountryListResponse$zodSchema: z.ZodType<
|
|
|
23
28
|
"Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine.",
|
|
24
29
|
),
|
|
25
30
|
end_date: z.string().date(),
|
|
31
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
32
|
+
"The resolved period and the previous period it is compared with.",
|
|
33
|
+
),
|
|
26
34
|
site_id: z.string(),
|
|
27
35
|
start_date: z.string().date(),
|
|
28
36
|
});
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
PublicAgentErrorPage,
|
|
9
9
|
PublicAgentErrorPage$zodSchema,
|
|
10
10
|
} from "./publicagenterrorpage.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicResolvedPeriod,
|
|
13
|
+
PublicResolvedPeriod$zodSchema,
|
|
14
|
+
} from "./publicresolvedperiod.js";
|
|
11
15
|
|
|
12
16
|
export type PublicAgentAnalyticsErrorPageListResponse = {
|
|
13
17
|
site_id: string;
|
|
14
18
|
start_date: string;
|
|
15
19
|
end_date: string;
|
|
20
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
16
21
|
status_codes_tracked: boolean;
|
|
17
22
|
pages?: Array<PublicAgentErrorPage> | undefined;
|
|
18
23
|
};
|
|
@@ -24,6 +29,9 @@ export const PublicAgentAnalyticsErrorPageListResponse$zodSchema: z.ZodType<
|
|
|
24
29
|
pages: z.array(PublicAgentErrorPage$zodSchema).optional().describe(
|
|
25
30
|
"Most error requests first.",
|
|
26
31
|
),
|
|
32
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
33
|
+
"The resolved period and the previous period it is compared with.",
|
|
34
|
+
),
|
|
27
35
|
site_id: z.string(),
|
|
28
36
|
start_date: z.string().date(),
|
|
29
37
|
status_codes_tracked: z.boolean().describe(
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
PublicAgentTrafficPage,
|
|
9
9
|
PublicAgentTrafficPage$zodSchema,
|
|
10
10
|
} from "./publicagenttrafficpage.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicResolvedPeriod,
|
|
13
|
+
PublicResolvedPeriod$zodSchema,
|
|
14
|
+
} from "./publicresolvedperiod.js";
|
|
11
15
|
|
|
12
16
|
export type PublicAgentAnalyticsPageListResponse = {
|
|
13
17
|
site_id: string;
|
|
14
18
|
start_date: string;
|
|
15
19
|
end_date: string;
|
|
20
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
16
21
|
agent?: string | null | undefined;
|
|
17
22
|
pages?: Array<PublicAgentTrafficPage> | undefined;
|
|
18
23
|
};
|
|
@@ -25,6 +30,9 @@ export const PublicAgentAnalyticsPageListResponse$zodSchema: z.ZodType<
|
|
|
25
30
|
),
|
|
26
31
|
end_date: z.string().date(),
|
|
27
32
|
pages: z.array(PublicAgentTrafficPage$zodSchema).optional(),
|
|
33
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
34
|
+
"The resolved period and the previous period it is compared with.",
|
|
35
|
+
),
|
|
28
36
|
site_id: z.string(),
|
|
29
37
|
start_date: z.string().date(),
|
|
30
38
|
});
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
PublicAgentTrafficSource,
|
|
9
9
|
PublicAgentTrafficSource$zodSchema,
|
|
10
10
|
} from "./publicagenttrafficsource.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicResolvedPeriod,
|
|
13
|
+
PublicResolvedPeriod$zodSchema,
|
|
14
|
+
} from "./publicresolvedperiod.js";
|
|
11
15
|
|
|
12
16
|
export type PublicAgentAnalyticsSourceListResponse = {
|
|
13
17
|
site_id: string;
|
|
14
18
|
start_date: string;
|
|
15
19
|
end_date: string;
|
|
20
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
16
21
|
sources?: Array<PublicAgentTrafficSource> | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
@@ -20,6 +25,9 @@ export const PublicAgentAnalyticsSourceListResponse$zodSchema: z.ZodType<
|
|
|
20
25
|
PublicAgentAnalyticsSourceListResponse
|
|
21
26
|
> = z.object({
|
|
22
27
|
end_date: z.string().date(),
|
|
28
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
29
|
+
"The resolved period and the previous period it is compared with.",
|
|
30
|
+
),
|
|
23
31
|
site_id: z.string(),
|
|
24
32
|
sources: z.array(PublicAgentTrafficSource$zodSchema).optional().describe(
|
|
25
33
|
"Most visits first.",
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
PublicAgentTrafficTotals,
|
|
9
9
|
PublicAgentTrafficTotals$zodSchema,
|
|
10
10
|
} from "./publicagenttraffictotals.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicResolvedPeriod,
|
|
13
|
+
PublicResolvedPeriod$zodSchema,
|
|
14
|
+
} from "./publicresolvedperiod.js";
|
|
11
15
|
|
|
12
16
|
export type PublicAgentAnalyticsSummary = {
|
|
13
17
|
site_id: string;
|
|
14
18
|
start_date: string;
|
|
15
19
|
end_date: string;
|
|
20
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
16
21
|
current: PublicAgentTrafficTotals;
|
|
17
22
|
previous: PublicAgentTrafficTotals;
|
|
18
23
|
};
|
|
@@ -22,6 +27,9 @@ export const PublicAgentAnalyticsSummary$zodSchema: z.ZodType<
|
|
|
22
27
|
> = z.object({
|
|
23
28
|
current: PublicAgentTrafficTotals$zodSchema,
|
|
24
29
|
end_date: z.string().date(),
|
|
30
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
31
|
+
"The resolved period and the previous period it is compared with.",
|
|
32
|
+
),
|
|
25
33
|
previous: PublicAgentTrafficTotals$zodSchema,
|
|
26
34
|
site_id: z.string(),
|
|
27
35
|
start_date: z.string().date(),
|
|
@@ -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
|
+
});
|