@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
@@ -1,14 +1,41 @@
1
1
  import { OWNED_API } from "./owned_api.js";
2
+ import { OWNED_API as HealthApi } from "@qlever-llc/trellis/sdk/health";
2
3
  export { OWNED_API };
4
+ type __TrellisGeneratedOptionalOperationProgress<TDesc> = TDesc extends {
5
+ progress: infer TProgress;
6
+ } ? {
7
+ progress?: TProgress;
8
+ } : {
9
+ progress?: undefined;
10
+ };
11
+ type __TrellisGeneratedOptionalOperationOutput<TDesc> = TDesc extends {
12
+ output: infer TOutput;
13
+ } ? {
14
+ output?: TOutput;
15
+ } : {
16
+ output?: undefined;
17
+ };
18
+ type __TrellisGeneratedOptionalOperationIO<TDesc> = TDesc extends {
19
+ input: infer TInput;
20
+ } ? Omit<TDesc, "input" | "progress" | "output"> & {
21
+ input: TInput;
22
+ } & __TrellisGeneratedOptionalOperationProgress<TDesc> & __TrellisGeneratedOptionalOperationOutput<TDesc> : TDesc;
23
+ type __TrellisGeneratedOperationApi<TApi> = {
24
+ readonly [K in keyof TApi]: __TrellisGeneratedOptionalOperationIO<TApi[K]>;
25
+ };
3
26
  export type UsedApi = {
4
27
  rpc: {};
5
28
  operations: {};
6
- events: {};
29
+ events: {
30
+ readonly "Health.Heartbeat": typeof HealthApi.events["Health.Heartbeat"];
31
+ };
7
32
  feeds: {};
8
33
  subjects: {};
9
34
  };
10
35
  export declare const USED_API: UsedApi;
