@qlever-llc/trellis 0.10.22 → 0.11.0-rc.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 (406) hide show
  1. package/esm/auth/mod.d.ts +1 -1
  2. package/esm/auth/mod.d.ts.map +1 -1
  3. package/esm/auth/mod.js +1 -1
  4. package/esm/auth/protocol.d.ts +55 -0
  5. package/esm/auth/protocol.d.ts.map +1 -1
  6. package/esm/browser.d.ts +3 -3
  7. package/esm/browser.d.ts.map +1 -1
  8. package/esm/browser.js +1 -1
  9. package/esm/client_connect.d.ts +12 -3
  10. package/esm/client_connect.d.ts.map +1 -1
  11. package/esm/client_connect.js +112 -7
  12. package/esm/codec.d.ts +7 -6
  13. package/esm/codec.d.ts.map +1 -1
  14. package/esm/codec.js +125 -6
  15. package/esm/contract_support/canonical.d.ts +3 -0
  16. package/esm/contract_support/canonical.d.ts.map +1 -1
  17. package/esm/contract_support/canonical.js +3 -0
  18. package/esm/contract_support/mod.d.ts +125 -10
  19. package/esm/contract_support/mod.d.ts.map +1 -1
  20. package/esm/contract_support/mod.js +159 -5
  21. package/esm/contract_support/protocol.d.ts +92 -7
  22. package/esm/contract_support/protocol.d.ts.map +1 -1
  23. package/esm/contract_support/protocol.js +41 -7
  24. package/esm/contract_support/runtime.d.ts +4 -1
  25. package/esm/contract_support/runtime.d.ts.map +1 -1
  26. package/esm/errors/SchemaValidationError.d.ts +49 -0
  27. package/esm/errors/SchemaValidationError.d.ts.map +1 -0
  28. package/esm/errors/SchemaValidationError.js +67 -0
  29. package/esm/errors/index.d.ts +38 -9
  30. package/esm/errors/index.d.ts.map +1 -1
  31. package/esm/errors/index.js +16 -0
  32. package/esm/generated-sdk/auth/api.d.ts +33 -605
  33. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  34. package/esm/generated-sdk/auth/api.js +6 -1
  35. package/esm/generated-sdk/auth/client.d.ts +129 -134
  36. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  37. package/esm/generated-sdk/auth/contract.d.ts +2 -601
  38. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  39. package/esm/generated-sdk/auth/contract.js +310 -93
  40. package/esm/generated-sdk/auth/mod.d.ts +1 -1
  41. package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
  42. package/esm/generated-sdk/auth/owned_api.d.ts +88 -86
  43. package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -1
  44. package/esm/generated-sdk/auth/owned_api.js +6 -0
  45. package/esm/generated-sdk/auth/schemas.d.ts +284 -136
  46. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  47. package/esm/generated-sdk/auth/schemas.js +231 -92
  48. package/esm/generated-sdk/auth/types.d.ts +565 -89
  49. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  50. package/esm/generated-sdk/auth/types.js +1 -1
  51. package/esm/generated-sdk/health/api.d.ts +29 -18
  52. package/esm/generated-sdk/health/api.d.ts.map +1 -1
  53. package/esm/generated-sdk/health/client.d.ts +7 -21
  54. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  55. package/esm/generated-sdk/health/contract.d.ts +2 -15
  56. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  57. package/esm/generated-sdk/health/contract.js +2 -10
  58. package/esm/generated-sdk/health/mod.d.ts +1 -1
  59. package/esm/generated-sdk/health/mod.d.ts.map +1 -1
  60. package/esm/generated-sdk/health/owned_api.d.ts +2 -2
  61. package/esm/generated-sdk/health/schemas.d.ts +1 -14
  62. package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
  63. package/esm/generated-sdk/health/schemas.js +1 -9
  64. package/esm/generated-sdk/health/types.d.ts +10 -5
  65. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  66. package/esm/generated-sdk/health/types.js +1 -2
  67. package/esm/generated-sdk/jobs/api.d.ts +29 -109
  68. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  69. package/esm/generated-sdk/jobs/client.d.ts +21 -33
  70. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  71. package/esm/generated-sdk/jobs/contract.d.ts +2 -106
  72. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  73. package/esm/generated-sdk/jobs/contract.js +268 -1
  74. package/esm/generated-sdk/jobs/mod.d.ts +1 -1
  75. package/esm/generated-sdk/jobs/mod.d.ts.map +1 -1
  76. package/esm/generated-sdk/jobs/owned_api.d.ts +22 -9
  77. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  78. package/esm/generated-sdk/jobs/owned_api.js +20 -1
  79. package/esm/generated-sdk/jobs/schemas.d.ts +437 -0
  80. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  81. package/esm/generated-sdk/jobs/schemas.js +211 -0
  82. package/esm/generated-sdk/jobs/types.d.ts +195 -12
  83. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  84. package/esm/generated-sdk/jobs/types.js +1 -1
  85. package/esm/generated-sdk/state/api.d.ts +29 -68
  86. package/esm/generated-sdk/state/api.d.ts.map +1 -1
  87. package/esm/generated-sdk/state/client.d.ts +17 -31
  88. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  89. package/esm/generated-sdk/state/contract.d.ts +1 -64
  90. package/esm/generated-sdk/state/contract.d.ts.map +1 -1
  91. package/esm/generated-sdk/state/mod.d.ts +1 -1
  92. package/esm/generated-sdk/state/mod.d.ts.map +1 -1
  93. package/esm/generated-sdk/state/owned_api.d.ts +7 -7
  94. package/esm/generated-sdk/state/types.d.ts +52 -9
  95. package/esm/generated-sdk/state/types.d.ts.map +1 -1
  96. package/esm/generated-sdk/trellis-core/api.d.ts +33 -45
  97. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  98. package/esm/generated-sdk/trellis-core/api.js +6 -1
  99. package/esm/generated-sdk/trellis-core/client.d.ts +31 -20
  100. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  101. package/esm/generated-sdk/trellis-core/contract.d.ts +2 -41
  102. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  103. package/esm/generated-sdk/trellis-core/contract.js +91 -1
  104. package/esm/generated-sdk/trellis-core/mod.d.ts +1 -1
  105. package/esm/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  106. package/esm/generated-sdk/trellis-core/owned_api.d.ts +4 -4
  107. package/esm/generated-sdk/trellis-core/schemas.d.ts +113 -0
  108. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  109. package/esm/generated-sdk/trellis-core/schemas.js +81 -0
  110. package/esm/generated-sdk/trellis-core/types.d.ts +54 -7
  111. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  112. package/esm/generated-sdk/trellis-core/types.js +1 -1
  113. package/esm/health.d.ts +1 -1
  114. package/esm/health.d.ts.map +1 -1
  115. package/esm/health.js +1 -1
  116. package/esm/index.d.ts +4 -4
  117. package/esm/index.d.ts.map +1 -1
  118. package/esm/index.js +2 -2
  119. package/esm/jobs.d.ts +69 -3
  120. package/esm/jobs.d.ts.map +1 -1
  121. package/esm/jobs.js +92 -3
  122. package/esm/server/health.d.ts +2 -6
  123. package/esm/server/health.d.ts.map +1 -1
  124. package/esm/server/health_schemas.d.ts +0 -8
  125. package/esm/server/health_schemas.d.ts.map +1 -1
  126. package/esm/server/health_schemas.js +0 -5
  127. package/esm/server/internal_jobs/bindings.d.ts +11 -0
  128. package/esm/server/internal_jobs/bindings.d.ts.map +1 -1
  129. package/esm/server/internal_jobs/job-manager.d.ts +58 -2
  130. package/esm/server/internal_jobs/job-manager.d.ts.map +1 -1
  131. package/esm/server/internal_jobs/job-manager.js +429 -55
  132. package/esm/server/internal_jobs/key-coordinator.d.ts +269 -0
  133. package/esm/server/internal_jobs/key-coordinator.d.ts.map +1 -0
  134. package/esm/server/internal_jobs/key-coordinator.js +677 -0
  135. package/esm/server/internal_jobs/projection.d.ts.map +1 -1
  136. package/esm/server/internal_jobs/projection.js +2 -0
  137. package/esm/server/internal_jobs/runtime-worker.d.ts +5 -1
  138. package/esm/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  139. package/esm/server/internal_jobs/runtime-worker.js +14 -2
  140. package/esm/server/internal_jobs/types.d.ts +5 -5
  141. package/esm/server/internal_jobs/types.d.ts.map +1 -1
  142. package/esm/server/internal_jobs/types.js +6 -0
  143. package/esm/server/runtime.d.ts.map +1 -1
  144. package/esm/server/service.d.ts +81 -112
  145. package/esm/server/service.d.ts.map +1 -1
  146. package/esm/server/service.js +372 -130
  147. package/esm/server.d.ts +3 -3
  148. package/esm/server.d.ts.map +1 -1
  149. package/esm/service/deno.d.ts +1 -1
  150. package/esm/service/deno.d.ts.map +1 -1
  151. package/esm/service/drizzle.d.ts +52 -0
  152. package/esm/service/drizzle.d.ts.map +1 -0
  153. package/esm/service/drizzle.js +108 -0
  154. package/esm/service/mod.d.ts +3 -3
  155. package/esm/service/mod.d.ts.map +1 -1
  156. package/esm/service/mod.js +2 -2
  157. package/esm/service/node.d.ts +1 -1
  158. package/esm/service/node.d.ts.map +1 -1
  159. package/esm/service/outbox_inbox.d.ts +76 -22
  160. package/esm/service/outbox_inbox.d.ts.map +1 -1
  161. package/esm/service/outbox_inbox.js +231 -70
  162. package/esm/telemetry/metrics.d.ts +55 -0
  163. package/esm/telemetry/metrics.d.ts.map +1 -1
  164. package/esm/telemetry/metrics.js +86 -0
  165. package/esm/telemetry/mod.d.ts +2 -1
  166. package/esm/telemetry/mod.d.ts.map +1 -1
  167. package/esm/telemetry/mod.js +1 -1
  168. package/esm/trellis.d.ts +62 -30
  169. package/esm/trellis.d.ts.map +1 -1
  170. package/esm/trellis.js +125 -42
  171. package/package.json +14 -2
  172. package/script/auth/mod.d.ts +1 -1
  173. package/script/auth/mod.d.ts.map +1 -1
  174. package/script/auth/mod.js +11 -4
  175. package/script/auth/protocol.d.ts +55 -0
  176. package/script/auth/protocol.d.ts.map +1 -1
  177. package/script/browser.d.ts +3 -3
  178. package/script/browser.d.ts.map +1 -1
  179. package/script/browser.js +3 -2
  180. package/script/client_connect.d.ts +12 -3
  181. package/script/client_connect.d.ts.map +1 -1
  182. package/script/client_connect.js +111 -6
  183. package/script/codec.d.ts +7 -6
  184. package/script/codec.d.ts.map +1 -1
  185. package/script/codec.js +124 -5
  186. package/script/contract_support/canonical.d.ts +3 -0
  187. package/script/contract_support/canonical.d.ts.map +1 -1
  188. package/script/contract_support/canonical.js +3 -0
  189. package/script/contract_support/mod.d.ts +125 -10
  190. package/script/contract_support/mod.d.ts.map +1 -1
  191. package/script/contract_support/mod.js +165 -5
  192. package/script/contract_support/protocol.d.ts +92 -7
  193. package/script/contract_support/protocol.d.ts.map +1 -1
  194. package/script/contract_support/protocol.js +42 -8
  195. package/script/contract_support/runtime.d.ts +4 -1
  196. package/script/contract_support/runtime.d.ts.map +1 -1
  197. package/script/errors/SchemaValidationError.d.ts +49 -0
  198. package/script/errors/SchemaValidationError.d.ts.map +1 -0
  199. package/script/errors/SchemaValidationError.js +74 -0
  200. package/script/errors/index.d.ts +38 -9
  201. package/script/errors/index.d.ts.map +1 -1
  202. package/script/errors/index.js +20 -1
  203. package/script/generated-sdk/auth/api.d.ts +33 -605
  204. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  205. package/script/generated-sdk/auth/api.js +6 -1
  206. package/script/generated-sdk/auth/client.d.ts +129 -134
  207. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  208. package/script/generated-sdk/auth/contract.d.ts +2 -601
  209. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  210. package/script/generated-sdk/auth/contract.js +310 -93
  211. package/script/generated-sdk/auth/mod.d.ts +1 -1
  212. package/script/generated-sdk/auth/mod.d.ts.map +1 -1
  213. package/script/generated-sdk/auth/owned_api.d.ts +88 -86
  214. package/script/generated-sdk/auth/owned_api.d.ts.map +1 -1
  215. package/script/generated-sdk/auth/owned_api.js +6 -0
  216. package/script/generated-sdk/auth/schemas.d.ts +284 -136
  217. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  218. package/script/generated-sdk/auth/schemas.js +231 -92
  219. package/script/generated-sdk/auth/types.d.ts +565 -89
  220. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  221. package/script/generated-sdk/auth/types.js +1 -1
  222. package/script/generated-sdk/health/api.d.ts +29 -18
  223. package/script/generated-sdk/health/api.d.ts.map +1 -1
  224. package/script/generated-sdk/health/client.d.ts +7 -21
  225. package/script/generated-sdk/health/client.d.ts.map +1 -1
  226. package/script/generated-sdk/health/contract.d.ts +2 -15
  227. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  228. package/script/generated-sdk/health/contract.js +2 -10
  229. package/script/generated-sdk/health/mod.d.ts +1 -1
  230. package/script/generated-sdk/health/mod.d.ts.map +1 -1
  231. package/script/generated-sdk/health/owned_api.d.ts +2 -2
  232. package/script/generated-sdk/health/schemas.d.ts +1 -14
  233. package/script/generated-sdk/health/schemas.d.ts.map +1 -1
  234. package/script/generated-sdk/health/schemas.js +1 -9
  235. package/script/generated-sdk/health/types.d.ts +10 -5
  236. package/script/generated-sdk/health/types.d.ts.map +1 -1
  237. package/script/generated-sdk/health/types.js +1 -2
  238. package/script/generated-sdk/jobs/api.d.ts +29 -109
  239. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  240. package/script/generated-sdk/jobs/client.d.ts +21 -33
  241. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  242. package/script/generated-sdk/jobs/contract.d.ts +2 -106
  243. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  244. package/script/generated-sdk/jobs/contract.js +268 -1
  245. package/script/generated-sdk/jobs/mod.d.ts +1 -1
  246. package/script/generated-sdk/jobs/mod.d.ts.map +1 -1
  247. package/script/generated-sdk/jobs/owned_api.d.ts +22 -9
  248. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  249. package/script/generated-sdk/jobs/owned_api.js +19 -0
  250. package/script/generated-sdk/jobs/schemas.d.ts +437 -0
  251. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  252. package/script/generated-sdk/jobs/schemas.js +212 -1
  253. package/script/generated-sdk/jobs/types.d.ts +195 -12
  254. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  255. package/script/generated-sdk/jobs/types.js +1 -1
  256. package/script/generated-sdk/state/api.d.ts +29 -68
  257. package/script/generated-sdk/state/api.d.ts.map +1 -1
  258. package/script/generated-sdk/state/client.d.ts +17 -31
  259. package/script/generated-sdk/state/client.d.ts.map +1 -1
  260. package/script/generated-sdk/state/contract.d.ts +1 -64
  261. package/script/generated-sdk/state/contract.d.ts.map +1 -1
  262. package/script/generated-sdk/state/mod.d.ts +1 -1
  263. package/script/generated-sdk/state/mod.d.ts.map +1 -1
  264. package/script/generated-sdk/state/owned_api.d.ts +7 -7
  265. package/script/generated-sdk/state/types.d.ts +52 -9
  266. package/script/generated-sdk/state/types.d.ts.map +1 -1
  267. package/script/generated-sdk/trellis-core/api.d.ts +33 -45
  268. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  269. package/script/generated-sdk/trellis-core/api.js +6 -1
  270. package/script/generated-sdk/trellis-core/client.d.ts +31 -20
  271. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  272. package/script/generated-sdk/trellis-core/contract.d.ts +2 -41
  273. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  274. package/script/generated-sdk/trellis-core/contract.js +91 -1
  275. package/script/generated-sdk/trellis-core/mod.d.ts +1 -1
  276. package/script/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  277. package/script/generated-sdk/trellis-core/owned_api.d.ts +4 -4
  278. package/script/generated-sdk/trellis-core/schemas.d.ts +113 -0
  279. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  280. package/script/generated-sdk/trellis-core/schemas.js +81 -0
  281. package/script/generated-sdk/trellis-core/types.d.ts +54 -7
  282. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  283. package/script/generated-sdk/trellis-core/types.js +1 -1
  284. package/script/health.d.ts +1 -1
  285. package/script/health.d.ts.map +1 -1
  286. package/script/health.js +1 -2
  287. package/script/index.d.ts +4 -4
  288. package/script/index.d.ts.map +1 -1
  289. package/script/index.js +2 -2
  290. package/script/jobs.d.ts +69 -3
  291. package/script/jobs.d.ts.map +1 -1
  292. package/script/jobs.js +93 -3
  293. package/script/server/health.d.ts +2 -6
  294. package/script/server/health.d.ts.map +1 -1
  295. package/script/server/health_schemas.d.ts +0 -8
  296. package/script/server/health_schemas.d.ts.map +1 -1
  297. package/script/server/health_schemas.js +1 -6
  298. package/script/server/internal_jobs/bindings.d.ts +11 -0
  299. package/script/server/internal_jobs/bindings.d.ts.map +1 -1
  300. package/script/server/internal_jobs/job-manager.d.ts +58 -2
  301. package/script/server/internal_jobs/job-manager.d.ts.map +1 -1
  302. package/script/server/internal_jobs/job-manager.js +429 -54
  303. package/script/server/internal_jobs/key-coordinator.d.ts +269 -0
  304. package/script/server/internal_jobs/key-coordinator.d.ts.map +1 -0
  305. package/script/server/internal_jobs/key-coordinator.js +690 -0
  306. package/script/server/internal_jobs/projection.d.ts.map +1 -1
  307. package/script/server/internal_jobs/projection.js +2 -0
  308. package/script/server/internal_jobs/runtime-worker.d.ts +5 -1
  309. package/script/server/internal_jobs/runtime-worker.d.ts.map +1 -1
  310. package/script/server/internal_jobs/runtime-worker.js +14 -2
  311. package/script/server/internal_jobs/types.d.ts +5 -5
  312. package/script/server/internal_jobs/types.d.ts.map +1 -1
  313. package/script/server/internal_jobs/types.js +6 -0
  314. package/script/server/runtime.d.ts.map +1 -1
  315. package/script/server/service.d.ts +81 -112
  316. package/script/server/service.d.ts.map +1 -1
  317. package/script/server/service.js +369 -127
  318. package/script/server.d.ts +3 -3
  319. package/script/server.d.ts.map +1 -1
  320. package/script/service/deno.d.ts +1 -1
  321. package/script/service/deno.d.ts.map +1 -1
  322. package/script/service/drizzle.d.ts +52 -0
  323. package/script/service/drizzle.d.ts.map +1 -0
  324. package/script/service/drizzle.js +113 -0
  325. package/script/service/mod.d.ts +3 -3
  326. package/script/service/mod.d.ts.map +1 -1
  327. package/script/service/mod.js +4 -3
  328. package/script/service/node.d.ts +1 -1
  329. package/script/service/node.d.ts.map +1 -1
  330. package/script/service/outbox_inbox.d.ts +76 -22
  331. package/script/service/outbox_inbox.d.ts.map +1 -1
  332. package/script/service/outbox_inbox.js +233 -70
  333. package/script/telemetry/metrics.d.ts +55 -0
  334. package/script/telemetry/metrics.d.ts.map +1 -1
  335. package/script/telemetry/metrics.js +88 -0
  336. package/script/telemetry/mod.d.ts +2 -1
  337. package/script/telemetry/mod.d.ts.map +1 -1
  338. package/script/telemetry/mod.js +3 -1
  339. package/script/trellis.d.ts +62 -30
  340. package/script/trellis.d.ts.map +1 -1
  341. package/script/trellis.js +124 -41
  342. package/src/auth/mod.ts +7 -0
  343. package/src/browser.ts +5 -7
  344. package/src/client_connect.ts +200 -12
  345. package/src/codec.ts +186 -11
  346. package/src/contract_support/canonical.ts +3 -0
  347. package/src/contract_support/mod.ts +380 -9
  348. package/src/contract_support/protocol.ts +57 -10
  349. package/src/contract_support/runtime.ts +7 -0
  350. package/src/errors/SchemaValidationError.ts +67 -0
  351. package/src/errors/index.ts +28 -0
  352. package/src/health.ts +0 -1
  353. package/src/index.ts +7 -8
  354. package/src/jobs.ts +138 -1
  355. package/src/sdk/_generated/auth/api.ts +38 -7
  356. package/src/sdk/_generated/auth/client.ts +168 -530
  357. package/src/sdk/_generated/auth/contract.ts +310 -93
  358. package/src/sdk/_generated/auth/mod.ts +0 -1
  359. package/src/sdk/_generated/auth/owned_api.ts +92 -86
  360. package/src/sdk/_generated/auth/schemas.ts +231 -92
  361. package/src/sdk/_generated/auth/types.ts +1069 -273
  362. package/src/sdk/_generated/core/api.ts +38 -7
  363. package/src/sdk/_generated/core/client.ts +47 -73
  364. package/src/sdk/_generated/core/contract.ts +91 -1
  365. package/src/sdk/_generated/core/mod.ts +0 -1
  366. package/src/sdk/_generated/core/owned_api.ts +4 -4
  367. package/src/sdk/_generated/core/schemas.ts +81 -0
  368. package/src/sdk/_generated/core/types.ts +79 -15
  369. package/src/sdk/_generated/health/api.ts +29 -5
  370. package/src/sdk/_generated/health/client.ts +11 -58
  371. package/src/sdk/_generated/health/contract.ts +2 -10
  372. package/src/sdk/_generated/health/mod.ts +0 -1
  373. package/src/sdk/_generated/health/owned_api.ts +2 -2
  374. package/src/sdk/_generated/health/schemas.ts +1 -9
  375. package/src/sdk/_generated/health/types.ts +23 -2
  376. package/src/sdk/_generated/jobs/api.ts +29 -5
  377. package/src/sdk/_generated/jobs/client.ts +25 -109
  378. package/src/sdk/_generated/jobs/contract.ts +269 -1
  379. package/src/sdk/_generated/jobs/mod.ts +0 -1
  380. package/src/sdk/_generated/jobs/owned_api.ts +30 -9
  381. package/src/sdk/_generated/jobs/schemas.ts +213 -0
  382. package/src/sdk/_generated/jobs/types.ts +252 -18
  383. package/src/sdk/_generated/state/api.ts +29 -5
  384. package/src/sdk/_generated/state/client.ts +18 -95
  385. package/src/sdk/_generated/state/mod.ts +0 -1
  386. package/src/sdk/_generated/state/owned_api.ts +7 -7
  387. package/src/sdk/_generated/state/types.ts +91 -15
  388. package/src/server/health.ts +2 -6
  389. package/src/server/health_schemas.ts +0 -6
  390. package/src/server/internal_jobs/bindings.ts +11 -0
  391. package/src/server/internal_jobs/job-manager.ts +553 -24
  392. package/src/server/internal_jobs/key-coordinator.ts +1080 -0
  393. package/src/server/internal_jobs/projection.ts +2 -0
  394. package/src/server/internal_jobs/runtime-worker.ts +17 -1
  395. package/src/server/internal_jobs/types.ts +6 -0
  396. package/src/server/runtime.ts +4 -0
  397. package/src/server/service.ts +645 -625
  398. package/src/server.ts +14 -7
  399. package/src/service/deno.ts +0 -5
  400. package/src/service/drizzle.ts +184 -0
  401. package/src/service/mod.ts +17 -7
  402. package/src/service/node.ts +0 -5
  403. package/src/service/outbox_inbox.ts +354 -88
  404. package/src/telemetry/metrics.ts +198 -1
  405. package/src/telemetry/mod.ts +6 -0
  406. package/src/trellis.ts +286 -105
