pipework 0.8.0 → 0.8.1

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 (915) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/auth/auth/sessions.d.ts.map +1 -1
  3. package/dist/auth/auth/sessions.js +23 -7
  4. package/dist/auth/auth/sessions.js.map +1 -1
  5. package/dist/cli/commands/check.d.ts +1 -0
  6. package/dist/cli/commands/check.d.ts.map +1 -1
  7. package/dist/cli/commands/check.js +32 -7
  8. package/dist/cli/commands/check.js.map +1 -1
  9. package/dist/data/domain/build-schema.d.ts.map +1 -1
  10. package/dist/data/domain/build-schema.js +3 -0
  11. package/dist/data/domain/build-schema.js.map +1 -1
  12. package/dist/trace/schema/trace-fields.d.ts +1 -1
  13. package/dist/trace/schema/trace-retained.d.ts +1 -1
  14. package/dist/trace/schema/trace.d.ts +1 -1
  15. package/dist/workspace/changed-files.d.ts.map +1 -1
  16. package/dist/workspace/changed-files.js +5 -3
  17. package/dist/workspace/changed-files.js.map +1 -1
  18. package/dist/workspace/scrub-git-env.d.ts +2 -0
  19. package/dist/workspace/scrub-git-env.d.ts.map +1 -0
  20. package/dist/workspace/scrub-git-env.js +24 -0
  21. package/dist/workspace/scrub-git-env.js.map +1 -0
  22. package/package.json +2 -1
  23. package/dist/REFERENCE.md +0 -873
  24. package/dist/audit/emit.d.ts +0 -3
  25. package/dist/audit/emit.d.ts.map +0 -1
  26. package/dist/audit/emit.js +0 -66
  27. package/dist/audit/emit.js.map +0 -1
  28. package/dist/audit/index.d.ts +0 -3
  29. package/dist/audit/index.d.ts.map +0 -1
  30. package/dist/audit/index.js +0 -2
  31. package/dist/audit/index.js.map +0 -1
  32. package/dist/audit/namespace.d.ts +0 -7
  33. package/dist/audit/namespace.d.ts.map +0 -1
  34. package/dist/audit/namespace.js +0 -7
  35. package/dist/audit/namespace.js.map +0 -1
  36. package/dist/audit/types.d.ts +0 -17
  37. package/dist/audit/types.d.ts.map +0 -1
  38. package/dist/audit/types.js +0 -2
  39. package/dist/audit/types.js.map +0 -1
  40. package/dist/auth/chain.d.ts +0 -26
  41. package/dist/auth/chain.d.ts.map +0 -1
  42. package/dist/auth/chain.js +0 -46
  43. package/dist/auth/chain.js.map +0 -1
  44. package/dist/auth/cookie.d.ts +0 -24
  45. package/dist/auth/cookie.d.ts.map +0 -1
  46. package/dist/auth/cookie.js +0 -59
  47. package/dist/auth/cookie.js.map +0 -1
  48. package/dist/auth/index.d.ts +0 -10
  49. package/dist/auth/index.d.ts.map +0 -1
  50. package/dist/auth/index.js +0 -5
  51. package/dist/auth/index.js.map +0 -1
  52. package/dist/auth/multi-org.d.ts +0 -77
  53. package/dist/auth/multi-org.d.ts.map +0 -1
  54. package/dist/auth/multi-org.js +0 -164
  55. package/dist/auth/multi-org.js.map +0 -1
  56. package/dist/auth/namespace.d.ts +0 -22
  57. package/dist/auth/namespace.d.ts.map +0 -1
  58. package/dist/auth/namespace.js +0 -22
  59. package/dist/auth/namespace.js.map +0 -1
  60. package/dist/auth/sessions.d.ts +0 -70
  61. package/dist/auth/sessions.d.ts.map +0 -1
  62. package/dist/auth/sessions.js +0 -231
  63. package/dist/auth/sessions.js.map +0 -1
  64. package/dist/auth/types.d.ts +0 -22
  65. package/dist/auth/types.d.ts.map +0 -1
  66. package/dist/auth/types.js +0 -2
  67. package/dist/auth/types.js.map +0 -1
  68. package/dist/behavior/audited.d.ts +0 -5
  69. package/dist/behavior/audited.d.ts.map +0 -1
  70. package/dist/behavior/audited.js +0 -78
  71. package/dist/behavior/audited.js.map +0 -1
  72. package/dist/behavior/cached.d.ts +0 -7
  73. package/dist/behavior/cached.d.ts.map +0 -1
  74. package/dist/behavior/cached.js +0 -48
  75. package/dist/behavior/cached.js.map +0 -1
  76. package/dist/behavior/compose.d.ts +0 -4
  77. package/dist/behavior/compose.d.ts.map +0 -1
  78. package/dist/behavior/compose.js +0 -18
  79. package/dist/behavior/compose.js.map +0 -1
  80. package/dist/behavior/index.d.ts +0 -6
  81. package/dist/behavior/index.d.ts.map +0 -1
  82. package/dist/behavior/index.js +0 -5
  83. package/dist/behavior/index.js.map +0 -1
  84. package/dist/behavior/namespace.d.ts +0 -16
  85. package/dist/behavior/namespace.d.ts.map +0 -1
  86. package/dist/behavior/namespace.js +0 -16
  87. package/dist/behavior/namespace.js.map +0 -1
  88. package/dist/behavior/types.d.ts +0 -23
  89. package/dist/behavior/types.d.ts.map +0 -1
  90. package/dist/behavior/types.js +0 -2
  91. package/dist/behavior/types.js.map +0 -1
  92. package/dist/behavior/versioned.d.ts +0 -4
  93. package/dist/behavior/versioned.d.ts.map +0 -1
  94. package/dist/behavior/versioned.js +0 -39
  95. package/dist/behavior/versioned.js.map +0 -1
  96. package/dist/cache/create.d.ts +0 -3
  97. package/dist/cache/create.d.ts.map +0 -1
  98. package/dist/cache/create.js +0 -90
  99. package/dist/cache/create.js.map +0 -1
  100. package/dist/cache/index.d.ts +0 -5
  101. package/dist/cache/index.d.ts.map +0 -1
  102. package/dist/cache/index.js +0 -3
  103. package/dist/cache/index.js.map +0 -1
  104. package/dist/cache/namespace.d.ts +0 -10
  105. package/dist/cache/namespace.d.ts.map +0 -1
  106. package/dist/cache/namespace.js +0 -10
  107. package/dist/cache/namespace.js.map +0 -1
  108. package/dist/cache/tenant.d.ts +0 -21
  109. package/dist/cache/tenant.d.ts.map +0 -1
  110. package/dist/cache/tenant.js +0 -101
  111. package/dist/cache/tenant.js.map +0 -1
  112. package/dist/cache/types.d.ts +0 -22
  113. package/dist/cache/types.d.ts.map +0 -1
  114. package/dist/cache/types.js +0 -2
  115. package/dist/cache/types.js.map +0 -1
  116. package/dist/config/discover.d.ts +0 -4
  117. package/dist/config/discover.d.ts.map +0 -1
  118. package/dist/config/discover.js +0 -42
  119. package/dist/config/discover.js.map +0 -1
  120. package/dist/config/env-resolve.d.ts +0 -4
  121. package/dist/config/env-resolve.d.ts.map +0 -1
  122. package/dist/config/env-resolve.js +0 -71
  123. package/dist/config/env-resolve.js.map +0 -1
  124. package/dist/config/env-types.d.ts +0 -42
  125. package/dist/config/env-types.d.ts.map +0 -1
  126. package/dist/config/env-types.js +0 -2
  127. package/dist/config/env-types.js.map +0 -1
  128. package/dist/config/env.d.ts +0 -2
  129. package/dist/config/env.d.ts.map +0 -1
  130. package/dist/config/env.js +0 -48
  131. package/dist/config/env.js.map +0 -1
  132. package/dist/config/index.d.ts +0 -8
  133. package/dist/config/index.d.ts.map +0 -1
  134. package/dist/config/index.js +0 -7
  135. package/dist/config/index.js.map +0 -1
  136. package/dist/config/load.d.ts +0 -34
  137. package/dist/config/load.d.ts.map +0 -1
  138. package/dist/config/load.js +0 -113
  139. package/dist/config/load.js.map +0 -1
  140. package/dist/config/namespace.d.ts +0 -172
  141. package/dist/config/namespace.d.ts.map +0 -1
  142. package/dist/config/namespace.js +0 -14
  143. package/dist/config/namespace.js.map +0 -1
  144. package/dist/config/resolve.d.ts +0 -8
  145. package/dist/config/resolve.d.ts.map +0 -1
  146. package/dist/config/resolve.js +0 -43
  147. package/dist/config/resolve.js.map +0 -1
  148. package/dist/config/schema.d.ts +0 -400
  149. package/dist/config/schema.d.ts.map +0 -1
  150. package/dist/config/schema.js +0 -106
  151. package/dist/config/schema.js.map +0 -1
  152. package/dist/context/create.d.ts +0 -24
  153. package/dist/context/create.d.ts.map +0 -1
  154. package/dist/context/create.js +0 -38
  155. package/dist/context/create.js.map +0 -1
  156. package/dist/context/guard.d.ts +0 -5
  157. package/dist/context/guard.d.ts.map +0 -1
  158. package/dist/context/guard.js +0 -35
  159. package/dist/context/guard.js.map +0 -1
  160. package/dist/context/index.d.ts +0 -5
  161. package/dist/context/index.d.ts.map +0 -1
  162. package/dist/context/index.js +0 -4
  163. package/dist/context/index.js.map +0 -1
  164. package/dist/context/store.d.ts +0 -7
  165. package/dist/context/store.d.ts.map +0 -1
  166. package/dist/context/store.js +0 -18
  167. package/dist/context/store.js.map +0 -1
  168. package/dist/context/types.d.ts +0 -28
  169. package/dist/context/types.d.ts.map +0 -1
  170. package/dist/context/types.js +0 -2
  171. package/dist/context/types.js.map +0 -1
  172. package/dist/core/errors/types.d.ts +0 -29
  173. package/dist/core/errors/types.d.ts.map +0 -1
  174. package/dist/core/errors/types.js +0 -46
  175. package/dist/core/errors/types.js.map +0 -1
  176. package/dist/core/log/namespace.d.ts +0 -15
  177. package/dist/core/log/namespace.d.ts.map +0 -1
  178. package/dist/core/log/namespace.js +0 -16
  179. package/dist/core/log/namespace.js.map +0 -1
  180. package/dist/core/validation/doctrine.d.ts +0 -13
  181. package/dist/core/validation/doctrine.d.ts.map +0 -1
  182. package/dist/core/validation/doctrine.js +0 -115
  183. package/dist/core/validation/doctrine.js.map +0 -1
  184. package/dist/data/db/context.d.ts +0 -4
  185. package/dist/data/db/context.d.ts.map +0 -1
  186. package/dist/data/db/context.js +0 -3
  187. package/dist/data/db/context.js.map +0 -1
  188. package/dist/data/domain/project-factory.d.ts +0 -4
  189. package/dist/data/domain/project-factory.d.ts.map +0 -1
  190. package/dist/data/domain/project-factory.js +0 -138
  191. package/dist/data/domain/project-factory.js.map +0 -1
  192. package/dist/data/domain/project-schema.d.ts +0 -6
  193. package/dist/data/domain/project-schema.d.ts.map +0 -1
  194. package/dist/data/domain/project-schema.js +0 -123
  195. package/dist/data/domain/project-schema.js.map +0 -1
  196. package/dist/data/domain/project-table.d.ts +0 -30
  197. package/dist/data/domain/project-table.d.ts.map +0 -1
  198. package/dist/data/domain/project-table.js +0 -130
  199. package/dist/data/domain/project-table.js.map +0 -1
  200. package/dist/data/vector/types.d.ts +0 -19
  201. package/dist/data/vector/types.d.ts.map +0 -1
  202. package/dist/data/vector/types.js +0 -26
  203. package/dist/data/vector/types.js.map +0 -1
  204. package/dist/db/col/index.d.ts +0 -2
  205. package/dist/db/col/index.d.ts.map +0 -1
  206. package/dist/db/col/index.js +0 -5
  207. package/dist/db/col/index.js.map +0 -1
  208. package/dist/db/context.d.ts +0 -4
  209. package/dist/db/context.d.ts.map +0 -1
  210. package/dist/db/context.js +0 -3
  211. package/dist/db/context.js.map +0 -1
  212. package/dist/db/db.d.ts +0 -6
  213. package/dist/db/db.d.ts.map +0 -1
  214. package/dist/db/db.js +0 -65
  215. package/dist/db/db.js.map +0 -1
  216. package/dist/db/filter.d.ts +0 -46
  217. package/dist/db/filter.d.ts.map +0 -1
  218. package/dist/db/filter.js +0 -9
  219. package/dist/db/filter.js.map +0 -1
  220. package/dist/db/generated/drizzle-orm/aggregate.d.ts +0 -2
  221. package/dist/db/generated/drizzle-orm/aggregate.d.ts.map +0 -1
  222. package/dist/db/generated/drizzle-orm/aggregate.js +0 -5
  223. package/dist/db/generated/drizzle-orm/aggregate.js.map +0 -1
  224. package/dist/db/generated/drizzle-orm/introspection.d.ts +0 -2
  225. package/dist/db/generated/drizzle-orm/introspection.d.ts.map +0 -1
  226. package/dist/db/generated/drizzle-orm/introspection.js +0 -5
  227. package/dist/db/generated/drizzle-orm/introspection.js.map +0 -1
  228. package/dist/db/generated/drizzle-orm/operator.d.ts +0 -2
  229. package/dist/db/generated/drizzle-orm/operator.d.ts.map +0 -1
  230. package/dist/db/generated/drizzle-orm/operator.js +0 -5
  231. package/dist/db/generated/drizzle-orm/operator.js.map +0 -1
  232. package/dist/db/generated/drizzle-orm/relation.d.ts +0 -2
  233. package/dist/db/generated/drizzle-orm/relation.d.ts.map +0 -1
  234. package/dist/db/generated/drizzle-orm/relation.js +0 -5
  235. package/dist/db/generated/drizzle-orm/relation.js.map +0 -1
  236. package/dist/db/generated/drizzle-orm/type.d.ts +0 -3
  237. package/dist/db/generated/drizzle-orm/type.d.ts.map +0 -1
  238. package/dist/db/generated/drizzle-orm/type.js +0 -5
  239. package/dist/db/generated/drizzle-orm/type.js.map +0 -1
  240. package/dist/db/generated/pg-core/introspection.d.ts +0 -2
  241. package/dist/db/generated/pg-core/introspection.d.ts.map +0 -1
  242. package/dist/db/generated/pg-core/introspection.js +0 -5
  243. package/dist/db/generated/pg-core/introspection.js.map +0 -1
  244. package/dist/db/generated/pg-core/set-operation.d.ts +0 -2
  245. package/dist/db/generated/pg-core/set-operation.d.ts.map +0 -1
  246. package/dist/db/generated/pg-core/set-operation.js +0 -5
  247. package/dist/db/generated/pg-core/set-operation.js.map +0 -1
  248. package/dist/db/generated/pg-core/type.d.ts +0 -3
  249. package/dist/db/generated/pg-core/type.d.ts.map +0 -1
  250. package/dist/db/generated/pg-core/type.js +0 -5
  251. package/dist/db/generated/pg-core/type.js.map +0 -1
  252. package/dist/db/identifiers.d.ts +0 -3
  253. package/dist/db/identifiers.d.ts.map +0 -1
  254. package/dist/db/identifiers.js +0 -13
  255. package/dist/db/identifiers.js.map +0 -1
  256. package/dist/db/idx/index.d.ts +0 -2
  257. package/dist/db/idx/index.d.ts.map +0 -1
  258. package/dist/db/idx/index.js +0 -5
  259. package/dist/db/idx/index.js.map +0 -1
  260. package/dist/db/index.d.ts +0 -9
  261. package/dist/db/index.d.ts.map +0 -1
  262. package/dist/db/index.js +0 -7
  263. package/dist/db/index.js.map +0 -1
  264. package/dist/db/instrumentation.d.ts +0 -5
  265. package/dist/db/instrumentation.d.ts.map +0 -1
  266. package/dist/db/instrumentation.js +0 -44
  267. package/dist/db/instrumentation.js.map +0 -1
  268. package/dist/db/namespace.d.ts +0 -89
  269. package/dist/db/namespace.d.ts.map +0 -1
  270. package/dist/db/namespace.js +0 -30
  271. package/dist/db/namespace.js.map +0 -1
  272. package/dist/db/pool.d.ts +0 -17
  273. package/dist/db/pool.d.ts.map +0 -1
  274. package/dist/db/pool.js +0 -39
  275. package/dist/db/pool.js.map +0 -1
  276. package/dist/db/schema-features.d.ts +0 -2
  277. package/dist/db/schema-features.d.ts.map +0 -1
  278. package/dist/db/schema-features.js +0 -4
  279. package/dist/db/schema-features.js.map +0 -1
  280. package/dist/db/sql.d.ts +0 -2
  281. package/dist/db/sql.d.ts.map +0 -1
  282. package/dist/db/sql.js +0 -2
  283. package/dist/db/sql.js.map +0 -1
  284. package/dist/db/types.d.ts +0 -17
  285. package/dist/db/types.d.ts.map +0 -1
  286. package/dist/db/types.js +0 -2
  287. package/dist/db/types.js.map +0 -1
  288. package/dist/di/builder.d.ts +0 -73
  289. package/dist/di/builder.d.ts.map +0 -1
  290. package/dist/di/builder.js +0 -189
  291. package/dist/di/builder.js.map +0 -1
  292. package/dist/di/index.d.ts +0 -6
  293. package/dist/di/index.d.ts.map +0 -1
  294. package/dist/di/index.js +0 -6
  295. package/dist/di/index.js.map +0 -1
  296. package/dist/di/resolve.d.ts +0 -9
  297. package/dist/di/resolve.d.ts.map +0 -1
  298. package/dist/di/resolve.js +0 -90
  299. package/dist/di/resolve.js.map +0 -1
  300. package/dist/di/types.d.ts +0 -56
  301. package/dist/di/types.d.ts.map +0 -1
  302. package/dist/di/types.js +0 -3
  303. package/dist/di/types.js.map +0 -1
  304. package/dist/domain/brand.d.ts +0 -19
  305. package/dist/domain/brand.d.ts.map +0 -1
  306. package/dist/domain/brand.js +0 -2
  307. package/dist/domain/brand.js.map +0 -1
  308. package/dist/domain/define.d.ts +0 -5
  309. package/dist/domain/define.d.ts.map +0 -1
  310. package/dist/domain/define.js +0 -155
  311. package/dist/domain/define.js.map +0 -1
  312. package/dist/domain/field.d.ts +0 -35
  313. package/dist/domain/field.d.ts.map +0 -1
  314. package/dist/domain/field.js +0 -115
  315. package/dist/domain/field.js.map +0 -1
  316. package/dist/domain/index.d.ts +0 -8
  317. package/dist/domain/index.d.ts.map +0 -1
  318. package/dist/domain/index.js +0 -6
  319. package/dist/domain/index.js.map +0 -1
  320. package/dist/domain/naming.d.ts +0 -2
  321. package/dist/domain/naming.d.ts.map +0 -1
  322. package/dist/domain/naming.js +0 -7
  323. package/dist/domain/naming.js.map +0 -1
  324. package/dist/domain/project-factory.d.ts +0 -4
  325. package/dist/domain/project-factory.d.ts.map +0 -1
  326. package/dist/domain/project-factory.js +0 -138
  327. package/dist/domain/project-factory.js.map +0 -1
  328. package/dist/domain/project-schema.d.ts +0 -6
  329. package/dist/domain/project-schema.d.ts.map +0 -1
  330. package/dist/domain/project-schema.js +0 -123
  331. package/dist/domain/project-schema.js.map +0 -1
  332. package/dist/domain/project-table.d.ts +0 -30
  333. package/dist/domain/project-table.d.ts.map +0 -1
  334. package/dist/domain/project-table.js +0 -125
  335. package/dist/domain/project-table.js.map +0 -1
  336. package/dist/domain/traits.d.ts +0 -9
  337. package/dist/domain/traits.d.ts.map +0 -1
  338. package/dist/domain/traits.js +0 -48
  339. package/dist/domain/traits.js.map +0 -1
  340. package/dist/domain/types.d.ts +0 -102
  341. package/dist/domain/types.d.ts.map +0 -1
  342. package/dist/domain/types.js +0 -2
  343. package/dist/domain/types.js.map +0 -1
  344. package/dist/drizzle/index.d.ts +0 -3
  345. package/dist/drizzle/index.d.ts.map +0 -1
  346. package/dist/drizzle/index.js +0 -3
  347. package/dist/drizzle/index.js.map +0 -1
  348. package/dist/errors/base.d.ts +0 -7
  349. package/dist/errors/base.d.ts.map +0 -1
  350. package/dist/errors/base.js +0 -9
  351. package/dist/errors/base.js.map +0 -1
  352. package/dist/errors/index.d.ts +0 -3
  353. package/dist/errors/index.d.ts.map +0 -1
  354. package/dist/errors/index.js +0 -3
  355. package/dist/errors/index.js.map +0 -1
  356. package/dist/errors/namespace.d.ts +0 -17
  357. package/dist/errors/namespace.d.ts.map +0 -1
  358. package/dist/errors/namespace.js +0 -17
  359. package/dist/errors/namespace.js.map +0 -1
  360. package/dist/errors/types.d.ts +0 -29
  361. package/dist/errors/types.d.ts.map +0 -1
  362. package/dist/errors/types.js +0 -46
  363. package/dist/errors/types.js.map +0 -1
  364. package/dist/fitting/namespace.d.ts +0 -3
  365. package/dist/fitting/namespace.d.ts.map +0 -1
  366. package/dist/fitting/namespace.js +0 -4
  367. package/dist/fitting/namespace.js.map +0 -1
  368. package/dist/fixture/batch.d.ts +0 -17
  369. package/dist/fixture/batch.d.ts.map +0 -1
  370. package/dist/fixture/batch.js +0 -47
  371. package/dist/fixture/batch.js.map +0 -1
  372. package/dist/fixture/builder.d.ts +0 -11
  373. package/dist/fixture/builder.d.ts.map +0 -1
  374. package/dist/fixture/builder.js +0 -12
  375. package/dist/fixture/builder.js.map +0 -1
  376. package/dist/fixture/errors.d.ts +0 -7
  377. package/dist/fixture/errors.d.ts.map +0 -1
  378. package/dist/fixture/errors.js +0 -9
  379. package/dist/fixture/errors.js.map +0 -1
  380. package/dist/fixture/index.d.ts +0 -9
  381. package/dist/fixture/index.d.ts.map +0 -1
  382. package/dist/fixture/index.js +0 -6
  383. package/dist/fixture/index.js.map +0 -1
  384. package/dist/fixture/namespace.d.ts +0 -23
  385. package/dist/fixture/namespace.d.ts.map +0 -1
  386. package/dist/fixture/namespace.js +0 -23
  387. package/dist/fixture/namespace.js.map +0 -1
  388. package/dist/fixture/paginate.d.ts +0 -13
  389. package/dist/fixture/paginate.d.ts.map +0 -1
  390. package/dist/fixture/paginate.js +0 -29
  391. package/dist/fixture/paginate.js.map +0 -1
  392. package/dist/fixture/register.d.ts +0 -16
  393. package/dist/fixture/register.d.ts.map +0 -1
  394. package/dist/fixture/register.js +0 -181
  395. package/dist/fixture/register.js.map +0 -1
  396. package/dist/fixture/to-handlers.d.ts +0 -6
  397. package/dist/fixture/to-handlers.d.ts.map +0 -1
  398. package/dist/fixture/to-handlers.js +0 -245
  399. package/dist/fixture/to-handlers.js.map +0 -1
  400. package/dist/fixture/types.d.ts +0 -69
  401. package/dist/fixture/types.d.ts.map +0 -1
  402. package/dist/fixture/types.js +0 -2
  403. package/dist/fixture/types.js.map +0 -1
  404. package/dist/flow/namespace.d.ts +0 -14
  405. package/dist/flow/namespace.d.ts.map +0 -1
  406. package/dist/flow/namespace.js +0 -14
  407. package/dist/flow/namespace.js.map +0 -1
  408. package/dist/http/index.d.ts +0 -4
  409. package/dist/http/index.d.ts.map +0 -1
  410. package/dist/http/index.js +0 -3
  411. package/dist/http/index.js.map +0 -1
  412. package/dist/http/middleware.d.ts +0 -20
  413. package/dist/http/middleware.d.ts.map +0 -1
  414. package/dist/http/middleware.js +0 -71
  415. package/dist/http/middleware.js.map +0 -1
  416. package/dist/http/namespace.d.ts +0 -3
  417. package/dist/http/namespace.d.ts.map +0 -1
  418. package/dist/http/namespace.js +0 -3
  419. package/dist/http/namespace.js.map +0 -1
  420. package/dist/http/response.d.ts +0 -5
  421. package/dist/http/response.d.ts.map +0 -1
  422. package/dist/http/response.js +0 -22
  423. package/dist/http/response.js.map +0 -1
  424. package/dist/http/server.d.ts +0 -17
  425. package/dist/http/server.d.ts.map +0 -1
  426. package/dist/http/server.js +0 -391
  427. package/dist/http/server.js.map +0 -1
  428. package/dist/http/types.d.ts +0 -130
  429. package/dist/http/types.d.ts.map +0 -1
  430. package/dist/http/types.js +0 -2
  431. package/dist/http/types.js.map +0 -1
  432. package/dist/idempotency/index.d.ts +0 -4
  433. package/dist/idempotency/index.d.ts.map +0 -1
  434. package/dist/idempotency/index.js +0 -3
  435. package/dist/idempotency/index.js.map +0 -1
  436. package/dist/idempotency/middleware.d.ts +0 -21
  437. package/dist/idempotency/middleware.d.ts.map +0 -1
  438. package/dist/idempotency/middleware.js +0 -56
  439. package/dist/idempotency/middleware.js.map +0 -1
  440. package/dist/idempotency/store.d.ts +0 -3
  441. package/dist/idempotency/store.d.ts.map +0 -1
  442. package/dist/idempotency/store.js +0 -63
  443. package/dist/idempotency/store.js.map +0 -1
  444. package/dist/idempotency/types.d.ts +0 -28
  445. package/dist/idempotency/types.d.ts.map +0 -1
  446. package/dist/idempotency/types.js +0 -2
  447. package/dist/idempotency/types.js.map +0 -1
  448. package/dist/jobs/cron.d.ts +0 -11
  449. package/dist/jobs/cron.d.ts.map +0 -1
  450. package/dist/jobs/cron.js +0 -176
  451. package/dist/jobs/cron.js.map +0 -1
  452. package/dist/jobs/execute.d.ts +0 -12
  453. package/dist/jobs/execute.d.ts.map +0 -1
  454. package/dist/jobs/execute.js +0 -19
  455. package/dist/jobs/execute.js.map +0 -1
  456. package/dist/jobs/index.d.ts +0 -8
  457. package/dist/jobs/index.d.ts.map +0 -1
  458. package/dist/jobs/index.js +0 -4
  459. package/dist/jobs/index.js.map +0 -1
  460. package/dist/jobs/listener.d.ts +0 -32
  461. package/dist/jobs/listener.d.ts.map +0 -1
  462. package/dist/jobs/listener.js +0 -95
  463. package/dist/jobs/listener.js.map +0 -1
  464. package/dist/jobs/namespace.d.ts +0 -15
  465. package/dist/jobs/namespace.d.ts.map +0 -1
  466. package/dist/jobs/namespace.js +0 -15
  467. package/dist/jobs/namespace.js.map +0 -1
  468. package/dist/jobs/queue.d.ts +0 -58
  469. package/dist/jobs/queue.d.ts.map +0 -1
  470. package/dist/jobs/queue.js +0 -163
  471. package/dist/jobs/queue.js.map +0 -1
  472. package/dist/jobs/scheduler.d.ts +0 -31
  473. package/dist/jobs/scheduler.d.ts.map +0 -1
  474. package/dist/jobs/scheduler.js +0 -94
  475. package/dist/jobs/scheduler.js.map +0 -1
  476. package/dist/lifecycle/drain.d.ts +0 -7
  477. package/dist/lifecycle/drain.d.ts.map +0 -1
  478. package/dist/lifecycle/drain.js +0 -24
  479. package/dist/lifecycle/drain.js.map +0 -1
  480. package/dist/lifecycle/health.d.ts +0 -8
  481. package/dist/lifecycle/health.d.ts.map +0 -1
  482. package/dist/lifecycle/health.js +0 -62
  483. package/dist/lifecycle/health.js.map +0 -1
  484. package/dist/lifecycle/index.d.ts +0 -5
  485. package/dist/lifecycle/index.d.ts.map +0 -1
  486. package/dist/lifecycle/index.js +0 -4
  487. package/dist/lifecycle/index.js.map +0 -1
  488. package/dist/lifecycle/namespace.d.ts +0 -7
  489. package/dist/lifecycle/namespace.d.ts.map +0 -1
  490. package/dist/lifecycle/namespace.js +0 -7
  491. package/dist/lifecycle/namespace.js.map +0 -1
  492. package/dist/lifecycle/startup.d.ts +0 -8
  493. package/dist/lifecycle/startup.d.ts.map +0 -1
  494. package/dist/lifecycle/startup.js +0 -43
  495. package/dist/lifecycle/startup.js.map +0 -1
  496. package/dist/lifecycle/types.d.ts +0 -30
  497. package/dist/lifecycle/types.d.ts.map +0 -1
  498. package/dist/lifecycle/types.js +0 -2
  499. package/dist/lifecycle/types.js.map +0 -1
  500. package/dist/log/namespace.d.ts +0 -15
  501. package/dist/log/namespace.d.ts.map +0 -1
  502. package/dist/log/namespace.js +0 -16
  503. package/dist/log/namespace.js.map +0 -1
  504. package/dist/logging/context.d.ts +0 -11
  505. package/dist/logging/context.d.ts.map +0 -1
  506. package/dist/logging/context.js +0 -46
  507. package/dist/logging/context.js.map +0 -1
  508. package/dist/logging/index.d.ts +0 -4
  509. package/dist/logging/index.d.ts.map +0 -1
  510. package/dist/logging/index.js +0 -3
  511. package/dist/logging/index.js.map +0 -1
  512. package/dist/logging/logger.d.ts +0 -8
  513. package/dist/logging/logger.d.ts.map +0 -1
  514. package/dist/logging/logger.js +0 -39
  515. package/dist/logging/logger.js.map +0 -1
  516. package/dist/logging/proxy.d.ts +0 -3
  517. package/dist/logging/proxy.d.ts.map +0 -1
  518. package/dist/logging/proxy.js +0 -14
  519. package/dist/logging/proxy.js.map +0 -1
  520. package/dist/logging/types.d.ts +0 -36
  521. package/dist/logging/types.d.ts.map +0 -1
  522. package/dist/logging/types.js +0 -2
  523. package/dist/logging/types.js.map +0 -1
  524. package/dist/migrate/check.d.ts +0 -14
  525. package/dist/migrate/check.d.ts.map +0 -1
  526. package/dist/migrate/check.js +0 -58
  527. package/dist/migrate/check.js.map +0 -1
  528. package/dist/migrate/generate.d.ts +0 -9
  529. package/dist/migrate/generate.d.ts.map +0 -1
  530. package/dist/migrate/generate.js +0 -152
  531. package/dist/migrate/generate.js.map +0 -1
  532. package/dist/migrate/index.d.ts +0 -7
  533. package/dist/migrate/index.d.ts.map +0 -1
  534. package/dist/migrate/index.js +0 -7
  535. package/dist/migrate/index.js.map +0 -1
  536. package/dist/migrate/post-process.d.ts +0 -9
  537. package/dist/migrate/post-process.d.ts.map +0 -1
  538. package/dist/migrate/post-process.js +0 -60
  539. package/dist/migrate/post-process.js.map +0 -1
  540. package/dist/migrate/rls-generate.d.ts +0 -3
  541. package/dist/migrate/rls-generate.d.ts.map +0 -1
  542. package/dist/migrate/rls-generate.js +0 -28
  543. package/dist/migrate/rls-generate.js.map +0 -1
  544. package/dist/migrate/run.d.ts +0 -21
  545. package/dist/migrate/run.d.ts.map +0 -1
  546. package/dist/migrate/run.js +0 -66
  547. package/dist/migrate/run.js.map +0 -1
  548. package/dist/migrate/safety.d.ts +0 -10
  549. package/dist/migrate/safety.d.ts.map +0 -1
  550. package/dist/migrate/safety.js +0 -115
  551. package/dist/migrate/safety.js.map +0 -1
  552. package/dist/openapi/generate.d.ts +0 -13
  553. package/dist/openapi/generate.d.ts.map +0 -1
  554. package/dist/openapi/generate.js +0 -84
  555. package/dist/openapi/generate.js.map +0 -1
  556. package/dist/openapi/index.d.ts +0 -3
  557. package/dist/openapi/index.d.ts.map +0 -1
  558. package/dist/openapi/index.js +0 -2
  559. package/dist/openapi/index.js.map +0 -1
  560. package/dist/openapi/namespace.d.ts +0 -7
  561. package/dist/openapi/namespace.d.ts.map +0 -1
  562. package/dist/openapi/namespace.js +0 -7
  563. package/dist/openapi/namespace.js.map +0 -1
  564. package/dist/pipeline/define.d.ts +0 -3
  565. package/dist/pipeline/define.d.ts.map +0 -1
  566. package/dist/pipeline/define.js +0 -44
  567. package/dist/pipeline/define.js.map +0 -1
  568. package/dist/pipeline/errors.d.ts +0 -17
  569. package/dist/pipeline/errors.d.ts.map +0 -1
  570. package/dist/pipeline/errors.js +0 -28
  571. package/dist/pipeline/errors.js.map +0 -1
  572. package/dist/pipeline/execute.d.ts +0 -4
  573. package/dist/pipeline/execute.d.ts.map +0 -1
  574. package/dist/pipeline/execute.js +0 -90
  575. package/dist/pipeline/execute.js.map +0 -1
  576. package/dist/pipeline/index.d.ts +0 -4
  577. package/dist/pipeline/index.d.ts.map +0 -1
  578. package/dist/pipeline/index.js +0 -3
  579. package/dist/pipeline/index.js.map +0 -1
  580. package/dist/pipeline/namespace.d.ts +0 -12
  581. package/dist/pipeline/namespace.d.ts.map +0 -1
  582. package/dist/pipeline/namespace.js +0 -12
  583. package/dist/pipeline/namespace.js.map +0 -1
  584. package/dist/pipeline/resume.d.ts +0 -4
  585. package/dist/pipeline/resume.d.ts.map +0 -1
  586. package/dist/pipeline/resume.js +0 -100
  587. package/dist/pipeline/resume.js.map +0 -1
  588. package/dist/pipeline/types.d.ts +0 -50
  589. package/dist/pipeline/types.d.ts.map +0 -1
  590. package/dist/pipeline/types.js +0 -2
  591. package/dist/pipeline/types.js.map +0 -1
  592. package/dist/pipework.d.ts +0 -88
  593. package/dist/pipework.d.ts.map +0 -1
  594. package/dist/pipework.js +0 -222
  595. package/dist/pipework.js.map +0 -1
  596. package/dist/rbac/cache.d.ts +0 -13
  597. package/dist/rbac/cache.d.ts.map +0 -1
  598. package/dist/rbac/cache.js +0 -43
  599. package/dist/rbac/cache.js.map +0 -1
  600. package/dist/rbac/check.d.ts +0 -4
  601. package/dist/rbac/check.d.ts.map +0 -1
  602. package/dist/rbac/check.js +0 -20
  603. package/dist/rbac/check.js.map +0 -1
  604. package/dist/rbac/index.d.ts +0 -8
  605. package/dist/rbac/index.d.ts.map +0 -1
  606. package/dist/rbac/index.js +0 -32
  607. package/dist/rbac/index.js.map +0 -1
  608. package/dist/rbac/middleware.d.ts +0 -4
  609. package/dist/rbac/middleware.d.ts.map +0 -1
  610. package/dist/rbac/middleware.js +0 -9
  611. package/dist/rbac/middleware.js.map +0 -1
  612. package/dist/rbac/namespace.d.ts +0 -15
  613. package/dist/rbac/namespace.d.ts.map +0 -1
  614. package/dist/rbac/namespace.js +0 -15
  615. package/dist/rbac/namespace.js.map +0 -1
  616. package/dist/rbac/resolve.d.ts +0 -4
  617. package/dist/rbac/resolve.d.ts.map +0 -1
  618. package/dist/rbac/resolve.js +0 -24
  619. package/dist/rbac/resolve.js.map +0 -1
  620. package/dist/rbac/seed.d.ts +0 -4
  621. package/dist/rbac/seed.d.ts.map +0 -1
  622. package/dist/rbac/seed.js +0 -63
  623. package/dist/rbac/seed.js.map +0 -1
  624. package/dist/rbac/types.d.ts +0 -56
  625. package/dist/rbac/types.d.ts.map +0 -1
  626. package/dist/rbac/types.js +0 -2
  627. package/dist/rbac/types.js.map +0 -1
  628. package/dist/resource/batch.d.ts +0 -17
  629. package/dist/resource/batch.d.ts.map +0 -1
  630. package/dist/resource/batch.js +0 -47
  631. package/dist/resource/batch.js.map +0 -1
  632. package/dist/resource/builder.d.ts +0 -11
  633. package/dist/resource/builder.d.ts.map +0 -1
  634. package/dist/resource/builder.js +0 -12
  635. package/dist/resource/builder.js.map +0 -1
  636. package/dist/resource/errors.d.ts +0 -7
  637. package/dist/resource/errors.d.ts.map +0 -1
  638. package/dist/resource/errors.js +0 -9
  639. package/dist/resource/errors.js.map +0 -1
  640. package/dist/resource/index.d.ts +0 -9
  641. package/dist/resource/index.d.ts.map +0 -1
  642. package/dist/resource/index.js +0 -6
  643. package/dist/resource/index.js.map +0 -1
  644. package/dist/resource/paginate.d.ts +0 -13
  645. package/dist/resource/paginate.d.ts.map +0 -1
  646. package/dist/resource/paginate.js +0 -29
  647. package/dist/resource/paginate.js.map +0 -1
  648. package/dist/resource/register.d.ts +0 -16
  649. package/dist/resource/register.d.ts.map +0 -1
  650. package/dist/resource/register.js +0 -181
  651. package/dist/resource/register.js.map +0 -1
  652. package/dist/resource/types.d.ts +0 -69
  653. package/dist/resource/types.d.ts.map +0 -1
  654. package/dist/resource/types.js +0 -2
  655. package/dist/resource/types.js.map +0 -1
  656. package/dist/schema/branded.d.ts +0 -3
  657. package/dist/schema/branded.d.ts.map +0 -1
  658. package/dist/schema/branded.js +0 -8
  659. package/dist/schema/branded.js.map +0 -1
  660. package/dist/schema/generated/coerce.d.ts +0 -2
  661. package/dist/schema/generated/coerce.d.ts.map +0 -1
  662. package/dist/schema/generated/coerce.js +0 -5
  663. package/dist/schema/generated/coerce.js.map +0 -1
  664. package/dist/schema/generated/combinator.d.ts +0 -3
  665. package/dist/schema/generated/combinator.d.ts.map +0 -1
  666. package/dist/schema/generated/combinator.js +0 -5
  667. package/dist/schema/generated/combinator.js.map +0 -1
  668. package/dist/schema/generated/encoding.d.ts +0 -2
  669. package/dist/schema/generated/encoding.d.ts.map +0 -1
  670. package/dist/schema/generated/encoding.js +0 -5
  671. package/dist/schema/generated/encoding.js.map +0 -1
  672. package/dist/schema/generated/error.d.ts +0 -3
  673. package/dist/schema/generated/error.d.ts.map +0 -1
  674. package/dist/schema/generated/error.js +0 -5
  675. package/dist/schema/generated/error.js.map +0 -1
  676. package/dist/schema/generated/format.d.ts +0 -2
  677. package/dist/schema/generated/format.d.ts.map +0 -1
  678. package/dist/schema/generated/format.js +0 -5
  679. package/dist/schema/generated/format.js.map +0 -1
  680. package/dist/schema/generated/type-constructor.d.ts +0 -3
  681. package/dist/schema/generated/type-constructor.d.ts.map +0 -1
  682. package/dist/schema/generated/type-constructor.js +0 -8
  683. package/dist/schema/generated/type-constructor.js.map +0 -1
  684. package/dist/schema/generated/type.d.ts +0 -3
  685. package/dist/schema/generated/type.d.ts.map +0 -1
  686. package/dist/schema/generated/type.js +0 -5
  687. package/dist/schema/generated/type.js.map +0 -1
  688. package/dist/schema/index.d.ts +0 -6
  689. package/dist/schema/index.d.ts.map +0 -1
  690. package/dist/schema/index.js +0 -5
  691. package/dist/schema/index.js.map +0 -1
  692. package/dist/schema/json-schema.d.ts +0 -5
  693. package/dist/schema/json-schema.d.ts.map +0 -1
  694. package/dist/schema/json-schema.js +0 -5
  695. package/dist/schema/json-schema.js.map +0 -1
  696. package/dist/schema/namespace.d.ts +0 -139
  697. package/dist/schema/namespace.d.ts.map +0 -1
  698. package/dist/schema/namespace.js +0 -46
  699. package/dist/schema/namespace.js.map +0 -1
  700. package/dist/schema/parse.d.ts +0 -11
  701. package/dist/schema/parse.d.ts.map +0 -1
  702. package/dist/schema/parse.js +0 -30
  703. package/dist/schema/parse.js.map +0 -1
  704. package/dist/schema/types.d.ts +0 -6
  705. package/dist/schema/types.d.ts.map +0 -1
  706. package/dist/schema/types.js +0 -2
  707. package/dist/schema/types.js.map +0 -1
  708. package/dist/state-machine/define.d.ts +0 -3
  709. package/dist/state-machine/define.d.ts.map +0 -1
  710. package/dist/state-machine/define.js +0 -46
  711. package/dist/state-machine/define.js.map +0 -1
  712. package/dist/state-machine/errors.d.ts +0 -12
  713. package/dist/state-machine/errors.d.ts.map +0 -1
  714. package/dist/state-machine/errors.js +0 -19
  715. package/dist/state-machine/errors.js.map +0 -1
  716. package/dist/state-machine/index.d.ts +0 -4
  717. package/dist/state-machine/index.d.ts.map +0 -1
  718. package/dist/state-machine/index.js +0 -3
  719. package/dist/state-machine/index.js.map +0 -1
  720. package/dist/state-machine/namespace.d.ts +0 -12
  721. package/dist/state-machine/namespace.d.ts.map +0 -1
  722. package/dist/state-machine/namespace.js +0 -12
  723. package/dist/state-machine/namespace.js.map +0 -1
  724. package/dist/state-machine/transition.d.ts +0 -7
  725. package/dist/state-machine/transition.d.ts.map +0 -1
  726. package/dist/state-machine/transition.js +0 -57
  727. package/dist/state-machine/transition.js.map +0 -1
  728. package/dist/state-machine/types.d.ts +0 -33
  729. package/dist/state-machine/types.d.ts.map +0 -1
  730. package/dist/state-machine/types.js +0 -2
  731. package/dist/state-machine/types.js.map +0 -1
  732. package/dist/surface/http.d.ts +0 -3
  733. package/dist/surface/http.d.ts.map +0 -1
  734. package/dist/surface/http.js +0 -84
  735. package/dist/surface/http.js.map +0 -1
  736. package/dist/surface/index.d.ts +0 -7
  737. package/dist/surface/index.d.ts.map +0 -1
  738. package/dist/surface/index.js +0 -6
  739. package/dist/surface/index.js.map +0 -1
  740. package/dist/surface/namespace.d.ts +0 -13
  741. package/dist/surface/namespace.d.ts.map +0 -1
  742. package/dist/surface/namespace.js +0 -13
  743. package/dist/surface/namespace.js.map +0 -1
  744. package/dist/surface/script.d.ts +0 -3
  745. package/dist/surface/script.d.ts.map +0 -1
  746. package/dist/surface/script.js +0 -24
  747. package/dist/surface/script.js.map +0 -1
  748. package/dist/surface/start.d.ts +0 -8
  749. package/dist/surface/start.d.ts.map +0 -1
  750. package/dist/surface/start.js +0 -64
  751. package/dist/surface/start.js.map +0 -1
  752. package/dist/surface/types.d.ts +0 -111
  753. package/dist/surface/types.d.ts.map +0 -1
  754. package/dist/surface/types.js +0 -2
  755. package/dist/surface/types.js.map +0 -1
  756. package/dist/surface/validate.d.ts +0 -7
  757. package/dist/surface/validate.d.ts.map +0 -1
  758. package/dist/surface/validate.js +0 -121
  759. package/dist/surface/validate.js.map +0 -1
  760. package/dist/surface/worker.d.ts +0 -3
  761. package/dist/surface/worker.d.ts.map +0 -1
  762. package/dist/surface/worker.js +0 -151
  763. package/dist/surface/worker.js.map +0 -1
  764. package/dist/temporal/close.d.ts +0 -3
  765. package/dist/temporal/close.d.ts.map +0 -1
  766. package/dist/temporal/close.js +0 -19
  767. package/dist/temporal/close.js.map +0 -1
  768. package/dist/temporal/columns.d.ts +0 -7
  769. package/dist/temporal/columns.d.ts.map +0 -1
  770. package/dist/temporal/columns.js +0 -10
  771. package/dist/temporal/columns.js.map +0 -1
  772. package/dist/temporal/definition-queries.d.ts +0 -14
  773. package/dist/temporal/definition-queries.d.ts.map +0 -1
  774. package/dist/temporal/definition-queries.js +0 -45
  775. package/dist/temporal/definition-queries.js.map +0 -1
  776. package/dist/temporal/errors.d.ts +0 -7
  777. package/dist/temporal/errors.d.ts.map +0 -1
  778. package/dist/temporal/errors.js +0 -9
  779. package/dist/temporal/errors.js.map +0 -1
  780. package/dist/temporal/get-current.d.ts +0 -3
  781. package/dist/temporal/get-current.d.ts.map +0 -1
  782. package/dist/temporal/get-current.js +0 -18
  783. package/dist/temporal/get-current.js.map +0 -1
  784. package/dist/temporal/index.d.ts +0 -9
  785. package/dist/temporal/index.d.ts.map +0 -1
  786. package/dist/temporal/index.js +0 -8
  787. package/dist/temporal/index.js.map +0 -1
  788. package/dist/temporal/namespace.d.ts +0 -31
  789. package/dist/temporal/namespace.d.ts.map +0 -1
  790. package/dist/temporal/namespace.js +0 -31
  791. package/dist/temporal/namespace.js.map +0 -1
  792. package/dist/temporal/query.d.ts +0 -10
  793. package/dist/temporal/query.d.ts.map +0 -1
  794. package/dist/temporal/query.js +0 -11
  795. package/dist/temporal/query.js.map +0 -1
  796. package/dist/temporal/revise.d.ts +0 -3
  797. package/dist/temporal/revise.d.ts.map +0 -1
  798. package/dist/temporal/revise.js +0 -52
  799. package/dist/temporal/revise.js.map +0 -1
  800. package/dist/temporal/types.d.ts +0 -19
  801. package/dist/temporal/types.d.ts.map +0 -1
  802. package/dist/temporal/types.js +0 -2
  803. package/dist/temporal/types.js.map +0 -1
  804. package/dist/tenant/extract.d.ts +0 -6
  805. package/dist/tenant/extract.d.ts.map +0 -1
  806. package/dist/tenant/extract.js +0 -18
  807. package/dist/tenant/extract.js.map +0 -1
  808. package/dist/tenant/index.d.ts +0 -8
  809. package/dist/tenant/index.d.ts.map +0 -1
  810. package/dist/tenant/index.js +0 -7
  811. package/dist/tenant/index.js.map +0 -1
  812. package/dist/tenant/namespace.d.ts +0 -23
  813. package/dist/tenant/namespace.d.ts.map +0 -1
  814. package/dist/tenant/namespace.js +0 -23
  815. package/dist/tenant/namespace.js.map +0 -1
  816. package/dist/tenant/propagate.d.ts +0 -4
  817. package/dist/tenant/propagate.d.ts.map +0 -1
  818. package/dist/tenant/propagate.js +0 -15
  819. package/dist/tenant/propagate.js.map +0 -1
  820. package/dist/tenant/rls.d.ts +0 -5
  821. package/dist/tenant/rls.d.ts.map +0 -1
  822. package/dist/tenant/rls.js +0 -35
  823. package/dist/tenant/rls.js.map +0 -1
  824. package/dist/tenant/scope.d.ts +0 -8
  825. package/dist/tenant/scope.d.ts.map +0 -1
  826. package/dist/tenant/scope.js +0 -21
  827. package/dist/tenant/scope.js.map +0 -1
  828. package/dist/tenant/scoped-db.d.ts +0 -4
  829. package/dist/tenant/scoped-db.d.ts.map +0 -1
  830. package/dist/tenant/scoped-db.js +0 -234
  831. package/dist/tenant/scoped-db.js.map +0 -1
  832. package/dist/tenant/types.d.ts +0 -14
  833. package/dist/tenant/types.d.ts.map +0 -1
  834. package/dist/tenant/types.js +0 -2
  835. package/dist/tenant/types.js.map +0 -1
  836. package/dist/tenant/validate.d.ts +0 -4
  837. package/dist/tenant/validate.d.ts.map +0 -1
  838. package/dist/tenant/validate.js +0 -20
  839. package/dist/tenant/validate.js.map +0 -1
  840. package/dist/test/vitest-config.d.ts +0 -21
  841. package/dist/test/vitest-config.d.ts.map +0 -1
  842. package/dist/test/vitest-config.js +0 -47
  843. package/dist/test/vitest-config.js.map +0 -1
  844. package/dist/trunk.d.ts +0 -35
  845. package/dist/trunk.d.ts.map +0 -1
  846. package/dist/trunk.js +0 -102
  847. package/dist/trunk.js.map +0 -1
  848. package/dist/validation/connectivity.d.ts +0 -4
  849. package/dist/validation/connectivity.d.ts.map +0 -1
  850. package/dist/validation/connectivity.js +0 -32
  851. package/dist/validation/connectivity.js.map +0 -1
  852. package/dist/validation/domain.d.ts +0 -4
  853. package/dist/validation/domain.d.ts.map +0 -1
  854. package/dist/validation/domain.js +0 -72
  855. package/dist/validation/domain.js.map +0 -1
  856. package/dist/validation/index.d.ts +0 -6
  857. package/dist/validation/index.d.ts.map +0 -1
  858. package/dist/validation/index.js +0 -6
  859. package/dist/validation/index.js.map +0 -1
  860. package/dist/validation/startup.d.ts +0 -12
  861. package/dist/validation/startup.d.ts.map +0 -1
  862. package/dist/validation/startup.js +0 -19
  863. package/dist/validation/startup.js.map +0 -1
  864. package/dist/validation/surface.d.ts +0 -4
  865. package/dist/validation/surface.d.ts.map +0 -1
  866. package/dist/validation/surface.js +0 -55
  867. package/dist/validation/surface.js.map +0 -1
  868. package/dist/validation/types.d.ts +0 -13
  869. package/dist/validation/types.d.ts.map +0 -1
  870. package/dist/validation/types.js +0 -13
  871. package/dist/validation/types.js.map +0 -1
  872. package/dist/vector/index.d.ts +0 -4
  873. package/dist/vector/index.d.ts.map +0 -1
  874. package/dist/vector/index.js +0 -4
  875. package/dist/vector/index.js.map +0 -1
  876. package/dist/vector/namespace.d.ts +0 -27
  877. package/dist/vector/namespace.d.ts.map +0 -1
  878. package/dist/vector/namespace.js +0 -27
  879. package/dist/vector/namespace.js.map +0 -1
  880. package/dist/vector/query.d.ts +0 -9
  881. package/dist/vector/query.d.ts.map +0 -1
  882. package/dist/vector/query.js +0 -33
  883. package/dist/vector/query.js.map +0 -1
  884. package/dist/vector/types.d.ts +0 -19
  885. package/dist/vector/types.d.ts.map +0 -1
  886. package/dist/vector/types.js +0 -26
  887. package/dist/vector/types.js.map +0 -1
  888. package/dist/vector/validate.d.ts +0 -3
  889. package/dist/vector/validate.d.ts.map +0 -1
  890. package/dist/vector/validate.js +0 -10
  891. package/dist/vector/validate.js.map +0 -1
  892. package/dist/webhook/inbound.d.ts +0 -16
  893. package/dist/webhook/inbound.d.ts.map +0 -1
  894. package/dist/webhook/inbound.js +0 -21
  895. package/dist/webhook/inbound.js.map +0 -1
  896. package/dist/webhook/index.d.ts +0 -5
  897. package/dist/webhook/index.d.ts.map +0 -1
  898. package/dist/webhook/index.js +0 -5
  899. package/dist/webhook/index.js.map +0 -1
  900. package/dist/webhook/namespace.d.ts +0 -22
  901. package/dist/webhook/namespace.d.ts.map +0 -1
  902. package/dist/webhook/namespace.js +0 -22
  903. package/dist/webhook/namespace.js.map +0 -1
  904. package/dist/webhook/outbound.d.ts +0 -48
  905. package/dist/webhook/outbound.d.ts.map +0 -1
  906. package/dist/webhook/outbound.js +0 -160
  907. package/dist/webhook/outbound.js.map +0 -1
  908. package/dist/webhook/sign.d.ts +0 -12
  909. package/dist/webhook/sign.d.ts.map +0 -1
  910. package/dist/webhook/sign.js +0 -12
  911. package/dist/webhook/sign.js.map +0 -1
  912. package/dist/webhook/verify.d.ts +0 -14
  913. package/dist/webhook/verify.d.ts.map +0 -1
  914. package/dist/webhook/verify.js +0 -61
  915. package/dist/webhook/verify.js.map +0 -1
