@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/orpc-client.mjs
CHANGED
|
@@ -2224,6 +2224,49 @@ var ResolvedDateRangeSchema = z10.object({
|
|
|
2224
2224
|
endDate: z10.string()
|
|
2225
2225
|
});
|
|
2226
2226
|
var AnalyticsSourceSchema = z10.enum(["cache", "live"]);
|
|
2227
|
+
var TrafficSummaryResponseSchema = z10.object({
|
|
2228
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2229
|
+
metrics: z10.object({
|
|
2230
|
+
visitors: z10.number(),
|
|
2231
|
+
pageViews: z10.number(),
|
|
2232
|
+
// Absent on cache hits: the daily snapshot does not track sessions.
|
|
2233
|
+
sessions: z10.number().optional()
|
|
2234
|
+
}),
|
|
2235
|
+
baseSiteUrl: z10.string(),
|
|
2236
|
+
source: AnalyticsSourceSchema
|
|
2237
|
+
});
|
|
2238
|
+
var TopPagesResponseSchema = z10.object({
|
|
2239
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2240
|
+
topPages: z10.array(
|
|
2241
|
+
z10.object({
|
|
2242
|
+
path: z10.string(),
|
|
2243
|
+
visitors: z10.number(),
|
|
2244
|
+
views: z10.number()
|
|
2245
|
+
})
|
|
2246
|
+
),
|
|
2247
|
+
source: AnalyticsSourceSchema
|
|
2248
|
+
});
|
|
2249
|
+
var Pages404ResponseSchema = z10.object({
|
|
2250
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2251
|
+
pages404: z10.array(
|
|
2252
|
+
z10.object({
|
|
2253
|
+
path: z10.string(),
|
|
2254
|
+
count: z10.number()
|
|
2255
|
+
})
|
|
2256
|
+
),
|
|
2257
|
+
source: AnalyticsSourceSchema
|
|
2258
|
+
});
|
|
2259
|
+
var ReferringDomainsResponseSchema = z10.object({
|
|
2260
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2261
|
+
referringDomains: z10.array(
|
|
2262
|
+
z10.object({
|
|
2263
|
+
domain: z10.string(),
|
|
2264
|
+
visitors: z10.number(),
|
|
2265
|
+
views: z10.number()
|
|
2266
|
+
})
|
|
2267
|
+
),
|
|
2268
|
+
source: AnalyticsSourceSchema
|
|
2269
|
+
});
|
|
2227
2270
|
var LlmBotTrafficResponseSchema = z10.object({
|
|
2228
2271
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2229
2272
|
providers: z10.array(
|
|
@@ -2314,6 +2357,10 @@ var SiteSettingsResponseSchema = z10.object({
|
|
|
2314
2357
|
passwordProtection: SitePasswordProtectionSchema
|
|
2315
2358
|
});
|
|
2316
2359
|
var dashboardAgentContract = {
|
|
2360
|
+
getTrafficSummary: oc4.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
2361
|
+
getTopPages: oc4.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
2362
|
+
get404Pages: oc4.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
|
|
2363
|
+
getReferringDomains: oc4.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
|
|
2317
2364
|
getLlmBotTraffic: oc4.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
2318
2365
|
getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
2319
2366
|
queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
@@ -6746,6 +6793,7 @@ export {
|
|
|
6746
6793
|
PageContentResponseSchema,
|
|
6747
6794
|
PageId,
|
|
6748
6795
|
PageIdSchema,
|
|
6796
|
+
Pages404ResponseSchema,
|
|
6749
6797
|
PathOrUrlSchema,
|
|
6750
6798
|
PathParameterSchema,
|
|
6751
6799
|
PathPartSchema,
|
|
@@ -6809,6 +6857,7 @@ export {
|
|
|
6809
6857
|
RecentFeedbackResponseSchema,
|
|
6810
6858
|
RecordPostmanNotificationInputSchema,
|
|
6811
6859
|
RecordPostmanNotificationResponseSchema,
|
|
6860
|
+
ReferringDomainsResponseSchema,
|
|
6812
6861
|
RegisterApiDefinitionPackageSchema,
|
|
6813
6862
|
RegisterApiDefinitionResponseSchema,
|
|
6814
6863
|
RegisterApiDefinitionSchema,
|
|
@@ -6902,6 +6951,8 @@ export {
|
|
|
6902
6951
|
TokenIdSchema,
|
|
6903
6952
|
TopLevelNavigationInputSchema,
|
|
6904
6953
|
TopLevelNavigationResponseSchema,
|
|
6954
|
+
TopPagesResponseSchema,
|
|
6955
|
+
TrafficSummaryResponseSchema,
|
|
6905
6956
|
TransferOwnershipInputSchema,
|
|
6906
6957
|
TypeId,
|
|
6907
6958
|
TypeIdSchema,
|