@@ -4,7 +4,7 @@ exports.use = exports.sdk = exports.CONTRACT = exports.CONTRACT_DIGEST = exports
4
4
  const api_js_1 = require("./api.js");
5
5
  const CONTRACT_MODULE_METADATA = Symbol.for("@qlever-llc/trellis/contracts/contract-module");
6
6
  exports.CONTRACT_ID = "trellis.health@v1";
7
- exports.CONTRACT_DIGEST = "RHDzeH2V6Nltzk6WklCLbTIK48hF0hNuO9Qk6-BosT4";
7
+ exports.CONTRACT_DIGEST = "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
8
8
  exports.CONTRACT = {
9
9
  "description": "Expose shared Trellis heartbeat events for service observability.",
10
10
  "displayName": "Trellis Health",
@@ -49,14 +49,6 @@ exports.CONTRACT = {
49
49
  },
50
50
  "type": "array",
51
51
  },
52
- "header": {
53
- "properties": {
54
- "id": { "type": "string" },
55
- "time": { "format": "date-time", "type": "string" },
56
- },
57
- "required": ["id", "time"],
58
- "type": "object",
59
- },
60
52
  "service": {
61
53
  "properties": {
62
54
  "contractDigest": { "type": "string" },
@@ -103,7 +95,7 @@ exports.CONTRACT = {
103
95
  },
104
96
  "summary": { "type": "string" },
105
97
  },
106
- "required": ["header", "service", "status", "checks"],
98
+ "required": ["service", "status", "checks"],
107
99
  "type": "object",
108
100
  },
