@venizia/ignis 0.0.8-13 → 0.0.8-14

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.
@@ -6,7 +6,7 @@ import { IAuthorizationSpec } from '../../../components/auth/authorize/common/ty
6
6
  import { z } from '@hono/zod-openapi';
7
7
  import { BaseHelper, TClass, TNullable, TResolver, ValueOrPromise } from '@venizia/ignis-helpers';
8
8
  import { Env, Schema } from 'hono';
9
- import { ICustomizableRoutes, TRouteContext } from '../common';
9
+ import { ICustomizableRoutes, TResponseBodyOf, TRouteContext } from '../common';
10
10
  /** Configuration options for creating a CRUD controller via ControllerFactory.defineCrudController. */
11
11
  export interface ICrudControllerOptions<EntitySchema extends TTableSchemaWithId, Routes extends ICustomizableRoutes = ICustomizableRoutes> {
12
12
  /** Entity class or resolver function returning the entity class */
@@ -54,44 +54,1309 @@ export declare class ControllerFactory extends BaseHelper {
54
54
  }): ResponseData | TNullable<ResponseSchema>;
55
55
  /** GET /count */
56
56
  count(opts: {
57
- context: TRouteContext<RouteEnv>;
58
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
57
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
58
+ readonly method: "get";
59
+ readonly path: "/count";
60
+ readonly description: "Count records matching where condition";
61
+ readonly authenticate: {
62
+ strategies?: TAuthStrategy[];
63
+ mode?: TAuthMode;
64
+ };
65
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
66
+ readonly request: {
67
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
68
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]> | z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
69
+ }, z.core.$strip>;
70
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
71
+ "x-request-id": z.ZodOptional<z.ZodString>;
72
+ "x-request-channel": z.ZodOptional<z.ZodString>;
73
+ "x-device-info": z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>;
75
+ };
76
+ readonly responses: {
77
+ 200: {
78
+ description: string;
79
+ content: {
80
+ 'application/json': {
81
+ schema: z.ZodObject<{
82
+ count: z.ZodDefault<z.ZodNumber>;
83
+ }, z.core.$strip>;
84
+ };
85
+ };
86
+ required: boolean | undefined;
87
+ } | {
88
+ headers: import("../common").TResponseHeaders;
89
+ description: string;
90
+ content: {
91
+ 'application/json': {
92
+ schema: z.ZodObject<{
93
+ count: z.ZodDefault<z.ZodNumber>;
94
+ }, z.core.$strip>;
95
+ };
96
+ };
97
+ required: boolean | undefined;
98
+ };
99
+ "4xx | 5xx": {
100
+ description: string;
101
+ content: {
102
+ 'application/json': {
103
+ schema: z.ZodObject<{
104
+ name: z.ZodOptional<z.ZodString>;
105
+ statusCode: z.ZodOptional<z.ZodNumber>;
106
+ messageCode: z.ZodOptional<z.ZodString>;
107
+ message: z.ZodString;
108
+ }, z.core.$catchall<z.ZodAny>>;
109
+ };
110
+ };
111
+ required: boolean | undefined;
112
+ };
113
+ };
114
+ }>>;
115
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
116
+ readonly method: "get";
117
+ readonly path: "/count";
118
+ readonly description: "Count records matching where condition";
119
+ readonly authenticate: {
120
+ strategies?: TAuthStrategy[];
121
+ mode?: TAuthMode;
122
+ };
123
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
124
+ readonly request: {
125
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
126
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]> | z.ZodOptional<z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>>;
127
+ }, z.core.$strip>;
128
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
129
+ "x-request-id": z.ZodOptional<z.ZodString>;
130
+ "x-request-channel": z.ZodOptional<z.ZodString>;
131
+ "x-device-info": z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strip>;
133
+ };
134
+ readonly responses: {
135
+ 200: {
136
+ description: string;
137
+ content: {
138
+ 'application/json': {
139
+ schema: z.ZodObject<{
140
+ count: z.ZodDefault<z.ZodNumber>;
141
+ }, z.core.$strip>;
142
+ };
143
+ };
144
+ required: boolean | undefined;
145
+ } | {
146
+ headers: import("../common").TResponseHeaders;
147
+ description: string;
148
+ content: {
149
+ 'application/json': {
150
+ schema: z.ZodObject<{
151
+ count: z.ZodDefault<z.ZodNumber>;
152
+ }, z.core.$strip>;
153
+ };
154
+ };
155
+ required: boolean | undefined;
156
+ };
157
+ "4xx | 5xx": {
158
+ description: string;
159
+ content: {
160
+ 'application/json': {
161
+ schema: z.ZodObject<{
162
+ name: z.ZodOptional<z.ZodString>;
163
+ statusCode: z.ZodOptional<z.ZodNumber>;
164
+ messageCode: z.ZodOptional<z.ZodString>;
165
+ message: z.ZodString;
166
+ }, z.core.$catchall<z.ZodAny>>;
167
+ };
168
+ };
169
+ required: boolean | undefined;
170
+ };
171
+ };
172
+ }>, 200>>;
59
173
  /** GET / - Returns paginated list with Content-Range header. */
