@beignet/core 0.0.3 → 0.0.4

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 (360) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/README.md +785 -43
  3. package/dist/application/index.d.ts +28 -2
  4. package/dist/application/index.d.ts.map +1 -1
  5. package/dist/application/index.js +140 -12
  6. package/dist/application/index.js.map +1 -1
  7. package/dist/client/client.d.ts +2 -2
  8. package/dist/client/client.d.ts.map +1 -1
  9. package/dist/client/client.js +136 -48
  10. package/dist/client/client.js.map +1 -1
  11. package/dist/client/error-messages.d.ts +14 -0
  12. package/dist/client/error-messages.d.ts.map +1 -0
  13. package/dist/client/error-messages.js +23 -0
  14. package/dist/client/error-messages.js.map +1 -0
  15. package/dist/client/index.d.ts +8 -4
  16. package/dist/client/index.d.ts.map +1 -1
  17. package/dist/client/index.js +6 -2
  18. package/dist/client/index.js.map +1 -1
  19. package/dist/client/types.d.ts +35 -5
  20. package/dist/client/types.d.ts.map +1 -1
  21. package/dist/client-only.d.ts +8 -0
  22. package/dist/client-only.d.ts.map +1 -0
  23. package/dist/client-only.js +8 -0
  24. package/dist/client-only.js.map +1 -0
  25. package/dist/config/index.d.ts +5 -5
  26. package/dist/config/index.d.ts.map +1 -1
  27. package/dist/config/index.js +2 -2
  28. package/dist/config/index.js.map +1 -1
  29. package/dist/contracts/catalog-errors.d.ts +27 -0
  30. package/dist/contracts/catalog-errors.d.ts.map +1 -0
  31. package/dist/contracts/catalog-errors.js +69 -0
  32. package/dist/contracts/catalog-errors.js.map +1 -0
  33. package/dist/contracts/contract-builder.d.ts +15 -12
  34. package/dist/contracts/contract-builder.d.ts.map +1 -1
  35. package/dist/contracts/contract-builder.js +15 -41
  36. package/dist/contracts/contract-builder.js.map +1 -1
  37. package/dist/contracts/contract-group.d.ts +11 -8
  38. package/dist/contracts/contract-group.d.ts.map +1 -1
  39. package/dist/contracts/contract-group.js +13 -40
  40. package/dist/contracts/contract-group.js.map +1 -1
  41. package/dist/contracts/contract-like.d.ts +1 -1
  42. package/dist/contracts/contract-like.d.ts.map +1 -1
  43. package/dist/contracts/index.d.ts +13 -9
  44. package/dist/contracts/index.d.ts.map +1 -1
  45. package/dist/contracts/index.js +9 -5
  46. package/dist/contracts/index.js.map +1 -1
  47. package/dist/contracts/openapi-meta.d.ts +48 -0
  48. package/dist/contracts/openapi-meta.d.ts.map +1 -1
  49. package/dist/contracts/openapi-meta.js +3 -0
  50. package/dist/contracts/openapi-meta.js.map +1 -1
  51. package/dist/contracts/path-template.d.ts +1 -1
  52. package/dist/contracts/path-template.js +2 -2
  53. package/dist/contracts/path-template.js.map +1 -1
  54. package/dist/contracts/schema-shape.d.ts +37 -0
  55. package/dist/contracts/schema-shape.d.ts.map +1 -0
  56. package/dist/contracts/schema-shape.js +61 -0
  57. package/dist/contracts/schema-shape.js.map +1 -0
  58. package/dist/contracts/success-status.d.ts +32 -0
  59. package/dist/contracts/success-status.d.ts.map +1 -0
  60. package/dist/contracts/success-status.js +18 -0
  61. package/dist/contracts/success-status.js.map +1 -0
  62. package/dist/contracts/types.d.ts +25 -5
  63. package/dist/contracts/types.d.ts.map +1 -1
  64. package/dist/contracts/types.js.map +1 -1
  65. package/dist/contracts/utils.d.ts +1 -1
  66. package/dist/contracts/utils.d.ts.map +1 -1
  67. package/dist/contracts/utils.js +1 -1
  68. package/dist/contracts/utils.js.map +1 -1
  69. package/dist/domain/events.d.ts +1 -1
  70. package/dist/domain/events.d.ts.map +1 -1
  71. package/dist/domain/events.js +1 -1
  72. package/dist/domain/events.js.map +1 -1
  73. package/dist/domain/index.d.ts +3 -3
  74. package/dist/domain/index.d.ts.map +1 -1
  75. package/dist/domain/index.js +3 -3
  76. package/dist/domain/index.js.map +1 -1
  77. package/dist/errors/catalog.d.ts +9 -1
  78. package/dist/errors/catalog.d.ts.map +1 -1
  79. package/dist/errors/catalog.js +7 -1
  80. package/dist/errors/catalog.js.map +1 -1
  81. package/dist/errors/http.d.ts +10 -0
  82. package/dist/errors/http.d.ts.map +1 -1
  83. package/dist/errors/http.js +11 -1
  84. package/dist/errors/http.js.map +1 -1
  85. package/dist/errors/index.d.ts +4 -4
  86. package/dist/errors/index.d.ts.map +1 -1
  87. package/dist/errors/index.js +4 -4
  88. package/dist/errors/index.js.map +1 -1
  89. package/dist/errors/response.d.ts +4 -1
  90. package/dist/errors/response.d.ts.map +1 -1
  91. package/dist/errors/response.js.map +1 -1
  92. package/dist/events/index.d.ts +10 -12
  93. package/dist/events/index.d.ts.map +1 -1
  94. package/dist/events/index.js +10 -10
  95. package/dist/events/index.js.map +1 -1
  96. package/dist/idempotency/index.d.ts +5 -3
  97. package/dist/idempotency/index.d.ts.map +1 -1
  98. package/dist/idempotency/index.js.map +1 -1
  99. package/dist/jobs/index.d.ts +12 -14
  100. package/dist/jobs/index.d.ts.map +1 -1
  101. package/dist/jobs/index.js +13 -13
  102. package/dist/jobs/index.js.map +1 -1
  103. package/dist/notifications/index.d.ts +14 -16
  104. package/dist/notifications/index.d.ts.map +1 -1
  105. package/dist/notifications/index.js +14 -14
  106. package/dist/notifications/index.js.map +1 -1
  107. package/dist/openapi/index.d.ts +8 -3
  108. package/dist/openapi/index.d.ts.map +1 -1
  109. package/dist/openapi/index.js +41 -29
  110. package/dist/openapi/index.js.map +1 -1
  111. package/dist/openapi/schema-introspector.d.ts +37 -0
  112. package/dist/openapi/schema-introspector.d.ts.map +1 -1
  113. package/dist/openapi/schema-introspector.js +23 -17
  114. package/dist/openapi/schema-introspector.js.map +1 -1
  115. package/dist/outbox/index.d.ts +15 -6
  116. package/dist/outbox/index.d.ts.map +1 -1
  117. package/dist/outbox/index.js +60 -16
  118. package/dist/outbox/index.js.map +1 -1
  119. package/dist/ports/audit.d.ts +56 -10
  120. package/dist/ports/audit.d.ts.map +1 -1
  121. package/dist/ports/audit.js +71 -3
  122. package/dist/ports/audit.js.map +1 -1
  123. package/dist/ports/auth.d.ts +92 -0
  124. package/dist/ports/auth.d.ts.map +1 -1
  125. package/dist/ports/auth.js +92 -0
  126. package/dist/ports/auth.js.map +1 -1
  127. package/dist/ports/events.d.ts +2 -2
  128. package/dist/ports/events.d.ts.map +1 -1
  129. package/dist/ports/index.d.ts +62 -33
  130. package/dist/ports/index.d.ts.map +1 -1
  131. package/dist/ports/index.js +28 -34
  132. package/dist/ports/index.js.map +1 -1
  133. package/dist/ports/policy.d.ts +32 -3
  134. package/dist/ports/policy.d.ts.map +1 -1
  135. package/dist/ports/policy.js +13 -2
  136. package/dist/ports/policy.js.map +1 -1
  137. package/dist/ports/testing.d.ts +1030 -2
  138. package/dist/ports/testing.d.ts.map +1 -1
  139. package/dist/ports/testing.js +1031 -1
  140. package/dist/ports/testing.js.map +1 -1
  141. package/dist/ports/unbound.d.ts +21 -0
  142. package/dist/ports/unbound.d.ts.map +1 -0
  143. package/dist/ports/unbound.js +57 -0
  144. package/dist/ports/unbound.js.map +1 -0
  145. package/dist/ports/unit-of-work.d.ts +1 -1
  146. package/dist/ports/unit-of-work.d.ts.map +1 -1
  147. package/dist/ports/unit-of-work.js +1 -1
  148. package/dist/ports/unit-of-work.js.map +1 -1
  149. package/dist/providers/index.d.ts +3 -2
  150. package/dist/providers/index.d.ts.map +1 -1
  151. package/dist/providers/index.js +3 -2
  152. package/dist/providers/index.js.map +1 -1
  153. package/dist/providers/instrumentation.d.ts +45 -4
  154. package/dist/providers/instrumentation.d.ts.map +1 -1
  155. package/dist/providers/instrumentation.js +25 -6
  156. package/dist/providers/instrumentation.js.map +1 -1
  157. package/dist/providers/metadata.d.ts +39 -0
  158. package/dist/providers/metadata.d.ts.map +1 -0
  159. package/dist/providers/metadata.js +169 -0
  160. package/dist/providers/metadata.js.map +1 -0
  161. package/dist/providers/provider.d.ts +114 -9
  162. package/dist/providers/provider.d.ts.map +1 -1
  163. package/dist/providers/provider.js +3 -20
  164. package/dist/providers/provider.js.map +1 -1
  165. package/dist/schedules/index.d.ts +94 -13
  166. package/dist/schedules/index.d.ts.map +1 -1
  167. package/dist/schedules/index.js +66 -12
  168. package/dist/schedules/index.js.map +1 -1
  169. package/dist/server/audit-context.d.ts +29 -0
  170. package/dist/server/audit-context.d.ts.map +1 -0
  171. package/dist/server/audit-context.js +44 -0
  172. package/dist/server/audit-context.js.map +1 -0
  173. package/dist/server/context.d.ts +141 -0
  174. package/dist/server/context.d.ts.map +1 -0
  175. package/dist/server/context.js +39 -0
  176. package/dist/server/context.js.map +1 -0
  177. package/dist/server/contract-like.d.ts +1 -1
  178. package/dist/server/contract-like.d.ts.map +1 -1
  179. package/dist/server/contract-like.js +1 -1
  180. package/dist/server/contract-like.js.map +1 -1
  181. package/dist/server/health.d.ts +2 -2
  182. package/dist/server/health.d.ts.map +1 -1
  183. package/dist/server/hooks/auth.d.ts +49 -10
  184. package/dist/server/hooks/auth.d.ts.map +1 -1
  185. package/dist/server/hooks/auth.js +77 -37
  186. package/dist/server/hooks/auth.js.map +1 -1
  187. package/dist/server/hooks/cors.d.ts +1 -1
  188. package/dist/server/hooks/cors.d.ts.map +1 -1
  189. package/dist/server/hooks/errors.d.ts +2 -2
  190. package/dist/server/hooks/errors.d.ts.map +1 -1
  191. package/dist/server/hooks/errors.js +2 -2
  192. package/dist/server/hooks/errors.js.map +1 -1
  193. package/dist/server/hooks/idempotency.d.ts +78 -0
  194. package/dist/server/hooks/idempotency.d.ts.map +1 -0
  195. package/dist/server/hooks/idempotency.js +154 -0
  196. package/dist/server/hooks/idempotency.js.map +1 -0
  197. package/dist/server/hooks/index.d.ts +8 -7
  198. package/dist/server/hooks/index.d.ts.map +1 -1
  199. package/dist/server/hooks/index.js +6 -5
  200. package/dist/server/hooks/index.js.map +1 -1
  201. package/dist/server/hooks/logging.d.ts +2 -2
  202. package/dist/server/hooks/logging.d.ts.map +1 -1
  203. package/dist/server/hooks/logging.js +1 -1
  204. package/dist/server/hooks/logging.js.map +1 -1
  205. package/dist/server/hooks/rate-limit.d.ts +25 -7
  206. package/dist/server/hooks/rate-limit.d.ts.map +1 -1
  207. package/dist/server/hooks/rate-limit.js +47 -12
  208. package/dist/server/hooks/rate-limit.js.map +1 -1
  209. package/dist/server/hooks.d.ts +1 -1
  210. package/dist/server/hooks.d.ts.map +1 -1
  211. package/dist/server/hooks.js +1 -1
  212. package/dist/server/hooks.js.map +1 -1
  213. package/dist/server/http.d.ts +61 -35
  214. package/dist/server/http.d.ts.map +1 -1
  215. package/dist/server/http.js +1 -20
  216. package/dist/server/http.js.map +1 -1
  217. package/dist/server/index.d.ts +36 -12
  218. package/dist/server/index.d.ts.map +1 -1
  219. package/dist/server/index.js +24 -8
  220. package/dist/server/index.js.map +1 -1
  221. package/dist/server/instrumentation.d.ts +108 -0
  222. package/dist/server/instrumentation.d.ts.map +1 -0
  223. package/dist/server/instrumentation.js +297 -0
  224. package/dist/server/instrumentation.js.map +1 -0
  225. package/dist/server/openapi.d.ts +3 -3
  226. package/dist/server/openapi.d.ts.map +1 -1
  227. package/dist/server/openapi.js +1 -1
  228. package/dist/server/openapi.js.map +1 -1
  229. package/dist/server/providers/index.d.ts +3 -3
  230. package/dist/server/providers/index.d.ts.map +1 -1
  231. package/dist/server/providers/index.js +3 -3
  232. package/dist/server/providers/index.js.map +1 -1
  233. package/dist/server/providers/loadProviderConfig.d.ts +2 -2
  234. package/dist/server/providers/loadProviderConfig.d.ts.map +1 -1
  235. package/dist/server/providers/loadProviderConfig.js +2 -2
  236. package/dist/server/providers/loadProviderConfig.js.map +1 -1
  237. package/dist/server/request-context.d.ts +67 -0
  238. package/dist/server/request-context.d.ts.map +1 -0
  239. package/dist/server/request-context.js +79 -0
  240. package/dist/server/request-context.js.map +1 -0
  241. package/dist/server/server-context.d.ts +38 -0
  242. package/dist/server/server-context.d.ts.map +1 -0
  243. package/dist/server/server-context.js +38 -0
  244. package/dist/server/server-context.js.map +1 -0
  245. package/dist/server/server.d.ts +105 -33
  246. package/dist/server/server.d.ts.map +1 -1
  247. package/dist/server/server.js +434 -118
  248. package/dist/server/server.js.map +1 -1
  249. package/dist/server/types.d.ts +2 -2
  250. package/dist/server/types.d.ts.map +1 -1
  251. package/dist/server/types.js +2 -2
  252. package/dist/server/types.js.map +1 -1
  253. package/dist/server/use-case-route.d.ts +263 -0
  254. package/dist/server/use-case-route.d.ts.map +1 -0
  255. package/dist/server/use-case-route.js +77 -0
  256. package/dist/server/use-case-route.js.map +1 -0
  257. package/dist/server-only.d.ts +8 -0
  258. package/dist/server-only.d.ts.map +1 -0
  259. package/dist/server-only.js +8 -0
  260. package/dist/server-only.js.map +1 -0
  261. package/dist/tasks/index.d.ts +139 -0
  262. package/dist/tasks/index.d.ts.map +1 -0
  263. package/dist/tasks/index.js +98 -0
  264. package/dist/tasks/index.js.map +1 -0
  265. package/dist/testing/index.d.ts +607 -5
  266. package/dist/testing/index.d.ts.map +1 -1
  267. package/dist/testing/index.js +426 -4
  268. package/dist/testing/index.js.map +1 -1
  269. package/dist/tracing/index.d.ts +89 -0
  270. package/dist/tracing/index.d.ts.map +1 -0
  271. package/dist/tracing/index.js +101 -0
  272. package/dist/tracing/index.js.map +1 -0
  273. package/dist/uploads/client.d.ts +1 -1
  274. package/dist/uploads/client.d.ts.map +1 -1
  275. package/dist/uploads/index.d.ts +2 -2
  276. package/dist/uploads/index.d.ts.map +1 -1
  277. package/dist/uploads/index.js +1 -1
  278. package/dist/uploads/index.js.map +1 -1
  279. package/package.json +24 -2
  280. package/src/application/index.ts +193 -10
  281. package/src/client/client.ts +148 -150
  282. package/src/client/error-messages.ts +35 -0
  283. package/src/client/index.ts +12 -4
  284. package/src/client/types.ts +44 -5
  285. package/src/client-only.ts +7 -0
  286. package/src/config/index.ts +6 -6
  287. package/src/contracts/catalog-errors.ts +115 -0
  288. package/src/contracts/contract-builder.ts +39 -76
  289. package/src/contracts/contract-group.ts +33 -68
  290. package/src/contracts/contract-like.ts +1 -1
  291. package/src/contracts/index.ts +24 -11
  292. package/src/contracts/openapi-meta.ts +55 -0
  293. package/src/contracts/path-template.ts +2 -2
  294. package/src/contracts/schema-shape.ts +75 -0
  295. package/src/contracts/success-status.ts +68 -0
  296. package/src/contracts/types.ts +32 -5
  297. package/src/contracts/utils.ts +5 -2
  298. package/src/domain/events.ts +6 -2
  299. package/src/domain/index.ts +3 -3
  300. package/src/errors/catalog.ts +9 -1
  301. package/src/errors/http.ts +11 -1
  302. package/src/errors/index.ts +4 -4
  303. package/src/errors/response.ts +4 -1
  304. package/src/events/index.ts +12 -26
  305. package/src/idempotency/index.ts +5 -3
  306. package/src/jobs/index.ts +14 -24
  307. package/src/notifications/index.ts +17 -27
  308. package/src/openapi/index.ts +73 -38
  309. package/src/openapi/schema-introspector.ts +68 -17
  310. package/src/outbox/index.ts +84 -19
  311. package/src/ports/audit.ts +120 -11
  312. package/src/ports/auth.ts +132 -0
  313. package/src/ports/events.ts +2 -2
  314. package/src/ports/index.ts +104 -35
  315. package/src/ports/policy.ts +50 -3
  316. package/src/ports/testing.ts +2220 -33
  317. package/src/ports/unbound.ts +64 -0
  318. package/src/ports/unit-of-work.ts +6 -2
  319. package/src/providers/index.ts +16 -3
  320. package/src/providers/instrumentation.ts +86 -7
  321. package/src/providers/metadata.ts +234 -0
  322. package/src/providers/provider.ts +168 -9
  323. package/src/schedules/index.ts +173 -23
  324. package/src/server/audit-context.ts +45 -0
  325. package/src/server/context.ts +224 -0
  326. package/src/server/contract-like.ts +1 -1
  327. package/src/server/health.ts +2 -2
  328. package/src/server/hooks/auth.ts +141 -51
  329. package/src/server/hooks/cors.ts +1 -1
  330. package/src/server/hooks/errors.ts +7 -4
  331. package/src/server/hooks/idempotency.ts +263 -0
  332. package/src/server/hooks/index.ts +14 -7
  333. package/src/server/hooks/logging.ts +3 -3
  334. package/src/server/hooks/rate-limit.ts +85 -17
  335. package/src/server/hooks.ts +1 -1
  336. package/src/server/http.ts +78 -51
  337. package/src/server/index.ts +62 -12
  338. package/src/server/instrumentation.ts +470 -0
  339. package/src/server/openapi.ts +4 -4
  340. package/src/server/providers/index.ts +6 -3
  341. package/src/server/providers/loadProviderConfig.ts +4 -4
  342. package/src/server/request-context.ts +116 -0
  343. package/src/server/server-context.ts +44 -0
  344. package/src/server/server.ts +886 -238
  345. package/src/server/types.ts +2 -2
  346. package/src/server/use-case-route.ts +430 -0
  347. package/src/server-only.ts +7 -0
  348. package/src/tasks/index.ts +275 -0
  349. package/src/testing/index.ts +1142 -6
  350. package/src/tracing/index.ts +176 -0
  351. package/src/uploads/client.ts +1 -1
  352. package/src/uploads/index.ts +7 -3
  353. package/dist/ports/mailer.d.ts +0 -6
  354. package/dist/ports/mailer.d.ts.map +0 -1
  355. package/dist/ports/mailer.js +0 -2
  356. package/dist/ports/mailer.js.map +0 -1
  357. package/dist/ports/schedules.d.ts +0 -9
  358. package/dist/ports/schedules.d.ts.map +0 -1
  359. package/dist/ports/schedules.js +0 -2
  360. package/dist/ports/schedules.js.map +0 -1