109
101
  },
@@ -2,6 +2,6 @@ export { API, OWNED_API } from "./api.js";
2
2
  export type { Api, ApiViews, OwnedApi } from "./api.js";
3
3
  export * from "./types.js";
4
4
  export * from "./schemas.js";
5
- export type { Client, HandlerClient, Service, ServiceEventSurface, ServiceHandle, ServiceWithDeps, TrellisHealthClient, TrellisHealthState, } from "./client.js";
5
+ export type { Client, HandlerClient, Service, ServiceEventSurface, ServiceHandle, TrellisHealthClient, TrellisHealthState, } from "./client.js";
6
6
  export { CONTRACT, CONTRACT_DIGEST, CONTRACT_ID, sdk, use, } from "./contract.js";
7
7
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,YAAY,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC"}
@@ -6,8 +6,8 @@ export declare const OWNED_API: {
6
6
  "Health.Heartbeat": {
7
7
  subject: string;
8
8
  event: import("@qlever-llc/trellis/contracts").Schema<Types.HealthHeartbeatEvent>;
9
- publishCapabilities: never[];
10
- subscribeCapabilities: never[];
9
+ publishCapabilities: readonly [];
10
+ subscribeCapabilities: readonly [];
11
11
  };
12
12
  };
13
13
  feeds: {};