package/dist/REFERENCE.md DELETED
@@ -1,873 +0,0 @@
1
- # Pipework API Reference
2
-
3
- > Auto-generated from source JSDoc. Do not edit manually.
4
- > Generated: 2026-05-13
5
-
6
- ## Contents
7
-
8
- - [Core](#core)
9
- - [jobs — Background Jobs](#jobs-background-jobs)
10
- - [pipeline — Multi-Step Pipelines](#pipeline-multi-step-pipelines)
11
- - [state — State Machines](#state-state-machines)
12
- - [auth — Authentication](#auth-authentication)
13
- - [rbac — Access Control](#rbac-access-control)
14
- - [tenant — Multi-Tenancy](#tenant-multi-tenancy)
15
- - [config — Configuration](#config-configuration)
16
- - [errors — Error Classes](#errors-error-classes)
17
- - [lifecycle — Startup & Shutdown](#lifecycle-startup-shutdown)
18
- - [log — Structured Logging](#log-structured-logging)
19
- - [surface — Entry Points](#surface-entry-points)
20
- - [pipe — Database](#pipe-database)
21
- - [jsonb — JSONB Column Helpers](#jsonb-jsonb-column-helpers)
22
- - [schema — Validation & Schema](#schema-validation-schema)
23
- - [temporal — Bitemporal Data](#temporal-bitemporal-data)
24
- - [vector — Vector & Full-Text Search](#vector-vector-full-text-search)
25
- - [audit — Audit Logging](#audit-audit-logging)
26
- - [cache — Caching](#cache-caching)
27
- - [webhook — Inbound & Outbound Webhooks](#webhook-inbound-outbound-webhooks)
28
- - [behavior — Resource Decorators](#behavior-resource-decorators)
29
- - [fitting — Dependency Injection](#fitting-dependency-injection)
30
- - [fixture — REST Resources](#fixture-rest-resources)
31
- - [flow — Context (AsyncLocalStorage)](#flow-context-asynclocalstorage)
32
- - [http — Server](#http-server)
33
- - [openapi — API Documentation](#openapi-api-documentation)
34
-
35
- ## Core
36
-
37
- Application instance and foundational types.
38
-
39
- ### `createManifold`
40
-
41
- Creates the Pipework application instance. This is the entry point for every Pipework app. Define in `pipework.config.ts` and export as default. /
42
-
43
- ```typescript
44
- function createManifold<const TEnv extends EnvDefs = EnvDefs>( raw: Omit<Blueprint, 'env'> &
45
- ```
46
-
47
- ### Types
48
-
49
- **`Manifold`** — The application instance — holds config, connection pools, surfaces, and lifecycle.
50
-
51
- ```typescript
52
- interface Manifold<TEnv extends EnvDefs = EnvDefs>
53
- ```
54
-
55
- **`SeedOptions`**
56
-
57
- ```typescript
58
- interface SeedOptions
59
- ```
60
-
61
- **`PoolState`** — Manages database connection pools keyed by database name.
62
-
63
- ```typescript
64
- interface PoolState
65
- ```
66
-
67
- **`IsolationState`** — Tracks test isolation lifecycle — detects leaked isolation contexts.
68
-
69
- ```typescript
70
- interface IsolationState
71
- ```
72
-
73
- **`ConnectionTracker`** — Tracks active database connections for leak detection.
74
-
75
- ```typescript
76
- interface ConnectionTracker
77
- ```
78
-
79
- ## jobs — Background Jobs
80
-
81
- Background job queue namespace — Postgres-backed with SKIP LOCKED, LISTEN/NOTIFY, cron scheduling.
82
-
83
- ### `jobs.createQueue`
84
-
85
- Creates a job queue with claim/complete/fail lifecycle, heartbeat, and dead letter requeue.
86
-
87
- ### `jobs.execute`
88
-
89
- Executes a fitting handler as a background job with its own Flow context.
90
-
91
- ### `jobs.parseCron`
92
-
93
- Parses a 5-field cron expression into a CronSchedule (minute, hour, dom, month, dow).
94
-
95
- ### `jobs.nextTick`
96
-
97
- Computes the next fire time for a CronSchedule after a given date, with optional timezone.
98
-
99
- ## pipeline — Multi-Step Pipelines
100
-
101
- Multi-step pipeline namespace — define, execute, pause, and resume ordered step sequences.
102
-
103
- ### `pipeline.define`
104
-
105
- Defines a pipeline from a config of named steps with handlers. Returns a Pipeline with execute/resume/getStatus.
106
-
107
- ### `pipeline.PipelineStepError`
108
-
109
- Thrown when an individual pipeline step fails.
110
-
111
- ### `pipeline.PipelineResumeError`
112
-
113
- Thrown when resuming a pipeline from an invalid state.
114
-
115
- ## state — State Machines
116
-
117
- State machine namespace — define valid transitions with guards and side effects.
118
-
119
- ### `state.define`
120
-
121
- Defines a state machine from states, transitions, guards, and effects. Returns a StateMachine with transition/canTransition.
122
-
123
- ### `state.InvalidTransitionError`
124
-
125
- Thrown when a transition is not allowed from the current state.
126
-
127
- ### `state.InvalidStateMachineError`
128
-
129
- Thrown when the state machine definition is internally inconsistent.
130
-
131
- ## auth — Authentication
132
-
133
- Authentication namespace — session management, multi-org support, auth chain resolution.
134
-
135
- ### `auth.createSessions`
136
-
137
- Creates a Sessions manager with JWT access/refresh tokens, rotation, and reuse detection.
138
-
139
- ### `auth.createMultiOrg`
140
-
141
- Creates multi-org session management — org selection, switching, membership CRUD.
142
-
143
- ### `auth.runChain`
144
-
145
- Executes an auth chain (strategy pipeline) to resolve auth + tenant from a request.
146
-
147
- ### `auth.resolveCookie`
148
-
149
- Resolves CookieConfig with defaults for secure cookie-based token delivery.
150
-
151
- ### `auth.parseCookie`
152
-
153
- Parses a Cookie header string into key-value pairs.
154
-
155
- ### `auth.buildSetCookie`
156
-
157
- Builds a Set-Cookie header string from name, value, and CookieConfig.
158
-
159
- ### `auth.buildClearCookie`
160
-
161
- Builds a Set-Cookie header that clears (expires) a cookie.
162
-
163
- ### Types
164
-
165
- **`AuthContext`** — Runtime auth context passed to strategies — carries the resolved DB and request metadata.
166
-
167
- ```typescript
168
- interface AuthContext
169
- ```
170
-
171
- **`AuthStrategy`** — Pluggable auth strategy — implement authenticate() to extract auth from a request.
172
-
173
- ```typescript
174
- interface AuthStrategy<TAuth>
175
- ```
176
-
177
- **`AuthRequest`** — Normalized request shape passed to auth strategies — headers, cookies, method, url.
178
-
179
- ```typescript
180
- interface AuthRequest
181
- ```
182
-
183
- **`BaseAuth`** — Minimum auth shape — userId and tenantId. Extend for app-specific auth fields.
184
-
185
- ```typescript
186
- interface BaseAuth
187
- ```
188
-
189
- **`AuthEnricher`** — Post-authentication hook — enrich the resolved auth with additional data (roles, permissions, etc.).
190
-
191
- ```typescript
192
- interface AuthEnricher<TAuth>
193
- ```
194
-
195
- **`TenantResolver`** — Resolves tenant ID from auth context — called after authentication in the chain.
196
-
197
- ```typescript
198
- interface TenantResolver<TAuth>
199
- ```
200
-
201
- **`AuthChainConfig`** — Configuration for the auth chain — strategies, enrichers, tenant resolver.
202
-
203
- ```typescript
204
- interface AuthChainConfig<TAuth>
205
- ```
206
-
207
- **`SessionConfig`** — Session configuration — signing keys, issuer, audience, token TTLs, refresh rotation.
208
-
209
- ```typescript
210
- interface SessionConfig
211
- ```
212
-
213
- **`TokenPair`** — Access + refresh token pair returned by issueTokens().
214
-
215
- ```typescript
216
- interface TokenPair
217
- ```
218
-
219
- **`TokenPayload`** — Decoded JWT payload — userId, tenantId, roles, version.
220
-
221
- ```typescript
222
- interface TokenPayload
223
- ```
224
-
225
- **`HttpTokenResult`** — Result from HTTP token operations — the token pair plus whether cookies were set.
226
-
227
- ```typescript
228
- interface HttpTokenResult
229
- ```
230
-
231
- **`Sessions`** — Session manager with JWT issue/refresh/revoke lifecycle and cookie-based HTTP helpers.
232
-
233
- ```typescript
234
- interface Sessions
235
- ```
236
-
237
- **`CookieConfig`** — Cookie configuration for token delivery — name, domain, path, secure, sameSite, httpOnly.
238
-
239
- ```typescript
240
- interface CookieConfig
241
- ```
242
-
243
- **`MultiOrgConfig`** — Configuration for multi-org sessions — base sessions, signing keys, org-select token TTL.
244
-
245
- ```typescript
246
- interface MultiOrgConfig
247
- ```
248
-
249
- **`OrgMembership`** — A user's membership in an organization — userId, orgId, role.
250
-
251
- ```typescript
252
- interface OrgMembership
253
- ```
254
-
255
- **`OrgInfo`** — Basic organization info — id and display name.
256
-
257
- ```typescript
258
- interface OrgInfo
259
- ```
260
-
261
- **`OrgMembershipDetail`** — Organization membership with display name — extends OrgMembership with org info.
262
-
263
- ```typescript
264
- interface OrgMembershipDetail
265
- ```
266
-
267
- **`AuthenticatedResult`** — Result when user has exactly one org — direct authentication, no org selection needed.
268
-
269
- ```typescript
270
- interface AuthenticatedResult
271
- ```
272
-
273
- **`OrgSelectResult`** — Result when user has multiple orgs — returns a session token for org selection.
274
-
275
- ```typescript
276
- interface OrgSelectResult
277
- ```
278
-
279
- **`ResolveLoginResult`** — Union result from resolveLogin() — either AuthenticatedResult or OrgSelectResult.
280
-
281
- ```typescript
282
- type ResolveLoginResult = AuthenticatedResult | OrgSelectResult
283
- ```
284
-
285
- **`MultiOrgSessions`** — Multi-org session manager — login resolution, org selection, switching, membership CRUD.
286
-
287
- ```typescript
288
- interface MultiOrgSessions
289
- ```
290
-
291
- ## rbac — Access Control
292
-
293
- Role-based access control namespace — permission checking, enforcement, scope hierarchy.
294
-
295
- ### `rbac.create`
296
-
297
- Creates an Rbac instance from config (roles, permissions, hierarchy).
298
-
299
- ### `rbac.check`
300
-
301
- Checks if a permission set includes the required resource/action/scope. Pure function, no DB.
302
-
303
- ### `rbac.enforce`
304
-
305
- Checks permission and throws ForbiddenError if denied. Loads permissions from DB with caching.
306
-
307
- ### `rbac.satisfies`
308
-
309
- Checks if a granted scope satisfies a required scope given a hierarchy (e.g. org > team > self).
310
-
311
- ### `rbac.PermissionCache`
312
-
313
- LRU cache for resolved permissions — avoids repeated DB lookups within a request.
314
-
315
- ## tenant — Multi-Tenancy
316
-
317
- Multi-tenant isolation namespace — RLS policies, tenant extraction, Postgres-side verification.
318
-
319
- ### `tenant.validate`
320
-
321
- Validates a tenant ID format (non-empty string, safe characters).
322
-
323
- ### `tenant.rls`
324
-
325
- Enables RLS on a table and creates the tenant isolation policy in Postgres.
326
-
327
- ### `tenant.policy`
328
-
329
- Returns the SQL string for a tenant isolation RLS policy — use in migrations.
330
-
331
- ### `tenant.verify`
332
-
333
- Cross-checks ALS tenant against Postgres set_config('pipework.tenant_id') — defense-in-depth.
334
-
335
- ### `tenant.propagate`
336
-
337
- Sets pipework.tenant_id on the Postgres connection via set_config().
338
-
339
- ### `tenant.extract`
340
-
341
- Extracts tenant ID from auth context using the configured extraction strategy.
342
-
343
- ### `tenant.isTenantScoped`
344
-
345
- Returns true if a table has been marked as tenant-scoped (via .tenant() field metadata).
346
-
347
- ## config — Configuration
348
-
349
- Configuration namespace — loads and resolves Blueprint configs, discovers pipework.config.ts.
350
-
351
- ### `config.load`
352
-
353
- Parses and resolves a raw Blueprint into a ResolvedConfig with environment detection.
354
-
355
- ### `config.discover`
356
-
357
- Walks up from cwd to find pipework.config.ts, imports it, and returns the Manifold.
358
-
359
- ### `config.configSchema`
360
-
361
- The zod schema for Blueprint validation — useful for custom config tooling.
362
-
363
- ### `config.ConfigError`
364
-
365
- Thrown for configuration problems — includes a suggestion for how to fix.
366
-
367
- ## errors — Error Classes
368
-
369
- Standard error classes — all extend PipeworkError with structured error codes and actionable messages.
370
-
371
- ### `errors.Base`
372
-
373
- Base error class with code, statusCode, and suggestion fields.
374
-
375
- ### `errors.NotFound`
376
-
377
- 404 — resource not found.
378
-
379
- ### `errors.Unauthorized`
380
-
381
- 401 — missing or invalid authentication.
382
-
383
- ### `errors.Forbidden`
384
-
385
- 403 — authenticated but insufficient permissions.
386
-
387
- ### `errors.Validation`
388
-
389
- 422 — input validation failed, carries field-level details.
390
-
391
- ### `errors.Conflict`
392
-
393
- 409 — resource state conflict (duplicate, version mismatch).
394
-
395
- ## lifecycle — Startup & Shutdown
396
-
397
- Application lifecycle namespace — startup orchestration with hooks and timeouts.
398
-
399
- ### `lifecycle.orchestrate`
400
-
401
- Runs pre-start hooks (DB readiness checks, migrations, etc.) with a configurable timeout.
402
-
403
- ## log — Structured Logging
404
-
405
- Structured logger (Pino) — auto-binds requestId, tenantId, userId, sessionId from ALS context on every log call.
406
-
407
- ### `log.create`
408
-
409
- Creates a new PipeworkLogger instance with custom config (level, redaction, transport).
410
-
411
- ### `log.get`
412
-
413
- Returns the context-aware logger proxy (same as the log export itself).
414
-
415
- ### `log.getBase`
416
-
417
- Returns the raw Pino logger without ALS context binding.
418
-
419
- ### `log.configure`
420
-
421
- Sets global logging config (level, redaction paths, custom context fields).
422
-
423
- ### `log.REDACT_PATHS`
424
-
425
- Default redaction paths — password, secret, token, authorization, cookie, etc.
426
-
427
- ## surface — Entry Points
428
-
429
- Surface namespace — declarative entry points that define how the app runs (HTTP server, background worker, one-shot script).
430
-
431
- ### `surface.http`
432
-
433
- Creates an HTTP surface — a Fastify server with routes, middleware, and production validation. Returns an HttpSurfaceBuilder with a .test() method for inject()-based integration tests.
434
-
435
- ### `surface.worker`
436
-
437
- Creates a worker surface — a long-running process that claims and executes jobs from queues.
438
-
439
- ### `surface.script`
440
-
441
- Creates a script surface — a one-shot process that runs and exits (migrations, seeds, CLI tools).
442
-
443
- ## pipe — Database
444
-
445
- Database accessor — returns a Drizzle DB instance scoped to the current request/job/test context. Requires active AsyncLocalStorage context.
446
-
447
- ### `pipe.filter`
448
-
449
- Query operators and aggregates — eq, gt, lt, and, or, count, sum, etc.
450
-
451
- ### `pipe.migrate`
452
-
453
- Runs migrations for all configured databases.
454
-
455
- ### `pipe.migrateOne`
456
-
457
- Runs migrations for a single named database.
458
-
459
- ### `pipe.excluded`
460
-
461
- Returns excluded-column references for onConflictDoUpdate set clauses.
462
-
463
- ### `pipe.advisoryLock`
464
-
465
- Acquires a transaction-scoped advisory lock. Released at commit/rollback.
466
-
467
- ### `pipe.serializable`
468
-
469
- Runs a function in a SERIALIZABLE transaction with automatic retry on serialization failures and deadlocks.
470
-
471
- ### `pipe.bulkSet`
472
-
473
- Bulk UPDATE ... FROM (VALUES ...) — updates multiple rows with per-row values in a single statement.
474
-
475
- ### `pipe.values`
476
-
477
- Produces a typed VALUES clause for bulk operations — the base primitive for bulkSet and bulkUpsert.
478
-
479
- ### `pipe.field`
480
-
481
- Field builders for domain definitions — uuid(), text(), integer(), etc.
482
-
483
- ### `pipe.define`
484
-
485
- Registers a domain definition with table, validators, and factory projections.
486
-
487
- ### `pipe.definitions`
488
-
489
- Returns the global registry of all domain definitions.
490
-
491
- ### Types
492
-
493
- **`WindowSpec`**
494
-
495
- ```typescript
496
- interface WindowSpec
497
- ```
498
-
499
- **`ValueColumnDef`**
500
-
501
- ```typescript
502
- interface ValueColumnDef
503
- ```
504
-
505
- **`SerializableOptions`**
506
-
507
- ```typescript
508
- interface SerializableOptions
509
- ```
510
-
511
- ## jsonb — JSONB Column Helpers
512
-
513
- JSONB query operators — typed helpers for PostgreSQL JSONB containment, key checks, and field extraction.
514
-
515
- ### `jsonb.contains`
516
-
517
- The @> containment operator — tests whether a JSONB column contains the given value.
518
-
519
- ### `jsonb.containedBy`
520
-
521
- The <@ contained-by operator — tests whether a JSONB column is contained by the given value.
522
-
523
- ### `jsonb.hasKey`
524
-
525
- The ? key-existence operator — tests whether a JSONB column has the given top-level key.
526
-
527
- ### `jsonb.text`
528
-
529
- Extracts a text value: `column->>'key'`. Composable with pipe.filter operators.
530
-
531
- ### `jsonb.json`
532
-
533
- Extracts a JSONB value: `column->'key'`. Returns JSONB — use with jsonb.contains() etc.
534
-
535
- ### `jsonb.path`
536
-
537
- Extracts a nested JSONB value: `column->'a'->'b'`. Returns JSONB.
538
-
539
- ### `jsonb.pathText`
540
-
541
- Extracts a nested text value: `column->'a'->>'b'`. Intermediate keys use `->`, final uses `->>`.
542
-
543
- ### `jsonb.boolean`
544
-
545
- Extracts a boolean: `(column->>'key')::boolean`. Supports nested paths.
546
-
547
- ### `jsonb.number`
548
-
549
- Extracts a number: `(column->>'key')::numeric`. Supports nested paths.
550
-
551
- ### `jsonb.integer`
552
-
553
- Extracts an integer: `(column->>'key')::integer`. Supports nested paths.
554
-
555
- ## schema — Validation & Schema
556
-
557
- Schema definition and validation namespace — wraps zod for validation, drizzle for table/column/index definitions.
558
-
559
- ### `schema.check`
560
-
561
- Validation sub-namespace — type constructors, combinators, formats, coerce, parse, tryParse, toJsonSchema, branded.
562
-
563
- ### `schema.col`
564
-
565
- Column type builders for table definitions — text, uuid, integer, timestamp, jsonb, boolean, varchar, etc.
566
-
567
- ### `schema.idx`
568
-
569
- Index and constraint builders — index, uniqueIndex, primaryKey, foreignKey, unique, check.
570
-
571
- ### Types
572
-
573
- **`Schema`** — Any validation schema — the base type accepted by .input(), .query(), .params() in the fitting builder.
574
-
575
- ```typescript
576
- type Schema<T = unknown> = z.ZodType<T>
577
- ```
578
-
579
- **`Infer`** — Extracts the TypeScript type from a Schema — Infer<typeof mySchema> gives you the validated type.
580
-
581
- ```typescript
582
- type Infer<T extends Schema> = z.infer<T>
583
- ```
584
-
585
- ## temporal — Bitemporal Data
586
-
587
- Temporal (bitemporal) data namespace — version history with effective date ranges.
588
-
589
- ### `temporal.columns`
590
-
591
- Returns the standard temporal column definitions (effectiveFrom, effectiveTo, version, createdBy) for table schemas.
592
-
593
- ### `temporal.revise`
594
-
595
- Creates a new version of a temporal record, closing the previous version's effectiveTo.
596
-
597
- ### `temporal.close`
598
-
599
- Closes a temporal record by setting effectiveTo to now. Returns number of rows affected.
600
-
601
- ### `temporal.current`
602
-
603
- Fetches the currently-effective version of a temporal record (effectiveTo IS NULL).
604
-
605
- ### `temporal.atTime`
606
-
607
- Returns a SQL condition for records effective at a specific point in time.
608
-
609
- ### `temporal.between`
610
-
611
- Returns a SQL condition for records overlapping a date range.
612
-
613
- ### `temporal.TemporalIntegrityError`
614
-
615
- Thrown when a temporal operation would violate version continuity.
616
-
617
- ### `temporal.asOf`
618
-
619
- Query records effective at a specific date, using a domain definition with .effectiveDated() trait.
620
-
621
- ### `temporal.allVersions`
622
-
623
- Query all versions of temporal records (no date filter).
624
-
625
- ### `temporal.effectiveUpdate`
626
-
627
- Close the current version and create a new one with updated data.
628
-
629
- ## vector — Vector & Full-Text Search
630
-
631
- Vector and full-text search namespace — pgvector column types, similarity queries, and FTS operators.
632
-
633
- ### `vector.column`
634
-
635
- Defines a vector(N) column for embeddings.
636
-
637
- ### `vector.tsvector`
638
-
639
- Defines a tsvector column for full-text search.
640
-
641
- ### `vector.cosine`
642
-
643
- Cosine distance between a column and a query vector (lower = more similar).
644
-
645
- ### `vector.cosineSimilarity`
646
-
647
- Cosine similarity (higher = more similar) — 1 - cosineDistance.
648
-
649
- ### `vector.l2`
650
-
651
- L2 (Euclidean) distance between a column and a query vector.
652
-
653
- ### `vector.innerProduct`
654
-
655
- Inner product between a column and a query vector.
656
-
657
- ### `vector.toTsvector`
658
-
659
- Converts text to a tsvector for full-text indexing.
660
-
661
- ### `vector.toTsquery`
662
-
663
- Converts a search query string to a tsquery using to_tsquery (supports operators like &, |, !).
664
-
665
- ### `vector.plainToTsquery`
666
-
667
- Converts natural language text to a tsquery using plainto_tsquery (no operator syntax required).
668
-
669
- ### `vector.matches`
670
-
671
- The @@ match operator — tests whether a tsvector column matches a tsquery.
672
-
673
- ### `vector.headline`
674
-
675
- Generates a ts_headline search snippet with highlighted matches.
676
-
677
- ### `vector.rank`
678
-
679
- Computes ts_rank for full-text search result ordering. Accepts a pre-built tsquery SQL or a raw query string.
680
-
681
- ### `vector.validate`
682
-
683
- Verifies the pgvector extension is installed and accessible.
684
-
685
- ## audit — Audit Logging
686
-
687
- Audit logging namespace — structured audit trail for data changes.
688
-
689
- ### `audit.create`
690
-
691
- Creates an Audit instance that writes audit records to a Postgres table.
692
-
693
- ## cache — Caching
694
-
695
- In-memory caching namespace — TTL-based with stats, preload, and tenant-aware variants.
696
-
697
- ### `cache.create`
698
-
699
- Creates a single-key cache with TTL, a loader function, and invalidation.
700
-
701
- ### `cache.createTenant`
702
-
703
- Creates a per-tenant cache — each tenant gets its own TTL and loader keyed by tenant ID.
704
-
705
- ## webhook — Inbound & Outbound Webhooks
706
-
707
- Webhook namespace — inbound verification, outbound delivery with retries, HMAC signing.
708
-
709
- ### `webhook.defineInbound`
710
-
711
- Defines an inbound webhook handler with signature verification and optional idempotency.
712
-
713
- ### `webhook.createOutbound`
714
-
715
- Creates an outbound webhook system — endpoint registration, payload signing, delivery with retries.
716
-
717
- ### `webhook.sign`
718
-
719
- Signs a payload with HMAC for outbound delivery — returns body, signature, timestamp, messageId.
720
-
721
- ## behavior — Resource Decorators
722
-
723
- Resource behavior decorators — compose versioning, audit trails, and cache invalidation onto CRUD operations.
724
-
725
- ### `behavior.compose`
726
-
727
- Applies multiple behaviors to a ResourceOperations set in order.
728
-
729
- ### `behavior.versioned`
730
-
731
- Adds optimistic concurrency control via a version column — rejects stale updates.
732
-
733
- ### `behavior.audited`
734
-
735
- Wraps operations to emit audit records on create/update/delete.
736
-
737
- ### `behavior.invalidate`
738
-
739
- Wraps operations to invalidate a cache on mutations. Returns ops with an attached .cache handle.
740
-
741
- ## fitting — Dependency Injection
742
-
743
- ## fixture — REST Resources
744
-
745
- REST resource builder namespace — declarative CRUD with cursor pagination and batch operations.
746
-
747
- ### `fixture.toHandlers`
748
-
749
- Converts a Resource into fitted Handler[] that go through the standard handler pipeline.
750
-
751
- ### `fixture.build`
752
-
753
- Builds a Resource from a name, operations map, and builder state — used internally by fitting().fixture().
754
-
755
- ### `fixture.encodeCursor`
756
-
757
- Encodes pagination cursor values into an opaque base64 string.
758
-
759
- ### `fixture.decodeCursor`
760
-
761
- Decodes an opaque pagination cursor back into its values.
762
-
763
- ### `fixture.buildPage`
764
-
765
- Builds a PageResult from rows, limit, and cursor extractor — handles hasMore detection.
766
-
767
- ### `fixture.validateBatch`
768
-
769
- Validates a batch request body (preview/execute mode, targets, actions).
770
-
771
- ### `fixture.MethodNotAllowedError`
772
-
773
- Thrown when a resource doesn't support the requested HTTP method.
774
-
775
- ## flow — Context (AsyncLocalStorage)
776
-
777
- AsyncLocalStorage context namespace — manages request/job/test contexts that carry auth, tenant, transactions.
778
-
779
- ### `flow.run`
780
-
781
- Executes a function within a Flow context (AsyncLocalStorage). All pipe() calls inside will use this context.
782
-
783
- ### `flow.require`
784
-
785
- Returns the current Flow or throws — use in code that must run inside a managed context.
786
-
787
- ### `flow.get`
788
-
789
- Returns the current Flow or undefined — use for optional context detection.
790
-
791
- ### `flow.createTest`
792
-
793
- Creates a Flow for test isolation with optional auth and tenant overrides.
794
-
795
- ## http — Server
796
-
797
- HTTP server namespace — managed by manifold.start(), not directly accessible.
798
-
799
- ### Types
800
-
801
- **`CorsConfig`** — CORS configuration — origin, methods, headers, credentials, maxAge.
802
-
803
- ```typescript
804
- interface CorsConfig
805
- ```
806
-
807
- **`SecurityConfig`** — Security header configuration — passed to @fastify/helmet.
808
-
809
- ```typescript
810
- interface SecurityConfig
811
- ```
812
-
813
- **`RateLimitConfig`** — Rate limiting configuration — max requests, time window, key generator.
814
-
815
- ```typescript
816
- interface RateLimitConfig
817
- ```
818
-
819
- **`InjectOptions`** — Options for server.inject() — method, url, headers, payload for testing without HTTP.
820
-
821
- ```typescript
822
- interface InjectOptions
823
- ```
824
-
825
- **`InjectResponse`** — Response from server.inject() — statusCode, headers, body, json() helper.
826
-
827
- ```typescript
828
- interface InjectResponse
829
- ```
830
-
831
- **`ServerConfig`** — Configuration for http.createServer() — CORS, security headers, rate limiting, transaction timeout.
832
-
833
- ```typescript
834
- interface ServerConfig
835
- ```
836
-
837
- **`HandlerResponse`** — Standard handler response shape — statusCode, headers, body.
838
-
839
- ```typescript
840
- interface HandlerResponse
841
- ```
842
-
843
- **`ErrorResponse`** — Standard error response shape — { error: { code, message }, statusCode }.
844
-
845
- ```typescript
846
- interface ErrorResponse
847
- ```
848
-
849
- **`PipeworkServer`** — Fastify server wrapper with route registration, handler auto-wiring, and inject() for testing.
850
-
851
- ```typescript
852
- interface PipeworkServer
853
- ```
854
-
855
- **`HttpRequest`** — Fastify request with pipework extensions — req.id (UUID), typed headers.
856
-
857
- ```typescript
858
- interface HttpRequest
859
- ```
860
-
861
- **`HttpResponse`** — Fastify reply with pipework extensions.
862
-
863
- ```typescript
864
- interface HttpResponse
865
- ```
866
-
867
- ## openapi — API Documentation
868
-
869
- OpenAPI spec generation namespace.
870
-
871
- ### `openapi.generate`
872
-
873
- Generates an OpenAPI 3.1 document from route registrations — schemas derived from fitting() input/output.