@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.js
CHANGED
|
@@ -419,6 +419,7 @@ __export(orpc_client_exports, {
|
|
|
419
419
|
PageContentResponseSchema: () => PageContentResponseSchema,
|
|
420
420
|
PageId: () => PageId,
|
|
421
421
|
PageIdSchema: () => PageIdSchema,
|
|
422
|
+
Pages404ResponseSchema: () => Pages404ResponseSchema,
|
|
422
423
|
PathOrUrlSchema: () => PathOrUrlSchema,
|
|
423
424
|
PathParameterSchema: () => PathParameterSchema,
|
|
424
425
|
PathPartSchema: () => PathPartSchema,
|
|
@@ -482,6 +483,7 @@ __export(orpc_client_exports, {
|
|
|
482
483
|
RecentFeedbackResponseSchema: () => RecentFeedbackResponseSchema,
|
|
483
484
|
RecordPostmanNotificationInputSchema: () => RecordPostmanNotificationInputSchema,
|
|
484
485
|
RecordPostmanNotificationResponseSchema: () => RecordPostmanNotificationResponseSchema,
|
|
486
|
+
ReferringDomainsResponseSchema: () => ReferringDomainsResponseSchema,
|
|
485
487
|
RegisterApiDefinitionPackageSchema: () => RegisterApiDefinitionPackageSchema,
|
|
486
488
|
RegisterApiDefinitionResponseSchema: () => RegisterApiDefinitionResponseSchema,
|
|
487
489
|
RegisterApiDefinitionSchema: () => RegisterApiDefinitionSchema,
|
|
@@ -575,6 +577,8 @@ __export(orpc_client_exports, {
|
|
|
575
577
|
TokenIdSchema: () => TokenIdSchema,
|
|
576
578
|
TopLevelNavigationInputSchema: () => TopLevelNavigationInputSchema,
|
|
577
579
|
TopLevelNavigationResponseSchema: () => TopLevelNavigationResponseSchema,
|
|
580
|
+
TopPagesResponseSchema: () => TopPagesResponseSchema,
|
|
581
|
+
TrafficSummaryResponseSchema: () => TrafficSummaryResponseSchema,
|
|
578
582
|
TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
|
|
579
583
|
TypeId: () => TypeId,
|
|
580
584
|
TypeIdSchema: () => TypeIdSchema,
|
|
@@ -2907,6 +2911,49 @@ var ResolvedDateRangeSchema = z10.object({
|
|
|
2907
2911
|
endDate: z10.string()
|
|
2908
2912
|
});
|
|
2909
2913
|
var AnalyticsSourceSchema = z10.enum(["cache", "live"]);
|
|
2914
|
+
var TrafficSummaryResponseSchema = z10.object({
|
|
2915
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2916
|
+
metrics: z10.object({
|
|
2917
|
+
visitors: z10.number(),
|
|
2918
|
+
pageViews: z10.number(),
|
|
2919
|
+
// Absent on cache hits: the daily snapshot does not track sessions.
|
|
2920
|
+
sessions: z10.number().optional()
|
|
2921
|
+
}),
|
|
2922
|
+
baseSiteUrl: z10.string(),
|
|
2923
|
+
source: AnalyticsSourceSchema
|
|
2924
|
+
});
|
|
2925
|
+
var TopPagesResponseSchema = z10.object({
|
|
2926
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2927
|
+
topPages: z10.array(
|
|
2928
|
+
z10.object({
|
|
2929
|
+
path: z10.string(),
|
|
2930
|
+
visitors: z10.number(),
|
|
2931
|
+
views: z10.number()
|
|
2932
|
+
})
|
|
2933
|
+
),
|
|
2934
|
+
source: AnalyticsSourceSchema
|
|
2935
|
+
});
|
|
2936
|
+
var Pages404ResponseSchema = z10.object({
|
|
2937
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2938
|
+
pages404: z10.array(
|
|
2939
|
+
z10.object({
|
|
2940
|
+
path: z10.string(),
|
|
2941
|
+
count: z10.number()
|
|
2942
|
+
})
|
|
2943
|
+
),
|
|
2944
|
+
source: AnalyticsSourceSchema
|
|
2945
|
+
});
|
|
2946
|
+
var ReferringDomainsResponseSchema = z10.object({
|
|
2947
|
+
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2948
|
+
referringDomains: z10.array(
|
|
2949
|
+
z10.object({
|
|
2950
|
+
domain: z10.string(),
|
|
2951
|
+
visitors: z10.number(),
|
|
2952
|
+
views: z10.number()
|
|
2953
|
+
})
|
|
2954
|
+
),
|
|
2955
|
+
source: AnalyticsSourceSchema
|
|
2956
|
+
});
|
|
2910
2957
|
var LlmBotTrafficResponseSchema = z10.object({
|
|
2911
2958
|
resolvedDateRange: ResolvedDateRangeSchema,
|
|
2912
2959
|
providers: z10.array(
|
|
@@ -2997,6 +3044,10 @@ var SiteSettingsResponseSchema = z10.object({
|
|
|
2997
3044
|
passwordProtection: SitePasswordProtectionSchema
|
|
2998
3045
|
});
|
|
2999
3046
|
var dashboardAgentContract = {
|
|
3047
|
+
getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
3048
|
+
getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
3049
|
+
get404Pages: import_contract6.oc.route({ method: "POST", path: "/get-404-pages" }).input(DashboardAnalyticsCommonInputSchema).output(Pages404ResponseSchema),
|
|
3050
|
+
getReferringDomains: import_contract6.oc.route({ method: "POST", path: "/get-referring-domains" }).input(DashboardAnalyticsCommonInputSchema).output(ReferringDomainsResponseSchema),
|
|
3000
3051
|
getLlmBotTraffic: import_contract6.oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
|
|
3001
3052
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
3002
3053
|
queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
@@ -7430,6 +7481,7 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7430
7481
|
PageContentResponseSchema,
|
|
7431
7482
|
PageId,
|
|
7432
7483
|
PageIdSchema,
|
|
7484
|
+
Pages404ResponseSchema,
|
|
7433
7485
|
PathOrUrlSchema,
|
|
7434
7486
|
PathParameterSchema,
|
|
7435
7487
|
PathPartSchema,
|
|
@@ -7493,6 +7545,7 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7493
7545
|
RecentFeedbackResponseSchema,
|
|
7494
7546
|
RecordPostmanNotificationInputSchema,
|
|
7495
7547
|
RecordPostmanNotificationResponseSchema,
|
|
7548
|
+
ReferringDomainsResponseSchema,
|
|
7496
7549
|
RegisterApiDefinitionPackageSchema,
|
|
7497
7550
|
RegisterApiDefinitionResponseSchema,
|
|
7498
7551
|
RegisterApiDefinitionSchema,
|
|
@@ -7586,6 +7639,8 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7586
7639
|
TokenIdSchema,
|
|
7587
7640
|
TopLevelNavigationInputSchema,
|
|
7588
7641
|
TopLevelNavigationResponseSchema,
|
|
7642
|
+
TopPagesResponseSchema,
|
|
7643
|
+
TrafficSummaryResponseSchema,
|
|
7589
7644
|
TransferOwnershipInputSchema,
|
|
7590
7645
|
TypeId,
|
|
7591
7646
|
TypeIdSchema,
|