@devizovaburza/payments-api-sdk 1.1.0 → 1.2.1

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.
@@ -1,1953 +1,12 @@
1
- /**
2
- * @module
3
- * HTTP Status utility.
4
- */
5
- type InfoStatusCode = 100 | 101 | 102 | 103;
6
- type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
7
- type DeprecatedStatusCode = 305 | 306;
8
- type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308;
9
- type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
10
- type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
11
- /**
12
- * `UnofficialStatusCode` can be used to specify an unofficial status code.
13
- * @example
14
- *
15
- * ```ts
16
- * app.get('/unknown', (c) => {
17
- * return c.text("Unknown Error", 520 as UnofficialStatusCode)
18
- * })
19
- * ```
20
- */
21
- type UnofficialStatusCode = -1;
22
- /**
23
- * If you want to use an unofficial status, use `UnofficialStatusCode`.
24
- */
25
- type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode;
26
- type ContentlessStatusCode = 101 | 204 | 205 | 304;
27
- type ContentfulStatusCode = Exclude<StatusCode, ContentlessStatusCode>;
28
-
29
- declare const GET_MATCH_RESULT: unique symbol;
30
-
31
- /**
32
- * Constant representing all HTTP methods in lowercase.
33
- */
34
- declare const METHOD_NAME_ALL_LOWERCASE: "all";
35
- /**
36
- * Array of supported HTTP methods.
37
- */
38
- declare const METHODS: readonly ["get", "post", "put", "delete", "options", "patch"];
39
- /**
40
- * Interface representing a router.
41
- *
42
- * @template T - The type of the handler.
43
- */
44
- interface Router<T> {
45
- /**
46
- * The name of the router.
47
- */
48
- name: string;
49
- /**
50
- * Adds a route to the router.
51
- *
52
- * @param method - The HTTP method (e.g., 'get', 'post').
53
- * @param path - The path for the route.
54
- * @param handler - The handler for the route.
55
- */
56
- add(method: string, path: string, handler: T): void;
57
- /**
58
- * Matches a route based on the given method and path.
59
- *
60
- * @param method - The HTTP method (e.g., 'get', 'post').
61
- * @param path - The path to match.
62
- * @returns The result of the match.
63
- */
64
- match(method: string, path: string): Result<T>;
65
- }
66
- /**
67
- * Type representing a map of parameter indices.
68
- */
69
- type ParamIndexMap = Record<string, number>;
70
- /**
71
- * Type representing a stash of parameters.
72
- */
73
- type ParamStash = string[];
74
- /**
75
- * Type representing a map of parameters.
76
- */
77
- type Params = Record<string, string>;
78
- /**
79
- * Type representing the result of a route match.
80
- *
81
- * The result can be in one of two formats:
82
- * 1. An array of handlers with their corresponding parameter index maps, followed by a parameter stash.
83
- * 2. An array of handlers with their corresponding parameter maps.
84
- *
85
- * Example:
86
- *
87
- * [[handler, paramIndexMap][], paramArray]
88
- * ```typescript
89
- * [
90
- * [
91
- * [middlewareA, {}], // '*'
92
- * [funcA, {'id': 0}], // '/user/:id/*'
93
- * [funcB, {'id': 0, 'action': 1}], // '/user/:id/:action'
94
- * ],
95
- * ['123', 'abc']
96
- * ]
97
- * ```
98
- *
99
- * [[handler, params][]]
100
- * ```typescript
101
- * [
102
- * [
103
- * [middlewareA, {}], // '*'
104
- * [funcA, {'id': '123'}], // '/user/:id/*'
105
- * [funcB, {'id': '123', 'action': 'abc'}], // '/user/:id/:action'
106
- * ]
107
- * ]
108
- * ```
109
- */
110
- type Result<T> = [[T, ParamIndexMap][], ParamStash] | [[T, Params][]];
111
-
112
- /**
113
- * @module
114
- * HTTP Headers utility.
115
- */
116
- type RequestHeader = 'A-IM' | 'Accept' | 'Accept-Additions' | 'Accept-CH' | 'Accept-Charset' | 'Accept-Datetime' | 'Accept-Encoding' | 'Accept-Features' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges' | 'Accept-Signature' | 'Access-Control' | 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Age' | 'Allow' | 'ALPN' | 'Alt-Svc' | 'Alt-Used' | 'Alternates' | 'AMP-Cache-Transform' | 'Apply-To-Redirect-Ref' | 'Authentication-Control' | 'Authentication-Info' | 'Authorization' | 'Available-Dictionary' | 'C-Ext' | 'C-Man' | 'C-Opt' | 'C-PEP' | 'C-PEP-Info' | 'Cache-Control' | 'Cache-Status' | 'Cal-Managed-ID' | 'CalDAV-Timezones' | 'Capsule-Protocol' | 'CDN-Cache-Control' | 'CDN-Loop' | 'Cert-Not-After' | 'Cert-Not-Before' | 'Clear-Site-Data' | 'Client-Cert' | 'Client-Cert-Chain' | 'Close' | 'CMCD-Object' | 'CMCD-Request' | 'CMCD-Session' | 'CMCD-Status' | 'CMSD-Dynamic' | 'CMSD-Static' | 'Concealed-Auth-Export' | 'Configuration-Context' | 'Connection' | 'Content-Base' | 'Content-Digest' | 'Content-Disposition' | 'Content-Encoding' | 'Content-ID' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-MD5' | 'Content-Range' | 'Content-Script-Type' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Style-Type' | 'Content-Type' | 'Content-Version' | 'Cookie' | 'Cookie2' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Embedder-Policy-Report-Only' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Opener-Policy-Report-Only' | 'Cross-Origin-Resource-Policy' | 'CTA-Common-Access-Token' | 'DASL' | 'Date' | 'DAV' | 'Default-Style' | 'Delta-Base' | 'Deprecation' | 'Depth' | 'Derived-From' | 'Destination' | 'Differential-ID' | 'Dictionary-ID' | 'Digest' | 'DPoP' | 'DPoP-Nonce' | 'Early-Data' | 'EDIINT-Features' | 'ETag' | 'Expect' | 'Expect-CT' | 'Expires' | 'Ext' | 'Forwarded' | 'From' | 'GetProfile' | 'Hobareg' | 'Host' | 'HTTP2-Settings' | 'If' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Schedule-Tag-Match' | 'If-Unmodified-Since' | 'IM' | 'Include-Referred-Token-Binding-ID' | 'Isolation' | 'Keep-Alive' | 'Label' | 'Last-Event-ID' | 'Last-Modified' | 'Link' | 'Link-Template' | 'Location' | 'Lock-Token' | 'Man' | 'Max-Forwards' | 'Memento-Datetime' | 'Meter' | 'Method-Check' | 'Method-Check-Expires' | 'MIME-Version' | 'Negotiate' | 'NEL' | 'OData-EntityId' | 'OData-Isolation' | 'OData-MaxVersion' | 'OData-Version' | 'Opt' | 'Optional-WWW-Authenticate' | 'Ordering-Type' | 'Origin' | 'Origin-Agent-Cluster' | 'OSCORE' | 'OSLC-Core-Version' | 'Overwrite' | 'P3P' | 'PEP' | 'PEP-Info' | 'Permissions-Policy' | 'PICS-Label' | 'Ping-From' | 'Ping-To' | 'Position' | 'Pragma' | 'Prefer' | 'Preference-Applied' | 'Priority' | 'ProfileObject' | 'Protocol' | 'Protocol-Info' | 'Protocol-Query' | 'Protocol-Request' | 'Proxy-Authenticate' | 'Proxy-Authentication-Info' | 'Proxy-Authorization' | 'Proxy-Features' | 'Proxy-Instruction' | 'Proxy-Status' | 'Public' | 'Public-Key-Pins' | 'Public-Key-Pins-Report-Only' | 'Range' | 'Redirect-Ref' | 'Referer' | 'Referer-Root' | 'Referrer-Policy' | 'Refresh' | 'Repeatability-Client-ID' | 'Repeatability-First-Sent' | 'Repeatability-Request-ID' | 'Repeatability-Result' | 'Replay-Nonce' | 'Reporting-Endpoints' | 'Repr-Digest' | 'Retry-After' | 'Safe' | 'Schedule-Reply' | 'Schedule-Tag' | 'Sec-GPC' | 'Sec-Purpose' | 'Sec-Token-Binding' | 'Sec-WebSocket-Accept' | 'Sec-WebSocket-Extensions' | 'Sec-WebSocket-Key' | 'Sec-WebSocket-Protocol' | 'Sec-WebSocket-Version' | 'Security-Scheme' | 'Server' | 'Server-Timing' | 'Set-Cookie' | 'Set-Cookie2' | 'SetProfile' | 'Signature' | 'Signature-Input' | 'SLUG' | 'SoapAction' | 'Status-URI' | 'Strict-Transport-Security' | 'Sunset' | 'Surrogate-Capability' | 'Surrogate-Control' | 'TCN' | 'TE' | 'Timeout' | 'Timing-Allow-Origin' | 'Topic' | 'Traceparent' | 'Tracestate' | 'Trailer' | 'Transfer-Encoding' | 'TTL' | 'Upgrade' | 'Urgency' | 'URI' | 'Use-As-Dictionary' | 'User-Agent' | 'Variant-Vary' | 'Vary' | 'Via' | 'Want-Content-Digest' | 'Want-Digest' | 'Want-Repr-Digest' | 'Warning' | 'WWW-Authenticate' | 'X-Content-Type-Options' | 'X-Frame-Options';
117
- type ResponseHeader = 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Age' | 'Allow' | 'Cache-Control' | 'Clear-Site-Data' | 'Content-Disposition' | 'Content-Encoding' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-Range' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Type' | 'Cookie' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Resource-Policy' | 'Date' | 'ETag' | 'Expires' | 'Last-Modified' | 'Location' | 'Permissions-Policy' | 'Pragma' | 'Retry-After' | 'Save-Data' | 'Sec-CH-Prefers-Color-Scheme' | 'Sec-CH-Prefers-Reduced-Motion' | 'Sec-CH-UA' | 'Sec-CH-UA-Arch' | 'Sec-CH-UA-Bitness' | 'Sec-CH-UA-Form-Factor' | 'Sec-CH-UA-Full-Version' | 'Sec-CH-UA-Full-Version-List' | 'Sec-CH-UA-Mobile' | 'Sec-CH-UA-Model' | 'Sec-CH-UA-Platform' | 'Sec-CH-UA-Platform-Version' | 'Sec-CH-UA-WoW64' | 'Sec-Fetch-Dest' | 'Sec-Fetch-Mode' | 'Sec-Fetch-Site' | 'Sec-Fetch-User' | 'Sec-GPC' | 'Server' | 'Server-Timing' | 'Service-Worker-Navigation-Preload' | 'Set-Cookie' | 'Strict-Transport-Security' | 'Timing-Allow-Origin' | 'Trailer' | 'Transfer-Encoding' | 'Upgrade' | 'Vary' | 'WWW-Authenticate' | 'Warning' | 'X-Content-Type-Options' | 'X-DNS-Prefetch-Control' | 'X-Frame-Options' | 'X-Permitted-Cross-Domain-Policies' | 'X-Powered-By' | 'X-Robots-Tag' | 'X-XSS-Protection';
118
- type CustomHeader = string & {};
119
-
120
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
121
- type RemoveBlankRecord<T> = T extends Record<infer K, unknown> ? (K extends string ? T : never) : never;
122
- type IfAnyThenEmptyObject<T> = 0 extends 1 & T ? {} : T;
123
- type JSONPrimitive = string | boolean | number | null;
124
- type JSONArray = (JSONPrimitive | JSONObject | JSONArray)[];
125
- type JSONObject = {
126
- [key: string]: JSONPrimitive | JSONArray | JSONObject | object | InvalidJSONValue;
127
- };
128
- type InvalidJSONValue = undefined | symbol | ((...args: unknown[]) => unknown);
129
- type InvalidToNull<T> = T extends InvalidJSONValue ? null : T;
130
- type IsInvalid<T> = T extends InvalidJSONValue ? true : false;
131
- /**
132
- * symbol keys are omitted through `JSON.stringify`
133
- */
134
- type OmitSymbolKeys<T> = {
135
- [K in keyof T as K extends symbol ? never : K]: T[K];
136
- };
137
- type JSONValue = JSONObject | JSONArray | JSONPrimitive;
138
- /**
139
- * Convert a type to a JSON-compatible type.
140
- *
141
- * Non-JSON values such as `Date` implement `.toJSON()`,
142
- * so they can be transformed to a value assignable to `JSONObject`
143
- *
144
- * `JSON.stringify()` throws a `TypeError` when it encounters a `bigint` value,
145
- * unless a custom `replacer` function or `.toJSON()` method is provided.
146
- *
147
- * This behaviour can be controlled by the `TError` generic type parameter,
148
- * which defaults to `bigint | ReadonlyArray<bigint>`.
149
- * You can set it to `never` to disable this check.
150
- */
151
- type JSONParsed<T, TError = bigint | ReadonlyArray<bigint>> = T extends {
152
- toJSON(): infer J;
153
- } ? (() => J) extends () => JSONPrimitive ? J : (() => J) extends () => {
154
- toJSON(): unknown;
155
- } ? {} : JSONParsed<J, TError> : T extends JSONPrimitive ? T : T extends InvalidJSONValue ? never : T extends ReadonlyArray<unknown> ? {
156
- [K in keyof T]: JSONParsed<InvalidToNull<T[K]>, TError>;
157
- } : T extends Set<unknown> | Map<unknown, unknown> | Record<string, never> ? {} : T extends object ? T[keyof T] extends TError ? never : {
158
- [K in keyof OmitSymbolKeys<T> as IsInvalid<T[K]> extends true ? never : K]: boolean extends IsInvalid<T[K]> ? JSONParsed<T[K], TError> | undefined : JSONParsed<T[K], TError>;
159
- } : T extends unknown ? T extends TError ? never : JSONValue : never;
160
- /**
161
- * Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
162
- * @copyright from sindresorhus/type-fest
163
- */
164
- type Simplify<T> = {
165
- [KeyType in keyof T]: T[KeyType];
166
- } & {};
167
- type RequiredKeysOf<BaseType extends object> = Exclude<{
168
- [Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]> ? Key : never;
169
- }[keyof BaseType], undefined>;
170
- type HasRequiredKeys<BaseType extends object> = RequiredKeysOf<BaseType> extends never ? false : true;
171
- type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
172
-
173
- /**
174
- * @module
175
- * This module contains some type definitions for the Hono modules.
176
- */
177
-
178
- type Bindings = object;
179
- type Variables = object;
180
- type BlankEnv = {};
181
- type Env = {
182
- Bindings?: Bindings;
183
- Variables?: Variables;
184
- };
185
- type Next = () => Promise<void>;
186
- type ExtractInput<I extends Input | Input['in']> = I extends Input ? unknown extends I['in'] ? {} : I['in'] : I;
187
- type Input = {
188
- in?: {};
189
- out?: {};
190
- outputFormat?: ResponseFormat;
191
- };
192
- type BlankSchema = {};
193
- type BlankInput = {};
194
- interface RouterRoute {
195
- basePath: string;
196
- path: string;
197
- method: string;
198
- handler: H;
199
- }
200
- type HandlerResponse<O> = Response | TypedResponse<O> | Promise<Response | TypedResponse<O>> | Promise<void>;
201
- type Handler<E extends Env = any, P extends string = any, I extends Input = BlankInput, R extends HandlerResponse<any> = any> = (c: Context<E, P, I>, next: Next) => R;
202
- type MiddlewareHandler<E extends Env = any, P extends string = string, I extends Input = {}, R extends HandlerResponse<any> = Response> = (c: Context<E, P, I>, next: Next) => Promise<R | void>;
203
- type H<E extends Env = any, P extends string = any, I extends Input = BlankInput, R extends HandlerResponse<any> = any> = Handler<E, P, I, R> | MiddlewareHandler<E, P, I, R>;
204
- /**
205
- * You can extend this interface to define a custom `c.notFound()` Response type.
206
- *
207
- * @example
208
- * declare module 'hono' {
209
- * interface NotFoundResponse extends Response, TypedResponse<string, 404, 'text'> {}
210
- * }
211
- */
212
- interface NotFoundResponse {
213
- }
214
- type NotFoundHandler<E extends Env = any> = (c: Context<E>) => NotFoundResponse extends Response ? NotFoundResponse | Promise<NotFoundResponse> : Response | Promise<Response>;
215
- interface HTTPResponseError extends Error {
216
- getResponse: () => Response;
217
- }
218
- type ErrorHandler<E extends Env = any> = (err: Error | HTTPResponseError, c: Context<E>) => Response | Promise<Response>;
219
- interface HandlerInterface<E extends Env = Env, M extends string = string, S extends Schema = BlankSchema, BasePath extends string = '/', CurrentPath extends string = BasePath> {
220
- <P extends string = CurrentPath, I extends Input = BlankInput, R extends HandlerResponse<any> = any, E2 extends Env = E>(handler: H<E2, P, I, R>): Hono$1<IntersectNonAnyTypes<[E, E2]>, S & ToSchema<M, P, I, MergeTypedResponse<R>>, BasePath, CurrentPath>;
221
- <P extends string = CurrentPath, I extends Input = BlankInput, I2 extends Input = I, R extends HandlerResponse<any> = any, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, M1 extends H<E2, P, any> = H<E2, P, any>>(...handlers: [H<E2, P, I> & M1, H<E3, P, I2, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3]>, S & ToSchema<M, P, I2, MergeTypedResponse<R> | MergeMiddlewareResponse<M1>>, BasePath, CurrentPath>;
222
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, E2 extends Env = E>(path: P, handler: H<E2, MergedPath, I, R>): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R>, S, M, P, I, BasePath>, BasePath, MergePath<BasePath, P>>;
223
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>>(...handlers: [H<E2, P, I> & M1, H<E3, P, I2> & M2, H<E4, P, I3, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4]>, S & ToSchema<M, P, I3, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2>>, BasePath, CurrentPath>;
224
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>>(path: P, ...handlers: [H<E2, MergedPath, I> & M1, H<E3, MergedPath, I2, R>]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1>, S, M, P, I2, BasePath>, BasePath, MergePath<BasePath, P>>;
225
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>>(...handlers: [H<E2, P, I> & M1, H<E3, P, I2> & M2, H<E4, P, I3> & M3, H<E5, P, I4, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, S & ToSchema<M, P, I4, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3>>, BasePath, CurrentPath>;
226
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>>(path: P, ...handlers: [H<E2, MergedPath, I> & M1, H<E3, MergedPath, I2> & M2, H<E4, MergedPath, I3, R>]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2>, S, M, P, I3, BasePath>, BasePath, MergePath<BasePath, P>>;
227
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>>(...handlers: [
228
- H<E2, P, I> & M1,
229
- H<E3, P, I2> & M2,
230
- H<E4, P, I3> & M3,
231
- H<E5, P, I4> & M4,
232
- H<E6, P, I5, R>
233
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, S & ToSchema<M, P, I5, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4>>, BasePath, CurrentPath>;
234
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>>(path: P, ...handlers: [
235
- H<E2, MergedPath, I> & M1,
236
- H<E3, MergedPath, I2> & M2,
237
- H<E4, MergedPath, I3> & M3,
238
- H<E5, MergedPath, I4, R>
239
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3>, S, M, P, I4, BasePath>, BasePath, MergePath<BasePath, P>>;
240
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>, M5 extends H<E6, P, any> = H<E6, P, any>>(...handlers: [
241
- H<E2, P, I> & M1,
242
- H<E3, P, I2> & M2,
243
- H<E4, P, I3> & M3,
244
- H<E5, P, I4> & M4,
245
- H<E6, P, I5> & M5,
246
- H<E7, P, I6, R>
247
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, S & ToSchema<M, P, I6, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5>>, BasePath, CurrentPath>;
248
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>>(path: P, ...handlers: [
249
- H<E2, MergedPath, I> & M1,
250
- H<E3, MergedPath, I2> & M2,
251
- H<E4, MergedPath, I3> & M3,
252
- H<E5, MergedPath, I4> & M4,
253
- H<E6, MergedPath, I5, R>
254
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4>, S, M, P, I5, BasePath>, BasePath, MergePath<BasePath, P>>;
255
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>, M5 extends H<E6, P, any> = H<E6, P, any>, M6 extends H<E7, P, any> = H<E7, P, any>>(...handlers: [
256
- H<E2, P, I> & M1,
257
- H<E3, P, I2> & M2,
258
- H<E4, P, I3> & M3,
259
- H<E5, P, I4> & M4,
260
- H<E6, P, I5> & M5,
261
- H<E7, P, I6> & M6,
262
- H<E8, P, I7, R>
263
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, S & ToSchema<M, P, I7, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6>>, BasePath, CurrentPath>;
264
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>, M5 extends H<E6, MergedPath, any> = H<E6, MergedPath, any>>(path: P, ...handlers: [
265
- H<E2, MergedPath, I> & M1,
266
- H<E3, MergedPath, I2> & M2,
267
- H<E4, MergedPath, I3> & M3,
268
- H<E5, MergedPath, I4> & M4,
269
- H<E6, MergedPath, I5> & M5,
270
- H<E7, MergedPath, I6, R>
271
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5>, S, M, P, I6, BasePath>, BasePath, MergePath<BasePath, P>>;
272
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>, M5 extends H<E6, P, any> = H<E6, P, any>, M6 extends H<E7, P, any> = H<E7, P, any>, M7 extends H<E8, P, any> = H<E8, P, any>>(...handlers: [
273
- H<E2, P, I> & M1,
274
- H<E3, P, I2> & M2,
275
- H<E4, P, I3> & M3,
276
- H<E5, P, I4> & M4,
277
- H<E6, P, I5> & M5,
278
- H<E7, P, I6> & M6,
279
- H<E8, P, I7> & M7,
280
- H<E9, P, I8, R>
281
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, S & ToSchema<M, P, I8, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7>>, BasePath, CurrentPath>;
282
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>, M5 extends H<E6, MergedPath, any> = H<E6, MergedPath, any>, M6 extends H<E7, MergedPath, any> = H<E7, MergedPath, any>>(path: P, ...handlers: [
283
- H<E2, MergedPath, I> & M1,
284
- H<E3, MergedPath, I2> & M2,
285
- H<E4, MergedPath, I3> & M3,
286
- H<E5, MergedPath, I4> & M4,
287
- H<E6, MergedPath, I5> & M5,
288
- H<E7, MergedPath, I6> & M6,
289
- H<E8, MergedPath, I7, R>
290
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6>, S, M, P, I7, BasePath>, BasePath, MergePath<BasePath, P>>;
291
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>, M5 extends H<E6, P, any> = H<E6, P, any>, M6 extends H<E7, P, any> = H<E7, P, any>, M7 extends H<E8, P, any> = H<E8, P, any>, M8 extends H<E9, P, any> = H<E9, P, any>>(...handlers: [
292
- H<E2, P, I> & M1,
293
- H<E3, P, I2> & M2,
294
- H<E4, P, I3> & M3,
295
- H<E5, P, I4> & M4,
296
- H<E6, P, I5> & M5,
297
- H<E7, P, I6> & M6,
298
- H<E8, P, I7> & M7,
299
- H<E9, P, I8> & M8,
300
- H<E10, P, I9, R>
301
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, S & ToSchema<M, P, I9, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7> | MergeMiddlewareResponse<M8>>, BasePath, CurrentPath>;
302
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>, M5 extends H<E6, MergedPath, any> = H<E6, MergedPath, any>, M6 extends H<E7, MergedPath, any> = H<E7, MergedPath, any>, M7 extends H<E8, MergedPath, any> = H<E8, MergedPath, any>>(path: P, ...handlers: [
303
- H<E2, MergedPath, I> & M1,
304
- H<E3, MergedPath, I2> & M2,
305
- H<E4, MergedPath, I3> & M3,
306
- H<E5, MergedPath, I4> & M4,
307
- H<E6, MergedPath, I5> & M5,
308
- H<E7, MergedPath, I6> & M6,
309
- H<E8, MergedPath, I7> & M7,
310
- H<E9, MergedPath, I8, R>
311
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7>, S, M, P, I8, BasePath>, BasePath, MergePath<BasePath, P>>;
312
- <P extends string = CurrentPath, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, M1 extends H<E2, P, any> = H<E2, P, any>, M2 extends H<E3, P, any> = H<E3, P, any>, M3 extends H<E4, P, any> = H<E4, P, any>, M4 extends H<E5, P, any> = H<E5, P, any>, M5 extends H<E6, P, any> = H<E6, P, any>, M6 extends H<E7, P, any> = H<E7, P, any>, M7 extends H<E8, P, any> = H<E8, P, any>, M8 extends H<E9, P, any> = H<E9, P, any>, M9 extends H<E10, P, any> = H<E10, P, any>>(...handlers: [
313
- H<E2, P, I> & M1,
314
- H<E3, P, I2> & M2,
315
- H<E4, P, I3> & M3,
316
- H<E5, P, I4> & M4,
317
- H<E6, P, I5> & M5,
318
- H<E7, P, I6> & M6,
319
- H<E8, P, I7> & M7,
320
- H<E9, P, I8> & M8,
321
- H<E10, P, I9> & M9,
322
- H<E11, P, I10, R>
323
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11]>, S & ToSchema<M, P, I10, MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7> | MergeMiddlewareResponse<M8> | MergeMiddlewareResponse<M9>>, BasePath, CurrentPath>;
324
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>, M5 extends H<E6, MergedPath, any> = H<E6, MergedPath, any>, M6 extends H<E7, MergedPath, any> = H<E7, MergedPath, any>, M7 extends H<E8, MergedPath, any> = H<E8, MergedPath, any>, M8 extends H<E9, MergedPath, any> = H<E9, MergedPath, any>>(path: P, ...handlers: [
325
- H<E2, MergedPath, I> & M1,
326
- H<E3, MergedPath, I2> & M2,
327
- H<E4, MergedPath, I3> & M3,
328
- H<E5, MergedPath, I4> & M4,
329
- H<E6, MergedPath, I5> & M5,
330
- H<E7, MergedPath, I6> & M6,
331
- H<E8, MergedPath, I7> & M7,
332
- H<E9, MergedPath, I8> & M8,
333
- H<E10, MergedPath, I9, R>
334
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7> | MergeMiddlewareResponse<M8>, S, M, P, I9, BasePath>, BasePath, MergePath<BasePath, P>>;
335
- <P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, M1 extends H<E2, MergedPath, any> = H<E2, MergedPath, any>, M2 extends H<E3, MergedPath, any> = H<E3, MergedPath, any>, M3 extends H<E4, MergedPath, any> = H<E4, MergedPath, any>, M4 extends H<E5, MergedPath, any> = H<E5, MergedPath, any>, M5 extends H<E6, MergedPath, any> = H<E6, MergedPath, any>, M6 extends H<E7, MergedPath, any> = H<E7, MergedPath, any>, M7 extends H<E8, MergedPath, any> = H<E8, MergedPath, any>, M8 extends H<E9, MergedPath, any> = H<E9, MergedPath, any>, M9 extends H<E10, MergedPath, any> = H<E10, MergedPath, any>>(path: P, ...handlers: [
336
- H<E2, MergedPath, I> & M1,
337
- H<E3, MergedPath, I2> & M2,
338
- H<E4, MergedPath, I3> & M3,
339
- H<E5, MergedPath, I4> & M4,
340
- H<E6, MergedPath, I5> & M5,
341
- H<E7, MergedPath, I6> & M6,
342
- H<E8, MergedPath, I7> & M7,
343
- H<E9, MergedPath, I8> & M8,
344
- H<E10, MergedPath, I9> & M9,
345
- H<E11, MergedPath, I10, R>
346
- ]): Hono$1<E, AddSchemaIfHasResponse<MergeTypedResponse<R> | MergeMiddlewareResponse<M1> | MergeMiddlewareResponse<M2> | MergeMiddlewareResponse<M3> | MergeMiddlewareResponse<M4> | MergeMiddlewareResponse<M5> | MergeMiddlewareResponse<M6> | MergeMiddlewareResponse<M7> | MergeMiddlewareResponse<M8> | MergeMiddlewareResponse<M9>, S, M, P, I10, BasePath>, BasePath, MergePath<BasePath, P>>;
347
- <P extends string = CurrentPath, I extends Input = BlankInput, R extends HandlerResponse<any> = any>(...handlers: H<E, P, I, R>[]): Hono$1<E, S & ToSchema<M, P, I, MergeTypedResponse<R>>, BasePath, CurrentPath>;
348
- <P extends string, I extends Input = BlankInput, R extends HandlerResponse<any> = any>(path: P, ...handlers: [H<E, MergePath<BasePath, P>, I, R>, ...H<E, MergePath<BasePath, P>, I, R>[]]): Hono$1<E, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
349
- <P extends string, R extends HandlerResponse<any> = any, I extends Input = BlankInput>(path: P): Hono$1<E, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
350
- }
351
- interface MiddlewareHandlerInterface<E extends Env = Env, S extends Schema = BlankSchema, BasePath extends string = '/'> {
352
- <E2 extends Env = E>(...handlers: MiddlewareHandler<E2, MergePath<BasePath, '*'>>[]): Hono$1<IntersectNonAnyTypes<[E, E2]>, S, BasePath, MergePath<BasePath, '*'>>;
353
- <E2 extends Env = E>(handler: MiddlewareHandler<E2, MergePath<BasePath, '*'>>): Hono$1<IntersectNonAnyTypes<[E, E2]>, S, BasePath, MergePath<BasePath, '*'>>;
354
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [MiddlewareHandler<E2, P>, MiddlewareHandler<E3, P>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3]>, S, BasePath, P>;
355
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E>(path: P, handler: MiddlewareHandler<E2, MergedPath, any, any>): Hono$1<IntersectNonAnyTypes<[E, E2]>, S, BasePath, MergedPath>;
356
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
357
- MiddlewareHandler<E2, P, any, any>,
358
- MiddlewareHandler<E3, P, any, any>,
359
- MiddlewareHandler<E4, P, any, any>
360
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4]>, S, BasePath, P>;
361
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(path: P, ...handlers: [MiddlewareHandler<E2, P>, MiddlewareHandler<E3, P>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3]>, S, BasePath, MergedPath>;
362
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
363
- MiddlewareHandler<E2, P>,
364
- MiddlewareHandler<E3, P>,
365
- MiddlewareHandler<E4, P>,
366
- MiddlewareHandler<E5, P>
367
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, S, BasePath, P>;
368
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(path: P, ...handlers: [MiddlewareHandler<E2, P>, MiddlewareHandler<E3, P>, MiddlewareHandler<E4, P>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4]>, S, BasePath, MergedPath>;
369
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
370
- MiddlewareHandler<E2, P>,
371
- MiddlewareHandler<E3, P>,
372
- MiddlewareHandler<E4, P>,
373
- MiddlewareHandler<E5, P>,
374
- MiddlewareHandler<E6, P>
375
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, S, BasePath, P>;
376
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(path: P, ...handlers: [
377
- MiddlewareHandler<E2, P>,
378
- MiddlewareHandler<E3, P>,
379
- MiddlewareHandler<E4, P>,
380
- MiddlewareHandler<E5, P>
381
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, S, BasePath, MergedPath>;
382
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
383
- MiddlewareHandler<E2, P>,
384
- MiddlewareHandler<E3, P>,
385
- MiddlewareHandler<E4, P>,
386
- MiddlewareHandler<E5, P>,
387
- MiddlewareHandler<E6, P>,
388
- MiddlewareHandler<E7, P>
389
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, S, BasePath, P>;
390
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(path: P, ...handlers: [
391
- MiddlewareHandler<E2, P>,
392
- MiddlewareHandler<E3, P>,
393
- MiddlewareHandler<E4, P>,
394
- MiddlewareHandler<E5, P>,
395
- MiddlewareHandler<E6, P>
396
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, S, BasePath, MergedPath>;
397
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
398
- MiddlewareHandler<E2, P>,
399
- MiddlewareHandler<E3, P>,
400
- MiddlewareHandler<E4, P>,
401
- MiddlewareHandler<E5, P>,
402
- MiddlewareHandler<E6, P>,
403
- MiddlewareHandler<E7, P>,
404
- MiddlewareHandler<E8, P>
405
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, S, BasePath, P>;
406
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(path: P, ...handlers: [
407
- MiddlewareHandler<E2, P>,
408
- MiddlewareHandler<E3, P>,
409
- MiddlewareHandler<E4, P>,
410
- MiddlewareHandler<E5, P>,
411
- MiddlewareHandler<E6, P>,
412
- MiddlewareHandler<E7, P>
413
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, S, BasePath, MergedPath>;
414
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
415
- MiddlewareHandler<E2, P>,
416
- MiddlewareHandler<E3, P>,
417
- MiddlewareHandler<E4, P>,
418
- MiddlewareHandler<E5, P>,
419
- MiddlewareHandler<E6, P>,
420
- MiddlewareHandler<E7, P>,
421
- MiddlewareHandler<E8, P>,
422
- MiddlewareHandler<E9, P>
423
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, S, BasePath, P>;
424
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(path: P, ...handlers: [
425
- MiddlewareHandler<E2, P>,
426
- MiddlewareHandler<E3, P>,
427
- MiddlewareHandler<E4, P>,
428
- MiddlewareHandler<E5, P>,
429
- MiddlewareHandler<E6, P>,
430
- MiddlewareHandler<E7, P>,
431
- MiddlewareHandler<E8, P>
432
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, S, BasePath, MergedPath>;
433
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
434
- MiddlewareHandler<E2, P>,
435
- MiddlewareHandler<E3, P>,
436
- MiddlewareHandler<E4, P>,
437
- MiddlewareHandler<E5, P>,
438
- MiddlewareHandler<E6, P>,
439
- MiddlewareHandler<E7, P>,
440
- MiddlewareHandler<E8, P>,
441
- MiddlewareHandler<E9, P>,
442
- MiddlewareHandler<E10, P>
443
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, S, BasePath, P>;
444
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(path: P, ...handlers: [
445
- MiddlewareHandler<E2, P>,
446
- MiddlewareHandler<E3, P>,
447
- MiddlewareHandler<E4, P>,
448
- MiddlewareHandler<E5, P>,
449
- MiddlewareHandler<E6, P>,
450
- MiddlewareHandler<E7, P>,
451
- MiddlewareHandler<E8, P>,
452
- MiddlewareHandler<E9, P>
453
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, S, BasePath, MergedPath>;
454
- <E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, P extends string = MergePath<BasePath, '*'>>(...handlers: [
455
- MiddlewareHandler<E2, P>,
456
- MiddlewareHandler<E3, P>,
457
- MiddlewareHandler<E4, P>,
458
- MiddlewareHandler<E5, P>,
459
- MiddlewareHandler<E6, P>,
460
- MiddlewareHandler<E7, P>,
461
- MiddlewareHandler<E8, P>,
462
- MiddlewareHandler<E9, P>,
463
- MiddlewareHandler<E10, P>,
464
- MiddlewareHandler<E11, P>
465
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11]>, S, BasePath, P>;
466
- <P extends string, MergedPath extends MergePath<BasePath, P>, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(path: P, ...handlers: [
467
- MiddlewareHandler<E2, P>,
468
- MiddlewareHandler<E3, P>,
469
- MiddlewareHandler<E4, P>,
470
- MiddlewareHandler<E5, P>,
471
- MiddlewareHandler<E6, P>,
472
- MiddlewareHandler<E7, P>,
473
- MiddlewareHandler<E8, P>,
474
- MiddlewareHandler<E9, P>,
475
- MiddlewareHandler<E10, P>
476
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, S, BasePath, MergedPath>;
477
- <P extends string, E2 extends Env = E>(path: P, ...handlers: MiddlewareHandler<E2, MergePath<BasePath, P>>[]): Hono$1<E, S, BasePath, MergePath<BasePath, P>>;
478
- }
479
- interface OnHandlerInterface<E extends Env = Env, S extends Schema = BlankSchema, BasePath extends string = '/'> {
480
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, E2 extends Env = E>(method: M, path: P, handler: H<E2, MergedPath, I, R>): Hono$1<IntersectNonAnyTypes<[E, E2]>, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
481
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(method: M, path: P, ...handlers: [H<E2, MergedPath, I>, H<E3, MergedPath, I2, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3]>, S & ToSchema<M, MergePath<BasePath, P>, I2, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
482
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(method: M, path: P, ...handlers: [H<E2, MergedPath, I>, H<E3, MergedPath, I2>, H<E4, MergedPath, I3, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4]>, S & ToSchema<M, MergePath<BasePath, P>, I3, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
483
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(method: M, path: P, ...handlers: [
484
- H<E2, MergedPath, I>,
485
- H<E3, MergedPath, I2>,
486
- H<E4, MergedPath, I3>,
487
- H<E5, MergedPath, I4, R>
488
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, S & ToSchema<M, MergePath<BasePath, P>, I4, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
489
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(method: M, path: P, ...handlers: [
490
- H<E2, MergedPath, I>,
491
- H<E3, MergedPath, I2>,
492
- H<E4, MergedPath, I3>,
493
- H<E5, MergedPath, I4>,
494
- H<E6, MergedPath, I5, R>
495
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, S & ToSchema<M, MergePath<BasePath, P>, I5, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
496
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(method: M, path: P, ...handlers: [
497
- H<E2, MergedPath, I>,
498
- H<E3, MergedPath, I2>,
499
- H<E4, MergedPath, I3>,
500
- H<E5, MergedPath, I4>,
501
- H<E6, MergedPath, I5>,
502
- H<E7, MergedPath, I6, R>
503
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, S & ToSchema<M, MergePath<BasePath, P>, I6, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
504
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(method: M, path: P, ...handlers: [
505
- H<E2, MergedPath, I>,
506
- H<E3, MergedPath, I2>,
507
- H<E4, MergedPath, I3>,
508
- H<E5, MergedPath, I4>,
509
- H<E6, MergedPath, I5>,
510
- H<E7, MergedPath, I6>,
511
- H<E8, MergedPath, I7, R>
512
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, S & ToSchema<M, MergePath<BasePath, P>, I7, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
513
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(method: M, path: P, ...handlers: [
514
- H<E2, MergedPath, I>,
515
- H<E3, MergedPath, I2>,
516
- H<E4, MergedPath, I3>,
517
- H<E5, MergedPath, I4>,
518
- H<E6, MergedPath, I5>,
519
- H<E7, MergedPath, I6>,
520
- H<E8, MergedPath, I7>,
521
- H<E9, MergedPath, I8, R>
522
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, S & ToSchema<M, MergePath<BasePath, P>, I8, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
523
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(method: M, path: P, ...handlers: [
524
- H<E2, MergedPath, I>,
525
- H<E3, MergedPath, I2>,
526
- H<E4, MergedPath, I3>,
527
- H<E5, MergedPath, I4>,
528
- H<E6, MergedPath, I5>,
529
- H<E7, MergedPath, I6>,
530
- H<E8, MergedPath, I7>,
531
- H<E9, MergedPath, I8>,
532
- H<E10, MergedPath, I9, R>
533
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, S & ToSchema<M, MergePath<BasePath, P>, I9, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
534
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>>(method: M, path: P, ...handlers: [
535
- H<E2, MergedPath, I>,
536
- H<E3, MergedPath, I2>,
537
- H<E4, MergedPath, I3>,
538
- H<E5, MergedPath, I4>,
539
- H<E6, MergedPath, I5>,
540
- H<E7, MergedPath, I6>,
541
- H<E8, MergedPath, I7>,
542
- H<E9, MergedPath, I8>,
543
- H<E10, MergedPath, I9>,
544
- H<E11, MergedPath, I10, R>
545
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11]>, S & ToSchema<M, MergePath<BasePath, P>, I10, MergeTypedResponse<HandlerResponse<any>>>, BasePath, MergePath<BasePath, P>>;
546
- <M extends string, P extends string, R extends HandlerResponse<any> = any, I extends Input = BlankInput>(method: M, path: P, ...handlers: [H<E, MergePath<BasePath, P>, I, R>, ...H<E, MergePath<BasePath, P>, I, R>[]]): Hono$1<E, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
547
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, E2 extends Env = E>(methods: M[], path: P, handler: H<E2, MergedPath, I, R>): Hono$1<IntersectNonAnyTypes<[E, E2]>, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
548
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>>(methods: M[], path: P, ...handlers: [H<E2, MergedPath, I>, H<E3, MergedPath, I2, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3]>, S & ToSchema<M, MergePath<BasePath, P>, I2, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
549
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>>(methods: M[], path: P, ...handlers: [H<E2, MergedPath, I>, H<E3, MergedPath, I2>, H<E4, MergedPath, I3, R>]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4]>, S & ToSchema<M, MergePath<BasePath, P>, I3, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
550
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>>(methods: M[], path: P, ...handlers: [
551
- H<E2, MergedPath, I>,
552
- H<E3, MergedPath, I2>,
553
- H<E4, MergedPath, I3>,
554
- H<E5, MergedPath, I4, R>
555
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, S & ToSchema<M, MergePath<BasePath, P>, I4, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
556
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>>(methods: M[], path: P, ...handlers: [
557
- H<E2, MergedPath, I>,
558
- H<E3, MergedPath, I2>,
559
- H<E4, MergedPath, I3>,
560
- H<E5, MergedPath, I4>,
561
- H<E6, MergedPath, I5, R>
562
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, S & ToSchema<M, MergePath<BasePath, P>, I5, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
563
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>>(methods: M[], path: P, ...handlers: [
564
- H<E2, MergedPath, I>,
565
- H<E3, MergedPath, I2>,
566
- H<E4, MergedPath, I3>,
567
- H<E5, MergedPath, I4>,
568
- H<E6, MergedPath, I5>,
569
- H<E7, MergedPath, I6, R>
570
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, S & ToSchema<M, MergePath<BasePath, P>, I6, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
571
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>>(methods: M[], path: P, ...handlers: [
572
- H<E2, MergedPath, I>,
573
- H<E3, MergedPath, I2>,
574
- H<E4, MergedPath, I3>,
575
- H<E5, MergedPath, I4>,
576
- H<E6, MergedPath, I5>,
577
- H<E7, MergedPath, I6>,
578
- H<E8, MergedPath, I7, R>
579
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, S & ToSchema<M, MergePath<BasePath, P>, I7, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
580
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>>(methods: M[], path: P, ...handlers: [
581
- H<E2, MergedPath, I>,
582
- H<E3, MergedPath, I2>,
583
- H<E4, MergedPath, I3>,
584
- H<E5, MergedPath, I4>,
585
- H<E6, MergedPath, I5>,
586
- H<E7, MergedPath, I6>,
587
- H<E8, MergedPath, I7>,
588
- H<E9, MergedPath, I8, R>
589
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, S & ToSchema<M, MergePath<BasePath, P>, I8, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
590
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>>(methods: M[], path: P, ...handlers: [
591
- H<E2, MergedPath, I>,
592
- H<E3, MergedPath, I2>,
593
- H<E4, MergedPath, I3>,
594
- H<E5, MergedPath, I4>,
595
- H<E6, MergedPath, I5>,
596
- H<E7, MergedPath, I6>,
597
- H<E8, MergedPath, I7>,
598
- H<E9, MergedPath, I8>,
599
- H<E10, MergedPath, I9, R>
600
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>, S & ToSchema<M, MergePath<BasePath, P>, I9, MergeTypedResponse<HandlerResponse<any>>>, BasePath, MergePath<BasePath, P>>;
601
- <M extends string, P extends string, MergedPath extends MergePath<BasePath, P>, R extends HandlerResponse<any> = any, I extends Input = BlankInput, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I & I2 & I3, I5 extends Input = I & I2 & I3 & I4, I6 extends Input = I & I2 & I3 & I4 & I5, I7 extends Input = I & I2 & I3 & I4 & I5 & I6, I8 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7, I9 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8, I10 extends Input = I & I2 & I3 & I4 & I5 & I6 & I7 & I8 & I9, E2 extends Env = E, E3 extends Env = IntersectNonAnyTypes<[E, E2]>, E4 extends Env = IntersectNonAnyTypes<[E, E2, E3]>, E5 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4]>, E6 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5]>, E7 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6]>, E8 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7]>, E9 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8]>, E10 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9]>, E11 extends Env = IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10]>>(methods: M[], path: P, ...handlers: [
602
- H<E2, MergedPath, I>,
603
- H<E3, MergedPath, I2>,
604
- H<E4, MergedPath, I3>,
605
- H<E5, MergedPath, I4>,
606
- H<E6, MergedPath, I5>,
607
- H<E7, MergedPath, I6>,
608
- H<E8, MergedPath, I7>,
609
- H<E9, MergedPath, I8>,
610
- H<E10, MergedPath, I9>,
611
- H<E11, MergedPath, I10, R>
612
- ]): Hono$1<IntersectNonAnyTypes<[E, E2, E3, E4, E5, E6, E7, E8, E9, E10, E11]>, S & ToSchema<M, MergePath<BasePath, P>, I10, MergeTypedResponse<HandlerResponse<any>>>, BasePath, MergePath<BasePath, P>>;
613
- <M extends string, P extends string, R extends HandlerResponse<any> = any, I extends Input = BlankInput>(methods: M[], path: P, ...handlers: [H<E, MergePath<BasePath, P>, I, R>, ...H<E, MergePath<BasePath, P>, I, R>[]]): Hono$1<E, S & ToSchema<M, MergePath<BasePath, P>, I, MergeTypedResponse<R>>, BasePath, MergePath<BasePath, P>>;
614
- <M extends string, const Ps extends string[], I extends Input = BlankInput, R extends HandlerResponse<any> = any, E2 extends Env = E>(methods: M | M[], paths: Ps, ...handlers: H<E2, MergePath<BasePath, Ps[number]>, I, R>[]): Hono$1<E, S & ToSchema<M, MergePath<BasePath, Ps[number]>, I, MergeTypedResponse<R>>, BasePath, Ps extends [...string[], infer LastPath extends string] ? MergePath<BasePath, LastPath> : never>;
615
- }
616
- type ToSchemaOutput<RorO, I extends Input | Input['in']> = RorO extends TypedResponse<infer T, infer U, infer F> ? {
617
- output: unknown extends T ? {} : T;
618
- outputFormat: I extends {
619
- outputFormat: string;
620
- } ? I['outputFormat'] : F;
621
- status: U;
622
- } : {
623
- output: unknown extends RorO ? {} : RorO;
624
- outputFormat: unknown extends RorO ? 'json' : I extends {
625
- outputFormat: string;
626
- } ? I['outputFormat'] : 'json';
627
- status: StatusCode;
628
- };
629
- type ToSchema<M extends string, P extends string, I extends Input | Input['in'], RorO> = IsAny<RorO> extends true ? {
630
- [K in P]: {
631
- [K2 in M as AddDollar<K2>]: {
632
- input: AddParam<ExtractInput<I>, P>;
633
- output: {};
634
- outputFormat: ResponseFormat;
635
- status: StatusCode;
636
- };
637
- };
638
- } : [RorO] extends [never] ? {} : [RorO] extends [Promise<void>] ? {} : {
639
- [K in P]: {
640
- [K2 in M as AddDollar<K2>]: Simplify<{
641
- input: AddParam<ExtractInput<I>, P>;
642
- } & ToSchemaOutput<RorO, I>>;
643
- };
644
- };
645
- type Schema = {
646
- [Path: string]: {
647
- [Method: `$${Lowercase<string>}`]: Endpoint;
648
- };
649
- };
650
- type AddSchemaIfHasResponse<Merged, S extends Schema, M extends string, P extends string, I extends Input | Input['in'], BasePath extends string> = [Merged] extends [Promise<void>] ? S : S & ToSchema<M, MergePath<BasePath, P>, I, Merged>;
651
- type Endpoint = {
652
- input: any;
653
- output: any;
654
- outputFormat: ResponseFormat;
655
- status: StatusCode;
656
- };
657
- type ExtractParams<Path extends string> = string extends Path ? Record<string, string> : Path extends `${infer _Start}:${infer Param}/${infer Rest}` ? {
658
- [K in Param | keyof ExtractParams<`/${Rest}`>]: string;
659
- } : Path extends `${infer _Start}:${infer Param}` ? {
660
- [K in Param]: string;
661
- } : never;
662
- type FlattenIfIntersect<T> = T extends infer O ? {
663
- [K in keyof O]: O[K];
664
- } : never;
665
- type MergeSchemaPath<OrigSchema extends Schema, SubPath extends string> = {
666
- [P in keyof OrigSchema as MergePath<SubPath, P & string>]: [OrigSchema[P]] extends [
667
- Record<string, Endpoint>
668
- ] ? {
669
- [M in keyof OrigSchema[P]]: MergeEndpointParamsWithPath<OrigSchema[P][M], SubPath>;
670
- } : never;
671
- };
672
- type MergeEndpointParamsWithPath<T extends Endpoint, SubPath extends string> = T extends unknown ? {
673
- input: T['input'] extends {
674
- param: infer _;
675
- } ? ExtractParams<SubPath> extends never ? T['input'] : FlattenIfIntersect<T['input'] & {
676
- param: {
677
- [K in keyof ExtractParams<SubPath> as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string;
678
- };
679
- }> : RemoveBlankRecord<ExtractParams<SubPath>> extends never ? T['input'] : T['input'] & {
680
- param: {
681
- [K in keyof ExtractParams<SubPath> as K extends `${infer Prefix}{${infer _}}` ? Prefix : K]: string;
682
- };
683
- };
684
- output: T['output'];
685
- outputFormat: T['outputFormat'];
686
- status: T['status'];
687
- } : never;
688
- type AddParam<I, P extends string> = ParamKeys<P> extends never ? I : I extends {
689
- param: infer _;
690
- } ? I : I & {
691
- param: UnionToIntersection<ParamKeyToRecord<ParamKeys<P>>>;
692
- };
693
- type AddDollar<T extends string> = `$${Lowercase<T>}`;
694
- type MergePath<A extends string, B extends string> = B extends '' ? MergePath<A, '/'> : A extends '' ? B : A extends '/' ? B : A extends `${infer P}/` ? B extends `/${infer Q}` ? `${P}/${Q}` : `${P}/${B}` : B extends `/${infer Q}` ? Q extends '' ? A : `${A}/${Q}` : `${A}/${B}`;
695
- type KnownResponseFormat = 'json' | 'text' | 'redirect';
696
- type ResponseFormat = KnownResponseFormat | string;
697
- type TypedResponse<T = unknown, U extends StatusCode = StatusCode, F extends ResponseFormat = T extends string ? 'text' : T extends JSONValue ? 'json' : ResponseFormat> = {
698
- _data: T;
699
- _status: U;
700
- _format: F;
701
- };
702
- type MergeTypedResponse<T> = T extends Promise<void> ? T : T extends Promise<infer T2> ? T2 extends TypedResponse ? T2 : TypedResponse : T extends TypedResponse ? T : TypedResponse;
703
- type ExtractTypedResponseOnly<T> = T extends TypedResponse ? T : never;
704
- type MergeMiddlewareResponse<T> = T extends (c: any, next: any) => Promise<infer R> ? Exclude<R, void> extends never ? never : Exclude<R, void> extends Response | TypedResponse<any, any, any> ? ExtractTypedResponseOnly<Exclude<R, void>> : never : T extends (c: any, next: any) => infer R ? R extends Response | TypedResponse<any, any, any> ? ExtractTypedResponseOnly<R> : never : never;
705
- type FormValue = string | Blob;
706
- type ParsedFormValue = string | File;
707
- type ValidationTargets<T extends FormValue = ParsedFormValue, P extends string = string> = {
708
- json: any;
709
- form: Record<string, T | T[]>;
710
- query: Record<string, string | string[]>;
711
- param: Record<P, P extends `${infer _}?` ? string | undefined : string>;
712
- header: Record<RequestHeader | CustomHeader, string>;
713
- cookie: Record<string, string>;
714
- };
715
- type ParamKey<Component> = Component extends `:${infer NameWithPattern}` ? NameWithPattern extends `${infer Name}{${infer Rest}` ? Rest extends `${infer _Pattern}?` ? `${Name}?` : Name : NameWithPattern : never;
716
- type ParamKeys<Path> = Path extends `${infer Component}/${infer Rest}` ? ParamKey<Component> | ParamKeys<Rest> : ParamKey<Path>;
717
- type ParamKeyToRecord<T extends string> = T extends `${infer R}?` ? Record<R, string | undefined> : {
718
- [K in T]: string;
719
- };
720
- type InputToDataByTarget<T extends Input['out'], Target extends keyof ValidationTargets> = T extends {
721
- [K in Target]: infer R;
722
- } ? R : never;
723
- type RemoveQuestion<T> = T extends `${infer R}?` ? R : T;
724
- type ProcessHead<T> = IfAnyThenEmptyObject<T extends Env ? (Env extends T ? {} : T) : T>;
725
- type IntersectNonAnyTypes<T extends any[]> = T extends [infer Head, ...infer Rest] ? ProcessHead<Head> & IntersectNonAnyTypes<Rest> : {};
726
- declare abstract class FetchEventLike {
727
- abstract readonly request: Request;
728
- abstract respondWith(promise: Response | Promise<Response>): void;
729
- abstract passThroughOnException(): void;
730
- abstract waitUntil(promise: Promise<void>): void;
731
- }
732
-
733
- /**
734
- * @module
735
- * Body utility.
736
- */
737
-
738
- type BodyDataValueDot = {
739
- [x: string]: string | File | BodyDataValueDot;
740
- };
741
- type BodyDataValueDotAll = {
742
- [x: string]: string | File | (string | File)[] | BodyDataValueDotAll;
743
- };
744
- type SimplifyBodyData<T> = {
745
- [K in keyof T]: string | File | (string | File)[] | BodyDataValueDotAll extends T[K] ? string | File | (string | File)[] | BodyDataValueDotAll : string | File | BodyDataValueDot extends T[K] ? string | File | BodyDataValueDot : string | File | (string | File)[] extends T[K] ? string | File | (string | File)[] : string | File;
746
- } & {};
747
- type BodyDataValueComponent<T> = string | File | (T extends {
748
- all: false;
749
- } ? never : T extends {
750
- all: true;
751
- } | {
752
- all: boolean;
753
- } ? (string | File)[] : never);
754
- type BodyDataValueObject<T> = {
755
- [key: string]: BodyDataValueComponent<T> | BodyDataValueObject<T>;
756
- };
757
- type BodyDataValue<T> = BodyDataValueComponent<T> | (T extends {
758
- dot: false;
759
- } ? never : T extends {
760
- dot: true;
761
- } | {
762
- dot: boolean;
763
- } ? BodyDataValueObject<T> : never);
764
- type BodyData<T extends Partial<ParseBodyOptions> = {}> = SimplifyBodyData<Record<string, BodyDataValue<T>>>;
765
- type ParseBodyOptions = {
766
- /**
767
- * Determines whether all fields with multiple values should be parsed as arrays.
768
- * @default false
769
- * @example
770
- * const data = new FormData()
771
- * data.append('file', 'aaa')
772
- * data.append('file', 'bbb')
773
- * data.append('message', 'hello')
774
- *
775
- * If all is false:
776
- * parseBody should return { file: 'bbb', message: 'hello' }
777
- *
778
- * If all is true:
779
- * parseBody should return { file: ['aaa', 'bbb'], message: 'hello' }
780
- */
781
- all: boolean;
782
- /**
783
- * Determines whether all fields with dot notation should be parsed as nested objects.
784
- * @default false
785
- * @example
786
- * const data = new FormData()
787
- * data.append('obj.key1', 'value1')
788
- * data.append('obj.key2', 'value2')
789
- *
790
- * If dot is false:
791
- * parseBody should return { 'obj.key1': 'value1', 'obj.key2': 'value2' }
792
- *
793
- * If dot is true:
794
- * parseBody should return { obj: { key1: 'value1', key2: 'value2' } }
795
- */
796
- dot: boolean;
797
- };
798
-
799
- type Body = {
800
- json: any;
801
- text: string;
802
- arrayBuffer: ArrayBuffer;
803
- blob: Blob;
804
- formData: FormData;
805
- };
806
- type BodyCache = Partial<Body & {
807
- parsedBody: BodyData;
808
- }>;
809
- declare class HonoRequest$1<P extends string = '/', I extends Input['out'] = {}> {
810
-
811
- /**
812
- * `.raw` can get the raw Request object.
813
- *
814
- * @see {@link https://hono.dev/docs/api/request#raw}
815
- *
816
- * @example
817
- * ```ts
818
- * // For Cloudflare Workers
819
- * app.post('/', async (c) => {
820
- * const metadata = c.req.raw.cf?.hostMetadata?
821
- * ...
822
- * })
823
- * ```
824
- */
825
- raw: Request;
826
- routeIndex: number;
827
- /**
828
- * `.path` can get the pathname of the request.
829
- *
830
- * @see {@link https://hono.dev/docs/api/request#path}
831
- *
832
- * @example
833
- * ```ts
834
- * app.get('/about/me', (c) => {
835
- * const pathname = c.req.path // `/about/me`
836
- * })
837
- * ```
838
- */
839
- path: string;
840
- bodyCache: BodyCache;
841
- constructor(request: Request, path?: string, matchResult?: Result<[unknown, RouterRoute]>);
842
- /**
843
- * `.req.param()` gets the path parameters.
844
- *
845
- * @see {@link https://hono.dev/docs/api/routing#path-parameter}
846
- *
847
- * @example
848
- * ```ts
849
- * const name = c.req.param('name')
850
- * // or all parameters at once
851
- * const { id, comment_id } = c.req.param()
852
- * ```
853
- */
854
- param<P2 extends ParamKeys<P> = ParamKeys<P>>(key: P2 extends `${infer _}?` ? never : P2): string;
855
- param<P2 extends RemoveQuestion<ParamKeys<P>> = RemoveQuestion<ParamKeys<P>>>(key: P2): string | undefined;
856
- param(key: string): string | undefined;
857
- param<P2 extends string = P>(): Simplify<UnionToIntersection<ParamKeyToRecord<ParamKeys<P2>>>>;
858
- /**
859
- * `.query()` can get querystring parameters.
860
- *
861
- * @see {@link https://hono.dev/docs/api/request#query}
862
- *
863
- * @example
864
- * ```ts
865
- * // Query params
866
- * app.get('/search', (c) => {
867
- * const query = c.req.query('q')
868
- * })
869
- *
870
- * // Get all params at once
871
- * app.get('/search', (c) => {
872
- * const { q, limit, offset } = c.req.query()
873
- * })
874
- * ```
875
- */
876
- query(key: string): string | undefined;
877
- query(): Record<string, string>;
878
- /**
879
- * `.queries()` can get multiple querystring parameter values, e.g. /search?tags=A&tags=B
880
- *
881
- * @see {@link https://hono.dev/docs/api/request#queries}
882
- *
883
- * @example
884
- * ```ts
885
- * app.get('/search', (c) => {
886
- * // tags will be string[]
887
- * const tags = c.req.queries('tags')
888
- * })
889
- * ```
890
- */
891
- queries(key: string): string[] | undefined;
892
- queries(): Record<string, string[]>;
893
- /**
894
- * `.header()` can get the request header value.
895
- *
896
- * @see {@link https://hono.dev/docs/api/request#header}
897
- *
898
- * @example
899
- * ```ts
900
- * app.get('/', (c) => {
901
- * const userAgent = c.req.header('User-Agent')
902
- * })
903
- * ```
904
- */
905
- header(name: RequestHeader): string | undefined;
906
- header(name: string): string | undefined;
907
- header(): Record<RequestHeader | (string & CustomHeader), string>;
908
- /**
909
- * `.parseBody()` can parse Request body of type `multipart/form-data` or `application/x-www-form-urlencoded`
910
- *
911
- * @see {@link https://hono.dev/docs/api/request#parsebody}
912
- *
913
- * @example
914
- * ```ts
915
- * app.post('/entry', async (c) => {
916
- * const body = await c.req.parseBody()
917
- * })
918
- * ```
919
- */
920
- parseBody<Options extends Partial<ParseBodyOptions>, T extends BodyData<Options>>(options?: Options): Promise<T>;
921
- parseBody<T extends BodyData>(options?: Partial<ParseBodyOptions>): Promise<T>;
922
- /**
923
- * `.json()` can parse Request body of type `application/json`
924
- *
925
- * @see {@link https://hono.dev/docs/api/request#json}
926
- *
927
- * @example
928
- * ```ts
929
- * app.post('/entry', async (c) => {
930
- * const body = await c.req.json()
931
- * })
932
- * ```
933
- */
934
- json<T = any>(): Promise<T>;
935
- /**
936
- * `.text()` can parse Request body of type `text/plain`
937
- *
938
- * @see {@link https://hono.dev/docs/api/request#text}
939
- *
940
- * @example
941
- * ```ts
942
- * app.post('/entry', async (c) => {
943
- * const body = await c.req.text()
944
- * })
945
- * ```
946
- */
947
- text(): Promise<string>;
948
- /**
949
- * `.arrayBuffer()` parse Request body as an `ArrayBuffer`
950
- *
951
- * @see {@link https://hono.dev/docs/api/request#arraybuffer}
952
- *
953
- * @example
954
- * ```ts
955
- * app.post('/entry', async (c) => {
956
- * const body = await c.req.arrayBuffer()
957
- * })
958
- * ```
959
- */
960
- arrayBuffer(): Promise<ArrayBuffer>;
961
- /**
962
- * Parses the request body as a `Blob`.
963
- * @example
964
- * ```ts
965
- * app.post('/entry', async (c) => {
966
- * const body = await c.req.blob();
967
- * });
968
- * ```
969
- * @see https://hono.dev/docs/api/request#blob
970
- */
971
- blob(): Promise<Blob>;
972
- /**
973
- * Parses the request body as `FormData`.
974
- * @example
975
- * ```ts
976
- * app.post('/entry', async (c) => {
977
- * const body = await c.req.formData();
978
- * });
979
- * ```
980
- * @see https://hono.dev/docs/api/request#formdata
981
- */
982
- formData(): Promise<FormData>;
983
- /**
984
- * Adds validated data to the request.
985
- *
986
- * @param target - The target of the validation.
987
- * @param data - The validated data to add.
988
- */
989
- addValidatedData(target: keyof ValidationTargets, data: {}): void;
990
- /**
991
- * Gets validated data from the request.
992
- *
993
- * @param target - The target of the validation.
994
- * @returns The validated data.
995
- *
996
- * @see https://hono.dev/docs/api/request#valid
997
- */
998
- valid<T extends keyof I & keyof ValidationTargets>(target: T): InputToDataByTarget<I, T>;
999
- /**
1000
- * `.url()` can get the request url strings.
1001
- *
1002
- * @see {@link https://hono.dev/docs/api/request#url}
1003
- *
1004
- * @example
1005
- * ```ts
1006
- * app.get('/about/me', (c) => {
1007
- * const url = c.req.url // `http://localhost:8787/about/me`
1008
- * ...
1009
- * })
1010
- * ```
1011
- */
1012
- get url(): string;
1013
- /**
1014
- * `.method()` can get the method name of the request.
1015
- *
1016
- * @see {@link https://hono.dev/docs/api/request#method}
1017
- *
1018
- * @example
1019
- * ```ts
1020
- * app.get('/about/me', (c) => {
1021
- * const method = c.req.method // `GET`
1022
- * })
1023
- * ```
1024
- */
1025
- get method(): string;
1026
- get [GET_MATCH_RESULT](): Result<[unknown, RouterRoute]>;
1027
- /**
1028
- * `.matchedRoutes()` can return a matched route in the handler
1029
- *
1030
- * @deprecated
1031
- *
1032
- * Use matchedRoutes helper defined in "hono/route" instead.
1033
- *
1034
- * @see {@link https://hono.dev/docs/api/request#matchedroutes}
1035
- *
1036
- * @example
1037
- * ```ts
1038
- * app.use('*', async function logger(c, next) {
1039
- * await next()
1040
- * c.req.matchedRoutes.forEach(({ handler, method, path }, i) => {
1041
- * const name = handler.name || (handler.length < 2 ? '[handler]' : '[middleware]')
1042
- * console.log(
1043
- * method,
1044
- * ' ',
1045
- * path,
1046
- * ' '.repeat(Math.max(10 - path.length, 0)),
1047
- * name,
1048
- * i === c.req.routeIndex ? '<- respond from here' : ''
1049
- * )
1050
- * })
1051
- * })
1052
- * ```
1053
- */
1054
- get matchedRoutes(): RouterRoute[];
1055
- /**
1056
- * `routePath()` can retrieve the path registered within the handler
1057
- *
1058
- * @deprecated
1059
- *
1060
- * Use routePath helper defined in "hono/route" instead.
1061
- *
1062
- * @see {@link https://hono.dev/docs/api/request#routepath}
1063
- *
1064
- * @example
1065
- * ```ts
1066
- * app.get('/posts/:id', (c) => {
1067
- * return c.json({ path: c.req.routePath })
1068
- * })
1069
- * ```
1070
- */
1071
- get routePath(): string;
1072
- }
1073
-
1074
- /**
1075
- * Union types for BaseMime
1076
- */
1077
- type BaseMime = (typeof _baseMimes)[keyof typeof _baseMimes];
1078
- declare const _baseMimes: {
1079
- readonly aac: "audio/aac";
1080
- readonly avi: "video/x-msvideo";
1081
- readonly avif: "image/avif";
1082
- readonly av1: "video/av1";
1083
- readonly bin: "application/octet-stream";
1084
- readonly bmp: "image/bmp";
1085
- readonly css: "text/css";
1086
- readonly csv: "text/csv";
1087
- readonly eot: "application/vnd.ms-fontobject";
1088
- readonly epub: "application/epub+zip";
1089
- readonly gif: "image/gif";
1090
- readonly gz: "application/gzip";
1091
- readonly htm: "text/html";
1092
- readonly html: "text/html";
1093
- readonly ico: "image/x-icon";
1094
- readonly ics: "text/calendar";
1095
- readonly jpeg: "image/jpeg";
1096
- readonly jpg: "image/jpeg";
1097
- readonly js: "text/javascript";
1098
- readonly json: "application/json";
1099
- readonly jsonld: "application/ld+json";
1100
- readonly map: "application/json";
1101
- readonly mid: "audio/x-midi";
1102
- readonly midi: "audio/x-midi";
1103
- readonly mjs: "text/javascript";
1104
- readonly mp3: "audio/mpeg";
1105
- readonly mp4: "video/mp4";
1106
- readonly mpeg: "video/mpeg";
1107
- readonly oga: "audio/ogg";
1108
- readonly ogv: "video/ogg";
1109
- readonly ogx: "application/ogg";
1110
- readonly opus: "audio/opus";
1111
- readonly otf: "font/otf";
1112
- readonly pdf: "application/pdf";
1113
- readonly png: "image/png";
1114
- readonly rtf: "application/rtf";
1115
- readonly svg: "image/svg+xml";
1116
- readonly tif: "image/tiff";
1117
- readonly tiff: "image/tiff";
1118
- readonly ts: "video/mp2t";
1119
- readonly ttf: "font/ttf";
1120
- readonly txt: "text/plain";
1121
- readonly wasm: "application/wasm";
1122
- readonly webm: "video/webm";
1123
- readonly weba: "audio/webm";
1124
- readonly webmanifest: "application/manifest+json";
1125
- readonly webp: "image/webp";
1126
- readonly woff: "font/woff";
1127
- readonly woff2: "font/woff2";
1128
- readonly xhtml: "application/xhtml+xml";
1129
- readonly xml: "application/xml";
1130
- readonly zip: "application/zip";
1131
- readonly '3gp': "video/3gpp";
1132
- readonly '3g2': "video/3gpp2";
1133
- readonly gltf: "model/gltf+json";
1134
- readonly glb: "model/gltf-binary";
1135
- };
1136
-
1137
- type HeaderRecord = Record<'Content-Type', BaseMime> | Record<ResponseHeader, string | string[]> | Record<string, string | string[]>;
1138
- /**
1139
- * Data type can be a string, ArrayBuffer, Uint8Array (buffer), or ReadableStream.
1140
- */
1141
- type Data = string | ArrayBuffer | ReadableStream | Uint8Array<ArrayBuffer>;
1142
- /**
1143
- * Interface for the execution context in a web worker or similar environment.
1144
- */
1145
- interface ExecutionContext {
1146
- /**
1147
- * Extends the lifetime of the event callback until the promise is settled.
1148
- *
1149
- * @param promise - A promise to wait for.
1150
- */
1151
- waitUntil(promise: Promise<unknown>): void;
1152
- /**
1153
- * Allows the event to be passed through to subsequent event listeners.
1154
- */
1155
- passThroughOnException(): void;
1156
- /**
1157
- * For compatibility with Wrangler 4.x.
1158
- */
1159
- props: any;
1160
- }
1161
- /**
1162
- * Interface for context variable mapping.
1163
- */
1164
- interface ContextVariableMap {
1165
- }
1166
- /**
1167
- * Interface for context renderer.
1168
- */
1169
- interface ContextRenderer {
1170
- }
1171
- /**
1172
- * Interface representing a renderer for content.
1173
- *
1174
- * @interface DefaultRenderer
1175
- * @param {string | Promise<string>} content - The content to be rendered, which can be either a string or a Promise resolving to a string.
1176
- * @returns {Response | Promise<Response>} - The response after rendering the content, which can be either a Response or a Promise resolving to a Response.
1177
- */
1178
- interface DefaultRenderer {
1179
- (content: string | Promise<string>): Response | Promise<Response>;
1180
- }
1181
- /**
1182
- * Renderer type which can either be a ContextRenderer or DefaultRenderer.
1183
- */
1184
- type Renderer = ContextRenderer extends Function ? ContextRenderer : DefaultRenderer;
1185
- /**
1186
- * Extracts the props for the renderer.
1187
- */
1188
- type PropsForRenderer = [...Required<Parameters<Renderer>>] extends [unknown, infer Props] ? Props : unknown;
1189
- type Layout<T = Record<string, any>> = (props: T) => any;
1190
- /**
1191
- * Interface for getting context variables.
1192
- *
1193
- * @template E - Environment type.
1194
- */
1195
- interface Get<E extends Env> {
1196
- <Key extends keyof E['Variables']>(key: Key): E['Variables'][Key];
1197
- <Key extends keyof ContextVariableMap>(key: Key): ContextVariableMap[Key];
1198
- }
1199
- /**
1200
- * Interface for setting context variables.
1201
- *
1202
- * @template E - Environment type.
1203
- */
1204
- interface Set$1<E extends Env> {
1205
- <Key extends keyof E['Variables']>(key: Key, value: E['Variables'][Key]): void;
1206
- <Key extends keyof ContextVariableMap>(key: Key, value: ContextVariableMap[Key]): void;
1207
- }
1208
- /**
1209
- * Interface for creating a new response.
1210
- */
1211
- interface NewResponse {
1212
- (data: Data | null, status?: StatusCode, headers?: HeaderRecord): Response;
1213
- (data: Data | null, init?: ResponseOrInit): Response;
1214
- }
1215
- /**
1216
- * Interface for responding with a body.
1217
- */
1218
- interface BodyRespond {
1219
- <T extends Data, U extends ContentfulStatusCode>(data: T, status?: U, headers?: HeaderRecord): Response & TypedResponse<T, U, 'body'>;
1220
- <T extends Data, U extends ContentfulStatusCode>(data: T, init?: ResponseOrInit<U>): Response & TypedResponse<T, U, 'body'>;
1221
- <T extends null, U extends StatusCode>(data: T, status?: U, headers?: HeaderRecord): Response & TypedResponse<null, U, 'body'>;
1222
- <T extends null, U extends StatusCode>(data: T, init?: ResponseOrInit<U>): Response & TypedResponse<null, U, 'body'>;
1223
- }
1224
- /**
1225
- * Interface for responding with text.
1226
- *
1227
- * @interface TextRespond
1228
- * @template T - The type of the text content.
1229
- * @template U - The type of the status code.
1230
- *
1231
- * @param {T} text - The text content to be included in the response.
1232
- * @param {U} [status] - An optional status code for the response.
1233
- * @param {HeaderRecord} [headers] - An optional record of headers to include in the response.
1234
- *
1235
- * @returns {Response & TypedResponse<T, U, 'text'>} - The response after rendering the text content, typed with the provided text and status code types.
1236
- */
1237
- interface TextRespond {
1238
- <T extends string, U extends ContentfulStatusCode = ContentfulStatusCode>(text: T, status?: U, headers?: HeaderRecord): Response & TypedResponse<T, U, 'text'>;
1239
- <T extends string, U extends ContentfulStatusCode = ContentfulStatusCode>(text: T, init?: ResponseOrInit<U>): Response & TypedResponse<T, U, 'text'>;
1240
- }
1241
- /**
1242
- * Interface for responding with JSON.
1243
- *
1244
- * @interface JSONRespond
1245
- * @template T - The type of the JSON value or simplified unknown type.
1246
- * @template U - The type of the status code.
1247
- *
1248
- * @param {T} object - The JSON object to be included in the response.
1249
- * @param {U} [status] - An optional status code for the response.
1250
- * @param {HeaderRecord} [headers] - An optional record of headers to include in the response.
1251
- *
1252
- * @returns {JSONRespondReturn<T, U>} - The response after rendering the JSON object, typed with the provided object and status code types.
1253
- */
1254
- interface JSONRespond {
1255
- <T extends JSONValue | {} | InvalidJSONValue, U extends ContentfulStatusCode = ContentfulStatusCode>(object: T, status?: U, headers?: HeaderRecord): JSONRespondReturn<T, U>;
1256
- <T extends JSONValue | {} | InvalidJSONValue, U extends ContentfulStatusCode = ContentfulStatusCode>(object: T, init?: ResponseOrInit<U>): JSONRespondReturn<T, U>;
1257
- }
1258
- /**
1259
- * @template T - The type of the JSON value or simplified unknown type.
1260
- * @template U - The type of the status code.
1261
- *
1262
- * @returns {Response & TypedResponse<JSONParsed<T>, U, 'json'>} - The response after rendering the JSON object, typed with the provided object and status code types.
1263
- */
1264
- type JSONRespondReturn<T extends JSONValue | {} | InvalidJSONValue, U extends ContentfulStatusCode> = Response & TypedResponse<JSONParsed<T>, U, 'json'>;
1265
- /**
1266
- * Interface representing a function that responds with HTML content.
1267
- *
1268
- * @param html - The HTML content to respond with, which can be a string or a Promise that resolves to a string.
1269
- * @param status - (Optional) The HTTP status code for the response.
1270
- * @param headers - (Optional) A record of headers to include in the response.
1271
- * @param init - (Optional) The response initialization object.
1272
- *
1273
- * @returns A Response object or a Promise that resolves to a Response object.
1274
- */
1275
- interface HTMLRespond {
1276
- <T extends string | Promise<string>>(html: T, status?: ContentfulStatusCode, headers?: HeaderRecord): T extends string ? Response : Promise<Response>;
1277
- <T extends string | Promise<string>>(html: T, init?: ResponseOrInit<ContentfulStatusCode>): T extends string ? Response : Promise<Response>;
1278
- }
1279
- /**
1280
- * Options for configuring the context.
1281
- *
1282
- * @template E - Environment type.
1283
- */
1284
- type ContextOptions<E extends Env> = {
1285
- /**
1286
- * Bindings for the environment.
1287
- */
1288
- env: E['Bindings'];
1289
- /**
1290
- * Execution context for the request.
1291
- */
1292
- executionCtx?: FetchEventLike | ExecutionContext | undefined;
1293
- /**
1294
- * Handler for not found responses.
1295
- */
1296
- notFoundHandler?: NotFoundHandler<E>;
1297
- matchResult?: Result<[H, RouterRoute]>;
1298
- path?: string;
1299
- };
1300
- interface SetHeadersOptions {
1301
- append?: boolean;
1302
- }
1303
- interface SetHeaders {
1304
- (name: 'Content-Type', value?: BaseMime, options?: SetHeadersOptions): void;
1305
- (name: ResponseHeader, value?: string, options?: SetHeadersOptions): void;
1306
- (name: string, value?: string, options?: SetHeadersOptions): void;
1307
- }
1308
- type ResponseHeadersInit = [string, string][] | Record<'Content-Type', BaseMime> | Record<ResponseHeader, string> | Record<string, string> | Headers;
1309
- interface ResponseInit<T extends StatusCode = StatusCode> {
1310
- headers?: ResponseHeadersInit;
1311
- status?: T;
1312
- statusText?: string;
1313
- }
1314
- type ResponseOrInit<T extends StatusCode = StatusCode> = ResponseInit<T> | Response;
1315
- declare class Context<E extends Env = any, P extends string = any, I extends Input = {}> {
1316
-
1317
- /**
1318
- * `.env` can get bindings (environment variables, secrets, KV namespaces, D1 database, R2 bucket etc.) in Cloudflare Workers.
1319
- *
1320
- * @see {@link https://hono.dev/docs/api/context#env}
1321
- *
1322
- * @example
1323
- * ```ts
1324
- * // Environment object for Cloudflare Workers
1325
- * app.get('*', async c => {
1326
- * const counter = c.env.COUNTER
1327
- * })
1328
- * ```
1329
- */
1330
- env: E['Bindings'];
1331
- finalized: boolean;
1332
- /**
1333
- * `.error` can get the error object from the middleware if the Handler throws an error.
1334
- *
1335
- * @see {@link https://hono.dev/docs/api/context#error}
1336
- *
1337
- * @example
1338
- * ```ts
1339
- * app.use('*', async (c, next) => {
1340
- * await next()
1341
- * if (c.error) {
1342
- * // do something...
1343
- * }
1344
- * })
1345
- * ```
1346
- */
1347
- error: Error | undefined;
1348
- /**
1349
- * Creates an instance of the Context class.
1350
- *
1351
- * @param req - The Request object.
1352
- * @param options - Optional configuration options for the context.
1353
- */
1354
- constructor(req: Request, options?: ContextOptions<E>);
1355
- /**
1356
- * `.req` is the instance of {@link HonoRequest}.
1357
- */
1358
- get req(): HonoRequest$1<P, I['out']>;
1359
- /**
1360
- * @see {@link https://hono.dev/docs/api/context#event}
1361
- * The FetchEvent associated with the current request.
1362
- *
1363
- * @throws Will throw an error if the context does not have a FetchEvent.
1364
- */
1365
- get event(): FetchEventLike;
1366
- /**
1367
- * @see {@link https://hono.dev/docs/api/context#executionctx}
1368
- * The ExecutionContext associated with the current request.
1369
- *
1370
- * @throws Will throw an error if the context does not have an ExecutionContext.
1371
- */
1372
- get executionCtx(): ExecutionContext;
1373
- /**
1374
- * @see {@link https://hono.dev/docs/api/context#res}
1375
- * The Response object for the current request.
1376
- */
1377
- get res(): Response;
1378
- /**
1379
- * Sets the Response object for the current request.
1380
- *
1381
- * @param _res - The Response object to set.
1382
- */
1383
- set res(_res: Response | undefined);
1384
- /**
1385
- * `.render()` can create a response within a layout.
1386
- *
1387
- * @see {@link https://hono.dev/docs/api/context#render-setrenderer}
1388
- *
1389
- * @example
1390
- * ```ts
1391
- * app.get('/', (c) => {
1392
- * return c.render('Hello!')
1393
- * })
1394
- * ```
1395
- */
1396
- render: Renderer;
1397
- /**
1398
- * Sets the layout for the response.
1399
- *
1400
- * @param layout - The layout to set.
1401
- * @returns The layout function.
1402
- */
1403
- setLayout: (layout: Layout<PropsForRenderer & {
1404
- Layout: Layout;
1405
- }>) => Layout<PropsForRenderer & {
1406
- Layout: Layout;
1407
- }>;
1408
- /**
1409
- * Gets the current layout for the response.
1410
- *
1411
- * @returns The current layout function.
1412
- */
1413
- getLayout: () => Layout<PropsForRenderer & {
1414
- Layout: Layout;
1415
- }> | undefined;
1416
- /**
1417
- * `.setRenderer()` can set the layout in the custom middleware.
1418
- *
1419
- * @see {@link https://hono.dev/docs/api/context#render-setrenderer}
1420
- *
1421
- * @example
1422
- * ```tsx
1423
- * app.use('*', async (c, next) => {
1424
- * c.setRenderer((content) => {
1425
- * return c.html(
1426
- * <html>
1427
- * <body>
1428
- * <p>{content}</p>
1429
- * </body>
1430
- * </html>
1431
- * )
1432
- * })
1433
- * await next()
1434
- * })
1435
- * ```
1436
- */
1437
- setRenderer: (renderer: Renderer) => void;
1438
- /**
1439
- * `.header()` can set headers.
1440
- *
1441
- * @see {@link https://hono.dev/docs/api/context#header}
1442
- *
1443
- * @example
1444
- * ```ts
1445
- * app.get('/welcome', (c) => {
1446
- * // Set headers
1447
- * c.header('X-Message', 'Hello!')
1448
- * c.header('Content-Type', 'text/plain')
1449
- *
1450
- * return c.body('Thank you for coming')
1451
- * })
1452
- * ```
1453
- */
1454
- header: SetHeaders;
1455
- status: (status: StatusCode) => void;
1456
- /**
1457
- * `.set()` can set the value specified by the key.
1458
- *
1459
- * @see {@link https://hono.dev/docs/api/context#set-get}
1460
- *
1461
- * @example
1462
- * ```ts
1463
- * app.use('*', async (c, next) => {
1464
- * c.set('message', 'Hono is hot!!')
1465
- * await next()
1466
- * })
1467
- * ```
1468
- */
1469
- set: Set$1<IsAny<E> extends true ? {
1470
- Variables: ContextVariableMap & Record<string, any>;
1471
- } : E>;
1472
- /**
1473
- * `.get()` can use the value specified by the key.
1474
- *
1475
- * @see {@link https://hono.dev/docs/api/context#set-get}
1476
- *
1477
- * @example
1478
- * ```ts
1479
- * app.get('/', (c) => {
1480
- * const message = c.get('message')
1481
- * return c.text(`The message is "${message}"`)
1482
- * })
1483
- * ```
1484
- */
1485
- get: Get<IsAny<E> extends true ? {
1486
- Variables: ContextVariableMap & Record<string, any>;
1487
- } : E>;
1488
- /**
1489
- * `.var` can access the value of a variable.
1490
- *
1491
- * @see {@link https://hono.dev/docs/api/context#var}
1492
- *
1493
- * @example
1494
- * ```ts
1495
- * const result = c.var.client.oneMethod()
1496
- * ```
1497
- */
1498
- get var(): Readonly<ContextVariableMap & (IsAny<E['Variables']> extends true ? Record<string, any> : E['Variables'])>;
1499
- newResponse: NewResponse;
1500
- /**
1501
- * `.body()` can return the HTTP response.
1502
- * You can set headers with `.header()` and set HTTP status code with `.status`.
1503
- * This can also be set in `.text()`, `.json()` and so on.
1504
- *
1505
- * @see {@link https://hono.dev/docs/api/context#body}
1506
- *
1507
- * @example
1508
- * ```ts
1509
- * app.get('/welcome', (c) => {
1510
- * // Set headers
1511
- * c.header('X-Message', 'Hello!')
1512
- * c.header('Content-Type', 'text/plain')
1513
- * // Set HTTP status code
1514
- * c.status(201)
1515
- *
1516
- * // Return the response body
1517
- * return c.body('Thank you for coming')
1518
- * })
1519
- * ```
1520
- */
1521
- body: BodyRespond;
1522
- /**
1523
- * `.text()` can render text as `Content-Type:text/plain`.
1524
- *
1525
- * @see {@link https://hono.dev/docs/api/context#text}
1526
- *
1527
- * @example
1528
- * ```ts
1529
- * app.get('/say', (c) => {
1530
- * return c.text('Hello!')
1531
- * })
1532
- * ```
1533
- */
1534
- text: TextRespond;
1535
- /**
1536
- * `.json()` can render JSON as `Content-Type:application/json`.
1537
- *
1538
- * @see {@link https://hono.dev/docs/api/context#json}
1539
- *
1540
- * @example
1541
- * ```ts
1542
- * app.get('/api', (c) => {
1543
- * return c.json({ message: 'Hello!' })
1544
- * })
1545
- * ```
1546
- */
1547
- json: JSONRespond;
1548
- html: HTMLRespond;
1549
- /**
1550
- * `.redirect()` can Redirect, default status code is 302.
1551
- *
1552
- * @see {@link https://hono.dev/docs/api/context#redirect}
1553
- *
1554
- * @example
1555
- * ```ts
1556
- * app.get('/redirect', (c) => {
1557
- * return c.redirect('/')
1558
- * })
1559
- * app.get('/redirect-permanently', (c) => {
1560
- * return c.redirect('/', 301)
1561
- * })
1562
- * ```
1563
- */
1564
- redirect: <T extends RedirectStatusCode = 302>(location: string | URL, status?: T) => Response & TypedResponse<undefined, T, "redirect">;
1565
- /**
1566
- * `.notFound()` can return the Not Found Response.
1567
- *
1568
- * @see {@link https://hono.dev/docs/api/context#notfound}
1569
- *
1570
- * @example
1571
- * ```ts
1572
- * app.get('/notfound', (c) => {
1573
- * return c.notFound()
1574
- * })
1575
- * ```
1576
- */
1577
- notFound: () => ReturnType<NotFoundHandler>;
1578
- }
1579
-
1580
- /**
1581
- * @module
1582
- * This module is the base module for the Hono object.
1583
- */
1584
-
1585
- type GetPath<E extends Env> = (request: Request, options?: {
1586
- env?: E['Bindings'];
1587
- }) => string;
1588
- type HonoOptions<E extends Env> = {
1589
- /**
1590
- * `strict` option specifies whether to distinguish whether the last path is a directory or not.
1591
- *
1592
- * @see {@link https://hono.dev/docs/api/hono#strict-mode}
1593
- *
1594
- * @default true
1595
- */
1596
- strict?: boolean;
1597
- /**
1598
- * `router` option specifies which router to use.
1599
- *
1600
- * @see {@link https://hono.dev/docs/api/hono#router-option}
1601
- *
1602
- * @example
1603
- * ```ts
1604
- * const app = new Hono({ router: new RegExpRouter() })
1605
- * ```
1606
- */
1607
- router?: Router<[H, RouterRoute]>;
1608
- /**
1609
- * `getPath` can handle the host header value.
1610
- *
1611
- * @see {@link https://hono.dev/docs/api/routing#routing-with-host-header-value}
1612
- *
1613
- * @example
1614
- * ```ts
1615
- * const app = new Hono({
1616
- * getPath: (req) =>
1617
- * '/' + req.headers.get('host') + req.url.replace(/^https?:\/\/[^/]+(\/[^?]*)/, '$1'),
1618
- * })
1619
- *
1620
- * app.get('/www1.example.com/hello', () => c.text('hello www1'))
1621
- *
1622
- * // A following request will match the route:
1623
- * // new Request('http://www1.example.com/hello', {
1624
- * // headers: { host: 'www1.example.com' },
1625
- * // })
1626
- * ```
1627
- */
1628
- getPath?: GetPath<E>;
1629
- };
1630
- type MountOptionHandler = (c: Context) => unknown;
1631
- type MountReplaceRequest = (originalRequest: Request) => Request;
1632
- type MountOptions = MountOptionHandler | {
1633
- optionHandler?: MountOptionHandler;
1634
- replaceRequest?: MountReplaceRequest | false;
1635
- };
1636
- declare class Hono$1<E extends Env = Env, S extends Schema = {}, BasePath extends string = '/', CurrentPath extends string = BasePath> {
1637
-
1638
- get: HandlerInterface<E, 'get', S, BasePath, CurrentPath>;
1639
- post: HandlerInterface<E, 'post', S, BasePath, CurrentPath>;
1640
- put: HandlerInterface<E, 'put', S, BasePath, CurrentPath>;
1641
- delete: HandlerInterface<E, 'delete', S, BasePath, CurrentPath>;
1642
- options: HandlerInterface<E, 'options', S, BasePath, CurrentPath>;
1643
- patch: HandlerInterface<E, 'patch', S, BasePath, CurrentPath>;
1644
- all: HandlerInterface<E, 'all', S, BasePath, CurrentPath>;
1645
- on: OnHandlerInterface<E, S, BasePath>;
1646
- use: MiddlewareHandlerInterface<E, S, BasePath>;
1647
- router: Router<[H, RouterRoute]>;
1648
- readonly getPath: GetPath<E>;
1649
- private _basePath;
1650
- routes: RouterRoute[];
1651
- constructor(options?: HonoOptions<E>);
1652
- private errorHandler;
1653
- /**
1654
- * `.route()` allows grouping other Hono instance in routes.
1655
- *
1656
- * @see {@link https://hono.dev/docs/api/routing#grouping}
1657
- *
1658
- * @param {string} path - base Path
1659
- * @param {Hono} app - other Hono instance
1660
- * @returns {Hono} routed Hono instance
1661
- *
1662
- * @example
1663
- * ```ts
1664
- * const app = new Hono()
1665
- * const app2 = new Hono()
1666
- *
1667
- * app2.get("/user", (c) => c.text("user"))
1668
- * app.route("/api", app2) // GET /api/user
1669
- * ```
1670
- */
1671
- route<SubPath extends string, SubEnv extends Env, SubSchema extends Schema, SubBasePath extends string, SubCurrentPath extends string>(path: SubPath, app: Hono$1<SubEnv, SubSchema, SubBasePath, SubCurrentPath>): Hono$1<E, MergeSchemaPath<SubSchema, MergePath<BasePath, SubPath>> | S, BasePath, CurrentPath>;
1672
- /**
1673
- * `.basePath()` allows base paths to be specified.
1674
- *
1675
- * @see {@link https://hono.dev/docs/api/routing#base-path}
1676
- *
1677
- * @param {string} path - base Path
1678
- * @returns {Hono} changed Hono instance
1679
- *
1680
- * @example
1681
- * ```ts
1682
- * const api = new Hono().basePath('/api')
1683
- * ```
1684
- */
1685
- basePath<SubPath extends string>(path: SubPath): Hono$1<E, S, MergePath<BasePath, SubPath>, MergePath<BasePath, SubPath>>;
1686
- /**
1687
- * `.onError()` handles an error and returns a customized Response.
1688
- *
1689
- * @see {@link https://hono.dev/docs/api/hono#error-handling}
1690
- *
1691
- * @param {ErrorHandler} handler - request Handler for error
1692
- * @returns {Hono} changed Hono instance
1693
- *
1694
- * @example
1695
- * ```ts
1696
- * app.onError((err, c) => {
1697
- * console.error(`${err}`)
1698
- * return c.text('Custom Error Message', 500)
1699
- * })
1700
- * ```
1701
- */
1702
- onError: (handler: ErrorHandler<E>) => Hono$1<E, S, BasePath, CurrentPath>;
1703
- /**
1704
- * `.notFound()` allows you to customize a Not Found Response.
1705
- *
1706
- * @see {@link https://hono.dev/docs/api/hono#not-found}
1707
- *
1708
- * @param {NotFoundHandler} handler - request handler for not-found
1709
- * @returns {Hono} changed Hono instance
1710
- *
1711
- * @example
1712
- * ```ts
1713
- * app.notFound((c) => {
1714
- * return c.text('Custom 404 Message', 404)
1715
- * })
1716
- * ```
1717
- */
1718
- notFound: (handler: NotFoundHandler<E>) => Hono$1<E, S, BasePath, CurrentPath>;
1719
- /**
1720
- * `.mount()` allows you to mount applications built with other frameworks into your Hono application.
1721
- *
1722
- * @see {@link https://hono.dev/docs/api/hono#mount}
1723
- *
1724
- * @param {string} path - base Path
1725
- * @param {Function} applicationHandler - other Request Handler
1726
- * @param {MountOptions} [options] - options of `.mount()`
1727
- * @returns {Hono} mounted Hono instance
1728
- *
1729
- * @example
1730
- * ```ts
1731
- * import { Router as IttyRouter } from 'itty-router'
1732
- * import { Hono } from 'hono'
1733
- * // Create itty-router application
1734
- * const ittyRouter = IttyRouter()
1735
- * // GET /itty-router/hello
1736
- * ittyRouter.get('/hello', () => new Response('Hello from itty-router'))
1737
- *
1738
- * const app = new Hono()
1739
- * app.mount('/itty-router', ittyRouter.handle)
1740
- * ```
1741
- *
1742
- * @example
1743
- * ```ts
1744
- * const app = new Hono()
1745
- * // Send the request to another application without modification.
1746
- * app.mount('/app', anotherApp, {
1747
- * replaceRequest: (req) => req,
1748
- * })
1749
- * ```
1750
- */
1751
- mount(path: string, applicationHandler: (request: Request, ...args: any) => Response | Promise<Response>, options?: MountOptions): Hono$1<E, S, BasePath, CurrentPath>;
1752
- /**
1753
- * `.fetch()` will be entry point of your app.
1754
- *
1755
- * @see {@link https://hono.dev/docs/api/hono#fetch}
1756
- *
1757
- * @param {Request} request - request Object of request
1758
- * @param {Env} Env - env Object
1759
- * @param {ExecutionContext} - context of execution
1760
- * @returns {Response | Promise<Response>} response of request
1761
- *
1762
- */
1763
- fetch: (request: Request, Env?: E['Bindings'] | {}, executionCtx?: ExecutionContext) => Response | Promise<Response>;
1764
- /**
1765
- * `.request()` is a useful method for testing.
1766
- * You can pass a URL or pathname to send a GET request.
1767
- * app will return a Response object.
1768
- * ```ts
1769
- * test('GET /hello is ok', async () => {
1770
- * const res = await app.request('/hello')
1771
- * expect(res.status).toBe(200)
1772
- * })
1773
- * ```
1774
- * @see https://hono.dev/docs/api/hono#request
1775
- */
1776
- request: (input: RequestInfo | URL, requestInit?: RequestInit, Env?: E["Bindings"] | {}, executionCtx?: ExecutionContext) => Response | Promise<Response>;
1777
- /**
1778
- * `.fire()` automatically adds a global fetch event listener.
1779
- * This can be useful for environments that adhere to the Service Worker API, such as non-ES module Cloudflare Workers.
1780
- * @deprecated
1781
- * Use `fire` from `hono/service-worker` instead.
1782
- * ```ts
1783
- * import { Hono } from 'hono'
1784
- * import { fire } from 'hono/service-worker'
1785
- *
1786
- * const app = new Hono()
1787
- * // ...
1788
- * fire(app)
1789
- * ```
1790
- * @see https://hono.dev/docs/api/hono#fire
1791
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API
1792
- * @see https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/
1793
- */
1794
- fire: () => void;
1795
- }
1796
-
1797
- /**
1798
- * The Hono class extends the functionality of the HonoBase class.
1799
- * It sets up routing and allows for custom options to be passed.
1800
- *
1801
- * @template E - The environment type.
1802
- * @template S - The schema type.
1803
- * @template BasePath - The base path type.
1804
- */
1805
- declare class Hono<E extends Env = BlankEnv, S extends Schema = BlankSchema, BasePath extends string = '/'> extends Hono$1<E, S, BasePath> {
1806
- /**
1807
- * Creates an instance of the Hono class.
1808
- *
1809
- * @param options - Optional configuration options for the Hono instance.
1810
- */
1811
- constructor(options?: HonoOptions<E>);
1812
- }
1813
-
1814
- /**
1815
- * Type representing the '$all' method name
1816
- */
1817
- type MethodNameAll = `$${typeof METHOD_NAME_ALL_LOWERCASE}`;
1818
- /**
1819
- * Type representing all standard HTTP methods prefixed with '$'
1820
- * e.g., '$get' | '$post' | '$put' | '$delete' | '$options' | '$patch'
1821
- */
1822
- type StandardMethods = `$${(typeof METHODS)[number]}`;
1823
- /**
1824
- * Expands '$all' into all standard HTTP methods.
1825
- * If the schema contains '$all', it creates a type where all standard HTTP methods
1826
- * point to the same endpoint definition as '$all', while removing '$all' itself.
1827
- */
1828
- type ExpandAllMethod<S> = MethodNameAll extends keyof S ? {
1829
- [M in StandardMethods]: S[MethodNameAll];
1830
- } & Omit<S, MethodNameAll> : S;
1831
- type HonoRequest = (typeof Hono.prototype)['request'];
1832
- type BuildSearchParamsFn = (query: Record<string, string | string[]>) => URLSearchParams;
1833
- type ClientRequestOptions<T = unknown> = {
1834
- fetch?: typeof fetch | HonoRequest;
1835
- webSocket?: (...args: ConstructorParameters<typeof WebSocket>) => WebSocket;
1836
- /**
1837
- * Standard `RequestInit`, caution that this take highest priority
1838
- * and could be used to overwrite things that Hono sets for you, like `body | method | headers`.
1839
- *
1840
- * If you want to add some headers, use in `headers` instead of `init`
1841
- */
1842
- init?: RequestInit;
1843
- /**
1844
- * Custom function to serialize query parameters into URLSearchParams.
1845
- * By default, arrays are serialized as multiple parameters with the same key (e.g., `key=a&key=b`).
1846
- * You can provide a custom function to change this behavior, for example to use bracket notation (e.g., `key[]=a&key[]=b`).
1847
- *
1848
- * @example
1849
- * ```ts
1850
- * const client = hc('http://localhost', {
1851
- * buildSearchParams: (query) => {
1852
- * return new URLSearchParams(qs.stringify(query))
1853
- * }
1854
- * })
1855
- * ```
1856
- */
1857
- buildSearchParams?: BuildSearchParamsFn;
1858
- } & (keyof T extends never ? {
1859
- headers?: Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
1860
- } : {
1861
- headers: T | (() => T | Promise<T>);
1862
- });
1863
- type ClientRequest<Prefix extends string, Path extends string, S extends Schema> = {
1864
- [M in keyof ExpandAllMethod<S>]: ExpandAllMethod<S>[M] extends Endpoint & {
1865
- input: infer R;
1866
- } ? R extends object ? HasRequiredKeys<R> extends true ? (args: R, options?: ClientRequestOptions) => Promise<ClientResponseOfEndpoint<ExpandAllMethod<S>[M]>> : (args?: R, options?: ClientRequestOptions) => Promise<ClientResponseOfEndpoint<ExpandAllMethod<S>[M]>> : never : never;
1867
- } & {
1868
- $url: <const Arg extends (S[keyof S] extends {
1869
- input: infer R;
1870
- } ? R extends {
1871
- param: infer P;
1872
- } ? R extends {
1873
- query: infer Q;
1874
- } ? {
1875
- param: P;
1876
- query: Q;
1877
- } : {
1878
- param: P;
1879
- } : R extends {
1880
- query: infer Q;
1881
- } ? {
1882
- query: Q;
1883
- } : {} : {}) | undefined = undefined>(arg?: Arg) => HonoURL<Prefix, Path, Arg>;
1884
- } & (S['$get'] extends {
1885
- outputFormat: 'ws';
1886
- } ? S['$get'] extends {
1887
- input: infer I;
1888
- } ? {
1889
- $ws: (args?: I) => WebSocket;
1890
- } : {} : {});
1891
- type ClientResponseOfEndpoint<T extends Endpoint = Endpoint> = T extends {
1892
- output: infer O;
1893
- outputFormat: infer F;
1894
- status: infer S;
1895
- } ? ClientResponse<O, S extends number ? S : never, F extends ResponseFormat ? F : never> : never;
1896
- interface ClientResponse<T, U extends number = StatusCode, F extends ResponseFormat = ResponseFormat> extends globalThis.Response {
1897
- readonly body: ReadableStream | null;
1898
- readonly bodyUsed: boolean;
1899
- ok: U extends SuccessStatusCode ? true : U extends Exclude<StatusCode, SuccessStatusCode> ? false : boolean;
1900
- status: U;
1901
- statusText: string;
1902
- headers: Headers;
1903
- url: string;
1904
- redirect(url: string, status: number): Response$1;
1905
- clone(): Response$1;
1906
- json(): F extends 'text' ? Promise<never> : F extends 'json' ? Promise<T> : Promise<unknown>;
1907
- text(): F extends 'text' ? (T extends string ? Promise<T> : Promise<never>) : Promise<string>;
1908
- blob(): Promise<Blob>;
1909
- formData(): Promise<FormData>;
1910
- arrayBuffer(): Promise<ArrayBuffer>;
1911
- }
1912
- type BuildSearch<Arg, Key extends 'query'> = Arg extends {
1913
- [K in Key]: infer Query;
1914
- } ? IsEmptyObject<Query> extends true ? '' : `?${string}` : '';
1915
- type BuildPathname<P extends string, Arg> = Arg extends {
1916
- param: infer Param;
1917
- } ? `${ApplyParam<TrimStartSlash<P>, Param>}` : `/${TrimStartSlash<P>}`;
1918
- type BuildTypedURL<Protocol extends string, Host extends string, Port extends string, P extends string, Arg> = TypedURL<`${Protocol}:`, Host, Port, BuildPathname<P, Arg>, BuildSearch<Arg, 'query'>>;
1919
- type HonoURL<Prefix extends string, Path extends string, Arg> = IsLiteral<Prefix> extends true ? TrimEndSlash<Prefix> extends `${infer Protocol}://${infer Rest}` ? Rest extends `${infer Hostname}/${infer P}` ? ParseHostName<Hostname> extends [infer Host extends string, infer Port extends string] ? BuildTypedURL<Protocol, Host, Port, P, Arg> : never : ParseHostName<Rest> extends [infer Host extends string, infer Port extends string] ? BuildTypedURL<Protocol, Host, Port, Path, Arg> : never : URL : URL;
1920
- type ParseHostName<T extends string> = T extends `${infer Host}:${infer Port}` ? [Host, Port] : [T, ''];
1921
- type TrimStartSlash<T extends string> = T extends `/${infer R}` ? TrimStartSlash<R> : T;
1922
- type TrimEndSlash<T extends string> = T extends `${infer R}/` ? TrimEndSlash<R> : T;
1923
- type IsLiteral<T extends string> = [T] extends [never] ? false : string extends T ? false : true;
1924
- type ApplyParam<Path extends string, P, Result extends string = ''> = Path extends `${infer Head}/${infer Rest}` ? Head extends `:${infer Param}` ? P extends Record<Param, infer Value extends string> ? IsLiteral<Value> extends true ? ApplyParam<Rest, P, `${Result}/${Value & string}`> : ApplyParam<Rest, P, `${Result}/${Head}`> : ApplyParam<Rest, P, `${Result}/${Head}`> : ApplyParam<Rest, P, `${Result}/${Head}`> : Path extends `:${infer Param}` ? P extends Record<Param, infer Value extends string> ? IsLiteral<Value> extends true ? `${Result}/${Value & string}` : `${Result}/${Path}` : `${Result}/${Path}` : `${Result}/${Path}`;
1925
- type IsEmptyObject<T> = keyof T extends never ? true : false;
1926
- interface TypedURL<Protocol extends string, Hostname extends string, Port extends string, Pathname extends string, Search extends string> extends URL {
1927
- protocol: Protocol;
1928
- hostname: Hostname;
1929
- port: Port;
1930
- host: Port extends '' ? Hostname : `${Hostname}:${Port}`;
1931
- origin: `${Protocol}//${Hostname}${Port extends '' ? '' : `:${Port}`}`;
1932
- pathname: Pathname;
1933
- search: Search;
1934
- href: `${Protocol}//${Hostname}${Port extends '' ? '' : `:${Port}`}${Pathname}${Search}`;
1935
- }
1936
- interface Response$1 extends ClientResponse<unknown> {
1937
- }
1938
- type PathToChain<Prefix extends string, Path extends string, E extends Schema, Original extends string = Path> = Path extends `/${infer P}` ? PathToChain<Prefix, P, E, Path> : Path extends `${infer P}/${infer R}` ? {
1939
- [K in P]: PathToChain<Prefix, R, E, Original>;
1940
- } : {
1941
- [K in Path extends '' ? 'index' : Path]: ClientRequest<Prefix, Original, E extends Record<string, unknown> ? E[Original] : never>;
1942
- };
1943
- type Client<T, Prefix extends string> = T extends Hono$1<any, infer S, any> ? S extends Record<infer K, Schema> ? K extends string ? PathToChain<Prefix, K, S> : never : never : never;
1944
-
1945
- declare const hc: <T extends Hono<any, any, any>, Prefix extends string = string>(baseUrl: Prefix, options?: ClientRequestOptions) => UnionToIntersection<Client<T, Prefix>>;
1
+ import * as hono_utils_http_status from 'hono/utils/http-status';
2
+ import * as hono_client from 'hono/client';
3
+ import { hc } from 'hono/client';
4
+ export { signPayload, verifyPayloadSignature } from '@develit-io/backend-sdk/signature';
1946
5
 
1947
6
  declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1948
7
  v1: {
1949
8
  auth: {
1950
- token: ClientRequest<string, "/v1/auth/token", {
9
+ token: hono_client.ClientRequest<string, "/v1/auth/token", {
1951
10
  $post: {
1952
11
  input: {
1953
12
  json: {
@@ -1982,7 +41,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
1982
41
  v1: {
1983
42
  auth: {
1984
43
  token: {
1985
- refresh: ClientRequest<string, "/v1/auth/token/refresh", {
44
+ refresh: hono_client.ClientRequest<string, "/v1/auth/token/refresh", {
1986
45
  $put: {
1987
46
  input: {
1988
47
  json: {
@@ -2016,7 +75,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2016
75
  v1: {
2017
76
  bank: {
2018
77
  auth: {
2019
- "get-auth-uri": ClientRequest<string, "/v1/bank/auth/get-auth-uri", {
78
+ "get-auth-uri": hono_client.ClientRequest<string, "/v1/bank/auth/get-auth-uri", {
2020
79
  $get: {
2021
80
  input: {
2022
81
  query: {
@@ -2048,14 +107,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2048
107
  } & {
2049
108
  v1: {
2050
109
  bank: {
2051
- callback: ClientRequest<string, "/v1/bank/callback", {
110
+ callback: hono_client.ClientRequest<string, "/v1/bank/callback", {
2052
111
  $get: {
2053
112
  input: {
2054
113
  query: {
2055
114
  [x: string]: string;
2056
- type: "auth" | "batch";
115
+ type: "auth" | "batch" | "paymentRequest";
2057
116
  ott?: string | undefined;
2058
- batchId?: string | undefined;
2059
117
  };
2060
118
  };
2061
119
  output: {};
@@ -2065,9 +123,8 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2065
123
  input: {
2066
124
  query: {
2067
125
  [x: string]: string;
2068
- type: "auth" | "batch";
126
+ type: "auth" | "batch" | "paymentRequest";
2069
127
  ott?: string | undefined;
2070
- batchId?: string | undefined;
2071
128
  };
2072
129
  };
2073
130
  output: {
@@ -2079,13 +136,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2079
136
  input: {
2080
137
  query: {
2081
138
  [x: string]: string;
2082
- type: "auth" | "batch";
139
+ type: "auth" | "batch" | "paymentRequest";
2083
140
  ott?: string | undefined;
2084
- batchId?: string | undefined;
2085
141
  };
2086
142
  };
2087
143
  output: {
2088
144
  message: string;
145
+ error?: string | undefined;
2089
146
  };
2090
147
  outputFormat: "json";
2091
148
  status: 400;
@@ -2093,9 +150,8 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2093
150
  input: {
2094
151
  query: {
2095
152
  [x: string]: string;
2096
- type: "auth" | "batch";
153
+ type: "auth" | "batch" | "paymentRequest";
2097
154
  ott?: string | undefined;
2098
- batchId?: string | undefined;
2099
155
  };
2100
156
  };
2101
157
  output: {
@@ -2110,7 +166,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2110
166
  } & {
2111
167
  v1: {
2112
168
  observability: {
2113
- "health-check": ClientRequest<string, "/v1/observability/health-check", {
169
+ "health-check": hono_client.ClientRequest<string, "/v1/observability/health-check", {
2114
170
  $get: {
2115
171
  input: {};
2116
172
  output: {
@@ -2124,15 +180,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2124
180
  };
2125
181
  } & {
2126
182
  v1: {
2127
- organization: ClientRequest<string, "/v1/organization", {
183
+ organization: hono_client.ClientRequest<string, "/v1/organization", {
2128
184
  $get: {
2129
185
  input: {};
2130
186
  output: {
2131
187
  message: string;
2132
- balance: {
2133
- amount: number;
2134
- currency: string;
2135
- };
2136
188
  organization: {
2137
189
  id: string;
2138
190
  name: string;
@@ -2174,7 +226,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2174
226
  v1: {
2175
227
  organizations: {
2176
228
  ":id": {
2177
- accounts: ClientRequest<string, "/v1/organizations/:id/accounts", {
229
+ accounts: hono_client.ClientRequest<string, "/v1/organizations/:id/accounts", {
2178
230
  $get: {
2179
231
  input: {
2180
232
  param: {
@@ -2259,7 +311,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2259
311
  v1: {
2260
312
  organizations: {
2261
313
  ":id": {
2262
- payments: ClientRequest<string, "/v1/organizations/:id/payments", {
314
+ payments: hono_client.ClientRequest<string, "/v1/organizations/:id/payments", {
2263
315
  $get: {
2264
316
  input: {
2265
317
  param: {
@@ -2272,10 +324,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2272
324
  query: {
2273
325
  page?: string | undefined;
2274
326
  limit?: string | undefined;
2275
- sortColumn?: "amount" | "createdAt" | "updatedAt" | undefined;
327
+ sortColumn?: "createdAt" | "updatedAt" | "amount" | undefined;
2276
328
  sortDirection?: "asc" | "desc" | undefined;
2277
- filterStatus?: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED" | ("CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED")[] | undefined;
2278
- filterPaymentType?: "DOMESTIC" | "SEPA" | "SWIFT" | ("DOMESTIC" | "SEPA" | "SWIFT")[] | undefined;
329
+ filterStatus?: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO" | ("PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO")[] | undefined;
330
+ filterPaymentType?: "DOMESTIC" | "DOMESTIC"[] | undefined;
2279
331
  filterCurrency?: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX" | ("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[] | undefined;
2280
332
  filterMinAmount?: string | undefined;
2281
333
  filterMaxAmount?: string | undefined;
@@ -2291,13 +343,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2291
343
  filterBankRefId?: string | undefined;
2292
344
  filterPaymentId?: string | undefined;
2293
345
  filterDirection?: "INCOMING" | "OUTGOING" | undefined;
2294
- filterSource?: "API" | "BANK" | undefined;
2295
346
  };
2296
347
  };
2297
348
  output: {
2298
349
  payments: {
2299
350
  id: string;
2300
- source: "API" | "BANK";
2301
351
  status: string;
2302
352
  direction: "INCOMING" | "OUTGOING";
2303
353
  type: string;
@@ -2316,7 +366,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2316
366
  iban?: string | undefined;
2317
367
  bankCode?: string | undefined;
2318
368
  swiftBic?: string | undefined;
2319
- address?: string | undefined;
369
+ address?: {
370
+ streetName?: string | undefined;
371
+ buildingNumber?: string | undefined;
372
+ city?: string | undefined;
373
+ postalCode?: string | undefined;
374
+ countryCode?: string | undefined;
375
+ } | undefined;
2320
376
  };
2321
377
  dates: {
2322
378
  created: string | null;
@@ -2326,9 +382,6 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2326
382
  };
2327
383
  referenceId?: string | undefined;
2328
384
  bankRefId?: string | undefined;
2329
- authorization?: {
2330
- url: string;
2331
- } | undefined;
2332
385
  remittanceInfo?: {
2333
386
  message?: string | undefined;
2334
387
  variableSymbol?: string | undefined;
@@ -2363,10 +416,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2363
416
  query: {
2364
417
  page?: string | undefined;
2365
418
  limit?: string | undefined;
2366
- sortColumn?: "amount" | "createdAt" | "updatedAt" | undefined;
419
+ sortColumn?: "createdAt" | "updatedAt" | "amount" | undefined;
2367
420
  sortDirection?: "asc" | "desc" | undefined;
2368
- filterStatus?: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED" | ("CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED")[] | undefined;
2369
- filterPaymentType?: "DOMESTIC" | "SEPA" | "SWIFT" | ("DOMESTIC" | "SEPA" | "SWIFT")[] | undefined;
421
+ filterStatus?: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO" | ("PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO")[] | undefined;
422
+ filterPaymentType?: "DOMESTIC" | "DOMESTIC"[] | undefined;
2370
423
  filterCurrency?: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX" | ("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[] | undefined;
2371
424
  filterMinAmount?: string | undefined;
2372
425
  filterMaxAmount?: string | undefined;
@@ -2382,7 +435,145 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2382
435
  filterBankRefId?: string | undefined;
2383
436
  filterPaymentId?: string | undefined;
2384
437
  filterDirection?: "INCOMING" | "OUTGOING" | undefined;
2385
- filterSource?: "API" | "BANK" | undefined;
438
+ };
439
+ };
440
+ output: {
441
+ message: string;
442
+ };
443
+ outputFormat: "json";
444
+ status: 500;
445
+ };
446
+ }>;
447
+ };
448
+ };
449
+ };
450
+ } & {
451
+ v1: {
452
+ organizations: {
453
+ ":id": {
454
+ "payment-requests": hono_client.ClientRequest<string, "/v1/organizations/:id/payment-requests", {
455
+ $get: {
456
+ input: {
457
+ param: {
458
+ id: string;
459
+ } & {
460
+ [x: string]: string;
461
+ [x: number]: string;
462
+ [x: symbol]: string;
463
+ };
464
+ query: {
465
+ page?: string | undefined;
466
+ limit?: string | undefined;
467
+ sortColumn?: "createdAt" | "updatedAt" | "amount" | undefined;
468
+ sortDirection?: "asc" | "desc" | undefined;
469
+ filterStatus?: "BOOKED" | "REJECTED" | "OPENED" | "AUTHORIZED" | "COMPLETED" | "SETTLED" | "CLOSED" | ("BOOKED" | "REJECTED" | "OPENED" | "AUTHORIZED" | "COMPLETED" | "SETTLED" | "CLOSED")[] | undefined;
470
+ filterPaymentType?: "DOMESTIC" | "DOMESTIC"[] | undefined;
471
+ filterCurrency?: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX" | ("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[] | undefined;
472
+ filterMinAmount?: string | undefined;
473
+ filterMaxAmount?: string | undefined;
474
+ filterBatchId?: string | undefined;
475
+ filterCreditorIban?: string | undefined;
476
+ filterDebtorIban?: string | undefined;
477
+ filterDateFrom?: string | undefined;
478
+ filterDateTo?: string | undefined;
479
+ filterVariableSymbol?: string | undefined;
480
+ filterSpecificSymbol?: string | undefined;
481
+ filterConstantSymbol?: string | undefined;
482
+ filterMessage?: string | undefined;
483
+ filterBankRefId?: string | undefined;
484
+ filterPaymentRequestId?: string | undefined;
485
+ };
486
+ };
487
+ output: {
488
+ paymentRequests: {
489
+ id: string;
490
+ referenceId: string | null;
491
+ bankRefId: string | null;
492
+ status: string;
493
+ direction: "OUTGOING";
494
+ type: string;
495
+ amount: {
496
+ value: number;
497
+ currency: string;
498
+ };
499
+ debtor: {
500
+ name: string | null;
501
+ iban: string | null;
502
+ accountId: string;
503
+ bankCode: string | null;
504
+ };
505
+ creditor: {
506
+ name: string | null;
507
+ iban?: string | undefined;
508
+ bankCode?: string | undefined;
509
+ swiftBic?: string | undefined;
510
+ address?: {
511
+ streetName?: string | undefined;
512
+ buildingNumber?: string | undefined;
513
+ city?: string | undefined;
514
+ postalCode?: string | undefined;
515
+ countryCode?: string | undefined;
516
+ } | undefined;
517
+ };
518
+ remittanceInfo: {
519
+ message: string | null;
520
+ variableSymbol: string | null;
521
+ specificSymbol: string | null;
522
+ constantSymbol: string | null;
523
+ } | null;
524
+ statusReason: string | null;
525
+ dates: {
526
+ created: string | null;
527
+ initiated: string | null;
528
+ processed: string | null;
529
+ updated: string | null;
530
+ };
531
+ batch: {
532
+ id: string;
533
+ } | null;
534
+ instructionPriority: "NORMAL" | "INSTANT" | null;
535
+ }[];
536
+ pagination: {
537
+ page: number;
538
+ pageSize: number;
539
+ totalPages: number;
540
+ totalCount: number;
541
+ hasNext: boolean;
542
+ hasPrevious: boolean;
543
+ };
544
+ };
545
+ outputFormat: "json";
546
+ status: 200;
547
+ } | {
548
+ input: {
549
+ param: {
550
+ id: string;
551
+ } & {
552
+ [x: string]: string;
553
+ [x: number]: string;
554
+ [x: symbol]: string;
555
+ };
556
+ query: {
557
+ page?: string | undefined;
558
+ limit?: string | undefined;
559
+ sortColumn?: "createdAt" | "updatedAt" | "amount" | undefined;
560
+ sortDirection?: "asc" | "desc" | undefined;
561
+ filterStatus?: "BOOKED" | "REJECTED" | "OPENED" | "AUTHORIZED" | "COMPLETED" | "SETTLED" | "CLOSED" | ("BOOKED" | "REJECTED" | "OPENED" | "AUTHORIZED" | "COMPLETED" | "SETTLED" | "CLOSED")[] | undefined;
562
+ filterPaymentType?: "DOMESTIC" | "DOMESTIC"[] | undefined;
563
+ filterCurrency?: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX" | ("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[] | undefined;
564
+ filterMinAmount?: string | undefined;
565
+ filterMaxAmount?: string | undefined;
566
+ filterBatchId?: string | undefined;
567
+ filterCreditorIban?: string | undefined;
568
+ filterDebtorIban?: string | undefined;
569
+ filterDateFrom?: string | undefined;
570
+ filterDateTo?: string | undefined;
571
+ filterVariableSymbol?: string | undefined;
572
+ filterSpecificSymbol?: string | undefined;
573
+ filterConstantSymbol?: string | undefined;
574
+ filterMessage?: string | undefined;
575
+ filterBankRefId?: string | undefined;
576
+ filterPaymentRequestId?: string | undefined;
2386
577
  };
2387
578
  };
2388
579
  output: {
@@ -2405,7 +596,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2405
596
  'x-idempotency-key': string;
2406
597
  };
2407
598
  json: {
2408
- paymentType: "DOMESTIC" | "SEPA" | "SWIFT";
599
+ paymentType: "DOMESTIC";
2409
600
  amount: {
2410
601
  value: number;
2411
602
  currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
@@ -2415,20 +606,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2415
606
  name: string;
2416
607
  iban?: string | undefined;
2417
608
  accountNumber?: string | undefined;
2418
- bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500" | undefined;
609
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
2419
610
  swiftBic?: string | undefined;
2420
611
  sortCode?: string | undefined;
2421
612
  routingNumber?: string | undefined;
2422
613
  clabe?: string | undefined;
2423
614
  bsb?: string | undefined;
2424
615
  brBankNumber?: string | undefined;
2425
- address?: {
2426
- streetName?: string | undefined;
2427
- buildingNumber?: string | undefined;
2428
- city?: string | undefined;
2429
- postalCode?: string | undefined;
2430
- countryCode?: string | undefined;
2431
- } | undefined;
2432
616
  };
2433
617
  referenceId?: string | undefined;
2434
618
  remittanceInfo?: {
@@ -2437,19 +621,56 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2437
621
  constantSymbol?: string | undefined;
2438
622
  specificSymbol?: string | undefined;
2439
623
  } | undefined;
2440
- instructionPriority?: "NORMAL" | "HIGH" | "INSTANT" | undefined;
2441
- chargeBearer?: "SHA" | "OUR" | "BEN" | undefined;
624
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
2442
625
  };
2443
626
  };
2444
627
  output: {
2445
- paymentId: string;
2446
- status: "accepted";
2447
- queuedAt: string;
2448
- processing: {
2449
- priority: "NORMAL" | "HIGH" | "INSTANT";
2450
- estimatedCompletion: string;
628
+ id: string;
629
+ referenceId: string | null;
630
+ bankRefId: string | null;
631
+ status: string;
632
+ direction: "OUTGOING";
633
+ type: string;
634
+ amount: {
635
+ value: number;
636
+ currency: string;
2451
637
  };
2452
- referenceId?: string | undefined;
638
+ debtor: {
639
+ name: string | null;
640
+ iban: string | null;
641
+ accountId: string;
642
+ bankCode: string | null;
643
+ };
644
+ creditor: {
645
+ name: string | null;
646
+ iban?: string | undefined;
647
+ bankCode?: string | undefined;
648
+ swiftBic?: string | undefined;
649
+ address?: {
650
+ streetName?: string | undefined;
651
+ buildingNumber?: string | undefined;
652
+ city?: string | undefined;
653
+ postalCode?: string | undefined;
654
+ countryCode?: string | undefined;
655
+ } | undefined;
656
+ };
657
+ remittanceInfo: {
658
+ message: string | null;
659
+ variableSymbol: string | null;
660
+ specificSymbol: string | null;
661
+ constantSymbol: string | null;
662
+ } | null;
663
+ statusReason: string | null;
664
+ dates: {
665
+ created: string | null;
666
+ initiated: string | null;
667
+ processed: string | null;
668
+ updated: string | null;
669
+ };
670
+ batch: {
671
+ id: string;
672
+ } | null;
673
+ instructionPriority: "NORMAL" | "INSTANT" | null;
2453
674
  };
2454
675
  outputFormat: "json";
2455
676
  status: 202;
@@ -2466,7 +687,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2466
687
  'x-idempotency-key': string;
2467
688
  };
2468
689
  json: {
2469
- paymentType: "DOMESTIC" | "SEPA" | "SWIFT";
690
+ paymentType: "DOMESTIC";
2470
691
  amount: {
2471
692
  value: number;
2472
693
  currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
@@ -2476,20 +697,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2476
697
  name: string;
2477
698
  iban?: string | undefined;
2478
699
  accountNumber?: string | undefined;
2479
- bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500" | undefined;
700
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
2480
701
  swiftBic?: string | undefined;
2481
702
  sortCode?: string | undefined;
2482
703
  routingNumber?: string | undefined;
2483
704
  clabe?: string | undefined;
2484
705
  bsb?: string | undefined;
2485
706
  brBankNumber?: string | undefined;
2486
- address?: {
2487
- streetName?: string | undefined;
2488
- buildingNumber?: string | undefined;
2489
- city?: string | undefined;
2490
- postalCode?: string | undefined;
2491
- countryCode?: string | undefined;
2492
- } | undefined;
2493
707
  };
2494
708
  referenceId?: string | undefined;
2495
709
  remittanceInfo?: {
@@ -2498,15 +712,15 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2498
712
  constantSymbol?: string | undefined;
2499
713
  specificSymbol?: string | undefined;
2500
714
  } | undefined;
2501
- instructionPriority?: "NORMAL" | "HIGH" | "INSTANT" | undefined;
2502
- chargeBearer?: "SHA" | "OUR" | "BEN" | undefined;
715
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
2503
716
  };
2504
717
  };
2505
718
  output: {
2506
719
  message: string;
720
+ code?: string | undefined;
2507
721
  };
2508
722
  outputFormat: "json";
2509
- status: 404;
723
+ status: 400;
2510
724
  } | {
2511
725
  input: {
2512
726
  param: {
@@ -2520,7 +734,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2520
734
  'x-idempotency-key': string;
2521
735
  };
2522
736
  json: {
2523
- paymentType: "DOMESTIC" | "SEPA" | "SWIFT";
737
+ paymentType: "DOMESTIC";
2524
738
  amount: {
2525
739
  value: number;
2526
740
  currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
@@ -2530,20 +744,13 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2530
744
  name: string;
2531
745
  iban?: string | undefined;
2532
746
  accountNumber?: string | undefined;
2533
- bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500" | undefined;
747
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
2534
748
  swiftBic?: string | undefined;
2535
749
  sortCode?: string | undefined;
2536
750
  routingNumber?: string | undefined;
2537
751
  clabe?: string | undefined;
2538
752
  bsb?: string | undefined;
2539
753
  brBankNumber?: string | undefined;
2540
- address?: {
2541
- streetName?: string | undefined;
2542
- buildingNumber?: string | undefined;
2543
- city?: string | undefined;
2544
- postalCode?: string | undefined;
2545
- countryCode?: string | undefined;
2546
- } | undefined;
2547
754
  };
2548
755
  referenceId?: string | undefined;
2549
756
  remittanceInfo?: {
@@ -2552,82 +759,479 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2552
759
  constantSymbol?: string | undefined;
2553
760
  specificSymbol?: string | undefined;
2554
761
  } | undefined;
2555
- instructionPriority?: "NORMAL" | "HIGH" | "INSTANT" | undefined;
2556
- chargeBearer?: "SHA" | "OUR" | "BEN" | undefined;
762
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
2557
763
  };
2558
764
  };
2559
765
  output: {
2560
766
  message: string;
767
+ code?: string | undefined;
2561
768
  };
2562
769
  outputFormat: "json";
2563
- status: 500;
2564
- };
2565
- }>;
2566
- };
2567
- };
2568
- };
2569
- } & {
2570
- v1: {
2571
- organizations: {
2572
- ":id": {
2573
- payments: {
2574
- ":paymentId": ClientRequest<string, "/v1/organizations/:id/payments/:paymentId", {
2575
- $get: {
2576
- input: {
2577
- param: {
2578
- id: string;
2579
- paymentId: string;
2580
- } & {
2581
- id: string;
2582
- paymentId: string;
2583
- };
2584
- };
2585
- output: {
770
+ status: 404;
771
+ } | {
772
+ input: {
773
+ param: {
2586
774
  id: string;
2587
- source: "API" | "BANK";
2588
- status: string;
2589
- direction: "INCOMING" | "OUTGOING";
2590
- type: string;
775
+ } & {
776
+ [x: string]: string;
777
+ [x: number]: string;
778
+ [x: symbol]: string;
779
+ };
780
+ header: {
781
+ 'x-idempotency-key': string;
782
+ };
783
+ json: {
784
+ paymentType: "DOMESTIC";
2591
785
  amount: {
2592
786
  value: number;
2593
- currency: string;
2594
- };
2595
- debtor: {
2596
- name: string | null;
2597
- iban: string | null;
2598
- accountId?: string | undefined;
2599
- bankCode?: string | undefined;
787
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
2600
788
  };
789
+ debtorAccountId: string;
2601
790
  creditor: {
2602
- name: string | null;
791
+ name: string;
2603
792
  iban?: string | undefined;
2604
- bankCode?: string | undefined;
793
+ accountNumber?: string | undefined;
794
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
2605
795
  swiftBic?: string | undefined;
2606
- address?: string | undefined;
2607
- };
2608
- dates: {
2609
- created: string | null;
2610
- initiated?: string | undefined;
2611
- processed?: string | undefined;
2612
- updated?: string | undefined;
796
+ sortCode?: string | undefined;
797
+ routingNumber?: string | undefined;
798
+ clabe?: string | undefined;
799
+ bsb?: string | undefined;
800
+ brBankNumber?: string | undefined;
2613
801
  };
2614
802
  referenceId?: string | undefined;
2615
- bankRefId?: string | undefined;
2616
- authorization?: {
2617
- url: string;
2618
- } | undefined;
2619
803
  remittanceInfo?: {
2620
804
  message?: string | undefined;
2621
805
  variableSymbol?: string | undefined;
806
+ constantSymbol?: string | undefined;
2622
807
  specificSymbol?: string | undefined;
808
+ } | undefined;
809
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
810
+ };
811
+ };
812
+ output: {
813
+ message: string;
814
+ code?: string | undefined;
815
+ };
816
+ outputFormat: "json";
817
+ status: 422;
818
+ } | {
819
+ input: {
820
+ param: {
821
+ id: string;
822
+ } & {
823
+ [x: string]: string;
824
+ [x: number]: string;
825
+ [x: symbol]: string;
826
+ };
827
+ header: {
828
+ 'x-idempotency-key': string;
829
+ };
830
+ json: {
831
+ paymentType: "DOMESTIC";
832
+ amount: {
833
+ value: number;
834
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
835
+ };
836
+ debtorAccountId: string;
837
+ creditor: {
838
+ name: string;
839
+ iban?: string | undefined;
840
+ accountNumber?: string | undefined;
841
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
842
+ swiftBic?: string | undefined;
843
+ sortCode?: string | undefined;
844
+ routingNumber?: string | undefined;
845
+ clabe?: string | undefined;
846
+ bsb?: string | undefined;
847
+ brBankNumber?: string | undefined;
848
+ };
849
+ referenceId?: string | undefined;
850
+ remittanceInfo?: {
851
+ message?: string | undefined;
852
+ variableSymbol?: string | undefined;
2623
853
  constantSymbol?: string | undefined;
854
+ specificSymbol?: string | undefined;
2624
855
  } | undefined;
2625
- statusReason?: string | undefined;
2626
- batch?: {
856
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
857
+ };
858
+ };
859
+ output: {
860
+ message: string;
861
+ };
862
+ outputFormat: "json";
863
+ status: 500;
864
+ };
865
+ }>;
866
+ };
867
+ };
868
+ };
869
+ } & {
870
+ v1: {
871
+ organizations: {
872
+ ":id": {
873
+ "payment-requests": {
874
+ batch: hono_client.ClientRequest<string, "/v1/organizations/:id/payment-requests/batch", {
875
+ $post: {
876
+ input: {
877
+ param: {
2627
878
  id: string;
2628
- } | undefined;
2629
- chargeBearer?: string | undefined;
2630
- instructionPriority?: string | undefined;
879
+ } & {
880
+ [x: string]: string;
881
+ [x: number]: string;
882
+ [x: symbol]: string;
883
+ };
884
+ header: {
885
+ 'x-idempotency-key': string;
886
+ };
887
+ json: {
888
+ debtorAccountId: string;
889
+ paymentType: "DOMESTIC";
890
+ payments: {
891
+ amount: {
892
+ value: number;
893
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
894
+ };
895
+ creditor: {
896
+ name: string;
897
+ iban?: string | undefined;
898
+ accountNumber?: string | undefined;
899
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
900
+ swiftBic?: string | undefined;
901
+ sortCode?: string | undefined;
902
+ routingNumber?: string | undefined;
903
+ clabe?: string | undefined;
904
+ bsb?: string | undefined;
905
+ brBankNumber?: string | undefined;
906
+ };
907
+ referenceId?: string | undefined;
908
+ remittanceInfo?: {
909
+ message?: string | undefined;
910
+ variableSymbol?: string | undefined;
911
+ constantSymbol?: string | undefined;
912
+ specificSymbol?: string | undefined;
913
+ } | undefined;
914
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
915
+ }[];
916
+ };
917
+ };
918
+ output: {
919
+ batchId: string;
920
+ paymentRequests: {
921
+ id: string;
922
+ referenceId: string | null;
923
+ bankRefId: string | null;
924
+ status: string;
925
+ direction: "OUTGOING";
926
+ type: string;
927
+ amount: {
928
+ value: number;
929
+ currency: string;
930
+ };
931
+ debtor: {
932
+ name: string | null;
933
+ iban: string | null;
934
+ accountId: string;
935
+ bankCode: string | null;
936
+ };
937
+ creditor: {
938
+ name: string | null;
939
+ iban?: string | undefined;
940
+ bankCode?: string | undefined;
941
+ swiftBic?: string | undefined;
942
+ address?: {
943
+ streetName?: string | undefined;
944
+ buildingNumber?: string | undefined;
945
+ city?: string | undefined;
946
+ postalCode?: string | undefined;
947
+ countryCode?: string | undefined;
948
+ } | undefined;
949
+ };
950
+ remittanceInfo: {
951
+ message: string | null;
952
+ variableSymbol: string | null;
953
+ specificSymbol: string | null;
954
+ constantSymbol: string | null;
955
+ } | null;
956
+ statusReason: string | null;
957
+ dates: {
958
+ created: string | null;
959
+ initiated: string | null;
960
+ processed: string | null;
961
+ updated: string | null;
962
+ };
963
+ batch: {
964
+ id: string;
965
+ } | null;
966
+ instructionPriority: "NORMAL" | "INSTANT" | null;
967
+ }[];
968
+ };
969
+ outputFormat: "json";
970
+ status: 202;
971
+ } | {
972
+ input: {
973
+ param: {
974
+ id: string;
975
+ } & {
976
+ [x: string]: string;
977
+ [x: number]: string;
978
+ [x: symbol]: string;
979
+ };
980
+ header: {
981
+ 'x-idempotency-key': string;
982
+ };
983
+ json: {
984
+ debtorAccountId: string;
985
+ paymentType: "DOMESTIC";
986
+ payments: {
987
+ amount: {
988
+ value: number;
989
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
990
+ };
991
+ creditor: {
992
+ name: string;
993
+ iban?: string | undefined;
994
+ accountNumber?: string | undefined;
995
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
996
+ swiftBic?: string | undefined;
997
+ sortCode?: string | undefined;
998
+ routingNumber?: string | undefined;
999
+ clabe?: string | undefined;
1000
+ bsb?: string | undefined;
1001
+ brBankNumber?: string | undefined;
1002
+ };
1003
+ referenceId?: string | undefined;
1004
+ remittanceInfo?: {
1005
+ message?: string | undefined;
1006
+ variableSymbol?: string | undefined;
1007
+ constantSymbol?: string | undefined;
1008
+ specificSymbol?: string | undefined;
1009
+ } | undefined;
1010
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1011
+ }[];
1012
+ };
1013
+ };
1014
+ output: {
1015
+ message: string;
1016
+ code?: string | undefined;
1017
+ };
1018
+ outputFormat: "json";
1019
+ status: 400;
1020
+ } | {
1021
+ input: {
1022
+ param: {
1023
+ id: string;
1024
+ } & {
1025
+ [x: string]: string;
1026
+ [x: number]: string;
1027
+ [x: symbol]: string;
1028
+ };
1029
+ header: {
1030
+ 'x-idempotency-key': string;
1031
+ };
1032
+ json: {
1033
+ debtorAccountId: string;
1034
+ paymentType: "DOMESTIC";
1035
+ payments: {
1036
+ amount: {
1037
+ value: number;
1038
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1039
+ };
1040
+ creditor: {
1041
+ name: string;
1042
+ iban?: string | undefined;
1043
+ accountNumber?: string | undefined;
1044
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1045
+ swiftBic?: string | undefined;
1046
+ sortCode?: string | undefined;
1047
+ routingNumber?: string | undefined;
1048
+ clabe?: string | undefined;
1049
+ bsb?: string | undefined;
1050
+ brBankNumber?: string | undefined;
1051
+ };
1052
+ referenceId?: string | undefined;
1053
+ remittanceInfo?: {
1054
+ message?: string | undefined;
1055
+ variableSymbol?: string | undefined;
1056
+ constantSymbol?: string | undefined;
1057
+ specificSymbol?: string | undefined;
1058
+ } | undefined;
1059
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1060
+ }[];
1061
+ };
1062
+ };
1063
+ output: {
1064
+ message: string;
1065
+ code?: string | undefined;
1066
+ };
1067
+ outputFormat: "json";
1068
+ status: 404;
1069
+ } | {
1070
+ input: {
1071
+ param: {
1072
+ id: string;
1073
+ } & {
1074
+ [x: string]: string;
1075
+ [x: number]: string;
1076
+ [x: symbol]: string;
1077
+ };
1078
+ header: {
1079
+ 'x-idempotency-key': string;
1080
+ };
1081
+ json: {
1082
+ debtorAccountId: string;
1083
+ paymentType: "DOMESTIC";
1084
+ payments: {
1085
+ amount: {
1086
+ value: number;
1087
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1088
+ };
1089
+ creditor: {
1090
+ name: string;
1091
+ iban?: string | undefined;
1092
+ accountNumber?: string | undefined;
1093
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1094
+ swiftBic?: string | undefined;
1095
+ sortCode?: string | undefined;
1096
+ routingNumber?: string | undefined;
1097
+ clabe?: string | undefined;
1098
+ bsb?: string | undefined;
1099
+ brBankNumber?: string | undefined;
1100
+ };
1101
+ referenceId?: string | undefined;
1102
+ remittanceInfo?: {
1103
+ message?: string | undefined;
1104
+ variableSymbol?: string | undefined;
1105
+ constantSymbol?: string | undefined;
1106
+ specificSymbol?: string | undefined;
1107
+ } | undefined;
1108
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1109
+ }[];
1110
+ };
1111
+ };
1112
+ output: {
1113
+ message: string;
1114
+ code?: string | undefined;
1115
+ };
1116
+ outputFormat: "json";
1117
+ status: 422;
1118
+ } | {
1119
+ input: {
1120
+ param: {
1121
+ id: string;
1122
+ } & {
1123
+ [x: string]: string;
1124
+ [x: number]: string;
1125
+ [x: symbol]: string;
1126
+ };
1127
+ header: {
1128
+ 'x-idempotency-key': string;
1129
+ };
1130
+ json: {
1131
+ debtorAccountId: string;
1132
+ paymentType: "DOMESTIC";
1133
+ payments: {
1134
+ amount: {
1135
+ value: number;
1136
+ currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1137
+ };
1138
+ creditor: {
1139
+ name: string;
1140
+ iban?: string | undefined;
1141
+ accountNumber?: string | undefined;
1142
+ bankCode?: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2020" | "2030" | "2060" | "2070" | "2100" | "2200" | "2210" | "2220" | "2240" | "2250" | "2260" | "2310" | "2600" | "2700" | "3030" | "3050" | "3060" | "3500" | "4000" | "4300" | "5500" | "5400" | "5800" | "6000" | "6100" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7940" | "7910" | "7950" | "7960" | "7980" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8200" | "8220" | "8230" | "8240" | "8250" | "8255" | "8265" | "8500" | "8610" | undefined;
1143
+ swiftBic?: string | undefined;
1144
+ sortCode?: string | undefined;
1145
+ routingNumber?: string | undefined;
1146
+ clabe?: string | undefined;
1147
+ bsb?: string | undefined;
1148
+ brBankNumber?: string | undefined;
1149
+ };
1150
+ referenceId?: string | undefined;
1151
+ remittanceInfo?: {
1152
+ message?: string | undefined;
1153
+ variableSymbol?: string | undefined;
1154
+ constantSymbol?: string | undefined;
1155
+ specificSymbol?: string | undefined;
1156
+ } | undefined;
1157
+ instructionPriority?: "NORMAL" | "INSTANT" | undefined;
1158
+ }[];
1159
+ };
1160
+ };
1161
+ output: {
1162
+ message: string;
1163
+ };
1164
+ outputFormat: "json";
1165
+ status: 500;
1166
+ };
1167
+ }>;
1168
+ };
1169
+ };
1170
+ };
1171
+ };
1172
+ } & {
1173
+ v1: {
1174
+ organizations: {
1175
+ ":id": {
1176
+ "payment-requests": {
1177
+ ":paymentRequestId": hono_client.ClientRequest<string, "/v1/organizations/:id/payment-requests/:paymentRequestId", {
1178
+ $get: {
1179
+ input: {
1180
+ param: {
1181
+ id: string;
1182
+ paymentRequestId: string;
1183
+ } & {
1184
+ id: string;
1185
+ paymentRequestId: string;
1186
+ };
1187
+ };
1188
+ output: {
1189
+ id: string;
1190
+ referenceId: string | null;
1191
+ bankRefId: string | null;
1192
+ status: string;
1193
+ direction: "OUTGOING";
1194
+ type: string;
1195
+ amount: {
1196
+ value: number;
1197
+ currency: string;
1198
+ };
1199
+ debtor: {
1200
+ name: string | null;
1201
+ iban: string | null;
1202
+ accountId: string;
1203
+ bankCode: string | null;
1204
+ };
1205
+ creditor: {
1206
+ name: string | null;
1207
+ iban?: string | undefined;
1208
+ bankCode?: string | undefined;
1209
+ swiftBic?: string | undefined;
1210
+ address?: {
1211
+ streetName?: string | undefined;
1212
+ buildingNumber?: string | undefined;
1213
+ city?: string | undefined;
1214
+ postalCode?: string | undefined;
1215
+ countryCode?: string | undefined;
1216
+ } | undefined;
1217
+ };
1218
+ remittanceInfo: {
1219
+ message: string | null;
1220
+ variableSymbol: string | null;
1221
+ specificSymbol: string | null;
1222
+ constantSymbol: string | null;
1223
+ } | null;
1224
+ statusReason: string | null;
1225
+ dates: {
1226
+ created: string | null;
1227
+ initiated: string | null;
1228
+ processed: string | null;
1229
+ updated: string | null;
1230
+ };
1231
+ batch: {
1232
+ id: string;
1233
+ } | null;
1234
+ instructionPriority: "NORMAL" | "INSTANT" | null;
2631
1235
  };
2632
1236
  outputFormat: "json";
2633
1237
  status: 200;
@@ -2635,10 +1239,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2635
1239
  input: {
2636
1240
  param: {
2637
1241
  id: string;
2638
- paymentId: string;
1242
+ paymentRequestId: string;
2639
1243
  } & {
2640
1244
  id: string;
2641
- paymentId: string;
1245
+ paymentRequestId: string;
2642
1246
  };
2643
1247
  };
2644
1248
  output: {
@@ -2650,10 +1254,10 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2650
1254
  input: {
2651
1255
  param: {
2652
1256
  id: string;
2653
- paymentId: string;
1257
+ paymentRequestId: string;
2654
1258
  } & {
2655
1259
  id: string;
2656
- paymentId: string;
1260
+ paymentRequestId: string;
2657
1261
  };
2658
1262
  };
2659
1263
  output: {
@@ -2670,7 +1274,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2670
1274
  } & {
2671
1275
  v1: {
2672
1276
  organization: {
2673
- "signature-keys": ClientRequest<string, "/v1/organization/signature-keys", {
1277
+ "signature-keys": hono_client.ClientRequest<string, "/v1/organization/signature-keys", {
2674
1278
  $post: {
2675
1279
  input: {
2676
1280
  header: {
@@ -2731,7 +1335,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2731
1335
  v1: {
2732
1336
  organization: {
2733
1337
  "signature-keys": {
2734
- ":name": ClientRequest<string, "/v1/organization/signature-keys/:name", {
1338
+ ":name": hono_client.ClientRequest<string, "/v1/organization/signature-keys/:name", {
2735
1339
  $delete: {
2736
1340
  input: {
2737
1341
  param: {
@@ -2772,7 +1376,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2772
1376
  } & {
2773
1377
  v1: {
2774
1378
  organization: {
2775
- users: ClientRequest<string, "/v1/organization/users", {
1379
+ users: hono_client.ClientRequest<string, "/v1/organization/users", {
2776
1380
  $post: {
2777
1381
  input: {
2778
1382
  header: {
@@ -2781,19 +1385,12 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2781
1385
  } & {
2782
1386
  json: {
2783
1387
  email: string;
2784
- password: string;
2785
- roles?: string[] | undefined;
2786
- scopes?: {
2787
- scope: "organizations.{jwt.user.rawUserMetaData.organizationId}.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.accounts.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.payments.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.payments.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.delete" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.delete" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.update" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.deposit.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.simulate-deposit.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.withdraw.create";
2788
- resourceId?: string | undefined;
2789
- }[] | undefined;
2790
1388
  };
2791
1389
  };
2792
1390
  output: {
2793
1391
  message: string;
2794
1392
  id: string;
2795
1393
  email: string;
2796
- role: "OWNER" | "ADMIN" | "MEMBER";
2797
1394
  };
2798
1395
  outputFormat: "json";
2799
1396
  status: 200;
@@ -2805,12 +1402,6 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2805
1402
  } & {
2806
1403
  json: {
2807
1404
  email: string;
2808
- password: string;
2809
- roles?: string[] | undefined;
2810
- scopes?: {
2811
- scope: "organizations.{jwt.user.rawUserMetaData.organizationId}.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.accounts.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.payments.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.payments.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.signature-keys.delete" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.delete" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.update" | "organizations.{jwt.user.rawUserMetaData.organizationId}.users.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.deposit.read" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.simulate-deposit.create" | "organizations.{jwt.user.rawUserMetaData.organizationId}.transactions.withdraw.create";
2812
- resourceId?: string | undefined;
2813
- }[] | undefined;
2814
1405
  };
2815
1406
  };
2816
1407
  output: {
@@ -2826,7 +1417,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2826
1417
  v1: {
2827
1418
  organization: {
2828
1419
  users: {
2829
- ":id": ClientRequest<string, "/v1/organization/users/:id", {
1420
+ ":id": hono_client.ClientRequest<string, "/v1/organization/users/:id", {
2830
1421
  $delete: {
2831
1422
  input: {
2832
1423
  param: {
@@ -2913,20 +1504,17 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2913
1504
  v1: {
2914
1505
  tasks: {
2915
1506
  setups: {
2916
- organization: ClientRequest<string, "/v1/tasks/setups/organization", {
1507
+ organization: hono_client.ClientRequest<string, "/v1/tasks/setups/organization", {
2917
1508
  $post: {
2918
1509
  input: {
2919
1510
  json: {
2920
1511
  name: string;
2921
1512
  webhook: string;
2922
- depositFeeMultiplier: number;
2923
- withdrawFeeMultiplier: number;
2924
1513
  ipAuthorization: boolean;
2925
1514
  ownerEmail: string;
2926
1515
  bankAccounts: {
2927
1516
  iban: string;
2928
- currency: "CZK" | "EUR" | "USD";
2929
- amount: number;
1517
+ currency: "CZK";
2930
1518
  }[];
2931
1519
  };
2932
1520
  };
@@ -2935,10 +1523,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2935
1523
  id: string;
2936
1524
  name: string;
2937
1525
  webhook: string;
2938
- signatureKeyLimit: number;
2939
- state: "BLOCKED" | "OPERATIONAL";
2940
1526
  createdAt: string;
2941
- updatedAt: string | null;
2942
1527
  };
2943
1528
  outputFormat: "json";
2944
1529
  status: 200;
@@ -2947,14 +1532,11 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2947
1532
  json: {
2948
1533
  name: string;
2949
1534
  webhook: string;
2950
- depositFeeMultiplier: number;
2951
- withdrawFeeMultiplier: number;
2952
1535
  ipAuthorization: boolean;
2953
1536
  ownerEmail: string;
2954
1537
  bankAccounts: {
2955
1538
  iban: string;
2956
- currency: "CZK" | "EUR" | "USD";
2957
- amount: number;
1539
+ currency: "CZK";
2958
1540
  }[];
2959
1541
  };
2960
1542
  };
@@ -2962,20 +1544,17 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2962
1544
  message: string;
2963
1545
  };
2964
1546
  outputFormat: "json";
2965
- status: 404;
1547
+ status: 400;
2966
1548
  } | {
2967
1549
  input: {
2968
1550
  json: {
2969
1551
  name: string;
2970
1552
  webhook: string;
2971
- depositFeeMultiplier: number;
2972
- withdrawFeeMultiplier: number;
2973
1553
  ipAuthorization: boolean;
2974
1554
  ownerEmail: string;
2975
1555
  bankAccounts: {
2976
1556
  iban: string;
2977
- currency: "CZK" | "EUR" | "USD";
2978
- amount: number;
1557
+ currency: "CZK";
2979
1558
  }[];
2980
1559
  };
2981
1560
  };
@@ -2983,327 +1562,28 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
2983
1562
  message: string;
2984
1563
  };
2985
1564
  outputFormat: "json";
2986
- status: 500;
2987
- };
2988
- }>;
2989
- };
2990
- };
2991
- };
2992
- } & {
2993
- v1: {
2994
- transactions: ClientRequest<string, "/v1/transactions", {
2995
- $get: {
2996
- input: {
2997
- query: {
2998
- page?: string | undefined;
2999
- limit?: string | undefined;
3000
- sort?: "oldest" | "newest" | undefined;
3001
- filterFromDate?: string | undefined;
3002
- filterToDate?: string | undefined;
3003
- filterBankingVs?: string | undefined;
3004
- filterCreditorReferenceCode?: string | undefined;
3005
- filterStatus?: "PENDING" | "COMPLETED" | "FAILED" | "APPROVED" | "INITIALIZED" | undefined;
3006
- filterPaymentId?: string | undefined;
3007
- };
3008
- };
3009
- output: {
3010
- message: string;
3011
- transactions: {
3012
- transaction: {
3013
- id: string;
3014
- createdAt: number | null;
3015
- action: "WITHDRAW" | "DEPOSIT" | "TRANSFER" | "MINT" | "BURN" | "STAKE" | "UNSTAKE";
3016
- transactionType: string | null;
3017
- amount: number;
3018
- amountDecimals: number;
3019
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3020
- status: "PENDING" | "COMPLETED" | "FAILED" | "APPROVED" | "INITIALIZED";
3021
- bank: {
3022
- vs: string | null;
3023
- ss: string | null;
3024
- ks: string | null;
3025
- message: string | null;
1565
+ status: 404;
1566
+ } | {
1567
+ input: {
1568
+ json: {
1569
+ name: string;
1570
+ webhook: string;
1571
+ ipAuthorization: boolean;
1572
+ ownerEmail: string;
1573
+ bankAccounts: {
1574
+ iban: string;
1575
+ currency: "CZK";
1576
+ }[];
3026
1577
  };
3027
1578
  };
3028
- creditor: {
3029
- holderName: string;
3030
- iban: string | null;
3031
- accountNumber: string | null;
3032
- bankCode: string | null;
3033
- referenceCode: string | null;
3034
- };
3035
- debtor: {
3036
- holderName: string;
3037
- iban: string | null;
3038
- accountNumber: string | null;
3039
- bankCode: string | null;
3040
- referenceCode: string | null;
1579
+ output: {
1580
+ message: string;
3041
1581
  };
3042
- }[];
3043
- };
3044
- outputFormat: "json";
3045
- status: 200;
3046
- } | {
3047
- input: {
3048
- query: {
3049
- page?: string | undefined;
3050
- limit?: string | undefined;
3051
- sort?: "oldest" | "newest" | undefined;
3052
- filterFromDate?: string | undefined;
3053
- filterToDate?: string | undefined;
3054
- filterBankingVs?: string | undefined;
3055
- filterCreditorReferenceCode?: string | undefined;
3056
- filterStatus?: "PENDING" | "COMPLETED" | "FAILED" | "APPROVED" | "INITIALIZED" | undefined;
3057
- filterPaymentId?: string | undefined;
1582
+ outputFormat: "json";
1583
+ status: 500;
3058
1584
  };
3059
- };
3060
- output: {
3061
- message: string;
3062
- };
3063
- outputFormat: "json";
3064
- status: 500;
1585
+ }>;
3065
1586
  };
3066
- }>;
3067
- };
3068
- } & {
3069
- v1: {
3070
- transactions: {
3071
- deposit: ClientRequest<string, "/v1/transactions/deposit", {
3072
- $get: {
3073
- input: {
3074
- query: {
3075
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3076
- };
3077
- };
3078
- output: {
3079
- message: string;
3080
- accountNumber: string;
3081
- bankCode: string;
3082
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3083
- iban: string;
3084
- bic: string | null;
3085
- };
3086
- outputFormat: "json";
3087
- status: 200;
3088
- } | {
3089
- input: {
3090
- query: {
3091
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3092
- };
3093
- };
3094
- output: {
3095
- message: string;
3096
- };
3097
- outputFormat: "json";
3098
- status: 404;
3099
- } | {
3100
- input: {
3101
- query: {
3102
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3103
- };
3104
- };
3105
- output: {
3106
- message: string;
3107
- };
3108
- outputFormat: "json";
3109
- status: 500;
3110
- };
3111
- }>;
3112
- };
3113
- };
3114
- } & {
3115
- v1: {
3116
- transactions: {
3117
- withdraw: ClientRequest<string, "/v1/transactions/withdraw", {
3118
- $post: {
3119
- input: {
3120
- header: {
3121
- 'X-Idempotency-Key': string;
3122
- 'X-Signature-Key': string;
3123
- 'X-Signature': string;
3124
- };
3125
- } & {
3126
- json: {
3127
- amount: number;
3128
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3129
- referenceCode: string;
3130
- creditorAccount: {
3131
- accountNumber: string;
3132
- bankCode: string;
3133
- creditorName: string;
3134
- iban: string;
3135
- };
3136
- paymentMessage: string;
3137
- vs?: string | undefined;
3138
- ks?: string | undefined;
3139
- ss?: string | undefined;
3140
- };
3141
- };
3142
- output: {
3143
- message: string;
3144
- id: string;
3145
- createdAt: number | null;
3146
- action: "WITHDRAW" | "DEPOSIT" | "TRANSFER" | "MINT" | "BURN" | "STAKE" | "UNSTAKE";
3147
- transactionType: string | null;
3148
- amount: number;
3149
- amountDecimals: number;
3150
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3151
- status: "PENDING" | "COMPLETED" | "FAILED" | "APPROVED" | "INITIALIZED";
3152
- bank: {
3153
- vs: string | null;
3154
- ss: string | null;
3155
- ks: string | null;
3156
- message: string | null;
3157
- };
3158
- };
3159
- outputFormat: "json";
3160
- status: 200;
3161
- } | {
3162
- input: {
3163
- header: {
3164
- 'X-Idempotency-Key': string;
3165
- 'X-Signature-Key': string;
3166
- 'X-Signature': string;
3167
- };
3168
- } & {
3169
- json: {
3170
- amount: number;
3171
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3172
- referenceCode: string;
3173
- creditorAccount: {
3174
- accountNumber: string;
3175
- bankCode: string;
3176
- creditorName: string;
3177
- iban: string;
3178
- };
3179
- paymentMessage: string;
3180
- vs?: string | undefined;
3181
- ks?: string | undefined;
3182
- ss?: string | undefined;
3183
- };
3184
- };
3185
- output: {
3186
- message: string;
3187
- };
3188
- outputFormat: "json";
3189
- status: 404;
3190
- } | {
3191
- input: {
3192
- header: {
3193
- 'X-Idempotency-Key': string;
3194
- 'X-Signature-Key': string;
3195
- 'X-Signature': string;
3196
- };
3197
- } & {
3198
- json: {
3199
- amount: number;
3200
- currency: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
3201
- referenceCode: string;
3202
- creditorAccount: {
3203
- accountNumber: string;
3204
- bankCode: string;
3205
- creditorName: string;
3206
- iban: string;
3207
- };
3208
- paymentMessage: string;
3209
- vs?: string | undefined;
3210
- ks?: string | undefined;
3211
- ss?: string | undefined;
3212
- };
3213
- };
3214
- output: {
3215
- message: string;
3216
- };
3217
- outputFormat: "json";
3218
- status: 500;
3219
- };
3220
- }>;
3221
- };
3222
- };
3223
- } & {
3224
- v1: {
3225
- transactions: {
3226
- "simulate-deposit": ClientRequest<string, "/v1/transactions/simulate-deposit", {
3227
- $post: {
3228
- input: {
3229
- header: {
3230
- 'X-Idempotency-Key': string;
3231
- 'X-Signature-Key': string;
3232
- 'X-Signature': string;
3233
- };
3234
- } & {
3235
- json: {
3236
- amount: number;
3237
- currency: "CZK" | "EUR" | "USD";
3238
- bank: {
3239
- vs: string;
3240
- ss?: string | undefined;
3241
- ks?: string | undefined;
3242
- message?: string | undefined;
3243
- };
3244
- debtorIban: string;
3245
- debtorHolderName: string;
3246
- };
3247
- };
3248
- output: {
3249
- message: string;
3250
- };
3251
- outputFormat: "json";
3252
- status: 200;
3253
- } | {
3254
- input: {
3255
- header: {
3256
- 'X-Idempotency-Key': string;
3257
- 'X-Signature-Key': string;
3258
- 'X-Signature': string;
3259
- };
3260
- } & {
3261
- json: {
3262
- amount: number;
3263
- currency: "CZK" | "EUR" | "USD";
3264
- bank: {
3265
- vs: string;
3266
- ss?: string | undefined;
3267
- ks?: string | undefined;
3268
- message?: string | undefined;
3269
- };
3270
- debtorIban: string;
3271
- debtorHolderName: string;
3272
- };
3273
- };
3274
- output: {
3275
- message: string;
3276
- };
3277
- outputFormat: "json";
3278
- status: 404;
3279
- } | {
3280
- input: {
3281
- header: {
3282
- 'X-Idempotency-Key': string;
3283
- 'X-Signature-Key': string;
3284
- 'X-Signature': string;
3285
- };
3286
- } & {
3287
- json: {
3288
- amount: number;
3289
- currency: "CZK" | "EUR" | "USD";
3290
- bank: {
3291
- vs: string;
3292
- ss?: string | undefined;
3293
- ks?: string | undefined;
3294
- message?: string | undefined;
3295
- };
3296
- debtorIban: string;
3297
- debtorHolderName: string;
3298
- };
3299
- };
3300
- output: {
3301
- message: string;
3302
- };
3303
- outputFormat: "json";
3304
- status: 500;
3305
- };
3306
- }>;
3307
1587
  };
3308
1588
  };
3309
1589
  } & {
@@ -3311,7 +1591,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3311
1591
  users: {
3312
1592
  ":userId": {
3313
1593
  verification: {
3314
- ":confirmationToken": ClientRequest<string, "/v1/users/:userId/verification/:confirmationToken", {
1594
+ ":confirmationToken": hono_client.ClientRequest<string, "/v1/users/:userId/verification/:confirmationToken", {
3315
1595
  $patch: {
3316
1596
  input: {
3317
1597
  param: {
@@ -3328,7 +1608,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3328
1608
  };
3329
1609
  output: Response;
3330
1610
  outputFormat: "json";
3331
- status: StatusCode;
1611
+ status: hono_utils_http_status.StatusCode;
3332
1612
  };
3333
1613
  } & {
3334
1614
  $get: {
@@ -3343,7 +1623,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3343
1623
  };
3344
1624
  output: Response;
3345
1625
  outputFormat: "json";
3346
- status: StatusCode;
1626
+ status: hono_utils_http_status.StatusCode;
3347
1627
  };
3348
1628
  }>;
3349
1629
  };
@@ -3356,7 +1636,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3356
1636
  ":userId": {
3357
1637
  verification: {
3358
1638
  ":confirmationToken": {
3359
- success: ClientRequest<string, "/v1/users/:userId/verification/:confirmationToken/success", {
1639
+ success: hono_client.ClientRequest<string, "/v1/users/:userId/verification/:confirmationToken/success", {
3360
1640
  $get: {
3361
1641
  input: {
3362
1642
  param: {
@@ -3370,7 +1650,7 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3370
1650
  };
3371
1651
  output: Response;
3372
1652
  outputFormat: "json";
3373
- status: StatusCode;
1653
+ status: hono_utils_http_status.StatusCode;
3374
1654
  };
3375
1655
  }>;
3376
1656
  };
@@ -3380,15 +1660,16 @@ declare const createPartnerApiClient: (...args: Parameters<typeof hc>) => {
3380
1660
  };
3381
1661
  };
3382
1662
 
3383
- declare const signPayload: ({ payload, privateKey, }: {
3384
- payload: string;
3385
- privateKey: string;
3386
- }) => Promise<string>;
3387
- declare const verifyPayloadSignature: ({ signature, data, publicKey, algorithm, }: {
3388
- signature: string;
3389
- data: string;
3390
- publicKey: string;
3391
- algorithm?: "RSA" | "EC" | "HMAC";
3392
- }) => Promise<boolean>;
1663
+ declare const WebhookEventType: {
1664
+ readonly PaymentFetched: "payment.fetched";
1665
+ readonly PaymentUpdated: "payment.updated";
1666
+ readonly PaymentRequestAuthorized: "payment_request.authorized";
1667
+ readonly PaymentRequestCompleted: "payment_request.completed";
1668
+ readonly PaymentRequestBooked: "payment_request.booked";
1669
+ readonly PaymentRequestSettled: "payment_request.settled";
1670
+ readonly PaymentRequestRejected: "payment_request.rejected";
1671
+ readonly PaymentRequestClosed: "payment_request.closed";
1672
+ };
1673
+ type WebhookEventType = (typeof WebhookEventType)[keyof typeof WebhookEventType];
3393
1674
 
3394
- export { createPartnerApiClient, signPayload, verifyPayloadSignature };
1675
+ export { WebhookEventType, WebhookEventType as WebhookEventTypeValue, createPartnerApiClient };