@fern-api/fdr-sdk 1.2.74-631bf52dba → 1.2.74-68c3d5964d

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.
@@ -1967,6 +1967,10 @@ var DashboardListOrgMembersInputSchema = z9.object({
1967
1967
  orgId: z9.string(),
1968
1968
  includeFernEmployees: z9.boolean().optional()
1969
1969
  });
1970
+ var DashboardGetSiteConfigInputSchema = z9.object({
1971
+ orgId: z9.string(),
1972
+ domain: z9.string().min(1)
1973
+ });
1970
1974
  var AnalyticsMetricSchema = z9.enum(["pageviews", "visitors", "sessions", "404s"]);
1971
1975
  var AnalyticsDimensionSchema = z9.enum(["path", "referrer"]);
1972
1976
  var AnalyticsGranularitySchema = z9.enum(["day", "week", "month"]);
@@ -2090,6 +2094,42 @@ var OrgMembersResponseSchema = z9.object({
2090
2094
  ),
2091
2095
  count: z9.number()
2092
2096
  });
2097
+ var SiteGitRepositorySchema = z9.object({
2098
+ gitUrl: z9.string(),
2099
+ provider: z9.enum(["github", "gitlab", "other"]),
2100
+ /** `owner/repo` when the git url points at GitHub, else null. */
2101
+ githubRepository: z9.string().nullable(),
2102
+ branch: z9.string().nullable()
2103
+ });
2104
+ var SiteConfigResponseSchema = z9.object({
2105
+ domain: z9.string(),
2106
+ basepath: z9.string().nullable(),
2107
+ status: z9.string().nullable(),
2108
+ isPreview: z9.boolean(),
2109
+ /** The git repository connected to this docs site, when one exists. */
2110
+ gitRepository: SiteGitRepositorySchema.nullable(),
2111
+ /** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
2112
+ isCustomDomain: z9.boolean(),
2113
+ /** Fern CLI version that published the current deployment, when known. */
2114
+ fernCliVersion: z9.string().nullable(),
2115
+ /** Connected Postman collection id, when one exists. */
2116
+ postmanCollectionId: z9.string().nullable()
2117
+ });
2118
+ var SitePasswordProtectionSchema = z9.object({
2119
+ enabled: z9.boolean(),
2120
+ /** Number of configured passwords. Passwords themselves are never returned. */
2121
+ passwordCount: z9.number()
2122
+ });
2123
+ var SiteSettingsResponseSchema = z9.object({
2124
+ domain: z9.string(),
2125
+ basepath: z9.string().nullable(),
2126
+ /** Default basepath route for multi-basepath domains, when configured. */
2127
+ defaultBasepath: z9.string().nullable(),
2128
+ /** Basepaths routed on this domain, when configured. */
2129
+ basepaths: z9.array(z9.string()).nullable(),
2130
+ searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
2131
+ passwordProtection: SitePasswordProtectionSchema
2132
+ });
2093
2133
  var dashboardAgentContract = {
2094
2134
  getTrafficSummary: oc4.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
2095
2135
  getTopPages: oc4.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
@@ -2099,7 +2139,9 @@ var dashboardAgentContract = {
2099
2139
  getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
2100
2140
  queryAnalytics: oc4.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
2101
2141
  listOrgDocDomains: oc4.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
2102
- listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema)
2142
+ listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
2143
+ getSiteConfig: oc4.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
2144
+ getSiteSettings: oc4.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
2103
2145
  };
2104
2146
 
2105
2147
  // src/orpc-client/dashboard-agent/client.ts