@lightsage/mcp 0.4.17 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/mcp.js +4 -1
- package/bin/mcp-server.js +1115 -205
- package/bin/mcp-server.js.map +82 -56
- 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 +8 -3
- package/esm/funcs/promptsRun.d.ts.map +1 -1
- package/esm/funcs/promptsRun.js +8 -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/promptsTargetsList.d.ts +16 -0
- package/esm/funcs/promptsTargetsList.d.ts.map +1 -0
- package/esm/funcs/promptsTargetsList.js +86 -0
- package/esm/funcs/promptsTargetsList.js.map +1 -0
- package/esm/funcs/promptsTargetsSet.d.ts +16 -0
- package/esm/funcs/promptsTargetsSet.d.ts.map +1 -0
- package/esm/funcs/promptsTargetsSet.js +83 -0
- package/esm/funcs/promptsTargetsSet.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 +9 -1
- 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 +8 -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/promptsTargetsList.d.ts +7 -0
- package/esm/mcp-server/tools/promptsTargetsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsList.js +35 -0
- package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsSet.d.ts +7 -0
- package/esm/mcp-server/tools/promptsTargetsSet.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsSet.js +35 -0
- package/esm/mcp-server/tools/promptsTargetsSet.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/evaltemplateschedule.d.ts +4 -4
- package/esm/models/evaltemplateschedule.d.ts.map +1 -1
- package/esm/models/evaltemplateschedule.js +4 -3
- package/esm/models/evaltemplateschedule.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/setv2prompttargetsrequest.d.ts +8 -0
- package/esm/models/setv2prompttargetsrequest.d.ts.map +1 -0
- package/esm/models/setv2prompttargetsrequest.js +11 -0
- package/esm/models/setv2prompttargetsrequest.js.map +1 -0
- package/esm/models/setv2prompttargetsresponse.d.ts +9 -0
- package/esm/models/setv2prompttargetsresponse.d.ts.map +1 -0
- package/esm/models/setv2prompttargetsresponse.js +12 -0
- package/esm/models/setv2prompttargetsresponse.js.map +1 -0
- 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/v2prompttarget.d.ts +44 -0
- package/esm/models/v2prompttarget.d.ts.map +1 -0
- package/esm/models/v2prompttarget.js +41 -0
- package/esm/models/v2prompttarget.js.map +1 -0
- package/esm/models/v2prompttargetinput.d.ts +47 -0
- package/esm/models/v2prompttargetinput.d.ts.map +1 -0
- package/esm/models/v2prompttargetinput.js +45 -0
- package/esm/models/v2prompttargetinput.js.map +1 -0
- package/esm/models/v2prompttargetslistop.d.ts +10 -0
- package/esm/models/v2prompttargetslistop.d.ts.map +1 -0
- package/esm/models/v2prompttargetslistop.js +15 -0
- package/esm/models/v2prompttargetslistop.js.map +1 -0
- package/esm/models/v2prompttargetsresponse.d.ts +8 -0
- package/esm/models/v2prompttargetsresponse.d.ts.map +1 -0
- package/esm/models/v2prompttargetsresponse.js +11 -0
- package/esm/models/v2prompttargetsresponse.js.map +1 -0
- package/esm/models/v2prompttargetssetop.d.ts +6 -0
- package/esm/models/v2prompttargetssetop.d.ts.map +1 -0
- package/esm/models/v2prompttargetssetop.js +12 -0
- package/esm/models/v2prompttargetssetop.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 +24 -8
- package/esm/tool-names.js.map +1 -1
- package/lib/feedback.js +47 -0
- package/lib/tracker.js +4 -2
- package/package.json +5 -4
- 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 +8 -3
- package/src/funcs/promptsRunCancel.ts +153 -0
- package/src/funcs/promptsTargetsList.ts +148 -0
- package/src/funcs/promptsTargetsSet.ts +145 -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 +9 -1
- 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 +8 -3
- package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsList.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsSet.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/evaltemplateschedule.ts +8 -7
- 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/setv2prompttargetsrequest.ts +26 -0
- package/src/models/setv2prompttargetsresponse.ts +23 -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/v2prompttarget.ts +79 -0
- package/src/models/v2prompttargetinput.ts +72 -0
- package/src/models/v2prompttargetslistop.ts +33 -0
- package/src/models/v2prompttargetsresponse.ts +19 -0
- package/src/models/v2prompttargetssetop.ts +25 -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 +24 -8
- package/test/tracker.test.js +83 -1
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ea463f944d6c
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsTargetsList } from "../../funcs/promptsTargetsList.js";
|
|
7
|
+
import { V2PromptTargetsListRequest$zodSchema } from "../../models/v2prompttargetslistop.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: V2PromptTargetsListRequest$zodSchema.optional(),
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$promptsTargetsList: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "prompts-targets-list",
|
|
16
|
+
description: `List Targets
|
|
17
|
+
|
|
18
|
+
Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide \`topic_id\` to list one topic's targets.`,
|
|
19
|
+
annotations: {
|
|
20
|
+
"title": "",
|
|
21
|
+
"destructiveHint": false,
|
|
22
|
+
"idempotentHint": false,
|
|
23
|
+
"openWorldHint": false,
|
|
24
|
+
"readOnlyHint": true,
|
|
25
|
+
},
|
|
26
|
+
args,
|
|
27
|
+
tool: async (client, args, ctx) => {
|
|
28
|
+
const [result] = await promptsTargetsList(
|
|
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
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f1ffd3b02650
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { promptsTargetsSet } from "../../funcs/promptsTargetsSet.js";
|
|
7
|
+
import { SetV2PromptTargetsRequest$zodSchema } from "../../models/setv2prompttargetsrequest.js";
|
|
8
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
9
|
+
|
|
10
|
+
const args = {
|
|
11
|
+
request: SetV2PromptTargetsRequest$zodSchema,
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const tool$promptsTargetsSet: ToolDefinition<typeof args> = {
|
|
15
|
+
name: "prompts-targets-set",
|
|
16
|
+
description: `Set Targets
|
|
17
|
+
|
|
18
|
+
Sets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with \`platform_ids\`. Name coding agents with IDs from \`GET /v2/agents\`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass \`agent\` to \`POST /v2/prompts/runs\` instead.`,
|
|
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 promptsTargetsSet(
|
|
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, and saves nothing. Omit it to use the configured targets; change those with `PUT /v2/prompts/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.",
|
|
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Schedule cadence used when `enabled` is true.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const EvalTemplateScheduleFrequency = {
|
|
13
13
|
Daily: "daily",
|
|
14
14
|
EveryOtherDay: "every_other_day",
|
|
15
15
|
Weekly: "weekly",
|
|
@@ -17,9 +17,11 @@ export const Frequency = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Schedule cadence used when `enabled` is true.
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
20
|
+
export type EvalTemplateScheduleFrequency = ClosedEnum<
|
|
21
|
+
typeof EvalTemplateScheduleFrequency
|
|
22
|
+
>;
|
|
21
23
|
|
|
22
|
-
export const
|
|
24
|
+
export const EvalTemplateScheduleFrequency$zodSchema = z.enum([
|
|
23
25
|
"daily",
|
|
24
26
|
"every_other_day",
|
|
25
27
|
"weekly",
|
|
@@ -30,7 +32,7 @@ export const Frequency$zodSchema = z.enum([
|
|
|
30
32
|
*/
|
|
31
33
|
export type EvalTemplateSchedule = {
|
|
32
34
|
enabled?: boolean | undefined;
|
|
33
|
-
frequency?:
|
|
35
|
+
frequency?: EvalTemplateScheduleFrequency | undefined;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
export const EvalTemplateSchedule$zodSchema: z.ZodType<EvalTemplateSchedule> = z
|
|
@@ -38,7 +40,6 @@ export const EvalTemplateSchedule$zodSchema: z.ZodType<EvalTemplateSchedule> = z
|
|
|
38
40
|
enabled: z.boolean().default(false).describe(
|
|
39
41
|
"Whether each eval created from the template receives a schedule.",
|
|
40
42
|
),
|
|
41
|
-
frequency:
|
|
42
|
-
"Schedule cadence used when `enabled` is true.",
|
|
43
|
-
),
|
|
43
|
+
frequency: EvalTemplateScheduleFrequency$zodSchema.default("weekly")
|
|
44
|
+
.describe("Schedule cadence used when `enabled` is true."),
|
|
44
45
|
}).describe("Schedule copied into every eval created from the template.");
|
|
@@ -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
|
+
});
|