@wildo-ai/zod-decorators 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/esm/commons.d.ts.map +1 -1
  2. package/dist/esm/commons.js.map +1 -1
  3. package/dist/esm/currencies.shared.schemas.d.ts.map +1 -1
  4. package/dist/esm/currencies.shared.schemas.js.map +1 -1
  5. package/dist/esm/files/agent-file-formats.d.ts.map +1 -1
  6. package/dist/esm/files/agent-file-formats.js.map +1 -1
  7. package/dist/esm/files/extension-nature-map.d.ts.map +1 -1
  8. package/dist/esm/files/extension-nature-map.js.map +1 -1
  9. package/dist/esm/files/file-extensions.enum.d.ts.map +1 -1
  10. package/dist/esm/files/file-extensions.enum.js.map +1 -1
  11. package/dist/esm/files/mime-registry.d.ts.map +1 -1
  12. package/dist/esm/files/mime-registry.js.map +1 -1
  13. package/dist/esm/files/unified-registry.d.ts.map +1 -1
  14. package/dist/esm/files/unified-registry.js.map +1 -1
  15. package/dist/esm/index.d.ts +2 -0
  16. package/dist/esm/index.d.ts.map +1 -1
  17. package/dist/esm/index.js +2 -0
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/install-bigint-json-encoding.d.ts +1 -1
  20. package/dist/esm/install-bigint-json-encoding.d.ts.map +1 -1
  21. package/dist/esm/install-bigint-json-encoding.js +1 -1
  22. package/dist/esm/install-bigint-json-encoding.js.map +1 -1
  23. package/dist/esm/testing/decorated-test-schemas.d.ts +7 -7
  24. package/dist/esm/testing/decorated-test-schemas.d.ts.map +1 -1
  25. package/dist/esm/testing/decorated-test-schemas.js.map +1 -1
  26. package/dist/esm/testing.d.ts.map +1 -1
  27. package/dist/esm/testing.js.map +1 -1
  28. package/dist/esm/zod-address.d.ts.map +1 -1
  29. package/dist/esm/zod-address.js.map +1 -1
  30. package/dist/esm/zod-bigdecimal.d.ts +4 -4
  31. package/dist/esm/zod-bigdecimal.d.ts.map +1 -1
  32. package/dist/esm/zod-bigdecimal.js.map +1 -1
  33. package/dist/esm/zod-code.d.ts +4 -4
  34. package/dist/esm/zod-code.d.ts.map +1 -1
  35. package/dist/esm/zod-code.js.map +1 -1
  36. package/dist/esm/zod-color.d.ts.map +1 -1
  37. package/dist/esm/zod-color.js.map +1 -1
  38. package/dist/esm/zod-decorators.types.d.ts +116 -9
  39. package/dist/esm/zod-decorators.types.d.ts.map +1 -1
  40. package/dist/esm/zod-decorators.types.js +40 -1
  41. package/dist/esm/zod-decorators.types.js.map +1 -1
  42. package/dist/esm/zod-document-sequence.d.ts.map +1 -1
  43. package/dist/esm/zod-document-sequence.js.map +1 -1
  44. package/dist/esm/zod-duration.d.ts +6 -6
  45. package/dist/esm/zod-duration.d.ts.map +1 -1
  46. package/dist/esm/zod-duration.js.map +1 -1
  47. package/dist/esm/zod-file.d.ts +5 -4
  48. package/dist/esm/zod-file.d.ts.map +1 -1
  49. package/dist/esm/zod-file.js +1 -1
  50. package/dist/esm/zod-file.js.map +1 -1
  51. package/dist/esm/zod-money.d.ts +4 -4
  52. package/dist/esm/zod-money.d.ts.map +1 -1
  53. package/dist/esm/zod-money.js.map +1 -1
  54. package/dist/esm/zod-phone.d.ts +4 -4
  55. package/dist/esm/zod-phone.d.ts.map +1 -1
  56. package/dist/esm/zod-phone.js.map +1 -1
  57. package/dist/esm/zod-range.d.ts.map +1 -1
  58. package/dist/esm/zod-range.js.map +1 -1
  59. package/dist/esm/zod-utils.shared.d.ts +47 -12
  60. package/dist/esm/zod-utils.shared.d.ts.map +1 -1
  61. package/dist/esm/zod-utils.shared.js +143 -40
  62. package/dist/esm/zod-utils.shared.js.map +1 -1
  63. package/dist/esm/zod-versioned.d.ts.map +1 -1
  64. package/dist/esm/zod-versioned.js.map +1 -1
  65. package/dist/esm/zod-wire-date.d.ts +107 -0
  66. package/dist/esm/zod-wire-date.d.ts.map +1 -0
  67. package/dist/esm/zod-wire-date.js +162 -0
  68. package/dist/esm/zod-wire-date.js.map +1 -0
  69. package/dist/esm/zod-year-month.d.ts +76 -0
  70. package/dist/esm/zod-year-month.d.ts.map +1 -0
  71. package/dist/esm/zod-year-month.js +115 -0
  72. package/dist/esm/zod-year-month.js.map +1 -0
  73. package/dist/esm/zod.module-override.d.ts +139 -156
  74. package/dist/esm/zod.module-override.d.ts.map +1 -1
  75. package/dist/esm/zod.module-override.js +176 -6
  76. package/dist/esm/zod.module-override.js.map +1 -1
  77. package/dist/tsconfig.build.tsbuildinfo +1 -1
  78. package/package.json +5 -5
