@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.
@@ -2344,6 +2344,51 @@ var SiteSettingsResponseSchema = z10.object({
2344
2344
  searchBehavior: z10.enum(["hierarchical", "unified"]).nullable(),
2345
2345
  passwordProtection: SitePasswordProtectionSchema
2346
2346
  });
2347
+ var ListDocsPagesInputSchema = z10.object({
2348
+ orgId: z10.string(),
2349
+ domain: z10.string().min(1),
2350
+ basepath: z10.string().optional(),
2351
+ prefix: z10.string().optional(),
2352
+ contains: z10.string().optional(),
2353
+ limit: z10.number().int().min(1).max(200).optional(),
2354
+ offset: z10.number().int().min(0).optional()
2355
+ });
2356
+ var DocsPageSummarySchema = z10.object({
2357
+ /** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
2358
+ slug: z10.string(),
2359
+ url: z10.string(),
2360
+ title: z10.string(),
2361
+ /** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
2362
+ nodeType: z10.string()
2363
+ });
2364
+ var ListDocsPagesResponseSchema = z10.object({
2365
+ pages: z10.array(DocsPageSummarySchema),
2366
+ /** Pages matching the filters across the whole site, not just this page of results. */
2367
+ totalMatched: z10.number(),
2368
+ /** Every page on the site, so a caller can tell a narrow filter from a small site. */
2369
+ totalPages: z10.number(),
2370
+ /** Pass back as `offset` for the next page. Null when this is the last one. */
2371
+ nextOffset: z10.number().nullable()
2372
+ });
2373
+ var GetDocsPageInputSchema = z10.object({
2374
+ orgId: z10.string(),
2375
+ domain: z10.string().min(1),
2376
+ basepath: z10.string().optional(),
2377
+ /** Published slug or pathname; a leading slash is accepted. */
2378
+ slug: z10.string().min(1)
2379
+ });
2380
+ var DocsPageContentSchema = DocsPageSummarySchema.extend({
2381
+ /**
2382
+ * The page's source markdown. Null for pages generated from an API definition
2383
+ * (endpoints, websockets, webhooks), which have no markdown of their own.
2384
+ */
2385
+ markdown: z10.string().nullable()
2386
+ });
2387
+ var GetDocsPageResponseSchema = z10.object({
2388
+ page: DocsPageContentSchema.nullable(),
2389
+ /** Slugs closest to the requested one, when it matched no page. */
2390
+ suggestions: z10.array(z10.string())
2391
+ });
2347
2392
  var dashboardAgentContract = {
2348
2393
  getStaticContentTraffic: oc4.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
2349
2394
  getRecentFeedback: oc4.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
@@ -2351,7 +2396,9 @@ var dashboardAgentContract = {
2351
2396
  listOrgMembers: oc4.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
2352
2397
  getSiteConfig: oc4.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
2353
2398
  authorizeDocsEdit: oc4.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
2354
- getSiteSettings: oc4.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
2399
+ getSiteSettings: oc4.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
2400
+ listDocsPages: oc4.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
2401
+ getDocsPage: oc4.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
2355
2402
  };
2356
2403
 
2357
2404
  // src/orpc-client/dashboard-agent/client.ts
@@ -6650,6 +6697,8 @@ export {
6650
6697
  DocsDeploymentSchema,
6651
6698
  DocsDeploymentStatusSchema,
6652
6699
  DocsDomainItemSchema,
6700
+ DocsPageContentSchema,
6701
+ DocsPageSummarySchema,
6653
6702
  DocsPublishGitInputSchema,
6654
6703
  DocsPublishInputSchema,
6655
6704
  DocsConfigSchema as DocsReadConfigSchema,
@@ -6735,6 +6784,8 @@ export {
6735
6784
  GetDocsForDomainInputSchema,
6736
6785
  GetDocsForDomainLegacyInputSchema,
6737
6786
  GetDocsForUrlInputSchema,
6787
+ GetDocsPageInputSchema,
6788
+ GetDocsPageResponseSchema,
6738
6789
  GetDocsSitesByCollectionIdInputSchema,
6739
6790
  GetDocsSitesByCollectionIdResponseSchema,
6740
6791
  GetDocsSitesForOrgInputSchema,
@@ -6902,6 +6953,8 @@ export {
6902
6953
  ListAllDocsUrlsResponseSchema,
6903
6954
  ListCliReleasesInputSchema,
6904
6955
  ListCliReleasesResponseSchema,
6956
+ ListDocsPagesInputSchema,
6957
+ ListDocsPagesResponseSchema,
6905
6958
  ListGeneratorReleasesInputSchema,
6906
6959
  ListGeneratorReleasesResponseSchema,
6907
6960
  ListPdfExportTasksInputSchema,