tempest-express-sdk 0.20.0 → 0.21.0

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.cts CHANGED
@@ -348,21 +348,11 @@ declare function toDict(data: Record<string, unknown>, options?: ToDictOptions):
348
348
  * `baseResponseSchema.extend({ ... })` to build concrete `*ResponseSchema`s.
349
349
  */
350
350
  declare const baseResponseSchema: z.ZodObject<{
351
- id: z.ZodString;
351
+ id: z.ZodUUID;
352
352
  isActive: z.ZodBoolean;
353
- createdAt: z.ZodDate;
354
- updatedAt: z.ZodDate;
355
- }, "strip", z.ZodTypeAny, {
356
- id: string;
357
- isActive: boolean;
358
- createdAt: Date;
359
- updatedAt: Date;
360
- }, {
361
- id: string;
362
- isActive: boolean;
363
- createdAt: Date;
364
- updatedAt: Date;
365
- }>;
353
+ createdAt: z.ZodCoercedDate<unknown>;
354
+ updatedAt: z.ZodCoercedDate<unknown>;
355
+ }, z.core.$strip>;
366
356
  /** The inferred TS type of a {@link baseResponseSchema} payload. */
367
357
  type BaseResponse = z.infer<typeof baseResponseSchema>;
368
358
 
@@ -381,21 +371,11 @@ type BaseResponse = z.infer<typeof baseResponseSchema>;
381
371
  * to add domain filters; {@link getConditions} strips the pagination keys.
382
372
  */
383
373
  declare const paginationFilterSchema: z.ZodObject<{
384
- page: z.ZodDefault<z.ZodNumber>;
385
- pageSize: z.ZodDefault<z.ZodNumber>;
374
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
375
+ pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
386
376
  orderBy: z.ZodOptional<z.ZodString>;
387
- ascending: z.ZodDefault<z.ZodBoolean>;
388
- }, "strip", z.ZodTypeAny, {
389
- page: number;
390
- pageSize: number;
391
- ascending: boolean;
392
- orderBy?: string | undefined;
393
- }, {
394
- page?: number | undefined;
395
- pageSize?: number | undefined;
396
- orderBy?: string | undefined;
397
- ascending?: boolean | undefined;
398
- }>;
377
+ ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
378
+ }, z.core.$strip>;
399
379
  /** The parsed shape of {@link paginationFilterSchema}. */
400
380
  type PaginationFilter = z.infer<typeof paginationFilterSchema>;
401
381
  /**
@@ -424,42 +404,20 @@ declare function getPaginationConditions(filter: PaginationFilter): {
424
404
  * @param item - The zod schema for a single item.
425
405
  * @returns A zod object schema `{ items, total, page, pageSize, pages }`.
426
406
  */
427
- declare function paginationSchema<T extends z.ZodTypeAny>(item: T): z.ZodObject<{
428
- items: z.ZodArray<T, "many">;
407
+ declare function paginationSchema<T extends z.ZodType>(item: T): z.ZodObject<{
408
+ items: z.ZodArray<T>;
429
409
  total: z.ZodNumber;
430
410
  page: z.ZodNumber;
431
411
  pageSize: z.ZodNumber;
432
412
  pages: z.ZodNumber;
433
- }, "strip", z.ZodTypeAny, {
434
- items: T["_output"][];
435
- page: number;
436
- pageSize: number;
437
- total: number;
438
- pages: number;
439
- }, {
440
- items: T["_input"][];
441
- page: number;
442
- pageSize: number;
443
- total: number;
444
- pages: number;
445
- }>;
413
+ }, z.core.$strip>;
446
414
  /** Filter schema for cursor-paginated endpoints. */
447
415
  declare const cursorPaginationFilterSchema: z.ZodObject<{
448
416
  cursor: z.ZodOptional<z.ZodString>;
449
- limit: z.ZodDefault<z.ZodNumber>;
417
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
450
418
  orderBy: z.ZodDefault<z.ZodString>;
451
- ascending: z.ZodDefault<z.ZodBoolean>;
452
- }, "strip", z.ZodTypeAny, {
453
- orderBy: string;
454
- ascending: boolean;
455
- limit: number;
456
- cursor?: string | undefined;
457
- }, {
458
- orderBy?: string | undefined;
459
- ascending?: boolean | undefined;
460
- cursor?: string | undefined;
461
- limit?: number | undefined;
462
- }>;
419
+ ascending: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
420
+ }, z.core.$strip>;
463
421
  /** The parsed shape of {@link cursorPaginationFilterSchema}. */
464
422
  type CursorPaginationFilter = z.infer<typeof cursorPaginationFilterSchema>;
465
423
  /**
@@ -468,22 +426,12 @@ type CursorPaginationFilter = z.infer<typeof cursorPaginationFilterSchema>;
468
426
  * @param item - The zod schema for a single item.
469
427
  * @returns A zod object schema `{ items, nextCursor, hasMore, limit }`.
470
428
  */
471
- declare function cursorPaginationSchema<T extends z.ZodTypeAny>(item: T): z.ZodObject<{
472
- items: z.ZodArray<T, "many">;
429
+ declare function cursorPaginationSchema<T extends z.ZodType>(item: T): z.ZodObject<{
430
+ items: z.ZodArray<T>;
473
431
  nextCursor: z.ZodNullable<z.ZodString>;
474
432
  hasMore: z.ZodBoolean;
475
433
  limit: z.ZodNumber;
476
- }, "strip", z.ZodTypeAny, {
477
- items: T["_output"][];
478
- limit: number;
479
- nextCursor: string | null;
480
- hasMore: boolean;
481
- }, {
482
- items: T["_input"][];
483
- limit: number;
484
- nextCursor: string | null;
485
- hasMore: boolean;
486
- }>;
434
+ }, z.core.$strip>;
487
435
  /**
488
436
  * Serialize a cursor payload to an opaque URL-safe base64 string (no padding).
489
437
  *
@@ -531,7 +479,7 @@ declare const latitudeField: z.ZodNumber;
531
479
  /** A WGS-84 longitude (`-180..180`). */
532
480
  declare const longitudeField: z.ZodNumber;
533
481
  /** A non-empty string; whitespace is trimmed before the length check. */
534
- declare const nonEmptyStrField: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
482
+ declare const nonEmptyStrField: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
535
483
  /** A URL slug: lowercase alphanumerics separated by single hyphens. */
536
484
  declare const slugField: z.ZodString;
537
485
  /** A hex color: `#rgb` or `#rrggbb`. */
@@ -556,21 +504,11 @@ declare const priceField: z.ZodString;
556
504
  * filters; the sync keys stay reserved.
557
505
  */