@@ -1,9 +1,518 @@
1
- import { type ClockPort } from "../ports/clock";
2
- import { type IdGeneratorPort } from "../ports/id-generator";
1
+ import { type MemoryIdempotencyStore } from "../idempotency/index.js";
2
+ import { type MemoryMailerPort } from "../mail/index.js";
3
+ import { type MemoryNotificationPort } from "../notifications/index.js";
4
+ import { type MemoryOutboxPort } from "../outbox/index.js";
5
+ import { type ActivityActor, type ActivityTenant, type AuditLogPort, type MemoryAuditLogPort } from "../ports/audit.js";
6
+ import { type CachePort } from "../ports/cache.js";
7
+ import { type ClockPort } from "../ports/clock.js";
8
+ import type { EventBusPort, JobDispatcherPort } from "../ports/events.js";
9
+ import { type IdGeneratorPort } from "../ports/id-generator.js";
10
+ import { type AnyPorts, type BoundGate, type GatePort, type LoggerPort, type RateLimitPort, type StoragePort, type UnitOfWorkPort } from "../ports/index.js";
11
+ import { type RecordedEvent, type RecordedJobDispatch } from "../ports/testing.js";
12
+ import type { AnyServiceProvider, ProviderSetupResult } from "../providers/provider.js";
3
13
  /**
4
14
  * Value that may be returned synchronously or asynchronously.
5
15
  */
