@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
|
@@ -2045,6 +2045,49 @@ var ResolvedDateRangeSchema = z9.object({
|
|
|
2045
2045
|
endDate: z9.string()
|
|
2046
2046
|
});
|
|
2047
2047
|
var AnalyticsSourceSchema = z9.enum(["cache", "live"]);
|
|
2048
|
+
var TrafficSummaryResponseSchema = z9.object({
|
|
2049
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2050
|
+
metrics: z9.object({
|
|
2051
|
+
visitors: z9.number(),
|
|
2052
|
+
pageViews: z9.number(),
|
|
2053
|
+
// Absent on cache hits: the daily snapshot does not track sessions.
|
|
2054
|
+
sessions: z9.number().optional()
|
|
2055
|
+
}),
|
|
2056
|
+
baseSiteUrl: z9.string(),
|
|
2057
|
+
source: AnalyticsSourceSchema
|
|
2058
|
+
});
|
|
2059
|
+
var TopPagesResponseSchema = z9.object({
|
|
2060
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2061
|
+
topPages: z9.array(
|
|
2062
|
+
z9.object({
|
|
2063
|
+
path: z9.string(),
|
|
2064
|
+
visitors: z9.number(),
|
|
2065
|
+
views: z9.number()
|
|
2066
|
+
})
|
|
2067
|
+
),
|
|
2068
|
+
source: AnalyticsSourceSchema
|
|
2069
|
+
});
|
|
2070
|
+
var Pages404ResponseSchema = z9.object({
|
|
2071
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2072
|
+
pages404: z9.array(
|
|
2073
|
+
z9.object({
|
|
2074
|
+
path: z9.string(),
|
|
2075
|
+
count: z9.number()
|
|
2076
|
+
})
|
|
2077
|
+
),
|
|
2078
|
+
source: AnalyticsSourceSchema
|
|
2079
|
+
});
|
|
2080
|
+
var ReferringDomainsResponseSchema = z9.object({
|
|
2081
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2082
|
+
referringDomains: z9.array(
|
|
2083
|
+
z9.object({
|
|
2084
|
+
domain: z9.string(),
|
|
2085
|
+
visitors: z9.number(),
|
|
2086
|
+
views: z9.number()
|
|
2087
|
+
})
|
|
2088
|
+
),
|
|
2089
|
+
source: AnalyticsSourceSchema
|
|
2090
|
+
});
|
|
2048
2091
|
var LlmBotTrafficResponseSchema = z9.object({
|
|
2049
2092
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2050
2093
|
providers: z9.array(
|
|
@@ -2135,6 +2178,10 @@ var SiteSettingsResponseSchema = z9.object({
|
|
|
2135
2178
|
passwordProtection: SitePasswordProtectionSchema
|
|
2136
2179
|
});
|
|
2137
2180
|
var dashboardAgentContract = {
|
|
2181
|
+
getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
2182
|
+
getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
2183
|
+
get404Pages: import_contract6.oc.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
|
|
2184
|
+
getReferringDomains: import_contract6.oc.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
|
|
2138
2185
|
getLlmBotTraffic: import_contract6.oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
2139
2186
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
2140
2187
|
queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|