@venizia/ignis 0.0.9-1 → 0.0.9-11

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.
Files changed (56) hide show
  1. package/dist/base/controllers/factory/controller.d.ts +1 -582
  2. package/dist/base/controllers/factory/controller.d.ts.map +1 -1
  3. package/dist/base/controllers/factory/controller.js +7 -0
  4. package/dist/base/controllers/factory/controller.js.map +1 -1
  5. package/dist/base/controllers/factory/definition.d.ts +82 -82
  6. package/dist/base/controllers/factory/definition.d.ts.map +1 -1
  7. package/dist/base/controllers/factory/definition.js.map +1 -1
  8. package/dist/base/metadata/persistents.d.ts.map +1 -1
  9. package/dist/base/metadata/persistents.js +6 -0
  10. package/dist/base/metadata/persistents.js.map +1 -1
  11. package/dist/base/models/common/columns.d.ts +22 -0
  12. package/dist/base/models/common/columns.d.ts.map +1 -0
  13. package/dist/base/models/common/columns.js +43 -0
  14. package/dist/base/models/common/columns.js.map +1 -0
  15. package/dist/base/models/common/index.d.ts +1 -0
  16. package/dist/base/models/common/index.d.ts.map +1 -1
  17. package/dist/base/models/common/index.js +1 -0
  18. package/dist/base/models/common/index.js.map +1 -1
  19. package/dist/base/models/enrichers/tz.enricher.d.ts +9 -8
  20. package/dist/base/models/enrichers/tz.enricher.d.ts.map +1 -1
  21. package/dist/base/models/enrichers/tz.enricher.js +7 -10
  22. package/dist/base/models/enrichers/tz.enricher.js.map +1 -1
  23. package/dist/base/repositories/common/types.d.ts +6 -2
  24. package/dist/base/repositories/common/types.d.ts.map +1 -1
  25. package/dist/base/repositories/common/types.js +6 -4
  26. package/dist/base/repositories/common/types.js.map +1 -1
  27. package/dist/base/repositories/core/abstract.d.ts +2 -0
  28. package/dist/base/repositories/core/abstract.d.ts.map +1 -1
  29. package/dist/base/repositories/core/persistable.d.ts +6 -1
  30. package/dist/base/repositories/core/persistable.d.ts.map +1 -1
  31. package/dist/base/repositories/core/persistable.js +18 -6
  32. package/dist/base/repositories/core/persistable.js.map +1 -1
  33. package/dist/base/repositories/core/readable.d.ts.map +1 -1
  34. package/dist/base/repositories/core/readable.js +5 -1
  35. package/dist/base/repositories/core/readable.js.map +1 -1
  36. package/dist/base/repositories/mixins/default-filter.d.ts +3 -0
  37. package/dist/base/repositories/mixins/default-filter.d.ts.map +1 -1
  38. package/dist/base/repositories/mixins/default-filter.js +11 -0
  39. package/dist/base/repositories/mixins/default-filter.js.map +1 -1
  40. package/dist/base/repositories/operators/filter.d.ts +4 -0
  41. package/dist/base/repositories/operators/filter.d.ts.map +1 -1
  42. package/dist/base/repositories/operators/filter.js +23 -2
  43. package/dist/base/repositories/operators/filter.js.map +1 -1
  44. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts +6 -0
  45. package/dist/components/auth/authorize/adapters/drizzle-casbin.d.ts.map +1 -1
  46. package/dist/components/auth/authorize/adapters/drizzle-casbin.js +10 -5
  47. package/dist/components/auth/authorize/adapters/drizzle-casbin.js.map +1 -1
  48. package/dist/components/auth/models/entities/user.model.d.ts +16 -2
  49. package/dist/components/auth/models/entities/user.model.d.ts.map +1 -1
  50. package/dist/components/auth/models/entities/user.model.js +3 -2
  51. package/dist/components/auth/models/entities/user.model.js.map +1 -1
  52. package/dist/components/static-asset/models/base.model.d.ts +24 -16
  53. package/dist/components/static-asset/models/base.model.d.ts.map +1 -1
  54. package/dist/helpers/inversion/common/types.d.ts +2 -0
  55. package/dist/helpers/inversion/common/types.d.ts.map +1 -1
  56. package/package.json +27 -27
@@ -3,7 +3,6 @@ import { TTableSchemaWithId } from '../../../base/models/common/types';
3
3
  import { AbstractRepository } from '../../../base/repositories/core/abstract';
4
4
  import { TAuthMode, TAuthStrategy } from '../../../components/auth/authenticate/common/constants';