6
16
  export type MaybePromise<T> = T | Promise<T>;
17
+ /**
18
+ * Common Beignet ports created by `createTestPorts(...)`.
19
+ */
20
+ export interface CommonTestPorts<TxPorts = AnyPorts> {
21
+ [key: string]: unknown;
22
+ /**
23
+ * Ambient-enriched in-memory audit log. Entries recorded through this port
24
+ * inherit actor, tenant, request ID, and trace ID from the active request
25
+ * context, matching production server behavior. Use the fixture's `audit`
26
+ * for entry assertions.
27
+ */
28
+ audit: AuditLogPort;
29
+ /**
30
+ * In-memory string cache.
31
+ */
32
+ cache: CachePort;
33
+ /**
34
+ * Mutable deterministic test clock.
35
+ */
36
+ clock: ClockPort;
37
+ /**
38
+ * Recording event bus.
39
+ */
40
+ eventBus: EventBusPort;
41
+ /**
42
+ * Authorization gate. Apps with real policies should provide their own gate
43
+ * through `overrides`.
44
+ */
45
+ gate: GatePort<unknown, []>;
46
+ /**
47
+ * In-memory idempotency store.
48
+ */
49
+ idempotency: MemoryIdempotencyStore;
50
+ /**
51
+ * Sequence or UUID generator used by tests.
52
+ */
53
+ ids: IdGeneratorPort;
54
+ /**
55
+ * Recording job dispatcher.
56
+ */
57
+ jobs: JobDispatcherPort;
58
+ /**
59
+ * No-op logger.
60
+ */
61
+ logger: LoggerPort;
62
+ /**
63
+ * In-memory mailer.
64
+ */
65
+ mailer: MemoryMailerPort;
66
+ /**
67
+ * In-memory notification port.
68
+ */
69
+ notifications: MemoryNotificationPort;
70
+ /**
71
+ * In-memory outbox.
72
+ */
73
+ outbox: MemoryOutboxPort;
74
+ /**
75
+ * In-memory rate limiter.
76
+ */
77
+ rateLimit: RateLimitPort;
78
+ /**
79
+ * In-memory object storage.
80
+ */
81
+ storage: StoragePort;
82
+ /**
83
+ * No-op Unit of Work over the configured transaction ports.
84
+ */
85
+ uow: UnitOfWorkPort<TxPorts>;
86
+ }
87
+ /**
88
+ * Captured state and ports returned by `createTestPorts(...)`.
89
+ */
90
+ export interface TestPortsFixture<Ports extends AnyPorts = CommonTestPorts, TxPorts = Ports> {
91
+ /**
92
+ * App ports to pass into a use-case or route test context.
93
+ */
94
+ ports: Ports;
95
+ /**
96
+ * Memory audit port, exposed for assertions.
97
+ */
98
+ audit: MemoryAuditLogPort;
99
+ /**
100
+ * Recording event bus port.
101
+ */
102
+ eventBus: EventBusPort;
103
+ /**
104
+ * Recorded events published through `eventBus`.
105
+ */
106
+ events: RecordedEvent[];
107
+ /**
108
+ * Recording job dispatcher port.
109
+ */
110
+ jobs: JobDispatcherPort;
111
+ /**
112
+ * Jobs dispatched through `jobs`.
113
+ */
114
+ dispatchedJobs: RecordedJobDispatch[];
115
+ /**
116
+ * Memory mailer, exposed for delivery assertions.
117
+ */
118
+ mailer: MemoryMailerPort;
119
+ /**
120
+ * Memory notification port, exposed for delivery assertions.
121
+ */
122
+ notifications: MemoryNotificationPort;
123
+ /**
124
+ * Memory outbox, exposed for durable workflow assertions.
125
+ */
126
+ outbox: MemoryOutboxPort;
127
+ /**
128
+ * Memory storage port.
129
+ */
130
+ storage: StoragePort;
131
+ /**
132
+ * Memory idempotency store.
133
+ */
134
+ idempotency: MemoryIdempotencyStore;
135
+ /**
136
+ * Test cache port.
137
+ */
138
+ cache: CachePort;
139
+ /**
140
+ * Test rate-limit port.
141
+ */
142
+ rateLimit: RateLimitPort;
143
+ /**
144
+ * Test logger port.
145
+ */
146
+ logger: LoggerPort;
147
+ /**
148
+ * Test clock port.
149
+ */
150
+ clock: ClockPort;
151
+ /**
152
+ * Test ID generator.
153
+ */
154
+ ids: IdGeneratorPort;
155
+ /**
156
+ * Unit of Work port installed on `ports`.
157
+ */
158
+ uow: UnitOfWorkPort<TxPorts>;
159
+ }
160
+ /**
161
+ * Unit of Work behavior for `createTestPorts(...)`.
162
+ */
163
+ export interface CreateTestPortsTransactionOptions<Ports extends AnyPorts, TxPorts> {
164
+ /**
165
+ * Transaction-scoped ports or a function that derives them from final ports.
166
+ *
167
+ * Defaults to the final `ports` object.
168
+ */
169
+ ports?: TxPorts | ((ports: Ports) => TxPorts);
170
+ /**
171
+ * Hook run after the transaction callback resolves.
172
+ */
173
+ afterCommit?: (tx: TxPorts) => MaybePromise<void>;
174
+ /**
175
+ * Hook run after the transaction callback throws.
176
+ */
177
+ afterRollback?: (error: unknown, tx: TxPorts) => MaybePromise<void>;
178
+ /**
179
+ * Flush `tx.events` (a buffered domain event recorder) to `ports.eventBus`
180
+ * after the transaction commits, and clear it after a rollback.
181
+ *
182
+ * Requires `transaction.ports` to include an `events` recorder such as
183
+ * `createDomainEventRecorder()` or `createOutboxEventRecorder(...)`.
184
+ */
185
+ outbox?: boolean;
186
+ }
187
+ /**
188
+ * Override shape for one test port.
189
+ *
190
+ * Object-valued ports may be supplied one level deep as partials: the missing
191
+ * members are completed behind a proxy that throws a named error on use.
192
+ * Function-valued ports must be supplied whole, so the check for functions
193
+ * happens before the object branch.
194
+ */
195
+ export type TestPortOverride<Port> = Port extends (...args: never[]) => unknown ? Port : Port extends object ? Partial<Port> : Port;
196
+ /**
197
+ * Typed partial port overrides accepted by `createTestPorts(...)` and
198
+ * `createTestContext(...)`.
199
+ */
200
+ export type TestPortsOverrides<Ports extends AnyPorts> = {
201
+ [K in keyof Ports]?: TestPortOverride<Ports[K]>;
202
+ };
203
+ /**
204
+ * Options for `createTestPorts(...)`.
205
+ */
206
+ export interface CreateTestPortsOptions<Ports extends AnyPorts, TxPorts = Ports> {
207
+ /**
208
+ * App-owned default ports, usually imported from `infra/app-ports`. Common
209
+ * Beignet test defaults replace matching keys from `base`; use `overrides`
210
+ * for app ports that should win.
211
+ *
212
+ * Values are intentionally loose: boot-time app ports may bind wider types
213
+ * (or deferred placeholders) than the provider-contributed runtime ports.
214
+ */
215
+ base?: {
216
+ [K in keyof Ports]?: unknown;
217
+ };
218
+ /**
219
+ * Test-specific ports that should replace generated defaults or `base`.
220
+ *
221
+ * Plain-object ports may be supplied as one-level-deep partials; missing
222
+ * members throw a named error when called. Function-valued ports, class
223
+ * instances, and other exotic objects are passed through whole.
224
+ */
225
+ overrides?: TestPortsOverrides<Ports>;
226
+ /**
227
+ * Clock implementation. Defaults to a frozen clock at the Unix epoch.
228
+ */
229
+ clock?: ClockPort;
230
+ /**
231
+ * ID generator. Defaults to UUIDs.
232
+ */
233
+ ids?: IdGeneratorPort;
234
+ /**
235
+ * Unit of Work configuration. A no-op UOW is installed by default.
236
+ */
237
+ transaction?: CreateTestPortsTransactionOptions<Ports, TxPorts>;
238
+ }
239
+ /**
240
+ * Create standard memory/fake Beignet ports for tests.
241
+ *
242
+ * Use this as the starting point for use-case and route tests, then layer
243
+ * app-owned repositories or provider fakes through `base` and `overrides`.
244
+ *
245
+ * @param options - Optional app ports, overrides, and Unit of Work behavior.
246
+ * @returns Ports plus captured state for assertions.
247
+ */
248
+ export declare function createTestPorts<Ports extends AnyPorts = CommonTestPorts, TxPorts = Ports>(options?: CreateTestPortsOptions<Ports, TxPorts>): TestPortsFixture<Ports, TxPorts>;
249
+ /**
250
+ * Bound gate type inferred from a ports object.
251
+ */
252
+ export type TestBoundGateForPorts<Ports extends AnyPorts> = Ports extends {
253
+ gate?: {
254
+ bind: (ctx: never) => infer Bound;
255
+ };
256
+ } ? Bound : BoundGate<readonly []>;
257
+ /**
258
+ * Common app context fields built by `createTestContextFactory(...)`.
259
+ */
260
+ export type TestContextFields<Ports extends AnyPorts> = {
261
+ /**
262
+ * Actor under test.
263
+ */
264
+ actor: ActivityActor;
265
+ /**
266
+ * Optional tenant under test.
267
+ */
268
+ tenant?: ActivityTenant;
269
+ /**
270
+ * Stable request ID.
271
+ */
272
+ requestId: string;
273
+ /**
274
+ * Stable trace ID.
275
+ */
276
+ traceId?: string;
277
+ /**
278
+ * Optional auth/session value.
279
+ */
280
+ auth?: unknown;
281
+ /**
282
+ * App ports under test.
283
+ */
284
+ ports: Ports;
285
+ /**
286
+ * Bound authorization gate when `ports.gate` is available.
287
+ */
288
+ gate?: TestBoundGateForPorts<Ports>;
289
+ };
290
+ /**
291
+ * Options for `createTestContextFactory(...)`.
292
+ */
293
+ export interface CreateTestContextFactoryOptions<Ctx, Ports extends AnyPorts> {
294
+ /**
295
+ * Ports or a callback returning ports for each created context.
296
+ */
297
+ ports: Ports | (() => Ports);
298
+ /**
299
+ * Actor used by default.
300
+ *
301
+ * @default createTestUserActor()
302
+ */
303
+ actor?: ActivityActor;
304
+ /**
305
+ * Tenant used by default. Pass `null` to omit tenant context.
306
+ */
307
+ tenant?: ActivityTenant | null;
308
+ /**
309
+ * Request ID used by default.
310
+ */
311
+ requestId?: string;
312
+ /**
313
+ * Trace ID used by default.
314
+ */
315
+ traceId?: string;
316
+ /**
317
+ * Auth/session value added to the context.
318
+ */
319
+ auth?: unknown;
320
+ /**
321
+ * Additional app-specific context fields.
322
+ */
323
+ extra?: Partial<Ctx> | ((args: TestContextFields<Ports>) => Partial<Ctx>);
324
+ }
325
+ /**
326
+ * Per-call overrides for a test context factory.
327
+ */
328
+ export type TestContextFactoryOverrides<Ctx, Ports extends AnyPorts> = Partial<Pick<CreateTestContextFactoryOptions<Ctx, Ports>, "actor" | "tenant" | "requestId" | "traceId" | "auth" | "extra">> & {
329
+ /**
330
+ * Ports for this context call.
331
+ */
332
+ ports?: Ports;
333
+ };
334
+ /**
335
+ * Create a repeatable app context factory for use-case and route tests.
336
+ *
337
+ * The factory adds actor, tenant, request ID, trace ID, ports, and auth fields,
338
+ * and attaches a live `ctx.gate` automatically when `ports.gate` exposes
339
+ * `bind(...)`. The gate is attached after all `extra` and override fields are
340
+ * merged, so it always authorizes against the final context identity.
341
+ *
342
+ * @param options - Default context values.
343
+ * @returns A function that creates one app context.
344
+ */
345
+ export declare function createTestContextFactory<Ctx extends object, Ports extends AnyPorts>(options: CreateTestContextFactoryOptions<Ctx, Ports>): (overrides?: TestContextFactoryOverrides<Ctx, Ports>) => Ctx;
346
+ declare const disposeSymbol: typeof Symbol.dispose;
347
+ /**
348
+ * Options for `createTestContext(...)`.
349
+ */
350
+ export interface CreateTestContextOptions<Ctx, Ports extends AnyPorts> {
351
+ /**
352
+ * Actor under test.
353
+ *
354
+ * @default createTestSystemActor("test-system")
355
+ */
356
+ actor?: ActivityActor;
357
+ /**
358
+ * Tenant under test. Pass `null` to omit tenant context.
359
+ *
360
+ * @default createTestTenant()
361
+ */
362
+ tenant?: ActivityTenant | null;
363
+ /**
364
+ * Request ID exposed on the context.
365
+ *
366
+ * @default "test-request"
367
+ */
368
+ requestId?: string;
369
+ /**
370
+ * Trace ID exposed on the context.
371
+ *
372
+ * @default "test-trace"
373
+ */
374
+ traceId?: string;
375
+ /**
376
+ * Auth/session value added to the context.
377
+ *
378
+ * @default null
379
+ */
380
+ auth?: unknown;
381
+ /**
382
+ * App-owned default ports, usually imported from `infra/app-ports`. Common
383
+ * Beignet test defaults replace matching keys from `base`; use `ports` for
384
+ * app ports that should win.
385
+ */
386
+ base?: {
387
+ [K in keyof Ports]?: unknown;
388
+ };
389
+ /**
390
+ * Typed partial port overrides that replace generated defaults or `base`.
391
+ */
392
+ ports?: TestPortsOverrides<Ports>;
393
+ /**
394
+ * Clock implementation. Defaults to a frozen clock at the Unix epoch.
395
+ */
396
+ clock?: ClockPort;
397
+ /**
398
+ * ID generator. Defaults to UUIDs.
399
+ */
400
+ ids?: IdGeneratorPort;
401
+ /**
402
+ * Unit of Work configuration. A no-op UOW is installed by default.
403
+ */
404
+ transaction?: CreateTestPortsTransactionOptions<Ports, unknown>;
405
+ /**
406
+ * Additional app-specific context fields. An explicit `gate` here wins over
407
+ * the kit-attached gate.
408
+ */
409
+ extra?: Partial<Ctx>;
410
+ /**
411
+ * Enter the ambient request context with the test actor, tenant, request
412
+ * ID, and trace ID so ambient enrichment (such as the default audit port)
413
+ * works like production. Call `dispose()` (or use `using`) to clear it.
414
+ *
415
+ * @default true
416
+ */
417
+ ambient?: boolean;
418
+ }
419
+ /**
420
+ * Test context fixture returned by `createTestContext(...)`.
421
+ */
422
+ export interface TestContextFixture<Ctx, Ports extends AnyPorts> extends TestPortsFixture<Ports, unknown> {
423
+ /**
424
+ * Assembled app context under test.
425
+ */
426
+ ctx: Ctx;
427
+ /**
428
+ * Clear the ambient request context entered by this fixture.
429
+ */
430
+ dispose(): void;
431
+ /**
432
+ * Explicit-resource-management alias for `dispose()`, so fixtures work with
433
+ * `using`.
434
+ */
435
+ [disposeSymbol](): void;
436
+ }
437
+ /**
438
+ * Create a one-call test context fixture for jobs, listeners, schedules,
439
+ * notifications, tasks, and use-case tests.
440
+ *
441
+ * The fixture builds common memory ports through `createTestPorts(...)`,
442
+ * assembles an app context with actor, tenant, request ID, trace ID, auth,
443
+ * and a live bound gate, and enters the ambient request context so ambient
444
+ * enrichment matches production. Reading an app port that is neither a kit
445
+ * default nor supplied throws a named error on use.
446
+ *
447
+ * @example
448
+ * ```ts
449
+ * const makeContext = createTestContext<AppContext>();
450
+ *
451
+ * using fixture = makeContext({
452
+ * ports: { issues: { create: async (input) => issueRecord(input) } },
453
+ * });
454
+ * await runCreateIssue(fixture.ctx);
455
+ * ```
456
+ *
457
+ * @returns A factory that creates one disposable test context fixture.
458
+ */
459
+ export declare function createTestContext<Ctx extends {
460
+ ports: AnyPorts;
461
+ }>(): (options?: CreateTestContextOptions<Ctx, Ctx["ports"]>) => TestContextFixture<Ctx, Ctx["ports"]>;
462
+ /**
463
+ * Options for `installProviderForTest(...)`.
464
+ */
465
+ export interface InstallProviderForTestOptions {
466
+ /**
467
+ * Base app ports visible to provider setup, such as `{ devtools }`.
468
+ */
469
+ ports?: Record<string, unknown>;
470
+ /**
471
+ * Config passed to provider setup as-is. The provider config schema is not
472
+ * run, matching server startup where config is validated before setup.
473
+ */
474
+ config?: unknown;
475
+ /**
476
+ * Service-context factory passed to setup and lifecycle hooks. The default
477
+ * factory rejects, mirroring the late-bound runtime factory before all
478
+ * providers have started.
479
+ */
480
+ createServiceContext?: (input?: unknown) => Promise<unknown>;
481
+ }
482
+ /**
483
+ * Installed provider fixture returned by `installProviderForTest(...)`.
484
+ */
485
+ export interface InstalledProviderFixture {
486
+ /**
487
+ * Base ports merged with the ports contributed by provider setup.
488
+ */
489
+ ports: Record<string, unknown>;
490
+ /**
491
+ * Raw provider setup result, exposed for assertions on contributed ports
492
+ * and optional lifecycle hooks.
493
+ */
494
+ result: ProviderSetupResult<Record<string, unknown>, Record<string, unknown>>;
495
+ /**
496
+ * Run the provider `start` hook when the provider declares one.
497
+ */
498
+ start(): Promise<void>;
499
+ /**
500
+ * Run the provider `stop` hook when the provider declares one.
501
+ */
502
+ stop(): Promise<void>;
503
+ }
504
+ /**
505
+ * Run provider setup against test ports and return the merged ports plus
506
+ * lifecycle runners.
507
+ *
508
+ * Use this in provider tests instead of hand-rolling the setup, port merge,
509
+ * and lifecycle plumbing around `provider.setup(...)`.
510
+ *
511
+ * @param provider - Provider under test.
512
+ * @param options - Base ports, raw config, and service-context factory.
513
+ * @returns Merged ports, the raw setup result, and start/stop runners.
514
+ */
515
+ export declare function installProviderForTest(provider: AnyServiceProvider, options?: InstallProviderForTestOptions): Promise<InstalledProviderFixture>;
7
516
  /**
8
517
  * Arguments passed to a factory default builder.
9
518
  */
