@lightsage/mcp 0.4.16 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/mcp.js +30 -0
- package/bin/mcp-server.js +2495 -660
- package/bin/mcp-server.js.map +103 -55
- package/esm/funcs/agentAnalyticsCountriesList.d.ts +16 -0
- package/esm/funcs/agentAnalyticsCountriesList.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsCountriesList.js +95 -0
- package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.d.ts +16 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.js +97 -0
- package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -0
- package/esm/funcs/agentAnalyticsPagesList.d.ts +16 -0
- package/esm/funcs/agentAnalyticsPagesList.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsPagesList.js +99 -0
- package/esm/funcs/agentAnalyticsPagesList.js.map +1 -0
- package/esm/funcs/agentAnalyticsSitesList.d.ts +15 -0
- package/esm/funcs/agentAnalyticsSitesList.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsSitesList.js +72 -0
- package/esm/funcs/agentAnalyticsSitesList.js.map +1 -0
- package/esm/funcs/agentAnalyticsSourcesList.d.ts +16 -0
- package/esm/funcs/agentAnalyticsSourcesList.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsSourcesList.js +94 -0
- package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -0
- package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +16 -0
- package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js +94 -0
- package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -0
- 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/tasksCreate.d.ts +16 -0
- package/esm/funcs/tasksCreate.d.ts.map +1 -0
- package/esm/funcs/tasksCreate.js +83 -0
- package/esm/funcs/tasksCreate.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 +19 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts +7 -0
- package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsCountriesList.js +35 -0
- package/esm/mcp-server/tools/agentAnalyticsCountriesList.js.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts +7 -0
- package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js +35 -0
- package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts +7 -0
- package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsPagesList.js +35 -0
- package/esm/mcp-server/tools/agentAnalyticsPagesList.js.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts +3 -0
- package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSitesList.js +30 -0
- package/esm/mcp-server/tools/agentAnalyticsSitesList.js.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts +7 -0
- package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSourcesList.js +35 -0
- package/esm/mcp-server/tools/agentAnalyticsSourcesList.js.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +35 -0
- package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -0
- 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/tasksCreate.d.ts +7 -0
- package/esm/mcp-server/tools/tasksCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/tasksCreate.js +35 -0
- package/esm/mcp-server/tools/tasksCreate.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/createtaskrequest.d.ts +65 -0
- package/esm/models/createtaskrequest.d.ts.map +1 -0
- package/esm/models/createtaskrequest.js +64 -0
- package/esm/models/createtaskrequest.js.map +1 -0
- 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/graderdefinition.d.ts +1 -0
- package/esm/models/graderdefinition.d.ts.map +1 -1
- package/esm/models/graderdefinition.js +1 -0
- package/esm/models/graderdefinition.js.map +1 -1
- package/esm/models/publicagentanalyticscountrylistresponse.d.ts +12 -0
- package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -0
- package/esm/models/publicagentanalyticscountrylistresponse.js +15 -0
- package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +13 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.js +16 -0
- package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -0
- package/esm/models/publicagentanalyticspagelistresponse.d.ts +13 -0
- package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -0
- package/esm/models/publicagentanalyticspagelistresponse.js +16 -0
- package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -0
- package/esm/models/publicagentanalyticssite.d.ts +9 -0
- package/esm/models/publicagentanalyticssite.d.ts.map +1 -0
- package/esm/models/publicagentanalyticssite.js +12 -0
- package/esm/models/publicagentanalyticssite.js.map +1 -0
- package/esm/models/publicagentanalyticssitelistresponse.d.ts +7 -0
- package/esm/models/publicagentanalyticssitelistresponse.d.ts.map +1 -0
- package/esm/models/publicagentanalyticssitelistresponse.js +10 -0
- package/esm/models/publicagentanalyticssitelistresponse.js.map +1 -0
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts +12 -0
- package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -0
- package/esm/models/publicagentanalyticssourcelistresponse.js +15 -0
- package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -0
- package/esm/models/publicagentanalyticssummary.d.ts +13 -0
- package/esm/models/publicagentanalyticssummary.d.ts.map +1 -0
- package/esm/models/publicagentanalyticssummary.js +16 -0
- package/esm/models/publicagentanalyticssummary.js.map +1 -0
- package/esm/models/publicagentcountry.d.ts +7 -0
- package/esm/models/publicagentcountry.d.ts.map +1 -0
- package/esm/models/publicagentcountry.js +11 -0
- package/esm/models/publicagentcountry.js.map +1 -0
- package/esm/models/publicagenterrorpage.d.ts +12 -0
- package/esm/models/publicagenterrorpage.d.ts.map +1 -0
- package/esm/models/publicagenterrorpage.js +16 -0
- package/esm/models/publicagenterrorpage.js.map +1 -0
- package/esm/models/publicagenterrorsource.d.ts +40 -0
- package/esm/models/publicagenterrorsource.d.ts.map +1 -0
- package/esm/models/publicagenterrorsource.js +40 -0
- package/esm/models/publicagenterrorsource.js.map +1 -0
- package/esm/models/publicagenttrafficpage.d.ts +14 -0
- package/esm/models/publicagenttrafficpage.d.ts.map +1 -0
- package/esm/models/publicagenttrafficpage.js +17 -0
- package/esm/models/publicagenttrafficpage.js.map +1 -0
- package/esm/models/publicagenttrafficsource.d.ts +47 -0
- package/esm/models/publicagenttrafficsource.d.ts.map +1 -0
- package/esm/models/publicagenttrafficsource.js +44 -0
- package/esm/models/publicagenttrafficsource.js.map +1 -0
- package/esm/models/publicagenttraffictotals.d.ts +13 -0
- package/esm/models/publicagenttraffictotals.d.ts.map +1 -0
- package/esm/models/publicagenttraffictotals.js +16 -0
- package/esm/models/publicagenttraffictotals.js.map +1 -0
- 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/updatetaskrequest.d.ts +8 -8
- package/esm/models/updatetaskrequest.d.ts.map +1 -1
- package/esm/models/updatetaskrequest.js +6 -6
- package/esm/models/updatetaskrequest.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 +14 -0
- package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -0
- package/esm/models/v2agentanalyticscountrieslistop.js +19 -0
- package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts +40 -0
- package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -0
- package/esm/models/v2agentanalyticserrorpageslistop.js +40 -0
- package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -0
- package/esm/models/v2agentanalyticspageslistop.d.ts +69 -0
- package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -0
- package/esm/models/v2agentanalyticspageslistop.js +66 -0
- package/esm/models/v2agentanalyticspageslistop.js.map +1 -0
- package/esm/models/v2agentanalyticssourceslistop.d.ts +13 -0
- package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -0
- package/esm/models/v2agentanalyticssourceslistop.js +18 -0
- package/esm/models/v2agentanalyticssourceslistop.js.map +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +13 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.js +18 -0
- package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -0
- package/esm/models/v2inlinemcpdefinition.js +1 -1
- package/esm/models/v2inlinemcpdefinition.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/v2repository.d.ts +4 -4
- package/esm/models/v2repository.d.ts.map +1 -1
- package/esm/models/v2repository.js +3 -3
- package/esm/models/v2repository.js.map +1 -1
- package/esm/models/v2taskscreateop.d.ts +13 -0
- package/esm/models/v2taskscreateop.d.ts.map +1 -0
- package/esm/models/v2taskscreateop.js +16 -0
- package/esm/models/v2taskscreateop.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 +43 -7
- package/esm/tool-names.js.map +1 -1
- package/lib/tracker.js +219 -0
- package/package.json +3 -1
- package/src/funcs/agentAnalyticsCountriesList.ts +160 -0
- package/src/funcs/agentAnalyticsErrorPagesList.ts +162 -0
- package/src/funcs/agentAnalyticsPagesList.ts +164 -0
- package/src/funcs/agentAnalyticsSitesList.ts +124 -0
- package/src/funcs/agentAnalyticsSourcesList.ts +159 -0
- package/src/funcs/agentAnalyticsSummaryRetrieve.ts +159 -0
- 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/tasksCreate.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 +19 -1
- package/src/mcp-server/tools/agentAnalyticsCountriesList.ts +43 -0
- package/src/mcp-server/tools/agentAnalyticsErrorPagesList.ts +43 -0
- package/src/mcp-server/tools/agentAnalyticsPagesList.ts +43 -0
- package/src/mcp-server/tools/agentAnalyticsSitesList.ts +36 -0
- package/src/mcp-server/tools/agentAnalyticsSourcesList.ts +43 -0
- package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +43 -0
- 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/tasksCreate.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/createtaskrequest.ts +98 -0
- package/src/models/createv2promptrequest.ts +1 -1
- package/src/models/createv2promptrunrequest.ts +5 -1
- package/src/models/graderdefinition.ts +2 -0
- package/src/models/publicagentanalyticscountrylistresponse.ts +36 -0
- package/src/models/publicagentanalyticserrorpagelistresponse.ts +40 -0
- package/src/models/publicagentanalyticspagelistresponse.ts +38 -0
- package/src/models/publicagentanalyticssite.ts +26 -0
- package/src/models/publicagentanalyticssitelistresponse.ts +20 -0
- package/src/models/publicagentanalyticssourcelistresponse.ts +36 -0
- package/src/models/publicagentanalyticssummary.ts +36 -0
- package/src/models/publicagentcountry.ts +16 -0
- package/src/models/publicagenterrorpage.ts +35 -0
- package/src/models/publicagenterrorsource.ts +63 -0
- package/src/models/publicagenttrafficpage.ts +46 -0
- package/src/models/publicagenttrafficsource.ts +77 -0
- package/src/models/publicagenttraffictotals.ts +42 -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/updatetaskrequest.ts +14 -10
- package/src/models/updatev2promptrequest.ts +1 -1
- package/src/models/v2agentanalyticscountrieslistop.ts +49 -0
- package/src/models/v2agentanalyticserrorpageslistop.ts +83 -0
- package/src/models/v2agentanalyticspageslistop.ts +123 -0
- package/src/models/v2agentanalyticssourceslistop.ts +47 -0
- package/src/models/v2agentanalyticssummaryretrieveop.ts +47 -0
- package/src/models/v2inlinemcpdefinition.ts +1 -1
- package/src/models/v2promptrunscancelop.ts +90 -0
- package/src/models/v2repository.ts +5 -5
- package/src/models/v2taskscreateop.ts +34 -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 +43 -7
- package/test/tracker.test.js +323 -0
|
@@ -10,11 +10,17 @@ import {
|
|
|
10
10
|
PublicCitedUrlDateRange,
|
|
11
11
|
PublicCitedUrlDateRange$zodSchema,
|
|
12
12
|
} from "./publiccitedurldaterange.js";
|
|
13
|
+
import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
|
|
14
|
+
import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
|
|
15
|
+
import {
|
|
16
|
+
PublicResolvedPeriod,
|
|
17
|
+
PublicResolvedPeriod$zodSchema,
|
|
18
|
+
} from "./publicresolvedperiod.js";
|
|
13
19
|
|
|
14
20
|
/**
|
|
15
21
|
* Whether the results include all, owned, or external URLs.
|
|
16
22
|
*/
|
|
17
|
-
export const
|
|
23
|
+
export const PublicTopCitedUrlsResponseSourceType = {
|
|
18
24
|
All: "all",
|
|
19
25
|
Owned: "owned",
|
|
20
26
|
External: "external",
|
|
@@ -22,9 +28,11 @@ export const SourceType = {
|
|
|
22
28
|
/**
|
|
23
29
|
* Whether the results include all, owned, or external URLs.
|
|
24
30
|
*/
|
|
25
|
-
export type
|
|
31
|
+
export type PublicTopCitedUrlsResponseSourceType = ClosedEnum<
|
|
32
|
+
typeof PublicTopCitedUrlsResponseSourceType
|
|
33
|
+
>;
|
|
26
34
|
|
|
27
|
-
export const
|
|
35
|
+
export const PublicTopCitedUrlsResponseSourceType$zodSchema = z.enum([
|
|
28
36
|
"all",
|
|
29
37
|
"owned",
|
|
30
38
|
"external",
|
|
@@ -33,16 +41,22 @@ export const SourceType$zodSchema = z.enum([
|
|
|
33
41
|
export type PublicTopCitedUrlsResponse = {
|
|
34
42
|
date_range: PublicCitedUrlDateRange;
|
|
35
43
|
platform?: string | null | undefined;
|
|
36
|
-
source_type:
|
|
44
|
+
source_type: PublicTopCitedUrlsResponseSourceType;
|
|
37
45
|
has_data: boolean;
|
|
38
46
|
count: number;
|
|
39
47
|
data?: Array<PublicCitedUrl> | undefined;
|
|
48
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
49
|
+
coverage?: PublicCoverage | null | undefined;
|
|
50
|
+
rates?: PublicRates | null | undefined;
|
|
40
51
|
};
|
|
41
52
|
|
|
42
53
|
export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
|
|
43
54
|
PublicTopCitedUrlsResponse
|
|
44
55
|
> = z.object({
|
|
45
56
|
count: z.int().describe("Number of URL rows returned."),
|
|
57
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe(
|
|
58
|
+
"Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
|
|
59
|
+
),
|
|
46
60
|
data: z.array(PublicCitedUrl$zodSchema).optional().describe(
|
|
47
61
|
"Cited URLs ranked by citation count in descending order.",
|
|
48
62
|
),
|
|
@@ -50,10 +64,16 @@ export const PublicTopCitedUrlsResponse$zodSchema: z.ZodType<
|
|
|
50
64
|
has_data: z.boolean().describe(
|
|
51
65
|
"Whether any citations matched the selected filters.",
|
|
52
66
|
),
|
|
67
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
68
|
+
"The resolved period and the previous period it is compared with.",
|
|
69
|
+
),
|
|
53
70
|
platform: z.string().nullable().optional().describe(
|
|
54
71
|
"Platform selector applied to the results, or null for all platforms.",
|
|
55
72
|
),
|
|
56
|
-
|
|
73
|
+
rates: PublicRates$zodSchema.nullable().optional().describe(
|
|
74
|
+
"Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
|
|
75
|
+
),
|
|
76
|
+
source_type: PublicTopCitedUrlsResponseSourceType$zodSchema.describe(
|
|
57
77
|
"Whether the results include all, owned, or external URLs.",
|
|
58
78
|
),
|
|
59
79
|
});
|
|
@@ -9,6 +9,12 @@ import {
|
|
|
9
9
|
PublicCompetitorRow,
|
|
10
10
|
PublicCompetitorRow$zodSchema,
|
|
11
11
|
} from "./publiccompetitorrow.js";
|
|
12
|
+
import { PublicCoverage, PublicCoverage$zodSchema } from "./publiccoverage.js";
|
|
13
|
+
import { PublicRates, PublicRates$zodSchema } from "./publicrates.js";
|
|
14
|
+
import {
|
|
15
|
+
PublicResolvedPeriod,
|
|
16
|
+
PublicResolvedPeriod$zodSchema,
|
|
17
|
+
} from "./publicresolvedperiod.js";
|
|
12
18
|
import {
|
|
13
19
|
PublicVisibilityByPlatform,
|
|
14
20
|
PublicVisibilityByPlatform$zodSchema,
|
|
@@ -34,6 +40,9 @@ export type PublicVisibilityOverviewResponse = {
|
|
|
34
40
|
timeseries: PublicVisibilityTimeseries;
|
|
35
41
|
by_platform: PublicVisibilityByPlatform;
|
|
36
42
|
competitors?: Array<PublicCompetitorRow> | undefined;
|
|
43
|
+
period?: PublicResolvedPeriod | null | undefined;
|
|
44
|
+
coverage?: PublicCoverage | null | undefined;
|
|
45
|
+
rates?: PublicRates | null | undefined;
|
|
37
46
|
};
|
|
38
47
|
|
|
39
48
|
export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
|
|
@@ -44,8 +53,17 @@ export const PublicVisibilityOverviewResponse$zodSchema: z.ZodType<
|
|
|
44
53
|
competitors: z.array(PublicCompetitorRow$zodSchema).optional().describe(
|
|
45
54
|
"Includes the primary company.",
|
|
46
55
|
),
|
|
56
|
+
coverage: PublicCoverage$zodSchema.nullable().optional().describe(
|
|
57
|
+
"Runs per day against expected runs for both periods. Check `comparable` before comparing totals.",
|
|
58
|
+
),
|
|
47
59
|
date_range: PublicVisibilityDateRange$zodSchema,
|
|
48
60
|
has_data: z.boolean(),
|
|
61
|
+
period: PublicResolvedPeriod$zodSchema.nullable().optional().describe(
|
|
62
|
+
"The resolved period and the previous period it is compared with.",
|
|
63
|
+
),
|
|
64
|
+
rates: PublicRates$zodSchema.nullable().optional().describe(
|
|
65
|
+
"Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`.",
|
|
66
|
+
),
|
|
49
67
|
snapshot: PublicVisibilitySnapshot$zodSchema,
|
|
50
68
|
timeseries: PublicVisibilityTimeseries$zodSchema,
|
|
51
69
|
});
|
|
@@ -35,44 +35,48 @@ export const UpdateTaskRequestStatus$zodSchema = z.enum([
|
|
|
35
35
|
"The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
|
|
36
36
|
);
|
|
37
37
|
|
|
38
|
-
export const
|
|
38
|
+
export const UpdateTaskRequestPriority = {
|
|
39
39
|
Urgent: "urgent",
|
|
40
40
|
High: "high",
|
|
41
41
|
Medium: "medium",
|
|
42
42
|
Low: "low",
|
|
43
43
|
} as const;
|
|
44
|
-
export type
|
|
44
|
+
export type UpdateTaskRequestPriority = ClosedEnum<
|
|
45
|
+
typeof UpdateTaskRequestPriority
|
|
46
|
+
>;
|
|
45
47
|
|
|
46
|
-
export const
|
|
48
|
+
export const UpdateTaskRequestPriority$zodSchema = z.enum([
|
|
47
49
|
"urgent",
|
|
48
50
|
"high",
|
|
49
51
|
"medium",
|
|
50
52
|
"low",
|
|
51
53
|
]);
|
|
52
54
|
|
|
53
|
-
export const
|
|
55
|
+
export const UpdateTaskRequestActionType = {
|
|
54
56
|
AgentDiscovery: "agent_discovery",
|
|
55
57
|
AgentUsability: "agent_usability",
|
|
56
58
|
} as const;
|
|
57
|
-
export type
|
|
59
|
+
export type UpdateTaskRequestActionType = ClosedEnum<
|
|
60
|
+
typeof UpdateTaskRequestActionType
|
|
61
|
+
>;
|
|
58
62
|
|
|
59
|
-
export const
|
|
63
|
+
export const UpdateTaskRequestActionType$zodSchema = z.enum([
|
|
60
64
|
"agent_discovery",
|
|
61
65
|
"agent_usability",
|
|
62
66
|
]);
|
|
63
67
|
|
|
64
68
|
export type UpdateTaskRequest = {
|
|
65
69
|
status?: UpdateTaskRequestStatus | undefined;
|
|
66
|
-
priority?:
|
|
70
|
+
priority?: UpdateTaskRequestPriority | undefined;
|
|
67
71
|
assignee_user_id?: string | undefined;
|
|
68
|
-
action_type?:
|
|
72
|
+
action_type?: UpdateTaskRequestActionType | undefined;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
75
|
export const UpdateTaskRequest$zodSchema: z.ZodType<UpdateTaskRequest> = z
|
|
72
76
|
.object({
|
|
73
|
-
action_type:
|
|
77
|
+
action_type: UpdateTaskRequestActionType$zodSchema.optional(),
|
|
74
78
|
assignee_user_id: z.string().optional(),
|
|
75
|
-
priority:
|
|
79
|
+
priority: UpdateTaskRequestPriority$zodSchema.optional(),
|
|
76
80
|
status: UpdateTaskRequestStatus$zodSchema.optional().describe(
|
|
77
81
|
"The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.",
|
|
78
82
|
),
|
|
@@ -38,7 +38,7 @@ export const UpdateV2PromptRequest$zodSchema: z.ZodType<UpdateV2PromptRequest> =
|
|
|
38
38
|
"Marks the prompt as branded or unbranded. Omit to keep the current value; changing `text` does not change it.",
|
|
39
39
|
),
|
|
40
40
|
platform_ids: z.array(z.string()).nullable().optional().describe(
|
|
41
|
-
"Replacement list of
|
|
41
|
+
"Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`.",
|
|
42
42
|
),
|
|
43
43
|
run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional()
|
|
44
44
|
.describe(
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c96ad2487ae4
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicAgentAnalyticsCountryListResponse,
|
|
13
|
+
PublicAgentAnalyticsCountryListResponse$zodSchema,
|
|
14
|
+
} from "./publicagentanalyticscountrylistresponse.js";
|
|
15
|
+
|
|
16
|
+
export type V2AgentAnalyticsCountriesListRequest = {
|
|
17
|
+
site_id: string;
|
|
18
|
+
start_date?: string | undefined;
|
|
19
|
+
end_date?: string | undefined;
|
|
20
|
+
period?: string | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const V2AgentAnalyticsCountriesListRequest$zodSchema: z.ZodType<
|
|
25
|
+
V2AgentAnalyticsCountriesListRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
end_date: z.string().date().describe(
|
|
28
|
+
"Inclusive range end in UTC; defaults to today.",
|
|
29
|
+
).optional(),
|
|
30
|
+
limit: z.int().default(20),
|
|
31
|
+
period: z.string().describe(
|
|
32
|
+
"Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
|
|
33
|
+
).optional(),
|
|
34
|
+
site_id: z.string(),
|
|
35
|
+
start_date: z.string().date().describe(
|
|
36
|
+
"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
|
|
37
|
+
).optional(),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export type V2AgentAnalyticsCountriesListResponse =
|
|
41
|
+
| PublicAgentAnalyticsCountryListResponse
|
|
42
|
+
| HTTPValidationError;
|
|
43
|
+
|
|
44
|
+
export const V2AgentAnalyticsCountriesListResponse$zodSchema: z.ZodType<
|
|
45
|
+
V2AgentAnalyticsCountriesListResponse
|
|
46
|
+
> = z.union([
|
|
47
|
+
PublicAgentAnalyticsCountryListResponse$zodSchema,
|
|
48
|
+
HTTPValidationError$zodSchema,
|
|
49
|
+
]);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9329eca6bf33
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
HTTPValidationError,
|
|
10
|
+
HTTPValidationError$zodSchema,
|
|
11
|
+
} from "./httpvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
PublicAgentAnalyticsErrorPageListResponse,
|
|
14
|
+
PublicAgentAnalyticsErrorPageListResponse$zodSchema,
|
|
15
|
+
} from "./publicagentanalyticserrorpagelistresponse.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Only errors this traffic type got.
|
|
19
|
+
*/
|
|
20
|
+
export const V2AgentAnalyticsErrorPagesListType = {
|
|
21
|
+
Coding: "coding",
|
|
22
|
+
User: "user",
|
|
23
|
+
Search: "search",
|
|
24
|
+
Training: "training",
|
|
25
|
+
Other: "other",
|
|
26
|
+
People: "people",
|
|
27
|
+
} as const;
|
|
28
|
+
/**
|
|
29
|
+
* Only errors this traffic type got.
|
|
30
|
+
*/
|
|
31
|
+
export type V2AgentAnalyticsErrorPagesListType = ClosedEnum<
|
|
32
|
+
typeof V2AgentAnalyticsErrorPagesListType
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
export const V2AgentAnalyticsErrorPagesListType$zodSchema = z.enum([
|
|
36
|
+
"coding",
|
|
37
|
+
"user",
|
|
38
|
+
"search",
|
|
39
|
+
"training",
|
|
40
|
+
"other",
|
|
41
|
+
"people",
|
|
42
|
+
]).describe("Only errors this traffic type got.");
|
|
43
|
+
|
|
44
|
+
export type V2AgentAnalyticsErrorPagesListRequest = {
|
|
45
|
+
site_id: string;
|
|
46
|
+
start_date?: string | undefined;
|
|
47
|
+
end_date?: string | undefined;
|
|
48
|
+
period?: string | undefined;
|
|
49
|
+
limit?: number | undefined;
|
|
50
|
+
status?: number | undefined;
|
|
51
|
+
type?: V2AgentAnalyticsErrorPagesListType | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const V2AgentAnalyticsErrorPagesListRequest$zodSchema: z.ZodType<
|
|
55
|
+
V2AgentAnalyticsErrorPagesListRequest
|
|
56
|
+
> = z.object({
|
|
57
|
+
end_date: z.string().date().describe(
|
|
58
|
+
"Inclusive range end in UTC; defaults to today.",
|
|
59
|
+
).optional(),
|
|
60
|
+
limit: z.int().default(50),
|
|
61
|
+
period: z.string().describe(
|
|
62
|
+
"Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
|
|
63
|
+
).optional(),
|
|
64
|
+
site_id: z.string(),
|
|
65
|
+
start_date: z.string().date().describe(
|
|
66
|
+
"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
|
|
67
|
+
).optional(),
|
|
68
|
+
status: z.int().describe("Only this status code, such as 404.").optional(),
|
|
69
|
+
type: V2AgentAnalyticsErrorPagesListType$zodSchema.optional().describe(
|
|
70
|
+
"Only errors this traffic type got.",
|
|
71
|
+
),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export type V2AgentAnalyticsErrorPagesListResponse =
|
|
75
|
+
| PublicAgentAnalyticsErrorPageListResponse
|
|
76
|
+
| HTTPValidationError;
|
|
77
|
+
|
|
78
|
+
export const V2AgentAnalyticsErrorPagesListResponse$zodSchema: z.ZodType<
|
|
79
|
+
V2AgentAnalyticsErrorPagesListResponse
|
|
80
|
+
> = z.union([
|
|
81
|
+
PublicAgentAnalyticsErrorPageListResponse$zodSchema,
|
|
82
|
+
HTTPValidationError$zodSchema,
|
|
83
|
+
]);
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1623e8feffb2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
HTTPValidationError,
|
|
10
|
+
HTTPValidationError$zodSchema,
|
|
11
|
+
} from "./httpvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
PublicAgentAnalyticsPageListResponse,
|
|
14
|
+
PublicAgentAnalyticsPageListResponse$zodSchema,
|
|
15
|
+
} from "./publicagentanalyticspagelistresponse.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
|
|
19
|
+
*/
|
|
20
|
+
export const Sort = {
|
|
21
|
+
Coding: "coding",
|
|
22
|
+
User: "user",
|
|
23
|
+
Search: "search",
|
|
24
|
+
Training: "training",
|
|
25
|
+
Other: "other",
|
|
26
|
+
People: "people",
|
|
27
|
+
AiTotal: "ai_total",
|
|
28
|
+
LastSeen: "last_seen",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.
|
|
32
|
+
*/
|
|
33
|
+
export type Sort = ClosedEnum<typeof Sort>;
|
|
34
|
+
|
|
35
|
+
export const Sort$zodSchema = z.enum([
|
|
36
|
+
"coding",
|
|
37
|
+
"user",
|
|
38
|
+
"search",
|
|
39
|
+
"training",
|
|
40
|
+
"other",
|
|
41
|
+
"people",
|
|
42
|
+
"ai_total",
|
|
43
|
+
"last_seen",
|
|
44
|
+
]).describe(
|
|
45
|
+
"Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Only pages this traffic type visited.
|
|
50
|
+
*/
|
|
51
|
+
export const V2AgentAnalyticsPagesListType = {
|
|
52
|
+
Coding: "coding",
|
|
53
|
+
User: "user",
|
|
54
|
+
Search: "search",
|
|
55
|
+
Training: "training",
|
|
56
|
+
Other: "other",
|
|
57
|
+
People: "people",
|
|
58
|
+
} as const;
|
|
59
|
+
/**
|
|
60
|
+
* Only pages this traffic type visited.
|
|
61
|
+
*/
|
|
62
|
+
export type V2AgentAnalyticsPagesListType = ClosedEnum<
|
|
63
|
+
typeof V2AgentAnalyticsPagesListType
|
|
64
|
+
>;
|
|
65
|
+
|
|
66
|
+
export const V2AgentAnalyticsPagesListType$zodSchema = z.enum([
|
|
67
|
+
"coding",
|
|
68
|
+
"user",
|
|
69
|
+
"search",
|
|
70
|
+
"training",
|
|
71
|
+
"other",
|
|
72
|
+
"people",
|
|
73
|
+
]).describe("Only pages this traffic type visited.");
|
|
74
|
+
|
|
75
|
+
export type V2AgentAnalyticsPagesListRequest = {
|
|
76
|
+
site_id: string;
|
|
77
|
+
start_date?: string | undefined;
|
|
78
|
+
end_date?: string | undefined;
|
|
79
|
+
period?: string | undefined;
|
|
80
|
+
limit?: number | undefined;
|
|
81
|
+
search?: string | undefined;
|
|
82
|
+
sort?: Sort | undefined;
|
|
83
|
+
type?: V2AgentAnalyticsPagesListType | undefined;
|
|
84
|
+
agent?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const V2AgentAnalyticsPagesListRequest$zodSchema: z.ZodType<
|
|
88
|
+
V2AgentAnalyticsPagesListRequest
|
|
89
|
+
> = z.object({
|
|
90
|
+
agent: z.string().describe(
|
|
91
|
+
"Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.",
|
|
92
|
+
).optional(),
|
|
93
|
+
end_date: z.string().date().describe(
|
|
94
|
+
"Inclusive range end in UTC; defaults to today.",
|
|
95
|
+
).optional(),
|
|
96
|
+
limit: z.int().default(20),
|
|
97
|
+
period: z.string().describe(
|
|
98
|
+
"Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
|
|
99
|
+
).optional(),
|
|
100
|
+
search: z.string().describe("Only pages whose path contains this text.")
|
|
101
|
+
.optional(),
|
|
102
|
+
site_id: z.string(),
|
|
103
|
+
sort: Sort$zodSchema.default("ai_total").describe(
|
|
104
|
+
"Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.",
|
|
105
|
+
),
|
|
106
|
+
start_date: z.string().date().describe(
|
|
107
|
+
"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
|
|
108
|
+
).optional(),
|
|
109
|
+
type: V2AgentAnalyticsPagesListType$zodSchema.optional().describe(
|
|
110
|
+
"Only pages this traffic type visited.",
|
|
111
|
+
),
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export type V2AgentAnalyticsPagesListResponse =
|
|
115
|
+
| PublicAgentAnalyticsPageListResponse
|
|
116
|
+
| HTTPValidationError;
|
|
117
|
+
|
|
118
|
+
export const V2AgentAnalyticsPagesListResponse$zodSchema: z.ZodType<
|
|
119
|
+
V2AgentAnalyticsPagesListResponse
|
|
120
|
+
> = z.union([
|
|
121
|
+
PublicAgentAnalyticsPageListResponse$zodSchema,
|
|
122
|
+
HTTPValidationError$zodSchema,
|
|
123
|
+
]);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: da5c8805b14f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicAgentAnalyticsSourceListResponse,
|
|
13
|
+
PublicAgentAnalyticsSourceListResponse$zodSchema,
|
|
14
|
+
} from "./publicagentanalyticssourcelistresponse.js";
|
|
15
|
+
|
|
16
|
+
export type V2AgentAnalyticsSourcesListRequest = {
|
|
17
|
+
site_id: string;
|
|
18
|
+
start_date?: string | undefined;
|
|
19
|
+
end_date?: string | undefined;
|
|
20
|
+
period?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const V2AgentAnalyticsSourcesListRequest$zodSchema: z.ZodType<
|
|
24
|
+
V2AgentAnalyticsSourcesListRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
end_date: z.string().date().describe(
|
|
27
|
+
"Inclusive range end in UTC; defaults to today.",
|
|
28
|
+
).optional(),
|
|
29
|
+
period: z.string().describe(
|
|
30
|
+
"Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
|
|
31
|
+
).optional(),
|
|
32
|
+
site_id: z.string(),
|
|
33
|
+
start_date: z.string().date().describe(
|
|
34
|
+
"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
|
|
35
|
+
).optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type V2AgentAnalyticsSourcesListResponse =
|
|
39
|
+
| PublicAgentAnalyticsSourceListResponse
|
|
40
|
+
| HTTPValidationError;
|
|
41
|
+
|
|
42
|
+
export const V2AgentAnalyticsSourcesListResponse$zodSchema: z.ZodType<
|
|
43
|
+
V2AgentAnalyticsSourcesListResponse
|
|
44
|
+
> = z.union([
|
|
45
|
+
PublicAgentAnalyticsSourceListResponse$zodSchema,
|
|
46
|
+
HTTPValidationError$zodSchema,
|
|
47
|
+
]);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b5dfa63686f4
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
PublicAgentAnalyticsSummary,
|
|
13
|
+
PublicAgentAnalyticsSummary$zodSchema,
|
|
14
|
+
} from "./publicagentanalyticssummary.js";
|
|
15
|
+
|
|
16
|
+
export type V2AgentAnalyticsSummaryRetrieveRequest = {
|
|
17
|
+
site_id: string;
|
|
18
|
+
start_date?: string | undefined;
|
|
19
|
+
end_date?: string | undefined;
|
|
20
|
+
period?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const V2AgentAnalyticsSummaryRetrieveRequest$zodSchema: z.ZodType<
|
|
24
|
+
V2AgentAnalyticsSummaryRetrieveRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
end_date: z.string().date().describe(
|
|
27
|
+
"Inclusive range end in UTC; defaults to today.",
|
|
28
|
+
).optional(),
|
|
29
|
+
period: z.string().describe(
|
|
30
|
+
"Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.",
|
|
31
|
+
).optional(),
|
|
32
|
+
site_id: z.string(),
|
|
33
|
+
start_date: z.string().date().describe(
|
|
34
|
+
"Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.",
|
|
35
|
+
).optional(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export type V2AgentAnalyticsSummaryRetrieveResponse =
|
|
39
|
+
| PublicAgentAnalyticsSummary
|
|
40
|
+
| HTTPValidationError;
|
|
41
|
+
|
|
42
|
+
export const V2AgentAnalyticsSummaryRetrieveResponse$zodSchema: z.ZodType<
|
|
43
|
+
V2AgentAnalyticsSummaryRetrieveResponse
|
|
44
|
+
> = z.union([
|
|
45
|
+
PublicAgentAnalyticsSummary$zodSchema,
|
|
46
|
+
HTTPValidationError$zodSchema,
|
|
47
|
+
]);
|
|
@@ -38,7 +38,7 @@ export const V2InlineMcpDefinition$zodSchema: z.ZodType<V2InlineMcpDefinition> =
|
|
|
38
38
|
"Executable command for a `stdio` MCP server.",
|
|
39
39
|
),
|
|
40
40
|
env: z.record(z.string(), z.string()).optional().describe(
|
|
41
|
-
"Environment mapping for a `stdio` MCP server. Values may reference run
|
|
41
|
+
"Environment mapping for a `stdio` MCP server. Values may reference the run environment's variables with `${VARIABLE_NAME}`; secrets (names ending in KEY, TOKEN, SECRET or PASSWORD) must.",
|
|
42
42
|
),
|
|
43
43
|
headers: z.record(z.string(), z.string()).optional().describe(
|
|
44
44
|
"HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials.",
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d19d5cd47b00
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
V2PromptRunJobResponse,
|
|
13
|
+
V2PromptRunJobResponse$zodSchema,
|
|
14
|
+
} from "./v2promptrunjobresponse.js";
|
|
15
|
+
|
|
16
|
+
export type V2PromptRunsCancelRequest = { run_id: string };
|
|
17
|
+
|
|
18
|
+
export const V2PromptRunsCancelRequest$zodSchema: z.ZodType<
|
|
19
|
+
V2PromptRunsCancelRequest
|
|
20
|
+
> = z.object({
|
|
21
|
+
run_id: z.string().describe(
|
|
22
|
+
"Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.",
|
|
23
|
+
),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Prompt run cancellation is temporarily unavailable.
|
|
28
|
+
*/
|
|
29
|
+
export type V2PromptRunsCancelServiceUnavailableResponseBody = {
|
|
30
|
+
detail: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema:
|
|
34
|
+
z.ZodType<V2PromptRunsCancelServiceUnavailableResponseBody> = z.object({
|
|
35
|
+
detail: z.string(),
|
|
36
|
+
}).describe("Prompt run cancellation is temporarily unavailable.");
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The prompt run has already completed or failed.
|
|
40
|
+
*/
|
|
41
|
+
export type V2PromptRunsCancelConflictResponseBody = { detail: string };
|
|
42
|
+
|
|
43
|
+
export const V2PromptRunsCancelConflictResponseBody$zodSchema: z.ZodType<
|
|
44
|
+
V2PromptRunsCancelConflictResponseBody
|
|
45
|
+
> = z.object({
|
|
46
|
+
detail: z.string(),
|
|
47
|
+
}).describe("The prompt run has already completed or failed.");
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Prompt run not found. Use the run ID returned when you started the prompt run.
|
|
51
|
+
*/
|
|
52
|
+
export type V2PromptRunsCancelNotFoundResponseBody = { detail: string };
|
|
53
|
+
|
|
54
|
+
export const V2PromptRunsCancelNotFoundResponseBody$zodSchema: z.ZodType<
|
|
55
|
+
V2PromptRunsCancelNotFoundResponseBody
|
|
56
|
+
> = z.object({
|
|
57
|
+
detail: z.string(),
|
|
58
|
+
}).describe(
|
|
59
|
+
"Prompt run not found. Use the run ID returned when you started the prompt run.",
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The prompt run ID is not a valid UUID.
|
|
64
|
+
*/
|
|
65
|
+
export type V2PromptRunsCancelBadRequestResponseBody = { detail: string };
|
|
66
|
+
|
|
67
|
+
export const V2PromptRunsCancelBadRequestResponseBody$zodSchema: z.ZodType<
|
|
68
|
+
V2PromptRunsCancelBadRequestResponseBody
|
|
69
|
+
> = z.object({
|
|
70
|
+
detail: z.string(),
|
|
71
|
+
}).describe("The prompt run ID is not a valid UUID.");
|
|
72
|
+
|
|
73
|
+
export type V2PromptRunsCancelResponse =
|
|
74
|
+
| V2PromptRunJobResponse
|
|
75
|
+
| V2PromptRunsCancelBadRequestResponseBody
|
|
76
|
+
| V2PromptRunsCancelNotFoundResponseBody
|
|
77
|
+
| V2PromptRunsCancelConflictResponseBody
|
|
78
|
+
| V2PromptRunsCancelServiceUnavailableResponseBody
|
|
79
|
+
| HTTPValidationError;
|
|
80
|
+
|
|
81
|
+
export const V2PromptRunsCancelResponse$zodSchema: z.ZodType<
|
|
82
|
+
V2PromptRunsCancelResponse
|
|
83
|
+
> = z.union([
|
|
84
|
+
V2PromptRunJobResponse$zodSchema,
|
|
85
|
+
z.lazy(() => V2PromptRunsCancelBadRequestResponseBody$zodSchema),
|
|
86
|
+
z.lazy(() => V2PromptRunsCancelNotFoundResponseBody$zodSchema),
|
|
87
|
+
z.lazy(() => V2PromptRunsCancelConflictResponseBody$zodSchema),
|
|
88
|
+
z.lazy(() => V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema),
|
|
89
|
+
HTTPValidationError$zodSchema,
|
|
90
|
+
]);
|
|
@@ -9,16 +9,16 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Whether the repository is a read-only built-in template or an organization-owned saved repository.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const V2RepositoryKind = {
|
|
13
13
|
Template: "template",
|
|
14
14
|
Saved: "saved",
|
|
15
15
|
} as const;
|
|
16
16
|
/**
|
|
17
17
|
* Whether the repository is a read-only built-in template or an organization-owned saved repository.
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type V2RepositoryKind = ClosedEnum<typeof V2RepositoryKind>;
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const V2RepositoryKind$zodSchema = z.enum([
|
|
22
22
|
"template",
|
|
23
23
|
"saved",
|
|
24
24
|
]).describe(
|
|
@@ -54,7 +54,7 @@ export const V2RepositoryFramework$zodSchema = z.enum([
|
|
|
54
54
|
|
|
55
55
|
export type V2Repository = {
|
|
56
56
|
id: string;
|
|
57
|
-
kind:
|
|
57
|
+
kind: V2RepositoryKind;
|
|
58
58
|
name: string;
|
|
59
59
|
repo_url: string;
|
|
60
60
|
ref: string;
|
|
@@ -74,7 +74,7 @@ export const V2Repository$zodSchema: z.ZodType<V2Repository> = z.object({
|
|
|
74
74
|
"Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs.",
|
|
75
75
|
),
|
|
76
76
|
install_steps: z.array(z.string()).optional(),
|
|
77
|
-
kind:
|
|
77
|
+
kind: V2RepositoryKind$zodSchema.describe(
|
|
78
78
|
"Whether the repository is a read-only built-in template or an organization-owned saved repository.",
|
|
79
79
|
),
|
|
80
80
|
name: z.string(),
|