558
506
  declare const syncFilterSchema: z.ZodObject<{
559
- since: z.ZodOptional<z.ZodDate>;
507
+ since: z.ZodOptional<z.ZodCoercedDate<unknown>>;
560
508
  cursor: z.ZodOptional<z.ZodString>;
561
- limit: z.ZodDefault<z.ZodNumber>;
562
- includeDeleted: z.ZodDefault<z.ZodBoolean>;
563
- }, "strip", z.ZodTypeAny, {
564
- limit: number;
565
- includeDeleted: boolean;
566
- cursor?: string | undefined;
567
- since?: Date | undefined;
568
- }, {
569
- cursor?: string | undefined;
570
- limit?: number | undefined;
571
- since?: Date | undefined;
572
- includeDeleted?: boolean | undefined;
573
- }>;
509
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
510
+ includeDeleted: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
511
+ }, z.core.$strip>;
574
512
  /** The parsed shape of {@link syncFilterSchema}. */
575
513
  type SyncFilter = z.infer<typeof syncFilterSchema>;
576
514
  /**
@@ -580,25 +518,13 @@ type SyncFilter = z.infer<typeof syncFilterSchema>;
580
518
  * @param item - The zod schema for a single item.
581
519
  * @returns A zod object `{ items, nextCursor, hasMore, limit, serverTime }`.
582
520
  */
583
- declare function syncPaginationSchema<T extends z.ZodTypeAny>(item: T): z.ZodObject<{
584
- items: z.ZodArray<T, "many">;
521
+ declare function syncPaginationSchema<T extends z.ZodType>(item: T): z.ZodObject<{
522
+ items: z.ZodArray<T>;
585
523
  nextCursor: z.ZodNullable<z.ZodString>;
586
524
  hasMore: z.ZodBoolean;
587
525
  limit: z.ZodNumber;
588
- serverTime: z.ZodDate;
589
- }, "strip", z.ZodTypeAny, {
590
- items: T["_output"][];
591
- limit: number;
592
- nextCursor: string | null;
593
- hasMore: boolean;
594
- serverTime: Date;
595
- }, {
596
- items: T["_input"][];
597
- limit: number;
598
- nextCursor: string | null;
599
- hasMore: boolean;
600
- serverTime: Date;
601
- }>;
526
+ serverTime: z.ZodCoercedDate<unknown>;
527
+ }, z.core.$strip>;
602
528
 
603
529
  /**
604
530
  * RFC-5988 pagination `Link` header builder, mirroring `schemas.link_headers`.
@@ -636,7 +562,7 @@ declare function buildPaginationLinkHeader(options: PaginationLinkOptions): stri
636
562
  * `logEntrySchema` — the shape of one structured log record, mirroring
637
563
  * `schemas.logs.LogEntrySchema`.
638
564
  *
639
- * Matches the JSON `JSONLogger` emits. It is intentionally open (`.passthrough()`)
565
+ * Matches the JSON `JSONLogger` emits. It is intentionally open (`.loose()`)
640
566
  * so arbitrary `extra` keys (`path`, `requestId`, `http_500`, …) survive instead
641
567
  * of being dropped — useful when a logs endpoint parses and returns records.
642
568
  */
@@ -649,21 +575,7 @@ declare const logEntrySchema: z.ZodObject<{
649
575
  message: z.ZodString;
650
576
  requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
577
  stack: z.ZodOptional<z.ZodNullable<z.ZodString>>;
652
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
653
- timestamp: z.ZodString;
654
- level: z.ZodString;
655
- logger: z.ZodString;
656
- message: z.ZodString;
657
- requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
658
- stack: z.ZodOptional<z.ZodNullable<z.ZodString>>;
659
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
660
- timestamp: z.ZodString;
661
- level: z.ZodString;
662
- logger: z.ZodString;
663
- message: z.ZodString;
664
- requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
- stack: z.ZodOptional<z.ZodNullable<z.ZodString>>;
666
- }, z.ZodTypeAny, "passthrough">>;
578
+ }, z.core.$loose>;
667
579
  /** The parsed shape of {@link logEntrySchema} (plus any extra keys). */
668
580
  type LogEntry = z.infer<typeof logEntrySchema>;
669
581
 
@@ -680,8 +592,8 @@ type LogEntry = z.infer<typeof logEntrySchema>;
680
592
  /** Server bind/runtime settings. Defaults bind to localhost. */
681
593
  declare const serverSettingsShape: {
682
594
  readonly HOST: z.ZodDefault<z.ZodString>;
683
- readonly PORT: z.ZodDefault<z.ZodNumber>;
684
- readonly DEBUG: z.ZodDefault<z.ZodBoolean>;
595
+ readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
596
+ readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
685
597
  };
686
598
  /** Database connection settings. */
687
599
  declare const databaseSettingsShape: {
@@ -689,36 +601,24 @@ declare const databaseSettingsShape: {
689
601
  };
690
602
  /** CORS settings. `CORS_ORIGINS` is a comma-separated list. */
691
603
  declare const corsSettingsShape: {
692
- readonly CORS_ORIGINS: z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
604
+ readonly CORS_ORIGINS: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
693
605
  };
694
606
  /** The combined base settings shape (server + database + CORS). */
695
607
  declare const baseAppSettingsShape: {
696
- readonly CORS_ORIGINS: z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
608
+ readonly CORS_ORIGINS: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
697
609
  readonly DATABASE_URL: z.ZodDefault<z.ZodString>;
698
610
  readonly HOST: z.ZodDefault<z.ZodString>;
699
- readonly PORT: z.ZodDefault<z.ZodNumber>;
700
- readonly DEBUG: z.ZodDefault<z.ZodBoolean>;
611
+ readonly PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
612
+ readonly DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
701
613
  };
702
614
  /** A zod object built from {@link baseAppSettingsShape}. */
703
615
  declare const baseAppSettingsSchema: z.ZodObject<{
704
- readonly CORS_ORIGINS: z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
705
- readonly DATABASE_URL: z.ZodDefault<z.ZodString>;
706
- readonly HOST: z.ZodDefault<z.ZodString>;
707
- readonly PORT: z.ZodDefault<z.ZodNumber>;
708
- readonly DEBUG: z.ZodDefault<z.ZodBoolean>;
709
- }, "strip", z.ZodTypeAny, {
710
- CORS_ORIGINS: string[];
711
- DATABASE_URL: string;
712
- HOST: string;
713
- PORT: number;
714
- DEBUG: boolean;
715
- }, {
716
- CORS_ORIGINS?: string | undefined;
717
- DATABASE_URL?: string | undefined;
718
- HOST?: string | undefined;
719
- PORT?: number | undefined;
720
- DEBUG?: boolean | undefined;
721
- }>;
616
+ CORS_ORIGINS: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
617
+ DATABASE_URL: z.ZodDefault<z.ZodString>;
618
+ HOST: z.ZodDefault<z.ZodString>;
619
+ PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
620
+ DEBUG: z.ZodDefault<z.ZodCoercedBoolean<unknown>>;
621
+ }, z.core.$strip>;
722
622
  /** The parsed shape of {@link baseAppSettingsSchema}. */
