@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.
@@ -96,6 +96,7 @@ __export(orpc_client_exports, {
96
96
  DashboardDocsSiteSchema: () => DashboardDocsSiteSchema,
97
97
  DashboardFeedbackInputSchema: () => DashboardFeedbackInputSchema,
98
98
  DashboardGetSiteConfigInputSchema: () => DashboardGetSiteConfigInputSchema,
99
+ DashboardListOrgDocDomainsInputSchema: () => DashboardListOrgDocDomainsInputSchema,
99
100
  DashboardListOrgMembersInputSchema: () => DashboardListOrgMembersInputSchema,
100
101
  DateTypeSchema: () => DateTypeSchema,
101
102
  DatetimeTypeSchema: () => DatetimeTypeSchema,
@@ -408,6 +409,7 @@ __export(orpc_client_exports, {
408
409
  ObjectTypeSchema: () => ObjectTypeSchema,
409
410
  OpenRpcProtocolSchema: () => OpenRpcProtocolSchema,
410
411
  OrgConfigResponseSchema: () => OrgConfigResponseSchema,
412
+ OrgDocDomainsResponseSchema: () => OrgDocDomainsResponseSchema,
411
413
  OrgId: () => OrgId,
412
414
  OrgIdSchema: () => OrgIdSchema,
413
415
  OrgMembersResponseSchema: () => OrgMembersResponseSchema,
@@ -417,6 +419,7 @@ __export(orpc_client_exports, {
417
419
  PageContentResponseSchema: () => PageContentResponseSchema,
418
420
  PageId: () => PageId,
419
421
  PageIdSchema: () => PageIdSchema,
422
+ Pages404ResponseSchema: () => Pages404ResponseSchema,
420
423
  PathOrUrlSchema: () => PathOrUrlSchema,
421
424
  PathParameterSchema: () => PathParameterSchema,
422
425
  PathPartSchema: () => PathPartSchema,
@@ -480,6 +483,7 @@ __export(orpc_client_exports, {
480
483
  RecentFeedbackResponseSchema: () => RecentFeedbackResponseSchema,
481
484
  RecordPostmanNotificationInputSchema: () => RecordPostmanNotificationInputSchema,
482
485
  RecordPostmanNotificationResponseSchema: () => RecordPostmanNotificationResponseSchema,
486
+ ReferringDomainsResponseSchema: () => ReferringDomainsResponseSchema,
483
487
  RegisterApiDefinitionPackageSchema: () => RegisterApiDefinitionPackageSchema,
484
488
  RegisterApiDefinitionResponseSchema: () => RegisterApiDefinitionResponseSchema,
485
489
  RegisterApiDefinitionSchema: () => RegisterApiDefinitionSchema,
@@ -573,6 +577,8 @@ __export(orpc_client_exports, {
573
577
  TokenIdSchema: () => TokenIdSchema,
574
578
  TopLevelNavigationInputSchema: () => TopLevelNavigationInputSchema,
575
579
  TopLevelNavigationResponseSchema: () => TopLevelNavigationResponseSchema,
580
+ TopPagesResponseSchema: () => TopPagesResponseSchema,
581
+ TrafficSummaryResponseSchema: () => TrafficSummaryResponseSchema,
576
582
  TransferOwnershipInputSchema: () => TransferOwnershipInputSchema,
577
583
  TypeId: () => TypeId,
578
584
  TypeIdSchema: () => TypeIdSchema,
@@ -2857,6 +2863,9 @@ var DashboardFeedbackInputSchema = z10.object({
2857
2863
  feedbackType: z10.enum(["page", "code_block", "all"]).optional(),
2858
2864
  limit: z10.number().int().min(1).max(50).optional()
2859
2865
  });
2866
+ var DashboardListOrgDocDomainsInputSchema = z10.object({
2867
+ orgId: z10.string()
2868
+ });
2860
2869
  var DashboardListOrgMembersInputSchema = z10.object({
2861
2870
  orgId: z10.string(),
2862
2871
  includeFernEmployees: z10.boolean().optional()
@@ -2902,6 +2911,49 @@ var ResolvedDateRangeSchema = z10.object({
2902
2911
  endDate: z10.string()
2903
2912
  });
2904
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
+ });
2905
2957
  var LlmBotTrafficResponseSchema = z10.object({
2906
2958
  resolvedDateRange: ResolvedDateRangeSchema,
2907
2959
  providers: z10.array(
@@ -2927,6 +2979,9 @@ var RecentFeedbackResponseSchema = z10.object({
2927
2979
  ),
2928
2980
  hasMore: z10.boolean()
2929
2981
  });
2982
+ var OrgDocDomainsResponseSchema = z10.object({
2983
+ domains: z10.array(z10.string())
2984
+ });
2930
2985
  var QueryAnalyticsResponseSchema = z10.object({
2931
2986
  resolvedDateRange: ResolvedDateRangeSchema,
2932
2987
  metric: AnalyticsMetricSchema,
@@ -2989,9 +3044,14 @@ var SiteSettingsResponseSchema = z10.object({
2989
3044
  passwordProtection: SitePasswordProtectionSchema
2990
3045
  });
2991
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),
2992
3051
  getLlmBotTraffic: import_contract6.oc.route({ method: "POST", path: "/get-llm-bot-traffic" }).input(DashboardAnalyticsCommonInputSchema).output(LlmBotTrafficResponseSchema),
2993
3052
  getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
2994
3053
  queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
3054
+ listOrgDocDomains: import_contract6.oc.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
2995
3055
  listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
2996
3056
  getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
2997
3057
  authorizeDocsEdit: import_contract6.oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
@@ -7098,6 +7158,7 @@ var UpsertThemeBodySchema = z37.object({
7098
7158
  DashboardDocsSiteSchema,
7099
7159
  DashboardFeedbackInputSchema,
7100
7160
  DashboardGetSiteConfigInputSchema,
7161
+ DashboardListOrgDocDomainsInputSchema,
7101
7162
  DashboardListOrgMembersInputSchema,
7102
7163
  DateTypeSchema,
7103
7164
  DatetimeTypeSchema,
@@ -7410,6 +7471,7 @@ var UpsertThemeBodySchema = z37.object({
7410
7471
  ObjectTypeSchema,
7411
7472
  OpenRpcProtocolSchema,
7412
7473
  OrgConfigResponseSchema,
7474
+ OrgDocDomainsResponseSchema,
7413
7475
  OrgId,
7414
7476
  OrgIdSchema,
7415
7477
  OrgMembersResponseSchema,
@@ -7419,6 +7481,7 @@ var UpsertThemeBodySchema = z37.object({
7419
7481
  PageContentResponseSchema,
7420
7482
  PageId,
7421
7483
  PageIdSchema,
7484
+ Pages404ResponseSchema,
7422
7485
  PathOrUrlSchema,
7423
7486
  PathParameterSchema,
7424
7487
  PathPartSchema,
@@ -7482,6 +7545,7 @@ var UpsertThemeBodySchema = z37.object({
7482
7545
  RecentFeedbackResponseSchema,
7483
7546
  RecordPostmanNotificationInputSchema,
7484
7547
  RecordPostmanNotificationResponseSchema,
7548
+ ReferringDomainsResponseSchema,
7485
7549
  RegisterApiDefinitionPackageSchema,
7486
7550
  RegisterApiDefinitionResponseSchema,
7487
7551
  RegisterApiDefinitionSchema,
@@ -7575,6 +7639,8 @@ var UpsertThemeBodySchema = z37.object({
7575
7639
  TokenIdSchema,
7576
7640
  TopLevelNavigationInputSchema,
7577
7641
  TopLevelNavigationResponseSchema,
7642
+ TopPagesResponseSchema,
7643
+ TrafficSummaryResponseSchema,
7578
7644
  TransferOwnershipInputSchema,
7579
7645
  TypeId,
7580
7646
  TypeIdSchema,