@webstir-io/module-contract 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -184,6 +184,16 @@ export declare const moduleErrorSchema: z.ZodObject<{
184
184
  export type ModuleError = z.infer<typeof moduleErrorSchema>;
185
185
  export declare const httpMethodSchema: z.ZodEnum<["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]>;
186
186
  export type HttpMethod = z.infer<typeof httpMethodSchema>;
187
+ export declare const routeInteractionKindSchema: z.ZodEnum<["navigation", "mutation"]>;
188
+ export type RouteInteractionKind = z.infer<typeof routeInteractionKindSchema>;
189
+ export declare const formEncodingSchema: z.ZodEnum<["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]>;
190
+ export type FormEncoding = z.infer<typeof formEncodingSchema>;
191
+ export declare const requestHookPhaseSchema: z.ZodEnum<["beforeAuth", "beforeHandler", "afterHandler"]>;
192
+ export type RequestHookPhase = z.infer<typeof requestHookPhaseSchema>;
193
+ export declare const fragmentUpdateModeSchema: z.ZodEnum<["replace", "append", "prepend"]>;
194
+ export type FragmentUpdateMode = z.infer<typeof fragmentUpdateModeSchema>;
195
+ export declare const redirectStatusSchema: z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>;
196
+ export type RedirectStatus = z.infer<typeof redirectStatusSchema>;
187
197
  export declare const schemaReferenceSchema: z.ZodObject<{
188
198
  kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
189
199
  name: z.ZodString;
@@ -198,6 +208,34 @@ export declare const schemaReferenceSchema: z.ZodObject<{
198
208
  source?: string | undefined;
199
209
  }>;
200
210
  export type SchemaReference = z.infer<typeof schemaReferenceSchema>;
211
+ export declare const requestHookReferenceSchema: z.ZodObject<{
212
+ id: z.ZodString;
213
+ }, "strict", z.ZodTypeAny, {
214
+ id: string;
215
+ }, {
216
+ id: string;
217
+ }>;
218
+ export type RequestHookReference = z.infer<typeof requestHookReferenceSchema>;
219
+ export declare const requestHookDefinitionSchema: z.ZodObject<{
220
+ id: z.ZodString;
221
+ phase: z.ZodEnum<["beforeAuth", "beforeHandler", "afterHandler"]>;
222
+ order: z.ZodNumber;
223
+ summary: z.ZodOptional<z.ZodString>;
224
+ description: z.ZodOptional<z.ZodString>;
225
+ }, "strict", z.ZodTypeAny, {
226
+ id: string;
227
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
228
+ order: number;
229
+ summary?: string | undefined;
230
+ description?: string | undefined;
231
+ }, {
232
+ id: string;
233
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
234
+ order: number;
235
+ summary?: string | undefined;
236
+ description?: string | undefined;
237
+ }>;
238
+ export type RequestHookDefinition = z.infer<typeof requestHookDefinitionSchema>;
201
239
  export declare const routeInputSchema: z.ZodObject<{
202
240
  params: z.ZodOptional<z.ZodOptional<z.ZodObject<{
203
241
  kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
@@ -295,7 +333,169 @@ export declare const routeInputSchema: z.ZodObject<{
295
333
  } | undefined;
296
334
  }>;
297
335
  export type RouteInputDefinition = z.infer<typeof routeInputSchema>;
298
- export declare const routeOutputSchema: z.ZodObject<{
336
+ export declare const sessionAccessModeSchema: z.ZodEnum<["optional", "required"]>;
337
+ export type SessionAccessMode = z.infer<typeof sessionAccessModeSchema>;
338
+ export declare const routeSessionSchema: z.ZodObject<{
339
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
340
+ write: z.ZodOptional<z.ZodBoolean>;
341
+ }, "strict", z.ZodTypeAny, {
342
+ mode?: "optional" | "required" | undefined;
343
+ write?: boolean | undefined;
344
+ }, {
345
+ mode?: "optional" | "required" | undefined;
346
+ write?: boolean | undefined;
347
+ }>;
348
+ export type RouteSessionDefinition = z.infer<typeof routeSessionSchema>;
349
+ export declare const flashLevelSchema: z.ZodEnum<["info", "success", "warning", "error"]>;
350
+ export type FlashLevel = z.infer<typeof flashLevelSchema>;
351
+ export declare const flashPublishConditionSchema: z.ZodEnum<["always", "success", "error"]>;
352
+ export type FlashPublishCondition = z.infer<typeof flashPublishConditionSchema>;
353
+ export declare const routeFlashMessageSchema: z.ZodObject<{
354
+ key: z.ZodString;
355
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
356
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
357
+ }, "strict", z.ZodTypeAny, {
358
+ key: string;
359
+ level?: "info" | "success" | "warning" | "error" | undefined;
360
+ when?: "success" | "error" | "always" | undefined;
361
+ }, {
362
+ key: string;
363
+ level?: "info" | "success" | "warning" | "error" | undefined;
364
+ when?: "success" | "error" | "always" | undefined;
365
+ }>;
366
+ export type RouteFlashMessageDefinition = z.infer<typeof routeFlashMessageSchema>;
367
+ export declare const routeFlashSchema: z.ZodObject<{
368
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ key: z.ZodString;
371
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
372
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
373
+ }, "strict", z.ZodTypeAny, {
374
+ key: string;
375
+ level?: "info" | "success" | "warning" | "error" | undefined;
376
+ when?: "success" | "error" | "always" | undefined;
377
+ }, {
378
+ key: string;
379
+ level?: "info" | "success" | "warning" | "error" | undefined;
380
+ when?: "success" | "error" | "always" | undefined;
381
+ }>, "many">>;
382
+ }, "strict", z.ZodTypeAny, {
383
+ consume?: string[] | undefined;
384
+ publish?: {
385
+ key: string;
386
+ level?: "info" | "success" | "warning" | "error" | undefined;
387
+ when?: "success" | "error" | "always" | undefined;
388
+ }[] | undefined;
389
+ }, {
390
+ consume?: string[] | undefined;
391
+ publish?: {
392
+ key: string;
393
+ level?: "info" | "success" | "warning" | "error" | undefined;
394
+ when?: "success" | "error" | "always" | undefined;
395
+ }[] | undefined;
396
+ }>;
397
+ export type RouteFlashDefinition = z.infer<typeof routeFlashSchema>;
398
+ export declare const routeFormSchema: z.ZodObject<{
399
+ contentType: z.ZodOptional<z.ZodEnum<["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]>>;
400
+ csrf: z.ZodOptional<z.ZodBoolean>;
401
+ session: z.ZodOptional<z.ZodObject<{
402
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
403
+ write: z.ZodOptional<z.ZodBoolean>;
404
+ }, "strict", z.ZodTypeAny, {
405
+ mode?: "optional" | "required" | undefined;
406
+ write?: boolean | undefined;
407
+ }, {
408
+ mode?: "optional" | "required" | undefined;
409
+ write?: boolean | undefined;
410
+ }>>;
411
+ flash: z.ZodOptional<z.ZodObject<{
412
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
413
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
414
+ key: z.ZodString;
415
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
416
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
417
+ }, "strict", z.ZodTypeAny, {
418
+ key: string;
419
+ level?: "info" | "success" | "warning" | "error" | undefined;
420
+ when?: "success" | "error" | "always" | undefined;
421
+ }, {
422
+ key: string;
423
+ level?: "info" | "success" | "warning" | "error" | undefined;
424
+ when?: "success" | "error" | "always" | undefined;
425
+ }>, "many">>;
426
+ }, "strict", z.ZodTypeAny, {
427
+ consume?: string[] | undefined;
428
+ publish?: {
429
+ key: string;
430
+ level?: "info" | "success" | "warning" | "error" | undefined;
431
+ when?: "success" | "error" | "always" | undefined;
432
+ }[] | undefined;
433
+ }, {
434
+ consume?: string[] | undefined;
435
+ publish?: {
436
+ key: string;
437
+ level?: "info" | "success" | "warning" | "error" | undefined;
438
+ when?: "success" | "error" | "always" | undefined;
439
+ }[] | undefined;
440
+ }>>;
441
+ }, "strict", z.ZodTypeAny, {
442
+ session?: {
443
+ mode?: "optional" | "required" | undefined;
444
+ write?: boolean | undefined;
445
+ } | undefined;
446
+ flash?: {
447
+ consume?: string[] | undefined;
448
+ publish?: {
449
+ key: string;
450
+ level?: "info" | "success" | "warning" | "error" | undefined;
451
+ when?: "success" | "error" | "always" | undefined;
452
+ }[] | undefined;
453
+ } | undefined;
454
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
455
+ csrf?: boolean | undefined;
456
+ }, {
457
+ session?: {
458
+ mode?: "optional" | "required" | undefined;
459
+ write?: boolean | undefined;
460
+ } | undefined;
461
+ flash?: {
462
+ consume?: string[] | undefined;
463
+ publish?: {
464
+ key: string;
465
+ level?: "info" | "success" | "warning" | "error" | undefined;
466
+ when?: "success" | "error" | "always" | undefined;
467
+ }[] | undefined;
468
+ } | undefined;
469
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
470
+ csrf?: boolean | undefined;
471
+ }>;
472
+ export type RouteFormDefinition = z.infer<typeof routeFormSchema>;
473
+ export declare const routeFragmentSchema: z.ZodObject<{
474
+ target: z.ZodString;
475
+ selector: z.ZodOptional<z.ZodString>;
476
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
477
+ }, "strict", z.ZodTypeAny, {
478
+ target: string;
479
+ mode?: "replace" | "append" | "prepend" | undefined;
480
+ selector?: string | undefined;
481
+ }, {
482
+ target: string;
483
+ mode?: "replace" | "append" | "prepend" | undefined;
484
+ selector?: string | undefined;
485
+ }>;
486
+ export type RouteFragmentDefinition = z.infer<typeof routeFragmentSchema>;
487
+ export declare const routeRedirectSchema: z.ZodObject<{
488
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
489
+ location: z.ZodOptional<z.ZodString>;
490
+ }, "strict", z.ZodTypeAny, {
491
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
492
+ location?: string | undefined;
493
+ }, {
494
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
495
+ location?: string | undefined;
496
+ }>;
497
+ export type RouteRedirectDefinition = z.infer<typeof routeRedirectSchema>;
498
+ export declare const routeBodyOutputSchema: z.ZodObject<{
299
499
  body: z.ZodObject<{
300
500
  kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
301
501
  name: z.ZodString;
@@ -323,7 +523,7 @@ export declare const routeOutputSchema: z.ZodObject<{
323
523
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
324
524
  source?: string | undefined;
325
525
  }>>;
326
- }, "strip", z.ZodTypeAny, {
526
+ }, "strict", z.ZodTypeAny, {
327
527
  body: {
328
528
  kind: "zod" | "json-schema" | "ts-rest";
329
529
  name: string;
@@ -348,180 +548,1697 @@ export declare const routeOutputSchema: z.ZodObject<{
348
548
  source?: string | undefined;
349
549
  } | undefined;
350
550
  }>;
351
- export type RouteOutputDefinition = z.infer<typeof routeOutputSchema>;
352
- export declare const routeDefinitionSchema: z.ZodObject<{
353
- name: z.ZodString;
354
- method: z.ZodEnum<["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]>;
355
- path: z.ZodString;
356
- summary: z.ZodOptional<z.ZodString>;
357
- description: z.ZodOptional<z.ZodString>;
358
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
- input: z.ZodOptional<z.ZodObject<{
360
- params: z.ZodOptional<z.ZodOptional<z.ZodObject<{
361
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
362
- name: z.ZodString;
363
- source: z.ZodOptional<z.ZodString>;
364
- }, "strip", z.ZodTypeAny, {
365
- kind: "zod" | "json-schema" | "ts-rest";
366
- name: string;
367
- source?: string | undefined;
368
- }, {
369
- name: string;
370
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
371
- source?: string | undefined;
372
- }>>>;
373
- query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
374
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
375
- name: z.ZodString;
376
- source: z.ZodOptional<z.ZodString>;
377
- }, "strip", z.ZodTypeAny, {
378
- kind: "zod" | "json-schema" | "ts-rest";
379
- name: string;
380
- source?: string | undefined;
381
- }, {
382
- name: string;
383
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
384
- source?: string | undefined;
385
- }>>>;
386
- body: z.ZodOptional<z.ZodOptional<z.ZodObject<{
387
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
388
- name: z.ZodString;
389
- source: z.ZodOptional<z.ZodString>;
390
- }, "strip", z.ZodTypeAny, {
391
- kind: "zod" | "json-schema" | "ts-rest";
392
- name: string;
393
- source?: string | undefined;
394
- }, {
395
- name: string;
396
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
397
- source?: string | undefined;
398
- }>>>;
399
- headers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
400
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
401
- name: z.ZodString;
402
- source: z.ZodOptional<z.ZodString>;
403
- }, "strip", z.ZodTypeAny, {
404
- kind: "zod" | "json-schema" | "ts-rest";
405
- name: string;
406
- source?: string | undefined;
407
- }, {
408
- name: string;
409
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
410
- source?: string | undefined;
411
- }>>>;
551
+ export type RouteBodyOutputDefinition = z.infer<typeof routeBodyOutputSchema>;
552
+ export declare const routeRedirectOutputSchema: z.ZodObject<{
553
+ redirect: z.ZodObject<{
554
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
555
+ location: z.ZodOptional<z.ZodString>;
412
556
  }, "strict", z.ZodTypeAny, {
413
- params?: {
414
- kind: "zod" | "json-schema" | "ts-rest";
415
- name: string;
416
- source?: string | undefined;
417
- } | undefined;
418
- query?: {
419
- kind: "zod" | "json-schema" | "ts-rest";
420
- name: string;
421
- source?: string | undefined;
422
- } | undefined;
423
- body?: {
424
- kind: "zod" | "json-schema" | "ts-rest";
425
- name: string;
426
- source?: string | undefined;
427
- } | undefined;
428
- headers?: {
429
- kind: "zod" | "json-schema" | "ts-rest";
430
- name: string;
431
- source?: string | undefined;
432
- } | undefined;
557
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
558
+ location?: string | undefined;
433
559
  }, {
434
- params?: {
435
- name: string;
436
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
437
- source?: string | undefined;
438
- } | undefined;
439
- query?: {
440
- name: string;
441
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
442
- source?: string | undefined;
443
- } | undefined;
444
- body?: {
445
- name: string;
446
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
447
- source?: string | undefined;
448
- } | undefined;
449
- headers?: {
450
- name: string;
451
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
452
- source?: string | undefined;
453
- } | undefined;
454
- }>>;
455
- output: z.ZodOptional<z.ZodObject<{
456
- body: z.ZodObject<{
457
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
458
- name: z.ZodString;
459
- source: z.ZodOptional<z.ZodString>;
460
- }, "strip", z.ZodTypeAny, {
461
- kind: "zod" | "json-schema" | "ts-rest";
462
- name: string;
463
- source?: string | undefined;
464
- }, {
465
- name: string;
466
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
467
- source?: string | undefined;
468
- }>;
469
- status: z.ZodOptional<z.ZodNumber>;
470
- headers: z.ZodOptional<z.ZodObject<{
471
- kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
472
- name: z.ZodString;
473
- source: z.ZodOptional<z.ZodString>;
474
- }, "strip", z.ZodTypeAny, {
475
- kind: "zod" | "json-schema" | "ts-rest";
476
- name: string;
477
- source?: string | undefined;
478
- }, {
479
- name: string;
480
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
481
- source?: string | undefined;
482
- }>>;
560
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
561
+ location?: string | undefined;
562
+ }>;
563
+ status: z.ZodOptional<z.ZodNumber>;
564
+ headers: z.ZodOptional<z.ZodObject<{
565
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
566
+ name: z.ZodString;
567
+ source: z.ZodOptional<z.ZodString>;
483
568
  }, "strip", z.ZodTypeAny, {
484
- body: {
485
- kind: "zod" | "json-schema" | "ts-rest";
486
- name: string;
487
- source?: string | undefined;
488
- };
489
- status?: number | undefined;
490
- headers?: {
491
- kind: "zod" | "json-schema" | "ts-rest";
492
- name: string;
493
- source?: string | undefined;
494
- } | undefined;
569
+ kind: "zod" | "json-schema" | "ts-rest";
570
+ name: string;
571
+ source?: string | undefined;
495
572
  }, {
496
- body: {
497
- name: string;
498
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
499
- source?: string | undefined;
500
- };
501
- status?: number | undefined;
502
- headers?: {
503
- name: string;
504
- kind?: "zod" | "json-schema" | "ts-rest" | undefined;
505
- source?: string | undefined;
506
- } | undefined;
573
+ name: string;
574
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
575
+ source?: string | undefined;
507
576
  }>>;
508
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
509
- code: z.ZodEnum<["validation", "auth", "not_found", "domain", "conflict", "internal"]>;
510
- message: z.ZodString;
511
- details: z.ZodOptional<z.ZodUnknown>;
512
- cause: z.ZodOptional<z.ZodUnknown>;
513
- correlationId: z.ZodOptional<z.ZodString>;
577
+ }, "strict", z.ZodTypeAny, {
578
+ redirect: {
579
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
580
+ location?: string | undefined;
581
+ };
582
+ status?: number | undefined;
583
+ headers?: {
584
+ kind: "zod" | "json-schema" | "ts-rest";
585
+ name: string;
586
+ source?: string | undefined;
587
+ } | undefined;
588
+ }, {
589
+ redirect: {
590
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
591
+ location?: string | undefined;
592
+ };
593
+ status?: number | undefined;
594
+ headers?: {
595
+ name: string;
596
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
597
+ source?: string | undefined;
598
+ } | undefined;
599
+ }>;
600
+ export type RouteRedirectOutputDefinition = z.infer<typeof routeRedirectOutputSchema>;
601
+ export declare const routeFragmentOutputSchema: z.ZodObject<{
602
+ body: z.ZodObject<{
603
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
604
+ name: z.ZodString;
605
+ source: z.ZodOptional<z.ZodString>;
514
606
  }, "strip", z.ZodTypeAny, {
515
- code: "validation" | "auth" | "not_found" | "domain" | "conflict" | "internal";
516
- message: string;
517
- details?: unknown;
518
- cause?: unknown;
519
- correlationId?: string | undefined;
607
+ kind: "zod" | "json-schema" | "ts-rest";
608
+ name: string;
609
+ source?: string | undefined;
520
610
  }, {
521
- code: "validation" | "auth" | "not_found" | "domain" | "conflict" | "internal";
522
- message: string;
523
- details?: unknown;
524
- cause?: unknown;
611
+ name: string;
612
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
613
+ source?: string | undefined;
614
+ }>;
615
+ fragment: z.ZodObject<{
616
+ target: z.ZodString;
617
+ selector: z.ZodOptional<z.ZodString>;
618
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
619
+ }, "strict", z.ZodTypeAny, {
620
+ target: string;
621
+ mode?: "replace" | "append" | "prepend" | undefined;
622
+ selector?: string | undefined;
623
+ }, {
624
+ target: string;
625
+ mode?: "replace" | "append" | "prepend" | undefined;
626
+ selector?: string | undefined;
627
+ }>;
628
+ status: z.ZodOptional<z.ZodNumber>;
629
+ headers: z.ZodOptional<z.ZodObject<{
630
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
631
+ name: z.ZodString;
632
+ source: z.ZodOptional<z.ZodString>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ kind: "zod" | "json-schema" | "ts-rest";
635
+ name: string;
636
+ source?: string | undefined;
637
+ }, {
638
+ name: string;
639
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
640
+ source?: string | undefined;
641
+ }>>;
642
+ }, "strict", z.ZodTypeAny, {
643
+ body: {
644
+ kind: "zod" | "json-schema" | "ts-rest";
645
+ name: string;
646
+ source?: string | undefined;
647
+ };
648
+ fragment: {
649
+ target: string;
650
+ mode?: "replace" | "append" | "prepend" | undefined;
651
+ selector?: string | undefined;
652
+ };
653
+ status?: number | undefined;
654
+ headers?: {
655
+ kind: "zod" | "json-schema" | "ts-rest";
656
+ name: string;
657
+ source?: string | undefined;
658
+ } | undefined;
659
+ }, {
660
+ body: {
661
+ name: string;
662
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
663
+ source?: string | undefined;
664
+ };
665
+ fragment: {
666
+ target: string;
667
+ mode?: "replace" | "append" | "prepend" | undefined;
668
+ selector?: string | undefined;
669
+ };
670
+ status?: number | undefined;
671
+ headers?: {
672
+ name: string;
673
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
674
+ source?: string | undefined;
675
+ } | undefined;
676
+ }>;
677
+ export type RouteFragmentOutputDefinition = z.infer<typeof routeFragmentOutputSchema>;
678
+ export declare const routeOutputVariantSchema: z.ZodUnion<[z.ZodObject<{
679
+ body: z.ZodObject<{
680
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
681
+ name: z.ZodString;
682
+ source: z.ZodOptional<z.ZodString>;
683
+ }, "strip", z.ZodTypeAny, {
684
+ kind: "zod" | "json-schema" | "ts-rest";
685
+ name: string;
686
+ source?: string | undefined;
687
+ }, {
688
+ name: string;
689
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
690
+ source?: string | undefined;
691
+ }>;
692
+ status: z.ZodOptional<z.ZodNumber>;
693
+ headers: z.ZodOptional<z.ZodObject<{
694
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
695
+ name: z.ZodString;
696
+ source: z.ZodOptional<z.ZodString>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ kind: "zod" | "json-schema" | "ts-rest";
699
+ name: string;
700
+ source?: string | undefined;
701
+ }, {
702
+ name: string;
703
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
704
+ source?: string | undefined;
705
+ }>>;
706
+ }, "strict", z.ZodTypeAny, {
707
+ body: {
708
+ kind: "zod" | "json-schema" | "ts-rest";
709
+ name: string;
710
+ source?: string | undefined;
711
+ };
712
+ status?: number | undefined;
713
+ headers?: {
714
+ kind: "zod" | "json-schema" | "ts-rest";
715
+ name: string;
716
+ source?: string | undefined;
717
+ } | undefined;
718
+ }, {
719
+ body: {
720
+ name: string;
721
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
722
+ source?: string | undefined;
723
+ };
724
+ status?: number | undefined;
725
+ headers?: {
726
+ name: string;
727
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
728
+ source?: string | undefined;
729
+ } | undefined;
730
+ }>, z.ZodObject<{
731
+ redirect: z.ZodObject<{
732
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
733
+ location: z.ZodOptional<z.ZodString>;
734
+ }, "strict", z.ZodTypeAny, {
735
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
736
+ location?: string | undefined;
737
+ }, {
738
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
739
+ location?: string | undefined;
740
+ }>;
741
+ status: z.ZodOptional<z.ZodNumber>;
742
+ headers: z.ZodOptional<z.ZodObject<{
743
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
744
+ name: z.ZodString;
745
+ source: z.ZodOptional<z.ZodString>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ kind: "zod" | "json-schema" | "ts-rest";
748
+ name: string;
749
+ source?: string | undefined;
750
+ }, {
751
+ name: string;
752
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
753
+ source?: string | undefined;
754
+ }>>;
755
+ }, "strict", z.ZodTypeAny, {
756
+ redirect: {
757
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
758
+ location?: string | undefined;
759
+ };
760
+ status?: number | undefined;
761
+ headers?: {
762
+ kind: "zod" | "json-schema" | "ts-rest";
763
+ name: string;
764
+ source?: string | undefined;
765
+ } | undefined;
766
+ }, {
767
+ redirect: {
768
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
769
+ location?: string | undefined;
770
+ };
771
+ status?: number | undefined;
772
+ headers?: {
773
+ name: string;
774
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
775
+ source?: string | undefined;
776
+ } | undefined;
777
+ }>, z.ZodObject<{
778
+ body: z.ZodObject<{
779
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
780
+ name: z.ZodString;
781
+ source: z.ZodOptional<z.ZodString>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ kind: "zod" | "json-schema" | "ts-rest";
784
+ name: string;
785
+ source?: string | undefined;
786
+ }, {
787
+ name: string;
788
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
789
+ source?: string | undefined;
790
+ }>;
791
+ fragment: z.ZodObject<{
792
+ target: z.ZodString;
793
+ selector: z.ZodOptional<z.ZodString>;
794
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
795
+ }, "strict", z.ZodTypeAny, {
796
+ target: string;
797
+ mode?: "replace" | "append" | "prepend" | undefined;
798
+ selector?: string | undefined;
799
+ }, {
800
+ target: string;
801
+ mode?: "replace" | "append" | "prepend" | undefined;
802
+ selector?: string | undefined;
803
+ }>;
804
+ status: z.ZodOptional<z.ZodNumber>;
805
+ headers: z.ZodOptional<z.ZodObject<{
806
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
807
+ name: z.ZodString;
808
+ source: z.ZodOptional<z.ZodString>;
809
+ }, "strip", z.ZodTypeAny, {
810
+ kind: "zod" | "json-schema" | "ts-rest";
811
+ name: string;
812
+ source?: string | undefined;
813
+ }, {
814
+ name: string;
815
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
816
+ source?: string | undefined;
817
+ }>>;
818
+ }, "strict", z.ZodTypeAny, {
819
+ body: {
820
+ kind: "zod" | "json-schema" | "ts-rest";
821
+ name: string;
822
+ source?: string | undefined;
823
+ };
824
+ fragment: {
825
+ target: string;
826
+ mode?: "replace" | "append" | "prepend" | undefined;
827
+ selector?: string | undefined;
828
+ };
829
+ status?: number | undefined;
830
+ headers?: {
831
+ kind: "zod" | "json-schema" | "ts-rest";
832
+ name: string;
833
+ source?: string | undefined;
834
+ } | undefined;
835
+ }, {
836
+ body: {
837
+ name: string;
838
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
839
+ source?: string | undefined;
840
+ };
841
+ fragment: {
842
+ target: string;
843
+ mode?: "replace" | "append" | "prepend" | undefined;
844
+ selector?: string | undefined;
845
+ };
846
+ status?: number | undefined;
847
+ headers?: {
848
+ name: string;
849
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
850
+ source?: string | undefined;
851
+ } | undefined;
852
+ }>]>;
853
+ export type RouteOutputVariantDefinition = z.infer<typeof routeOutputVariantSchema>;
854
+ export declare const routeOutputResponsesSchema: z.ZodObject<{
855
+ responses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
856
+ body: z.ZodObject<{
857
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
858
+ name: z.ZodString;
859
+ source: z.ZodOptional<z.ZodString>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ kind: "zod" | "json-schema" | "ts-rest";
862
+ name: string;
863
+ source?: string | undefined;
864
+ }, {
865
+ name: string;
866
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
867
+ source?: string | undefined;
868
+ }>;
869
+ status: z.ZodOptional<z.ZodNumber>;
870
+ headers: z.ZodOptional<z.ZodObject<{
871
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
872
+ name: z.ZodString;
873
+ source: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ kind: "zod" | "json-schema" | "ts-rest";
876
+ name: string;
877
+ source?: string | undefined;
878
+ }, {
879
+ name: string;
880
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
881
+ source?: string | undefined;
882
+ }>>;
883
+ }, "strict", z.ZodTypeAny, {
884
+ body: {
885
+ kind: "zod" | "json-schema" | "ts-rest";
886
+ name: string;
887
+ source?: string | undefined;
888
+ };
889
+ status?: number | undefined;
890
+ headers?: {
891
+ kind: "zod" | "json-schema" | "ts-rest";
892
+ name: string;
893
+ source?: string | undefined;
894
+ } | undefined;
895
+ }, {
896
+ body: {
897
+ name: string;
898
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
899
+ source?: string | undefined;
900
+ };
901
+ status?: number | undefined;
902
+ headers?: {
903
+ name: string;
904
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
905
+ source?: string | undefined;
906
+ } | undefined;
907
+ }>, z.ZodObject<{
908
+ redirect: z.ZodObject<{
909
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
910
+ location: z.ZodOptional<z.ZodString>;
911
+ }, "strict", z.ZodTypeAny, {
912
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
913
+ location?: string | undefined;
914
+ }, {
915
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
916
+ location?: string | undefined;
917
+ }>;
918
+ status: z.ZodOptional<z.ZodNumber>;
919
+ headers: z.ZodOptional<z.ZodObject<{
920
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
921
+ name: z.ZodString;
922
+ source: z.ZodOptional<z.ZodString>;
923
+ }, "strip", z.ZodTypeAny, {
924
+ kind: "zod" | "json-schema" | "ts-rest";
925
+ name: string;
926
+ source?: string | undefined;
927
+ }, {
928
+ name: string;
929
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
930
+ source?: string | undefined;
931
+ }>>;
932
+ }, "strict", z.ZodTypeAny, {
933
+ redirect: {
934
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
935
+ location?: string | undefined;
936
+ };
937
+ status?: number | undefined;
938
+ headers?: {
939
+ kind: "zod" | "json-schema" | "ts-rest";
940
+ name: string;
941
+ source?: string | undefined;
942
+ } | undefined;
943
+ }, {
944
+ redirect: {
945
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
946
+ location?: string | undefined;
947
+ };
948
+ status?: number | undefined;
949
+ headers?: {
950
+ name: string;
951
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
952
+ source?: string | undefined;
953
+ } | undefined;
954
+ }>, z.ZodObject<{
955
+ body: z.ZodObject<{
956
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
957
+ name: z.ZodString;
958
+ source: z.ZodOptional<z.ZodString>;
959
+ }, "strip", z.ZodTypeAny, {
960
+ kind: "zod" | "json-schema" | "ts-rest";
961
+ name: string;
962
+ source?: string | undefined;
963
+ }, {
964
+ name: string;
965
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
966
+ source?: string | undefined;
967
+ }>;
968
+ fragment: z.ZodObject<{
969
+ target: z.ZodString;
970
+ selector: z.ZodOptional<z.ZodString>;
971
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
972
+ }, "strict", z.ZodTypeAny, {
973
+ target: string;
974
+ mode?: "replace" | "append" | "prepend" | undefined;
975
+ selector?: string | undefined;
976
+ }, {
977
+ target: string;
978
+ mode?: "replace" | "append" | "prepend" | undefined;
979
+ selector?: string | undefined;
980
+ }>;
981
+ status: z.ZodOptional<z.ZodNumber>;
982
+ headers: z.ZodOptional<z.ZodObject<{
983
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
984
+ name: z.ZodString;
985
+ source: z.ZodOptional<z.ZodString>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ kind: "zod" | "json-schema" | "ts-rest";
988
+ name: string;
989
+ source?: string | undefined;
990
+ }, {
991
+ name: string;
992
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
993
+ source?: string | undefined;
994
+ }>>;
995
+ }, "strict", z.ZodTypeAny, {
996
+ body: {
997
+ kind: "zod" | "json-schema" | "ts-rest";
998
+ name: string;
999
+ source?: string | undefined;
1000
+ };
1001
+ fragment: {
1002
+ target: string;
1003
+ mode?: "replace" | "append" | "prepend" | undefined;
1004
+ selector?: string | undefined;
1005
+ };
1006
+ status?: number | undefined;
1007
+ headers?: {
1008
+ kind: "zod" | "json-schema" | "ts-rest";
1009
+ name: string;
1010
+ source?: string | undefined;
1011
+ } | undefined;
1012
+ }, {
1013
+ body: {
1014
+ name: string;
1015
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1016
+ source?: string | undefined;
1017
+ };
1018
+ fragment: {
1019
+ target: string;
1020
+ mode?: "replace" | "append" | "prepend" | undefined;
1021
+ selector?: string | undefined;
1022
+ };
1023
+ status?: number | undefined;
1024
+ headers?: {
1025
+ name: string;
1026
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1027
+ source?: string | undefined;
1028
+ } | undefined;
1029
+ }>]>, "many">;
1030
+ }, "strict", z.ZodTypeAny, {
1031
+ responses: ({
1032
+ body: {
1033
+ kind: "zod" | "json-schema" | "ts-rest";
1034
+ name: string;
1035
+ source?: string | undefined;
1036
+ };
1037
+ status?: number | undefined;
1038
+ headers?: {
1039
+ kind: "zod" | "json-schema" | "ts-rest";
1040
+ name: string;
1041
+ source?: string | undefined;
1042
+ } | undefined;
1043
+ } | {
1044
+ redirect: {
1045
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1046
+ location?: string | undefined;
1047
+ };
1048
+ status?: number | undefined;
1049
+ headers?: {
1050
+ kind: "zod" | "json-schema" | "ts-rest";
1051
+ name: string;
1052
+ source?: string | undefined;
1053
+ } | undefined;
1054
+ } | {
1055
+ body: {
1056
+ kind: "zod" | "json-schema" | "ts-rest";
1057
+ name: string;
1058
+ source?: string | undefined;
1059
+ };
1060
+ fragment: {
1061
+ target: string;
1062
+ mode?: "replace" | "append" | "prepend" | undefined;
1063
+ selector?: string | undefined;
1064
+ };
1065
+ status?: number | undefined;
1066
+ headers?: {
1067
+ kind: "zod" | "json-schema" | "ts-rest";
1068
+ name: string;
1069
+ source?: string | undefined;
1070
+ } | undefined;
1071
+ })[];
1072
+ }, {
1073
+ responses: ({
1074
+ body: {
1075
+ name: string;
1076
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1077
+ source?: string | undefined;
1078
+ };
1079
+ status?: number | undefined;
1080
+ headers?: {
1081
+ name: string;
1082
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1083
+ source?: string | undefined;
1084
+ } | undefined;
1085
+ } | {
1086
+ redirect: {
1087
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1088
+ location?: string | undefined;
1089
+ };
1090
+ status?: number | undefined;
1091
+ headers?: {
1092
+ name: string;
1093
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1094
+ source?: string | undefined;
1095
+ } | undefined;
1096
+ } | {
1097
+ body: {
1098
+ name: string;
1099
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1100
+ source?: string | undefined;
1101
+ };
1102
+ fragment: {
1103
+ target: string;
1104
+ mode?: "replace" | "append" | "prepend" | undefined;
1105
+ selector?: string | undefined;
1106
+ };
1107
+ status?: number | undefined;
1108
+ headers?: {
1109
+ name: string;
1110
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1111
+ source?: string | undefined;
1112
+ } | undefined;
1113
+ })[];
1114
+ }>;
1115
+ export type RouteOutputResponsesDefinition = z.infer<typeof routeOutputResponsesSchema>;
1116
+ export declare const routeOutputSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1117
+ body: z.ZodObject<{
1118
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1119
+ name: z.ZodString;
1120
+ source: z.ZodOptional<z.ZodString>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ kind: "zod" | "json-schema" | "ts-rest";
1123
+ name: string;
1124
+ source?: string | undefined;
1125
+ }, {
1126
+ name: string;
1127
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1128
+ source?: string | undefined;
1129
+ }>;
1130
+ status: z.ZodOptional<z.ZodNumber>;
1131
+ headers: z.ZodOptional<z.ZodObject<{
1132
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1133
+ name: z.ZodString;
1134
+ source: z.ZodOptional<z.ZodString>;
1135
+ }, "strip", z.ZodTypeAny, {
1136
+ kind: "zod" | "json-schema" | "ts-rest";
1137
+ name: string;
1138
+ source?: string | undefined;
1139
+ }, {
1140
+ name: string;
1141
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1142
+ source?: string | undefined;
1143
+ }>>;
1144
+ }, "strict", z.ZodTypeAny, {
1145
+ body: {
1146
+ kind: "zod" | "json-schema" | "ts-rest";
1147
+ name: string;
1148
+ source?: string | undefined;
1149
+ };
1150
+ status?: number | undefined;
1151
+ headers?: {
1152
+ kind: "zod" | "json-schema" | "ts-rest";
1153
+ name: string;
1154
+ source?: string | undefined;
1155
+ } | undefined;
1156
+ }, {
1157
+ body: {
1158
+ name: string;
1159
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1160
+ source?: string | undefined;
1161
+ };
1162
+ status?: number | undefined;
1163
+ headers?: {
1164
+ name: string;
1165
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1166
+ source?: string | undefined;
1167
+ } | undefined;
1168
+ }>, z.ZodObject<{
1169
+ redirect: z.ZodObject<{
1170
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
1171
+ location: z.ZodOptional<z.ZodString>;
1172
+ }, "strict", z.ZodTypeAny, {
1173
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1174
+ location?: string | undefined;
1175
+ }, {
1176
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1177
+ location?: string | undefined;
1178
+ }>;
1179
+ status: z.ZodOptional<z.ZodNumber>;
1180
+ headers: z.ZodOptional<z.ZodObject<{
1181
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1182
+ name: z.ZodString;
1183
+ source: z.ZodOptional<z.ZodString>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ kind: "zod" | "json-schema" | "ts-rest";
1186
+ name: string;
1187
+ source?: string | undefined;
1188
+ }, {
1189
+ name: string;
1190
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1191
+ source?: string | undefined;
1192
+ }>>;
1193
+ }, "strict", z.ZodTypeAny, {
1194
+ redirect: {
1195
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1196
+ location?: string | undefined;
1197
+ };
1198
+ status?: number | undefined;
1199
+ headers?: {
1200
+ kind: "zod" | "json-schema" | "ts-rest";
1201
+ name: string;
1202
+ source?: string | undefined;
1203
+ } | undefined;
1204
+ }, {
1205
+ redirect: {
1206
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1207
+ location?: string | undefined;
1208
+ };
1209
+ status?: number | undefined;
1210
+ headers?: {
1211
+ name: string;
1212
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1213
+ source?: string | undefined;
1214
+ } | undefined;
1215
+ }>, z.ZodObject<{
1216
+ body: z.ZodObject<{
1217
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1218
+ name: z.ZodString;
1219
+ source: z.ZodOptional<z.ZodString>;
1220
+ }, "strip", z.ZodTypeAny, {
1221
+ kind: "zod" | "json-schema" | "ts-rest";
1222
+ name: string;
1223
+ source?: string | undefined;
1224
+ }, {
1225
+ name: string;
1226
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1227
+ source?: string | undefined;
1228
+ }>;
1229
+ fragment: z.ZodObject<{
1230
+ target: z.ZodString;
1231
+ selector: z.ZodOptional<z.ZodString>;
1232
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
1233
+ }, "strict", z.ZodTypeAny, {
1234
+ target: string;
1235
+ mode?: "replace" | "append" | "prepend" | undefined;
1236
+ selector?: string | undefined;
1237
+ }, {
1238
+ target: string;
1239
+ mode?: "replace" | "append" | "prepend" | undefined;
1240
+ selector?: string | undefined;
1241
+ }>;
1242
+ status: z.ZodOptional<z.ZodNumber>;
1243
+ headers: z.ZodOptional<z.ZodObject<{
1244
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1245
+ name: z.ZodString;
1246
+ source: z.ZodOptional<z.ZodString>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ kind: "zod" | "json-schema" | "ts-rest";
1249
+ name: string;
1250
+ source?: string | undefined;
1251
+ }, {
1252
+ name: string;
1253
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1254
+ source?: string | undefined;
1255
+ }>>;
1256
+ }, "strict", z.ZodTypeAny, {
1257
+ body: {
1258
+ kind: "zod" | "json-schema" | "ts-rest";
1259
+ name: string;
1260
+ source?: string | undefined;
1261
+ };
1262
+ fragment: {
1263
+ target: string;
1264
+ mode?: "replace" | "append" | "prepend" | undefined;
1265
+ selector?: string | undefined;
1266
+ };
1267
+ status?: number | undefined;
1268
+ headers?: {
1269
+ kind: "zod" | "json-schema" | "ts-rest";
1270
+ name: string;
1271
+ source?: string | undefined;
1272
+ } | undefined;
1273
+ }, {
1274
+ body: {
1275
+ name: string;
1276
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1277
+ source?: string | undefined;
1278
+ };
1279
+ fragment: {
1280
+ target: string;
1281
+ mode?: "replace" | "append" | "prepend" | undefined;
1282
+ selector?: string | undefined;
1283
+ };
1284
+ status?: number | undefined;
1285
+ headers?: {
1286
+ name: string;
1287
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1288
+ source?: string | undefined;
1289
+ } | undefined;
1290
+ }>]>, z.ZodObject<{
1291
+ responses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1292
+ body: z.ZodObject<{
1293
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1294
+ name: z.ZodString;
1295
+ source: z.ZodOptional<z.ZodString>;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ kind: "zod" | "json-schema" | "ts-rest";
1298
+ name: string;
1299
+ source?: string | undefined;
1300
+ }, {
1301
+ name: string;
1302
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1303
+ source?: string | undefined;
1304
+ }>;
1305
+ status: z.ZodOptional<z.ZodNumber>;
1306
+ headers: z.ZodOptional<z.ZodObject<{
1307
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1308
+ name: z.ZodString;
1309
+ source: z.ZodOptional<z.ZodString>;
1310
+ }, "strip", z.ZodTypeAny, {
1311
+ kind: "zod" | "json-schema" | "ts-rest";
1312
+ name: string;
1313
+ source?: string | undefined;
1314
+ }, {
1315
+ name: string;
1316
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1317
+ source?: string | undefined;
1318
+ }>>;
1319
+ }, "strict", z.ZodTypeAny, {
1320
+ body: {
1321
+ kind: "zod" | "json-schema" | "ts-rest";
1322
+ name: string;
1323
+ source?: string | undefined;
1324
+ };
1325
+ status?: number | undefined;
1326
+ headers?: {
1327
+ kind: "zod" | "json-schema" | "ts-rest";
1328
+ name: string;
1329
+ source?: string | undefined;
1330
+ } | undefined;
1331
+ }, {
1332
+ body: {
1333
+ name: string;
1334
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1335
+ source?: string | undefined;
1336
+ };
1337
+ status?: number | undefined;
1338
+ headers?: {
1339
+ name: string;
1340
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1341
+ source?: string | undefined;
1342
+ } | undefined;
1343
+ }>, z.ZodObject<{
1344
+ redirect: z.ZodObject<{
1345
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
1346
+ location: z.ZodOptional<z.ZodString>;
1347
+ }, "strict", z.ZodTypeAny, {
1348
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1349
+ location?: string | undefined;
1350
+ }, {
1351
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1352
+ location?: string | undefined;
1353
+ }>;
1354
+ status: z.ZodOptional<z.ZodNumber>;
1355
+ headers: z.ZodOptional<z.ZodObject<{
1356
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1357
+ name: z.ZodString;
1358
+ source: z.ZodOptional<z.ZodString>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ kind: "zod" | "json-schema" | "ts-rest";
1361
+ name: string;
1362
+ source?: string | undefined;
1363
+ }, {
1364
+ name: string;
1365
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1366
+ source?: string | undefined;
1367
+ }>>;
1368
+ }, "strict", z.ZodTypeAny, {
1369
+ redirect: {
1370
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1371
+ location?: string | undefined;
1372
+ };
1373
+ status?: number | undefined;
1374
+ headers?: {
1375
+ kind: "zod" | "json-schema" | "ts-rest";
1376
+ name: string;
1377
+ source?: string | undefined;
1378
+ } | undefined;
1379
+ }, {
1380
+ redirect: {
1381
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1382
+ location?: string | undefined;
1383
+ };
1384
+ status?: number | undefined;
1385
+ headers?: {
1386
+ name: string;
1387
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1388
+ source?: string | undefined;
1389
+ } | undefined;
1390
+ }>, z.ZodObject<{
1391
+ body: z.ZodObject<{
1392
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1393
+ name: z.ZodString;
1394
+ source: z.ZodOptional<z.ZodString>;
1395
+ }, "strip", z.ZodTypeAny, {
1396
+ kind: "zod" | "json-schema" | "ts-rest";
1397
+ name: string;
1398
+ source?: string | undefined;
1399
+ }, {
1400
+ name: string;
1401
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1402
+ source?: string | undefined;
1403
+ }>;
1404
+ fragment: z.ZodObject<{
1405
+ target: z.ZodString;
1406
+ selector: z.ZodOptional<z.ZodString>;
1407
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
1408
+ }, "strict", z.ZodTypeAny, {
1409
+ target: string;
1410
+ mode?: "replace" | "append" | "prepend" | undefined;
1411
+ selector?: string | undefined;
1412
+ }, {
1413
+ target: string;
1414
+ mode?: "replace" | "append" | "prepend" | undefined;
1415
+ selector?: string | undefined;
1416
+ }>;
1417
+ status: z.ZodOptional<z.ZodNumber>;
1418
+ headers: z.ZodOptional<z.ZodObject<{
1419
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1420
+ name: z.ZodString;
1421
+ source: z.ZodOptional<z.ZodString>;
1422
+ }, "strip", z.ZodTypeAny, {
1423
+ kind: "zod" | "json-schema" | "ts-rest";
1424
+ name: string;
1425
+ source?: string | undefined;
1426
+ }, {
1427
+ name: string;
1428
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1429
+ source?: string | undefined;
1430
+ }>>;
1431
+ }, "strict", z.ZodTypeAny, {
1432
+ body: {
1433
+ kind: "zod" | "json-schema" | "ts-rest";
1434
+ name: string;
1435
+ source?: string | undefined;
1436
+ };
1437
+ fragment: {
1438
+ target: string;
1439
+ mode?: "replace" | "append" | "prepend" | undefined;
1440
+ selector?: string | undefined;
1441
+ };
1442
+ status?: number | undefined;
1443
+ headers?: {
1444
+ kind: "zod" | "json-schema" | "ts-rest";
1445
+ name: string;
1446
+ source?: string | undefined;
1447
+ } | undefined;
1448
+ }, {
1449
+ body: {
1450
+ name: string;
1451
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1452
+ source?: string | undefined;
1453
+ };
1454
+ fragment: {
1455
+ target: string;
1456
+ mode?: "replace" | "append" | "prepend" | undefined;
1457
+ selector?: string | undefined;
1458
+ };
1459
+ status?: number | undefined;
1460
+ headers?: {
1461
+ name: string;
1462
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1463
+ source?: string | undefined;
1464
+ } | undefined;
1465
+ }>]>, "many">;
1466
+ }, "strict", z.ZodTypeAny, {
1467
+ responses: ({
1468
+ body: {
1469
+ kind: "zod" | "json-schema" | "ts-rest";
1470
+ name: string;
1471
+ source?: string | undefined;
1472
+ };
1473
+ status?: number | undefined;
1474
+ headers?: {
1475
+ kind: "zod" | "json-schema" | "ts-rest";
1476
+ name: string;
1477
+ source?: string | undefined;
1478
+ } | undefined;
1479
+ } | {
1480
+ redirect: {
1481
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1482
+ location?: string | undefined;
1483
+ };
1484
+ status?: number | undefined;
1485
+ headers?: {
1486
+ kind: "zod" | "json-schema" | "ts-rest";
1487
+ name: string;
1488
+ source?: string | undefined;
1489
+ } | undefined;
1490
+ } | {
1491
+ body: {
1492
+ kind: "zod" | "json-schema" | "ts-rest";
1493
+ name: string;
1494
+ source?: string | undefined;
1495
+ };
1496
+ fragment: {
1497
+ target: string;
1498
+ mode?: "replace" | "append" | "prepend" | undefined;
1499
+ selector?: string | undefined;
1500
+ };
1501
+ status?: number | undefined;
1502
+ headers?: {
1503
+ kind: "zod" | "json-schema" | "ts-rest";
1504
+ name: string;
1505
+ source?: string | undefined;
1506
+ } | undefined;
1507
+ })[];
1508
+ }, {
1509
+ responses: ({
1510
+ body: {
1511
+ name: string;
1512
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1513
+ source?: string | undefined;
1514
+ };
1515
+ status?: number | undefined;
1516
+ headers?: {
1517
+ name: string;
1518
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1519
+ source?: string | undefined;
1520
+ } | undefined;
1521
+ } | {
1522
+ redirect: {
1523
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1524
+ location?: string | undefined;
1525
+ };
1526
+ status?: number | undefined;
1527
+ headers?: {
1528
+ name: string;
1529
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1530
+ source?: string | undefined;
1531
+ } | undefined;
1532
+ } | {
1533
+ body: {
1534
+ name: string;
1535
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1536
+ source?: string | undefined;
1537
+ };
1538
+ fragment: {
1539
+ target: string;
1540
+ mode?: "replace" | "append" | "prepend" | undefined;
1541
+ selector?: string | undefined;
1542
+ };
1543
+ status?: number | undefined;
1544
+ headers?: {
1545
+ name: string;
1546
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1547
+ source?: string | undefined;
1548
+ } | undefined;
1549
+ })[];
1550
+ }>]>;
1551
+ export type RouteOutputDefinition = z.infer<typeof routeOutputSchema>;
1552
+ export declare const routeDefinitionSchema: z.ZodObject<{
1553
+ name: z.ZodString;
1554
+ method: z.ZodEnum<["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]>;
1555
+ path: z.ZodString;
1556
+ summary: z.ZodOptional<z.ZodString>;
1557
+ description: z.ZodOptional<z.ZodString>;
1558
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1559
+ interaction: z.ZodOptional<z.ZodEnum<["navigation", "mutation"]>>;
1560
+ requestHooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1561
+ id: z.ZodString;
1562
+ }, "strict", z.ZodTypeAny, {
1563
+ id: string;
1564
+ }, {
1565
+ id: string;
1566
+ }>, "many">>;
1567
+ session: z.ZodOptional<z.ZodObject<{
1568
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
1569
+ write: z.ZodOptional<z.ZodBoolean>;
1570
+ }, "strict", z.ZodTypeAny, {
1571
+ mode?: "optional" | "required" | undefined;
1572
+ write?: boolean | undefined;
1573
+ }, {
1574
+ mode?: "optional" | "required" | undefined;
1575
+ write?: boolean | undefined;
1576
+ }>>;
1577
+ flash: z.ZodOptional<z.ZodObject<{
1578
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1579
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
1580
+ key: z.ZodString;
1581
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
1582
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
1583
+ }, "strict", z.ZodTypeAny, {
1584
+ key: string;
1585
+ level?: "info" | "success" | "warning" | "error" | undefined;
1586
+ when?: "success" | "error" | "always" | undefined;
1587
+ }, {
1588
+ key: string;
1589
+ level?: "info" | "success" | "warning" | "error" | undefined;
1590
+ when?: "success" | "error" | "always" | undefined;
1591
+ }>, "many">>;
1592
+ }, "strict", z.ZodTypeAny, {
1593
+ consume?: string[] | undefined;
1594
+ publish?: {
1595
+ key: string;
1596
+ level?: "info" | "success" | "warning" | "error" | undefined;
1597
+ when?: "success" | "error" | "always" | undefined;
1598
+ }[] | undefined;
1599
+ }, {
1600
+ consume?: string[] | undefined;
1601
+ publish?: {
1602
+ key: string;
1603
+ level?: "info" | "success" | "warning" | "error" | undefined;
1604
+ when?: "success" | "error" | "always" | undefined;
1605
+ }[] | undefined;
1606
+ }>>;
1607
+ form: z.ZodOptional<z.ZodObject<{
1608
+ contentType: z.ZodOptional<z.ZodEnum<["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]>>;
1609
+ csrf: z.ZodOptional<z.ZodBoolean>;
1610
+ session: z.ZodOptional<z.ZodObject<{
1611
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
1612
+ write: z.ZodOptional<z.ZodBoolean>;
1613
+ }, "strict", z.ZodTypeAny, {
1614
+ mode?: "optional" | "required" | undefined;
1615
+ write?: boolean | undefined;
1616
+ }, {
1617
+ mode?: "optional" | "required" | undefined;
1618
+ write?: boolean | undefined;
1619
+ }>>;
1620
+ flash: z.ZodOptional<z.ZodObject<{
1621
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1622
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
1623
+ key: z.ZodString;
1624
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
1625
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
1626
+ }, "strict", z.ZodTypeAny, {
1627
+ key: string;
1628
+ level?: "info" | "success" | "warning" | "error" | undefined;
1629
+ when?: "success" | "error" | "always" | undefined;
1630
+ }, {
1631
+ key: string;
1632
+ level?: "info" | "success" | "warning" | "error" | undefined;
1633
+ when?: "success" | "error" | "always" | undefined;
1634
+ }>, "many">>;
1635
+ }, "strict", z.ZodTypeAny, {
1636
+ consume?: string[] | undefined;
1637
+ publish?: {
1638
+ key: string;
1639
+ level?: "info" | "success" | "warning" | "error" | undefined;
1640
+ when?: "success" | "error" | "always" | undefined;
1641
+ }[] | undefined;
1642
+ }, {
1643
+ consume?: string[] | undefined;
1644
+ publish?: {
1645
+ key: string;
1646
+ level?: "info" | "success" | "warning" | "error" | undefined;
1647
+ when?: "success" | "error" | "always" | undefined;
1648
+ }[] | undefined;
1649
+ }>>;
1650
+ }, "strict", z.ZodTypeAny, {
1651
+ session?: {
1652
+ mode?: "optional" | "required" | undefined;
1653
+ write?: boolean | undefined;
1654
+ } | undefined;
1655
+ flash?: {
1656
+ consume?: string[] | undefined;
1657
+ publish?: {
1658
+ key: string;
1659
+ level?: "info" | "success" | "warning" | "error" | undefined;
1660
+ when?: "success" | "error" | "always" | undefined;
1661
+ }[] | undefined;
1662
+ } | undefined;
1663
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
1664
+ csrf?: boolean | undefined;
1665
+ }, {
1666
+ session?: {
1667
+ mode?: "optional" | "required" | undefined;
1668
+ write?: boolean | undefined;
1669
+ } | undefined;
1670
+ flash?: {
1671
+ consume?: string[] | undefined;
1672
+ publish?: {
1673
+ key: string;
1674
+ level?: "info" | "success" | "warning" | "error" | undefined;
1675
+ when?: "success" | "error" | "always" | undefined;
1676
+ }[] | undefined;
1677
+ } | undefined;
1678
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
1679
+ csrf?: boolean | undefined;
1680
+ }>>;
1681
+ fragment: z.ZodOptional<z.ZodObject<{
1682
+ target: z.ZodString;
1683
+ selector: z.ZodOptional<z.ZodString>;
1684
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
1685
+ }, "strict", z.ZodTypeAny, {
1686
+ target: string;
1687
+ mode?: "replace" | "append" | "prepend" | undefined;
1688
+ selector?: string | undefined;
1689
+ }, {
1690
+ target: string;
1691
+ mode?: "replace" | "append" | "prepend" | undefined;
1692
+ selector?: string | undefined;
1693
+ }>>;
1694
+ input: z.ZodOptional<z.ZodObject<{
1695
+ params: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1696
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1697
+ name: z.ZodString;
1698
+ source: z.ZodOptional<z.ZodString>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ kind: "zod" | "json-schema" | "ts-rest";
1701
+ name: string;
1702
+ source?: string | undefined;
1703
+ }, {
1704
+ name: string;
1705
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1706
+ source?: string | undefined;
1707
+ }>>>;
1708
+ query: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1709
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1710
+ name: z.ZodString;
1711
+ source: z.ZodOptional<z.ZodString>;
1712
+ }, "strip", z.ZodTypeAny, {
1713
+ kind: "zod" | "json-schema" | "ts-rest";
1714
+ name: string;
1715
+ source?: string | undefined;
1716
+ }, {
1717
+ name: string;
1718
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1719
+ source?: string | undefined;
1720
+ }>>>;
1721
+ body: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1722
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1723
+ name: z.ZodString;
1724
+ source: z.ZodOptional<z.ZodString>;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ kind: "zod" | "json-schema" | "ts-rest";
1727
+ name: string;
1728
+ source?: string | undefined;
1729
+ }, {
1730
+ name: string;
1731
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1732
+ source?: string | undefined;
1733
+ }>>>;
1734
+ headers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1735
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1736
+ name: z.ZodString;
1737
+ source: z.ZodOptional<z.ZodString>;
1738
+ }, "strip", z.ZodTypeAny, {
1739
+ kind: "zod" | "json-schema" | "ts-rest";
1740
+ name: string;
1741
+ source?: string | undefined;
1742
+ }, {
1743
+ name: string;
1744
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1745
+ source?: string | undefined;
1746
+ }>>>;
1747
+ }, "strict", z.ZodTypeAny, {
1748
+ params?: {
1749
+ kind: "zod" | "json-schema" | "ts-rest";
1750
+ name: string;
1751
+ source?: string | undefined;
1752
+ } | undefined;
1753
+ query?: {
1754
+ kind: "zod" | "json-schema" | "ts-rest";
1755
+ name: string;
1756
+ source?: string | undefined;
1757
+ } | undefined;
1758
+ body?: {
1759
+ kind: "zod" | "json-schema" | "ts-rest";
1760
+ name: string;
1761
+ source?: string | undefined;
1762
+ } | undefined;
1763
+ headers?: {
1764
+ kind: "zod" | "json-schema" | "ts-rest";
1765
+ name: string;
1766
+ source?: string | undefined;
1767
+ } | undefined;
1768
+ }, {
1769
+ params?: {
1770
+ name: string;
1771
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1772
+ source?: string | undefined;
1773
+ } | undefined;
1774
+ query?: {
1775
+ name: string;
1776
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1777
+ source?: string | undefined;
1778
+ } | undefined;
1779
+ body?: {
1780
+ name: string;
1781
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1782
+ source?: string | undefined;
1783
+ } | undefined;
1784
+ headers?: {
1785
+ name: string;
1786
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1787
+ source?: string | undefined;
1788
+ } | undefined;
1789
+ }>>;
1790
+ output: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1791
+ body: z.ZodObject<{
1792
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1793
+ name: z.ZodString;
1794
+ source: z.ZodOptional<z.ZodString>;
1795
+ }, "strip", z.ZodTypeAny, {
1796
+ kind: "zod" | "json-schema" | "ts-rest";
1797
+ name: string;
1798
+ source?: string | undefined;
1799
+ }, {
1800
+ name: string;
1801
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1802
+ source?: string | undefined;
1803
+ }>;
1804
+ status: z.ZodOptional<z.ZodNumber>;
1805
+ headers: z.ZodOptional<z.ZodObject<{
1806
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1807
+ name: z.ZodString;
1808
+ source: z.ZodOptional<z.ZodString>;
1809
+ }, "strip", z.ZodTypeAny, {
1810
+ kind: "zod" | "json-schema" | "ts-rest";
1811
+ name: string;
1812
+ source?: string | undefined;
1813
+ }, {
1814
+ name: string;
1815
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1816
+ source?: string | undefined;
1817
+ }>>;
1818
+ }, "strict", z.ZodTypeAny, {
1819
+ body: {
1820
+ kind: "zod" | "json-schema" | "ts-rest";
1821
+ name: string;
1822
+ source?: string | undefined;
1823
+ };
1824
+ status?: number | undefined;
1825
+ headers?: {
1826
+ kind: "zod" | "json-schema" | "ts-rest";
1827
+ name: string;
1828
+ source?: string | undefined;
1829
+ } | undefined;
1830
+ }, {
1831
+ body: {
1832
+ name: string;
1833
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1834
+ source?: string | undefined;
1835
+ };
1836
+ status?: number | undefined;
1837
+ headers?: {
1838
+ name: string;
1839
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1840
+ source?: string | undefined;
1841
+ } | undefined;
1842
+ }>, z.ZodObject<{
1843
+ redirect: z.ZodObject<{
1844
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
1845
+ location: z.ZodOptional<z.ZodString>;
1846
+ }, "strict", z.ZodTypeAny, {
1847
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1848
+ location?: string | undefined;
1849
+ }, {
1850
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1851
+ location?: string | undefined;
1852
+ }>;
1853
+ status: z.ZodOptional<z.ZodNumber>;
1854
+ headers: z.ZodOptional<z.ZodObject<{
1855
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1856
+ name: z.ZodString;
1857
+ source: z.ZodOptional<z.ZodString>;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ kind: "zod" | "json-schema" | "ts-rest";
1860
+ name: string;
1861
+ source?: string | undefined;
1862
+ }, {
1863
+ name: string;
1864
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1865
+ source?: string | undefined;
1866
+ }>>;
1867
+ }, "strict", z.ZodTypeAny, {
1868
+ redirect: {
1869
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1870
+ location?: string | undefined;
1871
+ };
1872
+ status?: number | undefined;
1873
+ headers?: {
1874
+ kind: "zod" | "json-schema" | "ts-rest";
1875
+ name: string;
1876
+ source?: string | undefined;
1877
+ } | undefined;
1878
+ }, {
1879
+ redirect: {
1880
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
1881
+ location?: string | undefined;
1882
+ };
1883
+ status?: number | undefined;
1884
+ headers?: {
1885
+ name: string;
1886
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1887
+ source?: string | undefined;
1888
+ } | undefined;
1889
+ }>, z.ZodObject<{
1890
+ body: z.ZodObject<{
1891
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1892
+ name: z.ZodString;
1893
+ source: z.ZodOptional<z.ZodString>;
1894
+ }, "strip", z.ZodTypeAny, {
1895
+ kind: "zod" | "json-schema" | "ts-rest";
1896
+ name: string;
1897
+ source?: string | undefined;
1898
+ }, {
1899
+ name: string;
1900
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1901
+ source?: string | undefined;
1902
+ }>;
1903
+ fragment: z.ZodObject<{
1904
+ target: z.ZodString;
1905
+ selector: z.ZodOptional<z.ZodString>;
1906
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
1907
+ }, "strict", z.ZodTypeAny, {
1908
+ target: string;
1909
+ mode?: "replace" | "append" | "prepend" | undefined;
1910
+ selector?: string | undefined;
1911
+ }, {
1912
+ target: string;
1913
+ mode?: "replace" | "append" | "prepend" | undefined;
1914
+ selector?: string | undefined;
1915
+ }>;
1916
+ status: z.ZodOptional<z.ZodNumber>;
1917
+ headers: z.ZodOptional<z.ZodObject<{
1918
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1919
+ name: z.ZodString;
1920
+ source: z.ZodOptional<z.ZodString>;
1921
+ }, "strip", z.ZodTypeAny, {
1922
+ kind: "zod" | "json-schema" | "ts-rest";
1923
+ name: string;
1924
+ source?: string | undefined;
1925
+ }, {
1926
+ name: string;
1927
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1928
+ source?: string | undefined;
1929
+ }>>;
1930
+ }, "strict", z.ZodTypeAny, {
1931
+ body: {
1932
+ kind: "zod" | "json-schema" | "ts-rest";
1933
+ name: string;
1934
+ source?: string | undefined;
1935
+ };
1936
+ fragment: {
1937
+ target: string;
1938
+ mode?: "replace" | "append" | "prepend" | undefined;
1939
+ selector?: string | undefined;
1940
+ };
1941
+ status?: number | undefined;
1942
+ headers?: {
1943
+ kind: "zod" | "json-schema" | "ts-rest";
1944
+ name: string;
1945
+ source?: string | undefined;
1946
+ } | undefined;
1947
+ }, {
1948
+ body: {
1949
+ name: string;
1950
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1951
+ source?: string | undefined;
1952
+ };
1953
+ fragment: {
1954
+ target: string;
1955
+ mode?: "replace" | "append" | "prepend" | undefined;
1956
+ selector?: string | undefined;
1957
+ };
1958
+ status?: number | undefined;
1959
+ headers?: {
1960
+ name: string;
1961
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1962
+ source?: string | undefined;
1963
+ } | undefined;
1964
+ }>]>, z.ZodObject<{
1965
+ responses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1966
+ body: z.ZodObject<{
1967
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1968
+ name: z.ZodString;
1969
+ source: z.ZodOptional<z.ZodString>;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ kind: "zod" | "json-schema" | "ts-rest";
1972
+ name: string;
1973
+ source?: string | undefined;
1974
+ }, {
1975
+ name: string;
1976
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1977
+ source?: string | undefined;
1978
+ }>;
1979
+ status: z.ZodOptional<z.ZodNumber>;
1980
+ headers: z.ZodOptional<z.ZodObject<{
1981
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
1982
+ name: z.ZodString;
1983
+ source: z.ZodOptional<z.ZodString>;
1984
+ }, "strip", z.ZodTypeAny, {
1985
+ kind: "zod" | "json-schema" | "ts-rest";
1986
+ name: string;
1987
+ source?: string | undefined;
1988
+ }, {
1989
+ name: string;
1990
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1991
+ source?: string | undefined;
1992
+ }>>;
1993
+ }, "strict", z.ZodTypeAny, {
1994
+ body: {
1995
+ kind: "zod" | "json-schema" | "ts-rest";
1996
+ name: string;
1997
+ source?: string | undefined;
1998
+ };
1999
+ status?: number | undefined;
2000
+ headers?: {
2001
+ kind: "zod" | "json-schema" | "ts-rest";
2002
+ name: string;
2003
+ source?: string | undefined;
2004
+ } | undefined;
2005
+ }, {
2006
+ body: {
2007
+ name: string;
2008
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2009
+ source?: string | undefined;
2010
+ };
2011
+ status?: number | undefined;
2012
+ headers?: {
2013
+ name: string;
2014
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2015
+ source?: string | undefined;
2016
+ } | undefined;
2017
+ }>, z.ZodObject<{
2018
+ redirect: z.ZodObject<{
2019
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
2020
+ location: z.ZodOptional<z.ZodString>;
2021
+ }, "strict", z.ZodTypeAny, {
2022
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2023
+ location?: string | undefined;
2024
+ }, {
2025
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2026
+ location?: string | undefined;
2027
+ }>;
2028
+ status: z.ZodOptional<z.ZodNumber>;
2029
+ headers: z.ZodOptional<z.ZodObject<{
2030
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
2031
+ name: z.ZodString;
2032
+ source: z.ZodOptional<z.ZodString>;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ kind: "zod" | "json-schema" | "ts-rest";
2035
+ name: string;
2036
+ source?: string | undefined;
2037
+ }, {
2038
+ name: string;
2039
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2040
+ source?: string | undefined;
2041
+ }>>;
2042
+ }, "strict", z.ZodTypeAny, {
2043
+ redirect: {
2044
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2045
+ location?: string | undefined;
2046
+ };
2047
+ status?: number | undefined;
2048
+ headers?: {
2049
+ kind: "zod" | "json-schema" | "ts-rest";
2050
+ name: string;
2051
+ source?: string | undefined;
2052
+ } | undefined;
2053
+ }, {
2054
+ redirect: {
2055
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2056
+ location?: string | undefined;
2057
+ };
2058
+ status?: number | undefined;
2059
+ headers?: {
2060
+ name: string;
2061
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2062
+ source?: string | undefined;
2063
+ } | undefined;
2064
+ }>, z.ZodObject<{
2065
+ body: z.ZodObject<{
2066
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
2067
+ name: z.ZodString;
2068
+ source: z.ZodOptional<z.ZodString>;
2069
+ }, "strip", z.ZodTypeAny, {
2070
+ kind: "zod" | "json-schema" | "ts-rest";
2071
+ name: string;
2072
+ source?: string | undefined;
2073
+ }, {
2074
+ name: string;
2075
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2076
+ source?: string | undefined;
2077
+ }>;
2078
+ fragment: z.ZodObject<{
2079
+ target: z.ZodString;
2080
+ selector: z.ZodOptional<z.ZodString>;
2081
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
2082
+ }, "strict", z.ZodTypeAny, {
2083
+ target: string;
2084
+ mode?: "replace" | "append" | "prepend" | undefined;
2085
+ selector?: string | undefined;
2086
+ }, {
2087
+ target: string;
2088
+ mode?: "replace" | "append" | "prepend" | undefined;
2089
+ selector?: string | undefined;
2090
+ }>;
2091
+ status: z.ZodOptional<z.ZodNumber>;
2092
+ headers: z.ZodOptional<z.ZodObject<{
2093
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
2094
+ name: z.ZodString;
2095
+ source: z.ZodOptional<z.ZodString>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ kind: "zod" | "json-schema" | "ts-rest";
2098
+ name: string;
2099
+ source?: string | undefined;
2100
+ }, {
2101
+ name: string;
2102
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2103
+ source?: string | undefined;
2104
+ }>>;
2105
+ }, "strict", z.ZodTypeAny, {
2106
+ body: {
2107
+ kind: "zod" | "json-schema" | "ts-rest";
2108
+ name: string;
2109
+ source?: string | undefined;
2110
+ };
2111
+ fragment: {
2112
+ target: string;
2113
+ mode?: "replace" | "append" | "prepend" | undefined;
2114
+ selector?: string | undefined;
2115
+ };
2116
+ status?: number | undefined;
2117
+ headers?: {
2118
+ kind: "zod" | "json-schema" | "ts-rest";
2119
+ name: string;
2120
+ source?: string | undefined;
2121
+ } | undefined;
2122
+ }, {
2123
+ body: {
2124
+ name: string;
2125
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2126
+ source?: string | undefined;
2127
+ };
2128
+ fragment: {
2129
+ target: string;
2130
+ mode?: "replace" | "append" | "prepend" | undefined;
2131
+ selector?: string | undefined;
2132
+ };
2133
+ status?: number | undefined;
2134
+ headers?: {
2135
+ name: string;
2136
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2137
+ source?: string | undefined;
2138
+ } | undefined;
2139
+ }>]>, "many">;
2140
+ }, "strict", z.ZodTypeAny, {
2141
+ responses: ({
2142
+ body: {
2143
+ kind: "zod" | "json-schema" | "ts-rest";
2144
+ name: string;
2145
+ source?: string | undefined;
2146
+ };
2147
+ status?: number | undefined;
2148
+ headers?: {
2149
+ kind: "zod" | "json-schema" | "ts-rest";
2150
+ name: string;
2151
+ source?: string | undefined;
2152
+ } | undefined;
2153
+ } | {
2154
+ redirect: {
2155
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2156
+ location?: string | undefined;
2157
+ };
2158
+ status?: number | undefined;
2159
+ headers?: {
2160
+ kind: "zod" | "json-schema" | "ts-rest";
2161
+ name: string;
2162
+ source?: string | undefined;
2163
+ } | undefined;
2164
+ } | {
2165
+ body: {
2166
+ kind: "zod" | "json-schema" | "ts-rest";
2167
+ name: string;
2168
+ source?: string | undefined;
2169
+ };
2170
+ fragment: {
2171
+ target: string;
2172
+ mode?: "replace" | "append" | "prepend" | undefined;
2173
+ selector?: string | undefined;
2174
+ };
2175
+ status?: number | undefined;
2176
+ headers?: {
2177
+ kind: "zod" | "json-schema" | "ts-rest";
2178
+ name: string;
2179
+ source?: string | undefined;
2180
+ } | undefined;
2181
+ })[];
2182
+ }, {
2183
+ responses: ({
2184
+ body: {
2185
+ name: string;
2186
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2187
+ source?: string | undefined;
2188
+ };
2189
+ status?: number | undefined;
2190
+ headers?: {
2191
+ name: string;
2192
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2193
+ source?: string | undefined;
2194
+ } | undefined;
2195
+ } | {
2196
+ redirect: {
2197
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2198
+ location?: string | undefined;
2199
+ };
2200
+ status?: number | undefined;
2201
+ headers?: {
2202
+ name: string;
2203
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2204
+ source?: string | undefined;
2205
+ } | undefined;
2206
+ } | {
2207
+ body: {
2208
+ name: string;
2209
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2210
+ source?: string | undefined;
2211
+ };
2212
+ fragment: {
2213
+ target: string;
2214
+ mode?: "replace" | "append" | "prepend" | undefined;
2215
+ selector?: string | undefined;
2216
+ };
2217
+ status?: number | undefined;
2218
+ headers?: {
2219
+ name: string;
2220
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2221
+ source?: string | undefined;
2222
+ } | undefined;
2223
+ })[];
2224
+ }>]>>;
2225
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2226
+ code: z.ZodEnum<["validation", "auth", "not_found", "domain", "conflict", "internal"]>;
2227
+ message: z.ZodString;
2228
+ details: z.ZodOptional<z.ZodUnknown>;
2229
+ cause: z.ZodOptional<z.ZodUnknown>;
2230
+ correlationId: z.ZodOptional<z.ZodString>;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ code: "validation" | "auth" | "not_found" | "domain" | "conflict" | "internal";
2233
+ message: string;
2234
+ details?: unknown;
2235
+ cause?: unknown;
2236
+ correlationId?: string | undefined;
2237
+ }, {
2238
+ code: "validation" | "auth" | "not_found" | "domain" | "conflict" | "internal";
2239
+ message: string;
2240
+ details?: unknown;
2241
+ cause?: unknown;
525
2242
  correlationId?: string | undefined;
526
2243
  }>, "many">>;
