sitero-server 0.2.0 → 0.3.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 (198) hide show
  1. package/README.md +15 -0
  2. package/dist/export/index.js +3 -2
  3. package/dist/src/application/features/authentication/admin/operations/sign-in/admin-sign-in.js +1 -1
  4. package/dist/src/application/features/inquiry/operations/submit/inquiry-submit.js +13 -15
  5. package/dist/src/application/features/uploads/constraints/create-storage-file-schema.js +1 -1
  6. package/dist/src/application/features/uploads/operations/upload-files/upload-files.js +33 -15
  7. package/dist/src/application/resources/admin/errors/operation-errors.js +1 -0
  8. package/dist/src/application/resources/admin-refresh-token/operations/commands/delete/admin-refresh-token-delete-command.js +3 -0
  9. package/dist/src/application/resources/config/operations/commands/update/cache.js +0 -1
  10. package/dist/src/application/resources/config/operations/commands/update/validation/schema.js +1 -1
  11. package/dist/src/application/resources/config/operations/queries/find-detail/cache.js +0 -1
  12. package/dist/src/application/resources/config/operations/queries/find-detail/config-find-detail-query.js +1 -3
  13. package/dist/src/application/resources/config/operations/queries/find-many/cache.js +0 -1
  14. package/dist/src/application/resources/file/operations/commands/create/file-create-command.js +1 -1
  15. package/dist/src/application/resources/file/operations/commands/create/validation/schema.js +3 -9
  16. package/dist/src/application/resources/file/operations/commands/create-many/file-create-many-command.js +10 -1
  17. package/dist/src/application/resources/file/operations/commands/create-many/validation/schema.js +1 -1
  18. package/dist/src/application/resources/file/operations/commands/purge-many/file-purge-many-command.js +2 -2
  19. package/dist/src/application/resources/file/operations/commands/restore-many/file-restore-many-command.js +2 -2
  20. package/dist/src/application/resources/file/operations/commands/update/validation/schema.js +3 -9
  21. package/dist/src/application/resources/file/operations/queries/find-list-cards/cache.js +1 -1
  22. package/dist/src/application/resources/file/operations/queries/find-list-cards/validation/schema.js +1 -1
  23. package/dist/src/application/resources/file/operations/queries/find-relations/cache.js +7 -0
  24. package/dist/src/application/resources/file/operations/queries/find-relations/file-find-relations-query.js +36 -0
  25. package/dist/src/application/resources/file/operations/queries/validate-create/file-validate-create-query.js +17 -0
  26. package/dist/src/application/resources/file/operations/queries/validate-create/validation/schema.js +6 -0
  27. package/dist/src/application/resources/file/operations/queries/validate-create/validation/validate-input.js +7 -0
  28. package/dist/src/application/resources/file/operations/queries/validate-update/file-validate-update-query.js +17 -0
  29. package/dist/src/application/resources/file/validation/file-translations-schema.js +13 -0
  30. package/dist/src/application/resources/inquiry/operations/queries/find/inquiry-find-query.js +1 -3
  31. package/dist/src/application/resources/post/operations/commands/create/validation/schema.js +16 -3
  32. package/dist/src/application/resources/post/operations/commands/update/validation/validate-input.js +1 -2
  33. package/dist/src/application/resources/post/operations/queries/find-list-cards/cache.js +1 -0
  34. package/dist/src/application/resources/post/operations/queries/find-list-cards/validation/schema.js +1 -0
  35. package/dist/src/application/resources/post/operations/queries/find-relations/cache.js +12 -0
  36. package/dist/src/application/resources/post/operations/queries/find-relations/post-find-relations-query.js +32 -0
  37. package/dist/src/application/resources/seo-metadata/operations/commands/upsert/validation/schema.js +3 -3
  38. package/dist/src/application/sessions/admin/authenticate/admin-session-authenticate.js +43 -19
  39. package/dist/src/composition/create-sitero-server.js +18 -1
  40. package/dist/src/kernel/executor/executor.js +1 -1
  41. package/dist/src/kernel/operation/error/normalize-operation-error.js +25 -0
  42. package/dist/src/kernel/operation/error/zod.js +56 -0
  43. package/dist/src/kernel/operation/result.js +1 -1
  44. package/dist/types/src/application/conventions/cache/constants.d.ts +1 -1
  45. package/dist/types/src/application/conventions/cache/constants.d.ts.map +1 -1
  46. package/dist/types/src/application/features/authentication/admin/operations/change-password/types.d.ts +1 -1
  47. package/dist/types/src/application/features/authentication/admin/operations/change-password/types.d.ts.map +1 -1
  48. package/dist/types/src/application/features/authentication/admin/operations/me/types.d.ts +1 -1
  49. package/dist/types/src/application/features/authentication/admin/operations/me/types.d.ts.map +1 -1
  50. package/dist/types/src/application/features/authentication/admin/operations/reset-password/types.d.ts +1 -1
  51. package/dist/types/src/application/features/authentication/admin/operations/reset-password/types.d.ts.map +1 -1
  52. package/dist/types/src/application/features/authentication/admin/operations/verify-email/types.d.ts +1 -1
  53. package/dist/types/src/application/features/authentication/admin/operations/verify-email/types.d.ts.map +1 -1
  54. package/dist/types/src/application/features/email-preview/operations/render-template/types.d.ts +1 -1
  55. package/dist/types/src/application/features/email-preview/operations/render-template/types.d.ts.map +1 -1
  56. package/dist/types/src/application/features/inquiry/operations/submit/inquiry-submit.d.ts.map +1 -1
  57. package/dist/types/src/application/features/uploads/constraints/create-storage-file-schema.d.ts.map +1 -1
  58. package/dist/types/src/application/features/uploads/operations/upload-file/upload-file.d.ts +1 -1
  59. package/dist/types/src/application/features/uploads/operations/upload-file/upload-file.d.ts.map +1 -1
  60. package/dist/types/src/application/features/uploads/operations/upload-files/types.d.ts +7 -1
  61. package/dist/types/src/application/features/uploads/operations/upload-files/types.d.ts.map +1 -1
  62. package/dist/types/src/application/features/uploads/operations/upload-files/upload-files.d.ts +1 -1
  63. package/dist/types/src/application/features/uploads/operations/upload-files/upload-files.d.ts.map +1 -1
  64. package/dist/types/src/application/resources/admin/errors/operation-errors.d.ts.map +1 -1
  65. package/dist/types/src/application/resources/admin-refresh-token/operations/commands/delete/admin-refresh-token-delete-command.d.ts.map +1 -1
  66. package/dist/types/src/application/resources/admin-refresh-token/ports.d.ts +17 -0
  67. package/dist/types/src/application/resources/admin-refresh-token/ports.d.ts.map +1 -1
  68. package/dist/types/src/application/resources/config/index.d.ts +1 -1
  69. package/dist/types/src/application/resources/config/index.d.ts.map +1 -1
  70. package/dist/types/src/application/resources/config/operations/commands/update/cache.d.ts.map +1 -1
  71. package/dist/types/src/application/resources/config/operations/commands/update/validation/schema.d.ts +20 -20
  72. package/dist/types/src/application/resources/config/operations/queries/find-detail/cache.d.ts.map +1 -1
  73. package/dist/types/src/application/resources/config/operations/queries/find-detail/config-find-detail-query.d.ts.map +1 -1
  74. package/dist/types/src/application/resources/config/operations/queries/find-many/cache.d.ts.map +1 -1
  75. package/dist/types/src/application/resources/config/operations/queries/find-many/types.d.ts.map +1 -1
  76. package/dist/types/src/application/resources/file/index.d.ts +3 -3
  77. package/dist/types/src/application/resources/file/index.d.ts.map +1 -1
  78. package/dist/types/src/application/resources/file/operations/commands/create/file-create-command.d.ts +1 -1
  79. package/dist/types/src/application/resources/file/operations/commands/create/file-create-command.d.ts.map +1 -1
  80. package/dist/types/src/application/resources/file/operations/commands/create/validation/schema.d.ts.map +1 -1
  81. package/dist/types/src/application/resources/file/operations/commands/create-many/file-create-many-command.d.ts +1 -1
  82. package/dist/types/src/application/resources/file/operations/commands/create-many/file-create-many-command.d.ts.map +1 -1
  83. package/dist/types/src/application/resources/file/operations/commands/create-many/types.d.ts +2 -0
  84. package/dist/types/src/application/resources/file/operations/commands/create-many/types.d.ts.map +1 -1
  85. package/dist/types/src/application/resources/file/operations/commands/purge-many/file-purge-many-command.d.ts +1 -1
  86. package/dist/types/src/application/resources/file/operations/commands/purge-many/file-purge-many-command.d.ts.map +1 -1
  87. package/dist/types/src/application/resources/file/operations/commands/replace-content/file-replace-content-command.d.ts +1 -1
  88. package/dist/types/src/application/resources/file/operations/commands/replace-content/file-replace-content-command.d.ts.map +1 -1
  89. package/dist/types/src/application/resources/file/operations/commands/replace-content/validation/validate-input.d.ts +1 -1
  90. package/dist/types/src/application/resources/file/operations/commands/replace-content/validation/validate-input.d.ts.map +1 -1
  91. package/dist/types/src/application/resources/file/operations/commands/update/validation/schema.d.ts.map +1 -1
  92. package/dist/types/src/application/resources/file/operations/index.d.ts +1 -1
  93. package/dist/types/src/application/resources/file/operations/index.d.ts.map +1 -1
  94. package/dist/types/src/application/resources/file/operations/queries/find-list-cards/types.d.ts +2 -1
  95. package/dist/types/src/application/resources/file/operations/queries/find-list-cards/types.d.ts.map +1 -1
  96. package/dist/types/src/application/resources/file/operations/queries/find-list-cards/validation/schema.d.ts +1 -1
  97. package/dist/types/src/application/resources/file/operations/queries/find-relations/cache.d.ts +4 -0
  98. package/dist/types/src/application/resources/file/operations/queries/find-relations/cache.d.ts.map +1 -0
  99. package/dist/types/src/application/resources/file/operations/queries/find-relations/file-find-relations-query.d.ts +8 -0
  100. package/dist/types/src/application/resources/file/operations/queries/find-relations/file-find-relations-query.d.ts.map +1 -0
  101. package/dist/types/src/application/resources/file/operations/queries/find-relations/index.d.ts +3 -0
  102. package/dist/types/src/application/resources/file/operations/queries/find-relations/index.d.ts.map +1 -0
  103. package/dist/types/src/application/resources/file/operations/queries/find-relations/types.d.ts +11 -0
  104. package/dist/types/src/application/resources/file/operations/queries/find-relations/types.d.ts.map +1 -0
  105. package/dist/types/src/application/resources/file/operations/queries/index.d.ts +3 -0
  106. package/dist/types/src/application/resources/file/operations/queries/index.d.ts.map +1 -1
  107. package/dist/types/src/application/resources/file/operations/queries/validate-create/file-validate-create-query.d.ts +12 -0
  108. package/dist/types/src/application/resources/file/operations/queries/validate-create/file-validate-create-query.d.ts.map +1 -0
  109. package/dist/types/src/application/resources/file/operations/queries/validate-create/index.d.ts +3 -0
  110. package/dist/types/src/application/resources/file/operations/queries/validate-create/index.d.ts.map +1 -0
  111. package/dist/types/src/application/resources/file/operations/queries/validate-create/types.d.ts +16 -0
  112. package/dist/types/src/application/resources/file/operations/queries/validate-create/types.d.ts.map +1 -0
  113. package/dist/types/src/application/resources/file/operations/queries/validate-create/validation/schema.d.ts +9 -0
  114. package/dist/types/src/application/resources/file/operations/queries/validate-create/validation/schema.d.ts.map +1 -0
  115. package/dist/types/src/application/resources/file/operations/queries/validate-create/validation/validate-input.d.ts +3 -0
  116. package/dist/types/src/application/resources/file/operations/queries/validate-create/validation/validate-input.d.ts.map +1 -0
  117. package/dist/types/src/application/resources/file/operations/queries/validate-update/file-validate-update-query.d.ts +14 -0
  118. package/dist/types/src/application/resources/file/operations/queries/validate-update/file-validate-update-query.d.ts.map +1 -0
  119. package/dist/types/src/application/resources/file/operations/queries/validate-update/index.d.ts +3 -0
  120. package/dist/types/src/application/resources/file/operations/queries/validate-update/index.d.ts.map +1 -0
  121. package/dist/types/src/application/resources/file/operations/queries/validate-update/types.d.ts +9 -0
  122. package/dist/types/src/application/resources/file/operations/queries/validate-update/types.d.ts.map +1 -0
  123. package/dist/types/src/application/resources/file/ports.d.ts +9 -2
  124. package/dist/types/src/application/resources/file/ports.d.ts.map +1 -1
  125. package/dist/types/src/application/resources/file/projections/detail.d.ts +1 -1
  126. package/dist/types/src/application/resources/file/projections/detail.d.ts.map +1 -1
  127. package/dist/types/src/application/resources/file/projections/index.d.ts +1 -0
  128. package/dist/types/src/application/resources/file/projections/index.d.ts.map +1 -1
  129. package/dist/types/src/application/resources/file/projections/relations.d.ts +12 -0
  130. package/dist/types/src/application/resources/file/projections/relations.d.ts.map +1 -0
  131. package/dist/types/src/application/resources/file/validation/file-translations-schema.d.ts +8 -0
  132. package/dist/types/src/application/resources/file/validation/file-translations-schema.d.ts.map +1 -0
  133. package/dist/types/src/application/resources/inquiry/operations/queries/find/inquiry-find-query.d.ts.map +1 -1
  134. package/dist/types/src/application/resources/inquiry/operations/queries/find-list-cards/types.d.ts +2 -2
  135. package/dist/types/src/application/resources/inquiry/operations/queries/find-list-cards/types.d.ts.map +1 -1
  136. package/dist/types/src/application/resources/post/index.d.ts +3 -3
  137. package/dist/types/src/application/resources/post/index.d.ts.map +1 -1
  138. package/dist/types/src/application/resources/post/operations/commands/create/validation/schema.d.ts +8 -2
  139. package/dist/types/src/application/resources/post/operations/commands/create/validation/schema.d.ts.map +1 -1
  140. package/dist/types/src/application/resources/post/operations/commands/delete/cache.d.ts +1 -1
  141. package/dist/types/src/application/resources/post/operations/commands/delete/cache.d.ts.map +1 -1
  142. package/dist/types/src/application/resources/post/operations/commands/delete/types.d.ts +1 -1
  143. package/dist/types/src/application/resources/post/operations/commands/delete/types.d.ts.map +1 -1
  144. package/dist/types/src/application/resources/post/operations/commands/update/post-update-command.d.ts +1 -1
  145. package/dist/types/src/application/resources/post/operations/commands/update/post-update-command.d.ts.map +1 -1
  146. package/dist/types/src/application/resources/post/operations/commands/update/validation/schema.d.ts +8 -2
  147. package/dist/types/src/application/resources/post/operations/commands/update/validation/schema.d.ts.map +1 -1
  148. package/dist/types/src/application/resources/post/operations/commands/update/validation/validate-input.d.ts.map +1 -1
  149. package/dist/types/src/application/resources/post/operations/index.d.ts +1 -1
  150. package/dist/types/src/application/resources/post/operations/index.d.ts.map +1 -1
  151. package/dist/types/src/application/resources/post/operations/queries/find-detail/validation/validate-input.d.ts.map +1 -1
  152. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/cache.d.ts.map +1 -1
  153. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/validation/schema.d.ts +1 -0
  154. package/dist/types/src/application/resources/post/operations/queries/find-list-cards/validation/schema.d.ts.map +1 -1
  155. package/dist/types/src/application/resources/post/operations/queries/find-relations/cache.d.ts +4 -0
  156. package/dist/types/src/application/resources/post/operations/queries/find-relations/cache.d.ts.map +1 -0
  157. package/dist/types/src/application/resources/post/operations/queries/find-relations/index.d.ts +3 -0
  158. package/dist/types/src/application/resources/post/operations/queries/find-relations/index.d.ts.map +1 -0
  159. package/dist/types/src/application/resources/post/operations/queries/find-relations/post-find-relations-query.d.ts +6 -0
  160. package/dist/types/src/application/resources/post/operations/queries/find-relations/post-find-relations-query.d.ts.map +1 -0
  161. package/dist/types/src/application/resources/post/operations/queries/find-relations/types.d.ts +11 -0
  162. package/dist/types/src/application/resources/post/operations/queries/find-relations/types.d.ts.map +1 -0
  163. package/dist/types/src/application/resources/post/operations/queries/index.d.ts +1 -0
  164. package/dist/types/src/application/resources/post/operations/queries/index.d.ts.map +1 -1
  165. package/dist/types/src/application/resources/post/ports.d.ts +8 -1
  166. package/dist/types/src/application/resources/post/ports.d.ts.map +1 -1
  167. package/dist/types/src/application/resources/post/projections/index.d.ts +1 -0
  168. package/dist/types/src/application/resources/post/projections/index.d.ts.map +1 -1
  169. package/dist/types/src/application/resources/post/projections/relations.d.ts +10 -0
  170. package/dist/types/src/application/resources/post/projections/relations.d.ts.map +1 -0
  171. package/dist/types/src/application/resources/seo-metadata/operations/commands/upsert/validation/schema.d.ts.map +1 -1
  172. package/dist/types/src/application/sessions/admin/authenticate/admin-session-authenticate.d.ts.map +1 -1
  173. package/dist/types/src/composition/create-sitero-server.d.ts.map +1 -1
  174. package/dist/types/src/composition/policies.d.ts +1 -0
  175. package/dist/types/src/composition/policies.d.ts.map +1 -1
  176. package/dist/types/src/composition/types.d.ts +8 -2
  177. package/dist/types/src/composition/types.d.ts.map +1 -1
  178. package/dist/types/src/contracts/email/template.d.ts +2 -0
  179. package/dist/types/src/contracts/email/template.d.ts.map +1 -1
  180. package/dist/types/src/contracts/operation/index.d.ts +1 -1
  181. package/dist/types/src/contracts/operation/index.d.ts.map +1 -1
  182. package/dist/types/src/contracts/operation/result.d.ts +11 -1
  183. package/dist/types/src/contracts/operation/result.d.ts.map +1 -1
  184. package/dist/types/src/index.d.ts +5 -4
  185. package/dist/types/src/index.d.ts.map +1 -1
  186. package/dist/types/src/kernel/index.d.ts +1 -1
  187. package/dist/types/src/kernel/index.d.ts.map +1 -1
  188. package/dist/types/src/kernel/operation/error/index.d.ts +2 -0
  189. package/dist/types/src/kernel/operation/error/index.d.ts.map +1 -0
  190. package/dist/types/src/kernel/operation/{error.d.ts → error/normalize-operation-error.d.ts} +2 -2
  191. package/dist/types/src/kernel/operation/error/normalize-operation-error.d.ts.map +1 -0
  192. package/dist/types/src/kernel/operation/error/zod.d.ts +17 -0
  193. package/dist/types/src/kernel/operation/error/zod.d.ts.map +1 -0
  194. package/dist/types/src/kernel/operation/index.d.ts +1 -1
  195. package/dist/types/src/kernel/operation/index.d.ts.map +1 -1
  196. package/package.json +2 -2
  197. package/dist/src/kernel/operation/error.js +0 -33
  198. package/dist/types/src/kernel/operation/error.d.ts.map +0 -1