@@ -36,7 +545,7 @@ export type FactoryOverrides<Value extends object, Name extends string = string>
36
545
  /**
37
546
  * Options for declaring a test data factory.
38
547
  */
39
- export interface DefineFactoryOptions<Name extends string, Value extends object, Ctx = unknown, Created = Value> {
548
+ export interface CreateFactoryOptions<Name extends string, Value extends object, Ctx = unknown, Created = Value> {
40
549
  /**
41
550
  * Build the default value for the current sequence.
42
551
  */
@@ -138,6 +647,90 @@ export interface RunSeedsOptions<Ctx> {
138
647
  */
139
648
  seeds: readonly SeedDef<Ctx>[];
140
649
  }
650
+ /**
651
+ * Options for creating a database test harness.
652
+ */
653
+ export interface CreateDatabaseTestHarnessOptions<Database, Ctx> {
654
+ /**
655
+ * Create an isolated app-owned database fixture.
656
+ */
657
+ create(): MaybePromise<Database>;
658
+ /**
659
+ * Build the context passed to factories and seeds from the database fixture.
660
+ */
661
+ ctx(database: Database): Ctx;
662
+ /**
663
+ * Reset the database fixture, when supported by the app.
664
+ */
665
+ reset?(database: Database): MaybePromise<void>;
666
+ /**
667
+ * Close and dispose the database fixture.
668
+ */
669
+ close?(database: Database): MaybePromise<void>;
670
+ /**
671
+ * Factories whose sequences should reset before each setup and reset.
672
+ */
673
+ factories?: readonly Pick<FactoryDef, "resetSequence">[];
674
+ /**
675
+ * Default seeds available to `setup({ seed: true })` and `session.runSeeds()`.
676
+ */
677
+ seeds?: readonly SeedDef<Ctx>[];
678
+ }
679
+ /**
680
+ * Options for setting up one database test session.
681
+ */
682
+ export interface DatabaseTestSetupOptions<Ctx> {
683
+ /**
684
+ * Run seeds after creating the database session.
685
+ *
686
+ * Pass `true` to use the harness default seeds, or pass an explicit seed
687
+ * list for this setup.
688
+ */
689
+ seed?: boolean | readonly SeedDef<Ctx>[];
690
+ }
691
+ /**
692
+ * Active database fixture created by `createDatabaseTestHarness(...)`.
693
+ */
694
+ export interface DatabaseTestSession<Database, Ctx> {
695
+ /**
696
+ * App-owned database fixture returned by the harness `create` function.
697
+ */
698
+ readonly database: Database;
699
+ /**
700
+ * Context built from the database fixture for factories and seeds.
701
+ */
702
+ readonly ctx: Ctx;
703
+ /**
704
+ * Run the default harness seeds or an explicit seed list.
705
+ */
706
+ runSeeds(seeds?: readonly SeedDef<Ctx>[]): Promise<void>;
707
+ /**
708
+ * Reset factory sequences and the database fixture.
709
+ */
710
+ reset(): Promise<void>;
711
+ /**
712
+ * Close and dispose this session.
713
+ */
714
+ close(): Promise<void>;
715
+ }
716
+ /**
717
+ * Database test harness that coordinates app-owned database fixtures with
718
+ * Beignet factories and seeds.
719
+ */
720
+ export interface DatabaseTestHarness<Database, Ctx> {
721
+ /**
722
+ * Create one isolated database test session.
723
+ */
724
+ setup(options?: DatabaseTestSetupOptions<Ctx>): Promise<DatabaseTestSession<Database, Ctx>>;
725
+ /**
726
+ * Reset all configured factory sequences.
727
+ */
728
+ resetFactories(): void;
729
+ /**
730
+ * Close all sessions that have not already been closed.
731
+ */
732
+ cleanup(): Promise<void>;
733
+ }
141
734
  /**
142
735
  * Error thrown when a seed fails.
143
736
  */
@@ -157,9 +750,9 @@ export declare class SeedRunError extends Error {
157
750
  */
158
751
  export declare function resetFactories(...factories: readonly Pick<FactoryDef, "resetSequence">[]): void;
159
752
  /**
160
- * Define a typed test data factory with deterministic sequence support.
753
+ * Create a typed test data factory with deterministic sequence support.
161
754
  */
162
- export declare function defineFactory<const Name extends string, Value extends object, Ctx = unknown, Created = Value>(name: Name, options: DefineFactoryOptions<Name, Value, Ctx, Created>): FactoryDef<Name, Value, Ctx, Created>;
755
+ export declare function createFactory<const Name extends string, Value extends object, Ctx = unknown, Created = Value>(name: Name, options: CreateFactoryOptions<Name, Value, Ctx, Created>): FactoryDef<Name, Value, Ctx, Created>;
163
756
  /**
164
757
  * Define a named seed.
165
758
  */
@@ -168,4 +761,13 @@ export declare function defineSeed<const Name extends string, Ctx = unknown>(nam
168
761
  * Run seeds in order and wrap failures with the seed name.
169
762
  */
170
763
  export declare function runSeeds<Ctx>(options: RunSeedsOptions<Ctx>): Promise<void>;
764
+ /**
765
+ * Create a database test harness for app-owned database fixtures.
766
+ *
767
+ * The harness does not know about an ORM or database provider. Apps provide
768
+ * creation, reset, close, and context mapping functions, while Beignet handles
769
+ * the repetitive test lifecycle around factory sequences and seed execution.
770
+ */
771
+ export declare function createDatabaseTestHarness<Database, Ctx>(options: CreateDatabaseTestHarnessOptions<Database, Ctx>): DatabaseTestHarness<Database, Ctx>;
772
+ export {};
171
773
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,IAAI,SAAS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