@@ -293,8 +293,13 @@ export var DisplayFieldComponent;
293
293
  * with no button: to hide one section until asked, use COLLAPSIBLE (#2197)
294
294
  *
295
295
  * @category Guided (sequential, with indicators)
296
- * - STEPPER: Step-by-step with step indicators
296
+ * - STEPPER: Step-by-step with step indicators — a WIZARD: the reader moves through the steps
297
297
  * - TIMELINE: Chronological progression (vertical timeline)
298
+ * - STAGES: the stages of ONE record's lifecycle, read-only. The stage the record is at comes from a
299
+ * field of the record (`stageBinding` on the group's first section), so a read page shows where the
300
+ * record stands: earlier stages reached, its own stage current, later ones not reached, each with its
301
+ * description, and no navigation buttons. Hosted by `DisplayLayout`, the host that holds a record
302
+ * (#1786). STEPPER is the wrong mode for this: its position is the READER's, not the record's.
298
303
  *
299
304
  * NOTE: Wizard is NOT included — it's a higher-level layout pattern
300
305
  * that contains sections, not a section rendering mode.
@@ -320,6 +325,7 @@ export var SectionMode;
320
325
  // Guided (sequential, with indicators)
321
326
  SectionMode["STEPPER"] = "stepper";
322
327
  SectionMode["TIMELINE"] = "timeline";
328
+ SectionMode["STAGES"] = "stages";
323
329
  })(SectionMode || (SectionMode = {}));
324
330
  // =============================================================================
325
331
  // OVERLAY CONTAINER MODE - UI Abstraction for Overlay Rendering
@@ -511,6 +517,12 @@ export const StringDisplayMode = {
511
517
  * `edit.editMode: StringEditMode.ORGANIZATION_ROLE` so the field is picked the way it is read.
512
518
  */
513
519
  ORGANIZATION_ROLE: 'organization_role',
520
+ /**
521
+ * The value is a calendar month, `YYYY-MM` — render it as the month and the year in the reader's locale
522
+ * ("October 2026", "octobre 2026"), never the raw string. A value that is not a year-month shows as typed. Declared
523
+ * by `z_yearMonth()`, which pairs it with `edit.editMode: StringEditMode.YEAR_MONTH`.
524
+ */
525
+ YEAR_MONTH: 'year_month',
514
526
  };
515
527
  /**
516
528
  * String edit modes for form components
@@ -540,6 +552,11 @@ export const StringEditMode = {
540
552
  * the operation's offer alone. The server remains the control: it decides what holding the role grants.
541
553
  */
542
554
  ORGANIZATION_ROLE: 'organization_role',
555
+ /**
556
+ * A MONTH-AND-YEAR picker: a list of the twelve months, named in the reader's locale, and a year. It writes the value
557
+ * as `YYYY-MM` and nothing else, so the user never types the format. Declared by `z_yearMonth()`.
558
+ */
559
+ YEAR_MONTH: 'year_month',
543
560
  };