723
623
  type BaseAppSettings = z.infer<typeof baseAppSettingsSchema>;
724
624
  /**
@@ -737,7 +637,7 @@ type BaseAppSettings = z.infer<typeof baseAppSettingsSchema>;
737
637
  * @returns The validated, frozen settings object.
738
638
  * @throws {z.ZodError} When required env vars are missing or malformed.
739
639
  */
740
- declare function loadSettings<S extends z.ZodTypeAny>(schema: S, env?: NodeJS.ProcessEnv): Readonly<z.infer<S>>;
640
+ declare function loadSettings<S extends z.ZodType>(schema: S, env?: NodeJS.ProcessEnv): Readonly<z.infer<S>>;
741
641
 
742
642
  /**
743
643
  * Composable settings fragments covering common service dependencies,
@@ -769,18 +669,23 @@ declare function loadSettings<S extends z.ZodTypeAny>(schema: S, env?: NodeJS.Pr
769
669
  * @param defaultValue - The value when the variable is absent.
770
670
  * @returns A zod schema coercing `"true"`/`"1"`/`"yes"`/`"on"` to `true`.
771
671
  */
772
- declare function envBoolean(defaultValue: boolean): z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
672
+ declare function envBoolean(defaultValue: boolean): z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
773
673
  /**
774
674
  * Parse a comma-separated environment string into a trimmed, non-empty list.
775
675
  *
776
676
  * @param defaultValue - The default CSV string when the variable is absent.
777
677
  * @returns A zod schema producing `string[]`.
778
678
  */
779
- declare function envList(defaultValue?: string): z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
679
+ declare function envList(defaultValue?: string): z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
780
680
  /** Structured logging configuration. */
781
681
  declare const logSettingsShape: {
782
- readonly LOG_LEVEL: z.ZodDefault<z.ZodEnum<["DEBUG", "INFO", "WARNING", "ERROR"]>>;
783
- readonly LOG_JSON: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
682
+ readonly LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
683
+ DEBUG: "DEBUG";
684
+ INFO: "INFO";
685
+ WARNING: "WARNING";
686
+ ERROR: "ERROR";
687
+ }>>;
688
+ readonly LOG_JSON: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
784
689
  readonly LOG_DIR: z.ZodDefault<z.ZodString>;
785
690
  };
786
691
  /** Redis connection settings (cache / sessions / SSE broker). */