@@ -36,19 +36,6 @@ export declare const HealthHeartbeatSchema: {
36
36
  };
37
37
  readonly type: "array";
38
38
  };
39
- readonly header: {
40
- readonly properties: {
41
- readonly id: {
42
- readonly type: "string";
43
- };
44
- readonly time: {
45
- readonly format: "date-time";
46
- readonly type: "string";
47
- };
48
- };
49
- readonly required: readonly ["id", "time"];
50
- readonly type: "object";
51
- };
52
39
  readonly service: {
53
40
  readonly properties: {
54
41
  readonly contractDigest: {
@@ -127,7 +114,7 @@ export declare const HealthHeartbeatSchema: {
127
114
  readonly type: "string";
128
115
  };
129
116
  };
130
- readonly required: readonly ["header", "service", "status", "checks"];
117
+ readonly required: readonly ["service", "status", "checks"];
131
118
  readonly type: "object";
132
119
  };
133
120
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/schemas.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ExB,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/schemas.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsExB,CAAC"}
@@ -24,14 +24,6 @@ exports.HealthHeartbeatSchema = {
24
24
  },
25
25
  "type": "array",
26
26
  },
27
- "header": {
28
- "properties": {
29
- "id": { "type": "string" },
30
- "time": { "format": "date-time", "type": "string" },
31
- },
32
- "required": ["id", "time"],
33
- "type": "object",
34
- },
35
27
  "service": {
36
28
  "properties": {
37
29
  "contractDigest": { "type": "string" },
@@ -78,6 +70,6 @@ exports.HealthHeartbeatSchema = {
78
70
  },
79
71
  "summary": { "type": "string" },
80
72
  },
81
- "required": ["header", "service", "status", "checks"],
73
+ "required": ["service", "status", "checks"],
82
74
  "type": "object",
83
75
  };
