@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
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 61717c0f36b3
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
V2AgentAnalyticsSummaryRetrieveRequest,
|
|
24
|
+
V2AgentAnalyticsSummaryRetrieveRequest$zodSchema,
|
|
25
|
+
} from "../models/v2agentanalyticssummaryretrieveop.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve Agent Analytics Summary
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named `period`).
|
|
34
|
+
*/
|
|
35
|
+
export function agentAnalyticsSummaryRetrieve(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: V2AgentAnalyticsSummaryRetrieveRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: V2AgentAnalyticsSummaryRetrieveRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => V2AgentAnalyticsSummaryRetrieveRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = null;
|
|
87
|
+
|
|
88
|
+
const pathParams$ = {
|
|
89
|
+
site_id: encodeSimple("site_id", payload$.site_id, {
|
|
90
|
+
explode: false,
|
|
91
|
+
charEncoding: "percent",
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/summary")(
|
|
95
|
+
pathParams$,
|
|
96
|
+
);
|
|
97
|
+
const query$ = encodeFormQuery({
|
|
98
|
+
"end_date": payload$.end_date,
|
|
99
|
+
"period": payload$.period,
|
|
100
|
+
"start_date": payload$.start_date,
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const headers$ = new Headers(compactMap({
|
|
104
|
+
Accept: "application/json",
|
|
105
|
+
}));
|
|
106
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client$._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
112
|
+
operationID: "v2_agent_analytics_summary_retrieve",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
resolvedSecurity: requestSecurity,
|
|
115
|
+
securitySource: client$._options.security,
|
|
116
|
+
retryConfig: options?.retries
|
|
117
|
+
|| client$._options.retryConfig
|
|
118
|
+
|| { strategy: "none" },
|
|
119
|
+
retryCodes: options?.retryCodes || [
|
|
120
|
+
"429",
|
|
121
|
+
"500",
|
|
122
|
+
"502",
|
|
123
|
+
"503",
|
|
124
|
+
"504",
|
|
125
|
+
],
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const requestRes = client$._createRequest(context, {
|
|
129
|
+
security: requestSecurity,
|
|
130
|
+
method: "GET",
|
|
131
|
+
baseURL: options?.serverURL,
|
|
132
|
+
path: path$,
|
|
133
|
+
headers: headers$,
|
|
134
|
+
query: query$,
|
|
135
|
+
body: body$,
|
|
136
|
+
userAgent: client$._options.userAgent,
|
|
137
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
138
|
+
|| -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [requestRes, { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req$ = requestRes.value;
|
|
144
|
+
|
|
145
|
+
const doResult = await client$._do(req$, {
|
|
146
|
+
context,
|
|
147
|
+
errorCodes: [],
|
|
148
|
+
retryConfig: context.retryConfig,
|
|
149
|
+
retryCodes: context.retryCodes,
|
|
150
|
+
});
|
|
151
|
+
if (!doResult.ok) {
|
|
152
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
153
|
+
}
|
|
154
|
+
return [doResult, {
|
|
155
|
+
status: "complete",
|
|
156
|
+
"request": req$,
|
|
157
|
+
response: doResult.value,
|
|
158
|
+
}];
|
|
159
|
+
}
|
package/src/funcs/agentsList.ts
CHANGED
|
@@ -24,7 +24,7 @@ import { Result } from "../types/fp.js";
|
|
|
24
24
|
* List Agents
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Returns the harness-and-model combinations your plan can run, as single agent IDs
|
|
27
|
+
* Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product.
|
|
28
28
|
*/
|
|
29
29
|
export function agentsList(
|
|
30
30
|
client$: LightsageMcpCore,
|
package/src/funcs/evalsCreate.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.
|
|
34
|
+
*
|
|
35
|
+
* Evals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with `POST /v2/prompts/runs` instead.
|
|
34
36
|
*/
|
|
35
37
|
export function evalsCreate(
|
|
36
38
|
client$: LightsageMcpCore,
|
package/src/funcs/evalsRun.ts
CHANGED
|
@@ -32,6 +32,8 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Queues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
|
|
34
34
|
*
|
|
35
|
+
* Eval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use `POST /v2/prompts/runs` with `agent` instead.
|
|
36
|
+
*
|
|
35
37
|
* Send one of these flat request forms:
|
|
36
38
|
*
|
|
37
39
|
* - **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
package/src/funcs/promptsRun.ts
CHANGED
|
@@ -30,11 +30,15 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Run Prompts
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Queue saved prompts
|
|
33
|
+
* Queue saved prompts on answer engines and coding agents.
|
|
34
34
|
*
|
|
35
35
|
* Provide `prompt_ids` to run selected prompts, or omit them to run all active
|
|
36
|
-
* prompts.
|
|
37
|
-
*
|
|
36
|
+
* prompts. By default the run uses the organization's configured targets.
|
|
37
|
+
* Provide `agent` with IDs from `GET /v2/agents` to run the prompts on
|
|
38
|
+
* specific coding-agent harnesses and models instead, for example to compare
|
|
39
|
+
* how several coding tools answer the same developer question. Results
|
|
40
|
+
* include mentions and citations. Saved prompt run settings apply to
|
|
41
|
+
* coding-agent targets. The response returns a run ID to poll with
|
|
38
42
|
* `GET /v2/prompts/runs/{run_id}/status`.
|
|
39
43
|
*/
|
|
40
44
|
export function promptsRun(
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ebd8b3d30dc1
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
V2PromptRunsCancelRequest,
|
|
24
|
+
V2PromptRunsCancelRequest$zodSchema,
|
|
25
|
+
} from "../models/v2promptrunscancelop.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Cancel a prompt run
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
export function promptsRunCancel(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: V2PromptRunsCancelRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: V2PromptRunsCancelRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = null;
|
|
87
|
+
|
|
88
|
+
const pathParams$ = {
|
|
89
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
90
|
+
explode: false,
|
|
91
|
+
charEncoding: "percent",
|
|
92
|
+
}),
|
|
93
|
+
};
|
|
94
|
+
const path$ = pathToFunc("/v2/prompts/runs/{run_id}/cancel")(
|
|
95
|
+
pathParams$,
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const headers$ = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
}));
|
|
101
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client$._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
107
|
+
operationID: "v2_prompt_runs_cancel",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
securitySource: client$._options.security,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client$._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || [
|
|
115
|
+
"429",
|
|
116
|
+
"500",
|
|
117
|
+
"502",
|
|
118
|
+
"503",
|
|
119
|
+
"504",
|
|
120
|
+
],
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const requestRes = client$._createRequest(context, {
|
|
124
|
+
security: requestSecurity,
|
|
125
|
+
method: "POST",
|
|
126
|
+
baseURL: options?.serverURL,
|
|
127
|
+
path: path$,
|
|
128
|
+
headers: headers$,
|
|
129
|
+
body: body$,
|
|
130
|
+
userAgent: client$._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
132
|
+
|| -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req$ = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client$._do(req$, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: [],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
147
|
+
}
|
|
148
|
+
return [doResult, {
|
|
149
|
+
status: "complete",
|
|
150
|
+
"request": req$,
|
|
151
|
+
response: doResult.value,
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0e59c249fad2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
CreateTaskRequest,
|
|
15
|
+
CreateTaskRequest$zodSchema,
|
|
16
|
+
} from "../models/createtaskrequest.js";
|
|
17
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
18
|
+
import {
|
|
19
|
+
ConnectionError,
|
|
20
|
+
InvalidRequestError,
|
|
21
|
+
RequestAbortedError,
|
|
22
|
+
RequestTimeoutError,
|
|
23
|
+
UnexpectedClientError,
|
|
24
|
+
} from "../models/errors/httpclienterrors.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create Task
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Adds a task to today's queue and returns it with its execution prompt. New tasks start as `new`.
|
|
34
|
+
*/
|
|
35
|
+
export function tasksCreate(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request: CreateTaskRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request: CreateTaskRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) => CreateTaskRequest$zodSchema.parse(value$),
|
|
80
|
+
"Input validation failed",
|
|
81
|
+
);
|
|
82
|
+
if (!parsed$.ok) {
|
|
83
|
+
return [parsed$, { status: "invalid" }];
|
|
84
|
+
}
|
|
85
|
+
const payload$ = parsed$.value;
|
|
86
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
87
|
+
const path$ = pathToFunc("/v2/tasks")();
|
|
88
|
+
|
|
89
|
+
const headers$ = new Headers(compactMap({
|
|
90
|
+
"Content-Type": "application/json",
|
|
91
|
+
Accept: "application/json",
|
|
92
|
+
}));
|
|
93
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
94
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
95
|
+
|
|
96
|
+
const context = {
|
|
97
|
+
options: client$._options,
|
|
98
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
99
|
+
operationID: "v2_tasks_create",
|
|
100
|
+
oAuth2Scopes: null,
|
|
101
|
+
resolvedSecurity: requestSecurity,
|
|
102
|
+
securitySource: client$._options.security,
|
|
103
|
+
retryConfig: options?.retries
|
|
104
|
+
|| client$._options.retryConfig
|
|
105
|
+
|| { strategy: "none" },
|
|
106
|
+
retryCodes: options?.retryCodes || [
|
|
107
|
+
"429",
|
|
108
|
+
"500",
|
|
109
|
+
"502",
|
|
110
|
+
"503",
|
|
111
|
+
"504",
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
const requestRes = client$._createRequest(context, {
|
|
116
|
+
security: requestSecurity,
|
|
117
|
+
method: "POST",
|
|
118
|
+
baseURL: options?.serverURL,
|
|
119
|
+
path: path$,
|
|
120
|
+
headers: headers$,
|
|
121
|
+
body: body$,
|
|
122
|
+
userAgent: client$._options.userAgent,
|
|
123
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
124
|
+
|| -1,
|
|
125
|
+
}, options);
|
|
126
|
+
if (!requestRes.ok) {
|
|
127
|
+
return [requestRes, { status: "invalid" }];
|
|
128
|
+
}
|
|
129
|
+
const req$ = requestRes.value;
|
|
130
|
+
|
|
131
|
+
const doResult = await client$._do(req$, {
|
|
132
|
+
context,
|
|
133
|
+
errorCodes: [],
|
|
134
|
+
retryConfig: context.retryConfig,
|
|
135
|
+
retryCodes: context.retryCodes,
|
|
136
|
+
});
|
|
137
|
+
if (!doResult.ok) {
|
|
138
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
139
|
+
}
|
|
140
|
+
return [doResult, {
|
|
141
|
+
status: "complete",
|
|
142
|
+
"request": req$,
|
|
143
|
+
response: doResult.value,
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* List Top Cited Urls
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.
|
|
33
|
+
* 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.
|
|
34
34
|
*/
|
|
35
35
|
export function visibilityCitationsList(
|
|
36
36
|
client$: LightsageMcpCore,
|
|
@@ -89,6 +89,7 @@ async function $do(
|
|
|
89
89
|
const query$ = encodeFormQuery({
|
|
90
90
|
"end_date": payload$?.end_date,
|
|
91
91
|
"limit": payload$?.limit,
|
|
92
|
+
"period": payload$?.period,
|
|
92
93
|
"platform": payload$?.platform,
|
|
93
94
|
"source_type": payload$?.source_type,
|
|
94
95
|
"start_date": payload$?.start_date,
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ce453917507f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { LightsageMcpCore } from "../core.js";
|
|
7
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import {
|
|
23
|
+
V2VisibilityCitationsSummaryRetrieveRequest,
|
|
24
|
+
V2VisibilityCitationsSummaryRetrieveRequest$zodSchema,
|
|
25
|
+
} from "../models/v2visibilitycitationssummaryretrieveop.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve Citation Summary
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
export function visibilityCitationsSummaryRetrieve(
|
|
36
|
+
client$: LightsageMcpCore,
|
|
37
|
+
request?: V2VisibilityCitationsSummaryRetrieveRequest | undefined,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
Response,
|
|
42
|
+
| APIError
|
|
43
|
+
| SDKValidationError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| ConnectionError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client$,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client$: LightsageMcpCore,
|
|
60
|
+
request?: V2VisibilityCitationsSummaryRetrieveRequest | undefined,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
Response,
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
76
|
+
> {
|
|
77
|
+
const parsed$ = safeParse(
|
|
78
|
+
request,
|
|
79
|
+
(value$) =>
|
|
80
|
+
V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(
|
|
81
|
+
value$,
|
|
82
|
+
),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed$.ok) {
|
|
86
|
+
return [parsed$, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload$ = parsed$.value;
|
|
89
|
+
const body$ = null;
|
|
90
|
+
const path$ = pathToFunc("/v2/visibility/citations/summary")();
|
|
91
|
+
const query$ = encodeFormQuery({
|
|
92
|
+
"end_date": payload$?.end_date,
|
|
93
|
+
"group_by": payload$?.group_by,
|
|
94
|
+
"limit": payload$?.limit,
|
|
95
|
+
"period": payload$?.period,
|
|
96
|
+
"platform": payload$?.platform,
|
|
97
|
+
"source_type": payload$?.source_type,
|
|
98
|
+
"start_date": payload$?.start_date,
|
|
99
|
+
"url_prefix": payload$?.url_prefix,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const headers$ = new Headers(compactMap({
|
|
103
|
+
Accept: "application/json",
|
|
104
|
+
}));
|
|
105
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
106
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
|
+
|
|
108
|
+
const context = {
|
|
109
|
+
options: client$._options,
|
|
110
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
111
|
+
operationID: "v2_visibility_citations_summary_retrieve",
|
|
112
|
+
oAuth2Scopes: null,
|
|
113
|
+
resolvedSecurity: requestSecurity,
|
|
114
|
+
securitySource: client$._options.security,
|
|
115
|
+
retryConfig: options?.retries
|
|
116
|
+
|| client$._options.retryConfig
|
|
117
|
+
|| { strategy: "none" },
|
|
118
|
+
retryCodes: options?.retryCodes || [
|
|
119
|
+
"429",
|
|
120
|
+
"500",
|
|
121
|
+
"502",
|
|
122
|
+
"503",
|
|
123
|
+
"504",
|
|
124
|
+
],
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const requestRes = client$._createRequest(context, {
|
|
128
|
+
security: requestSecurity,
|
|
129
|
+
method: "GET",
|
|
130
|
+
baseURL: options?.serverURL,
|
|
131
|
+
path: path$,
|
|
132
|
+
headers: headers$,
|
|
133
|
+
query: query$,
|
|
134
|
+
body: body$,
|
|
135
|
+
userAgent: client$._options.userAgent,
|
|
136
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs
|
|
137
|
+
|| -1,
|
|
138
|
+
}, options);
|
|
139
|
+
if (!requestRes.ok) {
|
|
140
|
+
return [requestRes, { status: "invalid" }];
|
|
141
|
+
}
|
|
142
|
+
const req$ = requestRes.value;
|
|
143
|
+
|
|
144
|
+
const doResult = await client$._do(req$, {
|
|
145
|
+
context,
|
|
146
|
+
errorCodes: [],
|
|
147
|
+
retryConfig: context.retryConfig,
|
|
148
|
+
retryCodes: context.retryCodes,
|
|
149
|
+
});
|
|
150
|
+
if (!doResult.ok) {
|
|
151
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
152
|
+
}
|
|
153
|
+
return [doResult, {
|
|
154
|
+
status: "complete",
|
|
155
|
+
"request": req$,
|
|
156
|
+
response: doResult.value,
|
|
157
|
+
}];
|
|
158
|
+
}
|