@@ -790,14 +695,14 @@ declare const redisSettingsShape: {
790
695
  /** RabbitMQ connection settings (queue broker). */
791
696
  declare const rabbitmqSettingsShape: {
792
697
  readonly RABBITMQ_URL: z.ZodDefault<z.ZodString>;
793
- readonly RABBITMQ_PREFETCH_COUNT: z.ZodDefault<z.ZodNumber>;
698
+ readonly RABBITMQ_PREFETCH_COUNT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
794
699
  };
795
700
  /** JWT signing/verification settings. */
796
701
  declare const jwtSettingsShape: {
797
702
  readonly JWT_SECRET: z.ZodDefault<z.ZodString>;
798
703
  readonly JWT_ALGORITHM: z.ZodDefault<z.ZodString>;
799
- readonly JWT_ACCESS_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
800
- readonly JWT_REFRESH_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
704
+ readonly JWT_ACCESS_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
705
+ readonly JWT_REFRESH_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
801
706
  readonly JWT_ISSUER: z.ZodOptional<z.ZodString>;
802
707
  };
803
708
  /** Opaque shared-secret token settings (`X-Token` guards). */
@@ -807,57 +712,61 @@ declare const tokenSettingsShape: {
807
712
  /** SMTP email transport settings. */
808
713
  declare const emailSettingsShape: {
809
714
  readonly SMTP_HOST: z.ZodDefault<z.ZodString>;
810
- readonly SMTP_PORT: z.ZodDefault<z.ZodNumber>;
715
+ readonly SMTP_PORT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
811
716
  readonly SMTP_USERNAME: z.ZodOptional<z.ZodString>;
812
717
  readonly SMTP_PASSWORD: z.ZodOptional<z.ZodString>;
813
718
  readonly SMTP_FROM_ADDR: z.ZodDefault<z.ZodString>;
814
- readonly SMTP_USE_TLS: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
815
- readonly SMTP_USE_SSL: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
816
- readonly SMTP_TIMEOUT_SECONDS: z.ZodDefault<z.ZodNumber>;
719
+ readonly SMTP_USE_TLS: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
720
+ readonly SMTP_USE_SSL: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
721
+ readonly SMTP_TIMEOUT_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
817
722
  };
818
723
  /** Local upload storage settings. */
819
724
  declare const uploadSettingsShape: {
820
725
  readonly UPLOAD_DIR: z.ZodDefault<z.ZodString>;
821
- readonly UPLOAD_MAX_SIZE_BYTES: z.ZodDefault<z.ZodNumber>;
822
- readonly UPLOAD_ALLOWED_EXTENSIONS: z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
823
- readonly UPLOAD_ALLOWED_MIMETYPES: z.ZodEffects<z.ZodDefault<z.ZodString>, string[], string | undefined>;
726
+ readonly UPLOAD_MAX_SIZE_BYTES: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
727
+ readonly UPLOAD_ALLOWED_EXTENSIONS: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
728
+ readonly UPLOAD_ALLOWED_MIMETYPES: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string[], string>>;
824
729
  };
825
730
  /** MinIO / S3 object-storage settings. */
826
731
  declare const minioSettingsShape: {
827
732
  readonly MINIO_ENDPOINT: z.ZodDefault<z.ZodString>;
828
733
  readonly MINIO_ACCESS_KEY: z.ZodDefault<z.ZodString>;
829
734
  readonly MINIO_SECRET_KEY: z.ZodDefault<z.ZodString>;
830
- readonly MINIO_SECURE: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
735
+ readonly MINIO_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
831
736
  readonly MINIO_REGION: z.ZodDefault<z.ZodString>;
832
737
  readonly MINIO_DEFAULT_BUCKET: z.ZodDefault<z.ZodString>;
833
738
  readonly MINIO_PUBLIC_ENDPOINT: z.ZodOptional<z.ZodString>;
834
- readonly MINIO_PUBLIC_SECURE: z.ZodEffects<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean | undefined, string | boolean | undefined>;
739
+ readonly MINIO_PUBLIC_SECURE: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean | undefined, string | boolean | undefined>>;
835
740
  };
836
741
  /** Web Push (VAPID) settings. */
837
742
  declare const webPushSettingsShape: {
838
743
  readonly VAPID_PUBLIC_KEY: z.ZodDefault<z.ZodString>;
839
744
  readonly VAPID_PRIVATE_KEY: z.ZodDefault<z.ZodString>;
840
745
  readonly VAPID_SUBJECT: z.ZodDefault<z.ZodString>;
841
- readonly WEBPUSH_DEFAULT_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
746
+ readonly WEBPUSH_DEFAULT_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
842
747
  };
843
748
  /** Server-side session settings (cookie + TTL). */
844
749
  declare const sessionSettingsShape: {
845
- readonly SESSION_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
846
- readonly SESSION_SLIDING: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
750
+ readonly SESSION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
751
+ readonly SESSION_SLIDING: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
847
752
  readonly SESSION_COOKIE_NAME: z.ZodDefault<z.ZodString>;
848
753
  readonly SESSION_COOKIE_DOMAIN: z.ZodOptional<z.ZodString>;
849
754
  readonly SESSION_COOKIE_PATH: z.ZodDefault<z.ZodString>;
850
- readonly SESSION_COOKIE_SECURE: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
851
- readonly SESSION_COOKIE_HTTPONLY: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
852
- readonly SESSION_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<["lax", "strict", "none"]>>;
853
- readonly SESSION_ROTATE_ON_LOGIN: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
755
+ readonly SESSION_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
756
+ readonly SESSION_COOKIE_HTTPONLY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
757
+ readonly SESSION_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
758
+ lax: "lax";
759
+ strict: "strict";
760
+ none: "none";
761
+ }>>;
762
+ readonly SESSION_ROTATE_ON_LOGIN: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
854
763
  };
855
764
  /** WebSocket hub tuning. */
856
765
  declare const webSocketSettingsShape: {
857
- readonly WS_HEARTBEAT_SECONDS: z.ZodDefault<z.ZodNumber>;
858
- readonly WS_HEARTBEAT_TIMEOUT_SECONDS: z.ZodDefault<z.ZodNumber>;
859
- readonly WS_MAX_CONNECTIONS_PER_USER: z.ZodDefault<z.ZodNumber>;
860
- readonly WS_MAX_MESSAGE_BYTES: z.ZodDefault<z.ZodNumber>;
766
+ readonly WS_HEARTBEAT_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
767
+ readonly WS_HEARTBEAT_TIMEOUT_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
768
+ readonly WS_MAX_CONNECTIONS_PER_USER: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
769
+ readonly WS_MAX_MESSAGE_BYTES: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
861
770
  };
862
771
  /**
863
772
  * Authentication flow settings (signup/activation/reset/MFA + token delivery).
@@ -866,23 +775,31 @@ declare const webSocketSettingsShape: {
866
775
  * decoupled frontend.
867
776
  */
868
777
  declare const authSettingsShape: {
869
- readonly AUTH_AUTO_ACTIVATE: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
870
- readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
871
- readonly AUTH_ACTIVATION_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
872
- readonly AUTH_PASSWORD_RESET_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
778
+ readonly AUTH_AUTO_ACTIVATE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
779
+ readonly AUTH_RETURN_TOKEN_IN_RESPONSE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
780
+ readonly AUTH_ACTIVATION_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
781
+ readonly AUTH_PASSWORD_RESET_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
873
782
  readonly AUTH_ACTIVATION_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
874
783
  readonly AUTH_PASSWORD_RESET_URL_TEMPLATE: z.ZodDefault<z.ZodString>;
875
- readonly AUTH_PASSWORD_MIN_LENGTH: z.ZodDefault<z.ZodNumber>;
876
- readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
784
+ readonly AUTH_PASSWORD_MIN_LENGTH: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
785
+ readonly AUTH_PASSWORD_REQUIRE_COMPLEXITY: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
877
786
  readonly AUTH_DEFAULT_LOCALE: z.ZodDefault<z.ZodString>;
878
- readonly AUTH_MFA_ENABLED: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
787
+ readonly AUTH_MFA_ENABLED: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
879
788
  readonly AUTH_MFA_ISSUER: z.ZodDefault<z.ZodString>;
880
- readonly AUTH_MFA_RECOVERY_CODES_COUNT: z.ZodDefault<z.ZodNumber>;
881
- readonly AUTH_MFA_TOKEN_TTL_SECONDS: z.ZodDefault<z.ZodNumber>;
882
- readonly AUTH_MFA_VERIFY_WINDOW: z.ZodDefault<z.ZodNumber>;
883
- readonly AUTH_TOKEN_DELIVERY: z.ZodDefault<z.ZodEnum<["bearer", "cookie", "both"]>>;
884
- readonly AUTH_COOKIE_SECURE: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>, boolean, string | boolean | undefined>;
885
- readonly AUTH_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<["lax", "strict", "none"]>>;
789
+ readonly AUTH_MFA_RECOVERY_CODES_COUNT: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
790
+ readonly AUTH_MFA_TOKEN_TTL_SECONDS: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
791
+ readonly AUTH_MFA_VERIFY_WINDOW: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
792
+ readonly AUTH_TOKEN_DELIVERY: z.ZodDefault<z.ZodEnum<{
793
+ bearer: "bearer";
794
+ cookie: "cookie";
795
+ both: "both";
796
+ }>>;
797
+ readonly AUTH_COOKIE_SECURE: z.ZodPipe<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>, z.ZodTransform<boolean, string | boolean>>;
798
+ readonly AUTH_COOKIE_SAMESITE: z.ZodDefault<z.ZodEnum<{
799
+ lax: "lax";
800
+ strict: "strict";
801
+ none: "none";
802
+ }>>;
886
803
  readonly AUTH_COOKIE_DOMAIN: z.ZodOptional<z.ZodString>;
887
804
  readonly AUTH_ACCESS_COOKIE_NAME: z.ZodDefault<z.ZodString>;
888
805
  readonly AUTH_REFRESH_COOKIE_NAME: z.ZodDefault<z.ZodString>;
@@ -1517,15 +1434,15 @@ declare function normalizeCep(value: string): string;
1517
1434
  /** Normalize a BR phone to digits only, throwing when invalid. */
1518
1435
  declare function normalizePhoneBr(value: string): string;
1519
1436
  /** Zod field: validates a CPF and normalizes it to 11 digits. */
1520
- declare const cpfField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1437
+ declare const cpfField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1521
1438
  /** Zod field: validates a CNPJ and normalizes it to 14 digits. */
1522
- declare const cnpjField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1439
+ declare const cnpjField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1523
1440
  /** Zod field: accepts either a CPF or a CNPJ, normalized to digits. */
1524
- declare const cpfOrCnpjField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1441
+ declare const cpfOrCnpjField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1525
1442
  /** Zod field: validates a CEP and normalizes it to 8 digits. */
1526
- declare const cepField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1443
+ declare const cepField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1527
1444
  /** Zod field: validates a BR phone and normalizes it to digits. */
1528
- declare const phoneBrField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1445
+ declare const phoneBrField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1529
1446
 
1530
1447
  /** The 27 Brazilian federative-unit acronyms. */
1531
1448
  declare const UF: Enum<{
@@ -1595,7 +1512,7 @@ declare function normalizeUf(value: string): string;
1595
1512
  /** Whether `name` is a municipality of `uf` (accent/case-insensitive). */
1596
1513
  declare function isValidCity(name: string, uf: string): boolean;
1597
1514
  /** Zod field: validates a UF and normalizes it to its uppercase acronym. */
1598
- declare const ufField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1515
+ declare const ufField: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1599
1516
 
1600
1517
  /** Datetime helpers, mirroring `utils.datetime`. */
1601
1518
  /**
@@ -2684,13 +2601,7 @@ declare class RedisSSEBroker {
2684
2601
  declare const wsEnvelopeSchema: z.ZodObject<{
2685
2602
  type: z.ZodString;
2686
2603
  data: z.ZodOptional<z.ZodUnknown>;
2687
- }, "strip", z.ZodTypeAny, {
2688
- type: string;
2689
- data?: unknown;
2690
- }, {
2691
- type: string;
2692
- data?: unknown;
2693
- }>;
2604
+ }, z.core.$strip>;
2694
2605
  /** A typed message envelope. */
2695
2606
  type WSEnvelope = z.infer<typeof wsEnvelopeSchema>;
2696
2607
 
@@ -3118,56 +3029,22 @@ declare class S3UploadStorage implements UploadStorage {
3118
3029
  declare const webPushKeysSchema: z.ZodObject<{
3119
3030
  p256dh: z.ZodString;
3120
3031
  auth: z.ZodString;
3121
- }, "strip", z.ZodTypeAny, {
3122
- auth: string;
3123
- p256dh: string;
3124
- }, {
3125
- auth: string;
3126
- p256dh: string;
3127
- }>;
3032
+ }, z.core.$strip>;
3128
3033
  /** A browser push subscription. */
3129
3034
  declare const webPushSubscriptionSchema: z.ZodObject<{
3130
- endpoint: z.ZodString;
3035
+ endpoint: z.ZodURL;
3131
3036
  keys: z.ZodObject<{
3132
3037
  p256dh: z.ZodString;
3133
3038
  auth: z.ZodString;
3134
- }, "strip", z.ZodTypeAny, {
3135
- auth: string;
3136
- p256dh: string;
3137
- }, {
3138
- auth: string;
3139
- p256dh: string;
3140
- }>;
3141
- }, "strip", z.ZodTypeAny, {
3142
- keys: {
3143
- auth: string;
3144
- p256dh: string;
3145
- };
3146
- endpoint: string;
3147
- }, {
3148
- keys: {
3149
- auth: string;
3150
- p256dh: string;
3151
- };
3152
- endpoint: string;
3153
- }>;
3039
+ }, z.core.$strip>;
3040
+ }, z.core.$strip>;
3154
3041
  /** A push notification payload. */
3155
3042
  declare const webPushPayloadSchema: z.ZodObject<{
3156
3043
  title: z.ZodString;
3157
3044
  body: z.ZodOptional<z.ZodString>;
3158
3045
  url: z.ZodOptional<z.ZodString>;
3159
3046
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3160
- }, "strip", z.ZodTypeAny, {
3161
- title: string;
3162
- data?: Record<string, unknown> | undefined;
3163
- url?: string | undefined;
3164
- body?: string | undefined;
3165
- }, {
3166
- title: string;
3167
- data?: Record<string, unknown> | undefined;
3168
- url?: string | undefined;
3169
- body?: string | undefined;
3170
- }>;
3047
+ }, z.core.$strip>;
3171
3048
  type WebPushKeys = z.infer<typeof webPushKeysSchema>;
