@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.
package/dist/js/index.mjs CHANGED
@@ -7333,6 +7333,49 @@ var ResolvedDateRangeSchema = z9.object({
7333
7333
  endDate: z9.string()
7334
7334
  });
7335
7335
  var AnalyticsSourceSchema = z9.enum(["cache", "live"]);
7336
+ var TrafficSummaryResponseSchema = z9.object({
7337
+ resolvedDateRange: ResolvedDateRangeSchema,
7338
+ metrics: z9.object({
7339
+ visitors: z9.number(),
7340
+ pageViews: z9.number(),
7341
+ // Absent on cache hits: the daily snapshot does not track sessions.
7342
+ sessions: z9.number().optional()
7343
+ }),
7344
+ baseSiteUrl: z9.string(),
7345
+ source: AnalyticsSourceSchema
7346
+ });
7347
+ var TopPagesResponseSchema = z9.object({
7348
+ resolvedDateRange: ResolvedDateRangeSchema,
7349
+ topPages: z9.array(
7350
+ z9.object({
7351
+ path: z9.string(),
7352
+ visitors: z9.number(),
7353
+ views: z9.number()
7354
+ })
7355
+ ),
7356
+ source: AnalyticsSourceSchema
7357
+ });
7358
+ var Pages404ResponseSchema = z9.object({
7359
+ resolvedDateRange: ResolvedDateRangeSchema,
7360
+ pages404: z9.array(
7361
+ z9.object({
7362
+ path: z9.string(),
7363
+ count: z9.number()
7364
+ })
7365
+ ),
7366
+ source: AnalyticsSourceSchema
7367
+ });
7368
+ var ReferringDomainsResponseSchema = z9.object({
7369
+ resolvedDateRange: ResolvedDateRangeSchema,
7370
+ referringDomains: z9.array(
7371
+ z9.object({
7372
+ domain: z9.string(),
7373
+ visitors: z9.number(),
7374
+ views: z9.number()
7375
+ })
7376
+ ),
7377
+ source: AnalyticsSourceSchema
7378
+ });
7336
7379
  var LlmBotTrafficResponseSchema = z9.object({
7337
7380
  resolvedDateRange: ResolvedDateRangeSchema,
7338
7381
  providers: z9.array(
@@ -7423,6 +7466,10 @@ var SiteSettingsResponseSchema = z9.object({
7423
7466
  passwordProtection: SitePasswordProtectionSchema
7424
7467
  });
7425
7468
  var dashboardAgentContract = {
7469
+ getTrafficSummary: oc4.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
7470
+ getTopPages: oc4.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
7471
+ get404Pages: oc4.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
7472
+ getReferringDomains: oc4.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
7426
7473
  getLlmBotTraffic: oc4.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
7427
7474
  getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
7428
7475
  queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),