@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/client/FdrClient.js +47 -0
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +47 -0
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +47 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +47 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +55 -0
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +51 -0
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/dashboard-agent/contract.d.ts +444 -0
- package/dist/orpc-client/dashboard-agent/contract.d.ts.map +1 -1
- package/dist/orpc-client/dashboard-agent/contract.js +53 -0
- package/dist/orpc-client/dashboard-agent/contract.js.map +1 -1
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts +444 -0
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/js/index.js
CHANGED
|
@@ -7396,6 +7396,49 @@ var ResolvedDateRangeSchema = z9.object({
|
|
|
7396
7396
|
endDate: z9.string()
|
|
7397
7397
|
});
|
|
7398
7398
|
var AnalyticsSourceSchema = z9.enum(["cache", "live"]);
|
|
7399
|
+
var TrafficSummaryResponseSchema = z9.object({
|
|
7400
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7401
|
+
metrics: z9.object({
|
|
7402
|
+
visitors: z9.number(),
|
|
7403
|
+
pageViews: z9.number(),
|
|
7404
|
+
// Absent on cache hits: the daily snapshot does not track sessions.
|
|
7405
|
+
sessions: z9.number().optional()
|
|
7406
|
+
}),
|
|
7407
|
+
baseSiteUrl: z9.string(),
|
|
7408
|
+
source: AnalyticsSourceSchema
|
|
7409
|
+
});
|
|
7410
|
+
var TopPagesResponseSchema = z9.object({
|
|
7411
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7412
|
+
topPages: z9.array(
|
|
7413
|
+
z9.object({
|
|
7414
|
+
path: z9.string(),
|
|
7415
|
+
visitors: z9.number(),
|
|
7416
|
+
views: z9.number()
|
|
7417
|
+
})
|
|
7418
|
+
),
|
|
7419
|
+
source: AnalyticsSourceSchema
|
|
7420
|
+
});
|
|
7421
|
+
var Pages404ResponseSchema = z9.object({
|
|
7422
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7423
|
+
pages404: z9.array(
|
|
7424
|
+
z9.object({
|
|
7425
|
+
path: z9.string(),
|
|
7426
|
+
count: z9.number()
|
|
7427
|
+
})
|
|
7428
|
+
),
|
|
7429
|
+
source: AnalyticsSourceSchema
|
|
7430
|
+
});
|
|
7431
|
+
var ReferringDomainsResponseSchema = z9.object({
|
|
7432
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7433
|
+
referringDomains: z9.array(
|
|
7434
|
+
z9.object({
|
|
7435
|
+
domain: z9.string(),
|
|
7436
|
+
visitors: z9.number(),
|
|
7437
|
+
views: z9.number()
|
|
7438
|
+
})
|
|
7439
|
+
),
|
|
7440
|
+
source: AnalyticsSourceSchema
|
|
7441
|
+
});
|
|
7399
7442
|
var LlmBotTrafficResponseSchema = z9.object({
|
|
7400
7443
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7401
7444
|
providers: z9.array(
|
|
@@ -7486,6 +7529,10 @@ var SiteSettingsResponseSchema = z9.object({
|
|
|
7486
7529
|
passwordProtection: SitePasswordProtectionSchema
|
|
7487
7530
|
});
|
|
7488
7531
|
var dashboardAgentContract = {
|
|
7532
|
+
getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
7533
|
+
getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
7534
|
+
get404Pages: import_contract6.oc.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
|
|
7535
|
+
getReferringDomains: import_contract6.oc.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
|
|
7489
7536
|
getLlmBotTraffic: import_contract6.oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
7490
7537
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
7491
7538
|
queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|