3172
3049
  type WebPushSubscription = z.infer<typeof webPushSubscriptionSchema>;
3173
3050
  type WebPushPayload = z.infer<typeof webPushPayloadSchema>;
@@ -3253,33 +3130,22 @@ interface SendOptions {
3253
3130
  }
3254
3131
  /** A normalized inbound (or echoed outbound) message. */
3255
3132
  declare const inboundMessageSchema: z.ZodObject<{
3256
- /** Conversation JID / sender (e.g. `5511999999999@s.whatsapp.net`). */
3257
3133
  from: z.ZodString;
3258
- /** Provider message id. */
3259
3134
  messageId: z.ZodString;
3260
- /** Text body, when present. */
3261
3135
  text: z.ZodOptional<z.ZodString>;
3262
- /** Media kind, or `null` for plain text. */
3263
- mediaType: z.ZodNullable<z.ZodEnum<["image", "video", "audio", "document", "sticker"]>>;
3264
- /** ISO-8601 timestamp. */
3136
+ mediaType: z.ZodNullable<z.ZodEnum<{
3137
+ image: "image";
3138
+ video: "video";
3139
+ audio: "audio";
3140
+ document: "document";
3141
+ sticker: "sticker";
3142
+ }>>;
3265
3143
  timestamp: z.ZodString;
3266
- /** Delivery direction. */
3267
- direction: z.ZodOptional<z.ZodEnum<["incoming", "outgoing"]>>;
3268
- }, "strip", z.ZodTypeAny, {
3269
- from: string;
3270
- timestamp: string;
3271
- messageId: string;
3272
- mediaType: "image" | "video" | "audio" | "document" | "sticker" | null;
3273
- text?: string | undefined;
3274
- direction?: "incoming" | "outgoing" | undefined;
3275
- }, {
3276
- from: string;
3277
- timestamp: string;
3278
- messageId: string;
3279
- mediaType: "image" | "video" | "audio" | "document" | "sticker" | null;
3280
- text?: string | undefined;
3281
- direction?: "incoming" | "outgoing" | undefined;
3282
- }>;
3144
+ direction: z.ZodOptional<z.ZodEnum<{
3145
+ incoming: "incoming";
3146
+ outgoing: "outgoing";
3147
+ }>>;
3148
+ }, z.core.$strip>;
3283
3149
  /** A normalized inbound message. */