@@ -9,7 +9,7 @@ function createAdminSessionAuthenticate(params) {
9
9
  adminRefreshTokenCommandPort
10
10
  } = params;
11
11
  return async function adminSessionAuthenticate(input) {
12
- const { accessToken, refreshToken, ip, deviceInfo } = input;
12
+ const { accessToken, refreshToken, ip } = input;
13
13
  if (accessToken) {
14
14
  try {
15
15
  const { actorId, role, sessionId } = authenticationTokenPort.verifyAccessToken(accessToken);
@@ -33,6 +33,10 @@ function createAdminSessionAuthenticate(params) {
33
33
  tokenHash
34
34
  });
35
35
  if (!storedRefreshToken) {
36
+ const replay = await adminRefreshTokenQueryPort.findReplay({ tokenHash });
37
+ if (replay) {
38
+ await adminRefreshTokenCommandPort.delete({ id: replay.sessionId });
39
+ }
36
40
  return {
37
41
  status: "unauthenticated",
38
42
  shouldClearSession: true
@@ -45,7 +49,6 @@ function createAdminSessionAuthenticate(params) {
45
49
  shouldClearSession: true
46
50
  };
47
51
  }
48
- await adminRefreshTokenCommandPort.delete({ id: storedRefreshToken.id });
49
52
  const admin = await adminQueryPort.find({ id: storedRefreshToken.adminId });
50
53
  if (!admin) {
51
54
  return {
@@ -53,25 +56,46 @@ function createAdminSessionAuthenticate(params) {
53
56
  shouldClearSession: true
54
57
  };
55
58
  }
56
- const { tokens, session } = await createAuthenticationTokens({
57
- actor: {
58
- type: "admin",
59
- id: storedRefreshToken.adminId,
60
- role: admin.role
61
- },
62
- refreshTokenTtlSeconds,
63
- authenticationTokenPort,
64
- createActorRefreshToken: async ({ expiresAt, tokenHash: tokenHash2 }) => {
65
- return adminRefreshTokenCommandPort.create({
66
- tokenHash: tokenHash2,
67
- email: storedRefreshToken.email,
68
- ip,
69
- deviceInfo: deviceInfo ?? null,
59
+ const rotationRejected = new Error("Admin refresh-token rotation rejected");
60
+ let tokens;
61
+ let session;
62
+ try {
63
+ ({ tokens, session } = await createAuthenticationTokens({
64
+ actor: {
65
+ type: "admin",
66
+ id: storedRefreshToken.adminId,
67
+ role: admin.role
68
+ },
69
+ refreshTokenTtlSeconds,
70
+ authenticationTokenPort,
71
+ createActorRefreshToken: async ({
70
72
  expiresAt,
71
- adminId: storedRefreshToken.adminId
72
- });
73
+ tokenHash: nextTokenHash
74
+ }) => {
75
+ const rotatedSession = await adminRefreshTokenCommandPort.rotate({
76
+ id: storedRefreshToken.id,
77
+ currentTokenHash: tokenHash,
78
+ nextTokenHash,
79
+ expiresAt,
80
+ lastIp: ip,
81
+ lastUsedAt: /* @__PURE__ */ new Date()
82
+ });
83
+ if (!rotatedSession) {
84
+ throw rotationRejected;
85
+ }
86
+ return rotatedSession;
87
+ }
88
+ }));
89
+ } catch (error) {
90
+ if (error !== rotationRejected) {
91
+ throw error;
73
92
  }
74
- });
93
+ await adminRefreshTokenCommandPort.delete({ id: storedRefreshToken.id });
94
+ return {
95
+ status: "unauthenticated",
96
+ shouldClearSession: true
97
+ };
98
+ }
75
99
  return {
76
100
  status: "authenticated",
77
101
  actor: {
@@ -24,7 +24,10 @@ import { createConfigFindDetailQuery } from '../application/resources/config/ope
24
24
  import { createConfigFindManyQuery } from '../application/resources/config/operations/queries/find-many/config-find-many-query.js';
25
25
  import { createConfigUpdateCommand } from '../application/resources/config/operations/commands/update/config-update-command.js';
26
26
  import { createFileFindDetailQuery } from '../application/resources/file/operations/queries/find-detail/file-find-detail-query.js';
27
+ import { createFileFindRelationsQuery } from '../application/resources/file/operations/queries/find-relations/file-find-relations-query.js';
27
28
  import { createFileFindListCardsQuery } from '../application/resources/file/operations/queries/find-list-cards/file-find-list-cards-query.js';
29
+ import { createFileValidateCreateQuery } from '../application/resources/file/operations/queries/validate-create/file-validate-create-query.js';
30
+ import { createFileValidateUpdateQuery } from '../application/resources/file/operations/queries/validate-update/file-validate-update-query.js';
28
31
  import { createFileCreateCommand } from '../application/resources/file/operations/commands/create/file-create-command.js';
29
32
  import { createFileCreateManyCommand } from '../application/resources/file/operations/commands/create-many/file-create-many-command.js';
30
33
  import { createFileReplaceContentCommand } from '../application/resources/file/operations/commands/replace-content/file-replace-content-command.js';
@@ -37,6 +40,7 @@ import { createInquiryDeleteCommand } from '../application/resources/inquiry/ope
37
40
  import { createInquiryFindQuery } from '../application/resources/inquiry/operations/queries/find/inquiry-find-query.js';
38
41
  import { createInquiryFindListCardsQuery } from '../application/resources/inquiry/operations/queries/find-list-cards/inquiry-find-list-cards-query.js';
39
42
  import { createPostFindDetailQuery } from '../application/resources/post/operations/queries/find-detail/post-find-detail-query.js';
43
+ import { createPostFindRelationsQuery } from '../application/resources/post/operations/queries/find-relations/post-find-relations-query.js';
40
44
  import { createPostFindManyQuery } from '../application/resources/post/operations/queries/find-many/post-find-many-query.js';
41
45
  import { createPostFindListCardsQuery } from '../application/resources/post/operations/queries/find-list-cards/post-find-list-cards-query.js';
42
46
  import { createPostCreateCommand } from '../application/resources/post/operations/commands/create/post-create-command.js';
@@ -71,11 +75,12 @@ function createSiteroServer(input) {
71
75
  file: {
72
76
  fileCommandPort,
73
77
  fileQueryPort,
78
+ fileRelationsQueryPort,
74
79
  fileReplaceContentPort,
75
80
  storageRemovePort
76
81
  },
77
82
  inquiry: { inquiryCommandPort, inquiryQueryPort },
78
- post: { postCommandPort, postQueryPort },
83
+ post: { postCommandPort, postQueryPort, postRelationsQueryPort },
79
84
  seoMetadata: { seoMetadataCommandPort }
80
85
  },
81
86
  authentication: {
@@ -284,6 +289,13 @@ function createSiteroServer(input) {
284
289
  })
285
290
  },
286
291
  file: {
292
+ validateCreate: createFileValidateCreateQuery({
293
+ authorization: resolveCmsAuthorization(filePolicies?.create)
294
+ }),
295
+ validateUpdate: createFileValidateUpdateQuery({
296
+ fileQueryPort,
297
+ authorization: resolveCmsAuthorization(filePolicies?.update)
298
+ }),
287
299
  create: createFileCreateCommand({
288
300
  fileCommandPort,
289
301
  fileLookupPort: fileQueryPort,
@@ -328,6 +340,10 @@ function createSiteroServer(input) {
328
340
  fileQueryPort,
329
341
  authorization: resolveCmsAuthorization(filePolicies?.findDetail)
330
342
  }),
343
+ findRelations: createFileFindRelationsQuery({
344
+ fileRelationsQueryPort,
345
+ authorization: resolveCmsAuthorization(filePolicies?.findRelations)
346
+ }),
331
347
  findListCards: createFileFindListCardsQuery({
332
348
  fileQueryPort,
333
349
  authorization: resolveCmsAuthorization(filePolicies?.findListCards)
@@ -384,6 +400,7 @@ function createSiteroServer(input) {
384
400
  findDetail: createPostFindDetailQuery({
385
401
  postQueryPort
386
402
  }),
403
+ findRelations: createPostFindRelationsQuery({ postRelationsQueryPort }),
387
404
  findListCards: createPostFindListCardsQuery({
388
405
  postQueryPort
389
406
  }),
@@ -1,7 +1,7 @@
1
1
  import { operationResult } from '../../contracts/operation/result.js';
2
2
  import { createNoopRateLimiterPort } from '../../contracts/rate-limiter/port.js';
3
3
  import { notifyObserverSafely } from '../observer/notify-observer-safely.js';
4
- import { normalizeOperationError } from '../operation/error.js';
4
+ import { normalizeOperationError } from '../operation/error/normalize-operation-error.js';
5
5
  import { normalizeOperationResult } from '../operation/result.js';
6
6
  import { ensureAuthentication } from './authentication/ensure-authentication.js';
7
7
  import { ensureAuthorization } from './authorization/ensure-authorization.js';
@@ -0,0 +1,25 @@
1
+ import { ZodError } from 'zod';
2
+ import { OperationError } from '../../../contracts/operation/error.js';
3
+ import { normalizeZodFieldError } from './zod.js';
4
+
5
+ function isOperationError(error) {
6
+ return error instanceof OperationError;
7
+ }
8
+ function normalizeOperationError(error) {
9
+ if (error instanceof ZodError) {
10
+ return {
11
+ code: "VALIDATION_FAILED",
12
+ fields: error.issues.map(normalizeZodFieldError)
13
+ };
14
+ }
15
+ if (isOperationError(error)) {
16
+ return {
17
+ code: error.code,
18
+ ...error.details ? { details: error.details } : {},
19
+ ...error.fields ? { fields: error.fields } : {}
20
+ };
21
+ }
22
+ return { code: "INTERNAL_ERROR" };
23
+ }
24
+
25
+ export { normalizeOperationError };
@@ -0,0 +1,56 @@
1
+ function normalizeZodIssueMeta(issue) {
2
+ if (issue.code === "too_small" && typeof issue.minimum === "number") {
3
+ return {
4
+ ...typeof issue.origin === "string" ? { origin: issue.origin } : {},
5
+ minimum: issue.minimum,
6
+ ...typeof issue.inclusive === "boolean" ? { inclusive: issue.inclusive } : {}
7
+ };
8
+ }
9
+ if (issue.code === "too_big" && typeof issue.maximum === "number") {
10
+ return {
11
+ ...typeof issue.origin === "string" ? { origin: issue.origin } : {},
12
+ maximum: issue.maximum,
13
+ ...typeof issue.inclusive === "boolean" ? { inclusive: issue.inclusive } : {}
14
+ };
15
+ }
16
+ if (issue.code === "invalid_format" && typeof issue.format === "string") {
17
+ return {
18
+ format: issue.format,
19
+ ...issue.format === "regex" && typeof issue.pattern === "string" ? { pattern: issue.pattern } : {}
20
+ };
21
+ }
22
+ if (issue.code === "invalid_value" && Array.isArray(issue.values) && issue.values.every(
23
+ (value) => typeof value === "string" || typeof value === "number" || typeof value === "boolean"
24
+ )) {
25
+ return { values: issue.values };
26
+ }
27
+ if (issue.code === "invalid_type" && typeof issue.expected === "string") {
28
+ return {
29
+ expected: issue.expected,
30
+ ...Object.hasOwn(issue, "input") ? {
31
+ received: issue.input === null ? "null" : Array.isArray(issue.input) ? "array" : typeof issue.input
32
+ } : {}
33
+ };
34
+ }
35
+ return void 0;
36
+ }
37
+ function isStableCustomFieldErrorCode(message) {
38
+ return /^[A-Z][A-Z0-9_]+$/.test(message) || /^validation\.[a-z0-9._]+$/.test(message);
39
+ }
40
+ function normalizeZodFieldError(issue) {
41
+ const path = issue.path.map(
42
+ (segment) => typeof segment === "string" || typeof segment === "number" ? segment : String(segment)
43
+ );
44
+ if (issue.code === "custom" && isStableCustomFieldErrorCode(issue.message)) {
45
+ return { path, kind: "custom", code: issue.message };
46
+ }
47
+ const meta = normalizeZodIssueMeta(issue);
48
+ return {
49
+ path,
50
+ kind: "zod",
51
+ code: issue.code,
52
+ ...meta ? { meta } : {}
53
+ };
54
+ }
55
+
56
+ export { normalizeZodFieldError };
@@ -1,4 +1,4 @@
1
- import { normalizeOperationError } from './error.js';
1
+ import { normalizeOperationError } from './error/normalize-operation-error.js';
2
2
 
3
3
  function normalizeOperationResult(result) {
4
4
  if (result.success) return result;
@@ -19,6 +19,6 @@ export interface ResourceRelationMap {
19
19
  "seo-metadata": never;
20
20
  }
21
21
  export type Relation<ResourceName extends Resource = Resource> = ResourceRelationMap[ResourceName];
22
- export declare const QUERIES: readonly ["find", "find-detail", "find-many", "find-list-cards"];
22
+ export declare const QUERIES: readonly ["find", "find-detail", "find-relations", "find-many", "find-list-cards"];
23
23
  export type Query = (typeof QUERIES)[number];
24
24
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/application/conventions/cache/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AAKX,eAAO,MAAM,SAAS,gGAQZ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAKlD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC;IACjE,qBAAqB,EAAE,KAAK,CAAC;IAC7B,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EACA,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,KAAK,GACL,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,MAAM,GACN,cAAc,CAAC;IACnB,cAAc,EAAE,KAAK,CAAC;CACvB;AAED,MAAM,MAAM,QAAQ,CAAC,YAAY,SAAS,QAAQ,GAAG,QAAQ,IAC3D,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAKpC,eAAO,MAAM,OAAO,kEAKV,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/application/conventions/cache/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AAKX,eAAO,MAAM,SAAS,gGAQZ,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAKlD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,MAAM,SAAS,GAAG,cAAc,CAAC,CAAC;IACjE,qBAAqB,EAAE,KAAK,CAAC;IAC7B,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC;IAC/B,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;IACf,IAAI,EACA,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,OAAO,GACP,KAAK,GACL,aAAa,GACb,cAAc,GACd,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,MAAM,GACN,cAAc,CAAC;IACnB,cAAc,EAAE,KAAK,CAAC;CACvB;AAED,MAAM,MAAM,QAAQ,CAAC,YAAY,SAAS,QAAQ,GAAG,QAAQ,IAC3D,mBAAmB,CAAC,YAAY,CAAC,CAAC;AAKpC,eAAO,MAAM,OAAO,oFAMV,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
+ import type { AdminChangePasswordOperationFailure } from "./errors";
1
2
  import type { adminChangePasswordInputSchema } from "./validation";
2
3
  import type { Operation, OperationResult } from "../../../../../../kernel";
3
4
  import type { AdminNotFoundError } from "../../../../../resources/admin";
4
- import type { AdminChangePasswordOperationFailure } from "./errors";
5
5
  import type z from "zod";
6
6
  export interface AdminChangePasswordInput {
7
7
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/change-password/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAClD,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAC9D,MAAM,EACN,mCAAmC,GAAG,kBAAkB,CACzD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,wBAAwB,EACxB,iCAAiC,EACjC,kCAAkC,CACnC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/change-password/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAClD,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAC9D,MAAM,EACN,mCAAmC,GAAG,kBAAkB,CACzD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,wBAAwB,EACxB,iCAAiC,EACjC,kCAAkC,CACnC,CAAC"}
@@ -1,7 +1,7 @@
1
+ import type { AdminMeOperationFailure } from "./errors";
1
2
  import type { Operation, OperationResult } from "../../../../../../kernel";
2
3
  import type { AdminNotFoundError } from "../../../../../resources/admin";
3
4
  import type { AdminDetail } from "../../../../../resources/admin";
4
- import type { AdminMeOperationFailure } from "./errors";
5
5
  export interface AdminMeInput {
6
6
  adminId: string | undefined;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/me/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAClD;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,EACtB,kBAAkB,GAAG,uBAAuB,CAC7C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CACtC,YAAY,EACZ,YAAY,EACZ,sBAAsB,CACvB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/me/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAClD;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,EACtB,kBAAkB,GAAG,uBAAuB,CAC7C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,SAAS,CACtC,YAAY,EACZ,YAAY,EACZ,sBAAsB,CACvB,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { AdminResetPasswordOperationFailure } from "./errors";
1
2
  import type { adminResetPasswordInputSchema } from "./validation";
2
3
  import type { Operation, OperationResult } from "../../../../../../kernel";
3
- import type { AdminResetPasswordOperationFailure } from "./errors";
4
4
  import type z from "zod";
5
5
  export interface AdminResetPasswordInput {
6
6
  passwordResetToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/reset-password/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,uBAAuB;IACtC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,UAAU,CAAC,OAAO,6BAA6B,CAAC,CACjD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAC7D,MAAM,EACN,kCAAkC,CACnC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,SAAS,CACjD,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,CAClC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/reset-password/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,uBAAuB;IACtC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,UAAU,CAAC,OAAO,6BAA6B,CAAC,CACjD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAC7D,MAAM,EACN,kCAAkC,CACnC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,SAAS,CACjD,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,CAClC,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { AdminVerifyEmailOperationFailure } from "./errors";
1
2
  import type { adminVerifyEmailInputSchema } from "./validation";
2
3
  import type { Operation, OperationResult } from "../../../../../../kernel";
3
- import type { AdminVerifyEmailOperationFailure } from "./errors";
4
4
  import type { AdminSafe } from "sitero-domain";
5
5
  import type z from "zod";
6
6
  export interface AdminVerifyEmailInput {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/verify-email/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAC/C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,eAAe,CAC3D;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,EACpB,gCAAgC,CACjC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,qBAAqB,EACrB,8BAA8B,EAC9B,+BAA+B,CAChC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/features/authentication/admin/operations/verify-email/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAC/C,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,eAAe,CAC3D;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,EACpB,gCAAgC,CACjC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,qBAAqB,EACrB,8BAA8B,EAC9B,+BAA+B,CAChC,CAAC"}
@@ -1,5 +1,5 @@
1
- import type { Operation, OperationSuccess } from "../../../../../kernel";
2
1
  import type { EmailTemplatePreview } from "../../../../../contracts/email";
2
+ import type { Operation, OperationSuccess } from "../../../../../kernel";
3
3
  export interface EmailPreviewRenderTemplateInput {
4
4
  key: string;
5
5
  locale?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/email-preview/operations/render-template/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,WAAW,+BAA+B;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,gCAAgC,GAC1C,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAEzC,MAAM,MAAM,mCAAmC,GAAG,SAAS,CACzD,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,CACjC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/email-preview/operations/render-template/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzE,MAAM,WAAW,+BAA+B;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,gCAAgC,GAC1C,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAEzC,MAAM,MAAM,mCAAmC,GAAG,SAAS,CACzD,+BAA+B,EAC/B,+BAA+B,EAC/B,gCAAgC,CACjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inquiry-submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/inquiry/operations/submit/inquiry-submit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AASxE,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,0CAA0C,EAAE,0CAA0C,CAAC;IACvF,eAAe,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CAChE,GAAG,sBAAsB,CAkDzB"}
1
+ {"version":3,"file":"inquiry-submit.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/inquiry/operations/submit/inquiry-submit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AASxE,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,0CAA0C,EAAE,0CAA0C,CAAC;IACvF,eAAe,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACpD,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;CAChE,GAAG,sBAAsB,CAqDzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-storage-file-schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/features/uploads/constraints/create-storage-file-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,0EAA0E;AAC1E,wBAAgB,uBAAuB,CAAC,MAAM,CAAC,EAAE,YAAY,yCAe5D"}
1
+ {"version":3,"file":"create-storage-file-schema.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/features/uploads/constraints/create-storage-file-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,0EAA0E;AAC1E,wBAAgB,uBAAuB,CAAC,MAAM,CAAC,EAAE,YAAY,yCAgB5D"}
@@ -1,7 +1,7 @@
1
- import type { UploadPolicy } from "../../types";
2
1
  import type { UploadFileInput, UploadFileOperation } from "./types";
3
2
  import type { StorageUploadPort } from "../../../../../contracts/storage";
4
3
  import type { OperationAuthorization, OperationRateLimit } from "../../../../../kernel";
4
+ import type { UploadPolicy } from "../../types";
5
5
  export declare function createUploadFileOperation(input: {
6
6
  authorization: OperationAuthorization;
7
7
  rateLimit?: OperationRateLimit<UploadFileInput> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-file/upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAI/B,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,aAAa,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC5D,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,GAAG,mBAAmB,CA6BtB"}
1
+ {"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-file/upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAC/C,aAAa,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC5D,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,GAAG,mBAAmB,CA6BtB"}
@@ -5,7 +5,13 @@ export interface UploadFilesInput {
5
5
  files: StorageFile[];
6
6
  }
7
7
  export type UploadFilesResult = OperationSuccess<{
8
- uploadedFiles: UploadedFile[];
8
+ uploadedFiles: (UploadedFile & {
9
+ index: number;
10
+ })[];
11
+ failed: {
12
+ index: number;
13
+ code: "INTERNAL_ERROR";
14
+ }[];
9
15
  }>;
10
16
  export type UploadFilesOperation = Operation<UploadFilesInput, UploadFilesInput, UploadFilesResult>;
11
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-files/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAC/C,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAC1C,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,CAClB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-files/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAC/C,aAAa,EAAE,CAAC,YAAY,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,gBAAgB,CAAA;KAAE,EAAE,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAC1C,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,CAClB,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { UploadPolicy } from "../../types";
2
1
  import type { UploadFilesInput, UploadFilesOperation } from "./types";
3
2
  import type { StorageUploadPort } from "../../../../../contracts/storage";
4
3
  import type { OperationAuthorization, OperationRateLimit } from "../../../../../kernel";
4
+ import type { UploadPolicy } from "../../types";
5
5
  export declare function createUploadFilesOperation(input: {
6
6
  authorization: OperationAuthorization;
7
7
  rateLimit?: OperationRateLimit<UploadFilesInput> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-files/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAO/B,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,aAAa,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAC7D,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,GAAG,oBAAoB,CA0CvB"}
1
+ {"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../../../../../../src/application/features/uploads/operations/upload-files/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAOhD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,aAAa,EAAE,sBAAsB,CAAC;IACtC,SAAS,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAC7D,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,GAAG,oBAAoB,CA4DvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"operation-errors.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/admin/errors/operation-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAA2B,MAAM,SAAS,CAAC;AAErE,qBAAa,kBAAmB,SAAQ,cAAc,CACpD,OAAO,iBAAiB,CAAC,SAAS,CACnC;;CAKA;AAED,qBAAa,4BAA6B,SAAQ,cAAc;;CAa/D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,uBAAwB,SAAQ,cAAc;;CAK1D"}
1
+ {"version":3,"file":"operation-errors.d.ts","sourceRoot":"","sources":["../../../../../../../src/application/resources/admin/errors/operation-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAA2B,MAAM,SAAS,CAAC;AAErE,qBAAa,kBAAmB,SAAQ,cAAc,CACpD,OAAO,iBAAiB,CAAC,SAAS,CACnC;;CAKA;AAED,qBAAa,4BAA6B,SAAQ,cAAc;;CAc/D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,yBAA0B,SAAQ,cAAc;;CAK5D;AAED,qBAAa,uBAAwB,SAAQ,cAAc;;CAK1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"admin-refresh-token-delete-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/admin-refresh-token/operations/commands/delete/admin-refresh-token-delete-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AASxB,wBAAgB,oCAAoC,CAAC,KAAK,EAAE;IAC1D,aAAa,EAAE,sBAAsB,CAAC;IACtC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,GAAG,8BAA8B,CAuCjC"}
1
+ {"version":3,"file":"admin-refresh-token-delete-command.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/admin-refresh-token/operations/commands/delete/admin-refresh-token-delete-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EACV,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,gBAAgB,CAAC;AASxB,wBAAgB,oCAAoC,CAAC,KAAK,EAAE;IAC1D,aAAa,EAAE,sBAAsB,CAAC;IACtC,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D,GAAG,8BAA8B,CA2CjC"}
@@ -13,6 +13,19 @@ export interface AdminRefreshTokenFindManyCriteria {
13
13
  }
14
14
  /** Adapter write contract for one Admin Refresh Token. */
15
15
  export type AdminRefreshTokenCreateInput = AdminRefreshTokenData;
16
+ /** Atomically replaces the active credential for one logical session. */
17
+ export interface AdminRefreshTokenRotateInput {
18
+ id: string;
19
+ currentTokenHash: string;
20
+ nextTokenHash: string;
21
+ expiresAt: Date;
22
+ lastIp: string;
23
+ lastUsedAt: Date;
24
+ }
25
+ /** A consumed credential identifies the logical session whose token replayed. */
26
+ export interface AdminRefreshTokenReplayLookup {
27
+ sessionId: string;
28
+ }
16
29
  /** Adapter write contract for revoking Admin Refresh Token sessions. */
17
30
  export interface AdminRefreshTokenDeleteManyInput {
18
31
  adminId: string;
@@ -20,6 +33,7 @@ export interface AdminRefreshTokenDeleteManyInput {
20
33
  }
21
34
  export interface AdminRefreshTokenCommandPort {
22
35
  create(input: AdminRefreshTokenCreateInput): Promise<AdminRefreshToken>;
36
+ rotate(input: AdminRefreshTokenRotateInput): Promise<AdminRefreshToken | null>;
23
37
  delete(input: {
24
38
  id: string;
25
39
  }): Promise<void>;
@@ -28,6 +42,9 @@ export interface AdminRefreshTokenCommandPort {
28
42
  }
29
43
  export interface AdminRefreshTokenQueryPort {
30
44
  find(input: AdminRefreshTokenLookupInput): Promise<AdminRefreshToken | null>;
45
+ findReplay(input: {
46
+ tokenHash: string;
47
+ }): Promise<AdminRefreshTokenReplayLookup | null>;
31
48
  findMany(input: AdminRefreshTokenFindManyCriteria): Promise<AdminRefreshToken[]>;
32
49
  }
33
50
  //# sourceMappingURL=ports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/admin-refresh-token/ports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE9E,2DAA2D;AAC3D,MAAM,MAAM,4BAA4B,GACpC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,GACjC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEtC,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,0DAA0D;AAC1D,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAC;AAEjE,wEAAwE;AACxE,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAKD,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxE,MAAM,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,UAAU,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrE,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACtC;AAKD,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC7E,QAAQ,CACN,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CACjC"}
1
+ {"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/admin-refresh-token/ports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE9E,2DAA2D;AAC3D,MAAM,MAAM,4BAA4B,GACpC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,KAAK,CAAA;CAAE,GACjC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEtC,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,0DAA0D;AAC1D,MAAM,MAAM,4BAA4B,GAAG,qBAAqB,CAAC;AAEjE,yEAAyE;AACzE,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,IAAI,CAAC;CAClB;AAED,iFAAiF;AACjF,MAAM,WAAW,6BAA6B;IAC5C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wEAAwE;AACxE,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAKD,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxE,MAAM,CACJ,KAAK,EAAE,4BAA4B,GAClC,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrC,MAAM,CAAC,KAAK,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,UAAU,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACrE,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACtC;AAKD,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IAC7E,UAAU,CAAC,KAAK,EAAE;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAAC;IAClD,QAAQ,CACN,KAAK,EAAE,iCAAiC,GACvC,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;CACjC"}
@@ -1,5 +1,5 @@
1
1
  export type { ConfigCommandPort, ConfigFindManyCriteria, ConfigLookupInput, ConfigQueryPort, ConfigUpdateWriteData, ConfigUpdateWriteInput, } from "./ports";
2
2
  export { CONFIG_ERROR_CODES, ConfigNotFoundError } from "./errors";
3
- export { type ConfigDetail, } from "./projections";
3
+ export { type ConfigDetail } from "./projections";
4
4
  export { type ConfigFindDetailQuery, createConfigFindDetailQuery, type ConfigFindDetailInput, type ConfigFindDetailResult, type ConfigFindManyQuery, createConfigFindManyQuery, type ConfigFindManyInput, type ConfigFindManyResult, type ConfigUpdateInput, type ConfigUpdateResult, createConfigUpdateCommand, type ConfigUpdateCommand, } from "./operations";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKnE,OAAO,EACL,KAAK,YAAY,GAClB,MAAM,eAAe,CAAC;AAKvB,OAAO,EAEL,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAGzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,yBAAyB,EACzB,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/application/resources/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAKnE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAKlD,OAAO,EAEL,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EAGzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,yBAAyB,EACzB,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/commands/update/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAOjE,eAAO,MAAM,kCAAkC,GAC7C,OAAO,0BAA0B,EACjC,QAAQ,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAsB/D,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/commands/update/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAOjE,eAAO,MAAM,kCAAkC,GAC7C,OAAO,0BAA0B,EACjC,QAAQ,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAqB/D,CAAC"}
@@ -12,16 +12,16 @@ export declare const configUpdateInputSchema: () => z.ZodObject<{
12
12
  text8: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
13
  text9: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  text10: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- data1: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
16
- data2: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
17
- data3: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
18
- data4: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
19
- data5: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
20
- data6: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
21
- data7: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
22
- data8: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
23
- data9: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
24
- data10: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
15
+ data1: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
+ data2: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ data3: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ data4: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ data5: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ data6: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
+ data7: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
+ data8: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ data9: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ data10: z.ZodOptional<z.ZodArray<z.ZodString>>;
25
25
  dec1: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
26
  dec2: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  dec3: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -72,16 +72,16 @@ export declare const configUpdateInputSchema: () => z.ZodObject<{
72
72
  i18nText8: z.ZodNullable<z.ZodString>;
73
73
  i18nText9: z.ZodNullable<z.ZodString>;
74
74
  i18nText10: z.ZodNullable<z.ZodString>;
75
- i18nData1: z.ZodArray<z.ZodUnknown>;
76
- i18nData2: z.ZodArray<z.ZodUnknown>;
77
- i18nData3: z.ZodArray<z.ZodUnknown>;
78
- i18nData4: z.ZodArray<z.ZodUnknown>;
79
- i18nData5: z.ZodArray<z.ZodUnknown>;
80
- i18nData6: z.ZodArray<z.ZodUnknown>;
81
- i18nData7: z.ZodArray<z.ZodUnknown>;
82
- i18nData8: z.ZodArray<z.ZodUnknown>;
83
- i18nData9: z.ZodArray<z.ZodUnknown>;
84
- i18nData10: z.ZodArray<z.ZodUnknown>;
75
+ i18nData1: z.ZodArray<z.ZodString>;
76
+ i18nData2: z.ZodArray<z.ZodString>;
77
+ i18nData3: z.ZodArray<z.ZodString>;
78
+ i18nData4: z.ZodArray<z.ZodString>;
79
+ i18nData5: z.ZodArray<z.ZodString>;
80
+ i18nData6: z.ZodArray<z.ZodString>;
81
+ i18nData7: z.ZodArray<z.ZodString>;
82
+ i18nData8: z.ZodArray<z.ZodString>;
83
+ i18nData9: z.ZodArray<z.ZodString>;
84
+ i18nData10: z.ZodArray<z.ZodString>;
85
85
  }, z.core.$strip>>;
86
86
  }, z.core.$strip>;
87
87
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-detail/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,8BAA8B,GAAI,OAAO,qBAAqB,WAE1E,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,GAAG,qBAAqB,EACxB,QAAQ,OAAO,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAcnE,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-detail/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQjE,eAAO,MAAM,8BAA8B,GACzC,OAAO,qBAAqB,WAG7B,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,GAAG,qBAAqB,EACxB,QAAQ,OAAO,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAanE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config-find-detail-query.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-detail/config-find-detail-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAStD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,eAAe,EAAE,eAAe,CAAC;CAClC,GAAG,qBAAqB,CAgCxB"}
1
+ {"version":3,"file":"config-find-detail-query.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-detail/config-find-detail-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAStD,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,eAAe,EAAE,eAAe,CAAC;CAClC,GAAG,qBAAqB,CA8BxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-many/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AASjE,eAAO,MAAM,4BAA4B,GACvC,OAAO,mBAAmB,GAAG,SAAS,WAKvC,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,OAAO,mBAAmB,GAAG,SAAS,EACtC,QAAQ,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aA0BjE,CAAC"}
1
+ {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-many/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AASjE,eAAO,MAAM,4BAA4B,GACvC,OAAO,mBAAmB,GAAG,SAAS,WAKvC,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,OAAO,mBAAmB,GAAG,SAAS,EACtC,QAAQ,OAAO,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,aAyBjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-many/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAAE,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,CAAC,CAAC;AAEjF,MAAM,MAAM,mBAAmB,GAAG,SAAS,CACzC,mBAAmB,GAAG,SAAS,EAC/B,mBAAmB,GAAG,SAAS,EAC/B,oBAAoB,CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/application/resources/config/operations/queries/find-many/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAClD,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,SAAS,CACzC,mBAAmB,GAAG,SAAS,EAC/B,mBAAmB,GAAG,SAAS,EAC/B,oBAAoB,CACrB,CAAC"}