@fern-api/fdr-sdk 1.2.108-19002ea03c → 1.2.108-4e7cf51acd

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.
@@ -2165,6 +2165,51 @@ var SiteSettingsResponseSchema = z9.object({
2165
2165
  searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
2166
2166
  passwordProtection: SitePasswordProtectionSchema
2167
2167
  });
2168
+ var ListDocsPagesInputSchema = z9.object({
2169
+ orgId: z9.string(),
2170
+ domain: z9.string().min(1),
2171
+ basepath: z9.string().optional(),
2172
+ prefix: z9.string().optional(),
2173
+ contains: z9.string().optional(),
2174
+ limit: z9.number().int().min(1).max(200).optional(),
2175
+ offset: z9.number().int().min(0).optional()
2176
+ });
2177
+ var DocsPageSummarySchema = z9.object({
2178
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
2179
+ slug: z9.string(),
2180
+ url: z9.string(),
2181
+ title: z9.string(),
2182
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
2183
+ nodeType: z9.string()
2184
+ });
2185
+ var ListDocsPagesResponseSchema = z9.object({
2186
+ pages: z9.array(DocsPageSummarySchema),
2187
+ /** Pages matching the filters across the whole site, not just this page of results. */
2188
+ totalMatched: z9.number(),
2189
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
2190
+ totalPages: z9.number(),
2191
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
2192
+ nextOffset: z9.number().nullable()
2193
+ });
2194
+ var GetDocsPageInputSchema = z9.object({
2195
+ orgId: z9.string(),
2196
+ domain: z9.string().min(1),
2197
+ basepath: z9.string().optional(),
2198
+ /** Published slug or pathname; a leading slash is accepted. */
2199
+ slug: z9.string().min(1)
2200
+ });
2201
+ var DocsPageContentSchema = DocsPageSummarySchema.extend({
2202
+ /**
2203
+ * The page's source markdown. Null for pages generated from an API definition
2204
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
2205
+ */
2206
+ markdown: z9.string().nullable()
2207
+ });
2208
+ var GetDocsPageResponseSchema = z9.object({
2209
+ page: DocsPageContentSchema.nullable(),
2210
+ /** Slugs closest to the requested one, when it matched no page. */
2211
+ suggestions: z9.array(z9.string())
2212
+ });
2168
2213
  var dashboardAgentContract = {
2169
2214
  getStaticContentTraffic: import_contract6.oc.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
2170
2215
  getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
@@ -2172,7 +2217,9 @@ var dashboardAgentContract = {
2172
2217
  listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
2173
2218
  getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
2174
2219
  authorizeDocsEdit: import_contract6.oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
2175
- getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
2220
+ getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
2221
+ listDocsPages: import_contract6.oc.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
2222
+ getDocsPage: import_contract6.oc.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
2176
2223
  };
2177
2224
 
2178
2225
  // src/orpc-client/dashboard-agent/client.ts