527
2244
  renderMode: z.ZodOptional<z.ZodEnum<["ssg", "ssr", "spa"]>>;
@@ -547,6 +2264,43 @@ export declare const routeDefinitionSchema: z.ZodObject<{
547
2264
  cause?: unknown;
548
2265
  correlationId?: string | undefined;
549
2266
  }[] | undefined;
2267
+ interaction?: "navigation" | "mutation" | undefined;
2268
+ requestHooks?: {
2269
+ id: string;
2270
+ }[] | undefined;
2271
+ session?: {
2272
+ mode?: "optional" | "required" | undefined;
2273
+ write?: boolean | undefined;
2274
+ } | undefined;
2275
+ flash?: {
2276
+ consume?: string[] | undefined;
2277
+ publish?: {
2278
+ key: string;
2279
+ level?: "info" | "success" | "warning" | "error" | undefined;
2280
+ when?: "success" | "error" | "always" | undefined;
2281
+ }[] | undefined;
2282
+ } | undefined;
2283
+ form?: {
2284
+ session?: {
2285
+ mode?: "optional" | "required" | undefined;
2286
+ write?: boolean | undefined;
2287
+ } | undefined;
2288
+ flash?: {
2289
+ consume?: string[] | undefined;
2290
+ publish?: {
2291
+ key: string;
2292
+ level?: "info" | "success" | "warning" | "error" | undefined;
2293
+ when?: "success" | "error" | "always" | undefined;
2294
+ }[] | undefined;
2295
+ } | undefined;
2296
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
2297
+ csrf?: boolean | undefined;
2298
+ } | undefined;
2299
+ fragment?: {
2300
+ target: string;
2301
+ mode?: "replace" | "append" | "prepend" | undefined;
2302
+ selector?: string | undefined;
2303
+ } | undefined;
550
2304
  input?: {
551
2305
  params?: {
552
2306
  kind: "zod" | "json-schema" | "ts-rest";
@@ -581,6 +2335,76 @@ export declare const routeDefinitionSchema: z.ZodObject<{
581
2335
  name: string;
582
2336
  source?: string | undefined;
583
2337
  } | undefined;
2338
+ } | {
2339
+ redirect: {
2340
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2341
+ location?: string | undefined;
2342
+ };
2343
+ status?: number | undefined;
2344
+ headers?: {
2345
+ kind: "zod" | "json-schema" | "ts-rest";
2346
+ name: string;
2347
+ source?: string | undefined;
2348
+ } | undefined;
2349
+ } | {
2350
+ body: {
2351
+ kind: "zod" | "json-schema" | "ts-rest";
2352
+ name: string;
2353
+ source?: string | undefined;
2354
+ };
2355
+ fragment: {
2356
+ target: string;
2357
+ mode?: "replace" | "append" | "prepend" | undefined;
2358
+ selector?: string | undefined;
2359
+ };
2360
+ status?: number | undefined;
2361
+ headers?: {
2362
+ kind: "zod" | "json-schema" | "ts-rest";
2363
+ name: string;
2364
+ source?: string | undefined;
2365
+ } | undefined;
2366
+ } | {
2367
+ responses: ({
2368
+ body: {
2369
+ kind: "zod" | "json-schema" | "ts-rest";
2370
+ name: string;
2371
+ source?: string | undefined;
2372
+ };
2373
+ status?: number | undefined;
2374
+ headers?: {
2375
+ kind: "zod" | "json-schema" | "ts-rest";
2376
+ name: string;
2377
+ source?: string | undefined;
2378
+ } | undefined;
2379
+ } | {
2380
+ redirect: {
2381
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2382
+ location?: string | undefined;
2383
+ };
2384
+ status?: number | undefined;
2385
+ headers?: {
2386
+ kind: "zod" | "json-schema" | "ts-rest";
2387
+ name: string;
2388
+ source?: string | undefined;
2389
+ } | undefined;
2390
+ } | {
2391
+ body: {
2392
+ kind: "zod" | "json-schema" | "ts-rest";
2393
+ name: string;
2394
+ source?: string | undefined;
2395
+ };
2396
+ fragment: {
2397
+ target: string;
2398
+ mode?: "replace" | "append" | "prepend" | undefined;
2399
+ selector?: string | undefined;
2400
+ };
2401
+ status?: number | undefined;
2402
+ headers?: {
2403
+ kind: "zod" | "json-schema" | "ts-rest";
2404
+ name: string;
2405
+ source?: string | undefined;
2406
+ } | undefined;
2407
+ })[];
584
2408
  } | undefined;
585
2409
  ssg?: {
586
2410
  revalidateSeconds?: number | undefined;
@@ -601,6 +2425,43 @@ export declare const routeDefinitionSchema: z.ZodObject<{
601
2425
  cause?: unknown;
602
2426
  correlationId?: string | undefined;
603
2427
  }[] | undefined;
2428
+ interaction?: "navigation" | "mutation" | undefined;
2429
+ requestHooks?: {
2430
+ id: string;
2431
+ }[] | undefined;
2432
+ session?: {
2433
+ mode?: "optional" | "required" | undefined;
2434
+ write?: boolean | undefined;
2435
+ } | undefined;
2436
+ flash?: {
2437
+ consume?: string[] | undefined;
2438
+ publish?: {
2439
+ key: string;
2440
+ level?: "info" | "success" | "warning" | "error" | undefined;
2441
+ when?: "success" | "error" | "always" | undefined;
2442
+ }[] | undefined;
2443
+ } | undefined;
2444
+ form?: {
2445
+ session?: {
2446
+ mode?: "optional" | "required" | undefined;
2447
+ write?: boolean | undefined;
2448
+ } | undefined;
2449
+ flash?: {
2450
+ consume?: string[] | undefined;
2451
+ publish?: {
2452
+ key: string;
2453
+ level?: "info" | "success" | "warning" | "error" | undefined;
2454
+ when?: "success" | "error" | "always" | undefined;
2455
+ }[] | undefined;
2456
+ } | undefined;
2457
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
2458
+ csrf?: boolean | undefined;
2459
+ } | undefined;
2460
+ fragment?: {
2461
+ target: string;
2462
+ mode?: "replace" | "append" | "prepend" | undefined;
2463
+ selector?: string | undefined;
2464
+ } | undefined;
604
2465
  input?: {
605
2466
  params?: {
606
2467
  name: string;
@@ -635,6 +2496,76 @@ export declare const routeDefinitionSchema: z.ZodObject<{
635
2496
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
636
2497
  source?: string | undefined;
637
2498
  } | undefined;
2499
+ } | {
2500
+ redirect: {
2501
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2502
+ location?: string | undefined;
2503
+ };
2504
+ status?: number | undefined;
2505
+ headers?: {
2506
+ name: string;
2507
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2508
+ source?: string | undefined;
2509
+ } | undefined;
2510
+ } | {
2511
+ body: {
2512
+ name: string;
2513
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2514
+ source?: string | undefined;
2515
+ };
2516
+ fragment: {
2517
+ target: string;
2518
+ mode?: "replace" | "append" | "prepend" | undefined;
2519
+ selector?: string | undefined;
2520
+ };
2521
+ status?: number | undefined;
2522
+ headers?: {
2523
+ name: string;
2524
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2525
+ source?: string | undefined;
2526
+ } | undefined;
2527
+ } | {
2528
+ responses: ({
2529
+ body: {
2530
+ name: string;
2531
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2532
+ source?: string | undefined;
2533
+ };
2534
+ status?: number | undefined;
2535
+ headers?: {
2536
+ name: string;
2537
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2538
+ source?: string | undefined;
2539
+ } | undefined;
2540
+ } | {
2541
+ redirect: {
2542
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
2543
+ location?: string | undefined;
2544
+ };
2545
+ status?: number | undefined;
2546
+ headers?: {
2547
+ name: string;
2548
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2549
+ source?: string | undefined;
2550
+ } | undefined;
2551
+ } | {
2552
+ body: {
2553
+ name: string;
2554
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2555
+ source?: string | undefined;
2556
+ };
2557
+ fragment: {
2558
+ target: string;
2559
+ mode?: "replace" | "append" | "prepend" | undefined;
2560
+ selector?: string | undefined;
2561
+ };
2562
+ status?: number | undefined;
2563
+ headers?: {
2564
+ name: string;
2565
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
2566
+ source?: string | undefined;
2567
+ } | undefined;
2568
+ })[];
638
2569
  } | undefined;
639
2570
  ssg?: {
640
2571
  revalidateSeconds?: number | undefined;
@@ -657,23 +2588,44 @@ export type RouteHandlerContext<TContext extends RequestContext, TParams extends
657
2588
  readonly query: InferOrNever<TQuery>;
658
2589
  readonly body: InferOrNever<TBody>;
659
2590
  };
660
- export interface RouteSuccessResponse<TResponse extends z.ZodTypeAny> {
2591
+ export interface RouteBodyResponse<TResponse extends z.ZodTypeAny> {
661
2592
  readonly status?: number;
662
2593
  readonly body: z.infer<TResponse>;
663
2594
  readonly headers?: Record<string, string>;
664
2595
  }
2596
+ export type RouteSuccessResponse<TResponse extends z.ZodTypeAny> = RouteBodyResponse<TResponse>;
2597
+ export interface RouteFragmentResponse<TResponse extends z.ZodTypeAny> {
2598
+ readonly status?: number;
2599
+ readonly fragment: {
2600
+ readonly target: string;
2601
+ readonly selector?: string;
2602
+ readonly mode?: FragmentUpdateMode;
2603
+ readonly body: z.infer<TResponse>;
2604
+ };
2605
+ readonly headers?: Record<string, string>;
2606
+ }
2607
+ export interface RouteRedirectResponse {
2608
+ readonly status?: RedirectStatus;
2609
+ readonly redirect: {
2610
+ readonly location: string;
2611
+ };
2612
+ readonly headers?: Record<string, string>;
2613
+ }
665
2614
  export interface RouteErrorResponse {
666
2615
  readonly status?: number;
667
2616
  readonly errors: readonly ModuleError[];
668
2617
  readonly headers?: Record<string, string>;
669
2618
  }
670
- export type RouteHandlerResult<TResponse extends z.ZodTypeAny> = RouteSuccessResponse<TResponse> | RouteErrorResponse;
2619
+ export type RouteNavigationResult<TResponse extends z.ZodTypeAny> = RouteBodyResponse<TResponse> | RouteRedirectResponse | RouteErrorResponse;
2620
+ export type RouteMutationResult<TResponse extends z.ZodTypeAny> = RouteBodyResponse<TResponse> | RouteFragmentResponse<TResponse> | RouteRedirectResponse | RouteErrorResponse;
2621
+ export type RouteHandlerResult<TResponse extends z.ZodTypeAny> = RouteBodyResponse<TResponse> | RouteFragmentResponse<TResponse> | RouteRedirectResponse | RouteErrorResponse;
671
2622
  export type RouteHandler<TContext extends RequestContext, TParams extends z.ZodTypeAny | undefined, TQuery extends z.ZodTypeAny | undefined, TBody extends z.ZodTypeAny | undefined, TResponse extends z.ZodTypeAny> = (context: RouteHandlerContext<TContext, TParams, TQuery, TBody>) => Promise<RouteHandlerResult<TResponse>> | RouteHandlerResult<TResponse>;
672
2623
  export interface RouteSpec<TContext extends RequestContext = RequestContext, TParams extends z.ZodTypeAny | undefined = undefined, TQuery extends z.ZodTypeAny | undefined = undefined, TBody extends z.ZodTypeAny | undefined = undefined, TResponse extends z.ZodTypeAny = z.ZodTypeAny> {
673
2624
  readonly definition: RouteDefinition;
674
2625
  readonly schemas: RouteSchemas<TParams, TQuery, TBody, TResponse>;
675
2626
  readonly handler: RouteHandler<TContext, TParams, TQuery, TBody, TResponse>;
676
2627
  }
2628
+ export type LooseRouteSpec<TContext extends RequestContext = RequestContext> = RouteSpec<TContext, z.ZodTypeAny | undefined, z.ZodTypeAny | undefined, z.ZodTypeAny | undefined, z.ZodTypeAny>;
677
2629
  export declare const viewDefinitionSchema: z.ZodObject<{
678
2630
  name: z.ZodString;
679
2631
  path: z.ZodString;
@@ -769,6 +2721,7 @@ export interface ViewSpec<TContext extends SSRContext = SSRContext, TParams exte
769
2721
  readonly data: TData;
770
2722
  readonly load: ViewLoader<TContext, TParams, TData>;
771
2723
  }
2724
+ export type LooseViewSpec<TContext extends SSRContext = SSRContext> = ViewSpec<TContext, z.ZodTypeAny | undefined, z.ZodTypeAny>;
772
2725
  export declare const jobDefinitionSchema: z.ZodObject<{
773
2726
  name: z.ZodString;
774
2727
  schedule: z.ZodOptional<z.ZodString>;
@@ -838,7 +2791,25 @@ export declare const moduleManifestSchema: z.ZodObject<{
838
2791
  kind: z.ZodEnum<["frontend", "backend"]>;
839
2792
  capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
840
2793
  assets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
841
- middlewares: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2794
+ requestHooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2795
+ id: z.ZodString;
2796
+ phase: z.ZodEnum<["beforeAuth", "beforeHandler", "afterHandler"]>;
2797
+ order: z.ZodNumber;
2798
+ summary: z.ZodOptional<z.ZodString>;
2799
+ description: z.ZodOptional<z.ZodString>;
2800
+ }, "strict", z.ZodTypeAny, {
2801
+ id: string;
2802
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
2803
+ order: number;
2804
+ summary?: string | undefined;
2805
+ description?: string | undefined;
2806
+ }, {
2807
+ id: string;
2808
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
2809
+ order: number;
2810
+ summary?: string | undefined;
2811
+ description?: string | undefined;
2812
+ }>, "many">>;
842
2813
  routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
843
2814
  name: z.ZodString;
844
2815
  method: z.ZodEnum<["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"]>;
@@ -846,6 +2817,141 @@ export declare const moduleManifestSchema: z.ZodObject<{
846
2817
  summary: z.ZodOptional<z.ZodString>;
847
2818
  description: z.ZodOptional<z.ZodString>;
848
2819
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2820
+ interaction: z.ZodOptional<z.ZodEnum<["navigation", "mutation"]>>;
2821
+ requestHooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2822
+ id: z.ZodString;
2823
+ }, "strict", z.ZodTypeAny, {
2824
+ id: string;
2825
+ }, {
2826
+ id: string;
2827
+ }>, "many">>;
2828
+ session: z.ZodOptional<z.ZodObject<{
2829
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
2830
+ write: z.ZodOptional<z.ZodBoolean>;
2831
+ }, "strict", z.ZodTypeAny, {
2832
+ mode?: "optional" | "required" | undefined;
2833
+ write?: boolean | undefined;
2834
+ }, {
2835
+ mode?: "optional" | "required" | undefined;
2836
+ write?: boolean | undefined;
2837
+ }>>;
2838
+ flash: z.ZodOptional<z.ZodObject<{
2839
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2840
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
2841
+ key: z.ZodString;
2842
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
2843
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
2844
+ }, "strict", z.ZodTypeAny, {
2845
+ key: string;
2846
+ level?: "info" | "success" | "warning" | "error" | undefined;
2847
+ when?: "success" | "error" | "always" | undefined;
2848
+ }, {
2849
+ key: string;
2850
+ level?: "info" | "success" | "warning" | "error" | undefined;
2851
+ when?: "success" | "error" | "always" | undefined;
2852
+ }>, "many">>;
2853
+ }, "strict", z.ZodTypeAny, {
2854
+ consume?: string[] | undefined;
2855
+ publish?: {
2856
+ key: string;
2857
+ level?: "info" | "success" | "warning" | "error" | undefined;
2858
+ when?: "success" | "error" | "always" | undefined;
2859
+ }[] | undefined;
2860
+ }, {
2861
+ consume?: string[] | undefined;
2862
+ publish?: {
2863
+ key: string;
2864
+ level?: "info" | "success" | "warning" | "error" | undefined;
2865
+ when?: "success" | "error" | "always" | undefined;
2866
+ }[] | undefined;
2867
+ }>>;
2868
+ form: z.ZodOptional<z.ZodObject<{
2869
+ contentType: z.ZodOptional<z.ZodEnum<["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]>>;
2870
+ csrf: z.ZodOptional<z.ZodBoolean>;
2871
+ session: z.ZodOptional<z.ZodObject<{
2872
+ mode: z.ZodOptional<z.ZodEnum<["optional", "required"]>>;
2873
+ write: z.ZodOptional<z.ZodBoolean>;
2874
+ }, "strict", z.ZodTypeAny, {
2875
+ mode?: "optional" | "required" | undefined;
2876
+ write?: boolean | undefined;
2877
+ }, {
2878
+ mode?: "optional" | "required" | undefined;
2879
+ write?: boolean | undefined;
2880
+ }>>;
2881
+ flash: z.ZodOptional<z.ZodObject<{
2882
+ consume: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2883
+ publish: z.ZodOptional<z.ZodArray<z.ZodObject<{
2884
+ key: z.ZodString;
2885
+ level: z.ZodOptional<z.ZodEnum<["info", "success", "warning", "error"]>>;
2886
+ when: z.ZodOptional<z.ZodEnum<["always", "success", "error"]>>;
2887
+ }, "strict", z.ZodTypeAny, {
2888
+ key: string;
2889
+ level?: "info" | "success" | "warning" | "error" | undefined;
2890
+ when?: "success" | "error" | "always" | undefined;
2891
+ }, {
2892
+ key: string;
2893
+ level?: "info" | "success" | "warning" | "error" | undefined;
2894
+ when?: "success" | "error" | "always" | undefined;
2895
+ }>, "many">>;
2896
+ }, "strict", z.ZodTypeAny, {
2897
+ consume?: string[] | undefined;
2898
+ publish?: {
2899
+ key: string;
2900
+ level?: "info" | "success" | "warning" | "error" | undefined;
2901
+ when?: "success" | "error" | "always" | undefined;
2902
+ }[] | undefined;
2903
+ }, {
2904
+ consume?: string[] | undefined;
2905
+ publish?: {
2906
+ key: string;
2907
+ level?: "info" | "success" | "warning" | "error" | undefined;
2908
+ when?: "success" | "error" | "always" | undefined;
2909
+ }[] | undefined;
2910
+ }>>;
2911
+ }, "strict", z.ZodTypeAny, {
2912
+ session?: {
2913
+ mode?: "optional" | "required" | undefined;
2914
+ write?: boolean | undefined;
2915
+ } | undefined;
2916
+ flash?: {
2917
+ consume?: string[] | undefined;
2918
+ publish?: {
2919
+ key: string;
2920
+ level?: "info" | "success" | "warning" | "error" | undefined;
2921
+ when?: "success" | "error" | "always" | undefined;
2922
+ }[] | undefined;
2923
+ } | undefined;
2924
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
2925
+ csrf?: boolean | undefined;
2926
+ }, {
2927
+ session?: {
2928
+ mode?: "optional" | "required" | undefined;
2929
+ write?: boolean | undefined;
2930
+ } | undefined;
2931
+ flash?: {
2932
+ consume?: string[] | undefined;
2933
+ publish?: {
2934
+ key: string;
2935
+ level?: "info" | "success" | "warning" | "error" | undefined;
2936
+ when?: "success" | "error" | "always" | undefined;
2937
+ }[] | undefined;
2938
+ } | undefined;
2939
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
2940
+ csrf?: boolean | undefined;
2941
+ }>>;
2942
+ fragment: z.ZodOptional<z.ZodObject<{
2943
+ target: z.ZodString;
2944
+ selector: z.ZodOptional<z.ZodString>;
2945
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
2946
+ }, "strict", z.ZodTypeAny, {
2947
+ target: string;
2948
+ mode?: "replace" | "append" | "prepend" | undefined;
2949
+ selector?: string | undefined;
2950
+ }, {
2951
+ target: string;
2952
+ mode?: "replace" | "append" | "prepend" | undefined;
2953
+ selector?: string | undefined;
2954
+ }>>;
849
2955
  input: z.ZodOptional<z.ZodObject<{
850
2956
  params: z.ZodOptional<z.ZodOptional<z.ZodObject<{
851
2957
  kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
@@ -942,7 +3048,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
942
3048
  source?: string | undefined;
943
3049
  } | undefined;
944
3050
  }>>;
945
- output: z.ZodOptional<z.ZodObject<{
3051
+ output: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
946
3052
  body: z.ZodObject<{
947
3053
  kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
948
3054
  name: z.ZodString;
@@ -970,7 +3076,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
970
3076
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
971
3077
  source?: string | undefined;
972
3078
  }>>;
973
- }, "strip", z.ZodTypeAny, {
3079
+ }, "strict", z.ZodTypeAny, {
974
3080
  body: {
975
3081
  kind: "zod" | "json-schema" | "ts-rest";
976
3082
  name: string;
@@ -994,7 +3100,389 @@ export declare const moduleManifestSchema: z.ZodObject<{
994
3100
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
995
3101
  source?: string | undefined;
996
3102
  } | undefined;
997
- }>>;
3103
+ }>, z.ZodObject<{
3104
+ redirect: z.ZodObject<{
3105
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
3106
+ location: z.ZodOptional<z.ZodString>;
3107
+ }, "strict", z.ZodTypeAny, {
3108
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3109
+ location?: string | undefined;
3110
+ }, {
3111
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3112
+ location?: string | undefined;
3113
+ }>;
3114
+ status: z.ZodOptional<z.ZodNumber>;
3115
+ headers: z.ZodOptional<z.ZodObject<{
3116
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3117
+ name: z.ZodString;
3118
+ source: z.ZodOptional<z.ZodString>;
3119
+ }, "strip", z.ZodTypeAny, {
3120
+ kind: "zod" | "json-schema" | "ts-rest";
3121
+ name: string;
3122
+ source?: string | undefined;
3123
+ }, {
3124
+ name: string;
3125
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3126
+ source?: string | undefined;
3127
+ }>>;
3128
+ }, "strict", z.ZodTypeAny, {
3129
+ redirect: {
3130
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3131
+ location?: string | undefined;
3132
+ };
3133
+ status?: number | undefined;
3134
+ headers?: {
3135
+ kind: "zod" | "json-schema" | "ts-rest";
3136
+ name: string;
3137
+ source?: string | undefined;
3138
+ } | undefined;
3139
+ }, {
3140
+ redirect: {
3141
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3142
+ location?: string | undefined;
3143
+ };
3144
+ status?: number | undefined;
3145
+ headers?: {
3146
+ name: string;
3147
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3148
+ source?: string | undefined;
3149
+ } | undefined;
3150
+ }>, z.ZodObject<{
3151
+ body: z.ZodObject<{
3152
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3153
+ name: z.ZodString;
3154
+ source: z.ZodOptional<z.ZodString>;
3155
+ }, "strip", z.ZodTypeAny, {
3156
+ kind: "zod" | "json-schema" | "ts-rest";
3157
+ name: string;
3158
+ source?: string | undefined;
3159
+ }, {
3160
+ name: string;
3161
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3162
+ source?: string | undefined;
3163
+ }>;
3164
+ fragment: z.ZodObject<{
3165
+ target: z.ZodString;
3166
+ selector: z.ZodOptional<z.ZodString>;
3167
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
3168
+ }, "strict", z.ZodTypeAny, {
3169
+ target: string;
3170
+ mode?: "replace" | "append" | "prepend" | undefined;
3171
+ selector?: string | undefined;
3172
+ }, {
3173
+ target: string;
3174
+ mode?: "replace" | "append" | "prepend" | undefined;
3175
+ selector?: string | undefined;
3176
+ }>;
3177
+ status: z.ZodOptional<z.ZodNumber>;
3178
+ headers: z.ZodOptional<z.ZodObject<{
3179
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3180
+ name: z.ZodString;
3181
+ source: z.ZodOptional<z.ZodString>;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ kind: "zod" | "json-schema" | "ts-rest";
3184
+ name: string;
3185
+ source?: string | undefined;
3186
+ }, {
3187
+ name: string;
3188
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3189
+ source?: string | undefined;
3190
+ }>>;
3191
+ }, "strict", z.ZodTypeAny, {
3192
+ body: {
3193
+ kind: "zod" | "json-schema" | "ts-rest";
3194
+ name: string;
3195
+ source?: string | undefined;
3196
+ };
3197
+ fragment: {
3198
+ target: string;
3199
+ mode?: "replace" | "append" | "prepend" | undefined;
3200
+ selector?: string | undefined;
3201
+ };
3202
+ status?: number | undefined;
3203
+ headers?: {
3204
+ kind: "zod" | "json-schema" | "ts-rest";
3205
+ name: string;
3206
+ source?: string | undefined;
3207
+ } | undefined;
3208
+ }, {
3209
+ body: {
3210
+ name: string;
3211
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3212
+ source?: string | undefined;
3213
+ };
3214
+ fragment: {
3215
+ target: string;
3216
+ mode?: "replace" | "append" | "prepend" | undefined;
3217
+ selector?: string | undefined;
3218
+ };
3219
+ status?: number | undefined;
3220
+ headers?: {
3221
+ name: string;
3222
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3223
+ source?: string | undefined;
3224
+ } | undefined;
3225
+ }>]>, z.ZodObject<{
3226
+ responses: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3227
+ body: z.ZodObject<{
3228
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3229
+ name: z.ZodString;
3230
+ source: z.ZodOptional<z.ZodString>;
3231
+ }, "strip", z.ZodTypeAny, {
3232
+ kind: "zod" | "json-schema" | "ts-rest";
3233
+ name: string;
3234
+ source?: string | undefined;
3235
+ }, {
3236
+ name: string;
3237
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3238
+ source?: string | undefined;
3239
+ }>;
3240
+ status: z.ZodOptional<z.ZodNumber>;
3241
+ headers: z.ZodOptional<z.ZodObject<{
3242
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3243
+ name: z.ZodString;
3244
+ source: z.ZodOptional<z.ZodString>;
3245
+ }, "strip", z.ZodTypeAny, {
3246
+ kind: "zod" | "json-schema" | "ts-rest";
3247
+ name: string;
3248
+ source?: string | undefined;
3249
+ }, {
3250
+ name: string;
3251
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3252
+ source?: string | undefined;
3253
+ }>>;
3254
+ }, "strict", z.ZodTypeAny, {
3255
+ body: {
3256
+ kind: "zod" | "json-schema" | "ts-rest";
3257
+ name: string;
3258
+ source?: string | undefined;
3259
+ };
3260
+ status?: number | undefined;
3261
+ headers?: {
3262
+ kind: "zod" | "json-schema" | "ts-rest";
3263
+ name: string;
3264
+ source?: string | undefined;
3265
+ } | undefined;
3266
+ }, {
3267
+ body: {
3268
+ name: string;
3269
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3270
+ source?: string | undefined;
3271
+ };
3272
+ status?: number | undefined;
3273
+ headers?: {
3274
+ name: string;
3275
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3276
+ source?: string | undefined;
3277
+ } | undefined;
3278
+ }>, z.ZodObject<{
3279
+ redirect: z.ZodObject<{
3280
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<301>, z.ZodLiteral<302>, z.ZodLiteral<303>, z.ZodLiteral<307>, z.ZodLiteral<308>]>>;
3281
+ location: z.ZodOptional<z.ZodString>;
3282
+ }, "strict", z.ZodTypeAny, {
3283
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3284
+ location?: string | undefined;
3285
+ }, {
3286
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3287
+ location?: string | undefined;
3288
+ }>;
3289
+ status: z.ZodOptional<z.ZodNumber>;
3290
+ headers: z.ZodOptional<z.ZodObject<{
3291
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3292
+ name: z.ZodString;
3293
+ source: z.ZodOptional<z.ZodString>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ kind: "zod" | "json-schema" | "ts-rest";
3296
+ name: string;
3297
+ source?: string | undefined;
3298
+ }, {
3299
+ name: string;
3300
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3301
+ source?: string | undefined;
3302
+ }>>;
3303
+ }, "strict", z.ZodTypeAny, {
3304
+ redirect: {
3305
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3306
+ location?: string | undefined;
3307
+ };
3308
+ status?: number | undefined;
3309
+ headers?: {
3310
+ kind: "zod" | "json-schema" | "ts-rest";
3311
+ name: string;
3312
+ source?: string | undefined;
3313
+ } | undefined;
3314
+ }, {
3315
+ redirect: {
3316
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3317
+ location?: string | undefined;
3318
+ };
3319
+ status?: number | undefined;
3320
+ headers?: {
3321
+ name: string;
3322
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3323
+ source?: string | undefined;
3324
+ } | undefined;
3325
+ }>, z.ZodObject<{
3326
+ body: z.ZodObject<{
3327
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3328
+ name: z.ZodString;
3329
+ source: z.ZodOptional<z.ZodString>;
3330
+ }, "strip", z.ZodTypeAny, {
3331
+ kind: "zod" | "json-schema" | "ts-rest";
3332
+ name: string;
3333
+ source?: string | undefined;
3334
+ }, {
3335
+ name: string;
3336
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3337
+ source?: string | undefined;
3338
+ }>;
3339
+ fragment: z.ZodObject<{
3340
+ target: z.ZodString;
3341
+ selector: z.ZodOptional<z.ZodString>;
3342
+ mode: z.ZodOptional<z.ZodEnum<["replace", "append", "prepend"]>>;
3343
+ }, "strict", z.ZodTypeAny, {
3344
+ target: string;
3345
+ mode?: "replace" | "append" | "prepend" | undefined;
3346
+ selector?: string | undefined;
3347
+ }, {
3348
+ target: string;
3349
+ mode?: "replace" | "append" | "prepend" | undefined;
3350
+ selector?: string | undefined;
3351
+ }>;
3352
+ status: z.ZodOptional<z.ZodNumber>;
3353
+ headers: z.ZodOptional<z.ZodObject<{
3354
+ kind: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "ts-rest"]>>;
3355
+ name: z.ZodString;
3356
+ source: z.ZodOptional<z.ZodString>;
3357
+ }, "strip", z.ZodTypeAny, {
3358
+ kind: "zod" | "json-schema" | "ts-rest";
3359
+ name: string;
3360
+ source?: string | undefined;
3361
+ }, {
3362
+ name: string;
3363
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3364
+ source?: string | undefined;
3365
+ }>>;
3366
+ }, "strict", z.ZodTypeAny, {
3367
+ body: {
3368
+ kind: "zod" | "json-schema" | "ts-rest";
3369
+ name: string;
3370
+ source?: string | undefined;
3371
+ };
3372
+ fragment: {
3373
+ target: string;
3374
+ mode?: "replace" | "append" | "prepend" | undefined;
3375
+ selector?: string | undefined;
3376
+ };
3377
+ status?: number | undefined;
3378
+ headers?: {
3379
+ kind: "zod" | "json-schema" | "ts-rest";
3380
+ name: string;
3381
+ source?: string | undefined;
3382
+ } | undefined;
3383
+ }, {
3384
+ body: {
3385
+ name: string;
3386
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3387
+ source?: string | undefined;
3388
+ };
3389
+ fragment: {
3390
+ target: string;
3391
+ mode?: "replace" | "append" | "prepend" | undefined;
3392
+ selector?: string | undefined;
3393
+ };
3394
+ status?: number | undefined;
3395
+ headers?: {
3396
+ name: string;
3397
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3398
+ source?: string | undefined;
3399
+ } | undefined;
3400
+ }>]>, "many">;
3401
+ }, "strict", z.ZodTypeAny, {
3402
+ responses: ({
3403
+ body: {
3404
+ kind: "zod" | "json-schema" | "ts-rest";
3405
+ name: string;
3406
+ source?: string | undefined;
3407
+ };
3408
+ status?: number | undefined;
3409
+ headers?: {
3410
+ kind: "zod" | "json-schema" | "ts-rest";
3411
+ name: string;
3412
+ source?: string | undefined;
3413
+ } | undefined;
3414
+ } | {
3415
+ redirect: {
3416
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3417
+ location?: string | undefined;
3418
+ };
3419
+ status?: number | undefined;
3420
+ headers?: {
3421
+ kind: "zod" | "json-schema" | "ts-rest";
3422
+ name: string;
3423
+ source?: string | undefined;
3424
+ } | undefined;
3425
+ } | {
3426
+ body: {
3427
+ kind: "zod" | "json-schema" | "ts-rest";
3428
+ name: string;
3429
+ source?: string | undefined;
3430
+ };
3431
+ fragment: {
3432
+ target: string;
3433
+ mode?: "replace" | "append" | "prepend" | undefined;
3434
+ selector?: string | undefined;
3435
+ };
3436
+ status?: number | undefined;
3437
+ headers?: {
3438
+ kind: "zod" | "json-schema" | "ts-rest";
3439
+ name: string;
3440
+ source?: string | undefined;
3441
+ } | undefined;
3442
+ })[];
3443
+ }, {
3444
+ responses: ({
3445
+ body: {
3446
+ name: string;
3447
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3448
+ source?: string | undefined;
3449
+ };
3450
+ status?: number | undefined;
3451
+ headers?: {
3452
+ name: string;
3453
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3454
+ source?: string | undefined;
3455
+ } | undefined;
3456
+ } | {
3457
+ redirect: {
3458
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3459
+ location?: string | undefined;
3460
+ };
3461
+ status?: number | undefined;
3462
+ headers?: {
3463
+ name: string;
3464
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3465
+ source?: string | undefined;
3466
+ } | undefined;
3467
+ } | {
3468
+ body: {
3469
+ name: string;
3470
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3471
+ source?: string | undefined;
3472
+ };
3473
+ fragment: {
3474
+ target: string;
3475
+ mode?: "replace" | "append" | "prepend" | undefined;
3476
+ selector?: string | undefined;
3477
+ };
3478
+ status?: number | undefined;
3479
+ headers?: {
3480
+ name: string;
3481
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3482
+ source?: string | undefined;
3483
+ } | undefined;
3484
+ })[];
3485
+ }>]>>;
998
3486
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
999
3487
  code: z.ZodEnum<["validation", "auth", "not_found", "domain", "conflict", "internal"]>;