3284
3150
  type InboundMessage = z.infer<typeof inboundMessageSchema>;
3285
3151
  /** Handler invoked for each inbound message. */
@@ -3666,9 +3532,9 @@ interface AdminResource<T = unknown> {
3666
3532
  /** Delete a record by id. */
3667
3533
  remove?(id: string): Promise<void>;
3668
3534
  /** Zod schema validating the create body. */
3669
- createSchema?: z.ZodTypeAny;
3535
+ createSchema?: z.ZodType;
3670
3536
  /** Zod schema validating the update body. */
3671
- updateSchema?: z.ZodTypeAny;
3537
+ updateSchema?: z.ZodType;
3672
3538
  }
3673
3539
  /** A registry of admin resources. */
3674
3540
  declare class AdminSite {
@@ -3735,197 +3601,77 @@ declare function makeAdminRouter(site: AdminSite, options?: AdminRouterOptions):
3735
3601
 
3736
3602
  /** Request body for `POST /auth/signup`. */
3737
3603
  declare const signupSchema: z.ZodObject<{
3738
- email: z.ZodString;
3604
+ email: z.ZodEmail;
3739
3605
  password: z.ZodString;
3740
3606
  name: z.ZodOptional<z.ZodString>;
3741
- }, "strip", z.ZodTypeAny, {
3742
- password: string;
3743
- email: string;
3744
- name?: string | undefined;
3745
- }, {
3746
- password: string;
3747
- email: string;
3748
- name?: string | undefined;
3749
- }>;
3607
+ }, z.core.$strip>;
3750
3608
  /** Request body for `POST /auth/login`. */
3751
3609
  declare const loginSchema: z.ZodObject<{
3752
- email: z.ZodString;
3610
+ email: z.ZodEmail;
3753
3611
  password: z.ZodString;
3754
- }, "strip", z.ZodTypeAny, {
3755
- password: string;
3756
- email: string;
3757
- }, {
3758
- password: string;
3759
- email: string;
3760
- }>;
3612
+ }, z.core.$strip>;
3761
3613
  /** Request body for `POST /auth/refresh`. */
3762
3614
  declare const refreshSchema: z.ZodObject<{
3763
3615
  refreshToken: z.ZodString;
3764
- }, "strip", z.ZodTypeAny, {
3765
- refreshToken: string;
3766
- }, {
3767
- refreshToken: string;
3768
- }>;
3616
+ }, z.core.$strip>;
3769
3617
  /** A signed access/refresh token pair. */
3770
3618
  declare const tokenPairSchema: z.ZodObject<{
3771
3619
  accessToken: z.ZodString;
3772
3620
  refreshToken: z.ZodString;
3773
3621
  tokenType: z.ZodLiteral<"bearer">;
3774
3622
  expiresIn: z.ZodNumber;
3775
- }, "strip", z.ZodTypeAny, {
3776
- refreshToken: string;
3777
- accessToken: string;
3778
- tokenType: "bearer";
3779
- expiresIn: number;
3780
- }, {
3781
- refreshToken: string;
3782
- accessToken: string;
3783
- tokenType: "bearer";
3784
- expiresIn: number;
3785
- }>;
3623
+ }, z.core.$strip>;
3786
3624
  /** Public user projection returned by `GET /auth/me` and signup/login. */
3787
3625
  declare const userPublicSchema: z.ZodObject<{
3788
3626
  id: z.ZodString;
3789
- email: z.ZodString;
3627
+ email: z.ZodEmail;
3790
3628
  name: z.ZodNullable<z.ZodString>;
3791
3629
  isActive: z.ZodBoolean;
3792
- roles: z.ZodArray<z.ZodString, "many">;
3793
- }, "strip", z.ZodTypeAny, {
3794
- id: string;
3795
- isActive: boolean;
3796
- name: string | null;
3797
- email: string;
3798
- roles: string[];
3799
- }, {
3800
- id: string;
3801
- isActive: boolean;
3802
- name: string | null;
3803
- email: string;
3804
- roles: string[];
3805
- }>;
3630
+ roles: z.ZodArray<z.ZodString>;
3631
+ }, z.core.$strip>;
3806
3632
  /** Response body for `POST /auth/signup` and `POST /auth/login`. */
3807
3633
  declare const authResponseSchema: z.ZodObject<{
3808
3634
  user: z.ZodObject<{
3809
3635
  id: z.ZodString;
3810
- email: z.ZodString;
3636
+ email: z.ZodEmail;
3811
3637
  name: z.ZodNullable<z.ZodString>;
3812
3638
  isActive: z.ZodBoolean;
3813
- roles: z.ZodArray<z.ZodString, "many">;
3814
- }, "strip", z.ZodTypeAny, {
3815
- id: string;
3816
- isActive: boolean;
3817
- name: string | null;
3818
- email: string;
3819
- roles: string[];
3820
- }, {
3821
- id: string;
3822
- isActive: boolean;
3823
- name: string | null;
3824
- email: string;
3825
- roles: string[];
3826
- }>;
3639
+ roles: z.ZodArray<z.ZodString>;
3640
+ }, z.core.$strip>;
3827
3641
  tokens: z.ZodObject<{
3828
3642
  accessToken: z.ZodString;
3829
3643
  refreshToken: z.ZodString;
3830
3644
  tokenType: z.ZodLiteral<"bearer">;
3831
3645
  expiresIn: z.ZodNumber;
3832
- }, "strip", z.ZodTypeAny, {
3833
- refreshToken: string;
3834
- accessToken: string;
3835
- tokenType: "bearer";
3836
- expiresIn: number;
3837
- }, {
3838
- refreshToken: string;
3839
- accessToken: string;
3840
- tokenType: "bearer";
3841
- expiresIn: number;
3842
- }>;
3843
- }, "strip", z.ZodTypeAny, {
3844
- user: {
3845
- id: string;
3846
- isActive: boolean;
3847
- name: string | null;
3848
- email: string;
3849
- roles: string[];
3850
- };
3851
- tokens: {
3852
- refreshToken: string;
3853
- accessToken: string;
3854
- tokenType: "bearer";
3855
- expiresIn: number;
3856
- };
3857
- }, {
3858
- user: {
3859
- id: string;
3860
- isActive: boolean;
3861
- name: string | null;
3862
- email: string;
3863
- roles: string[];
3864
- };
3865
- tokens: {
3866
- refreshToken: string;
3867
- accessToken: string;
3868
- tokenType: "bearer";
3869
- expiresIn: number;
3870
- };
3871
- }>;
3646
+ }, z.core.$strip>;
3647
+ }, z.core.$strip>;
3872
3648
  /** MFA enrollment response (`POST /auth/mfa/enroll`). */
