@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.
package/dist/js/index.mjs CHANGED
@@ -7778,6 +7778,51 @@ var SiteSettingsResponseSchema = z9.object({
7778
7778
  searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
7779
7779
  passwordProtection: SitePasswordProtectionSchema
7780
7780
  });
7781
+ var ListDocsPagesInputSchema = z9.object({
7782
+ orgId: z9.string(),
7783
+ domain: z9.string().min(1),
7784
+ basepath: z9.string().optional(),
7785
+ prefix: z9.string().optional(),
7786
+ contains: z9.string().optional(),
7787
+ limit: z9.number().int().min(1).max(200).optional(),
7788
+ offset: z9.number().int().min(0).optional()
7789
+ });
7790
+ var DocsPageSummarySchema = z9.object({
7791
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
7792
+ slug: z9.string(),
7793
+ url: z9.string(),
7794
+ title: z9.string(),
7795
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
7796
+ nodeType: z9.string()
7797
+ });
7798
+ var ListDocsPagesResponseSchema = z9.object({
7799
+ pages: z9.array(DocsPageSummarySchema),
7800
+ /** Pages matching the filters across the whole site, not just this page of results. */
7801
+ totalMatched: z9.number(),
7802
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
7803
+ totalPages: z9.number(),
7804
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
7805
+ nextOffset: z9.number().nullable()
7806
+ });
7807
+ var GetDocsPageInputSchema = z9.object({
7808
+ orgId: z9.string(),
7809
+ domain: z9.string().min(1),
7810
+ basepath: z9.string().optional(),
7811
+ /** Published slug or pathname; a leading slash is accepted. */
7812
+ slug: z9.string().min(1)
7813
+ });
7814
+ var DocsPageContentSchema = DocsPageSummarySchema.extend({
7815
+ /**
7816
+ * The page's source markdown. Null for pages generated from an API definition
7817
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
7818
+ */
7819
+ markdown: z9.string().nullable()
7820
+ });
7821
+ var GetDocsPageResponseSchema = z9.object({
7822
+ page: DocsPageContentSchema.nullable(),
7823
+ /** Slugs closest to the requested one, when it matched no page. */
7824
+ suggestions: z9.array(z9.string())
7825
+ });
7781
7826
  var dashboardAgentContract = {
7782
7827
  getStaticContentTraffic: oc4.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
7783
7828
  getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
@@ -7785,7 +7830,9 @@ var dashboardAgentContract = {
7785
7830
  listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
7786
7831
  getSiteConfig: oc4.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
7787
7832
  authorizeDocsEdit: oc4.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
7788
- getSiteSettings: oc4.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
7833
+ getSiteSettings: oc4.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
7834
+ listDocsPages: oc4.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
7835
+ getDocsPage: oc4.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
7789
7836
  };
7790
7837
 
7791
7838
  // src/orpc-client/dashboard-agent/client.ts
@@ -13439,7 +13486,13 @@ var FrontmatterSchema = WithMetadataConfigSchema.merge(WithJsonLdBreadcrumbsSche
13439
13486
  excerpt: z34.string().optional(),
13440
13487
  "canonical-url": z34.string().optional(),
13441
13488
  tags: StringOrStringListSchema.optional(),
13442
- "last-updated": z34.string().optional()
13489
+ "last-updated": z34.string().optional(),
13490
+ /**
13491
+ * Arbitrary author-defined metadata that is copied onto this page's search
13492
+ * records, so it can be faceted and filtered on by full path
13493
+ * (`search_metadata.<key>`) via the search API. Not interpreted by Fern.
13494
+ */
13495
+ "search-metadata": z34.record(z34.unknown()).optional()
13443
13496
  })
13444
13497
  );
13445
13498
  var ResolvedMdxSchema = z34.object({