@redocly/redoc-reef 0.140.0-next.7 → 0.140.0-next.9
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/CHANGELOG.md +41 -0
- package/dist/client/app/useGlobalData.d.ts +1 -1
- package/dist/client/providers/post-message/use-post-message.d.ts +1 -1
- package/dist/server/config/env-config.d.ts +2 -0
- package/dist/server/config/env-schema.d.ts +4 -0
- package/dist/server/config/env-schemas/feature-flags.d.ts +4 -0
- package/dist/server/config/env-schemas/feature-flags.js +1 -1
- package/dist/server/plugins/api-docs/definition-access.d.ts +22 -0
- package/dist/server/plugins/api-docs/definition-access.js +1 -0
- package/dist/server/plugins/api-docs/index.js +1 -1
- package/dist/server/plugins/api-docs/options.js +1 -1
- package/dist/server/plugins/api-docs/spec-download.api.js +1 -1
- package/dist/server/plugins/api-docs/store-definition-bundles.d.ts +0 -6
- package/dist/server/plugins/api-docs/store-definition-bundles.js +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js +1 -1
- package/dist/server/plugins/mcp/handlers/docs-mcp-handler.js +1 -1
- package/dist/server/plugins/mcp/handlers/errors.d.ts +0 -5
- package/dist/server/plugins/mcp/handlers/errors.js +1 -1
- package/dist/server/plugins/mcp/handlers/mcp-credentials-handler.js +1 -1
- package/dist/server/plugins/mcp/servers/mcp-server.js +2 -2
- package/dist/server/plugins/scorecard-classic/compute-scorecard.d.ts +2 -2
- package/dist/server/plugins/scorecard-classic/compute-scorecard.js +1 -1
- package/dist/server/plugins/scorecard-classic/index.js +1 -1
- package/dist/server/tools/notifiers/helpers/colors.d.ts +1 -1
- package/dist/server/utils/envs/load-env-variables.js +1 -1
- package/dist/server/utils/rbac-expand.js +1 -1
- package/dist/server/utils/rbac.d.ts +5 -1
- package/dist/server/utils/rbac.js +1 -1
- package/dist/server/utils/report-all-errors.js +1 -1
- package/dist/server/web-server/middleware/jsonValidatorMiddleware.d.ts +1 -590
- package/dist/server/web-server/utils/ssrf-safe-lookup.d.ts +2 -1
- package/dist/server/web-server/utils/ssrf-safe-lookup.js +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import y from"path";import O from"picomatch";import"../node-crypto-polyfill.js";import{REDOCLY_TEAMS_RBAC as T,REDOCLY_ROUTE_RBAC as R}from"@redocly/config";import{MCP_ROUTE as U,PUBLIC_MCP_ROUTE as k}from"@redocly/theme/core/constants/mcp";import{ServerRoutes as w}from"../../constants/api.js";import{DEFAULT_ANONYMOUS_VISITOR_TEAM as D,PUBLIC_RBAC_SCOPE_ITEM as _,RBAC_ALL_OTHER_TEAMS as l,DEFAULT_RBAC_SCOPE as x,GRAPHQL_SPEC_SLUG as B}from"../../constants/common.js";import{DEPRECATED_PUBLIC_API_DEFINITIONS_FOLDER as g,PUBLIC_API_DEFINITIONS_FOLDER as I,PUBLIC_ASSETS_FOLDER as b,RUNTIME_RESOURCES_DIR as $,SCORECARD_CLASSIC_FOLDER as W,SITEMAP_FILE_NAME as v,LLMS_TXT_FILE_NAME as Y}from"../constants/common.js";import{MCP_CREDENTIALS_ROUTE as G}from"../constants/mcp.js";import{ANONYMOUS_AUTH_DETAILS as H}from"../constants/rbac.js";import{removeTrailingSlash as S}from"../../utils/url/remove-trailing-slash.js";import{removeLeadingSlash as z}from"../../utils/url/remove-leading-slash.js";import{parsePathVersions as K}from"../../utils/path/parse-path-versions.js";import{reporter as V}from"../tools/notifiers/reporter.js";import{bold as J}from"../tools/notifiers/helpers/colors.js";import{shaDirPathShort as Q}from"../utils/crypto/sha-dir-path-short.js";import{isTruthy as X}from"../../utils/guards/is-truthy.js";import{isPathInFolder as C}from"../../utils/path/is-path-in-folder.js";import{canExpandConfig as Z,expandRbacConfig as q,getTeamFolderDefaults as tt,parseTeamFoldersTemplate as et,parseTeamNameTemplate as rt}from"./rbac-expand.js";import{getUserParamsFromCookies as nt}from"../web-server/auth.js";import{getDeeperGlobPattern as ot}from"./globs.js";import{EntitlementsProvider as st}from"../entitlements/entitlements-provider.js";const j=["NONE","READ","TRIAGE","WRITE","MAINTAIN","ADMIN"],ct=new Set(["x-parsed-md-description","x-parsed-md-summary"]),at=new Set(Object.values(w).map(t=>S(t.split(":")[0])));function wt(t,e){const r=j.indexOf(t.toUpperCase()),n=j.indexOf(e.toUpperCase());return r>n?t:e}const P={};function F(t,e){if(!t?.content)return _;const r=t.content,{slug:n,fsPath:o}=e;if(!n&&!o)return _;const s=f=>{const E=`slug:${f}`,p=P[E]??O(f);P[E]=p;const A=`fsPath:${f}`,L=P[A]??O(z(f));return P[A]=L,!!(n&&p(n))||!!(o&&L(o))};if(ut(n||o||"")&&Object.keys(r).filter(p=>s(p)).length===0)return r[x]||_;const i=Object.keys(r).filter(f=>s(f));if(i.length==0)return _;const u=i.map(f=>O.scan(f,{tokens:!0,parts:!0}));let h=u[0];for(let f=1;f<u.length;f++)h=ot(h,u[f]);return r[h.input]}function N(t,e,r){const n=r?[...e,r]:e,o=[];for(const s of n)t[s]?o.push(t[s]):t[l]&&s!==r&&o.push(t[l]);return o.some(s=>s.toLowerCase()!=="none")}function Bt(t,e,r={},n=!1){if(n&&Object.keys(r).length===0)return e.isAuthenticated;const o=r.features?.[t];return o?N(o,e.teams):!0}function bt(t,e){return d(t,H,e.access?.rbac||{},e.access?.requiresLogin||!1)}function d(t,e={},r={},n=!1){if(t.slug&&typeof t.slug=="string"&&at.has(S(t.slug))||(t.slug===U||t.slug===k||t.slug===G)&&st.instance().canAccessFeature("mcp"))return!0;if(n&&Object.keys(r).length===0)return!!e.isAuthenticated;const o=q(r,e.teams||[]),s=t[T]||F(o,t[R]||{});return Object.keys(s||{}).length===0?!1:Object.keys(s).length===1&&s[l]&&s[l].toLowerCase()!=="none"?!0:N(s,e?.teams||[],e?.email)}function $t(t,e,r,n,o){if(!t.startsWith(I)&&!t.startsWith(g))return!0;if(o){const u={[T]:o.rbac,[R]:{slug:o.slug,fsPath:o.sourcePath}};return d(u,n,e,r)}const s=t.replace(new RegExp(`^${I}/`),"").replace(new RegExp(`^${g}/`),"").replace(new RegExp(`^${B}/`),""),a=s==="."?"":s,i={[R]:{slug:t,fsPath:a},slug:t};return d(i,n,e,r)}function Wt(t,e,r,n,o){if(!C(t,b))return[`/${v}`,`/${Y}`].includes(t)||[$,W].some(A=>C(t,A));const s=t.match(/\..{64}\.([A-Fa-f0-9]{8})\.[^.]+$/)?.[1];if(!s)return!0;const c=n[s];if(!c)return!0;const{base:a,ext:i}=y.parse(t),u=a.split(".")[0],h=i.split(".").join(""),E=c==="."?"":c,p={[R]:{slug:t,fsPath:y.posix.join(E,`${u}.${h}`)},slug:t};return d(p,o,e,r)}async function vt(t,e){const{isAuthenticated:r=!1,idpAccessToken:n,federatedAccessToken:o,federatedIdToken:s,...c}=await nt(t,e),{teams:a=[]}=c;let i;return r?i=a.filter(u=>u!==D):i=[D],{isAuthenticated:r,idpAccessToken:n,teams:i,claims:c}}function M(t,e,r={},n=!1){if(!t)return t;if(Array.isArray(t)){const o=[];for(const s of t){const c=M(s,e,r,n);c!==void 0&&o.push(c)}return o}if(typeof t=="object"){if(!d(t,e,r,n))return;let o=!1;const s={};for(const c in t){if(c===T||c===R)continue;if(ct.has(c)){s[c]=t[c];continue}const a=M(t[c],e,r,n);if(!t.link&&(c==="items"||c==="menu"&&t.type==="tab")&&Array.isArray(a)&&a.length===0&&t[c].length!==0){o=!0;continue}a!==void 0&&(s[c]=a),c==="paths"&&it(a)&&ft(a)}return o?void 0:s}return t}function Yt(t){return typeof t=="string"?t.split(" ").filter(Boolean):Array.isArray(t)?t.map(e=>e.toString()):[]}function Gt(t,e){if(!e)return;const r=e.content;if(!r)return e;const n=Object.entries(r).flatMap(([s,c])=>s===x?[[s,c]]:[[s,c]].concat(t.localeFolders.map(a=>[s.startsWith("/")?`/${a.toLocaleLowerCase()}${s}`:y.posix.join(t.localizationFolder,a,s),c]))),o=Object.fromEntries(n);return{...e,content:o}}async function Ht(t,e){if(!e)return{};const r={},n=new Set(t.scan().flatMap(({relativePath:o})=>{const{versionFolderPath:s}=K(o)||{},c=y.dirname(o);return s?[s,c]:c}));for(const o of n)r[Q(o)]=o;return r}const m=t=>typeof t=="object"&&t!==null&&!Array.isArray(t);function it(t){return m(t)&&Object.keys(t).length>0}function ft(t){for(const e of Object.keys(t)){const r=t[e];m(r)&&Object.keys(r).length===0&&delete t[e]}}function ut(t){return t?t.split("/").filter(Boolean).some(r=>r.startsWith(".")):!1}const lt=t=>{if(t&&m(t)&&("content"in t&&m(t.content)||"platform"in t&&m(t.platform)||"features"in t&&m(t.features)||t.teamFolders&&t.teamNamePatterns)){const e=Object.values(t.content||{});if(e.length===0)return!0;if(e.every(m))return e.every(r=>Object.values(r).every(n=>typeof n=="string"))}return!1},zt=async t=>{if(t){if(Object.keys(t).length===0)return{};if(lt(t))return mt(t);await V.panicOnContentError(`You are using an incorrect format of ${J("rbac:")} configuration. See: https://redocly.com/docs/realm/access`)}},mt=t=>{const e={...t};if(e.content){const r={};for(const n in e.content)if(e.content[n]!==void 0){const o=S(n);r[o]=e.content[n]}e.content=r}return e};function Kt(t,e){const r=t.fsPath,n=t.slug,o=[],s=Z(e)&&(r||n)?et(e,[r,n].filter(X)):null;if(s){const a=e?.teamNamePatterns?.map(i=>i.replace("{teamPathSegment}",s.teamPathSegment).replace("{projectRole}","read"))??[];o.push(...a)}const c=F(s?{content:{...tt(e),...e.content}}:e,t);return o.push(...pt(c)),ht(e,o)}function pt(t){if(!t)return[];const e=[],r=l in t?{authenticated:t[l],anonymous:t[l]}:{};for(const[n,o]of Object.entries({...r,...t}))o.toLowerCase()!=="none"&&n!==l&&e.push(n);return e}function ht(t,e){return e.map(n=>rt(t,n)??{teamName:n}).map(n=>n.projectRole&&n.projectRole!=="READ"?n.teamName?.toLowerCase().replace(n.projectRole?.toLowerCase?.()??"","read")??"":n.teamName?.toLowerCase()??"")}export{j as PROJECT_ROLES_ORDERED_BY_ACCESS_LEVEL,Gt as applyL10nToRbacConfig,Wt as canAccessAsset,Bt as canAccessFeature,d as canAccessResource,$t as canDownloadApiDefinition,ht as expandTeamsForRead,pt as extractTeamsFromScopeItems,M as filterDataByAccessDeep,vt as getAuthDetailsFromCookies,wt as getHigherRole,Kt as getRbacTeamsListForResource,F as getScopeItemsForResource,N as hasScopeAccess,lt as isRbacConfigValid,bt as isResourcePubliclyAccessible,mt as normalizeRbacConfig,zt as parseRbacConfig,Yt as parseTeamClaimToArray,Ht as resolveDirectoryHashes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{envConfig as p}from"../config/env-config.js";import{logger as l}from"../tools/notifiers/logger.js";import{reporter as r}from"../tools/notifiers/reporter.js";import{isMarkdocError as d}from"../plugins/markdown/errors.js";import{telemetryTraceStep as g}from"../../cli/telemetry/helpers/trace-step.js";import{writeProblemsReport as u}from"./write-problems-report.js";async function M(
|
|
1
|
+
import{envConfig as p}from"../config/env-config.js";import{logger as l}from"../tools/notifiers/logger.js";import{reporter as r}from"../tools/notifiers/reporter.js";import{isMarkdocError as d}from"../plugins/markdown/errors.js";import{telemetryTraceStep as g}from"../../cli/telemetry/helpers/trace-step.js";import{writeProblemsReport as u}from"./write-problems-report.js";async function M(o){await g("com.redocly.build.validationErrors",async e=>{let t=0;for(const[c,f]of o.cache.errors.entries()){const m=c.split(":")[1];for(const i of f)d(i)?(r.reportMarkdocProblem(i),i.type!=="BROKEN_LINK"&&t++):await r.panicOnBuild(i.message,m)}const n=await o.getConfig();if(!p.isBuildMode)return;const s=r.getPageRenderProblems().length;e?.setAttribute("markdocErrors",t.toString()),e?.setAttribute("pageRenderErrors",s.toString()),t>0&&!n?.platform?.ignoreMarkdocErrors?await a(`Need to fix ${t} Markdoc issue(s) or set the \`ignoreMarkdocErrors\` option to \`true\` in the \`platform\` section of your \`redocly.yaml\``):s>0&&await a(`Need to fix ${s} runtime error(s) in React pages`)})}async function a(o){r.printErrors();try{u()}catch(e){l.warn("Failed to write the problems report: "+e.message)}await r.panic(o)}export{M as reportAllErrors};
|
|
@@ -12,594 +12,5 @@ export declare function jsonValidatorMiddleware<T extends ZodSchema>(schema: T):
|
|
|
12
12
|
out: {
|
|
13
13
|
json: T extends import("zod/v3").ZodType<any, import("zod/v3").ZodTypeDef, any> ? import("zod/v3").output<T> : T extends import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? import("zod").infer<T> : never;
|
|
14
14
|
};
|
|
15
|
-
},
|
|
16
|
-
success: boolean;
|
|
17
|
-
error: ({
|
|
18
|
-
readonly path: (string | number | null)[];
|
|
19
|
-
readonly message: string;
|
|
20
|
-
readonly code: "custom";
|
|
21
|
-
readonly params?: Record<string, any> | undefined;
|
|
22
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
23
|
-
} | {
|
|
24
|
-
readonly path: (string | number | null)[];
|
|
25
|
-
readonly message: string;
|
|
26
|
-
readonly code: "invalid_element";
|
|
27
|
-
readonly origin: "map" | "set";
|
|
28
|
-
readonly key: import("hono/utils/types").JSONValue;
|
|
29
|
-
readonly issues: ({
|
|
30
|
-
readonly path: (string | number | null)[];
|
|
31
|
-
readonly message: string;
|
|
32
|
-
readonly code: "custom";
|
|
33
|
-
readonly params?: Record<string, any> | undefined;
|
|
34
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
35
|
-
} | /*elided*/ any | {
|
|
36
|
-
readonly path: (string | number | null)[];
|
|
37
|
-
readonly message: string;
|
|
38
|
-
readonly code: "invalid_key";
|
|
39
|
-
readonly origin: "map" | "record";
|
|
40
|
-
readonly issues: ({
|
|
41
|
-
readonly path: (string | number | null)[];
|
|
42
|
-
readonly message: string;
|
|
43
|
-
readonly code: "custom";
|
|
44
|
-
readonly params?: Record<string, any> | undefined;
|
|
45
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
46
|
-
} | /*elided*/ any | /*elided*/ any | {
|
|
47
|
-
readonly path: (string | number | null)[];
|
|
48
|
-
readonly message: string;
|
|
49
|
-
readonly code: "invalid_format";
|
|
50
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
51
|
-
readonly pattern?: string;
|
|
52
|
-
readonly input?: string;
|
|
53
|
-
} | {
|
|
54
|
-
readonly path: (string | number | null)[];
|
|
55
|
-
readonly message: string;
|
|
56
|
-
readonly code: "invalid_type";
|
|
57
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
58
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
readonly path: (string | number | null)[];
|
|
61
|
-
readonly message: string;
|
|
62
|
-
readonly code: "invalid_value";
|
|
63
|
-
readonly values: (string | number | boolean | null)[];
|
|
64
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
65
|
-
} | {
|
|
66
|
-
readonly path: (string | number | null)[];
|
|
67
|
-
readonly message: string;
|
|
68
|
-
readonly code: "not_multiple_of";
|
|
69
|
-
readonly divisor: number;
|
|
70
|
-
readonly input?: number | undefined;
|
|
71
|
-
} | {
|
|
72
|
-
readonly path: (string | number | null)[];
|
|
73
|
-
readonly message: string;
|
|
74
|
-
readonly code: "too_big";
|
|
75
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
76
|
-
readonly maximum: number;
|
|
77
|
-
readonly inclusive?: boolean;
|
|
78
|
-
readonly exact?: boolean;
|
|
79
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
80
|
-
} | {
|
|
81
|
-
readonly path: (string | number | null)[];
|
|
82
|
-
readonly message: string;
|
|
83
|
-
readonly code: "too_small";
|
|
84
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
85
|
-
readonly minimum: number;
|
|
86
|
-
readonly inclusive?: boolean;
|
|
87
|
-
readonly exact?: boolean;
|
|
88
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
89
|
-
} | {
|
|
90
|
-
readonly path: (string | number | null)[];
|
|
91
|
-
readonly message: string;
|
|
92
|
-
readonly code: "unrecognized_keys";
|
|
93
|
-
readonly keys: string[];
|
|
94
|
-
readonly input?: {
|
|
95
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
96
|
-
} | undefined;
|
|
97
|
-
} | {
|
|
98
|
-
readonly path: (string | number | null)[];
|
|
99
|
-
readonly message: string;
|
|
100
|
-
readonly code: "invalid_union";
|
|
101
|
-
readonly errors: [];
|
|
102
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
103
|
-
readonly discriminator?: string | undefined;
|
|
104
|
-
readonly inclusive: false;
|
|
105
|
-
readonly matches: number[];
|
|
106
|
-
} | {
|
|
107
|
-
readonly path: (string | number | null)[];
|
|
108
|
-
readonly message: string;
|
|
109
|
-
readonly code: "invalid_union";
|
|
110
|
-
readonly errors: ({
|
|
111
|
-
readonly path: (string | number | null)[];
|
|
112
|
-
readonly message: string;
|
|
113
|
-
readonly code: "custom";
|
|
114
|
-
readonly params?: Record<string, any> | undefined;
|
|
115
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
116
|
-
} | /*elided*/ any | /*elided*/ any | {
|
|
117
|
-
readonly path: (string | number | null)[];
|
|
118
|
-
readonly message: string;
|
|
119
|
-
readonly code: "invalid_format";
|
|
120
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
121
|
-
readonly pattern?: string;
|
|
122
|
-
readonly input?: string;
|
|
123
|
-
} | {
|
|
124
|
-
readonly path: (string | number | null)[];
|
|
125
|
-
readonly message: string;
|
|
126
|
-
readonly code: "invalid_type";
|
|
127
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
128
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
129
|
-
} | {
|
|
130
|
-
readonly path: (string | number | null)[];
|
|
131
|
-
readonly message: string;
|
|
132
|
-
readonly code: "invalid_value";
|
|
133
|
-
readonly values: (string | number | boolean | null)[];
|
|
134
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
135
|
-
} | {
|
|
136
|
-
readonly path: (string | number | null)[];
|
|
137
|
-
readonly message: string;
|
|
138
|
-
readonly code: "not_multiple_of";
|
|
139
|
-
readonly divisor: number;
|
|
140
|
-
readonly input?: number | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
readonly path: (string | number | null)[];
|
|
143
|
-
readonly message: string;
|
|
144
|
-
readonly code: "too_big";
|
|
145
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
146
|
-
readonly maximum: number;
|
|
147
|
-
readonly inclusive?: boolean;
|
|
148
|
-
readonly exact?: boolean;
|
|
149
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
150
|
-
} | {
|
|
151
|
-
readonly path: (string | number | null)[];
|
|
152
|
-
readonly message: string;
|
|
153
|
-
readonly code: "too_small";
|
|
154
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
155
|
-
readonly minimum: number;
|
|
156
|
-
readonly inclusive?: boolean;
|
|
157
|
-
readonly exact?: boolean;
|
|
158
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
159
|
-
} | {
|
|
160
|
-
readonly path: (string | number | null)[];
|
|
161
|
-
readonly message: string;
|
|
162
|
-
readonly code: "unrecognized_keys";
|
|
163
|
-
readonly keys: string[];
|
|
164
|
-
readonly input?: {
|
|
165
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
166
|
-
} | undefined;
|
|
167
|
-
} | {
|
|
168
|
-
readonly path: (string | number | null)[];
|
|
169
|
-
readonly message: string;
|
|
170
|
-
readonly code: "invalid_union";
|
|
171
|
-
readonly errors: [];
|
|
172
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
173
|
-
readonly discriminator?: string | undefined;
|
|
174
|
-
readonly inclusive: false;
|
|
175
|
-
readonly matches: number[];
|
|
176
|
-
} | /*elided*/ any)[][];
|
|
177
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
178
|
-
readonly discriminator?: string | undefined;
|
|
179
|
-
readonly options?: (string | number | boolean | null)[] | undefined;
|
|
180
|
-
readonly inclusive?: true;
|
|
181
|
-
})[];
|
|
182
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
183
|
-
} | {
|
|
184
|
-
readonly path: (string | number | null)[];
|
|
185
|
-
readonly message: string;
|
|
186
|
-
readonly code: "invalid_format";
|
|
187
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
188
|
-
readonly pattern?: string;
|
|
189
|
-
readonly input?: string;
|
|
190
|
-
} | {
|
|
191
|
-
readonly path: (string | number | null)[];
|
|
192
|
-
readonly message: string;
|
|
193
|
-
readonly code: "invalid_type";
|
|
194
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
195
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
196
|
-
} | {
|
|
197
|
-
readonly path: (string | number | null)[];
|
|
198
|
-
readonly message: string;
|
|
199
|
-
readonly code: "invalid_value";
|
|
200
|
-
readonly values: (string | number | boolean | null)[];
|
|
201
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
202
|
-
} | {
|
|
203
|
-
readonly path: (string | number | null)[];
|
|
204
|
-
readonly message: string;
|
|
205
|
-
readonly code: "not_multiple_of";
|
|
206
|
-
readonly divisor: number;
|
|
207
|
-
readonly input?: number | undefined;
|
|
208
|
-
} | {
|
|
209
|
-
readonly path: (string | number | null)[];
|
|
210
|
-
readonly message: string;
|
|
211
|
-
readonly code: "too_big";
|
|
212
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
213
|
-
readonly maximum: number;
|
|
214
|
-
readonly inclusive?: boolean;
|
|
215
|
-
readonly exact?: boolean;
|
|
216
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
217
|
-
} | {
|
|
218
|
-
readonly path: (string | number | null)[];
|
|
219
|
-
readonly message: string;
|
|
220
|
-
readonly code: "too_small";
|
|
221
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
222
|
-
readonly minimum: number;
|
|
223
|
-
readonly inclusive?: boolean;
|
|
224
|
-
readonly exact?: boolean;
|
|
225
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
226
|
-
} | {
|
|
227
|
-
readonly path: (string | number | null)[];
|
|
228
|
-
readonly message: string;
|
|
229
|
-
readonly code: "unrecognized_keys";
|
|
230
|
-
readonly keys: string[];
|
|
231
|
-
readonly input?: {
|
|
232
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
233
|
-
} | undefined;
|
|
234
|
-
} | {
|
|
235
|
-
readonly path: (string | number | null)[];
|
|
236
|
-
readonly message: string;
|
|
237
|
-
readonly code: "invalid_union";
|
|
238
|
-
readonly errors: [];
|
|
239
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
240
|
-
readonly discriminator?: string | undefined;
|
|
241
|
-
readonly inclusive: false;
|
|
242
|
-
readonly matches: number[];
|
|
243
|
-
} | {
|
|
244
|
-
readonly path: (string | number | null)[];
|
|
245
|
-
readonly message: string;
|
|
246
|
-
readonly code: "invalid_union";
|
|
247
|
-
readonly errors: ({
|
|
248
|
-
readonly path: (string | number | null)[];
|
|
249
|
-
readonly message: string;
|
|
250
|
-
readonly code: "custom";
|
|
251
|
-
readonly params?: Record<string, any> | undefined;
|
|
252
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
253
|
-
} | any | any | {
|
|
254
|
-
readonly path: (string | number | null)[];
|
|
255
|
-
readonly message: string;
|
|
256
|
-
readonly code: "invalid_format";
|
|
257
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
258
|
-
readonly pattern?: string;
|
|
259
|
-
readonly input?: string;
|
|
260
|
-
} | {
|
|
261
|
-
readonly path: (string | number | null)[];
|
|
262
|
-
readonly message: string;
|
|
263
|
-
readonly code: "invalid_type";
|
|
264
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
265
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
266
|
-
} | {
|
|
267
|
-
readonly path: (string | number | null)[];
|
|
268
|
-
readonly message: string;
|
|
269
|
-
readonly code: "invalid_value";
|
|
270
|
-
readonly values: (string | number | boolean | null)[];
|
|
271
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
272
|
-
} | {
|
|
273
|
-
readonly path: (string | number | null)[];
|
|
274
|
-
readonly message: string;
|
|
275
|
-
readonly code: "not_multiple_of";
|
|
276
|
-
readonly divisor: number;
|
|
277
|
-
readonly input?: number | undefined;
|
|
278
|
-
} | {
|
|
279
|
-
readonly path: (string | number | null)[];
|
|
280
|
-
readonly message: string;
|
|
281
|
-
readonly code: "too_big";
|
|
282
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
283
|
-
readonly maximum: number;
|
|
284
|
-
readonly inclusive?: boolean;
|
|
285
|
-
readonly exact?: boolean;
|
|
286
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
287
|
-
} | {
|
|
288
|
-
readonly path: (string | number | null)[];
|
|
289
|
-
readonly message: string;
|
|
290
|
-
readonly code: "too_small";
|
|
291
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
292
|
-
readonly minimum: number;
|
|
293
|
-
readonly inclusive?: boolean;
|
|
294
|
-
readonly exact?: boolean;
|
|
295
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
296
|
-
} | {
|
|
297
|
-
readonly path: (string | number | null)[];
|
|
298
|
-
readonly message: string;
|
|
299
|
-
readonly code: "unrecognized_keys";
|
|
300
|
-
readonly keys: string[];
|
|
301
|
-
readonly input?: {
|
|
302
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
303
|
-
} | undefined;
|
|
304
|
-
} | {
|
|
305
|
-
readonly path: (string | number | null)[];
|
|
306
|
-
readonly message: string;
|
|
307
|
-
readonly code: "invalid_union";
|
|
308
|
-
readonly errors: [];
|
|
309
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
310
|
-
readonly discriminator?: string | undefined;
|
|
311
|
-
readonly inclusive: false;
|
|
312
|
-
readonly matches: number[];
|
|
313
|
-
} | any)[][];
|
|
314
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
315
|
-
readonly discriminator?: string | undefined;
|
|
316
|
-
readonly options?: (string | number | boolean | null)[] | undefined;
|
|
317
|
-
readonly inclusive?: true;
|
|
318
|
-
})[];
|
|
319
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
320
|
-
} | {
|
|
321
|
-
readonly path: (string | number | null)[];
|
|
322
|
-
readonly message: string;
|
|
323
|
-
readonly code: "invalid_key";
|
|
324
|
-
readonly origin: "map" | "record";
|
|
325
|
-
readonly issues: ({
|
|
326
|
-
readonly path: (string | number | null)[];
|
|
327
|
-
readonly message: string;
|
|
328
|
-
readonly code: "custom";
|
|
329
|
-
readonly params?: Record<string, any> | undefined;
|
|
330
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
331
|
-
} | any | any | {
|
|
332
|
-
readonly path: (string | number | null)[];
|
|
333
|
-
readonly message: string;
|
|
334
|
-
readonly code: "invalid_format";
|
|
335
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
336
|
-
readonly pattern?: string;
|
|
337
|
-
readonly input?: string;
|
|
338
|
-
} | {
|
|
339
|
-
readonly path: (string | number | null)[];
|
|
340
|
-
readonly message: string;
|
|
341
|
-
readonly code: "invalid_type";
|
|
342
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
343
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
344
|
-
} | {
|
|
345
|
-
readonly path: (string | number | null)[];
|
|
346
|
-
readonly message: string;
|
|
347
|
-
readonly code: "invalid_value";
|
|
348
|
-
readonly values: (string | number | boolean | null)[];
|
|
349
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
350
|
-
} | {
|
|
351
|
-
readonly path: (string | number | null)[];
|
|
352
|
-
readonly message: string;
|
|
353
|
-
readonly code: "not_multiple_of";
|
|
354
|
-
readonly divisor: number;
|
|
355
|
-
readonly input?: number | undefined;
|
|
356
|
-
} | {
|
|
357
|
-
readonly path: (string | number | null)[];
|
|
358
|
-
readonly message: string;
|
|
359
|
-
readonly code: "too_big";
|
|
360
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
361
|
-
readonly maximum: number;
|
|
362
|
-
readonly inclusive?: boolean;
|
|
363
|
-
readonly exact?: boolean;
|
|
364
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
365
|
-
} | {
|
|
366
|
-
readonly path: (string | number | null)[];
|
|
367
|
-
readonly message: string;
|
|
368
|
-
readonly code: "too_small";
|
|
369
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
370
|
-
readonly minimum: number;
|
|
371
|
-
readonly inclusive?: boolean;
|
|
372
|
-
readonly exact?: boolean;
|
|
373
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
374
|
-
} | {
|
|
375
|
-
readonly path: (string | number | null)[];
|
|
376
|
-
readonly message: string;
|
|
377
|
-
readonly code: "unrecognized_keys";
|
|
378
|
-
readonly keys: string[];
|
|
379
|
-
readonly input?: {
|
|
380
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
381
|
-
} | undefined;
|
|
382
|
-
} | {
|
|
383
|
-
readonly path: (string | number | null)[];
|
|
384
|
-
readonly message: string;
|
|
385
|
-
readonly code: "invalid_union";
|
|
386
|
-
readonly errors: [];
|
|
387
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
388
|
-
readonly discriminator?: string | undefined;
|
|
389
|
-
readonly inclusive: false;
|
|
390
|
-
readonly matches: number[];
|
|
391
|
-
} | {
|
|
392
|
-
readonly path: (string | number | null)[];
|
|
393
|
-
readonly message: string;
|
|
394
|
-
readonly code: "invalid_union";
|
|
395
|
-
readonly errors: ({
|
|
396
|
-
readonly path: (string | number | null)[];
|
|
397
|
-
readonly message: string;
|
|
398
|
-
readonly code: "custom";
|
|
399
|
-
readonly params?: Record<string, any> | undefined;
|
|
400
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
401
|
-
} | any | any | {
|
|
402
|
-
readonly path: (string | number | null)[];
|
|
403
|
-
readonly message: string;
|
|
404
|
-
readonly code: "invalid_format";
|
|
405
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
406
|
-
readonly pattern?: string;
|
|
407
|
-
readonly input?: string;
|
|
408
|
-
} | {
|
|
409
|
-
readonly path: (string | number | null)[];
|
|
410
|
-
readonly message: string;
|
|
411
|
-
readonly code: "invalid_type";
|
|
412
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
413
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
414
|
-
} | {
|
|
415
|
-
readonly path: (string | number | null)[];
|
|
416
|
-
readonly message: string;
|
|
417
|
-
readonly code: "invalid_value";
|
|
418
|
-
readonly values: (string | number | boolean | null)[];
|
|
419
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
420
|
-
} | {
|
|
421
|
-
readonly path: (string | number | null)[];
|
|
422
|
-
readonly message: string;
|
|
423
|
-
readonly code: "not_multiple_of";
|
|
424
|
-
readonly divisor: number;
|
|
425
|
-
readonly input?: number | undefined;
|
|
426
|
-
} | {
|
|
427
|
-
readonly path: (string | number | null)[];
|
|
428
|
-
readonly message: string;
|
|
429
|
-
readonly code: "too_big";
|
|
430
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
431
|
-
readonly maximum: number;
|
|
432
|
-
readonly inclusive?: boolean;
|
|
433
|
-
readonly exact?: boolean;
|
|
434
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
435
|
-
} | {
|
|
436
|
-
readonly path: (string | number | null)[];
|
|
437
|
-
readonly message: string;
|
|
438
|
-
readonly code: "too_small";
|
|
439
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
440
|
-
readonly minimum: number;
|
|
441
|
-
readonly inclusive?: boolean;
|
|
442
|
-
readonly exact?: boolean;
|
|
443
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
444
|
-
} | {
|
|
445
|
-
readonly path: (string | number | null)[];
|
|
446
|
-
readonly message: string;
|
|
447
|
-
readonly code: "unrecognized_keys";
|
|
448
|
-
readonly keys: string[];
|
|
449
|
-
readonly input?: {
|
|
450
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
451
|
-
} | undefined;
|
|
452
|
-
} | {
|
|
453
|
-
readonly path: (string | number | null)[];
|
|
454
|
-
readonly message: string;
|
|
455
|
-
readonly code: "invalid_union";
|
|
456
|
-
readonly errors: [];
|
|
457
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
458
|
-
readonly discriminator?: string | undefined;
|
|
459
|
-
readonly inclusive: false;
|
|
460
|
-
readonly matches: number[];
|
|
461
|
-
} | any)[][];
|
|
462
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
463
|
-
readonly discriminator?: string | undefined;
|
|
464
|
-
readonly options?: (string | number | boolean | null)[] | undefined;
|
|
465
|
-
readonly inclusive?: true;
|
|
466
|
-
})[];
|
|
467
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
468
|
-
} | {
|
|
469
|
-
readonly path: (string | number | null)[];
|
|
470
|
-
readonly message: string;
|
|
471
|
-
readonly code: "invalid_format";
|
|
472
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
473
|
-
readonly pattern?: string;
|
|
474
|
-
readonly input?: string;
|
|
475
|
-
} | {
|
|
476
|
-
readonly path: (string | number | null)[];
|
|
477
|
-
readonly message: string;
|
|
478
|
-
readonly code: "invalid_type";
|
|
479
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
480
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
481
|
-
} | {
|
|
482
|
-
readonly path: (string | number | null)[];
|
|
483
|
-
readonly message: string;
|
|
484
|
-
readonly code: "invalid_value";
|
|
485
|
-
readonly values: (string | number | boolean | null)[];
|
|
486
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
487
|
-
} | {
|
|
488
|
-
readonly path: (string | number | null)[];
|
|
489
|
-
readonly message: string;
|
|
490
|
-
readonly code: "not_multiple_of";
|
|
491
|
-
readonly divisor: number;
|
|
492
|
-
readonly input?: number | undefined;
|
|
493
|
-
} | {
|
|
494
|
-
readonly path: (string | number | null)[];
|
|
495
|
-
readonly message: string;
|
|
496
|
-
readonly code: "too_big";
|
|
497
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
498
|
-
readonly maximum: number;
|
|
499
|
-
readonly inclusive?: boolean;
|
|
500
|
-
readonly exact?: boolean;
|
|
501
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
502
|
-
} | {
|
|
503
|
-
readonly path: (string | number | null)[];
|
|
504
|
-
readonly message: string;
|
|
505
|
-
readonly code: "too_small";
|
|
506
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
507
|
-
readonly minimum: number;
|
|
508
|
-
readonly inclusive?: boolean;
|
|
509
|
-
readonly exact?: boolean;
|
|
510
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
511
|
-
} | {
|
|
512
|
-
readonly path: (string | number | null)[];
|
|
513
|
-
readonly message: string;
|
|
514
|
-
readonly code: "unrecognized_keys";
|
|
515
|
-
readonly keys: string[];
|
|
516
|
-
readonly input?: {
|
|
517
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
518
|
-
} | undefined;
|
|
519
|
-
} | {
|
|
520
|
-
readonly path: (string | number | null)[];
|
|
521
|
-
readonly message: string;
|
|
522
|
-
readonly code: "invalid_union";
|
|
523
|
-
readonly errors: [];
|
|
524
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
525
|
-
readonly discriminator?: string | undefined;
|
|
526
|
-
readonly inclusive: false;
|
|
527
|
-
readonly matches: number[];
|
|
528
|
-
} | {
|
|
529
|
-
readonly path: (string | number | null)[];
|
|
530
|
-
readonly message: string;
|
|
531
|
-
readonly code: "invalid_union";
|
|
532
|
-
readonly errors: ({
|
|
533
|
-
readonly path: (string | number | null)[];
|
|
534
|
-
readonly message: string;
|
|
535
|
-
readonly code: "custom";
|
|
536
|
-
readonly params?: Record<string, any> | undefined;
|
|
537
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
538
|
-
} | any | any | {
|
|
539
|
-
readonly path: (string | number | null)[];
|
|
540
|
-
readonly message: string;
|
|
541
|
-
readonly code: "invalid_format";
|
|
542
|
-
readonly format: import("zod/v4/core").$ZodStringFormats | (string & {});
|
|
543
|
-
readonly pattern?: string;
|
|
544
|
-
readonly input?: string;
|
|
545
|
-
} | {
|
|
546
|
-
readonly path: (string | number | null)[];
|
|
547
|
-
readonly message: string;
|
|
548
|
-
readonly code: "invalid_type";
|
|
549
|
-
readonly expected: import("zod/v4/core").$ZodInvalidTypeExpected;
|
|
550
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
551
|
-
} | {
|
|
552
|
-
readonly path: (string | number | null)[];
|
|
553
|
-
readonly message: string;
|
|
554
|
-
readonly code: "invalid_value";
|
|
555
|
-
readonly values: (string | number | boolean | null)[];
|
|
556
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
557
|
-
} | {
|
|
558
|
-
readonly path: (string | number | null)[];
|
|
559
|
-
readonly message: string;
|
|
560
|
-
readonly code: "not_multiple_of";
|
|
561
|
-
readonly divisor: number;
|
|
562
|
-
readonly input?: number | undefined;
|
|
563
|
-
} | {
|
|
564
|
-
readonly path: (string | number | null)[];
|
|
565
|
-
readonly message: string;
|
|
566
|
-
readonly code: "too_big";
|
|
567
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
568
|
-
readonly maximum: number;
|
|
569
|
-
readonly inclusive?: boolean;
|
|
570
|
-
readonly exact?: boolean;
|
|
571
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
572
|
-
} | {
|
|
573
|
-
readonly path: (string | number | null)[];
|
|
574
|
-
readonly message: string;
|
|
575
|
-
readonly code: "too_small";
|
|
576
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
577
|
-
readonly minimum: number;
|
|
578
|
-
readonly inclusive?: boolean;
|
|
579
|
-
readonly exact?: boolean;
|
|
580
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
581
|
-
} | {
|
|
582
|
-
readonly path: (string | number | null)[];
|
|
583
|
-
readonly message: string;
|
|
584
|
-
readonly code: "unrecognized_keys";
|
|
585
|
-
readonly keys: string[];
|
|
586
|
-
readonly input?: {
|
|
587
|
-
[x: string]: import("hono/utils/types").JSONValue;
|
|
588
|
-
} | undefined;
|
|
589
|
-
} | {
|
|
590
|
-
readonly path: (string | number | null)[];
|
|
591
|
-
readonly message: string;
|
|
592
|
-
readonly code: "invalid_union";
|
|
593
|
-
readonly errors: [];
|
|
594
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
595
|
-
readonly discriminator?: string | undefined;
|
|
596
|
-
readonly inclusive: false;
|
|
597
|
-
readonly matches: number[];
|
|
598
|
-
} | any)[][];
|
|
599
|
-
readonly input?: import("hono/utils/types").JSONValue | undefined;
|
|
600
|
-
readonly discriminator?: string | undefined;
|
|
601
|
-
readonly options?: (string | number | boolean | null)[] | undefined;
|
|
602
|
-
readonly inclusive?: true;
|
|
603
|
-
})[];
|
|
604
|
-
}, 400, "json">)>;
|
|
15
|
+
}, Response>;
|
|
605
16
|
//# sourceMappingURL=jsonValidatorMiddleware.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type LookupFunction } from 'node:net';
|
|
2
2
|
/**
|
|
3
3
|
* Returns a drop-in replacement for `dns.lookup` that errors with
|
|
4
|
-
* {@link SsrfBlockedError} if any resolved address is in the blocklist.
|
|
4
|
+
* {@link SsrfBlockedError} if any resolved address is in the blocklist. The error message names
|
|
5
|
+
* the hostname only, never a resolved address, so callers may show it to the client.
|
|
5
6
|
*
|
|
6
7
|
* Install on an http/https agent (`connect.lookup` for undici, or `lookup` for a node:https Agent)
|
|
7
8
|
* so that every socket connection — including those made while following redirects — is re-validated
|