@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.
package/dist/js/index.js CHANGED
@@ -7335,6 +7335,10 @@ var DashboardListOrgMembersInputSchema = z9.object({
7335
7335
  orgId: z9.string(),
7336
7336
  includeFernEmployees: z9.boolean().optional()
7337
7337
  });
7338
+ var DashboardGetSiteConfigInputSchema = z9.object({
7339
+ orgId: z9.string(),
7340
+ domain: z9.string().min(1)
7341
+ });
7338
7342
  var AnalyticsMetricSchema = z9.enum(["pageviews", "visitors", "sessions", "404s"]);
7339
7343
  var AnalyticsDimensionSchema = z9.enum(["path", "referrer"]);
7340
7344
  var AnalyticsGranularitySchema = z9.enum(["day", "week", "month"]);
@@ -7458,6 +7462,42 @@ var OrgMembersResponseSchema = z9.object({
7458
7462
  ),
7459
7463
  count: z9.number()
7460
7464
  });
7465
+ var SiteGitRepositorySchema = z9.object({
7466
+ gitUrl: z9.string(),
7467
+ provider: z9.enum(["github", "gitlab", "other"]),
7468
+ /** `owner/repo` when the git url points at GitHub, else null. */
7469
+ githubRepository: z9.string().nullable(),
7470
+ branch: z9.string().nullable()
7471
+ });
7472
+ var SiteConfigResponseSchema = z9.object({
7473
+ domain: z9.string(),
7474
+ basepath: z9.string().nullable(),
7475
+ status: z9.string().nullable(),
7476
+ isPreview: z9.boolean(),
7477
+ /** The git repository connected to this docs site, when one exists. */
7478
+ gitRepository: SiteGitRepositorySchema.nullable(),
7479
+ /** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
7480
+ isCustomDomain: z9.boolean(),
7481
+ /** Fern CLI version that published the current deployment, when known. */
7482
+ fernCliVersion: z9.string().nullable(),
7483
+ /** Connected Postman collection id, when one exists. */
7484
+ postmanCollectionId: z9.string().nullable()
7485
+ });
7486
+ var SitePasswordProtectionSchema = z9.object({
7487
+ enabled: z9.boolean(),
7488
+ /** Number of configured passwords. Passwords themselves are never returned. */
7489
+ passwordCount: z9.number()
7490
+ });
7491
+ var SiteSettingsResponseSchema = z9.object({
7492
+ domain: z9.string(),
7493
+ basepath: z9.string().nullable(),
7494
+ /** Default basepath route for multi-basepath domains, when configured. */
7495
+ defaultBasepath: z9.string().nullable(),
7496
+ /** Basepaths routed on this domain, when configured. */
7497
+ basepaths: z9.array(z9.string()).nullable(),
7498
+ searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
7499
+ passwordProtection: SitePasswordProtectionSchema
7500
+ });
7461
7501
  var dashboardAgentContract = {
7462
7502
  getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
7463
7503
  getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
@@ -7467,7 +7507,9 @@ var dashboardAgentContract = {
7467
7507
  getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
7468
7508
  queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
7469
7509
  listOrgDocDomains: import_contract6.oc.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
7470
- listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema)
7510
+ listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
7511
+ getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
7512
+ getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
7471
7513
  };
7472
7514
 
7473
7515
  // src/orpc-client/dashboard-agent/client.ts