3873
3649
  declare const mfaEnrollResponseSchema: z.ZodObject<{
3874
3650
  secret: z.ZodString;
3875
3651
  otpauthUri: z.ZodString;
3876
- }, "strip", z.ZodTypeAny, {
3877
- secret: string;
3878
- otpauthUri: string;
3879
- }, {
3880
- secret: string;
3881
- otpauthUri: string;
3882
- }>;
3652
+ }, z.core.$strip>;
3883
3653
  /** A 6-digit MFA code body (`POST /auth/mfa/confirm|disable`). */
3884
3654
  declare const mfaCodeSchema: z.ZodObject<{
3885
3655
  code: z.ZodString;
3886
- }, "strip", z.ZodTypeAny, {
3887
- code: string;
3888
- }, {
3889
- code: string;
3890
- }>;
3656
+ }, z.core.$strip>;
3891
3657
  /** MFA login-challenge body (`POST /auth/mfa/challenge`). */
3892
3658
  declare const mfaChallengeSchema: z.ZodObject<{
3893
3659
  mfaToken: z.ZodString;
3894
3660
  code: z.ZodString;
3895
- }, "strip", z.ZodTypeAny, {
3896
- code: string;
3897
- mfaToken: string;
3898
- }, {
3899
- code: string;
3900
- mfaToken: string;
3901
- }>;
3661
+ }, z.core.$strip>;
3902
3662
  /** Activation body (`POST /auth/activate`). */
3903
3663
  declare const activationSchema: z.ZodObject<{
3904
3664
  token: z.ZodString;
3905
- }, "strip", z.ZodTypeAny, {
3906
- token: string;
3907
- }, {
3908
- token: string;
3909
- }>;
3665
+ }, z.core.$strip>;
3910
3666
  /** Password-reset request body (`POST /auth/password-reset/request`). */
3911
3667
  declare const passwordResetRequestSchema: z.ZodObject<{
3912
- email: z.ZodString;
3913
- }, "strip", z.ZodTypeAny, {
3914
- email: string;
3915
- }, {
3916
- email: string;
3917
- }>;
3668
+ email: z.ZodEmail;
3669
+ }, z.core.$strip>;
3918
3670
  /** Password-reset confirm body (`POST /auth/password-reset/confirm`). */
3919
3671
  declare const passwordResetConfirmSchema: z.ZodObject<{
3920
3672
  token: z.ZodString;
3921
3673
  password: z.ZodString;
3922
- }, "strip", z.ZodTypeAny, {
3923
- password: string;
3924
- token: string;
3925
- }, {
3926
- password: string;
3927
- token: string;
3928
- }>;
3674
+ }, z.core.$strip>;
3929
3675
  type SignupInput = z.infer<typeof signupSchema>;
3930
3676
  type LoginInput = z.infer<typeof loginSchema>;
3931
3677
  type RefreshInput = z.infer<typeof refreshSchema>;
@@ -5411,6 +5157,6 @@ declare function createTestDatabase(models: readonly ModelClass[]): TestDatabase
5411
5157
  declare function withTestDatabase<T>(models: readonly ModelClass[], fn: (db: TestDatabase) => Promise<T>): Promise<T>;
5412
5158
 
5413
5159
  /** The installed SDK version. Single source of truth for the barrel + CLI. */
5414
- declare const VERSION = "0.20.0";
5160
+ declare const VERSION = "0.21.0";
5415
5161
 
