@fern-api/fdr-sdk 1.2.88-08d0bf2dd6 → 1.2.88-6d9f97c9c6

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.
@@ -2008,6 +2008,49 @@ var ResolvedDateRangeSchema = z9.object({
2008
2008
  endDate: z9.string()
2009
2009
  });
2010
2010
  var AnalyticsSourceSchema = z9.enum(["cache", "live"]);
2011
+ var TrafficSummaryResponseSchema = z9.object({
2012
+ resolvedDateRange: ResolvedDateRangeSchema,
2013
+ metrics: z9.object({
2014
+ visitors: z9.number(),
2015
+ pageViews: z9.number(),
2016
+ // Absent on cache hits: the daily snapshot does not track sessions.
2017
+ sessions: z9.number().optional()
2018
+ }),
2019
+ baseSiteUrl: z9.string(),
2020
+ source: AnalyticsSourceSchema
2021
+ });
2022
+ var TopPagesResponseSchema = z9.object({
2023
+ resolvedDateRange: ResolvedDateRangeSchema,
2024
+ topPages: z9.array(
2025
+ z9.object({
2026
+ path: z9.string(),
2027
+ visitors: z9.number(),
2028
+ views: z9.number()
2029
+ })
2030
+ ),
2031
+ source: AnalyticsSourceSchema
2032
+ });
2033
+ var Pages404ResponseSchema = z9.object({
2034
+ resolvedDateRange: ResolvedDateRangeSchema,
2035
+ pages404: z9.array(
2036
+ z9.object({
2037
+ path: z9.string(),
2038
+ count: z9.number()
2039
+ })
2040
+ ),
2041
+ source: AnalyticsSourceSchema
2042
+ });
2043
+ var ReferringDomainsResponseSchema = z9.object({
2044
+ resolvedDateRange: ResolvedDateRangeSchema,
2045
+ referringDomains: z9.array(
2046
+ z9.object({
2047
+ domain: z9.string(),
2048
+ visitors: z9.number(),
2049
+ views: z9.number()
2050
+ })
2051
+ ),
2052
+ source: AnalyticsSourceSchema
2053
+ });
2011
2054
  var LlmBotTrafficResponseSchema = z9.object({
2012
2055
  resolvedDateRange: ResolvedDateRangeSchema,
2013
2056
  providers: z9.array(
@@ -2098,6 +2141,10 @@ var SiteSettingsResponseSchema = z9.object({
2098
2141
  passwordProtection: SitePasswordProtectionSchema
2099
2142
  });
2100
2143
  var dashboardAgentContract = {
2144
+ getTrafficSummary: oc4.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
2145
+ getTopPages: oc4.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
2146
+ get404Pages: oc4.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
2147
+ getReferringDomains: oc4.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
2101
2148
  getLlmBotTraffic: oc4.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
2102
2149
  getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
2103
2150
  queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),