@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
package/dist/js/index.mjs
CHANGED
|
@@ -7285,6 +7285,9 @@ var DashboardFeedbackInputSchema = z9.object({
|
|
|
7285
7285
|
feedbackType: z9.enum(["page", "code_block", "all"]).optional(),
|
|
7286
7286
|
limit: z9.number().int().min(1).max(50).optional()
|
|
7287
7287
|
});
|
|
7288
|
+
var DashboardListOrgDocDomainsInputSchema = z9.object({
|
|
7289
|
+
orgId: z9.string()
|
|
7290
|
+
});
|
|
7288
7291
|
var DashboardListOrgMembersInputSchema = z9.object({
|
|
7289
7292
|
orgId: z9.string(),
|
|
7290
7293
|
includeFernEmployees: z9.boolean().optional()
|
|
@@ -7330,6 +7333,49 @@ var ResolvedDateRangeSchema = z9.object({
|
|
|
7330
7333
|
endDate: z9.string()
|
|
7331
7334
|
});
|
|
7332
7335
|
var AnalyticsSourceSchema = z9.enum(["cache", "live"]);
|
|
7336
|
+
var TrafficSummaryResponseSchema = z9.object({
|
|
7337
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7338
|
+
metrics: z9.object({
|
|
7339
|
+
visitors: z9.number(),
|
|
7340
|
+
pageViews: z9.number(),
|
|
7341
|
+
// Absent on cache hits: the daily snapshot does not track sessions.
|
|
7342
|
+
sessions: z9.number().optional()
|
|
7343
|
+
}),
|
|
7344
|
+
baseSiteUrl: z9.string(),
|
|
7345
|
+
source: AnalyticsSourceSchema
|
|
7346
|
+
});
|
|
7347
|
+
var TopPagesResponseSchema = z9.object({
|
|
7348
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7349
|
+
topPages: z9.array(
|
|
7350
|
+
z9.object({
|
|
7351
|
+
path: z9.string(),
|
|
7352
|
+
visitors: z9.number(),
|
|
7353
|
+
views: z9.number()
|
|
7354
|
+
})
|
|
7355
|
+
),
|
|
7356
|
+
source: AnalyticsSourceSchema
|
|
7357
|
+
});
|
|
7358
|
+
var Pages404ResponseSchema = z9.object({
|
|
7359
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7360
|
+
pages404: z9.array(
|
|
7361
|
+
z9.object({
|
|
7362
|
+
path: z9.string(),
|
|
7363
|
+
count: z9.number()
|
|
7364
|
+
})
|
|
7365
|
+
),
|
|
7366
|
+
source: AnalyticsSourceSchema
|
|
7367
|
+
});
|
|
7368
|
+
var ReferringDomainsResponseSchema = z9.object({
|
|
7369
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7370
|
+
referringDomains: z9.array(
|
|
7371
|
+
z9.object({
|
|
7372
|
+
domain: z9.string(),
|
|
7373
|
+
visitors: z9.number(),
|
|
7374
|
+
views: z9.number()
|
|
7375
|
+
})
|
|
7376
|
+
),
|
|
7377
|
+
source: AnalyticsSourceSchema
|
|
7378
|
+
});
|
|
7333
7379
|
var LlmBotTrafficResponseSchema = z9.object({
|
|
7334
7380
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7335
7381
|
providers: z9.array(
|
|
@@ -7355,6 +7401,9 @@ var RecentFeedbackResponseSchema = z9.object({
|
|
|
7355
7401
|
),
|
|
7356
7402
|
hasMore: z9.boolean()
|
|
7357
7403
|
});
|
|
7404
|
+
var OrgDocDomainsResponseSchema = z9.object({
|
|
7405
|
+
domains: z9.array(z9.string())
|
|
7406
|
+
});
|
|
7358
7407
|
var QueryAnalyticsResponseSchema = z9.object({
|
|
7359
7408
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
7360
7409
|
metric: AnalyticsMetricSchema,
|
|
@@ -7417,9 +7466,14 @@ var SiteSettingsResponseSchema = z9.object({
|
|
|
7417
7466
|
passwordProtection: SitePasswordProtectionSchema
|
|
7418
7467
|
});
|
|
7419
7468
|
var dashboardAgentContract = {
|
|
7469
|
+
getTrafficSummary: oc4.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
7470
|
+
getTopPages: oc4.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
7471
|
+
get404Pages: oc4.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
|
|
7472
|
+
getReferringDomains: oc4.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
|
|
7420
7473
|
getLlmBotTraffic: oc4.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
7421
7474
|
getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
7422
7475
|
queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
7476
|
+
listOrgDocDomains: oc4.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
|
|
7423
7477
|
listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
|
|
7424
7478
|
getSiteConfig: oc4.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
|
|
7425
7479
|
authorizeDocsEdit: oc4.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
|