@fern-api/fdr-sdk 1.2.108-ac2ecc2376 → 1.2.109-877fc8a8c8
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 +48 -1
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +48 -1
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/index.js +48 -1
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +48 -1
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/orpc-client.js +60 -1
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +54 -1
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/types/orpc-client/dashboard-agent/contract.d.ts +326 -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
|
@@ -123,6 +123,8 @@ __export(orpc_client_exports, {
|
|
|
123
123
|
DocsDeploymentSchema: () => DocsDeploymentSchema,
|
|
124
124
|
DocsDeploymentStatusSchema: () => DocsDeploymentStatusSchema,
|
|
125
125
|
DocsDomainItemSchema: () => DocsDomainItemSchema,
|
|
126
|
+
DocsPageContentSchema: () => DocsPageContentSchema,
|
|
127
|
+
DocsPageSummarySchema: () => DocsPageSummarySchema,
|
|
126
128
|
DocsPublishGitInputSchema: () => DocsPublishGitInputSchema,
|
|
127
129
|
DocsPublishInputSchema: () => DocsPublishInputSchema,
|
|
128
130
|
DocsReadConfigSchema: () => DocsConfigSchema,
|
|
@@ -208,6 +210,8 @@ __export(orpc_client_exports, {
|
|
|
208
210
|
GetDocsForDomainInputSchema: () => GetDocsForDomainInputSchema,
|
|
209
211
|
GetDocsForDomainLegacyInputSchema: () => GetDocsForDomainLegacyInputSchema,
|
|
210
212
|
GetDocsForUrlInputSchema: () => GetDocsForUrlInputSchema,
|
|
213
|
+
GetDocsPageInputSchema: () => GetDocsPageInputSchema,
|
|
214
|
+
GetDocsPageResponseSchema: () => GetDocsPageResponseSchema,
|
|
211
215
|
GetDocsSitesByCollectionIdInputSchema: () => GetDocsSitesByCollectionIdInputSchema,
|
|
212
216
|
GetDocsSitesByCollectionIdResponseSchema: () => GetDocsSitesByCollectionIdResponseSchema,
|
|
213
217
|
GetDocsSitesForOrgInputSchema: () => GetDocsSitesForOrgInputSchema,
|
|
@@ -375,6 +379,8 @@ __export(orpc_client_exports, {
|
|
|
375
379
|
ListAllDocsUrlsResponseSchema: () => ListAllDocsUrlsResponseSchema,
|
|
376
380
|
ListCliReleasesInputSchema: () => ListCliReleasesInputSchema,
|
|
377
381
|
ListCliReleasesResponseSchema: () => ListCliReleasesResponseSchema,
|
|
382
|
+
ListDocsPagesInputSchema: () => ListDocsPagesInputSchema,
|
|
383
|
+
ListDocsPagesResponseSchema: () => ListDocsPagesResponseSchema,
|
|
378
384
|
ListGeneratorReleasesInputSchema: () => ListGeneratorReleasesInputSchema,
|
|
379
385
|
ListGeneratorReleasesResponseSchema: () => ListGeneratorReleasesResponseSchema,
|
|
380
386
|
ListPdfExportTasksInputSchema: () => ListPdfExportTasksInputSchema,
|
|
@@ -3035,6 +3041,51 @@ var SiteSettingsResponseSchema = z10.object({
|
|
|
3035
3041
|
searchBehavior: z10.enum(["hierarchical", "unified"]).nullable(),
|
|
3036
3042
|
passwordProtection: SitePasswordProtectionSchema
|
|
3037
3043
|
});
|
|
3044
|
+
var ListDocsPagesInputSchema = z10.object({
|
|
3045
|
+
orgId: z10.string(),
|
|
3046
|
+
domain: z10.string().min(1),
|
|
3047
|
+
basepath: z10.string().optional(),
|
|
3048
|
+
prefix: z10.string().optional(),
|
|
3049
|
+
contains: z10.string().optional(),
|
|
3050
|
+
limit: z10.number().int().min(1).max(200).optional(),
|
|
3051
|
+
offset: z10.number().int().min(0).optional()
|
|
3052
|
+
});
|
|
3053
|
+
var DocsPageSummarySchema = z10.object({
|
|
3054
|
+
/** Full published slug, without a leading slash (e.g. `protect/api-reference/jobs/get-status`). */
|
|
3055
|
+
slug: z10.string(),
|
|
3056
|
+
url: z10.string(),
|
|
3057
|
+
title: z10.string(),
|
|
3058
|
+
/** Artifact type backing the page, e.g. `markdown`, `rest`, `webhook`, `changelog`. */
|
|
3059
|
+
nodeType: z10.string()
|
|
3060
|
+
});
|
|
3061
|
+
var ListDocsPagesResponseSchema = z10.object({
|
|
3062
|
+
pages: z10.array(DocsPageSummarySchema),
|
|
3063
|
+
/** Pages matching the filters across the whole site, not just this page of results. */
|
|
3064
|
+
totalMatched: z10.number(),
|
|
3065
|
+
/** Every page on the site, so a caller can tell a narrow filter from a small site. */
|
|
3066
|
+
totalPages: z10.number(),
|
|
3067
|
+
/** Pass back as `offset` for the next page. Null when this is the last one. */
|
|
3068
|
+
nextOffset: z10.number().nullable()
|
|
3069
|
+
});
|
|
3070
|
+
var GetDocsPageInputSchema = z10.object({
|
|
3071
|
+
orgId: z10.string(),
|
|
3072
|
+
domain: z10.string().min(1),
|
|
3073
|
+
basepath: z10.string().optional(),
|
|
3074
|
+
/** Published slug or pathname; a leading slash is accepted. */
|
|
3075
|
+
slug: z10.string().min(1)
|
|
3076
|
+
});
|
|
3077
|
+
var DocsPageContentSchema = DocsPageSummarySchema.extend({
|
|
3078
|
+
/**
|
|
3079
|
+
* The page's source markdown. Null for pages generated from an API definition
|
|
3080
|
+
* (endpoints, websockets, webhooks), which have no markdown of their own.
|
|
3081
|
+
*/
|
|
3082
|
+
markdown: z10.string().nullable()
|
|
3083
|
+
});
|
|
3084
|
+
var GetDocsPageResponseSchema = z10.object({
|
|
3085
|
+
page: DocsPageContentSchema.nullable(),
|
|
3086
|
+
/** Slugs closest to the requested one, when it matched no page. */
|
|
3087
|
+
suggestions: z10.array(z10.string())
|
|
3088
|
+
});
|
|
3038
3089
|
var dashboardAgentContract = {
|
|
3039
3090
|
getStaticContentTraffic: import_contract6.oc.route({ method: "POST", path: "/get-static-content-traffic" }).input(StaticContentTrafficInputSchema).output(StaticContentTrafficResponseSchema),
|
|
3040
3091
|
getRecentFeedback: import_contract6.oc.route({ method: "POST", path: "/get-recent-feedback" }).input(DashboardFeedbackInputSchema).output(RecentFeedbackResponseSchema),
|
|
@@ -3042,7 +3093,9 @@ var dashboardAgentContract = {
|
|
|
3042
3093
|
listOrgMembers: import_contract6.oc.route({ method: "POST", path: "/list-org-members" }).input(DashboardListOrgMembersInputSchema).output(OrgMembersResponseSchema),
|
|
3043
3094
|
getSiteConfig: import_contract6.oc.route({ method: "POST", path: "/get-site-config" }).input(DashboardGetSiteConfigInputSchema).output(SiteConfigResponseSchema),
|
|
3044
3095
|
authorizeDocsEdit: import_contract6.oc.route({ method: "POST", path: "/authorize-docs-edit" }).input(DashboardGetSiteConfigInputSchema).output(AuthorizeDocsEditResponseSchema),
|
|
3045
|
-
getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema)
|
|
3096
|
+
getSiteSettings: import_contract6.oc.route({ method: "POST", path: "/get-site-settings" }).input(DashboardGetSiteConfigInputSchema).output(SiteSettingsResponseSchema),
|
|
3097
|
+
listDocsPages: import_contract6.oc.route({ method: "POST", path: "/list-docs-pages" }).input(ListDocsPagesInputSchema).output(ListDocsPagesResponseSchema),
|
|
3098
|
+
getDocsPage: import_contract6.oc.route({ method: "POST", path: "/get-docs-page" }).input(GetDocsPageInputSchema).output(GetDocsPageResponseSchema)
|
|
3046
3099
|
};
|
|
3047
3100
|
|
|
3048
3101
|
// src/orpc-client/dashboard-agent/client.ts
|
|
@@ -7342,6 +7395,8 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7342
7395
|
DocsDeploymentSchema,
|
|
7343
7396
|
DocsDeploymentStatusSchema,
|
|
7344
7397
|
DocsDomainItemSchema,
|
|
7398
|
+
DocsPageContentSchema,
|
|
7399
|
+
DocsPageSummarySchema,
|
|
7345
7400
|
DocsPublishGitInputSchema,
|
|
7346
7401
|
DocsPublishInputSchema,
|
|
7347
7402
|
DocsReadConfigSchema,
|
|
@@ -7427,6 +7482,8 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7427
7482
|
GetDocsForDomainInputSchema,
|
|
7428
7483
|
GetDocsForDomainLegacyInputSchema,
|
|
7429
7484
|
GetDocsForUrlInputSchema,
|
|
7485
|
+
GetDocsPageInputSchema,
|
|
7486
|
+
GetDocsPageResponseSchema,
|
|
7430
7487
|
GetDocsSitesByCollectionIdInputSchema,
|
|
7431
7488
|
GetDocsSitesByCollectionIdResponseSchema,
|
|
7432
7489
|
GetDocsSitesForOrgInputSchema,
|
|
@@ -7594,6 +7651,8 @@ var UpsertThemeBodySchema = z37.object({
|
|
|
7594
7651
|
ListAllDocsUrlsResponseSchema,
|
|
7595
7652
|
ListCliReleasesInputSchema,
|
|
7596
7653
|
ListCliReleasesResponseSchema,
|
|
7654
|
+
ListDocsPagesInputSchema,
|
|
7655
|
+
ListDocsPagesResponseSchema,
|
|
7597
7656
|
ListGeneratorReleasesInputSchema,
|
|
7598
7657
|
ListGeneratorReleasesResponseSchema,
|
|
7599
7658
|
ListPdfExportTasksInputSchema,
|