ddd-ts-kit 0.96.0 → 0.97.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.fr.md +5 -3
  3. package/README.md +4 -2
  4. package/dist/check/authz/operator-tuples.d.ts +16 -0
  5. package/dist/check/authz/operator-tuples.d.ts.map +1 -0
  6. package/dist/check/authz/operator-tuples.js +29 -0
  7. package/dist/check/authz/operator-tuples.js.map +1 -0
  8. package/dist/check/authz/own-authorizer.d.ts +9 -0
  9. package/dist/check/authz/own-authorizer.d.ts.map +1 -0
  10. package/dist/check/authz/own-authorizer.js +15 -0
  11. package/dist/check/authz/own-authorizer.js.map +1 -0
  12. package/dist/check/catalogue/architecture-rules.d.ts.map +1 -1
  13. package/dist/check/catalogue/architecture-rules.js +4 -0
  14. package/dist/check/catalogue/architecture-rules.js.map +1 -1
  15. package/dist/check/explain/authz-docs.d.ts.map +1 -1
  16. package/dist/check/explain/authz-docs.js +12 -1
  17. package/dist/check/explain/authz-docs.js.map +1 -1
  18. package/dist/check/explain/scheduling-docs.d.ts.map +1 -1
  19. package/dist/check/explain/scheduling-docs.js +22 -0
  20. package/dist/check/explain/scheduling-docs.js.map +1 -1
  21. package/dist/check/fixtures/authz-granted-fixtures.d.ts.map +1 -1
  22. package/dist/check/fixtures/authz-granted-fixtures.js +69 -0
  23. package/dist/check/fixtures/authz-granted-fixtures.js.map +1 -1
  24. package/dist/check/fixtures/authz-resource-modelled-fixtures.d.ts.map +1 -1
  25. package/dist/check/fixtures/authz-resource-modelled-fixtures.js +5 -0
  26. package/dist/check/fixtures/authz-resource-modelled-fixtures.js.map +1 -1
  27. package/dist/check/fixtures/authz-system-actor-granted-fixtures.d.ts +3 -0
  28. package/dist/check/fixtures/authz-system-actor-granted-fixtures.d.ts.map +1 -0
  29. package/dist/check/fixtures/authz-system-actor-granted-fixtures.js +89 -0
  30. package/dist/check/fixtures/authz-system-actor-granted-fixtures.js.map +1 -0
  31. package/dist/check/fixtures/fixtures.d.ts.map +1 -1
  32. package/dist/check/fixtures/fixtures.js +2 -0
  33. package/dist/check/fixtures/fixtures.js.map +1 -1
  34. package/dist/check/fixtures/scheduling-fixtures.d.ts.map +1 -1
  35. package/dist/check/fixtures/scheduling-fixtures.js +47 -1
  36. package/dist/check/fixtures/scheduling-fixtures.js.map +1 -1
  37. package/dist/check/rules/authz-granted.d.ts +19 -6
  38. package/dist/check/rules/authz-granted.d.ts.map +1 -1
  39. package/dist/check/rules/authz-granted.js +59 -7
  40. package/dist/check/rules/authz-granted.js.map +1 -1
  41. package/dist/check/rules/authz-system-actor-granted.d.ts +15 -0
  42. package/dist/check/rules/authz-system-actor-granted.d.ts.map +1 -0
  43. package/dist/check/rules/authz-system-actor-granted.js +91 -0
  44. package/dist/check/rules/authz-system-actor-granted.js.map +1 -0
  45. package/dist/check/rules/scheduling-job-registered.d.ts +12 -0
  46. package/dist/check/rules/scheduling-job-registered.d.ts.map +1 -0
  47. package/dist/check/rules/scheduling-job-registered.js +40 -0
  48. package/dist/check/rules/scheduling-job-registered.js.map +1 -0
  49. package/dist/check/scheduling/job-classes.d.ts +13 -0
  50. package/dist/check/scheduling/job-classes.d.ts.map +1 -0
  51. package/dist/check/scheduling/job-classes.js +32 -0
  52. package/dist/check/scheduling/job-classes.js.map +1 -0
  53. package/dist/commands/generate.js +1 -1
  54. package/dist/commands/generate.js.map +1 -1
  55. package/dist/commands/prisma-generate.d.ts.map +1 -1
  56. package/dist/commands/prisma-generate.js +2 -1
  57. package/dist/commands/prisma-generate.js.map +1 -1
  58. package/dist/commands/typeorm-generate.d.ts.map +1 -1
  59. package/dist/commands/typeorm-generate.js +2 -1
  60. package/dist/commands/typeorm-generate.js.map +1 -1
  61. package/dist/generate/kinds/extend-event-sourced-aggregate.js +2 -2
  62. package/dist/generate/kinds/extend-event-sourced-aggregate.js.map +1 -1
  63. package/dist/generate/kinds/integration-handler-kind.d.ts.map +1 -1
  64. package/dist/generate/kinds/integration-handler-kind.js +1 -13
  65. package/dist/generate/kinds/integration-handler-kind.js.map +1 -1
  66. package/dist/generate/kinds/job/grant-system-actor.js +4 -2
  67. package/dist/generate/kinds/job/grant-system-actor.js.map +1 -1
  68. package/dist/generate/kinds/projection-kind.d.ts.map +1 -1
  69. package/dist/generate/kinds/projection-kind.js +15 -10
  70. package/dist/generate/kinds/projection-kind.js.map +1 -1
  71. package/dist/generate/kinds/subscription-vars.d.ts +8 -0
  72. package/dist/generate/kinds/subscription-vars.d.ts.map +1 -0
  73. package/dist/generate/kinds/subscription-vars.js +14 -0
  74. package/dist/generate/kinds/subscription-vars.js.map +1 -0
  75. package/dist/generate/refuse-shared-writes.d.ts +1 -1
  76. package/dist/generate/refuse-shared-writes.d.ts.map +1 -1
  77. package/dist/generate/refuse-shared-writes.js +25 -2
  78. package/dist/generate/refuse-shared-writes.js.map +1 -1
  79. package/dist/init/first-install-note.d.ts.map +1 -1
  80. package/dist/init/first-install-note.js +1 -0
  81. package/dist/init/first-install-note.js.map +1 -1
  82. package/dist/init/manifest/versions.js +24 -24
  83. package/dist/migration/ensure-database-reachable.d.ts +13 -0
  84. package/dist/migration/ensure-database-reachable.d.ts.map +1 -0
  85. package/dist/migration/ensure-database-reachable.js +51 -0
  86. package/dist/migration/ensure-database-reachable.js.map +1 -0
  87. package/dist/migration/index.d.ts +1 -0
  88. package/dist/migration/index.d.ts.map +1 -1
  89. package/dist/migration/index.js +1 -0
  90. package/dist/migration/index.js.map +1 -1
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/dist/worker/add-worktree.d.ts +5 -1
  94. package/dist/worker/add-worktree.d.ts.map +1 -1
  95. package/dist/worker/add-worktree.js +6 -2
  96. package/dist/worker/add-worktree.js.map +1 -1
  97. package/package.json +4 -4
  98. package/templates/aggregate/event-sourced.events.mapper.ts.tpl +2 -2
  99. package/templates/pipeline/package-scripts.json +1 -1
  100. package/templates/projection/projection.manual.ts.tpl +8 -0
  101. package/templates/projection/wiring.manual.tpl +22 -0
  102. package/templates/projection/wiring.tsyringe.tpl +4 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,36 @@ What each version changes for someone who uses the kit. The packages of `package
4
4
  together, under one version; the notes of each [GitHub release](https://github.com/gbourgeat/ddd-ts-kit/releases)
5
5
  list the pull requests behind it.
6
6
 
7
+ ## 0.97.0
8
+
9
+ **Under the sandbox of the regulated profile, `prisma-generate` and `typeorm-generate` say that the database is out of reach instead of failing with a raw connection error.** A sandboxed command cannot open a TCP connection to the local PostgreSQL (probed on Claude Code 2.1.311 on Linux: `allowedDomains` with the host and the port, `allowLocalBinding` and `allowAllUnixSockets` all end in `ECONNREFUSED`; the sandbox's network leaves through an HTTP proxy only, and `allowLocalBinding` and `allowUnixSockets` are macOS settings), so `init` writes no setting for it. When `DATABASE_URL` is set and its server does not answer, the two commands stop before the ORM tool, exit 3 and say that migrations and database tests run outside the sandbox, by the owner or the CI. `drizzle-kit generate` needs no connection and is unchanged. The sandbox guide (and its French translation), the notes of `init` and the `persistence`, `parallel-work` and `story` skills say it.
10
+
11
+ **`check` reports a slice the started application cannot run: a job nobody registers, a system actor nobody grants, a permission nobody holds under relationships.** Three rows of a trial were marked done with every spec and `verify` green, yet the started application could not do them. Two rules are new and one reads more:
12
+
13
+ - **`scheduling/job-registered`** (an error): in the explicit style, the class of a job (`application/scheduling/*.job.ts`) or background job (`application/background/*.background-job.ts`) that no other file outside the tests registers (`.handledBy(..)`, `.register(..)` or `new`) is reported. The declared style registers by decorator, which `declarations/role-declared` already requires.
14
+ - **`authz/system-actor-granted`** (an error): under relationships, a `systemActor(<name>)` of a context (a string literal, or `<Class>.name`) in a file that sends a command or a query not declared public needs the subject `system:system:<name>` in a file of `platform/auth/relationships/`. Without it the command is refused with FORBIDDEN when the application runs, which a spec on a fake authorizer never shows. Silent with an authorizer of the project's own.
15
+ - **`authz/granted`** now reads relationships too (a warning, as under roles): a permission the schema leaves on the context is held by its operators, and it is reported when no signed-in grant holds it and no source outside the tests writes an `operator` relationship on that context (for a person or a system actor). Silent with an authorizer of the project's own, which may grant what the schema does not, and in a project that makes no person operator of any context in its sources: it provisions its operators out of the tree, and a project as generated stays at zero finding. It stays a warning because a permission granted to nobody can be a state between two slices. A permission derived on an element is not judged, and a schema or a tuple the checker cannot read keeps the rule silent.
16
+
17
+ **`generate job` wrote the grant of the system actor of a job under a subject the authorizer never matches.** On relationships it wrote `subject: 'system:<job>'`, while the authorizer reads an actor as `<type>:<id>`, here `system:system:<job>`: the job was refused at run time. It now writes `system:system:<job>`.
18
+
19
+ The use-case and plan-slices skills say a row is done when the started application does it, and name the three rules that prove it.
20
+
21
+ To move: run `ddd-ts-kit check`. Register each reported job in the module file of its context; in `relate-system-actors.ts` of a project on relationships, write `system:system:<name>` for each reported system actor, and correct the lines `generate job` wrote as `system:<job>`; make somebody operator of each context whose permissions `authz/granted` reports (a provisioning step), or leave the warning while the grant is the work of a later slice.
22
+
23
+ **`generate projection` works in the explicit style.** It no longer refuses `stack.style: explicit`. On tsyringe the projector keeps `@Projection` and `@On` and the module file of the context includes it with `builder.include(<Name>Projection)`, so its consumer, its processed mark and its metrics are the ones of the declared style. On a platform wired by hand (Nest, or `di: manual`) the projector is a plain class and the module file subscribes it under its consumer name `<context>.<name>`, with the processed mark of any hand-wired consumer (no projection metrics, no listing by `describe`).
24
+
25
+ **`generate job` and `generate integration-event` with `--local-only` name the command the conductor runs on the trunk.** The refusal (these two kinds write shared files: the job settings and the grant of the system actor, the audited events and the context map) now prints the same command without `--local-only` (and without `--cwd`), then says to commit it there, run `merge-trunk` in the worker's branch and fill the TODOs, as the refusal of a missing repository already does. The `parallel-work` and `plan-slices` skills and the parallel-work guide (and its French translation) plan a job or an integration event of a row as a conductor step before the worker's row, the contracts first. The shared part is not split: the registries stay the conductor's.
26
+
27
+ **`worktree`, `worker-scope` and `story-scope` cut the branch of the new worktree with `--no-track`.** A worker's branch needs no upstream, and recording one writes `.git/config`, which the Claude Code sandbox keeps read-only for the length of a session (`git worktree add -b` failed with "unable to lock .git/config" and left a branch without a worktree). The three commands now succeed there. Their default worktree already resolves under `.worktrees/` of the main checkout wherever they run, from inside another worktree too; specs on temporary repositories (a read-only `config.lock`, a run from a worktree) pin both.
28
+
29
+ **The codec `generate aggregate --event-sourced` and `generate domain-event` write now declares an event without data in the shape `docs --stored-events` accepts.** The generator wrote `interface LedgerCreditedData {}`, which the command refuses ("declares no member"). It now writes `type LedgerCreditedData = Record<string, never>;`, which is recorded as it stands; an event that carries fields gets an `interface` with them, as before.
30
+
31
+ To move: nothing for a codec already filled. A generated codec you left with an empty `interface XData {}` for an event that carries nothing: write `type XData = Record<string, never>;`.
32
+
33
+ **The guard refuses a git command that skips the hooks of the project.** A headless session committed with `git commit --no-verify` and nothing stopped it, though the pre-commit and commit-msg hooks are the local gate of the pipeline. The guard now refuses `--no-verify` on `git commit`, `push`, `merge`, `pull` and `rebase` (also its unambiguous abbreviations), `-n` on `git commit` (alone or in a cluster such as `-an`), `git -c core.hooksPath=...`, `git config core.hooksPath`, and `LEFTHOOK=0` or `HUSKY=0` set for a command that runs git. The reason says the hooks are the local gate; in `advise` mode it asks, with `guard: "off"` it is silent. The commit-discipline skill says so.
34
+
35
+ To move: nothing. If a hook is broken, fix the hook or have the project owner skip it in a terminal.
36
+
7
37
  ## 0.96.0
8
38
 
9
39
  **`plan-waves` replays the generator commands of the plan and refuses a name the glossary does not define, before a worker runs the row.** A plan whose rows use words the glossary of their context does not define, with no `--term`, was handed to workers as it was, and each of them was refused at the first command: on a plan of the incident-response example written by a small model, 71 of the 85 commands of one context. Once the rows can be ordered, `plan-waves` now replays their generator commands in a copy of the project, in the order of the waves, and reports, without waves and with exit 1, each name whose words the glossary of its context does not define (`undefined-word`) or that carries a technical word no term holds (`technical-word`), counting the `--term` of the row and of the rows it waits for, with the `--term` to add. The generator itself says which names a command introduces, so the check judges exactly what a worker would meet. The commands the generator refuses for another reason (a missing `--module`, an aggregate no row generates) are listed apart, without failing (`notReplayed` in `--json`). The `plan-slices` skill commits a plan only once `plan-waves` exits 0.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:84672fb8ed017c79 -->
2
+ <!-- translation-of: README.md sha256:f7701cee925ecc13 -->
3
3
 
4
4
  # ddd-ts-kit
5
5
 
@@ -776,7 +776,7 @@ Next, in this order: the language of the context first, then the business decisi
776
776
  | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>` | `application/integration/handlers/<name>.integration-handler.ts`, une classe `<Name>IntegrationHandler` qui dépend de `CommandBus`, sa *spec*, son abonnement idempotent sous le nom de consommateur `<context>.<name>` ; refusé sauf si l'amont est déclaré |
777
777
  | `erasure-handler` | `<context>` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, une classe `DataSubjectErasedIntegrationHandler` qui efface ce que le contexte garde d'une personne par son `<Context>PersonalDataErasure` quand la plateforme annonce `privacy.data-subject.erased` (`dataSubjectErasedV1` du kernel), sa *spec* sur le *fake*, son abonnement idempotent sous le nom de consommateur `<context>.data-subject-erased` (dans une transaction derrière un *broker*) ; pour un contexte qui tourne comme un service à part ou copie des données personnelles depuis des événements. Refusé tant que le contexte n'a pas son effacement (`generate repository --personal`) |
778
778
  | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit]` | réaction à un événement du domaine du contexte, *spec*, abonnement ; avant la validation (commit) de l'unité de travail par défaut, après elle avec `--phase after-commit` (un effet qu'aucune transaction ne couvre, au plus une fois), et la *spec* exécute la réaction dans cette phase |
779
- | `projection` (`projector`) | `<context> <Name> <event-type>` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec* ; style déclaré seulement. Il tient un seul modèle de lecture : son port est reçu par le constructeur |
779
+ | `projection` (`projector`) | `<context> <Name> <event-type>` | un projecteur dans `application/projections/<name>.projection.ts`, déclaré avec `@Projection('<context>.<name>')` et une méthode `@On(definition)` pour l'événement d'intégration, que publie le contexte lui-même ou un amont déclaré, et sa *spec*. Dans le style explicite sur tsyringe, le fichier de module du contexte l'inclut par `builder.include(<Name>Projection)` ; sur une plateforme câblée à la main, la classe est simple et le module la souscrit sous son nom de consommateur. Il tient un seul modèle de lecture : son port est reçu par le constructeur |
780
780
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, une classe `<Name>Job implements ScheduledJob` qui envoie la commande, en tant que `systemActor('<context>.<name>')` quand elle est protégée, avec `execution.scheduledAt` quand la commande le prend ; `test/unit/<name>.job.spec.ts`, qui exécute le *job* (par son nom sur tsyringe, `application.jobs.runNow` ; `job.run(occurrence)` en câblage manuel) et vérifie la commande qu'il a envoyée ; son enregistrement ; son interrupteur dans `platform/jobs/job-settings.ts` ; l'autorisation de son acteur système (ci-dessous) |
781
781
  | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, une classe `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` nommée par son `jobName` statique `<context>.<name>`, qui envoie la commande en tant que `execution.actor` quand elle est protégée, suivi d'un champ de `<Name>Payload` par autre paramètre du constructeur de la commande (chaînes, nombres, booléens, littéraux et listes de ceux-ci tels qu'écrits, une `Date` sous forme de son texte ISO ; tout le reste est refusé) ; `test/unit/<name>.background-job.spec.ts`, qui le met en file avec une charge utile de chaque champ en tant qu'utilisateur et exécute ce qui est dû (à travers l'application de test sur tsyringe, à travers une file et un *worker* en mémoire sur les bus de test sinon) ; son enregistrement (`@Background()`, `builder.backgroundJob(..)` dans le fichier de module sur tsyringe, `platform.backgroundJobs.register(..)` dans le fichier de module d'une plateforme câblée à la main) |
782
782
  | `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (son état, `processName`, `timeoutJob`, `isState`, une première étape qui arme une échéance, une étape qui y met fin à temps, l'étape de l'échéance), `application/background/<name>-timeout.background-job.ts`, qui livre ses expirations au moyen de `ProcessRunner`, et les *specs* des deux (`givenProcess`, la file de l'application de test sur tsyringe, une file et un *runner* en mémoire sur les bus de test sinon) |
@@ -2278,7 +2278,8 @@ règle.
2278
2278
  | `config/valid` | un amont, une classification, une relation, un identifiant de règle, un mode de `guard` ou un `importExtension` inconnu ; un contexte absent du disque ou de la configuration ; une limite de `commit` qui n'est pas un entier positif |
2279
2279
  | `config/suppression-needs-reason` | une désactivation sans identifiant de règle ou sans raison (gardée comme alias à côté de `governance/recorded-deviation`, qui juge la raison) |
2280
2280
  | `authz/declared` | dans un fichier de module, `builder.command(X)` ou `builder.query(X)` sans `.requires(` ni `.public(` dans sa chaîne, sauf si la classe du message porte `@Requires` ou `@Public` de `@ddd-ts-kit/kernel/declarations` ; en câblage manuel ou nest, une classe de commande ou de requête absente de tous les `requires(X, ...)` et `publicUseCase(X)` du fichier de module et de `application/authorization/` ; un `defineRoute` sans `security` (le type de la route le refuse déjà, et une liste vide aussi : c'est le filet au niveau du texte pour une définition construite de façon lâche) ; dans le style déclaré, la classe exportée d'un fichier `*.command.ts` ou `*.query.ts` qui ne porte ni `@Requires` ni `@Public` |
2281
- | `authz/granted` | avec `stack.authz` `rbac`, une permission du `definePermissions` d'un contexte que ni `platform/auth/roles/roles.ts` ni `platform/auth/authorization/signed-in-grants.ts` n'accorde par son nom (par l'entrée de son ensemble, son identifiant ou `<contexte>:*`) ; le `*` du super-administrateur ne compte pas (un avertissement) |
2281
+ | `authz/granted` | avec `stack.authz` `rbac`, une permission du `definePermissions` d'un contexte que ni `platform/auth/roles/roles.ts` ni `platform/auth/authorization/signed-in-grants.ts` n'accorde par son nom (par l'entrée de son ensemble, son identifiant ou `<contexte>:*`) ; le `*` du super-administrateur ne compte pas (un avertissement) ; avec `rebac`, une permission que le schéma laisse sur le contexte alors qu'aucune source hors des tests n'écrit de relation `operator` (d'une personne ou d'un acteur système) sur ce contexte et qu'aucun droit de toute personne connectée ne la tient, dans un projet qui fait déjà d'une personne l'opérateur d'un contexte ; muette avec un *authorizer* propre au projet (un avertissement) |
2282
+ | `authz/system-actor-granted` | avec `stack.authz` `rebac`, un `systemActor(<name>)` d'un contexte (un littéral, ou `<Classe>.name`) dans un fichier qui envoie une commande ou une requête non déclarée publique, alors qu'aucun fichier de `platform/auth/relationships/` ne nomme le sujet `system:system:<name>` |
2282
2283
  | `authz/scope-narrows` | dans un contexte, un appel `.scope(` dont la permission (l'entrée d'un ensemble dans l'appel, ou dans une constante ou un champ du fichier) est détenue par toute personne connectée, dans `platform/auth/authorization/signed-in-grants.ts` ou dans les `grants` d'un `new SignedInGrantsAuthorizer` : sa portée est toujours `all` ; des droits ou une permission qu'elle ne sait pas lire sont signalés aussi (un avertissement) |
2283
2284
  | `privacy/declared-field` | avec `stack.privacy` `on` : une colonne d'une table Knex, d'une table Drizzle ou d'un *entity schema* TypeORM de `infrastructure/persistence/`, ou d'un modèle Prisma dans le schéma du contexte, dont le nom porte un mot du vocabulaire personnel et qu'aucune déclaration `personalFields` du contexte ne nomme |
2284
2285
  | `privacy/event-payload-declared` | avec `stack.privacy` `on` : un champ du *payload* d'un événement d'intégration (le `z.object` de la déclaration, la classe ou l'interface de son `.payload.ts`) nommé comme une donnée personnelle que son option `personal` ne liste pas |
@@ -2315,6 +2316,7 @@ règle.
2315
2316
  | `ports/no-concrete-dependency` | une liste de dépendances qui nomme une classe importée de `infrastructure/` ou de `test/fakes/` d'un contexte ; dans le style déclaré, un paramètre de constructeur d'une classe déclarée qui ne liste rien, typé par une telle classe |
2316
2317
  | `ports/value-import` | une classe nommée dans une liste de dépendances, ou donnée à `bind` ou `rebind`, importée avec `import type` ou `import { type X }` |
2317
2318
  | `scheduling/job-triggers-use-case` | dans `application/scheduling/*.job.ts` : une classe exportée qui n'implémente pas `ScheduledJob` ; un `run` qui n'envoie aucune commande (pas d'appel `.execute(`) ; un *repository* dans la liste de dépendances ou le constructeur ; un import de `domain/aggregates/`, `domain/entities/`, `domain/services/` ou `infrastructure/`. Un enregistrement `builder.job(..)` d'une classe qui vit ailleurs |
2319
+ | `scheduling/job-registered` | dans le style explicite, la classe d'un *job* (`application/scheduling/*.job.ts`) ou d'un *job* d'arrière-plan (`application/background/*.background-job.ts`) qu'aucun autre fichier hors des tests n'enregistre (`.handledBy(..)`, `.register(..)` ou `new`) |
2318
2320
  | `scheduling/job-name` | le premier argument de `@Scheduled(..)` ou de `.job(..)` qui n'est pas une chaîne littérale `<context>.<job-name>` en kebab-case minuscule avec le contexte de son fichier ; un `systemActor(..)` d'un fichier de *job* qui passe un autre nom ; un même nom de *job* utilisé deux fois dans le projet |
2319
2321
  | `errors/code-unique` | sous `"stack.refusals": "named"` ou `"factories"`, dans le `domain/errors/` d'un contexte : un code posé une seconde fois, par une valeur de `<context>.codes.ts`, une fabrique (`refusal('CODE', ..)`) ou une classe (`readonly code = 'CODE'`), avec le fichier et la ligne du premier. Le même code dans deux contextes n'est pas signalé |
2320
2322
  | `errors/code-listed` | sous `"stack.refusals": "named"`, dans le `domain/errors/` d'un contexte : une classe de refus (qui étend `DomainRefusal`) dont le code n'est pas `readonly code = <Context>Codes.<Class>` lu dans le `<context>.codes.ts` de son contexte, des classes de refus sans `<context>.codes.ts`, une classe que la liste ne contient pas ; dans `<context>.codes.ts`, pas de liste `<Context>Codes` ou une liste non déclarée `as const`, une clé qui ne nomme aucune classe de refus du contexte, une valeur qui n'est pas un littéral de chaîne en casse de constante |
package/README.md CHANGED
@@ -747,7 +747,7 @@ Next, in this order: the language of the context first, then the business decisi
747
747
  | `integration-handler` (`consumer`) | `<context> <upstreamContext> <eventType>` | `application/integration/handlers/<name>.integration-handler.ts`, a class `<Name>IntegrationHandler` depending on `CommandBus`, its spec, its idempotent subscription under the consumer name `<context>.<name>`; refused unless the upstream is declared |
748
748
  | `erasure-handler` | `<context>` | `application/integration/handlers/data-subject-erased.integration-handler.ts`, a class `DataSubjectErasedIntegrationHandler` that erases what the context keeps of a person through its `<Context>PersonalDataErasure` when the platform announces `privacy.data-subject.erased` (`dataSubjectErasedV1` of the kernel), its spec on the fake, its idempotent subscription under the consumer name `<context>.data-subject-erased` (in a transaction behind a broker); for a context that runs as a service of its own or copies personal data from events. Refused until the context has its erasure (`generate repository --personal`) |
749
749
  | `event-handler` | `<context> <Aggregate> <Fact> [--phase before-commit\|after-commit]` | reaction to a domain event of the context, spec, subscription; before the commit of the unit of work by default, after it with `--phase after-commit` (an effect no transaction covers, at most once), and the spec runs the reaction in that phase |
750
- | `projection` (`projector`) | `<context> <Name> <event-type>` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec; declared style only. It keeps one read model: its port is received in the constructor |
750
+ | `projection` (`projector`) | `<context> <Name> <event-type>` | a projector in `application/projections/<name>.projection.ts`, declared with `@Projection('<context>.<name>')` and one `@On(definition)` method for the integration event, which the context itself or a declared upstream publishes, and its spec. In the explicit style on tsyringe the module file of the context includes it with `builder.include(<Name>Projection)`; on a hand-wired platform the class is plain and the module subscribes it under its consumer name. It keeps one read model: its port is received in the constructor |
751
751
  | `job` | `<context> <Name> (--every <duration> \| --cron "<expression>" [--time-zone <zone>]) --command <UseCaseName>` | `application/scheduling/<name>.job.ts`, a class `<Name>Job implements ScheduledJob` that sends the command, as `systemActor('<context>.<name>')` when it is protected, with `execution.scheduledAt` when the command takes it; `test/unit/<name>.job.spec.ts`, which runs the job (by name on tsyringe, `application.jobs.runNow`; `job.run(occurrence)` with hand wiring) and asserts the command it sent; its registration; its switch in `platform/jobs/job-settings.ts`; the grant of its system actor (below) |
752
752
  | `background-job` | `<context> <Name> --command <UseCaseName>` | `application/background/<name>.background-job.ts`, a class `<Name>BackgroundJob implements BackgroundJob<<Name>Payload>` named by its static `jobName` `<context>.<name>`, that sends the command as `execution.actor` when it is protected, followed by one field of `<Name>Payload` per other parameter of the constructor of the command (strings, numbers, booleans, literals and lists of them as written, a `Date` as its ISO text; anything else is refused); `test/unit/<name>.background-job.spec.ts`, which enqueues it with a payload of every field as a user and runs what is due (through the test application on tsyringe, through a queue and a worker in memory on the test buses otherwise); its registration (`@Background()`, `builder.backgroundJob(..)` in the module file on tsyringe, `platform.backgroundJobs.register(..)` in the module file of a platform wired by hand) |
753
753
  | `process` (`process-manager`) | `<context> <Name>` | `application/processes/<name>.process.ts` (its state, `processName`, `timeoutJob`, `isState`, a first step that arms a deadline, a step that ends it in time, the step of the deadline), `application/background/<name>-timeout.background-job.ts`, which delivers its timeouts through `ProcessRunner`, and the specs of both (`givenProcess`, the queue of the test application on tsyringe, a queue and a runner in memory on the test buses otherwise) |
@@ -2143,7 +2143,8 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2143
2143
  | `config/valid` | unknown upstream, classification, relationship, rule id, `guard` mode or `importExtension`; a context missing on disk or in the config; a `commit` limit that is not a positive integer |
2144
2144
  | `config/suppression-needs-reason` | a suppression without a rule id or a reason (kept as an alias next to `governance/recorded-deviation`, which judges the reason) |
2145
2145
  | `authz/declared` | in a module file, `builder.command(X)` or `builder.query(X)` without `.requires(` or `.public(` in its chain, unless the message class carries `@Requires` or `@Public` of `@ddd-ts-kit/kernel/declarations`; with manual or nest wiring, a command or query class absent from every `requires(X, ...)` and `publicUseCase(X)` of the module file and of `application/authorization/`; a `defineRoute` without `security` (the route type refuses it already, and an empty list too: this is the text-level net for a definition built loosely); in the declared style, the exported class of a `*.command.ts` or `*.query.ts` file carrying neither `@Requires` nor `@Public` |
2146
- | `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning) |
2146
+ | `authz/granted` | with `stack.authz` `rbac`, a permission of a context's `definePermissions` that neither `platform/auth/roles/roles.ts` nor `platform/auth/authorization/signed-in-grants.ts` grants by name (by the entry of its set, its id or `<context>:*`); the super-admin `*` does not count (a warning); with `rebac`, a permission the schema leaves on the context while no source outside the tests writes an `operator` relationship (of a person or a system actor) on that context and no signed-in grant holds it, in a project that already makes a person operator of some context; silent with an authorizer of the project's own (a warning) |
2147
+ | `authz/system-actor-granted` | with `stack.authz` `rebac`, a `systemActor(<name>)` of a context (a literal, or `<Class>.name`) in a file that sends a command or a query not declared public, while no file of `platform/auth/relationships/` names the subject `system:system:<name>` |
2147
2148
  | `authz/scope-narrows` | in a context, a `.scope(` call whose permission (the entry of a set in the call, or in a constant or a field of the file) every signed-in person holds, in `platform/auth/authorization/signed-in-grants.ts` or in the `grants` of a `new SignedInGrantsAuthorizer`: its scope is always `all`; grants or a permission it cannot read are reported too (a warning) |
2148
2149
  | `privacy/declared-field` | with `stack.privacy` `on`: a column of a Knex table, a Drizzle table or a TypeORM entity schema of `infrastructure/persistence/`, or of a Prisma model in the schema of the context, whose name holds a word of the personal vocabulary and that no `personalFields` declaration of the context names |
2149
2150
  | `privacy/event-payload-declared` | with `stack.privacy` `on`: a field of the payload of an integration event (the `z.object` of the declaration, the class or the interface of its `.payload.ts`) named like personal data that its `personal` option does not list |
@@ -2180,6 +2181,7 @@ const due = handler.isDueNow(new Reminder(new Date('2026-03-01T09:00:00Z'))); //
2180
2181
  | `ports/no-concrete-dependency` | a dependency list naming a class imported from `infrastructure/` or from `test/fakes/` of a context; in the declared style, a constructor parameter of a declared class that lists nothing, typed by such a class |
2181
2182
  | `ports/value-import` | a class named in a dependency list, or given to `bind` or `rebind`, imported with `import type` or `import { type X }` |
2182
2183
  | `scheduling/job-triggers-use-case` | in `application/scheduling/*.job.ts`: an exported class that does not implement `ScheduledJob`; a `run` that sends no command (no `.execute(` call); a repository in the dependency list or the constructor; an import from `domain/aggregates/`, `domain/entities/`, `domain/services/` or `infrastructure/`. A `builder.job(..)` registration of a class that lives elsewhere |
2184
+ | `scheduling/job-registered` | in the explicit style, the class of a job (`application/scheduling/*.job.ts`) or background job (`application/background/*.background-job.ts`) that no other file outside the tests registers (`.handledBy(..)`, `.register(..)` or `new`) |
2183
2185
  | `scheduling/job-name` | the first argument of `@Scheduled(..)` or `.job(..)` that is not a string literal `<context>.<job-name>` in lower-case kebab-case with the context of its file; a `systemActor(..)` of a job file passing another name; one job name used twice in the project |
2184
2186
  | `errors/code-unique` | under `"stack.refusals": "named"` or `"factories"`, in the `domain/errors/` of a context: a code set a second time, by a value of `<context>.codes.ts`, a factory (`refusal('CODE', ..)`) or a class (`readonly code = 'CODE'`), with the file and line of the first. The same code in two contexts is not reported |
2185
2187
  | `errors/code-listed` | under `"stack.refusals": "named"`, in the `domain/errors/` of a context: a refusal class (extending `DomainRefusal`) whose code is not `readonly code = <Context>Codes.<Class>` from the `<context>.codes.ts` of its context, refusal classes and no `<context>.codes.ts`, a class the list does not hold; in `<context>.codes.ts`, no list `<Context>Codes` or one not declared `as const`, a key that names no refusal class of the context, a value that is not a string literal in constant case |
@@ -0,0 +1,16 @@
1
+ import type { Project } from '../model/project.js';
2
+ /** The contexts somebody is made operator of by a relationship written in the sources, outside the tests. */
3
+ export interface OperatorTuples {
4
+ /** A tuple whose object the checker cannot read (a computed context): every context may be covered. */
5
+ readonly unreadable: boolean;
6
+ readonly contexts: ReadonlySet<string>;
7
+ /** A tuple makes a person (a subject other than `system:..`) operator of some context: the project provisions its operators in its tree. */
8
+ readonly provisioned: boolean;
9
+ }
10
+ /**
11
+ * The `{ object: 'context:<name>', relation: 'operator', subject: '..' }` tuples the project writes
12
+ * in its sources, tests aside, whoever the subject is: a person, or a system actor whose grant
13
+ * `authz/system-actor-granted` judges (a use case only the system sends is held by it).
14
+ */
15
+ export declare function operatorTuples(project: Project): OperatorTuples;
16
+ //# sourceMappingURL=operator-tuples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-tuples.d.ts","sourceRoot":"","sources":["../../../src/check/authz/operator-tuples.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQhD,6GAA6G;AAC7G,MAAM,WAAW,cAAc;IAC7B,uGAAuG;IACvG,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,4IAA4I;IAC5I,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAoB/D"}
@@ -0,0 +1,29 @@
1
+ const BODY = '(?:[^{}]|\\$\\{[^{}]*\\})*';
2
+ const QUOTE = '[\'"`]';
3
+ const TUPLE = new RegExp(`\\{${BODY}?\\brelation\\s*:\\s*(${QUOTE})operator\\1${BODY}\\}`, 'g');
4
+ const SYSTEM_SUBJECT = /\bsubject\s*:\s*(['"`])system:/;
5
+ const OBJECT = /\bobject\s*:\s*(['"`])context:([^'"`]*)\1/;
6
+ /**
7
+ * The `{ object: 'context:<name>', relation: 'operator', subject: '..' }` tuples the project writes
8
+ * in its sources, tests aside, whoever the subject is: a person, or a system actor whose grant
9
+ * `authz/system-actor-granted` judges (a use case only the system sends is held by it).
10
+ */
11
+ export function operatorTuples(project) {
12
+ const contexts = new Set();
13
+ let unreadable = false;
14
+ let provisioned = false;
15
+ for (const file of project.files.filter(({ isTest }) => !isTest)) {
16
+ for (const [tuple] of file.text.matchAll(TUPLE)) {
17
+ provisioned ||= !SYSTEM_SUBJECT.test(tuple);
18
+ const context = OBJECT.exec(tuple)?.[2];
19
+ if (context === undefined || context.includes('${')) {
20
+ unreadable = true;
21
+ }
22
+ else {
23
+ contexts.add(context);
24
+ }
25
+ }
26
+ }
27
+ return { unreadable, contexts, provisioned };
28
+ }
29
+ //# sourceMappingURL=operator-tuples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator-tuples.js","sourceRoot":"","sources":["../../../src/check/authz/operator-tuples.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG,4BAA4B,CAAC;AAC1C,MAAM,KAAK,GAAG,QAAQ,CAAC;AACvB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,MAAM,IAAI,yBAAyB,KAAK,eAAe,IAAI,KAAK,EAAE,GAAG,CAAC,CAAC;AAChG,MAAM,cAAc,GAAG,gCAAgC,CAAC;AACxD,MAAM,MAAM,GAAG,2CAA2C,CAAC;AAW3D;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,WAAW,GAAG,KAAK,CAAC;IAExB,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACjE,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAChD,WAAW,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAE5C,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAExC,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBACpD,UAAU,GAAG,IAAI,CAAC;YACpB,CAAC;iBAAM,CAAC;gBACN,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Project } from '../model/project.js';
2
+ /**
3
+ * Whether the project decides rights with an authorizer of its own: the `createAuthorizer` of the
4
+ * platform imports a class named `*Authorizer` from a file of the project. Such a class may grant
5
+ * what the schema does not (a system actor its own context, a role of the token), which the
6
+ * checker cannot read: the rules that judge the grants of the standard authorizer stay silent.
7
+ */
8
+ export declare function ownAuthorizer(project: Project): boolean;
9
+ //# sourceMappingURL=own-authorizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"own-authorizer.d.ts","sourceRoot":"","sources":["../../../src/check/authz/own-authorizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIhD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAYvD"}
@@ -0,0 +1,15 @@
1
+ import { platformFileIn } from '../../platform-layout/index.js';
2
+ import { isInProject } from './is-in-project.js';
3
+ /**
4
+ * Whether the project decides rights with an authorizer of its own: the `createAuthorizer` of the
5
+ * platform imports a class named `*Authorizer` from a file of the project. Such a class may grant
6
+ * what the schema does not (a system actor its own context, a role of the token), which the
7
+ * checker cannot read: the rules that judge the grants of the standard authorizer stay silent.
8
+ */
9
+ export function ownAuthorizer(project) {
10
+ const path = platformFileIn(project.config, 'auth/authorization/create-authorizer.ts', (candidate) => isInProject(project, candidate));
11
+ return (project.files
12
+ .find((file) => file.path === path)
13
+ ?.imports.some(({ target, names }) => target.kind === 'file' && names.some((name) => name.endsWith('Authorizer'))) ?? false);
14
+ }
15
+ //# sourceMappingURL=own-authorizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"own-authorizer.js","sourceRoot":"","sources":["../../../src/check/authz/own-authorizer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,yCAAyC,EAAE,CAAC,SAAS,EAAE,EAAE,CACnG,WAAW,CAAC,OAAO,EAAE,SAAS,CAAC,CAChC,CAAC;IAEF,OAAO,CACL,OAAO,CAAC,KAAK;SACV,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;QACnC,EAAE,OAAO,CAAC,IAAI,CACZ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CACnG,IAAI,KAAK,CACb,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AA0G1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EAyG7C,CAAC"}
1
+ {"version":3,"file":"architecture-rules.d.ts","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AA4G1C,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,SAAS,IAAI,EA2G7C,CAAC"}
@@ -4,6 +4,7 @@ import { authzFieldsBySchema } from '../rules/authz-fields-by-schema.js';
4
4
  import { authzDeclared } from '../rules/authz-declared.js';
5
5
  import { authzGranted } from '../rules/authz-granted.js';
6
6
  import { authzResourceModelled } from '../rules/authz-resource-modelled.js';
7
+ import { authzSystemActorGranted } from '../rules/authz-system-actor-granted.js';
7
8
  import { authzScopeNarrows } from '../rules/authz-scope-narrows.js';
8
9
  import { privacyDeclaredField } from '../rules/privacy-declared-field.js';
9
10
  import { privacyErasureReachesCopies } from '../rules/privacy-erasure-reaches-copies.js';
@@ -86,6 +87,7 @@ import { purityNoEnvironment } from '../rules/purity-no-environment.js';
86
87
  import { purityNoSystemClock } from '../rules/purity-no-system-clock.js';
87
88
  import { schedulingTenancyDeclared } from '../rules/scheduling-tenancy-declared.js';
88
89
  import { schedulingJobName } from '../rules/scheduling-job-name.js';
90
+ import { schedulingJobRegistered } from '../rules/scheduling-job-registered.js';
89
91
  import { schedulingJobTriggersUseCase } from '../rules/scheduling-job-triggers-use-case.js';
90
92
  import { schemaNoDuplicateShape } from '../rules/schema-no-duplicate-shape.js';
91
93
  import { schemaPresentationOnly } from '../rules/schema-presentation-only.js';
@@ -170,6 +172,7 @@ export const ARCHITECTURE_RULES = [
170
172
  authzGranted,
171
173
  authzScopeNarrows,
172
174
  authzResourceModelled,
175
+ authzSystemActorGranted,
173
176
  privacyDeclaredField,
174
177
  privacyEventPayloadDeclared,
175
178
  privacyErasureReachesCopies,
@@ -197,6 +200,7 @@ export const ARCHITECTURE_RULES = [
197
200
  lifecycleStatusThroughMachine,
198
201
  processSendsCommandsOnly,
199
202
  schedulingJobName,
203
+ schedulingJobRegistered,
200
204
  schedulingTenancyDeclared,
201
205
  importsAliasOnly,
202
206
  importsExtension,
@@ -1 +1 @@
1
- {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,iBAAiB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pB,2BAA2B;IAC3B,2BAA2B;IAC3B,sBAAsB;IACtB,2BAA2B;IAC3B,gBAAgB;IAChB,mBAAmB;IACnB,sBAAsB;IACtB,2BAA2B;IAC3B,sBAAsB;IACtB,sBAAsB;IACtB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,qBAAqB;CACtB,CAAC"}
1
+ {"version":3,"file":"architecture-rules.js","sourceRoot":"","sources":["../../../src/check/catalogue/architecture-rules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,E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;IACtB,sBAAsB;IACtB,2BAA2B;IAC3B,uBAAuB;IACvB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,gCAAgC;IAChC,4BAA4B;IAC5B,kBAAkB;IAClB,2BAA2B;IAC3B,oBAAoB;IACpB,yBAAyB;IACzB,gBAAgB;IAChB,4BAA4B;IAC5B,6BAA6B;IAC7B,wBAAwB;IACxB,iBAAiB;IACjB,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,oBAAoB;IACpB,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,wBAAwB;IACxB,0BAA0B;IAC1B,qBAAqB;CACtB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"authz-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAkHxD,CAAC"}
1
+ {"version":3,"file":"authz-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6HxD,CAAC"}
@@ -29,7 +29,7 @@ await this.access.authorize(command.actor, billingPermissions['invoice.void'], i
29
29
  export class OnlyIssuerVoidsPolicy {}`,
30
30
  },
31
31
  'authz/granted': {
32
- why: "In a project whose rights are roles (stack.authz rbac), a permission does two things: a use case requires it, and a role holds it. The generator declares the first; the grant lives in the roles of the platform. The super-admin holds the wildcard `*`, so a permission no role names is reachable by administrators only, the checks stay green and the people the use case was written for are refused at run time. It fails closed, which is safe, but silently. Judged: every key of every `definePermissions` set of a context is named in `<platformDir>/auth/roles/roles.ts` or in what every signed-in person holds (`signed-in-grants.ts`, which a context preset writes), by the entry of its set (`billingPermissions['invoice.issue']`), by its id (`'billing:invoice.issue'`) or by the wildcard of its context (`'billing:*'`); the bare `*` does not count, and a grant to `Role.System` does. A permission meant for administrators only is granted to `Role.Admin` by name, so that the intent is read in review. Silent when the rights are attributes, relationships or an authorizer of the project, and when the platform has no roles file. A warning: it fails closed.",
32
+ why: "In a project whose rights are roles (stack.authz rbac), a permission does two things: a use case requires it, and a role holds it. The generator declares the first; the grant lives in the roles of the platform. The super-admin holds the wildcard `*`, so a permission no role names is reachable by administrators only, the checks stay green and the people the use case was written for are refused at run time. It fails closed, which is safe, but silently. Judged: every key of every `definePermissions` set of a context is named in `<platformDir>/auth/roles/roles.ts` or in what every signed-in person holds (`signed-in-grants.ts`, which a context preset writes), by the entry of its set (`billingPermissions['invoice.issue']`), by its id (`'billing:invoice.issue'`) or by the wildcard of its context (`'billing:*'`); the bare `*` does not count, and a grant to `Role.System` does. A permission meant for administrators only is granted to `Role.Admin` by name, so that the intent is read in review. Silent when the rights are attributes or an authorizer of the project, and when the platform has no roles file. Under relationships (stack.authz rebac) the same question is asked of the operators: a permission the schema leaves on the context (the schema `init` writes derives on `context` every permission no element derives) is held by the operators of the context, and nobody is an operator until a relationship says so. It is granted when every signed-in person holds it (`signed-in-grants.ts`), or when a source outside the tests writes `{ object: 'context:<context>', relation: 'operator', subject: '<subject>' }` for it, a person (`user:<id>`: a bootstrap, a provisioning step) or a system actor, which holds the permissions of a use case only the system sends (`authz/system-actor-granted` judges that line itself). A permission derived on an element is held through relations the use cases write at run time: not judged. Judged only in a project that provisions operators in its tree, that is when some source makes a person (a subject other than `system:..`) operator of a context: a project that writes none provisions them out of the tree (a seed, an administration tool), and a generated project is silent until the team writes the first. Silent when the checker cannot read the schema (`authz/resource-modelled` says so), finds an operator tuple whose context it cannot read, or the project decides with an authorizer of its own (`createAuthorizer` imports a `*Authorizer` of the project), which may grant what the schema does not. A warning: it fails closed, and a permission granted to nobody can be a state between two slices.",
33
33
  bad: `// contexts/billing/application/authorization/billing.permissions.ts
34
34
  export const billingPermissions = definePermissions('billing', {
35
35
  'invoice.void': { description: 'Void invoice' },
@@ -112,5 +112,16 @@ const answer = withFieldAccess(classSchema(GetAppointmentAnswer), {
112
112
  internalNote: { read: { permission: schedulingPermissions['appointment.note.read'] } },
113
113
  });`,
114
114
  },
115
+ 'authz/system-actor-granted': {
116
+ why: "Under relationships, the application acts on its own behalf as a system actor: a scheduled job, an integration handler, a process, an event handler that sends a command. The actor `system:<name>` is a subject of type `system`, and nothing is permitted to it until a relationship says so; the command it sends is refused with FORBIDDEN when the application runs, and a spec on a fake authorizer never shows it. `generate job` writes the relationship for a job; a handler written by hand needs its line in `systemRelationships` of `<platformDir>/auth/relationships/relate-system-actors.ts`. Judged: every `systemActor(<name>)` of a context outside the tests, with a name the checker reads (a string literal, or `<Class>.name` of a class of the same file), in a file that sends at least one command or query not declared public (`@Public()`, `.public()`, `publicUseCase(..)`): the files of `auth/relationships/` must name the subject `system:system:<name>` (the authorizer reads an actor as `<type>:<id>`, and the id of a system actor is `system:<name>`; a grant written `system:<name>` never matches). Not judged: a name the checker cannot read, a file that sends no message, and a project whose rights are roles or attributes, where the right is the permission of a role or a rule shared by system actors rather than a relationship per actor. Silent without `relate-system-actors.ts`, and with an authorizer of the project's own (`createAuthorizer` imports a `*Authorizer` of the project), which may let a system actor operate its context. An error: the refusal is certain at run time with the standard authorizer.",
117
+ bad: `// application/event-handlers/open-portfolio-for-advisor.event-handler.ts
118
+ await this.commands.execute(new OpenPortfolioCommand(systemActor(OpenPortfolioForAdvisorEventHandler.name), branchId));
119
+ // platform/auth/relationships/relate-system-actors.ts
120
+ const systemRelationships: readonly RelationTuple[] = [];`,
121
+ good: `// platform/auth/relationships/relate-system-actors.ts
122
+ const systemRelationships: readonly RelationTuple[] = [
123
+ { object: 'context:branch-network', relation: 'operator', subject: 'system:system:OpenPortfolioForAdvisorEventHandler' },
124
+ ];`,
125
+ },
115
126
  };
116
127
  //# sourceMappingURL=authz-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authz-docs.js","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,mvBAAmvB;QACxvB,GAAG,EAAE;;;mEAG0D;QAC/D,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,q0BAAq0B;QAC10B,GAAG,EAAE;;;;;4DAKmD;QACxD,IAAI,EAAE;;;;;;sCAM4B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE,koCAAkoC;QACvoC,GAAG,EAAE;;;;;8CAKqC;QAC1C,IAAI,EAAE;;;;;kFAKwE;KAC/E;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;;;;wGAK8F;KACrG;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,u6CAAu6C;QAC56C,GAAG,EAAE;;;;;;qEAM4D;QACjE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,o/BAAo/B;QACz/B,GAAG,EAAE;;;;;gCAKuB;QAC5B,IAAI,EAAE;;;gCAGsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ykBAAykB;QAC9kB,GAAG,EAAE;;;;qDAI4C;QACjD,IAAI,EAAE;;;;;2GAKiG;KACxG;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,i1BAAi1B;QACt1B,GAAG,EAAE;;+FAEsF;QAC3F,IAAI,EAAE;;;;;IAKN;KACD;CACF,CAAC"}
1
+ {"version":3,"file":"authz-docs.js","sourceRoot":"","sources":["../../../src/check/explain/authz-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAsC;IAC3D,gBAAgB,EAAE;QAChB,GAAG,EAAE,mvBAAmvB;QACxvB,GAAG,EAAE;;;mEAG0D;QAC/D,IAAI,EAAE;;;;;mEAKyD;KAChE;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,q0BAAq0B;QAC10B,GAAG,EAAE;;;;;4DAKmD;QACxD,IAAI,EAAE;;;;;;sCAM4B;KACnC;IACD,eAAe,EAAE;QACf,GAAG,EAAE,mlFAAmlF;QACxlF,GAAG,EAAE;;;;;8CAKqC;QAC1C,IAAI,EAAE;;;;;kFAKwE;KAC/E;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,uxDAAuxD;QAC5xD,GAAG,EAAE;;;oGAG2F;QAChG,IAAI,EAAE;;;;;wGAK8F;KACrG;IACD,yBAAyB,EAAE;QACzB,GAAG,EAAE,u6CAAu6C;QAC56C,GAAG,EAAE;;;;;;qEAM4D;QACjE,IAAI,EAAE;;;;;;EAMR;KACC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,o/BAAo/B;QACz/B,GAAG,EAAE;;;;;gCAKuB;QAC5B,IAAI,EAAE;;;gCAGsB;KAC7B;IACD,sBAAsB,EAAE;QACtB,GAAG,EAAE,ykBAAykB;QAC9kB,GAAG,EAAE;;;;qDAI4C;QACjD,IAAI,EAAE;;;;;2GAKiG;KACxG;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,i1BAAi1B;QACt1B,GAAG,EAAE;;+FAEsF;QAC3F,IAAI,EAAE;;;;;IAKN;KACD;IACD,4BAA4B,EAAE;QAC5B,GAAG,EAAE,+kDAA+kD;QACplD,GAAG,EAAE;;;0DAGiD;QACtD,IAAI,EAAE;;;GAGP;KACA;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scheduling-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/scheduling-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA+C7D,CAAC"}
1
+ {"version":3,"file":"scheduling-docs.d.ts","sourceRoot":"","sources":["../../../src/check/explain/scheduling-docs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqE7D,CAAC"}
@@ -45,5 +45,27 @@ export class SendRemindersJob implements ScheduledJob {}`,
45
45
  good: `@Scheduled('billing.send-reminders', { every: '15m', tenancy: 'per-tenant' })
46
46
  export class SendRemindersJob implements ScheduledJob {}`,
47
47
  },
48
+ 'scheduling/job-registered': {
49
+ why: 'The scheduler runs the jobs the module files register, and nothing else. A class in `application/scheduling/*.job.ts` or `application/background/*.background-job.ts` that no registration names is dead code: its spec passes, every other rule passes, and the job never runs. Judged on the exported class of each of those files: in the explicit style another file outside the tests names it in `.handledBy(..)`, in `.register(..)` (`platform.jobs.register`, `platform.backgroundJobs.register`) or builds it with `new`; the declared style registers a class by its decorator, which `declarations/role-declared` requires, and is not judged here. A registration made by a loop or a list the checker does not read is reported as well: write the plain form. `generate job` and `generate background-job` write the registration; a class written by hand needs it. An error from the first day.',
50
+ bad: `// application/scheduling/check-registration.job.ts
51
+ export class CheckRegistrationJob implements ScheduledJob {}
52
+ // brokerage.module.ts
53
+ function registerJobs(platform: Platform): void {
54
+ // ddd-ts-kit:jobs
55
+ // /ddd-ts-kit:jobs
56
+ }`,
57
+ good: `// brokerage.module.ts
58
+ function registerJobs(platform: Platform): void {
59
+ // ddd-ts-kit:jobs
60
+ const checkRegistrationJob = new CheckRegistrationJob(platform.commands);
61
+
62
+ platform.jobs.register({
63
+ name: 'brokerage.check-registration',
64
+ schedule: { cron: '0 6 * * *', timeZone: 'Europe/Paris' },
65
+ run: (execution) => checkRegistrationJob.run(execution),
66
+ });
67
+ // /ddd-ts-kit:jobs
68
+ }`,
69
+ },
48
70
  };
49
71
  //# sourceMappingURL=scheduling-docs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheduling-docs.js","sourceRoot":"","sources":["../../../src/check/explain/scheduling-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,kCAAkC,EAAE;QAClC,GAAG,EAAE,2dAA2d;QAChe,GAAG,EAAE;;;;;;;;;;;;;;;EAeP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,+fAA+f;QACpgB,GAAG,EAAE;;;;mFAI0E;QAC/E,IAAI,EAAE;;wFAE8E;KACrF;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,q6BAAq6B;QAC16B,GAAG,EAAE;yDACgD;QACrD,IAAI,EAAE;yDAC+C;KACtD;CACF,CAAC"}
1
+ {"version":3,"file":"scheduling-docs.js","sourceRoot":"","sources":["../../../src/check/explain/scheduling-docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAsC;IAChE,kCAAkC,EAAE;QAClC,GAAG,EAAE,2dAA2d;QAChe,GAAG,EAAE;;;;;;;;;;;;;;;EAeP;QACE,IAAI,EAAE;;;;;;;;EAQR;KACC;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,+fAA+f;QACpgB,GAAG,EAAE;;;;mFAI0E;QAC/E,IAAI,EAAE;;wFAE8E;KACrF;IACD,6BAA6B,EAAE;QAC7B,GAAG,EAAE,q6BAAq6B;QAC16B,GAAG,EAAE;yDACgD;QACrD,IAAI,EAAE;yDAC+C;KACtD;IACD,2BAA2B,EAAE;QAC3B,GAAG,EAAE,k3BAAk3B;QACv3B,GAAG,EAAE;;;;;;EAMP;QACE,IAAI,EAAE;;;;;;;;;;;EAWR;KACC;CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"authz-granted-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-granted-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+BzC,eAAO,MAAM,sBAAsB,EAAE,SAAS,OAAO,EAuDpD,CAAC"}
1
+ {"version":3,"file":"authz-granted-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-granted-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4CzC,eAAO,MAAM,sBAAsB,EAAE,SAAS,OAAO,EAgHpD,CAAC"}
@@ -11,6 +11,13 @@ const SIGNED_IN = 'src/platform/auth/authorization/signed-in-grants.ts';
11
11
  const DECLARED = source("import { definePermissions } from '@ddd-ts-kit/auth';", '', "export const billingPermissions = definePermissions('billing', {", " 'invoice.issue': { description: 'Issue invoice' },", '});');
12
12
  const ROLE_VOCABULARY = source('export const Role = {', " Admin: 'admin',", " Accountant: 'accountant',", '} as const;', '', 'export type Role = (typeof Role)[keyof typeof Role];');
13
13
  const rule = 'authz/granted';
14
+ const OWN_AUTHORIZER = {
15
+ 'src/platform/auth/authorization/create-authorizer.ts': source("import { MyAuthorizer } from '@/platform/auth/authorization/my.authorizer.js';", '', 'export const createAuthorizer = () => new MyAuthorizer();'),
16
+ 'src/platform/auth/authorization/my.authorizer.ts': 'export class MyAuthorizer {}\n',
17
+ };
18
+ const SCHEMA = 'src/platform/auth/relationships/relationship-schema.ts';
19
+ const RELATE_OPERATORS = 'src/platform/auth/relationships/relate-operators.ts';
20
+ const REBAC = { [CONFIG_FILE]: config({ stack: { authz: 'rebac' } }) };
14
21
  export const AUTHZ_GRANTED_FIXTURES = [
15
22
  {
16
23
  ruleId: rule,
@@ -60,7 +67,69 @@ export const AUTHZ_GRANTED_FIXTURES = [
60
67
  expect: { file: PERMISSIONS },
61
68
  files: granting("// [Role.Accountant]: [billingPermissions['invoice.issue']],"),
62
69
  },
70
+ {
71
+ ruleId: rule,
72
+ name: 'relationships: a permission held on the context, an operator of the context written by a source',
73
+ expect: 'pass',
74
+ files: relating(operatorOf("'context:billing'", "'user:ada'")),
75
+ },
76
+ {
77
+ ruleId: rule,
78
+ name: 'relationships: a permission every signed-in person holds',
79
+ expect: 'pass',
80
+ files: {
81
+ ...relating(),
82
+ [SIGNED_IN]: source('export const signedInGrants: readonly string[] = [', ' // ddd-ts-kit:signed-in-grants', " 'billing:*',", ' // /ddd-ts-kit:signed-in-grants', '];'),
83
+ },
84
+ },
85
+ {
86
+ ruleId: rule,
87
+ name: 'relationships: a permission derived on an element, held through relations written at run time',
88
+ expect: 'pass',
89
+ files: relating(undefined, "[billingPermissions['invoice.issue'].id]: 'owner'"),
90
+ },
91
+ {
92
+ ruleId: rule,
93
+ name: 'relationships: an operator written for a context the checker cannot read',
94
+ expect: 'pass',
95
+ files: relating(operatorOf('`context:${context}`', "'user:ada'")),
96
+ },
97
+ {
98
+ ruleId: rule,
99
+ name: 'relationships: no operator written anywhere, the operators are provisioned out of the tree',
100
+ expect: 'pass',
101
+ files: relating(),
102
+ },
103
+ {
104
+ ruleId: rule,
105
+ name: 'relationships: operators are written for another context, none for the context of the permission',
106
+ expect: { file: PERMISSIONS },
107
+ files: relating(operatorOf("'context:catalog'", "'user:ada'")),
108
+ },
109
+ {
110
+ ruleId: rule,
111
+ name: 'relationships: a permission only a system actor holds, operator of the context',
112
+ expect: 'pass',
113
+ files: relating(operatorOf("'context:billing'", "'system:system:billing.send-reminders'")),
114
+ },
115
+ {
116
+ ruleId: rule,
117
+ name: 'relationships: an authorizer of the project, which may grant what the schema does not',
118
+ expect: 'pass',
119
+ files: { ...relating(), ...OWN_AUTHORIZER },
120
+ },
63
121
  ];
122
+ /** A project whose rights are relationships, the schema of `init` deriving on the context what no element derives. */
123
+ function relating(operators, element = '') {
124
+ return project({
125
+ [PERMISSIONS]: DECLARED,
126
+ [SCHEMA]: source("import { defineSchema, type SchemaDefinition } from '@ddd-ts-kit/auth/rebac';", "import { permissions } from '@/platform/auth/authorization/permissions.js';", '', `const elements: SchemaDefinition = { invoice: { relations: { owner: ['user'] }, derived: { ${element} } } };`, '', 'const modelledOnAnElement = new Set(Object.values(elements).flatMap((element) => Object.keys(element.derived ?? {})));', '', 'export const relationshipSchema = defineSchema({', ' user: {},', ' system: {},', ' context: {', " relations: { operator: ['user', 'system'] },", " derived: Object.fromEntries(permissions.all().filter((permission) => !modelledOnAnElement.has(permission.id)).map((permission) => [permission.id, 'operator'])),", ' },', ' ...elements,', '});'),
127
+ ...(operators === undefined ? {} : { [RELATE_OPERATORS]: operators }),
128
+ }, REBAC);
129
+ }
130
+ function operatorOf(object, subject) {
131
+ return source("import type { RelationTuple } from '@ddd-ts-kit/auth/rebac';", '', 'const context = "billing";', 'export const operators: readonly RelationTuple[] = [', ` { object: ${object}, relation: 'operator', subject: ${subject} },`, '];');
132
+ }
64
133
  function granting(...grants) {
65
134
  return project({ [PERMISSIONS]: DECLARED, [ROLE]: ROLE_VOCABULARY, [ROLES]: roles(...grants) });
66
135
  }
@@ -1 +1 @@
1
- {"version":3,"file":"authz-granted-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-granted-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,OAAO,yBAAyB,CAAC;AACxD,MAAM,KAAK,GAAG,kCAAkC,CAAC;AACjD,MAAM,IAAI,GAAG,yCAAyC,CAAC;AACvD,MAAM,SAAS,GAA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CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC;KACtE,EACD,KAAK,CACN,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,MAAc,EAAE,OAAe;IACjD,OAAO,MAAM,CACX,8DAA8D,EAC9D,EAAE,EACF,4BAA4B,EAC5B,sDAAsD,EACtD,eAAe,MAAM,oCAAoC,OAAO,KAAK,EACrE,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,GAAG,MAAyB;IAC5C,OAAO,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAClG,CAAC;AAED,4FAA4F;AAC5F,SAAS,KAAK,CAAC,GAAG,MAAyB;IACzC,OAAO,MAAM,CACX,gDAAgD,EAChD,iFAAiF,EACjF,+DAA+D,EAC/D,EAAE,EACF,oEAAoE,EACpE,wBAAwB,EACxB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,EAAE,CAAC,EACtC,IAAI,EACJ,EAAE,EACF,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"authz-resource-modelled-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-resource-modelled-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAyCzC,eAAO,MAAM,gCAAgC,EAAE,SAAS,OAAO,EA8J9D,CAAC"}
1
+ {"version":3,"file":"authz-resource-modelled-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-resource-modelled-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+CzC,eAAO,MAAM,gCAAgC,EAAE,SAAS,OAAO,EA8J9D,CAAC"}
@@ -7,6 +7,9 @@ import { source } from './source.js';
7
7
  const { BILLING, COMMAND, QUERY, QUERY_HANDLER, QUERY_HANDLER_SPEC } = PATHS;
8
8
  const PERMISSIONS = `${BILLING}/billing.permissions.ts`;
9
9
  const SCHEMA = 'src/platform/auth/relationships/relationship-schema.ts';
10
+ const OPERATORS = {
11
+ 'src/platform/auth/relationships/relate-operators.ts': "export const operators = [{ object: 'context:billing', relation: 'operator', subject: 'user:ada' }];\n",
12
+ };
10
13
  const REBAC = { [CONFIG_FILE]: config({ stack: { authz: 'rebac' } }) };
11
14
  const DECLARED = source("import { definePermissions } from '@ddd-ts-kit/auth';", '', "export const billingPermissions = definePermissions('billing', {", " 'invoice.issue': { description: 'Issue invoice' },", " 'invoice.search': { description: 'Search invoice' },", '});');
12
15
  const SEARCH_HANDLER = source("import type { Access } from '@ddd-ts-kit/auth';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", "import type { InvoicesIssuedQuery } from '@/contexts/billing/application/queries/invoices-issued/invoices-issued.query.js';", '', 'export class InvoicesIssuedHandler {', ' constructor(private readonly access: Access) {}', '', ' async execute(query: InvoicesIssuedQuery): Promise<unknown> {', " return this.access.scope(query.actor, billingPermissions['invoice.search'], 'invoice');", ' }', '}');
@@ -174,6 +177,7 @@ function inline(derived) {
174
177
  }
175
178
  function requiring(resource, schema, { context, overrides = {}, permission = ISSUE, } = {}) {
176
179
  return project({
180
+ ...OPERATORS,
177
181
  [PERMISSIONS]: DECLARED,
178
182
  [SCHEMA]: context === undefined
179
183
  ? schema
@@ -184,6 +188,7 @@ function requiring(resource, schema, { context, overrides = {}, permission = ISS
184
188
  /** A search gated on the context and narrowed by the same permission, which the schema derives on the invoice. */
185
189
  function searching(context = "context: { relations: { operator: ['user'] } }") {
186
190
  return project({
191
+ ...OPERATORS,
187
192
  [PERMISSIONS]: DECLARED,
188
193
  [SCHEMA]: elements("[billingPermissions['invoice.search'].id]: 'owner'").replace("context: { relations: { operator: ['user'] } }", context),
189
194
  [QUERY]: source("import { AuthorizedQuery } from '@ddd-ts-kit/kernel';", "import { Requires } from '@ddd-ts-kit/kernel/declarations';", "import { billingPermissions } from '@/contexts/billing/billing.permissions.js';", '', `@Requires(billingPermissions['invoice.search'], { ${ON_THE_CONTEXT} })`, 'export class InvoicesIssuedQuery extends AuthorizedQuery<unknown> {}'),
@@ -1 +1 @@
1
- {"version":3,"file":"authz-resource-modelled-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-resource-modelled-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;AAC7E,MAAM,WAAW,GAAG,GAAG,OAAO,yBAAyB,CAAC;AACxD,MAAM,MAAM,GAAG,wDAAwD,CAAC;AACxE,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC;AAEvE,MAAM,QAAQ,GAAG,MAAM,CACrB,uDAAuD,EACvD,EAAE,EACF,kEAAkE,EAClE,sDAAsD,EACtD,wDAAwD,EACxD,KAAK,CACN,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAC3B,iDAAiD,EACjD,iFAAiF,EACjF,6HAA6H,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AAED,kHAAkH;AAClH,SAAS,SAAS,CAAC,OAAO,GAAG,gDAAgD;IAC3E,OAAO,OAAO,CACZ;QACE,CAAC,WAAW,CAAC,EAAE,QAAQ;QACvB,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,oDAAoD,CAAC,CAAC,OAAO,CAC9E,gDAAgD,EAChD,OAAO,CACR;QACD,CAAC,KAAK,CAAC,EAAE,MAAM,CACb,uDAAuD,EACvD,6DAA6D,EAC7D,iFAAiF,EACjF,EAAE,EACF,qDAAqD,cAAc,KAAK,EACxE,sEAAsE,CACvE;QACD,CAAC,aAAa,CAAC,EAAE,cAAc;QAC/B,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI;KACnC,EACD,KAAK,CACN,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"authz-resource-modelled-fixtures.js","sourceRoot":"","sources":["../../../src/check/fixtures/authz-resource-modelled-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;AAC7E,MAAM,WAAW,GAAG,GAAG,OAAO,yBAAyB,CAAC;AACxD,MAAM,MAAM,GAAG,wDAAwD,CAAC;AAExE,MAAM,SAAS,GAAG;IAChB,qDAAqD,EACnD,wGAAwG;CAC3G,CAAC;AAEF,MAAM,KAAK,GAAG,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,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ACzD,6DAA6D,EAC7D,iFAAiF,EACjF,EAAE,EACF,aAAa,UAAU,OAAO,QAAQ,KAAK,EAC3C,qEAAqE,CACtE;KACF,EACD,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,GAAG,SAAS,EAAE,CAAC,EAAE,CACvE,CAAC;AACJ,CAAC;AAED,kHAAkH;AAClH,SAAS,SAAS,CAAC,OAAO,GAAG,gDAAgD;IAC3E,OAAO,OAAO,CACZ;QACE,GAAG,SAAS;QACZ,CAAC,WAAW,CAAC,EAAE,QAAQ;QACvB,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,oDAAoD,CAAC,CAAC,OAAO,CAC9E,gDAAgD,EAChD,OAAO,CACR;QACD,CAAC,KAAK,CAAC,EAAE,MAAM,CACb,uDAAuD,EACvD,6DAA6D,EAC7D,iFAAiF,EACjF,EAAE,EACF,qDAAqD,cAAc,KAAK,EACxE,sEAAsE,CACvE;QACD,CAAC,aAAa,CAAC,EAAE,cAAc;QAC/B,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,IAAI;KACnC,EACD,KAAK,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Fixture } from './fixture.js';
2
+ export declare const AUTHZ_SYSTEM_ACTOR_GRANTED_FIXTURES: readonly Fixture[];
3
+ //# sourceMappingURL=authz-system-actor-granted-fixtures.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authz-system-actor-granted-fixtures.d.ts","sourceRoot":"","sources":["../../../src/check/fixtures/authz-system-actor-granted-fixtures.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAczC,eAAO,MAAM,mCAAmC,EAAE,SAAS,OAAO,EAwEjE,CAAC"}