@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.
@@ -2004,6 +2004,10 @@ var DashboardListOrgMembersInputSchema = z9.object({
2004
2004
  orgId: z9.string(),
2005
2005
  includeFernEmployees: z9.boolean().optional()
2006
2006
  });
2007
+ var DashboardGetSiteConfigInputSchema = z9.object({
2008
+ orgId: z9.string(),
2009
+ domain: z9.string().min(1)
2010
+ });
2007
2011
  var AnalyticsMetricSchema = z9.enum(["pageviews", "visitors", "sessions", "404s"]);
2008
2012
  var AnalyticsDimensionSchema = z9.enum(["path", "referrer"]);
2009
2013
  var AnalyticsGranularitySchema = z9.enum(["day", "week", "month"]);
@@ -2127,6 +2131,42 @@ var OrgMembersResponseSchema = z9.object({
2127
2131
  ),
2128
2132
  count: z9.number()
2129
2133
  });
2134
+ var SiteGitRepositorySchema = z9.object({
2135
+ gitUrl: z9.string(),
2136
+ provider: z9.enum(["github", "gitlab", "other"]),
2137
+ /** `owner/repo` when the git url points at GitHub, else null. */
2138
+ githubRepository: z9.string().nullable(),
2139
+ branch: z9.string().nullable()
2140
+ });
2141
+ var SiteConfigResponseSchema = z9.object({
2142
+ domain: z9.string(),
2143
+ basepath: z9.string().nullable(),
2144
+ status: z9.string().nullable(),
2145
+ isPreview: z9.boolean(),
2146
+ /** The git repository connected to this docs site, when one exists. */
2147
+ gitRepository: SiteGitRepositorySchema.nullable(),
2148
+ /** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
2149
+ isCustomDomain: z9.boolean(),
2150
+ /** Fern CLI version that published the current deployment, when known. */
2151
+ fernCliVersion: z9.string().nullable(),
2152
+ /** Connected Postman collection id, when one exists. */
2153
+ postmanCollectionId: z9.string().nullable()
2154
+ });
2155
+ var SitePasswordProtectionSchema = z9.object({
2156
+ enabled: z9.boolean(),
2157
+ /** Number of configured passwords. Passwords themselves are never returned. */
2158
+ passwordCount: z9.number()
2159
+ });
2160
+ var SiteSettingsResponseSchema = z9.object({
2161
+ domain: z9.string(),
2162
+ basepath: z9.string().nullable(),
2163
+ /** Default basepath route for multi-basepath domains, when configured. */
2164
+ defaultBasepath: z9.string().nullable(),
2165
+ /** Basepaths routed on this domain, when configured. */
2166
+ basepaths: z9.array(z9.string()).nullable(),
2167
+ searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
2168
+ passwordProtection: SitePasswordProtectionSchema
2169
+ });
2130
2170
  var dashboardAgentContract = {
2131
2171
  getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
2132
2172
  getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
@@ -2136,7 +2176,9 @@ var dashboardAgentContract = {
2136
2176
  getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
2137
2177
  queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
2138
2178
  listOrgDocDomains: import_contract6.oc.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
2139
- listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema)
2179
+ listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
2180
+ getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
2181
+ getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
2140
2182
  };
2141
2183
 
2142
2184
  // src/orpc-client/dashboard-agent/client.ts