5
5
  import { IAuthorizationSpec } from '../../../components/auth/authorize/common/types';
6
- import { z } from '@hono/zod-openapi';
7
6
  import { BaseHelper, TClass, TNullable, TResolver, ValueOrPromise } from '@venizia/ignis-helpers';
8
7
  import { Env, Schema } from 'hono';
9
8
  import { ICustomizableRoutes, TRouteContext } from '../common';
@@ -115,587 +114,7 @@ export declare class ControllerFactory extends BaseHelper {
115
114
  isConfigured: boolean;
116
115
  router: import("@hono/zod-openapi").OpenAPIHono<RouteEnv, RouteSchema, BasePath>;
117
116
  path: string;
118
- definitions: {
119
- COUNT: {
120
- method: "get";
121
- path: string;
122
- description: string;
123
- authenticate: {
124
- strategies?: TAuthStrategy[];
125
- mode?: TAuthMode;
126
- };
127
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
128
- request: {
129
- query: import("../../..").TAnyObjectSchema | z.ZodObject<{
130
- 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>>>]>>;
131
- }, z.core.$strip>;
132
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
133
- "x-request-id": z.ZodOptional<z.ZodString>;
134
- "x-request-channel": z.ZodOptional<z.ZodString>;
135
- "x-device-info": z.ZodOptional<z.ZodString>;
136
- }, z.core.$strip>;
137
- };
138
- responses: {
139
- 200: {
140
- description: string;
141
- content: {
142
- 'application/json': {
143
- schema: z.ZodObject<{
144
- count: z.ZodDefault<z.ZodNumber>;
145
- }, z.core.$strip>;
146
- };
147
- };
148
- required: boolean | undefined;
149
- } | {
150
- headers: import("../common").TResponseHeaders;
151
- description: string;
152
- content: {
153
- 'application/json': {
154
- schema: z.ZodObject<{
155
- count: z.ZodDefault<z.ZodNumber>;
156
- }, z.core.$strip>;
157
- };
158
- };
159
- required: boolean | undefined;
160
- };
161
- "4xx | 5xx": {
162
- description: string;
163
- content: {
164
- 'application/json': {
165
- schema: z.ZodObject<{
166
- name: z.ZodOptional<z.ZodString>;
167
- statusCode: z.ZodOptional<z.ZodNumber>;
168
- messageCode: z.ZodOptional<z.ZodString>;
169
- message: z.ZodString;
170
- }, z.core.$catchall<z.ZodAny>>;
171
- };
172
- };
173
- required: boolean | undefined;
174
- };
175
- };
176
- };
177
- FIND: {
178
- method: "get";
179
- path: string;
180
- description: string;
181
- authenticate: {
182
- strategies?: TAuthStrategy[];
183
- mode?: TAuthMode;
184
- };
185
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
186
- request: {
187
- query: import("../../..").TAnyObjectSchema | z.ZodObject<{
188
- filter: any;
189
- }, z.core.$strip>;
190
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
191
- "x-request-id": z.ZodOptional<z.ZodString>;
192
- "x-request-channel": z.ZodOptional<z.ZodString>;
193
- "x-device-info": z.ZodOptional<z.ZodString>;
194
- "x-request-count": z.ZodOptional<z.ZodString>;
195
- }, z.core.$strip>;
196
- };
197
- responses: {
198
- 200: {
199
- description: string;
200
- content: {
201
- 'application/json': {
202
- schema: z.ZodUnion<readonly [z.ZodObject<{
203
- count: z.ZodDefault<z.ZodNumber>;
204
- 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>>;
205
- }, 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
- };
207
- };
208
- required: boolean | undefined;
209
- } | {
210
- headers: import("../common").TResponseHeaders;
211
- description: string;
212
- content: {
213
- 'application/json': {
214
- schema: z.ZodUnion<readonly [z.ZodObject<{
215
- count: z.ZodDefault<z.ZodNumber>;
216
- 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>>;
217
- }, 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>>]>;
218
- };
219
- };
220
- required: boolean | undefined;
221
- };
222
- "4xx | 5xx": {
223
- description: string;
224
- content: {
225
- 'application/json': {
226
- schema: z.ZodObject<{
227
- name: z.ZodOptional<z.ZodString>;
228
- statusCode: z.ZodOptional<z.ZodNumber>;
229
- messageCode: z.ZodOptional<z.ZodString>;
230
- message: z.ZodString;
231
- }, z.core.$catchall<z.ZodAny>>;
232
- };
233
- };
234
- required: boolean | undefined;
235
- };
236
- };
237
- };
238
- FIND_BY_ID: {
239
- method: "get";
240
- path: string;
241
- description: string;
242
- authenticate: {
243
- strategies?: TAuthStrategy[];
244
- mode?: TAuthMode;
245
- };
246
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
247
- request: {
248
- params: z.ZodObject<{
249
- id: z.ZodNumber;
250
- }, z.core.$strip> | z.ZodObject<{
251
- id: z.ZodString;
252
- }, z.core.$strip>;
253
- query: import("../../..").TAnyObjectSchema | z.ZodObject<{
254
- filter: any;
255
- }, z.core.$strip>;
256
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
257
- "x-request-id": z.ZodOptional<z.ZodString>;
258
- "x-request-channel": z.ZodOptional<z.ZodString>;
259
- "x-device-info": z.ZodOptional<z.ZodString>;
260
- "x-request-count": z.ZodOptional<z.ZodString>;
261
- }, z.core.$strip>;
262
- };
263
- responses: {
264
- 200: {
265
- description: string;
266
- content: {
267
- 'application/json': {
268
- schema: z.ZodUnion<readonly [z.ZodObject<{
269
- count: z.ZodDefault<z.ZodNumber>;
270
- 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>;
271
- }, 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>]>;
272
- };
273
- };
274
- required: boolean | undefined;
275
- } | {
276
- headers: import("../common").TResponseHeaders;
277
- description: string;
278
- content: {
279
- 'application/json': {
280
- schema: z.ZodUnion<readonly [z.ZodObject<{
281
- count: z.ZodDefault<z.ZodNumber>;
282
- 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>;
283
- }, 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>]>;
284
- };
285
- };
286
- required: boolean | undefined;
287
- };
288
- "4xx | 5xx": {
289
- description: string;
290
- content: {
291
- 'application/json': {
292
- schema: z.ZodObject<{
293
- name: z.ZodOptional<z.ZodString>;
294
- statusCode: z.ZodOptional<z.ZodNumber>;
295
- messageCode: z.ZodOptional<z.ZodString>;
296
- message: z.ZodString;
297
- }, z.core.$catchall<z.ZodAny>>;
298
- };
299
- };
300
- required: boolean | undefined;
301
- };
302
- };
303
- };
304
- FIND_ONE: {
305
- method: "get";
306
- path: string;
307
- description: string;
308
- authenticate: {
309
- strategies?: TAuthStrategy[];
310
- mode?: TAuthMode;
311
- };
312
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
313
- request: {
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
- 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
- CREATE: {
366
- method: "post";
367
- path: string;
368
- description: string;
369
- authenticate: {
370
- strategies?: TAuthStrategy[];
371
- mode?: TAuthMode;
372
- };
373
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
374
- request: {
375
- body: {
376
- description: string;
377
- content: {
378
- 'application/json': {
379
- schema: import("../../..").TAnyObjectSchema;
380
- };
381
- };
382
- required: boolean | undefined;
383
- };
384
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
385
- "x-request-id": z.ZodOptional<z.ZodString>;
386
- "x-request-channel": z.ZodOptional<z.ZodString>;
387
- "x-device-info": z.ZodOptional<z.ZodString>;
388
- "x-request-count": z.ZodOptional<z.ZodString>;
389
- }, z.core.$strip>;
390
- };
391
- responses: {
392
- 200: {
393
- description: string;
394
- content: {
395
- 'application/json': {
396
- schema: z.ZodUnion<readonly [z.ZodObject<{
397
- count: z.ZodDefault<z.ZodNumber>;
398
- 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>;
399
- }, 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>]>;
400
- };
401
- };
402
- required: boolean | undefined;
403
- } | {
404
- headers: import("../common").TResponseHeaders;
405
- description: string;
406
- content: {
407
- 'application/json': {
408
- schema: z.ZodUnion<readonly [z.ZodObject<{
409
- count: z.ZodDefault<z.ZodNumber>;
410
- 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>;
411
- }, 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>]>;
412
- };
413
- };
414
- required: boolean | undefined;
415
- };
416
- "4xx | 5xx": {
417
- description: string;
418
- content: {
419
- 'application/json': {
420
- schema: z.ZodObject<{
421
- name: z.ZodOptional<z.ZodString>;
422
- statusCode: z.ZodOptional<z.ZodNumber>;
423
- messageCode: z.ZodOptional<z.ZodString>;
424
- message: z.ZodString;
425
- }, z.core.$catchall<z.ZodAny>>;
426
- };
427
- };
428
- required: boolean | undefined;
429
- };
430
- };
431
- };
432
- UPDATE_BY_ID: {
433
- method: "patch";
434
- path: string;
435
- description: string;
436
- authenticate: {
437
- strategies?: TAuthStrategy[];
438
- mode?: TAuthMode;
439
- };
440
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
441
- request: {
442
- params: z.ZodObject<{
443
- id: z.ZodNumber;
444
- }, z.core.$strip> | z.ZodObject<{
445
- id: z.ZodString;
446
- }, z.core.$strip>;
447
- body: {
448
- description: string;
449
- content: {
450
- 'application/json': {
451
- schema: import("../../..").TAnyObjectSchema;
452
- };
453
- };
454
- required: boolean | undefined;
455
- };
456
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
457
- "x-request-id": z.ZodOptional<z.ZodString>;
458
- "x-request-channel": z.ZodOptional<z.ZodString>;
459
- "x-device-info": z.ZodOptional<z.ZodString>;
460
- "x-request-count": z.ZodOptional<z.ZodString>;
461
- }, z.core.$strip>;
462
- };
463
- responses: {
464
- 200: {
465
- description: string;
466
- content: {
467
- 'application/json': {
468
- schema: z.ZodUnion<readonly [z.ZodObject<{
469
- count: z.ZodDefault<z.ZodNumber>;
470
- 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>;
471
- }, 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>]>;
472
- };
473
- };
474
- required: boolean | undefined;
475
- } | {
476
- headers: import("../common").TResponseHeaders;
477
- description: string;
478
- content: {
479
- 'application/json': {
480
- schema: z.ZodUnion<readonly [z.ZodObject<{
481
- count: z.ZodDefault<z.ZodNumber>;
482
- 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>;
483
- }, 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>]>;
484
- };
485
- };
486
- required: boolean | undefined;
487
- };
488
- "4xx | 5xx": {
489
- description: string;
490
- content: {
491
- 'application/json': {
492
- schema: z.ZodObject<{
493
- name: z.ZodOptional<z.ZodString>;
494
- statusCode: z.ZodOptional<z.ZodNumber>;
495
- messageCode: z.ZodOptional<z.ZodString>;
496
- message: z.ZodString;
497
- }, z.core.$catchall<z.ZodAny>>;
498
- };
499
- };
500
- required: boolean | undefined;
501
- };
502
- };
503
- };
504
- UPDATE_BY: {
505
- method: "patch";
506
- path: string;
507
- description: string;
508
- authenticate: {
509
- strategies?: TAuthStrategy[];
510
- mode?: TAuthMode;
511
- };
512
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
513
- request: {
514
- query: import("../../..").TAnyObjectSchema | z.ZodObject<{
515
- 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>>>]>;
516
- }, z.core.$strip>;
517
- body: {
518
- description: string;
519
- content: {
520
- 'application/json': {
521
- schema: import("../../..").TAnyObjectSchema;
522
- };
523
- };
524
- required: boolean | undefined;
525
- };
526
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
527
- "x-request-id": z.ZodOptional<z.ZodString>;
528
- "x-request-channel": z.ZodOptional<z.ZodString>;
529
- "x-device-info": z.ZodOptional<z.ZodString>;
530
- "x-request-count": z.ZodOptional<z.ZodString>;
531
- }, z.core.$strip>;
532
- };
533
- responses: {
534
- 200: {
535
- description: string;
536
- content: {
537
- 'application/json': {
538
- schema: z.ZodUnion<readonly [z.ZodObject<{
539
- count: z.ZodDefault<z.ZodNumber>;
540
- 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>>;
541
- }, 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>>]>;
542
- };
543
- };
544
- required: boolean | undefined;
545
- } | {
546
- headers: import("../common").TResponseHeaders;
547
- description: string;
548
- content: {
549
- 'application/json': {
550
- schema: z.ZodUnion<readonly [z.ZodObject<{
551
- count: z.ZodDefault<z.ZodNumber>;
552
- 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>>;
553
- }, 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>>]>;
554
- };
555
- };
556
- required: boolean | undefined;
557
- };
558
- "4xx | 5xx": {
559
- description: string;
560
- content: {
561
- 'application/json': {
562
- schema: z.ZodObject<{
563
- name: z.ZodOptional<z.ZodString>;
564
- statusCode: z.ZodOptional<z.ZodNumber>;
565
- messageCode: z.ZodOptional<z.ZodString>;
566
- message: z.ZodString;
567
- }, z.core.$catchall<z.ZodAny>>;
568
- };
569
- };
570
- required: boolean | undefined;
571
- };
572
- };
573
- };
574
- DELETE_BY_ID: {
575
- method: "delete";
576
- path: string;
577
- description: string;
578
- authenticate: {
579
- strategies?: TAuthStrategy[];
580
- mode?: TAuthMode;
581
- };
582
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
583
- request: {
584
- params: z.ZodObject<{
585
- id: z.ZodNumber;
586
- }, z.core.$strip> | z.ZodObject<{
587
- id: z.ZodString;
588
- }, z.core.$strip>;
589
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
590
- "x-request-id": z.ZodOptional<z.ZodString>;
591
- "x-request-channel": z.ZodOptional<z.ZodString>;
592
- "x-device-info": z.ZodOptional<z.ZodString>;
593
- "x-request-count": z.ZodOptional<z.ZodString>;
594
- }, z.core.$strip>;
595
- };
596
- responses: {
597
- 200: {
598
- description: string;
599
- content: {
600
- 'application/json': {
601
- schema: z.ZodUnion<readonly [z.ZodObject<{
602
- count: z.ZodDefault<z.ZodNumber>;
603
- 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>;
604
- }, 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>]>;
605
- };
606
- };
607
- required: boolean | undefined;
608
- } | {
609
- headers: import("../common").TResponseHeaders;
610
- description: string;
611
- content: {
612
- 'application/json': {
613
- schema: z.ZodUnion<readonly [z.ZodObject<{
614
- count: z.ZodDefault<z.ZodNumber>;
615
- 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>;
616
- }, 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>]>;
617
- };
618
- };
619
- required: boolean | undefined;
620
- };
621
- "4xx | 5xx": {
622
- description: string;
623
- content: {
624
- 'application/json': {
625
- schema: z.ZodObject<{
626
- name: z.ZodOptional<z.ZodString>;
627
- statusCode: z.ZodOptional<z.ZodNumber>;
628
- messageCode: z.ZodOptional<z.ZodString>;
629
- message: z.ZodString;
630
- }, z.core.$catchall<z.ZodAny>>;
631
- };
632
- };
633
- required: boolean | undefined;
634
- };
635
- };
636
- };
637
- DELETE_BY: {
638
- method: "delete";
639
- path: string;
640
- description: string;
641
- authenticate: {
642
- strategies?: TAuthStrategy[];
643
- mode?: TAuthMode;
644
- };
645
- authorize: IAuthorizationSpec<Env, string, string> | IAuthorizationSpec<Env, string, string>[] | undefined;
646
- request: {
647
- query: import("../../..").TAnyObjectSchema | z.ZodObject<{
648
- 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>>>]>;
649
- }, z.core.$strip>;
650
- headers: import("../../..").TAnyObjectSchema | z.ZodObject<{
651
- "x-request-id": z.ZodOptional<z.ZodString>;
652
- "x-request-channel": z.ZodOptional<z.ZodString>;
653
- "x-device-info": z.ZodOptional<z.ZodString>;
654
- "x-request-count": z.ZodOptional<z.ZodString>;
655
- }, z.core.$strip>;
656
- };
657
- responses: {
658
- 200: {
659
- description: string;
660
- content: {
661
- 'application/json': {
662
- schema: z.ZodUnion<readonly [z.ZodObject<{
663
- count: z.ZodDefault<z.ZodNumber>;
664
- 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>>;
665
- }, 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>>]>;
666
- };
667
- };
668
- required: boolean | undefined;
669
- } | {
670
- headers: import("../common").TResponseHeaders;
671
- description: string;
672
- content: {
673
- 'application/json': {
674
- schema: z.ZodUnion<readonly [z.ZodObject<{
675
- count: z.ZodDefault<z.ZodNumber>;
676
- 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>>;
677
- }, 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>>]>;
678
- };
679
- };
680
- required: boolean | undefined;
681
- };
682
- "4xx | 5xx": {
683
- description: string;
684
- content: {
685
- 'application/json': {
686
- schema: z.ZodObject<{
687
- name: z.ZodOptional<z.ZodString>;
688
- statusCode: z.ZodOptional<z.ZodNumber>;
689
- messageCode: z.ZodOptional<z.ZodString>;
690
- message: z.ZodString;
691
- }, z.core.$catchall<z.ZodAny>>;
692
- };
693
- };
694
- required: boolean | undefined;
695
- };
696
- };
697
- };
698
- };
117
+ definitions: Record<string, import("../common").IAuthRouteConfig>;
699
118
  getRouter(): import("@hono/zod-openapi").OpenAPIHono<RouteEnv, RouteSchema, BasePath>;
700
119
  registerRoutesFromRegistry(): void;
701
120
  configure(opts?: ConfigurableOptions | undefined): Promise<import("@hono/zod-openapi").OpenAPIHono<RouteEnv, RouteSchema, BasePath>>;