@fern-api/fdr-sdk 1.2.74-58b68e5a75 → 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/client/FdrClient.js +43 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +43 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +43 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +43 -1
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +53 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +48 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts +257 -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
|
@@ -93,6 +93,7 @@ __export(orpc_client_exports, {
|
|
|
93
93
|
DashboardAnalyticsCommonInputSchema: () => DashboardAnalyticsCommonInputSchema,
|
|
94
94
|
DashboardDocsSiteSchema: () => DashboardDocsSiteSchema,
|
|
95
95
|
DashboardFeedbackInputSchema: () => DashboardFeedbackInputSchema,
|
|
96
|
+
DashboardGetSiteConfigInputSchema: () => DashboardGetSiteConfigInputSchema,
|
|
96
97
|
DashboardListOrgDocDomainsInputSchema: () => DashboardListOrgDocDomainsInputSchema,
|
|
97
98
|
DashboardListOrgMembersInputSchema: () => DashboardListOrgMembersInputSchema,
|
|
98
99
|
DateTypeSchema: () => DateTypeSchema,
|
|
@@ -536,7 +537,11 @@ __export(orpc_client_exports, {
|
|
|
536
537
|
SetEditorRepoUrlInputSchema: () => SetEditorRepoUrlInputSchema,
|
|
537
538
|
SetIsArchivedInputSchema: () => SetIsArchivedInputSchema,
|
|
538
539
|
SetSnapshotInputSchema: () => SetSnapshotInputSchema,
|
|
540
|
+
SiteConfigResponseSchema: () => SiteConfigResponseSchema,
|
|
541
|
+
SiteGitRepositorySchema: () => SiteGitRepositorySchema,
|
|
539
542
|
SiteMetricsSchema: () => SiteMetricsSchema,
|
|
543
|
+
SitePasswordProtectionSchema: () => SitePasswordProtectionSchema,
|
|
544
|
+
SiteSettingsResponseSchema: () => SiteSettingsResponseSchema,
|
|
540
545
|
SlugEntrySchema: () => SlugEntrySchema,
|
|
541
546
|
SlugsInputSchema: () => SlugsInputSchema,
|
|
542
547
|
SnippetInfoSchema: () => SnippetInfoSchema,
|
|
@@ -2861,6 +2866,10 @@ var DashboardListOrgMembersInputSchema = z10.object({
|
|
|
2861
2866
|
orgId: z10.string(),
|
|
2862
2867
|
includeFernEmployees: z10.boolean().optional()
|
|
2863
2868
|
});
|
|
2869
|
+
var DashboardGetSiteConfigInputSchema = z10.object({
|
|
2870
|
+
orgId: z10.string(),
|
|
2871
|
+
domain: z10.string().min(1)
|
|
2872
|
+
});
|
|
2864
2873
|
var AnalyticsMetricSchema = z10.enum(["pageviews", "visitors", "sessions", "404s"]);
|
|
2865
2874
|
var AnalyticsDimensionSchema = z10.enum(["path", "referrer"]);
|
|
2866
2875
|
var AnalyticsGranularitySchema = z10.enum(["day", "week", "month"]);
|
|
@@ -2984,6 +2993,42 @@ var OrgMembersResponseSchema = z10.object({
|
|
|
2984
2993
|
),
|
|
2985
2994
|
count: z10.number()
|
|
2986
2995
|
});
|
|
2996
|
+
var SiteGitRepositorySchema = z10.object({
|
|
2997
|
+
gitUrl: z10.string(),
|
|
2998
|
+
provider: z10.enum(["github", "gitlab", "other"]),
|
|
2999
|
+
/** `owner/repo` when the git url points at GitHub, else null. */
|
|
3000
|
+
githubRepository: z10.string().nullable(),
|
|
3001
|
+
branch: z10.string().nullable()
|
|
3002
|
+
});
|
|
3003
|
+
var SiteConfigResponseSchema = z10.object({
|
|
3004
|
+
domain: z10.string(),
|
|
3005
|
+
basepath: z10.string().nullable(),
|
|
3006
|
+
status: z10.string().nullable(),
|
|
3007
|
+
isPreview: z10.boolean(),
|
|
3008
|
+
/** The git repository connected to this docs site, when one exists. */
|
|
3009
|
+
gitRepository: SiteGitRepositorySchema.nullable(),
|
|
3010
|
+
/** True when the queried domain is a customer-owned custom domain (not *.docs.buildwithfern.com). */
|
|
3011
|
+
isCustomDomain: z10.boolean(),
|
|
3012
|
+
/** Fern CLI version that published the current deployment, when known. */
|
|
3013
|
+
fernCliVersion: z10.string().nullable(),
|
|
3014
|
+
/** Connected Postman collection id, when one exists. */
|
|
3015
|
+
postmanCollectionId: z10.string().nullable()
|
|
3016
|
+
});
|
|
3017
|
+
var SitePasswordProtectionSchema = z10.object({
|
|
3018
|
+
enabled: z10.boolean(),
|
|
3019
|
+
/** Number of configured passwords. Passwords themselves are never returned. */
|
|
3020
|
+
passwordCount: z10.number()
|
|
3021
|
+
});
|
|
3022
|
+
var SiteSettingsResponseSchema = z10.object({
|
|
3023
|
+
domain: z10.string(),
|
|
3024
|
+
basepath: z10.string().nullable(),
|
|
3025
|
+
/** Default basepath route for multi-basepath domains, when configured. */
|
|
3026
|
+
defaultBasepath: z10.string().nullable(),
|
|
3027
|
+
/** Basepaths routed on this domain, when configured. */
|
|
3028
|
+
basepaths: z10.array(z10.string()).nullable(),
|
|
3029
|
+
searchBehavior: z10.enum(["hierarchical", "unified"]).nullable(),
|
|
3030
|
+
passwordProtection: SitePasswordProtectionSchema
|
|
3031
|
+
});
|
|
2987
3032
|
var dashboardAgentContract = {
|
|
2988
3033
|
getTrafficSummary: import_contract6.oc.route({ method: "POST", path: "/get-traffic-summary" }).input(DashboardAnalyticsCommonInputSchema).output(TrafficSummaryResponseSchema),
|
|
2989
3034
|
getTopPages: import_contract6.oc.route({ method: "POST", path: "/get-top-pages" }).input(DashboardAnalyticsCommonInputSchema).output(TopPagesResponseSchema),
|
|
@@ -2993,7 +3038,9 @@ var dashboardAgentContract = {
|
|
|
2993
3038
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
2994
3039
|
queryAnalytics: import_contract6.oc.route({ method: "POST", path: "/query-analytics" }).input(QueryAnalyticsInputSchema).output(QueryAnalyticsResponseSchema),
|
|
2995
3040
|
listOrgDocDomains: import_contract6.oc.route({ method: "POST", path: "/list-org-doc-domains" }).input(DashboardListOrgDocDomainsInputSchema).output(OrgDocDomainsResponseSchema),
|
|
2996
|
-
listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema)
|
|
3041
|
+
listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
|
|
3042
|
+
getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
|
|
3043
|
+
getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
|
|
2997
3044
|
};
|
|
2998
3045
|
|
|
2999
3046
|
// src/orpc-client/dashboard-agent/client.ts
|
|
@@ -7060,6 +7107,7 @@ var UpsertThemeBodySchema = z36.object({
|
|
|
7060
7107
|
DashboardAnalyticsCommonInputSchema,
|
|
7061
7108
|
DashboardDocsSiteSchema,
|
|
7062
7109
|
DashboardFeedbackInputSchema,
|
|
7110
|
+
DashboardGetSiteConfigInputSchema,
|
|
7063
7111
|
DashboardListOrgDocDomainsInputSchema,
|
|
7064
7112
|
DashboardListOrgMembersInputSchema,
|
|
7065
7113
|
DateTypeSchema,
|
|
@@ -7503,7 +7551,11 @@ var UpsertThemeBodySchema = z36.object({
|
|
|
7503
7551
|
SetEditorRepoUrlInputSchema,
|
|
7504
7552
|
SetIsArchivedInputSchema,
|
|
7505
7553
|
SetSnapshotInputSchema,
|
|
7554
|
+
SiteConfigResponseSchema,
|
|
7555
|
+
SiteGitRepositorySchema,
|
|
7506
7556
|
SiteMetricsSchema,
|
|
7557
|
+
SitePasswordProtectionSchema,
|
|
7558
|
+
SiteSettingsResponseSchema,
|
|
7507
7559
|
SlugEntrySchema,
|
|
7508
7560
|
SlugsInputSchema,
|
|
7509
7561
|
SnippetInfoSchema,
|