@fern-api/fdr-sdk 1.2.108-ac2ecc2376 → 1.2.109-2a35d53a71

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
@@ -7841,6 +7841,51 @@ var SiteSettingsResponseSchema = z9.object({
7841
7841
  searchBehavior: z9.enum(["hierarchical", "unified"]).nullable(),
7842
7842
  passwordProtection: SitePasswordProtectionSchema
7843
7843
  });
7844
+ var ListDocsPagesInputSchema = z9.object({
7845
+ orgId: z9.string(),
7846
+ domain: z9.string().min(1),
7847
+ basepath: z9.string().optional(),
7848
+ prefix: z9.string().optional(),
7849
+ contains: z9.string().optional(),
7850
+ limit: z9.number().int().min(1).max(200).optional(),
7851
+ offset: z9.number().int().min(0).optional()
7852
+ });
7853
+ var DocsPageSummarySchema = z9.object({
7854
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
7855
+ slug: z9.string(),
7856
+ url: z9.string(),
7857
+ title: z9.string(),
7858
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
7859
+ nodeType: z9.string()
7860
+ });
7861
+ var ListDocsPagesResponseSchema = z9.object({
7862
+ pages: z9.array(DocsPageSummarySchema),
7863
+ /** Pages matching the filters across the whole site, not just this page of results. */
7864
+ totalMatched: z9.number(),
7865
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
7866
+ totalPages: z9.number(),
7867
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
7868
+ nextOffset: z9.number().nullable()
7869
+ });
7870
+ var GetDocsPageInputSchema = z9.object({
7871
+ orgId: z9.string(),
7872
+ domain: z9.string().min(1),
7873
+ basepath: z9.string().optional(),
7874
+ /** Published slug or pathname; a leading slash is accepted. */
7875
+ slug: z9.string().min(1)
7876
+ });
7877
+ var DocsPageContentSchema = DocsPageSummarySchema.extend({
7878
+ /**
7879
+ * The page's source markdown. Null for pages generated from an API definition
7880
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
7881
+ */
7882
+ markdown: z9.string().nullable()
7883
+ });
7884
+ var GetDocsPageResponseSchema = z9.object({
7885
+ page: DocsPageContentSchema.nullable(),
7886
+ /** Slugs closest to the requested one, when it matched no page. */
7887
+ suggestions: z9.array(z9.string())
7888
+ });
7844
7889
  var dashboardAgentContract = {
7845
7890
  getStaticContentTraffic: import_contract6.oc.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
7846
7891
  getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
@@ -7848,7 +7893,9 @@ var dashboardAgentContract = {
7848
7893
  listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
7849
7894
  getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
7850
7895
  authorizeDocsEdit: import_contract6.oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
7851
- getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
7896
+ getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
7897
+ listDocsPages: import_contract6.oc.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
7898
+ getDocsPage: import_contract6.oc.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
7852
7899
  };
7853
7900
 
7854
7901
  // src/orpc-client/dashboard-agent/client.ts