@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
|
@@ -1997,6 +1997,9 @@ var DashboardFeedbackInputSchema = z9.object({
|
|
|
1997
1997
|
feedbackType: z9.enum(["page", "code_block", "all"]).optional(),
|
|
1998
1998
|
limit: z9.number().int().min(1).max(50).optional()
|
|
1999
1999
|
});
|
|
2000
|
+
var DashboardListOrgDocDomainsInputSchema = z9.object({
|
|
2001
|
+
orgId: z9.string()
|
|
2002
|
+
});
|
|
2000
2003
|
var DashboardListOrgMembersInputSchema = z9.object({
|
|
2001
2004
|
orgId: z9.string(),
|
|
2002
2005
|
includeFernEmployees: z9.boolean().optional()
|
|
@@ -2042,6 +2045,49 @@ var ResolvedDateRangeSchema = z9.object({
|
|
|
2042
2045
|
endDate: z9.string()
|
|
2043
2046
|
});
|
|
2044
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
|
+
});
|
|
2045
2091
|
var LlmBotTrafficResponseSchema = z9.object({
|
|
2046
2092
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2047
2093
|
providers: z9.array(
|
|
@@ -2067,6 +2113,9 @@ var RecentFeedbackResponseSchema = z9.object({
|
|
|
2067
2113
|
),
|
|
2068
2114
|
hasMore: z9.boolean()
|
|
2069
2115
|
});
|
|
2116
|
+
var OrgDocDomainsResponseSchema = z9.object({
|
|
2117
|
+
domains: z9.array(z9.string())
|
|
2118
|
+
});
|
|
2070
2119
|
var QueryAnalyticsResponseSchema = z9.object({
|
|
2071
2120
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2072
2121
|
metric: AnalyticsMetricSchema,
|
|
@@ -2129,9 +2178,14 @@ var SiteSettingsResponseSchema = z9.object({
|
|
|
2129
2178
|
passwordProtection: SitePasswordProtectionSchema
|
|
2130
2179
|
});
|
|
2131
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),
|
|
2132
2185
|
getLlmBotTraffic: import_contract6.oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
2133
2186
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
2134
2187
|
queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
2188
|
+
listOrgDocDomains: import_contract6.oc.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
|
|
2135
2189
|
listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
|
|
2136
2190
|
getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
|
|
2137
2191
|
authorizeDocsEdit: import_contract6.oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
|