@@ -1,5 +1,8 @@
1
+ import type { BaseError, EventListenerContext, HandlerTrellis, MaybeAsync, TrellisEventMessage } from "@qlever-llc/trellis";
2
+ import type { Api } from "./api.js";
3
+ export type HandlerClient = HandlerTrellis<Api>;
1
4
  export declare const CONTRACT_ID: "trellis.health@v1";
2
- export declare const CONTRACT_DIGEST: "RHDzeH2V6Nltzk6WklCLbTIK48hF0hNuO9Qk6-BosT4";
5
+ export declare const CONTRACT_DIGEST: "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
3
6
  export type HealthHeartbeatEvent = {
4
7
  checks: Array<{
5
8
  error?: string;
@@ -11,10 +14,6 @@ export type HealthHeartbeatEvent = {
11
14
  status: "ok" | "failed";
12
15
  summary?: string;
13
16
  }>;
14
- header: {
15
- id: string;
16
- time: string;
17
- };
18
17
  service: {
19
18
  contractDigest: string;
20
19
  contractId: string;
@@ -33,6 +32,12 @@ export type HealthHeartbeatEvent = {
33
32
  status: "healthy" | "unhealthy" | "degraded";
34
33
  summary?: string;
35
34
  };
35
+ export type HealthHeartbeatEventMessage = TrellisEventMessage<HealthHeartbeatEvent>;
36
+ export type HealthHeartbeatEventHandler = (args: {
37
+ event: HealthHeartbeatEvent;
38
+ context: EventListenerContext;
39
+ client: HandlerClient;
40
+ }) => MaybeAsync<void, BaseError>;
36
41
  export interface RpcMap {
37
42
  }
38
43
  export interface EventMap {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/health/types.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,EAAG,mBAA4B,CAAC;AACxD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE,KAAK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BAA2B,GAAG,mBAAmB,CAC3D,oBAAoB,CACrB,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,CACxC,IAAI,EAAE;IACJ,KAAK,EAAE,oBAAoB,CAAC;IAC5B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;CACvB,KACE,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAEjC,MAAM,WAAW,MAAM;CACtB;AAED,MAAM,WAAW,QAAQ;IACvB,kBAAkB,EAAE;QAAE,KAAK,EAAE,oBAAoB,CAAA;KAAE,CAAC;CACrD;AAED,MAAM,WAAW,OAAO;CACvB;AAED,MAAM,WAAW,UAAU;CAC1B"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CONTRACT_DIGEST = exports.CONTRACT_ID = void 0;
4
- // Generated from ./generated/contracts/manifests/trellis.health@v1.json
5
4
  exports.CONTRACT_ID = "trellis.health@v1";
6
- exports.CONTRACT_DIGEST = "RHDzeH2V6Nltzk6WklCLbTIK48hF0hNuO9Qk6-BosT4";
5
+ exports.CONTRACT_DIGEST = "z9RdJVXAI4q-hSkpvUX_xMYEJaKslMsayevlW4UlSeQ";
@@ -3,6 +3,28 @@ import { OWNED_API as AuthApi } from "@qlever-llc/trellis/sdk/auth";
3
3
  import { OWNED_API as CoreApi } from "@qlever-llc/trellis/sdk/core";
4
4
  import { OWNED_API as HealthApi } from "@qlever-llc/trellis/sdk/health";
5
5
  export { OWNED_API };
6
+ type __TrellisGeneratedOptionalOperationProgress<TDesc> = TDesc extends {
7
+ progress: infer TProgress;
8
+ } ? {
9
+ progress?: TProgress;
10
+ } : {
11
+ progress?: undefined;
12
+ };
13
+ type __TrellisGeneratedOptionalOperationOutput<TDesc> = TDesc extends {
14
+ output: infer TOutput;
15
+ } ? {
16
+ output?: TOutput;
17
+ } : {
18
+ output?: undefined;
19
+ };
20
+ type __TrellisGeneratedOptionalOperationIO<TDesc> = TDesc extends {
21
+ input: infer TInput;
22
+ } ? Omit<TDesc, "input" | "progress" | "output"> & {
23
+ input: TInput;
24
+ } & __TrellisGeneratedOptionalOperationProgress<TDesc> & __TrellisGeneratedOptionalOperationOutput<TDesc> : TDesc;
25
+ type __TrellisGeneratedOperationApi<TApi> = {
26
+ readonly [K in keyof TApi]: __TrellisGeneratedOptionalOperationIO<TApi[K]>;
27
+ };
6
28
  export type UsedApi = {
7
29
  rpc: {
8
30
  readonly "Auth.Requests.Validate": typeof AuthApi.rpc["Auth.Requests.Validate"];
@@ -17,7 +39,9 @@ export type UsedApi = {
17
39
  subjects: {};
18
40
  };
19
41
  export declare const USED_API: UsedApi;
20
- export type OwnedApi = typeof OWNED_API;
42
+ export type OwnedApi = Omit<typeof OWNED_API, "operations"> & {
43
+ operations: __TrellisGeneratedOperationApi<typeof OWNED_API["operations"]>;
44
+ };
21
45
  export type Api = {
22
46
  rpc: OwnedApi["rpc"] & UsedApi["rpc"];
23
47
  operations: OwnedApi["operations"] & UsedApi["operations"];
@@ -25,113 +49,9 @@ export type Api = {
25
49
  feeds: OwnedApi["feeds"] & UsedApi["feeds"];
26
50
  subjects: OwnedApi["subjects"] & UsedApi["subjects"];
27
51
  };
28
- export declare const API: {
29
- readonly owned: {
30
- rpc: {
31
- "Jobs.Cancel": {
32
- subject: string;
33
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelInput>;
34
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelOutput>;
35
- callerCapabilities: string[];
36
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
37
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
38
- runtimeErrors: readonly [{
39
- readonly type: "NotFoundError";
40
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
41
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
42
- }];
43
- };
44
- "Jobs.DismissDLQ": {
45
- subject: string;
46
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQInput>;
47
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQOutput>;
48
- callerCapabilities: string[];
49
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
50
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
51
- runtimeErrors: readonly [{
52
- readonly type: "NotFoundError";
53
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
54
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
55
- }];
56
- };
57
- "Jobs.Get": {
58
- subject: string;
59
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetInput>;
60
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetOutput>;
61
- callerCapabilities: string[];
62
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
63
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
64
- runtimeErrors: readonly [{
65
- readonly type: "NotFoundError";
66
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
67
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
68
- }];
69
- };
70
- "Jobs.Health": {
71
- subject: string;
72
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthInput>;
73
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthOutput>;
74
- callerCapabilities: string[];
75
- errors: readonly ["UnexpectedError"];
76
- declaredErrorTypes: readonly ["UnexpectedError"];
77
- };
78
- "Jobs.List": {
79
- subject: string;
80
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListInput>;
81
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListOutput>;
82
- callerCapabilities: string[];
83
- errors: readonly ["UnexpectedError", "ValidationError"];
84
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
85
- };
86
- "Jobs.ListDLQ": {
87
- subject: string;
88
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQInput>;
89
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQOutput>;
90
- callerCapabilities: string[];
91
- errors: readonly ["UnexpectedError", "ValidationError"];
92
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
93
- };
94
- "Jobs.ListServices": {
95
- subject: string;
96
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesInput>;
97
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesOutput>;
98
- callerCapabilities: string[];
99
- errors: readonly ["UnexpectedError", "ValidationError"];
100
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
101
- };
102
- "Jobs.ReplayDLQ": {
103
- subject: string;
104
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQInput>;
105
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQOutput>;
106
- callerCapabilities: string[];
107
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
108
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
109
- runtimeErrors: readonly [{
110
- readonly type: "NotFoundError";
111
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
112
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
113
- }];
114
- };
115
- "Jobs.Retry": {
116
- subject: string;
117
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryInput>;
118
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryOutput>;
119
- callerCapabilities: string[];
120
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
121
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
122
- runtimeErrors: readonly [{
123
- readonly type: "NotFoundError";
124
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
125
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
126
- }];
127
- };
128
- };
129
- operations: {};
130
- events: {};
131
- feeds: {};
132
- subjects: {};
133
- };
134
- readonly used: UsedApi;
52
+ export type ApiViews = {
53
+ owned: OwnedApi;
54
+ used: UsedApi;
135
55
  };
136
- export type ApiViews = typeof API;
56
+ export declare const API: ApiViews;
137
57
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE;QACH,QAAQ,CAAC,wBAAwB,EAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QAC/C,QAAQ,CAAC,sBAAsB,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QAC5E,QAAQ,CAAC,iBAAiB,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KACnE,CAAC;IACF,UAAU,EAAE,EAAE,CAAC;IACf,MAAM,EAAE;QACN,QAAQ,CAAC,kBAAkB,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;KAC1E,CAAC;IACF,KAAK,EAAE,EAAE,CAAC;IACV,QAAQ,EAAE,EAAE,CAAC;CACd,CAAC;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CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OAoBtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,SAAS,EAAE,YAAY,CAAC,GAAG;IAC5D,UAAU,EAAE,8BAA8B,CAAC,OAAO,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;CAC5E,CAAC;AACF,MAAM,MAAM,GAAG,GAAG;IAChB,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IACtC,UAAU,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC3D,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,QAAQ,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,QAGjB,CAAC"}
@@ -1,25 +1,17 @@
1
- import type { AsyncResult, BaseError, EventListenerContext, EventOpts, HandlerTrellis, MaybeAsync, PreparedTrellisEvent, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, Result, RpcHandlerContext, SendTransferGrant, SendTransferHandle, TrellisConnection, UnexpectedError, ValidationError } from "@qlever-llc/trellis";
1
+ import type { AsyncResult, BaseError, EventListenerContext, EventOpts, HandlerTrellis, MaybeAsync, PreparedTrellisEvent, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, Result, SendTransferGrant, SendTransferHandle, TrellisConnection, UnexpectedError, ValidationError } from "@qlever-llc/trellis";
2
2
  import type { Api } from "./api.js";
3
3
  import type * as Types from "./types.js";
4
4
  import type * as AuthSdk from "@qlever-llc/trellis/sdk/auth";
5
5
  import type * as CoreSdk from "@qlever-llc/trellis/sdk/core";
6
6
  import type * as HealthSdk from "@qlever-llc/trellis/sdk/health";
7
- type WithDeps<TDeps> = [TDeps] extends [undefined] ? {} : {
8
- deps: TDeps;
9
- };
10
7
  type EventCallback<TMessage> = {
11
8
  bivarianceHack(message: TMessage, context: EventListenerContext): MaybeAsync<void, BaseError>;
12
9
  }["bivarianceHack"];
13
- type ServiceEventHandler<TEvent, TDeps = undefined> = (args: {
10
+ type DependencyServiceEventHandler<TEvent> = (args: {
14
11
  event: TEvent;
15
12
  context: EventListenerContext;
16
13
  client: HandlerClient;
17
- } & WithDeps<TDeps>) => MaybeAsync<void, BaseError>;
18
- type RpcHandler<TInput, TOutput, TDeps = undefined> = (args: {
19
- input: TInput;
20
- context: RpcHandlerContext;
21
- client: HandlerClient;
22
- } & WithDeps<TDeps>) => MaybeAsync<TOutput, BaseError>;
14
+ }) => MaybeAsync<void, BaseError>;
23
15
  export type TrellisJobsState = {};
24
16
  export interface TrellisJobsClient {
25
17
  readonly name: string;
@@ -38,6 +30,7 @@ export interface TrellisJobsClient {
38
30
  cancel(input: Types.JobsCancelInput, opts?: RequestOpts): AsyncResult<Types.JobsCancelOutput, BaseError>;
39
31
  dismissDLQ(input: Types.JobsDismissDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsDismissDLQOutput, BaseError>;
40
32
  get(input: Types.JobsGetInput, opts?: RequestOpts): AsyncResult<Types.JobsGetOutput, BaseError>;
33
+ getKey(input: Types.JobsGetKeyInput, opts?: RequestOpts): AsyncResult<Types.JobsGetKeyOutput, BaseError>;
41
34
  health(input: Types.JobsHealthInput, opts?: RequestOpts): AsyncResult<Types.JobsHealthOutput, BaseError>;
42
35
  list(input: Types.JobsListInput, opts?: RequestOpts): AsyncResult<Types.JobsListOutput, BaseError>;
43
36
  listDLQ(input: Types.JobsListDLQInput, opts?: RequestOpts): AsyncResult<Types.JobsListDLQOutput, BaseError>;
@@ -52,8 +45,8 @@ export interface TrellisJobsClient {
52
45
  readonly event: {
53
46
  readonly health: {
54
47
  heartbeat: {
55
- publish(event: Omit<HealthSdk.HealthHeartbeatEvent, "header">): AsyncResult<void, ValidationError | UnexpectedError>;
56
- prepare(event: Omit<HealthSdk.HealthHeartbeatEvent, "header">): Result<PreparedTrellisEvent<Omit<HealthSdk.HealthHeartbeatEvent, "header">>, ValidationError | UnexpectedError>;
48
+ publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
49
+ prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
57
50
  listen(handler: EventCallback<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
58
51
  };
59
52
  };
@@ -64,34 +57,29 @@ export interface TrellisJobsClient {
64
57
  }
65
58
  export interface Service extends TrellisJobsClient {
66
59
  readonly handle: ServiceHandle;
67
- with<TDeps>(deps: TDeps): ServiceWithDeps<TDeps>;
68
60
  }
69
- export type ServiceWithDeps<TDeps> = Omit<TrellisJobsClient, "event"> & {
70
- readonly event: ServiceEventSurface<TDeps>;
71
- readonly handle: ServiceHandle<TDeps>;
72
- with<TNextDeps>(deps: TNextDeps): ServiceWithDeps<TNextDeps>;
73
- };
74
- export interface ServiceEventSurface<TDeps> {
61
+ export interface ServiceEventSurface {
75
62
  readonly health: {
76
63
  heartbeat: {
77
- publish(event: Omit<HealthSdk.HealthHeartbeatEvent, "header">): AsyncResult<void, ValidationError | UnexpectedError>;
78
- prepare(event: Omit<HealthSdk.HealthHeartbeatEvent, "header">): Result<PreparedTrellisEvent<Omit<HealthSdk.HealthHeartbeatEvent, "header">>, ValidationError | UnexpectedError>;
79
- listen(handler: ServiceEventHandler<HealthSdk.HealthHeartbeatEvent, TDeps>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
64
+ publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
65
+ prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
66
+ listen(handler: DependencyServiceEventHandler<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
80
67
  };
81
68
  };
82
69
  }
83
- export interface ServiceHandle<TDeps = undefined> {
70
+ export interface ServiceHandle {
84
71
  readonly rpc: {
85
72
  readonly jobs: {
86
- cancel(handler: RpcHandler<Types.JobsCancelInput, Types.JobsCancelOutput, TDeps>): Promise<void>;
87
- dismissDLQ(handler: RpcHandler<Types.JobsDismissDLQInput, Types.JobsDismissDLQOutput, TDeps>): Promise<void>;
88
- get(handler: RpcHandler<Types.JobsGetInput, Types.JobsGetOutput, TDeps>): Promise<void>;
89
- health(handler: RpcHandler<Types.JobsHealthInput, Types.JobsHealthOutput, TDeps>): Promise<void>;
90
- list(handler: RpcHandler<Types.JobsListInput, Types.JobsListOutput, TDeps>): Promise<void>;
91
- listDLQ(handler: RpcHandler<Types.JobsListDLQInput, Types.JobsListDLQOutput, TDeps>): Promise<void>;
92
- listServices(handler: RpcHandler<Types.JobsListServicesInput, Types.JobsListServicesOutput, TDeps>): Promise<void>;
93
- replayDLQ(handler: RpcHandler<Types.JobsReplayDLQInput, Types.JobsReplayDLQOutput, TDeps>): Promise<void>;
94
- retry(handler: RpcHandler<Types.JobsRetryInput, Types.JobsRetryOutput, TDeps>): Promise<void>;
73
+ cancel(handler: Types.JobsCancelHandler): Promise<void>;
74
+ dismissDLQ(handler: Types.JobsDismissDLQHandler): Promise<void>;
75
+ get(handler: Types.JobsGetHandler): Promise<void>;
76
+ getKey(handler: Types.JobsGetKeyHandler): Promise<void>;
77
+ health(handler: Types.JobsHealthHandler): Promise<void>;
78
+ list(handler: Types.JobsListHandler): Promise<void>;
79
+ listDLQ(handler: Types.JobsListDLQHandler): Promise<void>;
80
+ listServices(handler: Types.JobsListServicesHandler): Promise<void>;
81
+ replayDLQ(handler: Types.JobsReplayDLQHandler): Promise<void>;
82
+ retry(handler: Types.JobsRetryHandler): Promise<void>;
95
83
  };
96
84
  };
97
85
  readonly feed: {};
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,SAAS,EAGT,cAAc,EAEd,UAAU,EAOV,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAGlB,iBAAiB,EACjB,eAAe,EACf,eAAe,EAEhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAO,GAAG,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,KAAK,KAAK,MAAM,YAAY,CAAC;AACzC,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAEnD,KAAK,QAAQ,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC;AAE1E,KAAK,aAAa,CAAC,QAAQ,IAAI;IAC7B,cAAc,CACZ,OAAO,EAAE,QAAQ,EACjB,OAAO,EAAE,oBAAoB,GAC5B,UAAU,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;CAChC,CAAC,gBAAgB,CAAC,CAAC;AAEpB,KAAK,mBAAmB,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AAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACxD,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAChE,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAClD,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACxD,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACpD,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC1D,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACpE,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC9D,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;SACvD,CAAC;KACH,CAAC;IACF,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;IAClB,QAAQ,CAAC,SAAS,EAAE,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAChD,MAAM,MAAM,MAAM,GAAG,iBAAiB,CAAC"}
@@ -1,112 +1,8 @@
1
1
  import type { SdkContractModule, TrellisContractV1 } from "@qlever-llc/trellis";
2
2
  import { API } from "./api.js";
3
3
  export declare const CONTRACT_ID: "trellis.jobs@v1";
4
- export declare const CONTRACT_DIGEST: "jSB8nKGOQqIxdFDdUqO-gOTt3Dijg--SOXJtJ1ChpoY";
4
+ export declare const CONTRACT_DIGEST: "xDigtrlrF3n3ZNgHVdwDJFcwi0PEJBiDyBG6FnzFzM8";
5
5
  export declare const CONTRACT: TrellisContractV1;
6
6
  export declare const sdk: SdkContractModule<typeof CONTRACT_ID, typeof API.owned>;
7
- export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.jobs@v1", {
8
- rpc: {
9
- "Jobs.Cancel": {
10
- subject: string;
11
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelInput>;
12
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsCancelOutput>;
13
- callerCapabilities: string[];
14
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
15
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
16
- runtimeErrors: readonly [{
17
- readonly type: "NotFoundError";
18
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
19
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
20
- }];
21
- };
22
- "Jobs.DismissDLQ": {
23
- subject: string;
24
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQInput>;
25
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsDismissDLQOutput>;
26
- callerCapabilities: string[];
27
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
28
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
29
- runtimeErrors: readonly [{
30
- readonly type: "NotFoundError";
31
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
32
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
33
- }];
34
- };
35
- "Jobs.Get": {
36
- subject: string;
37
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetInput>;
38
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsGetOutput>;
39
- callerCapabilities: string[];
40
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
41
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
42
- runtimeErrors: readonly [{
43
- readonly type: "NotFoundError";
44
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
45
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
46
- }];
47
- };
48
- "Jobs.Health": {
49
- subject: string;
50
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthInput>;
51
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsHealthOutput>;
52
- callerCapabilities: string[];
53
- errors: readonly ["UnexpectedError"];
54
- declaredErrorTypes: readonly ["UnexpectedError"];
55
- };
56
- "Jobs.List": {
57
- subject: string;
58
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListInput>;
59
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListOutput>;
60
- callerCapabilities: string[];
61
- errors: readonly ["UnexpectedError", "ValidationError"];
62
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
63
- };
64
- "Jobs.ListDLQ": {
65
- subject: string;
66
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQInput>;
67
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListDLQOutput>;
68
- callerCapabilities: string[];
69
- errors: readonly ["UnexpectedError", "ValidationError"];
70
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
71
- };
72
- "Jobs.ListServices": {
73
- subject: string;
74
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesInput>;
75
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsListServicesOutput>;
76
- callerCapabilities: string[];
77
- errors: readonly ["UnexpectedError", "ValidationError"];
78
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
79
- };
80
- "Jobs.ReplayDLQ": {
81
- subject: string;
82
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQInput>;
83
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsReplayDLQOutput>;
84
- callerCapabilities: string[];
85
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
86
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
87
- runtimeErrors: readonly [{
88
- readonly type: "NotFoundError";
89
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
90
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
91
- }];
92
- };
93
- "Jobs.Retry": {
94
- subject: string;
95
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryInput>;
96
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").JobsRetryOutput>;
97
- callerCapabilities: string[];
98
- errors: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
99
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError", "NotFoundError"];
100
- runtimeErrors: readonly [{
101
- readonly type: "NotFoundError";
102
- readonly schema: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").NotFoundErrorData>;
103
- readonly fromSerializable: typeof import("./types.js").NotFoundError.fromSerializable;
104
- }];
105
- };
106
- };
107
- operations: {};
108
- events: {};
109
- feeds: {};
110
- subjects: {};
111
- }>;
7
+ export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.jobs@v1", import("./api.js").OwnedApi>;
112
8
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,EAwjChB,iBAAiB,CAAC;AAgCvB,eAAO,MAAM,GAAG,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CA0CvE,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAU,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/jobs/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAElB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAM/B,eAAO,MAAM,WAAW,EAAG,iBAA0B,CAAC;AACtD,eAAO,MAAM,eAAe,EAC1B,6CAAsD,CAAC;AACzD,eAAO,MAAM,QAAQ,EAo0ChB,iBAAiB,CAAC;AAgCvB,eAAO,MAAM,GAAG,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CA0CvE,CAAC;AAEF,eAAO,MAAM,GAAG,2FAAU,CAAC"}