60
174
  find(opts: {
61
- context: TRouteContext<RouteEnv>;
62
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
175
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
176
+ readonly method: "get";
177
+ readonly path: "/";
178
+ readonly description: "Find records with filter, pagination, sorting, and relations";
179
+ readonly authenticate: {
180
+ strategies?: TAuthStrategy[];
181
+ mode?: TAuthMode;
182
+ };
183
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
184
+ readonly request: {
185
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
186
+ filter: any;
187
+ }, z.core.$strip>;
188
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
189
+ "x-request-id": z.ZodOptional<z.ZodString>;
190
+ "x-request-channel": z.ZodOptional<z.ZodString>;
191
+ "x-device-info": z.ZodOptional<z.ZodString>;
192
+ "x-request-count": z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>;
194
+ };
195
+ readonly responses: {
196
+ 200: {
197
+ description: string;
198
+ content: {
199
+ 'application/json': {
200
+ schema: z.ZodUnion<readonly [z.ZodObject<{
201
+ count: z.ZodDefault<z.ZodNumber>;
202
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
203
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
204
+ };
205
+ };
206
+ required: boolean | undefined;
207
+ } | {
208
+ headers: import("../common").TResponseHeaders;
209
+ description: string;
210
+ content: {
211
+ 'application/json': {
212
+ schema: z.ZodUnion<readonly [z.ZodObject<{
213
+ count: z.ZodDefault<z.ZodNumber>;
214
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
215
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
216
+ };
217
+ };
218
+ required: boolean | undefined;
219
+ };
220
+ "4xx | 5xx": {
221
+ description: string;
222
+ content: {
223
+ 'application/json': {
224
+ schema: z.ZodObject<{
225
+ name: z.ZodOptional<z.ZodString>;
226
+ statusCode: z.ZodOptional<z.ZodNumber>;
227
+ messageCode: z.ZodOptional<z.ZodString>;
228
+ message: z.ZodString;
229
+ }, z.core.$catchall<z.ZodAny>>;
230
+ };
231
+ };
232
+ required: boolean | undefined;
233
+ };
234
+ };
235
+ }>>;
236
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
237
+ readonly method: "get";
238
+ readonly path: "/";
239
+ readonly description: "Find records with filter, pagination, sorting, and relations";
240
+ readonly authenticate: {
241
+ strategies?: TAuthStrategy[];
242
+ mode?: TAuthMode;
243
+ };
244
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
245
+ readonly request: {
246
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
247
+ filter: any;
248
+ }, z.core.$strip>;
249
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
250
+ "x-request-id": z.ZodOptional<z.ZodString>;
251
+ "x-request-channel": z.ZodOptional<z.ZodString>;
252
+ "x-device-info": z.ZodOptional<z.ZodString>;
253
+ "x-request-count": z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strip>;
255
+ };
256
+ readonly responses: {
257
+ 200: {
258
+ description: string;
259
+ content: {
260
+ 'application/json': {
261
+ schema: z.ZodUnion<readonly [z.ZodObject<{
262
+ count: z.ZodDefault<z.ZodNumber>;
263
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
264
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
265
+ };
266
+ };
267
+ required: boolean | undefined;
268
+ } | {
269
+ headers: import("../common").TResponseHeaders;
270
+ description: string;
271
+ content: {
272
+ 'application/json': {
273
+ schema: z.ZodUnion<readonly [z.ZodObject<{
274
+ count: z.ZodDefault<z.ZodNumber>;
275
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
276
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
277
+ };
278
+ };
279
+ required: boolean | undefined;
280
+ };
281
+ "4xx | 5xx": {
282
+ description: string;
283
+ content: {
284
+ 'application/json': {
285
+ schema: z.ZodObject<{
286
+ name: z.ZodOptional<z.ZodString>;
287
+ statusCode: z.ZodOptional<z.ZodNumber>;
288
+ messageCode: z.ZodOptional<z.ZodString>;
289
+ message: z.ZodString;
290
+ }, z.core.$catchall<z.ZodAny>>;
291
+ };
292
+ };
293
+ required: boolean | undefined;
294
+ };
295
+ };
296
+ }>, 200>>;
63
297
  /** GET /:id */
64
298
  findById(opts: {
65
- context: TRouteContext<RouteEnv>;
66
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
299
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
300
+ readonly method: "get";
301
+ readonly path: "/{id}";
302
+ readonly description: "Find single record by ID";
303
+ readonly authenticate: {
304
+ strategies?: TAuthStrategy[];
305
+ mode?: TAuthMode;
306
+ };
307
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
308
+ readonly request: {
309
+ params: z.ZodObject<{
310
+ id: z.ZodNumber;
311
+ }, z.core.$strip> | z.ZodObject<{
312
+ id: z.ZodString;
313
+ }, z.core.$strip>;
314
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
315
+ filter: any;
316
+ }, z.core.$strip>;
317
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
318
+ "x-request-id": z.ZodOptional<z.ZodString>;
319
+ "x-request-channel": z.ZodOptional<z.ZodString>;
320
+ "x-device-info": z.ZodOptional<z.ZodString>;
321
+ "x-request-count": z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strip>;
323
+ };
324
+ readonly responses: {
325
+ 200: {
326
+ description: string;
327
+ content: {
328
+ 'application/json': {
329
+ schema: z.ZodUnion<readonly [z.ZodObject<{
330
+ count: z.ZodDefault<z.ZodNumber>;
331
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
332
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
333
+ };
334
+ };
335
+ required: boolean | undefined;
336
+ } | {
337
+ headers: import("../common").TResponseHeaders;
338
+ description: string;
339
+ content: {
340
+ 'application/json': {
341
+ schema: z.ZodUnion<readonly [z.ZodObject<{
342
+ count: z.ZodDefault<z.ZodNumber>;
343
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
344
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
345
+ };
346
+ };
347
+ required: boolean | undefined;
348
+ };
349
+ "4xx | 5xx": {
350
+ description: string;
351
+ content: {
352
+ 'application/json': {
353
+ schema: z.ZodObject<{
354
+ name: z.ZodOptional<z.ZodString>;
355
+ statusCode: z.ZodOptional<z.ZodNumber>;
356
+ messageCode: z.ZodOptional<z.ZodString>;
357
+ message: z.ZodString;
358
+ }, z.core.$catchall<z.ZodAny>>;
359
+ };
360
+ };
361
+ required: boolean | undefined;
362
+ };
363
+ };
364
+ }>>;
365
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
366
+ readonly method: "get";
367
+ readonly path: "/{id}";
368
+ readonly description: "Find single record by ID";
369
+ readonly authenticate: {
370
+ strategies?: TAuthStrategy[];
371
+ mode?: TAuthMode;
372
+ };
373
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
374
+ readonly request: {
375
+ params: z.ZodObject<{
376
+ id: z.ZodNumber;
377
+ }, z.core.$strip> | z.ZodObject<{
378
+ id: z.ZodString;
379
+ }, z.core.$strip>;
380
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
381
+ filter: any;
382
+ }, z.core.$strip>;
383
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
384
+ "x-request-id": z.ZodOptional<z.ZodString>;
385
+ "x-request-channel": z.ZodOptional<z.ZodString>;
386
+ "x-device-info": z.ZodOptional<z.ZodString>;
387
+ "x-request-count": z.ZodOptional<z.ZodString>;
388
+ }, z.core.$strip>;
389
+ };
390
+ readonly responses: {
391
+ 200: {
392
+ description: string;
393
+ content: {
394
+ 'application/json': {
395
+ schema: z.ZodUnion<readonly [z.ZodObject<{
396
+ count: z.ZodDefault<z.ZodNumber>;
397
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
398
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
399
+ };
400
+ };
401
+ required: boolean | undefined;
402
+ } | {
403
+ headers: import("../common").TResponseHeaders;
404
+ description: string;
405
+ content: {
406
+ 'application/json': {
407
+ schema: z.ZodUnion<readonly [z.ZodObject<{
408
+ count: z.ZodDefault<z.ZodNumber>;
409
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
410
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
411
+ };
412
+ };
413
+ required: boolean | undefined;
414
+ };
415
+ "4xx | 5xx": {
416
+ description: string;
417
+ content: {
418
+ 'application/json': {
419
+ schema: z.ZodObject<{
420
+ name: z.ZodOptional<z.ZodString>;
421
+ statusCode: z.ZodOptional<z.ZodNumber>;
422
+ messageCode: z.ZodOptional<z.ZodString>;
423
+ message: z.ZodString;
424
+ }, z.core.$catchall<z.ZodAny>>;
425
+ };
426
+ };
427
+ required: boolean | undefined;
428
+ };
429
+ };
430
+ }>, 200>>;
67
431
  /** GET /find-one */
68
432
  findOne(opts: {
69
- context: TRouteContext<RouteEnv>;
70
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
433
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
434
+ readonly method: "get";
435
+ readonly path: "/find-one";
436
+ readonly description: "Find first record matching filter";
437
+ readonly authenticate: {
438
+ strategies?: TAuthStrategy[];
439
+ mode?: TAuthMode;
440
+ };
441
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
442
+ readonly request: {
443
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
444
+ filter: any;
445
+ }, z.core.$strip>;
446
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
447
+ "x-request-id": z.ZodOptional<z.ZodString>;
448
+ "x-request-channel": z.ZodOptional<z.ZodString>;
449
+ "x-device-info": z.ZodOptional<z.ZodString>;
450
+ "x-request-count": z.ZodOptional<z.ZodString>;
451
+ }, z.core.$strip>;
452
+ };
453
+ readonly responses: {
454
+ 200: {
455
+ description: string;
456
+ content: {
457
+ 'application/json': {
458
+ schema: z.ZodUnion<readonly [z.ZodObject<{
459
+ count: z.ZodDefault<z.ZodNumber>;
460
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
461
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
462
+ };
463
+ };
464
+ required: boolean | undefined;
465
+ } | {
466
+ headers: import("../common").TResponseHeaders;
467
+ description: string;
468
+ content: {
469
+ 'application/json': {
470
+ schema: z.ZodUnion<readonly [z.ZodObject<{
471
+ count: z.ZodDefault<z.ZodNumber>;
472
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
473
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
474
+ };
475
+ };
476
+ required: boolean | undefined;
477
+ };
478
+ "4xx | 5xx": {
479
+ description: string;
480
+ content: {
481
+ 'application/json': {
482
+ schema: z.ZodObject<{
483
+ name: z.ZodOptional<z.ZodString>;
484
+ statusCode: z.ZodOptional<z.ZodNumber>;
485
+ messageCode: z.ZodOptional<z.ZodString>;
486
+ message: z.ZodString;
487
+ }, z.core.$catchall<z.ZodAny>>;
488
+ };
489
+ };
490
+ required: boolean | undefined;
491
+ };
492
+ };
493
+ }>>;
494
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
495
+ readonly method: "get";
496
+ readonly path: "/find-one";
497
+ readonly description: "Find first record matching filter";
498
+ readonly authenticate: {
499
+ strategies?: TAuthStrategy[];
500
+ mode?: TAuthMode;
501
+ };
502
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
503
+ readonly request: {
504
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
505
+ filter: any;
506
+ }, z.core.$strip>;
507
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
508
+ "x-request-id": z.ZodOptional<z.ZodString>;
509
+ "x-request-channel": z.ZodOptional<z.ZodString>;
510
+ "x-device-info": z.ZodOptional<z.ZodString>;
511
+ "x-request-count": z.ZodOptional<z.ZodString>;
512
+ }, z.core.$strip>;
513
+ };
514
+ readonly responses: {
515
+ 200: {
516
+ description: string;
517
+ content: {
518
+ 'application/json': {
519
+ schema: z.ZodUnion<readonly [z.ZodObject<{
520
+ count: z.ZodDefault<z.ZodNumber>;
521
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
522
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
523
+ };
524
+ };
525
+ required: boolean | undefined;
526
+ } | {
527
+ headers: import("../common").TResponseHeaders;
528
+ description: string;
529
+ content: {
530
+ 'application/json': {
531
+ schema: z.ZodUnion<readonly [z.ZodObject<{
532
+ count: z.ZodDefault<z.ZodNumber>;
533
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
534
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
535
+ };
536
+ };
537
+ required: boolean | undefined;
538
+ };
539
+ "4xx | 5xx": {
540
+ description: string;
541
+ content: {
542
+ 'application/json': {
543
+ schema: z.ZodObject<{
544
+ name: z.ZodOptional<z.ZodString>;
545
+ statusCode: z.ZodOptional<z.ZodNumber>;
546
+ messageCode: z.ZodOptional<z.ZodString>;
547
+ message: z.ZodString;
548
+ }, z.core.$catchall<z.ZodAny>>;
549
+ };
550
+ };
551
+ required: boolean | undefined;
552
+ };
553
+ };
554
+ }>, 200>>;
71
555
  /** POST / */
72
556
  create(opts: {
73
- context: TRouteContext<RouteEnv>;
74
- }): Promise<Response & import("hono").TypedResponse<any, 201, "json">>;
557
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
558
+ readonly method: "post";
559
+ readonly path: "/";
560
+ readonly description: "Create new record";
561
+ readonly authenticate: {
562
+ strategies?: TAuthStrategy[];
563
+ mode?: TAuthMode;
564
+ };
565
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
566
+ readonly request: {
567
+ readonly body: {
568
+ description: string;
569
+ content: {
570
+ 'application/json': {
571
+ schema: import("../../..").TAnyObjectSchema;
572
+ };
573
+ };
574
+ required: boolean | undefined;
575
+ };
576
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
577
+ "x-request-id": z.ZodOptional<z.ZodString>;
578
+ "x-request-channel": z.ZodOptional<z.ZodString>;
579
+ "x-device-info": z.ZodOptional<z.ZodString>;
580
+ "x-request-count": z.ZodOptional<z.ZodString>;
581
+ }, z.core.$strip>;
582
+ };
583
+ readonly responses: {
584
+ 200: {
585
+ description: string;
586
+ content: {
587
+ 'application/json': {
588
+ schema: z.ZodUnion<readonly [z.ZodObject<{
589
+ count: z.ZodDefault<z.ZodNumber>;
590
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
591
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
592
+ };
593
+ };
594
+ required: boolean | undefined;
595
+ } | {
596
+ headers: import("../common").TResponseHeaders;
597
+ description: string;
598
+ content: {
599
+ 'application/json': {
600
+ schema: z.ZodUnion<readonly [z.ZodObject<{
601
+ count: z.ZodDefault<z.ZodNumber>;
602
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
603
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
604
+ };
605
+ };
606
+ required: boolean | undefined;
607
+ };
608
+ "4xx | 5xx": {
609
+ description: string;
610
+ content: {
611
+ 'application/json': {
612
+ schema: z.ZodObject<{
613
+ name: z.ZodOptional<z.ZodString>;
614
+ statusCode: z.ZodOptional<z.ZodNumber>;
615
+ messageCode: z.ZodOptional<z.ZodString>;
616
+ message: z.ZodString;
617
+ }, z.core.$catchall<z.ZodAny>>;
618
+ };
619
+ };
620
+ required: boolean | undefined;
621
+ };
622
+ };
623
+ }>>;
624
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
625
+ readonly method: "post";
626
+ readonly path: "/";
627
+ readonly description: "Create new record";
628
+ readonly authenticate: {
629
+ strategies?: TAuthStrategy[];
630
+ mode?: TAuthMode;
631
+ };
632
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
633
+ readonly request: {
634
+ readonly body: {
635
+ description: string;
636
+ content: {
637
+ 'application/json': {
638
+ schema: import("../../..").TAnyObjectSchema;
639
+ };
640
+ };
641
+ required: boolean | undefined;
642
+ };
643
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
644
+ "x-request-id": z.ZodOptional<z.ZodString>;
645
+ "x-request-channel": z.ZodOptional<z.ZodString>;
646
+ "x-device-info": z.ZodOptional<z.ZodString>;
647
+ "x-request-count": z.ZodOptional<z.ZodString>;
648
+ }, z.core.$strip>;
649
+ };
650
+ readonly responses: {
651
+ 200: {
652
+ description: string;
653
+ content: {
654
+ 'application/json': {
655
+ schema: z.ZodUnion<readonly [z.ZodObject<{
656
+ count: z.ZodDefault<z.ZodNumber>;
657
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
658
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
659
+ };
660
+ };
661
+ required: boolean | undefined;
662
+ } | {
663
+ headers: import("../common").TResponseHeaders;
664
+ description: string;
665
+ content: {
666
+ 'application/json': {
667
+ schema: z.ZodUnion<readonly [z.ZodObject<{
668
+ count: z.ZodDefault<z.ZodNumber>;
669
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
670
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
671
+ };
672
+ };
673
+ required: boolean | undefined;
674
+ };
675
+ "4xx | 5xx": {
676
+ description: string;
677
+ content: {
678
+ 'application/json': {
679
+ schema: z.ZodObject<{
680
+ name: z.ZodOptional<z.ZodString>;
681
+ statusCode: z.ZodOptional<z.ZodNumber>;
682
+ messageCode: z.ZodOptional<z.ZodString>;
683
+ message: z.ZodString;
684
+ }, z.core.$catchall<z.ZodAny>>;
685
+ };
686
+ };
687
+ required: boolean | undefined;
688
+ };
689
+ };
690
+ }>, 201>>;
75
691
  /** PATCH /:id */
76
692
  updateById(opts: {
77
- context: TRouteContext<RouteEnv>;
78
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
693
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
694
+ readonly method: "patch";
695
+ readonly path: "/{id}";
696
+ readonly description: "Partial update record by ID";
697
+ readonly authenticate: {
698
+ strategies?: TAuthStrategy[];
699
+ mode?: TAuthMode;
700
+ };
701
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
702
+ readonly request: {
703
+ readonly params: z.ZodObject<{
704
+ id: z.ZodNumber;
705
+ }, z.core.$strip> | z.ZodObject<{
706
+ id: z.ZodString;
707
+ }, z.core.$strip>;
708
+ readonly body: {
709
+ description: string;
710
+ content: {
711
+ 'application/json': {
712
+ schema: import("../../..").TAnyObjectSchema;
713
+ };
714
+ };
715
+ required: boolean | undefined;
716
+ };
717
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
718
+ "x-request-id": z.ZodOptional<z.ZodString>;
719
+ "x-request-channel": z.ZodOptional<z.ZodString>;
720
+ "x-device-info": z.ZodOptional<z.ZodString>;
721
+ "x-request-count": z.ZodOptional<z.ZodString>;
722
+ }, z.core.$strip>;
723
+ };
724
+ readonly responses: {
725
+ 200: {
726
+ description: string;
727
+ content: {
728
+ 'application/json': {
729
+ schema: z.ZodUnion<readonly [z.ZodObject<{
730
+ count: z.ZodDefault<z.ZodNumber>;
731
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
732
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
733
+ };
734
+ };
735
+ required: boolean | undefined;
736
+ } | {
737
+ headers: import("../common").TResponseHeaders;
738
+ description: string;
739
+ content: {
740
+ 'application/json': {
741
+ schema: z.ZodUnion<readonly [z.ZodObject<{
742
+ count: z.ZodDefault<z.ZodNumber>;
743
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
744
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
745
+ };
746
+ };
747
+ required: boolean | undefined;
748
+ };
749
+ "4xx | 5xx": {
750
+ description: string;
751
+ content: {
752
+ 'application/json': {
753
+ schema: z.ZodObject<{
754
+ name: z.ZodOptional<z.ZodString>;
755
+ statusCode: z.ZodOptional<z.ZodNumber>;
756
+ messageCode: z.ZodOptional<z.ZodString>;
757
+ message: z.ZodString;
758
+ }, z.core.$catchall<z.ZodAny>>;
759
+ };
760
+ };
761
+ required: boolean | undefined;
762
+ };
763
+ };
764
+ }>>;
765
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
766
+ readonly method: "patch";
767
+ readonly path: "/{id}";
768
+ readonly description: "Partial update record by ID";
769
+ readonly authenticate: {
770
+ strategies?: TAuthStrategy[];
771
+ mode?: TAuthMode;
772
+ };
773
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
774
+ readonly request: {
775
+ readonly params: z.ZodObject<{
776
+ id: z.ZodNumber;
777
+ }, z.core.$strip> | z.ZodObject<{
778
+ id: z.ZodString;
779
+ }, z.core.$strip>;
780
+ readonly body: {
781
+ description: string;
782
+ content: {
783
+ 'application/json': {
784
+ schema: import("../../..").TAnyObjectSchema;
785
+ };
786
+ };
787
+ required: boolean | undefined;
788
+ };
789
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
790
+ "x-request-id": z.ZodOptional<z.ZodString>;
791
+ "x-request-channel": z.ZodOptional<z.ZodString>;
792
+ "x-device-info": z.ZodOptional<z.ZodString>;
793
+ "x-request-count": z.ZodOptional<z.ZodString>;
794
+ }, z.core.$strip>;
795
+ };
796
+ readonly responses: {
797
+ 200: {
798
+ description: string;
799
+ content: {
800
+ 'application/json': {
801
+ schema: z.ZodUnion<readonly [z.ZodObject<{
802
+ count: z.ZodDefault<z.ZodNumber>;
803
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
804
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
805
+ };
806
+ };
807
+ required: boolean | undefined;
808
+ } | {
809
+ headers: import("../common").TResponseHeaders;
810
+ description: string;
811
+ content: {
812
+ 'application/json': {
813
+ schema: z.ZodUnion<readonly [z.ZodObject<{
814
+ count: z.ZodDefault<z.ZodNumber>;
815
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
816
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
817
+ };
818
+ };
819
+ required: boolean | undefined;
820
+ };
821
+ "4xx | 5xx": {
822
+ description: string;
823
+ content: {
824
+ 'application/json': {
825
+ schema: z.ZodObject<{
826
+ name: z.ZodOptional<z.ZodString>;
827
+ statusCode: z.ZodOptional<z.ZodNumber>;
828
+ messageCode: z.ZodOptional<z.ZodString>;
829
+ message: z.ZodString;
830
+ }, z.core.$catchall<z.ZodAny>>;
831
+ };
832
+ };
833
+ required: boolean | undefined;
834
+ };
835
+ };
836
+ }>, 200>>;
79
837
  /** PATCH / */
80
838
  updateBy(opts: {
81
- context: TRouteContext<RouteEnv>;
82
- }): Promise<(Response & import("hono").TypedResponse<any, 200, "json">) | (Response & import("hono").TypedResponse<{
83
- message: string;
84
- }, 400, "json">)>;
839
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
840
+ readonly method: "patch";
841
+ readonly path: "/";
842
+ readonly description: "Bulk update records matching where condition";
843
+ readonly authenticate: {
844
+ strategies?: TAuthStrategy[];
845
+ mode?: TAuthMode;
846
+ };
847
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
848
+ readonly request: {
849
+ readonly query: import("../../..").TAnyObjectSchema | z.ZodObject<{
850
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
851
+ }, z.core.$strip>;
852
+ readonly body: {
853
+ description: string;
854
+ content: {
855
+ 'application/json': {
856
+ schema: import("../../..").TAnyObjectSchema;
857
+ };
858
+ };
859
+ required: boolean | undefined;
860
+ };
861
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
862
+ "x-request-id": z.ZodOptional<z.ZodString>;
863
+ "x-request-channel": z.ZodOptional<z.ZodString>;
864
+ "x-device-info": z.ZodOptional<z.ZodString>;
865
+ "x-request-count": z.ZodOptional<z.ZodString>;
866
+ }, z.core.$strip>;
867
+ };
868
+ readonly responses: {
869
+ 200: {
870
+ description: string;
871
+ content: {
872
+ 'application/json': {
873
+ schema: z.ZodUnion<readonly [z.ZodObject<{
874
+ count: z.ZodDefault<z.ZodNumber>;
875
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
876
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
877
+ };
878
+ };
879
+ required: boolean | undefined;
880
+ } | {
881
+ headers: import("../common").TResponseHeaders;
882
+ description: string;
883
+ content: {
884
+ 'application/json': {
885
+ schema: z.ZodUnion<readonly [z.ZodObject<{
886
+ count: z.ZodDefault<z.ZodNumber>;
887
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
888
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
889
+ };
890
+ };
891
+ required: boolean | undefined;
892
+ };
893
+ "4xx | 5xx": {
894
+ description: string;
895
+ content: {
896
+ 'application/json': {
897
+ schema: z.ZodObject<{
898
+ name: z.ZodOptional<z.ZodString>;
899
+ statusCode: z.ZodOptional<z.ZodNumber>;
900
+ messageCode: z.ZodOptional<z.ZodString>;
901
+ message: z.ZodString;
902
+ }, z.core.$catchall<z.ZodAny>>;
903
+ };
904
+ };
905
+ required: boolean | undefined;
906
+ };
907
+ };
908
+ }>>;
909
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
910
+ readonly method: "patch";
911
+ readonly path: "/";
912
+ readonly description: "Bulk update records matching where condition";
913
+ readonly authenticate: {
914
+ strategies?: TAuthStrategy[];
915
+ mode?: TAuthMode;
916
+ };
917
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
918
+ readonly request: {
919
+ readonly query: import("../../..").TAnyObjectSchema | z.ZodObject<{
920
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
921
+ }, z.core.$strip>;
922
+ readonly body: {
923
+ description: string;
924
+ content: {
925
+ 'application/json': {
926
+ schema: import("../../..").TAnyObjectSchema;
927
+ };
928
+ };
929
+ required: boolean | undefined;
930
+ };
931
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
932
+ "x-request-id": z.ZodOptional<z.ZodString>;
933
+ "x-request-channel": z.ZodOptional<z.ZodString>;
934
+ "x-device-info": z.ZodOptional<z.ZodString>;
935
+ "x-request-count": z.ZodOptional<z.ZodString>;
936
+ }, z.core.$strip>;
937
+ };
938
+ readonly responses: {
939
+ 200: {
940
+ description: string;
941
+ content: {
942
+ 'application/json': {
943
+ schema: z.ZodUnion<readonly [z.ZodObject<{
944
+ count: z.ZodDefault<z.ZodNumber>;
945
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
946
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
947
+ };
948
+ };
949
+ required: boolean | undefined;
950
+ } | {
951
+ headers: import("../common").TResponseHeaders;
952
+ description: string;
953
+ content: {
954
+ 'application/json': {
955
+ schema: z.ZodUnion<readonly [z.ZodObject<{
956
+ count: z.ZodDefault<z.ZodNumber>;
957
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
958
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
959
+ };
960
+ };
961
+ required: boolean | undefined;
962
+ };
963
+ "4xx | 5xx": {
964
+ description: string;
965
+ content: {
966
+ 'application/json': {
967
+ schema: z.ZodObject<{
968
+ name: z.ZodOptional<z.ZodString>;
969
+ statusCode: z.ZodOptional<z.ZodNumber>;
970
+ messageCode: z.ZodOptional<z.ZodString>;
971
+ message: z.ZodString;
972
+ }, z.core.$catchall<z.ZodAny>>;
973
+ };
974
+ };
975
+ required: boolean | undefined;
976
+ };
977
+ };
978
+ }>, 400> | import("../common").TJsonResponse<TResponseBodyOf<{
979
+ readonly method: "patch";
980
+ readonly path: "/";
981
+ readonly description: "Bulk update records matching where condition";
982
+ readonly authenticate: {
983
+ strategies?: TAuthStrategy[];
984
+ mode?: TAuthMode;
985
+ };
986
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
987
+ readonly request: {
988
+ readonly query: import("../../..").TAnyObjectSchema | z.ZodObject<{
989
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
990
+ }, z.core.$strip>;
991
+ readonly body: {
992
+ description: string;
993
+ content: {
994
+ 'application/json': {
995
+ schema: import("../../..").TAnyObjectSchema;
996
+ };
997
+ };
998
+ required: boolean | undefined;
999
+ };
1000
+ readonly headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1001
+ "x-request-id": z.ZodOptional<z.ZodString>;
1002
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1003
+ "x-device-info": z.ZodOptional<z.ZodString>;
1004
+ "x-request-count": z.ZodOptional<z.ZodString>;
1005
+ }, z.core.$strip>;
1006
+ };
1007
+ readonly responses: {
1008
+ 200: {
1009
+ description: string;
1010
+ content: {
1011
+ 'application/json': {
1012
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1013
+ count: z.ZodDefault<z.ZodNumber>;
1014
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1015
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1016
+ };
1017
+ };
1018
+ required: boolean | undefined;
1019
+ } | {
1020
+ headers: import("../common").TResponseHeaders;
1021
+ description: string;
1022
+ content: {
1023
+ 'application/json': {
1024
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1025
+ count: z.ZodDefault<z.ZodNumber>;
1026
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1027
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1028
+ };
1029
+ };
1030
+ required: boolean | undefined;
1031
+ };
1032
+ "4xx | 5xx": {
1033
+ description: string;
1034
+ content: {
1035
+ 'application/json': {
1036
+ schema: z.ZodObject<{
1037
+ name: z.ZodOptional<z.ZodString>;
1038
+ statusCode: z.ZodOptional<z.ZodNumber>;
1039
+ messageCode: z.ZodOptional<z.ZodString>;
1040
+ message: z.ZodString;
1041
+ }, z.core.$catchall<z.ZodAny>>;
1042
+ };
1043
+ };
1044
+ required: boolean | undefined;
1045
+ };
1046
+ };
1047
+ }>, 200>>;
85
1048
  /** DELETE /:id */
86
1049
  deleteById(opts: {
87
- context: TRouteContext<RouteEnv>;
88
- }): Promise<Response & import("hono").TypedResponse<any, 200, "json">>;
1050
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
1051
+ readonly method: "delete";
1052
+ readonly path: "/{id}";
1053
+ readonly description: "Delete record by ID (irreversible)";
1054
+ readonly authenticate: {
1055
+ strategies?: TAuthStrategy[];
1056
+ mode?: TAuthMode;
1057
+ };
1058
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
1059
+ readonly request: {
1060
+ params: z.ZodObject<{
1061
+ id: z.ZodNumber;
1062
+ }, z.core.$strip> | z.ZodObject<{
1063
+ id: z.ZodString;
1064
+ }, z.core.$strip>;
1065
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1066
+ "x-request-id": z.ZodOptional<z.ZodString>;
1067
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1068
+ "x-device-info": z.ZodOptional<z.ZodString>;
1069
+ "x-request-count": z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strip>;
1071
+ };
1072
+ readonly responses: {
1073
+ 200: {
1074
+ description: string;
1075
+ content: {
1076
+ 'application/json': {
1077
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1078
+ count: z.ZodDefault<z.ZodNumber>;
1079
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1080
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
1081
+ };
1082
+ };
1083
+ required: boolean | undefined;
1084
+ } | {
1085
+ headers: import("../common").TResponseHeaders;
1086
+ description: string;
1087
+ content: {
1088
+ 'application/json': {
1089
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1090
+ count: z.ZodDefault<z.ZodNumber>;
1091
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1092
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
1093
+ };
1094
+ };
1095
+ required: boolean | undefined;
1096
+ };
1097
+ "4xx | 5xx": {
1098
+ description: string;
1099
+ content: {
1100
+ 'application/json': {
1101
+ schema: z.ZodObject<{
1102
+ name: z.ZodOptional<z.ZodString>;
1103
+ statusCode: z.ZodOptional<z.ZodNumber>;
1104
+ messageCode: z.ZodOptional<z.ZodString>;
1105
+ message: z.ZodString;
1106
+ }, z.core.$catchall<z.ZodAny>>;
1107
+ };
1108
+ };
1109
+ required: boolean | undefined;
1110
+ };
1111
+ };
1112
+ }>>;
1113
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
1114
+ readonly method: "delete";
1115
+ readonly path: "/{id}";
1116
+ readonly description: "Delete record by ID (irreversible)";
1117
+ readonly authenticate: {
1118
+ strategies?: TAuthStrategy[];
1119
+ mode?: TAuthMode;
1120
+ };
1121
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
1122
+ readonly request: {
1123
+ params: z.ZodObject<{
1124
+ id: z.ZodNumber;
1125
+ }, z.core.$strip> | z.ZodObject<{
1126
+ id: z.ZodString;
1127
+ }, z.core.$strip>;
1128
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1129
+ "x-request-id": z.ZodOptional<z.ZodString>;
1130
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1131
+ "x-device-info": z.ZodOptional<z.ZodString>;
1132
+ "x-request-count": z.ZodOptional<z.ZodString>;
1133
+ }, z.core.$strip>;
1134
+ };
1135
+ readonly responses: {
1136
+ 200: {
1137
+ description: string;
1138
+ content: {
1139
+ 'application/json': {
1140
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1141
+ count: z.ZodDefault<z.ZodNumber>;
1142
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1143
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
1144
+ };
1145
+ };
1146
+ required: boolean | undefined;
1147
+ } | {
1148
+ headers: import("../common").TResponseHeaders;
1149
+ description: string;
1150
+ content: {
1151
+ 'application/json': {
1152
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1153
+ count: z.ZodDefault<z.ZodNumber>;
1154
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1155
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
1156
+ };
1157
+ };
1158
+ required: boolean | undefined;
1159
+ };
1160
+ "4xx | 5xx": {
1161
+ description: string;
1162
+ content: {
1163
+ 'application/json': {
1164
+ schema: z.ZodObject<{
1165
+ name: z.ZodOptional<z.ZodString>;
1166
+ statusCode: z.ZodOptional<z.ZodNumber>;
1167
+ messageCode: z.ZodOptional<z.ZodString>;
1168
+ message: z.ZodString;
1169
+ }, z.core.$catchall<z.ZodAny>>;
1170
+ };
1171
+ };
1172
+ required: boolean | undefined;
1173
+ };
1174
+ };
1175
+ }>, 200>>;
89
1176
  /** DELETE / */
90
1177
  deleteBy(opts: {
91
- context: TRouteContext<RouteEnv>;
92
- }): Promise<(Response & import("hono").TypedResponse<any, 200, "json">) | (Response & import("hono").TypedResponse<{
93
- message: string;
94
- }, 400, "json">)>;
1178
+ context: TRouteContext<RouteEnv, TResponseBodyOf<{
1179
+ readonly method: "delete";
1180
+ readonly path: "/";
1181
+ readonly description: "Bulk delete records matching where condition (irreversible)";
1182
+ readonly authenticate: {
1183
+ strategies?: TAuthStrategy[];
1184
+ mode?: TAuthMode;
1185
+ };
1186
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
1187
+ readonly request: {
1188
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
1189
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
1190
+ }, z.core.$strip>;
1191
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1192
+ "x-request-id": z.ZodOptional<z.ZodString>;
1193
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1194
+ "x-device-info": z.ZodOptional<z.ZodString>;
1195
+ "x-request-count": z.ZodOptional<z.ZodString>;
1196
+ }, z.core.$strip>;
1197
+ };
1198
+ readonly responses: {
1199
+ 200: {
1200
+ description: string;
1201
+ content: {
1202
+ 'application/json': {
1203
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1204
+ count: z.ZodDefault<z.ZodNumber>;
1205
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1206
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1207
+ };
1208
+ };
1209
+ required: boolean | undefined;
1210
+ } | {
1211
+ headers: import("../common").TResponseHeaders;
1212
+ description: string;
1213
+ content: {
1214
+ 'application/json': {
1215
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1216
+ count: z.ZodDefault<z.ZodNumber>;
1217
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1218
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1219
+ };
1220
+ };
1221
+ required: boolean | undefined;
1222
+ };
1223
+ "4xx | 5xx": {
1224
+ description: string;
1225
+ content: {
1226
+ 'application/json': {
1227
+ schema: z.ZodObject<{
1228
+ name: z.ZodOptional<z.ZodString>;
1229
+ statusCode: z.ZodOptional<z.ZodNumber>;
1230
+ messageCode: z.ZodOptional<z.ZodString>;
1231
+ message: z.ZodString;
1232
+ }, z.core.$catchall<z.ZodAny>>;
1233
+ };
1234
+ };
1235
+ required: boolean | undefined;
1236
+ };
1237
+ };
1238
+ }>>;
1239
+ }): Promise<import("../common").TJsonResponse<TResponseBodyOf<{
1240
+ readonly method: "delete";
1241
+ readonly path: "/";
1242
+ readonly description: "Bulk delete records matching where condition (irreversible)";
1243
+ readonly authenticate: {
1244
+ strategies?: TAuthStrategy[];
1245
+ mode?: TAuthMode;
1246
+ };
1247
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
1248
+ readonly request: {
1249
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
1250
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
1251
+ }, z.core.$strip>;
1252
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1253
+ "x-request-id": z.ZodOptional<z.ZodString>;
1254
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1255
+ "x-device-info": z.ZodOptional<z.ZodString>;
1256
+ "x-request-count": z.ZodOptional<z.ZodString>;
1257
+ }, z.core.$strip>;
1258
+ };
1259
+ readonly responses: {
1260
+ 200: {
1261
+ description: string;
1262
+ content: {
1263
+ 'application/json': {
1264
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1265
+ count: z.ZodDefault<z.ZodNumber>;
1266
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1267
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1268
+ };
1269
+ };
1270
+ required: boolean | undefined;
1271
+ } | {
1272
+ headers: import("../common").TResponseHeaders;
1273
+ description: string;
1274
+ content: {
1275
+ 'application/json': {
1276
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1277
+ count: z.ZodDefault<z.ZodNumber>;
1278
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1279
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1280
+ };
1281
+ };
1282
+ required: boolean | undefined;
1283
+ };
1284
+ "4xx | 5xx": {
1285
+ description: string;
1286
+ content: {
1287
+ 'application/json': {
1288
+ schema: z.ZodObject<{
1289
+ name: z.ZodOptional<z.ZodString>;
1290
+ statusCode: z.ZodOptional<z.ZodNumber>;
1291
+ messageCode: z.ZodOptional<z.ZodString>;
1292
+ message: z.ZodString;
1293
+ }, z.core.$catchall<z.ZodAny>>;
1294
+ };
1295
+ };
1296
+ required: boolean | undefined;
1297
+ };
1298
+ };
1299
+ }>, 400> | import("../common").TJsonResponse<TResponseBodyOf<{
1300
+ readonly method: "delete";
1301
+ readonly path: "/";
1302
+ readonly description: "Bulk delete records matching where condition (irreversible)";
1303
+ readonly authenticate: {
1304
+ strategies?: TAuthStrategy[];
1305
+ mode?: TAuthMode;
1306
+ };
1307
+ readonly authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
1308
+ readonly request: {
1309
+ query: import("../../..").TAnyObjectSchema | z.ZodObject<{
1310
+ where: z.ZodUnion<readonly [z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>, z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<any, string>>, z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>]>;
1311
+ }, z.core.$strip>;
1312
+ headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
1313
+ "x-request-id": z.ZodOptional<z.ZodString>;
1314
+ "x-request-channel": z.ZodOptional<z.ZodString>;
1315
+ "x-device-info": z.ZodOptional<z.ZodString>;
1316
+ "x-request-count": z.ZodOptional<z.ZodString>;
1317
+ }, z.core.$strip>;
1318
+ };
1319
+ readonly responses: {
1320
+ 200: {
1321
+ description: string;
1322
+ content: {
1323
+ 'application/json': {
1324
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1325
+ count: z.ZodDefault<z.ZodNumber>;
1326
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1327
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1328
+ };
1329
+ };
1330
+ required: boolean | undefined;
1331
+ } | {
1332
+ headers: import("../common").TResponseHeaders;
1333
+ description: string;
1334
+ content: {
1335
+ 'application/json': {
1336
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1337
+ count: z.ZodDefault<z.ZodNumber>;
1338
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1339
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
1340
+ };
1341
+ };
1342
+ required: boolean | undefined;
1343
+ };
1344
+ "4xx | 5xx": {
1345
+ description: string;
1346
+ content: {
1347
+ 'application/json': {
1348
+ schema: z.ZodObject<{
1349
+ name: z.ZodOptional<z.ZodString>;
1350
+ statusCode: z.ZodOptional<z.ZodNumber>;
1351
+ messageCode: z.ZodOptional<z.ZodString>;
1352
+ message: z.ZodString;
1353
+ }, z.core.$catchall<z.ZodAny>>;
1354
+ };
1355
+ };
1356
+ required: boolean | undefined;
1357
+ };
1358
+ };
1359
+ }>, 200>>;
95
1360
  /** Registers all CRUD route handlers. */
96
1361
  binding(): ValueOrPromise<void>;
97
1362
  toHonoHandler<ResponseType = unknown>(opts: {
@@ -138,7 +1403,9 @@ export declare class ControllerFactory extends BaseHelper {
138
1403
  description: string;
139
1404
  content: {
140
1405
  'application/json': {
141
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1406
+ schema: z.ZodObject<{
1407
+ count: z.ZodDefault<z.ZodNumber>;
1408
+ }, z.core.$strip>;
142
1409
  };
143
1410
  };
144
1411
  required: boolean | undefined;
@@ -147,7 +1414,9 @@ export declare class ControllerFactory extends BaseHelper {
147
1414
  description: string;
148
1415
  content: {
149
1416
  'application/json': {
150
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1417
+ schema: z.ZodObject<{
1418
+ count: z.ZodDefault<z.ZodNumber>;
1419
+ }, z.core.$strip>;
151
1420
  };
152
1421
  };
153
1422
  required: boolean | undefined;
@@ -193,7 +1462,10 @@ export declare class ControllerFactory extends BaseHelper {
193
1462
  description: string;
194
1463
  content: {
195
1464
  'application/json': {
196
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1465
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1466
+ count: z.ZodDefault<z.ZodNumber>;
1467
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1468
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
197
1469
  };
198
1470
  };
199
1471
  required: boolean | undefined;
@@ -202,7 +1474,10 @@ export declare class ControllerFactory extends BaseHelper {
202
1474
  description: string;
203
1475
  content: {
204
1476
  'application/json': {
205
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1477
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1478
+ count: z.ZodDefault<z.ZodNumber>;
1479
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1480
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
206
1481
  };
207
1482
  };
208
1483
  required: boolean | undefined;
@@ -253,7 +1528,10 @@ export declare class ControllerFactory extends BaseHelper {
253
1528
  description: string;
254
1529
  content: {
255
1530
  'application/json': {
256
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1531
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1532
+ count: z.ZodDefault<z.ZodNumber>;
1533
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1534
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
257
1535
  };
258
1536
  };
259
1537
  required: boolean | undefined;
@@ -262,7 +1540,10 @@ export declare class ControllerFactory extends BaseHelper {
262
1540
  description: string;
263
1541
  content: {
264
1542
  'application/json': {
265
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1543
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1544
+ count: z.ZodDefault<z.ZodNumber>;
1545
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1546
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
266
1547
  };
267
1548
  };
268
1549
  required: boolean | undefined;
@@ -308,7 +1589,10 @@ export declare class ControllerFactory extends BaseHelper {
308
1589
  description: string;
309
1590
  content: {
310
1591
  'application/json': {
311
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1592
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1593
+ count: z.ZodDefault<z.ZodNumber>;
1594
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1595
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
312
1596
  };
313
1597
  };
314
1598
  required: boolean | undefined;
@@ -317,7 +1601,10 @@ export declare class ControllerFactory extends BaseHelper {
317
1601
  description: string;
318
1602
  content: {
319
1603
  'application/json': {
320
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1604
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1605
+ count: z.ZodDefault<z.ZodNumber>;
1606
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1607
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
321
1608
  };
322
1609
  };
323
1610
  required: boolean | undefined;
@@ -369,7 +1656,10 @@ export declare class ControllerFactory extends BaseHelper {
369
1656
  description: string;
370
1657
  content: {
371
1658
  'application/json': {
372
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1659
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1660
+ count: z.ZodDefault<z.ZodNumber>;
1661
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1662
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
373
1663
  };
374
1664
  };
375
1665
  required: boolean | undefined;
@@ -378,7 +1668,10 @@ export declare class ControllerFactory extends BaseHelper {
378
1668
  description: string;
379
1669
  content: {
380
1670
  'application/json': {
381
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1671
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1672
+ count: z.ZodDefault<z.ZodNumber>;
1673
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1674
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
382
1675
  };
383
1676
  };
384
1677
  required: boolean | undefined;
@@ -435,7 +1728,10 @@ export declare class ControllerFactory extends BaseHelper {
435
1728
  description: string;
436
1729
  content: {
437
1730
  'application/json': {
438
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1731
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1732
+ count: z.ZodDefault<z.ZodNumber>;
1733
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1734
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
439
1735
  };
440
1736
  };
441
1737
  required: boolean | undefined;
@@ -444,7 +1740,10 @@ export declare class ControllerFactory extends BaseHelper {
444
1740
  description: string;
445
1741
  content: {
446
1742
  'application/json': {
447
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1743
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1744
+ count: z.ZodDefault<z.ZodNumber>;
1745
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1746
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
448
1747
  };
449
1748
  };
450
1749
  required: boolean | undefined;
@@ -499,7 +1798,10 @@ export declare class ControllerFactory extends BaseHelper {
499
1798
  description: string;
500
1799
  content: {
501
1800
  'application/json': {
502
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1801
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1802
+ count: z.ZodDefault<z.ZodNumber>;
1803
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1804
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
503
1805
  };
504
1806
  };
505
1807
  required: boolean | undefined;
@@ -508,7 +1810,10 @@ export declare class ControllerFactory extends BaseHelper {
508
1810
  description: string;
509
1811
  content: {
510
1812
  'application/json': {
511
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1813
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1814
+ count: z.ZodDefault<z.ZodNumber>;
1815
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1816
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
512
1817
  };
513
1818
  };
514
1819
  required: boolean | undefined;
@@ -556,7 +1861,10 @@ export declare class ControllerFactory extends BaseHelper {
556
1861
  description: string;
557
1862
  content: {
558
1863
  'application/json': {
559
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1864
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1865
+ count: z.ZodDefault<z.ZodNumber>;
1866
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1867
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
560
1868
  };
561
1869
  };
562
1870
  required: boolean | undefined;
@@ -565,7 +1873,10 @@ export declare class ControllerFactory extends BaseHelper {
565
1873
  description: string;
566
1874
  content: {
567
1875
  'application/json': {
568
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1876
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1877
+ count: z.ZodDefault<z.ZodNumber>;
1878
+ data: import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>;
1879
+ }, z.core.$strip>, import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>]>;
569
1880
  };
570
1881
  };
571
1882
  required: boolean | undefined;
@@ -611,7 +1922,10 @@ export declare class ControllerFactory extends BaseHelper {
611
1922
  description: string;
612
1923
  content: {
613
1924
  'application/json': {
614
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1925
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1926
+ count: z.ZodDefault<z.ZodNumber>;
1927
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1928
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
615
1929
  };
616
1930
  };
617
1931
  required: boolean | undefined;
@@ -620,7 +1934,10 @@ export declare class ControllerFactory extends BaseHelper {
620
1934
  description: string;
621
1935
  content: {
622
1936
  'application/json': {
623
- schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1937
+ schema: z.ZodUnion<readonly [z.ZodObject<{
1938
+ count: z.ZodDefault<z.ZodNumber>;
1939
+ data: z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>;
1940
+ }, z.core.$strip>, z.ZodArray<import("drizzle-zod").BuildSchema<"insert", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"update", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined> | import("drizzle-zod").BuildSchema<"select", EntitySchema["_"]["columns"], undefined, true | Partial<Record<"string" | "number" | "bigint" | "boolean" | "date", true>> | undefined>>]>;
624
1941
  };
625
1942
  };
626
1943
  required: boolean | undefined;