544
561
  /**
545
562
  * WHOSE role table an `ORGANIZATION_ROLE` picker reads (#2778).
@@ -1053,6 +1070,10 @@ export var FileUploaderEntityType;
1053
1070
  // (matching USER / ANONYMOUS_USER) avoids mislabelling an OAuth-client upload as an "api key".
1054
1071
  FileUploaderEntityType["ORGANIZATION_MACHINE"] = "organization_machine";
1055
1072
  FileUploaderEntityType["APPLICATION_MACHINE"] = "application_machine";
1073
+ // A file an inbound delivery put here: `ctx.attachments.adopt`'s copy, or a provider document a handler stored.
1074
+ // `uploadedBy` is the delivery's id. Nobody authenticated, so this is a provenance and never a sign-in: it exists so
1075
+ // a delivery can link what it produced and nothing else (#3330).
1076
+ FileUploaderEntityType["INBOUND_DELIVERY"] = "inbound_delivery";
1056
1077
  })(FileUploaderEntityType || (FileUploaderEntityType = {}));
1057
1078
  /**
1058
1079
  * Image format options for file validation.
@@ -1688,6 +1709,19 @@ export var ZodDecorator;
1688
1709
  * not marked. No check runs over an application's resources yet: there the marker documents the field.
1689
1710
  */
1690
1711
  ZodDecorator["IS_DECIDER"] = "isDecider";
1712
+ /**
1713
+ * Role grant: this field's values are roles the WRITER grants (a membership's `roles`, a machine credential's
1714
+ * `roles`, a unit assignment's `role`, an account's `appRoles`). A pure marker, read back with
1715
+ * `isRoleGrantField(schema)`.
1716
+ *
1717
+ * What it changes: a form offers only the roles the person filling it may grant (#3248), decided by the rule the
1718
+ * server's role-ceiling gate applies (`resolveRoleGrantCeiling` in `@wildo-ai/saas-models`), plus any role the
1719
+ * record already holds, so a stored role is never dropped from view. It grants nothing and refuses nothing: the
1720
+ * server gate on the write is the control, and the marker only keeps the form from offering what that gate refuses.
1721
+ * Mark a field that a form offers roles in, where a write of it is checked against the writer's ceiling. A role
1722
+ * grant typed as free text (an SSO connection's `roleMapping`) offers no roles, so marking it would narrow nothing.
1723
+ */
1724
+ ZodDecorator["IS_ROLE_GRANT"] = "isRoleGrant";
1691
1725
  /**
1692
1726
  * RAG source: this field's TEXT is a retrieval-corpus source. The framework chunks the value
1693
1727
  * (extracting text first for file fields), stores the chunks in the application's OWN datastore
@@ -1759,6 +1793,11 @@ export var ZodDecorator;
1759
1793
  * (single field vs composite). Mixing is rejected at decoration time.
1760
1794
  */
1761
1795
  ZodDecorator["OBJECT_BUSINESS_KEY_SET"] = "businessKeySet";
1796
+ /**
1797
+ * Object-level: one NON-unique index over several fields, for reads that filter on the leading fields and sort on
1798
+ * the last (#3142). Accumulates: each call declares one more index. See {@link CompoundIndexParams}.
1799
+ */
1800
+ ZodDecorator["OBJECT_COMPOUND_INDEX"] = "compoundIndex";
1762
1801
  /**
1763
1802
  * Object-level: the object (`{ resourceType, resourceId }`) names one row of a resource whose type is chosen at
1764
1803
  * run time from a published target set. See {@link ResourceReferenceParams}.