11
- export type OwnedApi = typeof OWNED_API;
36
+ export type OwnedApi = Omit<typeof OWNED_API, "operations"> & {
37
+ operations: __TrellisGeneratedOperationApi<typeof OWNED_API["operations"]>;
38
+ };
12
39
  export type Api = {
13
40
  rpc: OwnedApi["rpc"] & UsedApi["rpc"];
14
41
  operations: OwnedApi["operations"] & UsedApi["operations"];
@@ -16,48 +43,9 @@ export type Api = {
16
43
  feeds: OwnedApi["feeds"] & UsedApi["feeds"];
17
44
  subjects: OwnedApi["subjects"] & UsedApi["subjects"];
18
45
  };
19
- export declare const API: {
20
- readonly owned: {
21
- rpc: {
22
- "Trellis.Bindings.Get": {
23
- subject: string;
24
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisBindingsGetInput>;
25
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisBindingsGetOutput>;
26
- callerCapabilities: string[];
27
- errors: readonly ["UnexpectedError", "ValidationError"];
28
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
29
- };
30
- "Trellis.Catalog": {
31
- subject: string;
32
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisCatalogInput>;
33
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisCatalogOutput>;
34
- callerCapabilities: string[];
35
- errors: readonly ["UnexpectedError", "ValidationError"];
36
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
37
- };
38
- "Trellis.Contract.Get": {
39
- subject: string;
40
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisContractGetInput>;
41
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisContractGetOutput>;
42
- callerCapabilities: string[];
43
- errors: readonly ["UnexpectedError", "ValidationError"];
44
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
45
- };
46
- "Trellis.Surface.Status": {
47
- subject: string;
48
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisSurfaceStatusInput>;
49
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisSurfaceStatusOutput>;
50
- callerCapabilities: string[];
51
- errors: readonly ["UnexpectedError", "ValidationError"];
52
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
53
- };
54
- };
55
- operations: {};
56
- events: {};
57
- feeds: {};
58
- subjects: {};
59
- };
60
- readonly used: UsedApi;
46
+ export type ApiViews = {
47
+ owned: OwnedApi;
48
+ used: UsedApi;
61
49
  };
62
- export type ApiViews = typeof API;
50
+ export declare const API: ApiViews;
63
51
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/core/api.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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"}
@@ -4,10 +4,15 @@ exports.API = exports.USED_API = exports.OWNED_API = void 0;
4
4
  // Generated from ./generated/contracts/manifests/trellis.core@v1.json
5
5
  const owned_api_js_1 = require("./owned_api.js");
6
6
  Object.defineProperty(exports, "OWNED_API", { enumerable: true, get: function () { return owned_api_js_1.OWNED_API; } });
7
+ const mod_js_1 = require("@qlever-llc/trellis/sdk/health");
7
8
  exports.USED_API = {
8
9
  rpc: {},
9
10
  operations: {},
10
- events: {},
11
+ events: {
12
+ get "Health.Heartbeat"() {
13
+ return mod_js_1.OWNED_API.events["Health.Heartbeat"];
14
+ },
15
+ },
11
16
  feeds: {},
12
17
  subjects: {},
13
18
  };
@@ -1,14 +1,15 @@
1
- import type { AsyncResult, BaseError, HandlerTrellis, MaybeAsync, ReceiveTransferGrant, ReceiveTransferHandle, RequestOpts, RpcHandlerContext, SendTransferGrant, SendTransferHandle, TrellisConnection } 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
- type WithDeps<TDeps> = [TDeps] extends [undefined] ? {} : {
5
- deps: TDeps;
6
- };
7
- type RpcHandler<TInput, TOutput, TDeps = undefined> = (args: {
8
- input: TInput;
9
- context: RpcHandlerContext;
4
+ import type * as HealthSdk from "@qlever-llc/trellis/sdk/health";
5
+ type EventCallback<TMessage> = {
6
+ bivarianceHack(message: TMessage, context: EventListenerContext): MaybeAsync<void, BaseError>;
7
+ }["bivarianceHack"];
8
+ type DependencyServiceEventHandler<TEvent> = (args: {
9
+ event: TEvent;
10
+ context: EventListenerContext;
10
11
  client: HandlerClient;
11
- } & WithDeps<TDeps>) => MaybeAsync<TOutput, BaseError>;
12
+ }) => MaybeAsync<void, BaseError>;
12
13
  export type TrellisCoreState = {};
13
14
  export interface TrellisCoreClient {
14
15
  readonly name: string;
@@ -26,27 +27,37 @@ export interface TrellisCoreClient {
26
27
  surfaceStatus(input: Types.TrellisSurfaceStatusInput, opts?: RequestOpts): AsyncResult<Types.TrellisSurfaceStatusOutput, BaseError>;
27
28
  };
28
29
  };
29
- readonly event: {};
30
+ readonly event: {
31
+ readonly health: {
32
+ heartbeat: {
33
+ publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
34
+ prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
35
+ listen(handler: EventCallback<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
36
+ };
37
+ };
38
+ };
30
39
  readonly feed: {};
31
40
  readonly operation: {};
32
41
  wait(): AsyncResult<void, BaseError>;
33
42
  }
34
43
  export interface Service extends TrellisCoreClient {
35
44
  readonly handle: ServiceHandle;
36
- with<TDeps>(deps: TDeps): ServiceWithDeps<TDeps>;
37
45
  }
38
- export type ServiceWithDeps<TDeps> = Omit<TrellisCoreClient, "event"> & {
39
- readonly event: ServiceEventSurface<TDeps>;
40
- readonly handle: ServiceHandle<TDeps>;
41
- with<TNextDeps>(deps: TNextDeps): ServiceWithDeps<TNextDeps>;
42
- };
43
- export type ServiceEventSurface<TDeps> = {};
44
- export interface ServiceHandle<TDeps = undefined> {
46
+ export interface ServiceEventSurface {
47
+ readonly health: {
48
+ heartbeat: {
49
+ publish(event: HealthSdk.HealthHeartbeatEvent): AsyncResult<void, ValidationError | UnexpectedError>;
50
+ prepare(event: HealthSdk.HealthHeartbeatEvent): Result<PreparedTrellisEvent<HealthSdk.HealthHeartbeatEvent>, ValidationError | UnexpectedError>;
51
+ listen(handler: DependencyServiceEventHandler<HealthSdk.HealthHeartbeatEvent>, subjectData?: Record<string, unknown>, opts?: EventOpts): AsyncResult<void, ValidationError | UnexpectedError>;
52
+ };
53
+ };
54
+ }
55
+ export interface ServiceHandle {
45
56
  readonly rpc: {
46
57
  readonly trellis: {
47
- catalog(handler: RpcHandler<Types.TrellisCatalogInput, Types.TrellisCatalogOutput, TDeps>): Promise<void>;
48
- contractGet(handler: RpcHandler<Types.TrellisContractGetInput, Types.TrellisContractGetOutput, TDeps>): Promise<void>;
49
- surfaceStatus(handler: RpcHandler<Types.TrellisSurfaceStatusInput, Types.TrellisSurfaceStatusOutput, TDeps>): Promise<void>;
58
+ catalog(handler: Types.TrellisCatalogHandler): Promise<void>;
59
+ contractGet(handler: Types.TrellisContractGetHandler): Promise<void>;
60
+ surfaceStatus(handler: Types.TrellisSurfaceStatusHandler): Promise<void>;
50
61
  };
51
62
  };
52
63
  readonly feed: {};
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../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AW,aAAa,CAAC,KAAK,GAAG,SAAS;IAC9C,QAAQ,CAAC,GAAG,EAAE;QACZ,QAAQ,CAAC,OAAO,EAAE;YAChB,OAAO,CACL,OAAO,EAAE,UAAU,CACjB,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,oBAAoB,EAC1B,KAAK,CACN,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;YACjB,WAAW,CACT,OAAO,EAAE,UAAU,CACjB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CACN,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;YACjB,aAAa,CACX,OAAO,EAAE,UAAU,CACjB,KAAK,CAAC,yBAAyB,EAC/B,KAAK,CAAC,0BAA0B,EAChC,KAAK,CACN,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;SAClB,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
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/core/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,SAAS,EAGT,cAAc,EAEd,UAAU,EAMV,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,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,SAAS,MAAM,kBAAkB,CAAC;AAEnD,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AAC,EACpD,eAAe,GAAG,eAAe,CAClC,CAAC;YACF,MAAM,CACJ,OAAO,EAAE,6BAA6B,CAAC,SAAS,CAAC,oBAAoB,CAAC,EACtE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrC,IAAI,CAAC,EAAE,SAAS,GACf,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC,CAAC;SACzD,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE;QACZ,QAAQ,CAAC,OAAO,EAAE;YAChB,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC7D,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YACrE,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;SAC1E,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,47 +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.core@v1";
4
- export declare const CONTRACT_DIGEST: "L4HW6uUIxDhK1Kpa_PUxpumoMberMgiCgJTNN5Qvje0";
4
+ export declare const CONTRACT_DIGEST: "1vbZgyhBkgKDSkzqvkwItxObBfaLNdysxFBeTT-Ng2c";
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.core@v1", {
8
- rpc: {
9
- "Trellis.Bindings.Get": {
10
- subject: string;
11
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisBindingsGetInput>;
12
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisBindingsGetOutput>;
13
- callerCapabilities: string[];
14
- errors: readonly ["UnexpectedError", "ValidationError"];
15
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
16
- };
17
- "Trellis.Catalog": {
18
- subject: string;
19
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisCatalogInput>;
20
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisCatalogOutput>;
21
- callerCapabilities: string[];
22
- errors: readonly ["UnexpectedError", "ValidationError"];
23
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
24
- };
25
- "Trellis.Contract.Get": {
26
- subject: string;
27
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisContractGetInput>;
28
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisContractGetOutput>;
29
- callerCapabilities: string[];
30
- errors: readonly ["UnexpectedError", "ValidationError"];
31
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
32
- };
33
- "Trellis.Surface.Status": {
34
- subject: string;
35
- input: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisSurfaceStatusInput>;
36
- output: import("@qlever-llc/trellis/contracts").Schema<import("./types.js").TrellisSurfaceStatusOutput>;
37
- callerCapabilities: string[];
38
- errors: readonly ["UnexpectedError", "ValidationError"];
39
- declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
40
- };
41
- };
42
- operations: {};
43
- events: {};
44
- feeds: {};
45
- subjects: {};
46
- }>;
7
+ export declare const use: import("@qlever-llc/trellis").ContractUseFn<"trellis.core@v1", import("./api.js").OwnedApi>;
47
8
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/core/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,EA+tBhB,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/core/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,EAyzBhB,iBAAiB,CAAC;AAgCvB,eAAO,MAAM,GAAG,EAAE,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CA0CvE,CAAC;AAEF,eAAO,MAAM,GAAG,2FAAU,CAAC"}
@@ -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.core@v1";
7
- exports.CONTRACT_DIGEST = "L4HW6uUIxDhK1Kpa_PUxpumoMberMgiCgJTNN5Qvje0";
7
+ exports.CONTRACT_DIGEST = "1vbZgyhBkgKDSkzqvkwItxObBfaLNdysxFBeTT-Ng2c";
8
8
  exports.CONTRACT = {
9
9
  "capabilities": {
10
10
  "trellis.core::catalog.read": {
@@ -155,6 +155,41 @@ exports.CONTRACT = {
155
155
  "type": "integer",
156
156
  },
157
157
  "dlq": { "type": "boolean" },
158
+ "keyConcurrency": {
159
+ "properties": {
160
+ "heartbeatIntervalMs": {
161
+ "minimum": 1,
162
+ "type": "integer",
163
+ },
164
+ "heartbeatTtlMs": {
165
+ "minimum": 1,
166
+ "type": "integer",
167
+ },
168
+ "key": {
169
+ "items": { "minLength": 1, "type": "string" },
170
+ "minItems": 1,
171
+ "type": "array",
172
+ },
173
+ "maxActive": {
174
+ "minimum": 1,
175
+ "type": "integer",
176
+ },
177
+ "stalePolicy": {
178
+ "anyOf": [{
179
+ "const": "fail-stale",
180
+ "type": "string",
181
+ }, { "const": "block", "type": "string" }],
182
+ },
183
+ },
184
+ "required": [
185
+ "key",
186
+ "maxActive",
187
+ "heartbeatIntervalMs",
188
+ "heartbeatTtlMs",
189
+ "stalePolicy",
190
+ ],
191
+ "type": "object",
192
+ },
158
193
  "logs": { "type": "boolean" },
159
194
  "maxDeliver": { "minimum": 1, "type": "integer" },
160
195
  "payload": {
@@ -169,6 +204,26 @@ exports.CONTRACT = {
169
204
  "minLength": 1,
170
205
  "type": "string",
171
206
  },
207
+ "queue": {
208
+ "properties": {
209
+ "maxQueuedPerKey": {
210
+ "minimum": 0,
211
+ "type": "integer",
212
+ },
213
+ "whenFull": {
214
+ "anyOf": [
215
+ { "const": "reject", "type": "string" },
216
+ { "const": "coalesce", "type": "string" },
217
+ {
218
+ "const": "replace-oldest",
219
+ "type": "string",
220
+ },
221
+ ],
222
+ },
223
+ },
224
+ "required": ["maxQueuedPerKey", "whenFull"],
225
+ "type": "object",
226
+ },
172
227
  "queueType": { "minLength": 1, "type": "string" },
173
228
  "result": {
174
229
  "properties": {
@@ -463,6 +518,29 @@ exports.CONTRACT = {
463
518
  "required": ["markdown"],
464
519
  "type": "object",
465
520
  },
521
+ "keyConcurrency": {
522
+ "properties": {
523
+ "heartbeatIntervalMs": {
524
+ "minimum": 1,
525
+ "type": "integer",
526
+ },
527
+ "heartbeatTtlMs": { "minimum": 1, "type": "integer" },
528
+ "key": {
529
+ "items": { "minLength": 1, "type": "string" },
530
+ "minItems": 1,
531
+ "type": "array",
532
+ },
533
+ "maxActive": { "minimum": 1, "type": "integer" },
534
+ "stalePolicy": {
535
+ "anyOf": [
536
+ { "const": "fail-stale", "type": "string" },
537
+ { "const": "block", "type": "string" },
538
+ ],
539
+ },
540
+ },
541
+ "required": ["key"],
542
+ "type": "object",
543
+ },
466
544
  "logs": { "type": "boolean" },
467
545
  "maxDeliver": { "minimum": 1, "type": "integer" },
468
546
  "payload": {
@@ -473,6 +551,18 @@ exports.CONTRACT = {
473
551
  "type": "object",
474
552
  },
475
553
  "progress": { "type": "boolean" },
554
+ "queue": {
555
+ "properties": {
556
+ "maxQueuedPerKey": { "minimum": 0, "type": "integer" },
557
+ "whenFull": {
558
+ "anyOf": [{ "const": "reject", "type": "string" }, {
559
+ "const": "coalesce",
560
+ "type": "string",
561
+ }, { "const": "replace-oldest", "type": "string" }],
562
+ },
563
+ },
564
+ "type": "object",
565
+ },
476
566
  "result": {
477
567
  "properties": {
478
568
  "schema": { "minLength": 1, "type": "string" },
@@ -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, TrellisCoreClient, TrellisCoreState, } from "./client.js";
5
+ export type { Client, HandlerClient, Service, ServiceEventSurface, ServiceHandle, TrellisCoreClient, TrellisCoreState, } 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/core/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,iBAAiB,EACjB,gBAAgB,GACjB,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/core/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,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,QAAQ,EACR,eAAe,EACf,WAAW,EACX,GAAG,EACH,GAAG,GACJ,MAAM,eAAe,CAAC"}
@@ -5,7 +5,7 @@ export declare const OWNED_API: {
5
5
  subject: string;
6
6
  input: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisBindingsGetInput>;
7
7
  output: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisBindingsGetOutput>;
8
- callerCapabilities: string[];
8
+ callerCapabilities: readonly ["service"];
9
9
  errors: readonly ["UnexpectedError", "ValidationError"];
10
10
  declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
11
11
  };
@@ -13,7 +13,7 @@ export declare const OWNED_API: {
13
13
  subject: string;
14
14
  input: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisCatalogInput>;
15
15
  output: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisCatalogOutput>;
16
- callerCapabilities: string[];
16
+ callerCapabilities: readonly ["trellis.core::catalog.read"];
17
17
  errors: readonly ["UnexpectedError", "ValidationError"];
18
18
  declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
19
19
  };
@@ -21,7 +21,7 @@ export declare const OWNED_API: {
21
21
  subject: string;
22
22
  input: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisContractGetInput>;
23
23
  output: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisContractGetOutput>;
24
- callerCapabilities: string[];
24
+ callerCapabilities: readonly ["trellis.core::contract.read"];
25
25
  errors: readonly ["UnexpectedError", "ValidationError"];
26
26
  declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
27
27
  };
@@ -29,7 +29,7 @@ export declare const OWNED_API: {
29
29
  subject: string;
30
30
  input: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisSurfaceStatusInput>;
31
31
  output: import("@qlever-llc/trellis/contracts").Schema<Types.TrellisSurfaceStatusOutput>;
32
- callerCapabilities: string[];
32
+ callerCapabilities: readonly ["trellis.core::catalog.read"];
33
33
  errors: readonly ["UnexpectedError", "ValidationError"];
34
34
  declaredErrorTypes: readonly ["UnexpectedError", "ValidationError"];
35
35
  };
@@ -119,6 +119,41 @@ export declare const TrellisBindingsGetResponseSchema: {
119
119
  readonly dlq: {
120
120
  readonly type: "boolean";
121
121
  };
122
+ readonly keyConcurrency: {
123
+ readonly properties: {
124
+ readonly heartbeatIntervalMs: {
125
+ readonly minimum: 1;
126
+ readonly type: "integer";
127
+ };
128
+ readonly heartbeatTtlMs: {
129
+ readonly minimum: 1;
130
+ readonly type: "integer";
131
+ };
132
+ readonly key: {
133
+ readonly items: {
134
+ readonly minLength: 1;
135
+ readonly type: "string";
136
+ };
137
+ readonly minItems: 1;
138
+ readonly type: "array";
139
+ };
140
+ readonly maxActive: {
141
+ readonly minimum: 1;
142
+ readonly type: "integer";
143
+ };
144
+ readonly stalePolicy: {
145
+ readonly anyOf: readonly [{
146
+ readonly const: "fail-stale";
147
+ readonly type: "string";
148
+ }, {
149
+ readonly const: "block";
150
+ readonly type: "string";
151
+ }];
152
+ };
153
+ };
154
+ readonly required: readonly ["key", "maxActive", "heartbeatIntervalMs", "heartbeatTtlMs", "stalePolicy"];
155
+ readonly type: "object";
156
+ };
122
157
  readonly logs: {
123
158
  readonly type: "boolean";
124
159
  };
@@ -143,6 +178,28 @@ export declare const TrellisBindingsGetResponseSchema: {
143
178
  readonly minLength: 1;
144
179
  readonly type: "string";
145
180
  };
181
+ readonly queue: {
182
+ readonly properties: {
183
+ readonly maxQueuedPerKey: {
184
+ readonly minimum: 0;
185
+ readonly type: "integer";
186
+ };
187
+ readonly whenFull: {
188
+ readonly anyOf: readonly [{
189
+ readonly const: "reject";
190
+ readonly type: "string";
191
+ }, {
192
+ readonly const: "coalesce";
193
+ readonly type: "string";
194
+ }, {
195
+ readonly const: "replace-oldest";
196
+ readonly type: "string";
197
+ }];
198
+ };
199
+ };
200
+ readonly required: readonly ["maxQueuedPerKey", "whenFull"];
201
+ readonly type: "object";
202
+ };
146
203
  readonly queueType: {
147
204
  readonly minLength: 1;
148
205
  readonly type: "string";
@@ -567,6 +624,41 @@ export declare const TrellisContractGetResponseSchema: {
567
624
  readonly required: readonly ["markdown"];
568
625
  readonly type: "object";
569
626
  };
627
+ readonly keyConcurrency: {
628
+ readonly properties: {
629
+ readonly heartbeatIntervalMs: {
630
+ readonly minimum: 1;
631
+ readonly type: "integer";
632
+ };
633
+ readonly heartbeatTtlMs: {
634
+ readonly minimum: 1;
635
+ readonly type: "integer";
636
+ };
637
+ readonly key: {
638
+ readonly items: {
639
+ readonly minLength: 1;
640
+ readonly type: "string";
641
+ };
642
+ readonly minItems: 1;
643
+ readonly type: "array";
644
+ };
645
+ readonly maxActive: {
646
+ readonly minimum: 1;
647
+ readonly type: "integer";
648
+ };
649
+ readonly stalePolicy: {
650
+ readonly anyOf: readonly [{
651
+ readonly const: "fail-stale";
652
+ readonly type: "string";
653
+ }, {
654
+ readonly const: "block";
655
+ readonly type: "string";
656
+ }];
657
+ };
658
+ };
659
+ readonly required: readonly ["key"];
660
+ readonly type: "object";
661
+ };
570
662
  readonly logs: {
571
663
  readonly type: "boolean";
572
664
  };
@@ -587,6 +679,27 @@ export declare const TrellisContractGetResponseSchema: {
587
679
  readonly progress: {
588
680
  readonly type: "boolean";
589
681
  };
682
+ readonly queue: {
683
+ readonly properties: {
684
+ readonly maxQueuedPerKey: {
685
+ readonly minimum: 0;
686
+ readonly type: "integer";
687
+ };
688
+ readonly whenFull: {
689
+ readonly anyOf: readonly [{
690
+ readonly const: "reject";
691
+ readonly type: "string";
692
+ }, {
693
+ readonly const: "coalesce";
694
+ readonly type: "string";
695
+ }, {
696
+ readonly const: "replace-oldest";
697
+ readonly type: "string";
698
+ }];
699
+ };
700
+ };
701
+ readonly type: "object";
702
+ };
590
703
  readonly result: {
591
704
  readonly properties: {
592
705
  readonly schema: {
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/_generated/core/schemas.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;CAMlC,CAAC;AAEX,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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