@fern-api/fdr-sdk 1.2.88-4a06fab22c → 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 +54 -0
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +54 -0
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +54 -0
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +54 -0
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +66 -0
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +60 -0
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/orpc-client/dashboard-agent/contract.d.ts +473 -0
- package/dist/orpc-client/dashboard-agent/contract.d.ts.map +1 -1
- package/dist/orpc-client/dashboard-agent/contract.js +63 -0
- package/dist/orpc-client/dashboard-agent/contract.js.map +1 -1
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts +473 -0
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1960,6 +1960,9 @@ var DashboardFeedbackInputSchema = z9.object({
|
|
|
1960
1960
|
feedbackType: z9.enum(["page", "code_block", "all"]).optional(),
|
|
1961
1961
|
limit: z9.number().int().min(1).max(50).optional()
|
|
1962
1962
|
});
|
|
1963
|
+
var DashboardListOrgDocDomainsInputSchema = z9.object({
|
|
1964
|
+
orgId: z9.string()
|
|
1965
|
+
});
|
|
1963
1966
|
var DashboardListOrgMembersInputSchema = z9.object({
|
|
1964
1967
|
orgId: z9.string(),
|
|
1965
1968
|
includeFernEmployees: z9.boolean().optional()
|
|
@@ -2005,6 +2008,49 @@ var ResolvedDateRangeSchema = z9.object({
|
|
|
2005
2008
|
endDate: z9.string()
|
|
2006
2009
|
});
|
|
2007
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
|
+
});
|
|
2008
2054
|
var LlmBotTrafficResponseSchema = z9.object({
|
|
2009
2055
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2010
2056
|
providers: z9.array(
|
|
@@ -2030,6 +2076,9 @@ var RecentFeedbackResponseSchema = z9.object({
|
|
|
2030
2076
|
),
|
|
2031
2077
|
hasMore: z9.boolean()
|
|
2032
2078
|
});
|
|
2079
|
+
var OrgDocDomainsResponseSchema = z9.object({
|
|
2080
|
+
domains: z9.array(z9.string())
|
|
2081
|
+
});
|
|
2033
2082
|
var QueryAnalyticsResponseSchema = z9.object({
|
|
2034
2083
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2035
2084
|
metric: AnalyticsMetricSchema,
|
|
@@ -2092,9 +2141,14 @@ var SiteSettingsResponseSchema = z9.object({
|
|
|
2092
2141
|
passwordProtection: SitePasswordProtectionSchema
|
|
2093
2142
|
});
|
|
2094
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),
|
|
2095
2148
|
getLlmBotTraffic: oc4.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
2096
2149
|
getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
2097
2150
|
queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
2151
|
+
listOrgDocDomains: oc4.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
|
|
2098
2152
|
listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
|
|
2099
2153
|
getSiteConfig: oc4.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
|
|
2100
2154
|
authorizeDocsEdit: oc4.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
|