1000
3488
  message: z.ZodString;
@@ -1037,6 +3525,43 @@ export declare const moduleManifestSchema: z.ZodObject<{
1037
3525
  cause?: unknown;
1038
3526
  correlationId?: string | undefined;
1039
3527
  }[] | undefined;
3528
+ interaction?: "navigation" | "mutation" | undefined;
3529
+ requestHooks?: {
3530
+ id: string;
3531
+ }[] | undefined;
3532
+ session?: {
3533
+ mode?: "optional" | "required" | undefined;
3534
+ write?: boolean | undefined;
3535
+ } | undefined;
3536
+ flash?: {
3537
+ consume?: string[] | undefined;
3538
+ publish?: {
3539
+ key: string;
3540
+ level?: "info" | "success" | "warning" | "error" | undefined;
3541
+ when?: "success" | "error" | "always" | undefined;
3542
+ }[] | undefined;
3543
+ } | undefined;
3544
+ form?: {
3545
+ session?: {
3546
+ mode?: "optional" | "required" | undefined;
3547
+ write?: boolean | undefined;
3548
+ } | undefined;
3549
+ flash?: {
3550
+ consume?: string[] | undefined;
3551
+ publish?: {
3552
+ key: string;
3553
+ level?: "info" | "success" | "warning" | "error" | undefined;
3554
+ when?: "success" | "error" | "always" | undefined;
3555
+ }[] | undefined;
3556
+ } | undefined;
3557
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
3558
+ csrf?: boolean | undefined;
3559
+ } | undefined;
3560
+ fragment?: {
3561
+ target: string;
3562
+ mode?: "replace" | "append" | "prepend" | undefined;
3563
+ selector?: string | undefined;
3564
+ } | undefined;
1040
3565
  input?: {
1041
3566
  params?: {
1042
3567
  kind: "zod" | "json-schema" | "ts-rest";
@@ -1071,6 +3596,76 @@ export declare const moduleManifestSchema: z.ZodObject<{
1071
3596
  name: string;
1072
3597
  source?: string | undefined;
1073
3598
  } | undefined;
3599
+ } | {
3600
+ redirect: {
3601
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3602
+ location?: string | undefined;
3603
+ };
3604
+ status?: number | undefined;
3605
+ headers?: {
3606
+ kind: "zod" | "json-schema" | "ts-rest";
3607
+ name: string;
3608
+ source?: string | undefined;
3609
+ } | undefined;
3610
+ } | {
3611
+ body: {
3612
+ kind: "zod" | "json-schema" | "ts-rest";
3613
+ name: string;
3614
+ source?: string | undefined;
3615
+ };
3616
+ fragment: {
3617
+ target: string;
3618
+ mode?: "replace" | "append" | "prepend" | undefined;
3619
+ selector?: string | undefined;
3620
+ };
3621
+ status?: number | undefined;
3622
+ headers?: {
3623
+ kind: "zod" | "json-schema" | "ts-rest";
3624
+ name: string;
3625
+ source?: string | undefined;
3626
+ } | undefined;
3627
+ } | {
3628
+ responses: ({
3629
+ body: {
3630
+ kind: "zod" | "json-schema" | "ts-rest";
3631
+ name: string;
3632
+ source?: string | undefined;
3633
+ };
3634
+ status?: number | undefined;
3635
+ headers?: {
3636
+ kind: "zod" | "json-schema" | "ts-rest";
3637
+ name: string;
3638
+ source?: string | undefined;
3639
+ } | undefined;
3640
+ } | {
3641
+ redirect: {
3642
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3643
+ location?: string | undefined;
3644
+ };
3645
+ status?: number | undefined;
3646
+ headers?: {
3647
+ kind: "zod" | "json-schema" | "ts-rest";
3648
+ name: string;
3649
+ source?: string | undefined;
3650
+ } | undefined;
3651
+ } | {
3652
+ body: {
3653
+ kind: "zod" | "json-schema" | "ts-rest";
3654
+ name: string;
3655
+ source?: string | undefined;
3656
+ };
3657
+ fragment: {
3658
+ target: string;
3659
+ mode?: "replace" | "append" | "prepend" | undefined;
3660
+ selector?: string | undefined;
3661
+ };
3662
+ status?: number | undefined;
3663
+ headers?: {
3664
+ kind: "zod" | "json-schema" | "ts-rest";
3665
+ name: string;
3666
+ source?: string | undefined;
3667
+ } | undefined;
3668
+ })[];
1074
3669
  } | undefined;
1075
3670
  ssg?: {
1076
3671
  revalidateSeconds?: number | undefined;
@@ -1091,6 +3686,43 @@ export declare const moduleManifestSchema: z.ZodObject<{
1091
3686
  cause?: unknown;
1092
3687
  correlationId?: string | undefined;
1093
3688
  }[] | undefined;
3689
+ interaction?: "navigation" | "mutation" | undefined;
3690
+ requestHooks?: {
3691
+ id: string;
3692
+ }[] | undefined;
3693
+ session?: {
3694
+ mode?: "optional" | "required" | undefined;
3695
+ write?: boolean | undefined;
3696
+ } | undefined;
3697
+ flash?: {
3698
+ consume?: string[] | undefined;
3699
+ publish?: {
3700
+ key: string;
3701
+ level?: "info" | "success" | "warning" | "error" | undefined;
3702
+ when?: "success" | "error" | "always" | undefined;
3703
+ }[] | undefined;
3704
+ } | undefined;
3705
+ form?: {
3706
+ session?: {
3707
+ mode?: "optional" | "required" | undefined;
3708
+ write?: boolean | undefined;
3709
+ } | undefined;
3710
+ flash?: {
3711
+ consume?: string[] | undefined;
3712
+ publish?: {
3713
+ key: string;
3714
+ level?: "info" | "success" | "warning" | "error" | undefined;
3715
+ when?: "success" | "error" | "always" | undefined;
3716
+ }[] | undefined;
3717
+ } | undefined;
3718
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
3719
+ csrf?: boolean | undefined;
3720
+ } | undefined;
3721
+ fragment?: {
3722
+ target: string;
3723
+ mode?: "replace" | "append" | "prepend" | undefined;
3724
+ selector?: string | undefined;
3725
+ } | undefined;
1094
3726
  input?: {
1095
3727
  params?: {
1096
3728
  name: string;
@@ -1125,6 +3757,76 @@ export declare const moduleManifestSchema: z.ZodObject<{
1125
3757
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1126
3758
  source?: string | undefined;
1127
3759
  } | undefined;
3760
+ } | {
3761
+ redirect: {
3762
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3763
+ location?: string | undefined;
3764
+ };
3765
+ status?: number | undefined;
3766
+ headers?: {
3767
+ name: string;
3768
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3769
+ source?: string | undefined;
3770
+ } | undefined;
3771
+ } | {
3772
+ body: {
3773
+ name: string;
3774
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3775
+ source?: string | undefined;
3776
+ };
3777
+ fragment: {
3778
+ target: string;
3779
+ mode?: "replace" | "append" | "prepend" | undefined;
3780
+ selector?: string | undefined;
3781
+ };
3782
+ status?: number | undefined;
3783
+ headers?: {
3784
+ name: string;
3785
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3786
+ source?: string | undefined;
3787
+ } | undefined;
3788
+ } | {
3789
+ responses: ({
3790
+ body: {
3791
+ name: string;
3792
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3793
+ source?: string | undefined;
3794
+ };
3795
+ status?: number | undefined;
3796
+ headers?: {
3797
+ name: string;
3798
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3799
+ source?: string | undefined;
3800
+ } | undefined;
3801
+ } | {
3802
+ redirect: {
3803
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
3804
+ location?: string | undefined;
3805
+ };
3806
+ status?: number | undefined;
3807
+ headers?: {
3808
+ name: string;
3809
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3810
+ source?: string | undefined;
3811
+ } | undefined;
3812
+ } | {
3813
+ body: {
3814
+ name: string;
3815
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3816
+ source?: string | undefined;
3817
+ };
3818
+ fragment: {
3819
+ target: string;
3820
+ mode?: "replace" | "append" | "prepend" | undefined;
3821
+ selector?: string | undefined;
3822
+ };
3823
+ status?: number | undefined;
3824
+ headers?: {
3825
+ name: string;
3826
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
3827
+ source?: string | undefined;
3828
+ } | undefined;
3829
+ })[];
1128
3830
  } | undefined;
1129
3831
  ssg?: {
1130
3832
  revalidateSeconds?: number | undefined;
@@ -1282,9 +3984,15 @@ export declare const moduleManifestSchema: z.ZodObject<{
1282
3984
  name: string;
1283
3985
  contractVersion: string;
1284
3986
  version: string;
3987
+ requestHooks?: {
3988
+ id: string;
3989
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
3990
+ order: number;
3991
+ summary?: string | undefined;
3992
+ description?: string | undefined;
3993
+ }[] | undefined;
1285
3994
  capabilities?: string[] | undefined;
1286
3995
  assets?: string[] | undefined;
1287
- middlewares?: string[] | undefined;
1288
3996
  routes?: {
1289
3997
  name: string;
1290
3998
  path: string;
@@ -1299,6 +4007,43 @@ export declare const moduleManifestSchema: z.ZodObject<{
1299
4007
  cause?: unknown;
1300
4008
  correlationId?: string | undefined;
1301
4009
  }[] | undefined;
4010
+ interaction?: "navigation" | "mutation" | undefined;
4011
+ requestHooks?: {
4012
+ id: string;
4013
+ }[] | undefined;
4014
+ session?: {
4015
+ mode?: "optional" | "required" | undefined;
4016
+ write?: boolean | undefined;
4017
+ } | undefined;
4018
+ flash?: {
4019
+ consume?: string[] | undefined;
4020
+ publish?: {
4021
+ key: string;
4022
+ level?: "info" | "success" | "warning" | "error" | undefined;
4023
+ when?: "success" | "error" | "always" | undefined;
4024
+ }[] | undefined;
4025
+ } | undefined;
4026
+ form?: {
4027
+ session?: {
4028
+ mode?: "optional" | "required" | undefined;
4029
+ write?: boolean | undefined;
4030
+ } | undefined;
4031
+ flash?: {
4032
+ consume?: string[] | undefined;
4033
+ publish?: {
4034
+ key: string;
4035
+ level?: "info" | "success" | "warning" | "error" | undefined;
4036
+ when?: "success" | "error" | "always" | undefined;
4037
+ }[] | undefined;
4038
+ } | undefined;
4039
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
4040
+ csrf?: boolean | undefined;
4041
+ } | undefined;
4042
+ fragment?: {
4043
+ target: string;
4044
+ mode?: "replace" | "append" | "prepend" | undefined;
4045
+ selector?: string | undefined;
4046
+ } | undefined;
1302
4047
  input?: {
1303
4048
  params?: {
1304
4049
  kind: "zod" | "json-schema" | "ts-rest";
@@ -1333,6 +4078,76 @@ export declare const moduleManifestSchema: z.ZodObject<{
1333
4078
  name: string;
1334
4079
  source?: string | undefined;
1335
4080
  } | undefined;
4081
+ } | {
4082
+ redirect: {
4083
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
4084
+ location?: string | undefined;
4085
+ };
4086
+ status?: number | undefined;
4087
+ headers?: {
4088
+ kind: "zod" | "json-schema" | "ts-rest";
4089
+ name: string;
4090
+ source?: string | undefined;
4091
+ } | undefined;
4092
+ } | {
4093
+ body: {
4094
+ kind: "zod" | "json-schema" | "ts-rest";
4095
+ name: string;
4096
+ source?: string | undefined;
4097
+ };
4098
+ fragment: {
4099
+ target: string;
4100
+ mode?: "replace" | "append" | "prepend" | undefined;
4101
+ selector?: string | undefined;
4102
+ };
4103
+ status?: number | undefined;
4104
+ headers?: {
4105
+ kind: "zod" | "json-schema" | "ts-rest";
4106
+ name: string;
4107
+ source?: string | undefined;
4108
+ } | undefined;
4109
+ } | {
4110
+ responses: ({
4111
+ body: {
4112
+ kind: "zod" | "json-schema" | "ts-rest";
4113
+ name: string;
4114
+ source?: string | undefined;
4115
+ };
4116
+ status?: number | undefined;
4117
+ headers?: {
4118
+ kind: "zod" | "json-schema" | "ts-rest";
4119
+ name: string;
4120
+ source?: string | undefined;
4121
+ } | undefined;
4122
+ } | {
4123
+ redirect: {
4124
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
4125
+ location?: string | undefined;
4126
+ };
4127
+ status?: number | undefined;
4128
+ headers?: {
4129
+ kind: "zod" | "json-schema" | "ts-rest";
4130
+ name: string;
4131
+ source?: string | undefined;
4132
+ } | undefined;
4133
+ } | {
4134
+ body: {
4135
+ kind: "zod" | "json-schema" | "ts-rest";
4136
+ name: string;
4137
+ source?: string | undefined;
4138
+ };
4139
+ fragment: {
4140
+ target: string;
4141
+ mode?: "replace" | "append" | "prepend" | undefined;
4142
+ selector?: string | undefined;
4143
+ };
4144
+ status?: number | undefined;
4145
+ headers?: {
4146
+ kind: "zod" | "json-schema" | "ts-rest";
4147
+ name: string;
4148
+ source?: string | undefined;
4149
+ } | undefined;
4150
+ })[];
1336
4151
  } | undefined;
1337
4152
  ssg?: {
1338
4153
  revalidateSeconds?: number | undefined;
@@ -1388,9 +4203,15 @@ export declare const moduleManifestSchema: z.ZodObject<{
1388
4203
  name: string;
1389
4204
  contractVersion: string;
1390
4205
  version: string;
4206
+ requestHooks?: {
4207
+ id: string;
4208
+ phase: "beforeAuth" | "beforeHandler" | "afterHandler";
4209
+ order: number;
4210
+ summary?: string | undefined;
4211
+ description?: string | undefined;
4212
+ }[] | undefined;
1391
4213
  capabilities?: string[] | undefined;
1392
4214
  assets?: string[] | undefined;
1393
- middlewares?: string[] | undefined;
1394
4215
  routes?: {
1395
4216
  name: string;
1396
4217
  path: string;
@@ -1405,6 +4226,43 @@ export declare const moduleManifestSchema: z.ZodObject<{
1405
4226
  cause?: unknown;
1406
4227
  correlationId?: string | undefined;
1407
4228
  }[] | undefined;
4229
+ interaction?: "navigation" | "mutation" | undefined;
4230
+ requestHooks?: {
4231
+ id: string;
4232
+ }[] | undefined;
4233
+ session?: {
4234
+ mode?: "optional" | "required" | undefined;
4235
+ write?: boolean | undefined;
4236
+ } | undefined;
4237
+ flash?: {
4238
+ consume?: string[] | undefined;
4239
+ publish?: {
4240
+ key: string;
4241
+ level?: "info" | "success" | "warning" | "error" | undefined;
4242
+ when?: "success" | "error" | "always" | undefined;
4243
+ }[] | undefined;
4244
+ } | undefined;
4245
+ form?: {
4246
+ session?: {
4247
+ mode?: "optional" | "required" | undefined;
4248
+ write?: boolean | undefined;
4249
+ } | undefined;
4250
+ flash?: {
4251
+ consume?: string[] | undefined;
4252
+ publish?: {
4253
+ key: string;
4254
+ level?: "info" | "success" | "warning" | "error" | undefined;
4255
+ when?: "success" | "error" | "always" | undefined;
4256
+ }[] | undefined;
4257
+ } | undefined;
4258
+ contentType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | undefined;
4259
+ csrf?: boolean | undefined;
4260
+ } | undefined;
4261
+ fragment?: {
4262
+ target: string;
4263
+ mode?: "replace" | "append" | "prepend" | undefined;
4264
+ selector?: string | undefined;
4265
+ } | undefined;
1408
4266
  input?: {
1409
4267
  params?: {
1410
4268
  name: string;
@@ -1439,6 +4297,76 @@ export declare const moduleManifestSchema: z.ZodObject<{
1439
4297
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
1440
4298
  source?: string | undefined;
1441
4299
  } | undefined;
4300
+ } | {
4301
+ redirect: {
4302
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
4303
+ location?: string | undefined;
4304
+ };
4305
+ status?: number | undefined;
4306
+ headers?: {
4307
+ name: string;
4308
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4309
+ source?: string | undefined;
4310
+ } | undefined;
4311
+ } | {
4312
+ body: {
4313
+ name: string;
4314
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4315
+ source?: string | undefined;
4316
+ };
4317
+ fragment: {
4318
+ target: string;
4319
+ mode?: "replace" | "append" | "prepend" | undefined;
4320
+ selector?: string | undefined;
4321
+ };
4322
+ status?: number | undefined;
4323
+ headers?: {
4324
+ name: string;
4325
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4326
+ source?: string | undefined;
4327
+ } | undefined;
4328
+ } | {
4329
+ responses: ({
4330
+ body: {
4331
+ name: string;
4332
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4333
+ source?: string | undefined;
4334
+ };
4335
+ status?: number | undefined;
4336
+ headers?: {
4337
+ name: string;
4338
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4339
+ source?: string | undefined;
4340
+ } | undefined;
4341
+ } | {
4342
+ redirect: {
4343
+ status?: 301 | 302 | 303 | 307 | 308 | undefined;
4344
+ location?: string | undefined;
4345
+ };
4346
+ status?: number | undefined;
4347
+ headers?: {
4348
+ name: string;
4349
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4350
+ source?: string | undefined;
4351
+ } | undefined;
4352
+ } | {
4353
+ body: {
4354
+ name: string;
4355
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4356
+ source?: string | undefined;
4357
+ };
4358
+ fragment: {
4359
+ target: string;
4360
+ mode?: "replace" | "append" | "prepend" | undefined;
4361
+ selector?: string | undefined;
4362
+ };
4363
+ status?: number | undefined;
4364
+ headers?: {
4365
+ name: string;
4366
+ kind?: "zod" | "json-schema" | "ts-rest" | undefined;
4367
+ source?: string | undefined;
4368
+ } | undefined;
4369
+ })[];
1442
4370
  } | undefined;
1443
4371
  ssg?: {
1444
4372
  revalidateSeconds?: number | undefined;
@@ -1496,7 +4424,7 @@ export interface ModuleLifecycleContext {
1496
4424
  readonly logger: Logger;
1497
4425
  }
1498
4426
  export type ModuleLifecycleHook = (context: ModuleLifecycleContext) => Promise<void> | void;
1499
- export interface ModuleDefinition<TRequestContext extends RequestContext = RequestContext, TSSRContext extends SSRContext = SSRContext, TRoutes extends readonly RouteSpec<TRequestContext, any, any, any, any>[] = readonly RouteSpec<TRequestContext, any, any, any, any>[], TViews extends readonly ViewSpec<TSSRContext, any, any>[] = readonly ViewSpec<TSSRContext, any, any>[]> {
4427
+ export interface ModuleDefinition<TRequestContext extends RequestContext = RequestContext, TSSRContext extends SSRContext = SSRContext, TRoutes extends readonly LooseRouteSpec<TRequestContext>[] = readonly LooseRouteSpec<TRequestContext>[], TViews extends readonly LooseViewSpec<TSSRContext>[] = readonly LooseViewSpec<TSSRContext>[]> {
1500
4428
  readonly manifest: ModuleManifest;
1501
4429
  readonly routes?: TRoutes;
1502
4430
  readonly views?: TViews;
@@ -1520,6 +4448,6 @@ export interface QueueProviderCapability {
1520
4448
  }
1521
4449
  export declare function defineRoute<TContext extends RequestContext, TParams extends z.ZodTypeAny | undefined = undefined, TQuery extends z.ZodTypeAny | undefined = undefined, TBody extends z.ZodTypeAny | undefined = undefined, TResponse extends z.ZodTypeAny = z.ZodTypeAny>(spec: RouteSpec<TContext, TParams, TQuery, TBody, TResponse>): RouteSpec<TContext, TParams, TQuery, TBody, TResponse>;
1522
4450
  export declare function defineView<TContext extends SSRContext, TParams extends z.ZodTypeAny | undefined = undefined, TData extends z.ZodTypeAny = z.ZodTypeAny>(spec: ViewSpec<TContext, TParams, TData>): ViewSpec<TContext, TParams, TData>;
1523
- export declare function createModule<TRequestContext extends RequestContext, TSSRContext extends SSRContext, TRoutes extends readonly RouteSpec<TRequestContext, any, any, any, any>[] = readonly RouteSpec<TRequestContext, any, any, any, any>[], TViews extends readonly ViewSpec<TSSRContext, any, any>[] = readonly ViewSpec<TSSRContext, any, any>[]>(definition: ModuleDefinition<TRequestContext, TSSRContext, TRoutes, TViews>): ModuleDefinition<TRequestContext, TSSRContext, TRoutes, TViews>;
4451
+ export declare function createModule<TRequestContext extends RequestContext, TSSRContext extends SSRContext, TRoutes extends readonly LooseRouteSpec<TRequestContext>[] = readonly LooseRouteSpec<TRequestContext>[], TViews extends readonly LooseViewSpec<TSSRContext>[] = readonly LooseViewSpec<TSSRContext>[]>(definition: ModuleDefinition<TRequestContext, TSSRContext, TRoutes, TViews>): ModuleDefinition<TRequestContext, TSSRContext, TRoutes, TViews>;
1524
4452
  export { fromTsRestRoute, fromTsRestRouter } from './adapters/ts-rest.js';
1525
- export type { FromTsRestRouteOptions, FromTsRestRouterOptions, RouterRouteConfig } from './adapters/ts-rest.js';
4453
+ export type { FromTsRestRouteOptions, FromTsRestRouterOptions, RouterRouteConfig, } from './adapters/ts-rest.js';