5416
5162
  export { type ActivationInput, ActivationService, type ActivationServiceOptions, type ActivationStore, type AdminField, type AdminListQuery, type AdminListResult, type AdminResource, type AdminRouterOptions, AdminSite, AppException, type AppExceptionHandlerOptions, type AppExceptionOptions, type AttachWebSocketOptions, AttemptThrottle, type AttemptThrottleOptions, AuditAction, type AuthResponse, type AuthResultPageOptions, type AuthRouterOptions, type AuthUser, type BackupOptions, type BaseAppSettings, BaseAuditLogModel, BaseController, BaseModel, BaseOAuthClient, BaseOutboxModel, type BaseResponse, BaseService, BaseUserModel, BaseUserRefreshTokenModel, BaseUserTokenModel, type BodySizeLimitOptions, type BroadcastOptions, type BroadcastResult, type BrokerManager, CEP_PATTERN, CNPJ_PATTERN, CPF_PATTERN, type CPUMetrics, CSRF_COOKIE_NAME, CSRF_HEADER_NAME, type CacheManager, type CachedOptions, type CachedResponse, type CatalogData, CircuitOpenError, type ClientIpOptions, CompositeFeatureFlagBackend, ConflictException, type CreateAppOpenApi, type CreateAppOptions, type CsrfOptions, type CursorPaginationFilter, DEFAULT_LOCALE, type DownloadOptions, type EmailMessage, type EmailOptions, EmailProvider, type EmailProviderOptions, EmailUtils, type Enum, type EnumHelpers, type EnumSpec, EnvFeatureFlagBackend, EventStream, type EventStreamOptions, type ExceptionDetails, ExpiredTokenException, type FeatureFlagBackend, FeatureFlags, type FieldChange, type FileLoggingHandle, type FileLoggingOptions, type FlagContext, ForbiddenException, type GPUMetrics, type GenerateOpenApiOptions, GitHubOAuthClient, GoogleOAuthClient, GracefulShutdown, type GracefulShutdownOptions, HTTPClient, type HTTPClientOptions, HTTP_500_LOG_FILE, HTTP_500_MARKER, type HandshakeInfo, type HealthCheck, type HealthRouterOptions, HttpMetrics, IDEMPOTENCY_HEADER, type IdempotencyOptions, type IdempotencyRedisLike, type IdempotencyStore, type InboundHandler, type InboundMessage, InvalidTokenException, type IssuedSession, JSONLogger, JWTUtils, type JWTUtilsOptions, type JwtAuthOptions, type JwtClaims, type JwtDecoderLike, LEVEL_LOG_FILES, LocalUploadStorage, type LocalUploadStorageOptions, type LogEntry, type LogExtra, type LogLevel, type LogSink, type LogSource, type LoginInput, type LoginResult, type LogsRouterOptions, type MediaKind, MemoryBroker, MemoryCacheManager, MemoryFeatureFlagBackend, MemoryIdempotencyStore, type MemoryMetrics, MemoryRateLimitStore, MemorySessionStore, MemoryThrottleBackend, MessageCatalog, type MessageHandler, MessagingHub, type MessagingProvider, type MetricsRouterOptions, MetricsUtils, type MfaChallenge, type MfaChallengeInput, type MfaCodeInput, type MfaEnrollment, MfaService, type MfaServiceOptions, type MfaStore, NotFoundException, type OAuthClientOptions, OAuthError, type OAuthTokens, type OAuthUser, OIDCProvider, type OIDCProviderOptions, type OpenApiDocument, type OpenApiInfo, type OutboundMedia, type OutboundResult, type OutboxPublisher, OutboxRelay, type OutboxRelayOptions, OutboxStatus, PHONE_BR_PATTERN, type PaginationFilter, type PaginationLinkOptions, type PasswordResetConfirmInput, type PasswordResetFormOptions, type PasswordResetRequestInput, PasswordResetService, type PasswordResetServiceOptions, type PasswordResetStore, PasswordUtils, REQUEST_ID_HEADER, RabbitBroker, type RabbitBrokerOptions, type RateLimitKeyFunc, type RateLimitOptions, type RateLimitRedisLike, type RateLimitResult, type RateLimitStore, RedisCacheManager, RedisIdempotencyStore, type RedisLike, type RedisPublisherLike, RedisRateLimitStore, RedisSSEBroker, type RedisSSEBrokerOptions, RedisSessionStore, type RedisSubscriberLike, type RedocOptions, type RefreshInput, Region, type RegionValue, type RegisterExceptionHandlersOptions, type RequestContext, type RequestTracingOptions, type ResponseMapper, RetryPolicy, type RunServerOptions, type S3ClientLike, S3UploadStorage, type S3UploadStorageOptions, SSEBroker, type SaveOptions, type SendOptions, ServerSentEvent, type ServerSentEventInit, type Session, type SessionMiddlewareOptions, type SessionRedisLike, SessionService, type SessionServiceOptions, type SessionStore, type SignupInput, type SlowQueryOptions, type SpecProvider, type StateBR, type SwaggerOptions, type SyncFilter, type SystemMetrics, TOTPHelper, type TOTPOptions, type TaskHandler, TaskManager, type TaskManagerOptions, TelegramProvider, type TelegramProviderOptions, TenantScopedRepository, type TestDatabase, type ThrottleBackend, type ThrottleStatus, type ToDictOptions, type TokenPair, TooManyRequestsException, type TooManyRequestsOptions, type ToolSpecOptions, TwilioSmsProvider, type TwilioSmsProviderOptions, type TwilioWebhookOptions, UF, type UFValue, UnauthorizedException, type UnhandledExceptionHandlerOptions, type UploadResult, type UploadStorage, UserAuthService, type UserAuthServiceOptions, type UserPublic, type UserStore, UserTokenPurpose, VERSION, ValidationException, type WSEnvelope, WebPushDispatcher, type WebPushDispatcherOptions, WebPushError, WebPushGoneError, type WebPushKeys, type WebPushPayload, type WebPushSubscription, type WebSocketConnection, WebSocketHub, type WebSocketHubOptions, type WebSocketLike, type WebhookSignatureOptions, WebhookSignatureVerifier, WhatsAppProvider, type WhatsAppProviderOptions, type WhatsAppWebhookOptions, activationSchema, addLogSink, attachWebSocketHub, authResponseSchema, authSettingsShape, backupDatabase, baseAppSettingsSchema, baseAppSettingsShape, baseResponseSchema, bearerToken, bodySizeLimitMiddleware, broadcastText, buildContentDisposition, buildPaginationLinkHeader, cached, centsField, cepField, citiesByUf, cnpjField, coerceFlag, configureFileLogging, configureLogging, corsSettingsShape, cpfField, cpfOrCnpjField, createApp, createOpenApiRegistry, createTestDatabase, createdByColumn, csrfMiddleware, cursorPaginationFilterSchema, cursorPaginationSchema, databaseSettingsShape, decodeCursor, defaultMessageCatalog, defineEnum, deletedAtColumn, diffSnapshots, emailSettingsShape, encodeCursor, envBoolean, envList, generateCsrfToken, generateOAuthState, generateOpaqueToken, generateOpenApiDocument, getAuth, getClientIp, getConditions, getPaginationConditions, getRequestId, getState, hashOpaqueToken, hexColorField, idempotencyMiddleware, inboundMessageSchema, isValidCep, isValidCity, isValidCnpj, isValidCpf, isValidCpfCnpj, isValidPhoneBr, isValidUf, jwtSettingsShape, keyByHeader, keyByIp, keyByJwtClaim, keyByJwtSubject, latitudeField, listStates, loadSettings, logEntrySchema, logSettingsShape, loginSchema, longitudeField, makeAdminRouter, makeAppExceptionHandler, makeAuthRouter, makeFlagGuard, makeHealthRouter, makeJwtAuthMiddleware, makeLogsRouter, makeMetricsRouter, makeSessionMiddleware, makeToolSpecRouter, makeTwilioWebhookRouter, makeUnhandledExceptionHandler, makeWhatsAppWebhookRouter, mfaChallengeSchema, mfaCodeSchema, mfaEnrollResponseSchema, minioSettingsShape, modifyDict, mountOpenApiJson, mountRedoc, mountSwaggerUi, nonEmptyStrField, nonNegativeFloatField, nonNegativeIntField, normalizeCep, normalizeCnpj, normalizeCpf, normalizeCpfCnpj, normalizePhoneBr, normalizeUf, notFoundHandler, onlyDigits, paginationFilterSchema, paginationSchema, parseAcceptLanguage, parseCookies, passwordResetConfirmSchema, passwordResetRequestSchema, percentField, phoneBrField, portField, positiveFloatField, positiveIntField, priceField, prometheusMiddleware, rabbitmqSettingsShape, rateLimitMiddleware, ratingField, ratioField, redisSettingsShape, refreshSchema, registerExceptionHandlers, renderAuthResultPage, renderPasswordResetFormPage, requestIdMiddleware, requestTracingMiddleware, requireRoles, resolveDownloadPath, runServer, runWithRequestContext, sendBytesDownload, sendFileDownload, serverSettingsShape, sessionCookie, sessionSettingsShape, setRequestId, signupSchema, slugField, snapshot, sseResponse, statesByRegion, syncFilterSchema, syncPaginationSchema, tableNameFor, toDict, toUtc, tokenFromUrl, tokenPairSchema, tokenSettingsShape, ufField, updatedByColumn, uploadSettingsShape, userPublicSchema, utcnow, validateTwilioSignature, verifyOpaqueToken, webPushKeysSchema, webPushPayloadSchema, webPushSettingsShape, webPushSubscriptionSchema, webSocketSettingsShape, withTestDatabase, wrapWithSlowQueryLog, wsEnvelopeSchema };