@qlever-llc/trellis 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (490) hide show
  1. package/README.md +16 -2
  2. package/esm/_dnt.polyfills.d.ts +11 -0
  3. package/esm/_dnt.polyfills.d.ts.map +1 -1
  4. package/esm/_dnt.polyfills.js +14 -0
  5. package/esm/_dnt.shims.d.ts +6 -0
  6. package/esm/_dnt.shims.d.ts.map +1 -0
  7. package/esm/_dnt.shims.js +61 -0
  8. package/esm/auth/browser/login.d.ts +27 -0
  9. package/esm/auth/browser/login.d.ts.map +1 -0
  10. package/esm/auth/browser/login.js +94 -0
  11. package/esm/auth/browser/portal.d.ts +11 -0
  12. package/esm/auth/browser/portal.d.ts.map +1 -0
  13. package/esm/auth/browser/portal.js +33 -0
  14. package/esm/auth/browser/session.d.ts +19 -0
  15. package/esm/auth/browser/session.d.ts.map +1 -0
  16. package/esm/auth/browser/session.js +65 -0
  17. package/esm/auth/browser/storage.d.ts +12 -0
  18. package/esm/auth/browser/storage.d.ts.map +1 -0
  19. package/esm/auth/browser/storage.js +61 -0
  20. package/esm/auth/browser.d.ts +13 -0
  21. package/esm/auth/browser.d.ts.map +1 -0
  22. package/esm/auth/browser.js +11 -0
  23. package/esm/auth/keys.d.ts +5 -0
  24. package/esm/auth/keys.d.ts.map +1 -0
  25. package/esm/auth/keys.js +50 -0
  26. package/esm/auth/mod.d.ts +18 -0
  27. package/esm/auth/mod.d.ts.map +1 -0
  28. package/esm/auth/mod.js +17 -0
  29. package/esm/auth/proof.d.ts +9 -0
  30. package/esm/auth/proof.d.ts.map +1 -0
  31. package/esm/auth/proof.js +43 -0
  32. package/esm/auth/protocol.d.ts +1212 -0
  33. package/esm/auth/protocol.d.ts.map +1 -0
  34. package/esm/auth/protocol.js +682 -0
  35. package/esm/auth/schemas.d.ts +93 -0
  36. package/esm/auth/schemas.d.ts.map +1 -0
  37. package/esm/auth/schemas.js +64 -0
  38. package/esm/auth/session_auth.d.ts +20 -0
  39. package/esm/auth/session_auth.d.ts.map +1 -0
  40. package/esm/auth/session_auth.js +42 -0
  41. package/esm/auth/trellis_id.d.ts +2 -0
  42. package/esm/auth/trellis_id.d.ts.map +1 -0
  43. package/esm/auth/trellis_id.js +5 -0
  44. package/esm/auth/types.d.ts +8 -0
  45. package/esm/auth/types.d.ts.map +1 -0
  46. package/esm/auth/types.js +1 -0
  47. package/esm/auth/utils.d.ts +11 -0
  48. package/esm/auth/utils.d.ts.map +1 -0
  49. package/esm/auth/utils.js +68 -0
  50. package/esm/auth/workload_activation.d.ts +192 -0
  51. package/esm/auth/workload_activation.d.ts.map +1 -0
  52. package/esm/auth/workload_activation.js +290 -0
  53. package/esm/contracts/canonical.d.ts +14 -0
  54. package/esm/contracts/canonical.d.ts.map +1 -0
  55. package/esm/contracts/canonical.js +135 -0
  56. package/esm/contracts/mod.d.ts +462 -0
  57. package/esm/contracts/mod.d.ts.map +1 -0
  58. package/esm/contracts/mod.js +532 -0
  59. package/esm/contracts/protocol.d.ts +301 -0
  60. package/esm/contracts/protocol.d.ts.map +1 -0
  61. package/esm/contracts/protocol.js +130 -0
  62. package/esm/contracts/runtime.d.ts +48 -0
  63. package/esm/contracts/runtime.d.ts.map +1 -0
  64. package/esm/contracts/runtime.js +9 -0
  65. package/esm/contracts/schema_pointers.d.ts +18 -0
  66. package/esm/contracts/schema_pointers.d.ts.map +1 -0
  67. package/esm/contracts/schema_pointers.js +59 -0
  68. package/esm/server/deno.d.ts +7 -0
  69. package/esm/server/deno.d.ts.map +1 -0
  70. package/esm/server/deno.js +16 -0
  71. package/esm/server/health.d.ts +92 -0
  72. package/esm/server/health.d.ts.map +1 -0
  73. package/esm/server/health.js +74 -0
  74. package/esm/server/health_rpc.d.ts +16 -0
  75. package/esm/server/health_rpc.d.ts.map +1 -0
  76. package/esm/server/health_rpc.js +23 -0
  77. package/esm/server/health_schemas.d.ts +20 -0
  78. package/esm/server/health_schemas.d.ts.map +1 -0
  79. package/esm/server/health_schemas.js +18 -0
  80. package/esm/server/mod.d.ts +17 -0
  81. package/esm/server/mod.d.ts.map +1 -0
  82. package/esm/server/mod.js +17 -0
  83. package/esm/server/node.d.ts +7 -0
  84. package/esm/server/node.d.ts.map +1 -0
  85. package/esm/server/node.js +16 -0
  86. package/esm/server/runtime.d.ts +16 -0
  87. package/esm/server/runtime.d.ts.map +1 -0
  88. package/esm/server/runtime.js +1 -0
  89. package/esm/server/service.d.ts +121 -0
  90. package/esm/server/service.d.ts.map +1 -0
  91. package/esm/server/service.js +256 -0
  92. package/esm/server/subscription.d.ts +99 -0
  93. package/esm/server/subscription.d.ts.map +1 -0
  94. package/esm/server/subscription.js +25 -0
  95. package/esm/telemetry/carrier.d.ts +9 -0
  96. package/esm/telemetry/carrier.d.ts.map +1 -0
  97. package/esm/telemetry/carrier.js +20 -0
  98. package/esm/telemetry/core.d.ts +8 -0
  99. package/esm/telemetry/core.d.ts.map +1 -0
  100. package/esm/telemetry/core.js +14 -0
  101. package/esm/telemetry/env.d.ts +2 -0
  102. package/esm/telemetry/env.d.ts.map +1 -0
  103. package/esm/telemetry/env.js +10 -0
  104. package/esm/telemetry/mod.d.ts +11 -0
  105. package/esm/telemetry/mod.d.ts.map +1 -0
  106. package/esm/telemetry/mod.js +7 -0
  107. package/esm/telemetry/nats.d.ts +7 -0
  108. package/esm/telemetry/nats.d.ts.map +1 -0
  109. package/esm/telemetry/nats.js +6 -0
  110. package/esm/telemetry/result.d.ts +2 -0
  111. package/esm/telemetry/result.d.ts.map +1 -0
  112. package/esm/telemetry/result.js +18 -0
  113. package/esm/telemetry/runtime.d.ts +2 -0
  114. package/esm/telemetry/runtime.d.ts.map +1 -0
  115. package/esm/telemetry/runtime.js +53 -0
  116. package/esm/telemetry/trace.d.ts +5 -0
  117. package/esm/telemetry/trace.d.ts.map +1 -0
  118. package/esm/telemetry/trace.js +26 -0
  119. package/esm/telemetry/trellis.d.ts +3 -0
  120. package/esm/telemetry/trellis.d.ts.map +1 -0
  121. package/esm/telemetry/trellis.js +7 -0
  122. package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
  123. package/esm/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
  124. package/esm/trellis/_sdk/activity/_dnt.polyfills.js +15 -0
  125. package/esm/trellis/_sdk/activity/api.d.ts +10 -0
  126. package/esm/trellis/_sdk/activity/api.d.ts.map +1 -0
  127. package/esm/trellis/_sdk/activity/api.js +43 -0
  128. package/esm/trellis/_sdk/activity/contract.d.ts +8 -0
  129. package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -0
  130. package/esm/trellis/_sdk/activity/contract.js +59 -0
  131. package/esm/trellis/_sdk/activity/mod.d.ts +7 -0
  132. package/esm/trellis/_sdk/activity/mod.d.ts.map +1 -0
  133. package/esm/trellis/_sdk/activity/mod.js +5 -0
  134. package/esm/trellis/_sdk/activity/package.json +3 -0
  135. package/esm/trellis/_sdk/activity/schemas.d.ts +607 -0
  136. package/esm/trellis/_sdk/activity/schemas.d.ts.map +1 -0
  137. package/esm/trellis/_sdk/activity/schemas.js +33 -0
  138. package/esm/trellis/_sdk/activity/types.d.ts +96 -0
  139. package/esm/trellis/_sdk/activity/types.d.ts.map +1 -0
  140. package/esm/trellis/_sdk/activity/types.js +3 -0
  141. package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
  142. package/esm/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
  143. package/esm/trellis/_sdk/auth/_dnt.polyfills.js +15 -0
  144. package/esm/trellis/_sdk/auth/api.d.ts +10 -0
  145. package/esm/trellis/_sdk/auth/api.d.ts.map +1 -0
  146. package/esm/trellis/_sdk/auth/api.js +354 -0
  147. package/esm/trellis/_sdk/auth/contract.d.ts +28 -0
  148. package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -0
  149. package/esm/trellis/_sdk/auth/contract.js +83 -0
  150. package/esm/trellis/_sdk/auth/mod.d.ts +7 -0
  151. package/esm/trellis/_sdk/auth/mod.d.ts.map +1 -0
  152. package/esm/trellis/_sdk/auth/mod.js +5 -0
  153. package/esm/trellis/_sdk/auth/package.json +3 -0
  154. package/esm/trellis/_sdk/auth/schemas.d.ts +8967 -0
  155. package/esm/trellis/_sdk/auth/schemas.d.ts.map +1 -0
  156. package/esm/trellis/_sdk/auth/schemas.js +306 -0
  157. package/esm/trellis/_sdk/auth/types.d.ts +1232 -0
  158. package/esm/trellis/_sdk/auth/types.d.ts.map +1 -0
  159. package/esm/trellis/_sdk/auth/types.js +3 -0
  160. package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
  161. package/esm/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
  162. package/esm/trellis/_sdk/core/_dnt.polyfills.js +15 -0
  163. package/esm/trellis/_sdk/core/api.d.ts +10 -0
  164. package/esm/trellis/_sdk/core/api.d.ts.map +1 -0
  165. package/esm/trellis/_sdk/core/api.js +36 -0
  166. package/esm/trellis/_sdk/core/contract.d.ts +8 -0
  167. package/esm/trellis/_sdk/core/contract.d.ts.map +1 -0
  168. package/esm/trellis/_sdk/core/contract.js +59 -0
  169. package/esm/trellis/_sdk/core/mod.d.ts +7 -0
  170. package/esm/trellis/_sdk/core/mod.d.ts.map +1 -0
  171. package/esm/trellis/_sdk/core/mod.js +5 -0
  172. package/esm/trellis/_sdk/core/package.json +3 -0
  173. package/esm/trellis/_sdk/core/schemas.d.ts +1144 -0
  174. package/esm/trellis/_sdk/core/schemas.d.ts.map +1 -0
  175. package/esm/trellis/_sdk/core/schemas.js +28 -0
  176. package/esm/trellis/_sdk/core/types.d.ts +176 -0
  177. package/esm/trellis/_sdk/core/types.d.ts.map +1 -0
  178. package/esm/trellis/_sdk/core/types.js +3 -0
  179. package/esm/trellis/auth/browser.d.ts +3 -0
  180. package/esm/trellis/auth/browser.d.ts.map +1 -0
  181. package/esm/trellis/auth/browser.js +2 -0
  182. package/esm/trellis/auth.d.ts +3 -0
  183. package/esm/trellis/auth.d.ts.map +1 -0
  184. package/esm/trellis/auth.js +2 -0
  185. package/esm/trellis/browser.d.ts +2 -7
  186. package/esm/trellis/browser.d.ts.map +1 -1
  187. package/esm/trellis/browser.js +2 -7
  188. package/esm/trellis/client.d.ts +6 -4
  189. package/esm/trellis/client.d.ts.map +1 -1
  190. package/esm/trellis/client.js +28 -1
  191. package/esm/trellis/codec.d.ts +4 -3
  192. package/esm/trellis/codec.d.ts.map +1 -1
  193. package/esm/trellis/codec.js +15 -2
  194. package/esm/trellis/contract.d.ts +11 -0
  195. package/esm/trellis/contract.d.ts.map +1 -0
  196. package/esm/trellis/contract.js +15 -0
  197. package/esm/trellis/contracts.d.ts +5 -0
  198. package/esm/trellis/contracts.d.ts.map +1 -0
  199. package/esm/trellis/contracts.js +3 -0
  200. package/esm/trellis/env.d.ts +1 -1
  201. package/esm/trellis/env.d.ts.map +1 -1
  202. package/esm/trellis/env.js +1 -1
  203. package/esm/trellis/errors/AuthError.d.ts +1 -1
  204. package/esm/trellis/errors/AuthError.d.ts.map +1 -1
  205. package/esm/trellis/errors/AuthError.js +11 -0
  206. package/esm/trellis/errors/RemoteError.d.ts +3 -3
  207. package/esm/trellis/errors/RemoteError.d.ts.map +1 -1
  208. package/esm/trellis/errors/RemoteError.js +3 -3
  209. package/esm/trellis/errors/TrellisError.d.ts +1 -1
  210. package/esm/trellis/errors/TrellisError.js +1 -1
  211. package/esm/trellis/errors/index.d.ts +2 -1
  212. package/esm/trellis/errors/index.d.ts.map +1 -1
  213. package/esm/trellis/errors/index.js +3 -2
  214. package/esm/trellis/globals.d.ts +9 -1
  215. package/esm/trellis/globals.d.ts.map +1 -1
  216. package/esm/trellis/globals.js +16 -8
  217. package/esm/trellis/helpers.d.ts +2 -1
  218. package/esm/trellis/helpers.d.ts.map +1 -1
  219. package/esm/trellis/helpers.js +1 -0
  220. package/esm/trellis/index.d.ts +13 -5
  221. package/esm/trellis/index.d.ts.map +1 -1
  222. package/esm/trellis/index.js +8 -3
  223. package/esm/trellis/kv.d.ts +10 -7
  224. package/esm/trellis/kv.d.ts.map +1 -1
  225. package/esm/trellis/kv.js +57 -34
  226. package/esm/trellis/models/trellis/TrellisError.d.ts +1 -1
  227. package/esm/trellis/models/trellis/TrellisError.js +1 -1
  228. package/esm/trellis/operations.d.ts +81 -0
  229. package/esm/trellis/operations.d.ts.map +1 -0
  230. package/esm/trellis/operations.js +206 -0
  231. package/esm/trellis/sdk/activity.d.ts +3 -0
  232. package/esm/trellis/sdk/activity.d.ts.map +1 -0
  233. package/esm/trellis/sdk/activity.js +2 -0
  234. package/esm/trellis/sdk/auth.d.ts +4 -0
  235. package/esm/trellis/sdk/auth.d.ts.map +1 -0
  236. package/esm/trellis/sdk/auth.js +3 -0
  237. package/esm/trellis/sdk/core.d.ts +4 -0
  238. package/esm/trellis/sdk/core.d.ts.map +1 -0
  239. package/esm/trellis/sdk/core.js +3 -0
  240. package/esm/trellis/server/deno.d.ts +3 -0
  241. package/esm/trellis/server/deno.d.ts.map +1 -0
  242. package/esm/trellis/server/deno.js +2 -0
  243. package/esm/trellis/server/health.d.ts +5 -0
  244. package/esm/trellis/server/health.d.ts.map +1 -0
  245. package/esm/trellis/server/health.js +3 -0
  246. package/esm/trellis/server/mod.d.ts +3 -0
  247. package/esm/trellis/server/mod.d.ts.map +1 -0
  248. package/esm/trellis/server/mod.js +2 -0
  249. package/esm/trellis/server/node.d.ts +3 -0
  250. package/esm/trellis/server/node.d.ts.map +1 -0
  251. package/esm/trellis/server/node.js +2 -0
  252. package/esm/trellis/server/runtime.d.ts +4 -0
  253. package/esm/trellis/server/runtime.d.ts.map +1 -0
  254. package/esm/trellis/server/runtime.js +2 -0
  255. package/esm/trellis/server.d.ts +21 -0
  256. package/esm/trellis/server.d.ts.map +1 -0
  257. package/esm/trellis/server.js +536 -0
  258. package/esm/trellis/server_logger.d.ts +3 -0
  259. package/esm/trellis/server_logger.d.ts.map +1 -0
  260. package/esm/trellis/server_logger.js +7 -0
  261. package/esm/trellis/tasks.d.ts +3 -3
  262. package/esm/trellis/tasks.d.ts.map +1 -1
  263. package/esm/trellis/tasks.js +1 -1
  264. package/esm/trellis/tracing.d.ts +2 -2
  265. package/esm/trellis/tracing.d.ts.map +1 -1
  266. package/esm/trellis/tracing.js +2 -2
  267. package/esm/trellis/trellis.d.ts +167 -78
  268. package/esm/trellis/trellis.d.ts.map +1 -1
  269. package/esm/trellis/trellis.js +281 -87
  270. package/esm/trellis/workload.d.ts +45 -0
  271. package/esm/trellis/workload.d.ts.map +1 -0
  272. package/esm/trellis/workload.js +144 -0
  273. package/package.json +63 -4
  274. package/script/auth/browser/login.d.ts +27 -0
  275. package/script/auth/browser/login.d.ts.map +1 -0
  276. package/script/auth/browser/login.js +100 -0
  277. package/script/auth/browser/portal.d.ts +11 -0
  278. package/script/auth/browser/portal.d.ts.map +1 -0
  279. package/script/auth/browser/portal.js +40 -0
  280. package/script/auth/browser/session.d.ts +19 -0
  281. package/script/auth/browser/session.d.ts.map +1 -0
  282. package/script/auth/browser/session.js +79 -0
  283. package/script/auth/browser/storage.d.ts +12 -0
  284. package/script/auth/browser/storage.d.ts.map +1 -0
  285. package/script/auth/browser/storage.js +67 -0
  286. package/script/auth/browser.d.ts +13 -0
  287. package/script/auth/browser.d.ts.map +1 -0
  288. package/script/auth/browser.js +46 -0
  289. package/script/auth/keys.d.ts +5 -0
  290. package/script/auth/keys.d.ts.map +1 -0
  291. package/script/auth/keys.js +56 -0
  292. package/script/auth/mod.d.ts +18 -0
  293. package/script/auth/mod.d.ts.map +1 -0
  294. package/script/auth/mod.js +172 -0
  295. package/script/auth/proof.d.ts +9 -0
  296. package/script/auth/proof.d.ts.map +1 -0
  297. package/script/auth/proof.js +48 -0
  298. package/script/auth/protocol.d.ts +1212 -0
  299. package/script/auth/protocol.d.ts.map +1 -0
  300. package/script/auth/protocol.js +687 -0
  301. package/script/auth/schemas.d.ts +93 -0
  302. package/script/auth/schemas.d.ts.map +1 -0
  303. package/script/auth/schemas.js +67 -0
  304. package/script/auth/session_auth.d.ts +20 -0
  305. package/script/auth/session_auth.d.ts.map +1 -0
  306. package/script/auth/session_auth.js +45 -0
  307. package/script/auth/trellis_id.d.ts +2 -0
  308. package/script/auth/trellis_id.d.ts.map +1 -0
  309. package/script/auth/trellis_id.js +8 -0
  310. package/script/auth/types.d.ts +8 -0
  311. package/script/auth/types.d.ts.map +1 -0
  312. package/script/auth/utils.d.ts +11 -0
  313. package/script/auth/utils.d.ts.map +1 -0
  314. package/script/auth/utils.js +77 -0
  315. package/script/auth/workload_activation.d.ts +192 -0
  316. package/script/auth/workload_activation.d.ts.map +1 -0
  317. package/script/auth/workload_activation.js +308 -0
  318. package/script/contracts/canonical.d.ts +14 -0
  319. package/script/contracts/canonical.d.ts.map +1 -0
  320. package/script/contracts/canonical.js +144 -0
  321. package/script/contracts/mod.d.ts +462 -0
  322. package/script/contracts/mod.d.ts.map +1 -0
  323. package/script/contracts/mod.js +555 -0
  324. package/script/contracts/protocol.d.ts +301 -0
  325. package/script/contracts/protocol.d.ts.map +1 -0
  326. package/script/contracts/protocol.js +136 -0
  327. package/script/contracts/runtime.d.ts +48 -0
  328. package/script/contracts/runtime.d.ts.map +1 -0
  329. package/script/contracts/runtime.js +13 -0
  330. package/script/contracts/schema_pointers.d.ts +18 -0
  331. package/script/contracts/schema_pointers.d.ts.map +1 -0
  332. package/script/contracts/schema_pointers.js +63 -0
  333. package/script/telemetry/carrier.d.ts +9 -0
  334. package/script/telemetry/carrier.d.ts.map +1 -0
  335. package/script/telemetry/carrier.js +25 -0
  336. package/script/telemetry/core.d.ts +8 -0
  337. package/script/telemetry/core.d.ts.map +1 -0
  338. package/script/telemetry/core.js +24 -0
  339. package/script/telemetry/env.d.ts +2 -0
  340. package/script/telemetry/env.d.ts.map +1 -0
  341. package/script/telemetry/env.js +12 -0
  342. package/script/telemetry/mod.d.ts +11 -0
  343. package/script/telemetry/mod.d.ts.map +1 -0
  344. package/script/telemetry/mod.js +29 -0
  345. package/script/telemetry/nats.d.ts +7 -0
  346. package/script/telemetry/nats.d.ts.map +1 -0
  347. package/script/telemetry/nats.js +9 -0
  348. package/script/telemetry/result.d.ts +2 -0
  349. package/script/telemetry/result.d.ts.map +1 -0
  350. package/script/telemetry/result.js +21 -0
  351. package/script/telemetry/runtime.d.ts +2 -0
  352. package/script/telemetry/runtime.d.ts.map +1 -0
  353. package/script/telemetry/runtime.js +79 -0
  354. package/script/telemetry/trace.d.ts +5 -0
  355. package/script/telemetry/trace.d.ts.map +1 -0
  356. package/script/telemetry/trace.js +31 -0
  357. package/script/telemetry/trellis.d.ts +3 -0
  358. package/script/telemetry/trellis.d.ts.map +1 -0
  359. package/script/telemetry/trellis.js +14 -0
  360. package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts +12 -0
  361. package/script/trellis/_sdk/activity/_dnt.polyfills.d.ts.map +1 -0
  362. package/script/trellis/_sdk/activity/_dnt.polyfills.js +16 -0
  363. package/script/trellis/_sdk/activity/api.d.ts +10 -0
  364. package/script/trellis/_sdk/activity/api.d.ts.map +1 -0
  365. package/script/trellis/_sdk/activity/api.js +46 -0
  366. package/script/trellis/_sdk/activity/contract.d.ts +8 -0
  367. package/script/trellis/_sdk/activity/contract.d.ts.map +1 -0
  368. package/script/trellis/_sdk/activity/contract.js +62 -0
  369. package/script/trellis/_sdk/activity/mod.d.ts +7 -0
  370. package/script/trellis/_sdk/activity/mod.d.ts.map +1 -0
  371. package/script/trellis/_sdk/activity/mod.js +30 -0
  372. package/script/trellis/_sdk/activity/package.json +3 -0
  373. package/script/trellis/_sdk/activity/schemas.d.ts +607 -0
  374. package/script/trellis/_sdk/activity/schemas.d.ts.map +1 -0
  375. package/script/trellis/_sdk/activity/schemas.js +36 -0
  376. package/script/trellis/_sdk/activity/types.d.ts +96 -0
  377. package/script/trellis/_sdk/activity/types.d.ts.map +1 -0
  378. package/script/trellis/_sdk/activity/types.js +6 -0
  379. package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts +12 -0
  380. package/script/trellis/_sdk/auth/_dnt.polyfills.d.ts.map +1 -0
  381. package/script/trellis/_sdk/auth/_dnt.polyfills.js +16 -0
  382. package/script/trellis/_sdk/auth/api.d.ts +10 -0
  383. package/script/trellis/_sdk/auth/api.d.ts.map +1 -0
  384. package/script/trellis/_sdk/auth/api.js +357 -0
  385. package/script/trellis/_sdk/auth/contract.d.ts +28 -0
  386. package/script/trellis/_sdk/auth/contract.d.ts.map +1 -0
  387. package/script/trellis/_sdk/auth/contract.js +86 -0
  388. package/script/trellis/_sdk/auth/mod.d.ts +7 -0
  389. package/script/trellis/_sdk/auth/mod.d.ts.map +1 -0
  390. package/script/trellis/_sdk/auth/mod.js +31 -0
  391. package/script/trellis/_sdk/auth/package.json +3 -0
  392. package/script/trellis/_sdk/auth/schemas.d.ts +8967 -0
  393. package/script/trellis/_sdk/auth/schemas.d.ts.map +1 -0
  394. package/script/trellis/_sdk/auth/schemas.js +309 -0
  395. package/script/trellis/_sdk/auth/types.d.ts +1232 -0
  396. package/script/trellis/_sdk/auth/types.d.ts.map +1 -0
  397. package/script/trellis/_sdk/auth/types.js +6 -0
  398. package/script/trellis/_sdk/core/_dnt.polyfills.d.ts +12 -0
  399. package/script/trellis/_sdk/core/_dnt.polyfills.d.ts.map +1 -0
  400. package/script/trellis/_sdk/core/_dnt.polyfills.js +16 -0
  401. package/script/trellis/_sdk/core/api.d.ts +10 -0
  402. package/script/trellis/_sdk/core/api.d.ts.map +1 -0
  403. package/script/trellis/_sdk/core/api.js +39 -0
  404. package/script/trellis/_sdk/core/contract.d.ts +8 -0
  405. package/script/trellis/_sdk/core/contract.d.ts.map +1 -0
  406. package/script/trellis/_sdk/core/contract.js +62 -0
  407. package/script/trellis/_sdk/core/mod.d.ts +7 -0
  408. package/script/trellis/_sdk/core/mod.d.ts.map +1 -0
  409. package/script/trellis/_sdk/core/mod.js +30 -0
  410. package/script/trellis/_sdk/core/package.json +3 -0
  411. package/script/trellis/_sdk/core/schemas.d.ts +1144 -0
  412. package/script/trellis/_sdk/core/schemas.d.ts.map +1 -0
  413. package/script/trellis/_sdk/core/schemas.js +31 -0
  414. package/script/trellis/_sdk/core/types.d.ts +176 -0
  415. package/script/trellis/_sdk/core/types.d.ts.map +1 -0
  416. package/script/trellis/_sdk/core/types.js +6 -0
  417. package/script/trellis/auth.d.ts +2 -0
  418. package/script/trellis/auth.d.ts.map +1 -0
  419. package/script/trellis/auth.js +17 -0
  420. package/script/trellis/client.d.ts +8 -6
  421. package/script/trellis/client.d.ts.map +1 -1
  422. package/script/trellis/client.js +54 -3
  423. package/script/trellis/codec.d.ts +5 -4
  424. package/script/trellis/codec.d.ts.map +1 -1
  425. package/script/trellis/codec.js +31 -17
  426. package/script/trellis/contract.d.ts +11 -0
  427. package/script/trellis/contract.d.ts.map +1 -0
  428. package/script/trellis/contract.js +18 -0
  429. package/script/trellis/contracts.d.ts +4 -0
  430. package/script/trellis/contracts.d.ts.map +1 -0
  431. package/script/trellis/contracts.js +20 -0
  432. package/script/trellis/errors/AuthError.d.ts +2 -2
  433. package/script/trellis/errors/AuthError.d.ts.map +1 -1
  434. package/script/trellis/errors/AuthError.js +13 -2
  435. package/script/trellis/errors/KVError.d.ts +1 -1
  436. package/script/trellis/errors/KVError.d.ts.map +1 -1
  437. package/script/trellis/errors/KVError.js +2 -2
  438. package/script/trellis/errors/RemoteError.d.ts +4 -4
  439. package/script/trellis/errors/RemoteError.d.ts.map +1 -1
  440. package/script/trellis/errors/RemoteError.js +11 -11
  441. package/script/trellis/errors/TrellisError.d.ts +1 -1
  442. package/script/trellis/errors/TrellisError.d.ts.map +1 -1
  443. package/script/trellis/errors/TrellisError.js +2 -2
  444. package/script/trellis/errors/ValidationError.d.ts +1 -1
  445. package/script/trellis/errors/ValidationError.d.ts.map +1 -1
  446. package/script/trellis/errors/ValidationError.js +2 -2
  447. package/script/trellis/errors/index.d.ts +14 -14
  448. package/script/trellis/errors/index.d.ts.map +1 -1
  449. package/script/trellis/errors/index.js +31 -31
  450. package/script/trellis/globals.d.ts +9 -1
  451. package/script/trellis/globals.d.ts.map +1 -1
  452. package/script/trellis/globals.js +16 -8
  453. package/script/trellis/helpers.d.ts +1 -1
  454. package/script/trellis/helpers.d.ts.map +1 -1
  455. package/script/trellis/index.d.ts +17 -10
  456. package/script/trellis/index.d.ts.map +1 -1
  457. package/script/trellis/index.js +57 -22
  458. package/script/trellis/kv.d.ts +11 -8
  459. package/script/trellis/kv.d.ts.map +1 -1
  460. package/script/trellis/kv.js +91 -68
  461. package/script/trellis/models/trellis/TrellisError.d.ts +1 -1
  462. package/script/trellis/models/trellis/TrellisError.d.ts.map +1 -1
  463. package/script/trellis/models/trellis/TrellisError.js +8 -8
  464. package/script/trellis/operations.d.ts +81 -0
  465. package/script/trellis/operations.d.ts.map +1 -0
  466. package/script/trellis/operations.js +212 -0
  467. package/script/trellis/sdk/core.d.ts +3 -0
  468. package/script/trellis/sdk/core.d.ts.map +1 -0
  469. package/script/trellis/sdk/core.js +20 -0
  470. package/script/trellis/tasks.d.ts +3 -3
  471. package/script/trellis/tasks.d.ts.map +1 -1
  472. package/script/trellis/tasks.js +5 -5
  473. package/script/trellis/tracing.d.ts +2 -3
  474. package/script/trellis/tracing.d.ts.map +1 -1
  475. package/script/trellis/tracing.js +17 -20
  476. package/script/trellis/trellis.d.ts +169 -80
  477. package/script/trellis/trellis.d.ts.map +1 -1
  478. package/script/trellis/trellis.js +379 -177
  479. package/script/trellis/workload.d.ts +45 -0
  480. package/script/trellis/workload.d.ts.map +1 -0
  481. package/script/trellis/workload.js +172 -0
  482. package/script/_dnt.polyfills.d.ts +0 -7
  483. package/script/_dnt.polyfills.d.ts.map +0 -1
  484. package/script/trellis/browser.d.ts +0 -11
  485. package/script/trellis/browser.d.ts.map +0 -1
  486. package/script/trellis/browser.js +0 -21
  487. package/script/trellis/env.d.ts +0 -2
  488. package/script/trellis/env.d.ts.map +0 -1
  489. package/script/trellis/env.js +0 -5
  490. /package/script/{_dnt.polyfills.js → auth/types.js} +0 -0
@@ -0,0 +1,96 @@
1
+ export declare const CONTRACT_ID: "trellis.activity@v1";
2
+ export declare const CONTRACT_DIGEST: "mP5-UZveN1iEWgDwCvoVBwtz7sgxWwPnHY1rJr4cT6Q";
3
+ export type ActivityGetInput = {
4
+ id: string;
5
+ };
6
+ export type ActivityGetOutput = {
7
+ entry: {
8
+ actor?: string;
9
+ id: string;
10
+ kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
11
+ metadata?: {
12
+ [k: string]: unknown;
13
+ };
14
+ occurredAt: string;
15
+ principalId: string;
16
+ principalLabel: string;
17
+ principalOrigin: string;
18
+ sessionKey?: string;
19
+ summary: string;
20
+ userNkey?: string;
21
+ };
22
+ };
23
+ export type ActivityHealthInput = {};
24
+ export type ActivityHealthOutput = {
25
+ checks: Array<{
26
+ error?: string;
27
+ latencyMs: number;
28
+ name: string;
29
+ status: ("ok" | "failed");
30
+ }>;
31
+ service: string;
32
+ status: ("healthy" | "unhealthy" | "degraded");
33
+ timestamp: string;
34
+ };
35
+ export type ActivityListInput = {
36
+ kind?: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
37
+ limit?: number;
38
+ };
39
+ export type ActivityListOutput = {
40
+ entries: Array<{
41
+ actor?: string;
42
+ id: string;
43
+ kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
44
+ metadata?: {
45
+ [k: string]: unknown;
46
+ };
47
+ occurredAt: string;
48
+ principalId: string;
49
+ principalLabel: string;
50
+ principalOrigin: string;
51
+ sessionKey?: string;
52
+ summary: string;
53
+ userNkey?: string;
54
+ }>;
55
+ };
56
+ export type ActivityRecordedEvent = {
57
+ actor?: string;
58
+ header: {
59
+ id: string;
60
+ time: string;
61
+ };
62
+ id: string;
63
+ kind: ("auth.connect" | "auth.disconnect" | "auth.session_revoked" | "auth.connection_kicked");
64
+ metadata?: {
65
+ [k: string]: unknown;
66
+ };
67
+ occurredAt: string;
68
+ principalId: string;
69
+ principalLabel: string;
70
+ principalOrigin: string;
71
+ sessionKey?: string;
72
+ summary: string;
73
+ userNkey?: string;
74
+ };
75
+ export interface RpcMap {
76
+ "Activity.Get": {
77
+ input: ActivityGetInput;
78
+ output: ActivityGetOutput;
79
+ };
80
+ "Activity.Health": {
81
+ input: ActivityHealthInput;
82
+ output: ActivityHealthOutput;
83
+ };
84
+ "Activity.List": {
85
+ input: ActivityListInput;
86
+ output: ActivityListOutput;
87
+ };
88
+ }
89
+ export interface EventMap {
90
+ "Activity.Recorded": {
91
+ event: ActivityRecordedEvent;
92
+ };
93
+ }
94
+ export interface SubjectMap {
95
+ }
96
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ // Generated from ./generated/contracts/manifests/trellis.activity@v1.json
2
+ export const CONTRACT_ID = "trellis.activity@v1";
3
+ export const CONTRACT_DIGEST = "mP5-UZveN1iEWgDwCvoVBwtz7sgxWwPnHY1rJr4cT6Q";
@@ -0,0 +1,12 @@
1
+ declare global {
2
+ interface Object {
3
+ /**
4
+ * Determines whether an object has a property with the specified name.
5
+ * @param o An object.
6
+ * @param v A property name.
7
+ */
8
+ hasOwn(o: object, v: PropertyKey): boolean;
9
+ }
10
+ }
11
+ export {};
12
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAeA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ // https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
2
+ if (!Object.hasOwn) {
3
+ Object.defineProperty(Object, "hasOwn", {
4
+ value: function (object, property) {
5
+ if (object == null) {
6
+ throw new TypeError("Cannot convert undefined or null to object");
7
+ }
8
+ return Object.prototype.hasOwnProperty.call(Object(object), property);
9
+ },
10
+ configurable: true,
11
+ enumerable: false,
12
+ writable: true,
13
+ });
14
+ }
15
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const OWNED_API: TrellisAPI;
2
+ export declare const API: {
3
+ readonly owned: TrellisAPI;
4
+ readonly used: TrellisAPI;
5
+ readonly trellis: TrellisAPI;
6
+ };
7
+ export type OwnedApi = typeof API.owned;
8
+ export type Api = typeof API.trellis;
9
+ export type ApiViews = typeof API;
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,YA2VA,CAAC;AAIvB,eAAO,MAAM,GAAG;;;;CAIN,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;AACxC,MAAM,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,OAAO,CAAC;AACrC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC"}
@@ -0,0 +1,354 @@
1
+ import { schema } from "../../../contracts/mod.js";
2
+ import { SCHEMAS } from "./schemas.js";
3
+ export const OWNED_API = {
4
+ rpc: {
5
+ "Auth.ActivateWorkload": {
6
+ subject: "rpc.v1.Auth.ActivateWorkload",
7
+ input: schema(SCHEMAS.rpc["Auth.ActivateWorkload"].input),
8
+ output: schema(SCHEMAS.rpc["Auth.ActivateWorkload"].output),
9
+ callerCapabilities: [],
10
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
11
+ },
12
+ "Auth.ClearLoginPortalSelection": {
13
+ subject: "rpc.v1.Auth.ClearLoginPortalSelection",
14
+ input: schema(SCHEMAS.rpc["Auth.ClearLoginPortalSelection"].input),
15
+ output: schema(SCHEMAS.rpc["Auth.ClearLoginPortalSelection"].output),
16
+ callerCapabilities: ["admin"],
17
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
18
+ },
19
+ "Auth.ClearWorkloadPortalSelection": {
20
+ subject: "rpc.v1.Auth.ClearWorkloadPortalSelection",
21
+ input: schema(SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].input),
22
+ output: schema(SCHEMAS.rpc["Auth.ClearWorkloadPortalSelection"].output),
23
+ callerCapabilities: ["admin"],
24
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
25
+ },
26
+ "Auth.CreatePortal": {
27
+ subject: "rpc.v1.Auth.CreatePortal",
28
+ input: schema(SCHEMAS.rpc["Auth.CreatePortal"].input),
29
+ output: schema(SCHEMAS.rpc["Auth.CreatePortal"].output),
30
+ callerCapabilities: ["admin"],
31
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
32
+ },
33
+ "Auth.CreateWorkloadProfile": {
34
+ subject: "rpc.v1.Auth.CreateWorkloadProfile",
35
+ input: schema(SCHEMAS.rpc["Auth.CreateWorkloadProfile"].input),
36
+ output: schema(SCHEMAS.rpc["Auth.CreateWorkloadProfile"].output),
37
+ callerCapabilities: ["admin"],
38
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
39
+ },
40
+ "Auth.DecideWorkloadActivationReview": {
41
+ subject: "rpc.v1.Auth.DecideWorkloadActivationReview",
42
+ input: schema(SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].input),
43
+ output: schema(SCHEMAS.rpc["Auth.DecideWorkloadActivationReview"].output),
44
+ callerCapabilities: ["admin", "workload.review"],
45
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
46
+ },
47
+ "Auth.DisablePortal": {
48
+ subject: "rpc.v1.Auth.DisablePortal",
49
+ input: schema(SCHEMAS.rpc["Auth.DisablePortal"].input),
50
+ output: schema(SCHEMAS.rpc["Auth.DisablePortal"].output),
51
+ callerCapabilities: ["admin"],
52
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
53
+ },
54
+ "Auth.DisableWorkloadInstance": {
55
+ subject: "rpc.v1.Auth.DisableWorkloadInstance",
56
+ input: schema(SCHEMAS.rpc["Auth.DisableWorkloadInstance"].input),
57
+ output: schema(SCHEMAS.rpc["Auth.DisableWorkloadInstance"].output),
58
+ callerCapabilities: ["admin"],
59
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
60
+ },
61
+ "Auth.DisableWorkloadProfile": {
62
+ subject: "rpc.v1.Auth.DisableWorkloadProfile",
63
+ input: schema(SCHEMAS.rpc["Auth.DisableWorkloadProfile"].input),
64
+ output: schema(SCHEMAS.rpc["Auth.DisableWorkloadProfile"].output),
65
+ callerCapabilities: ["admin"],
66
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
67
+ },
68
+ "Auth.GetInstalledContract": {
69
+ subject: "rpc.v1.Auth.GetInstalledContract",
70
+ input: schema(SCHEMAS.rpc["Auth.GetInstalledContract"].input),
71
+ output: schema(SCHEMAS.rpc["Auth.GetInstalledContract"].output),
72
+ callerCapabilities: ["admin"],
73
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
74
+ },
75
+ "Auth.GetLoginPortalDefault": {
76
+ subject: "rpc.v1.Auth.GetLoginPortalDefault",
77
+ input: schema(SCHEMAS.rpc["Auth.GetLoginPortalDefault"].input),
78
+ output: schema(SCHEMAS.rpc["Auth.GetLoginPortalDefault"].output),
79
+ callerCapabilities: ["admin"],
80
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
81
+ },
82
+ "Auth.GetWorkloadActivationStatus": {
83
+ subject: "rpc.v1.Auth.GetWorkloadActivationStatus",
84
+ input: schema(SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].input),
85
+ output: schema(SCHEMAS.rpc["Auth.GetWorkloadActivationStatus"].output),
86
+ callerCapabilities: [],
87
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
88
+ },
89
+ "Auth.GetWorkloadConnectInfo": {
90
+ subject: "rpc.v1.Auth.GetWorkloadConnectInfo",
91
+ input: schema(SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].input),
92
+ output: schema(SCHEMAS.rpc["Auth.GetWorkloadConnectInfo"].output),
93
+ callerCapabilities: [],
94
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
95
+ },
96
+ "Auth.GetWorkloadPortalDefault": {
97
+ subject: "rpc.v1.Auth.GetWorkloadPortalDefault",
98
+ input: schema(SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].input),
99
+ output: schema(SCHEMAS.rpc["Auth.GetWorkloadPortalDefault"].output),
100
+ callerCapabilities: ["admin"],
101
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
102
+ },
103
+ "Auth.Health": {
104
+ subject: "rpc.v1.Auth.Health",
105
+ input: schema(SCHEMAS.rpc["Auth.Health"].input),
106
+ output: schema(SCHEMAS.rpc["Auth.Health"].output),
107
+ callerCapabilities: [],
108
+ errors: ["UnexpectedError"],
109
+ },
110
+ "Auth.InstallService": {
111
+ subject: "rpc.v1.Auth.InstallService",
112
+ input: schema(SCHEMAS.rpc["Auth.InstallService"].input),
113
+ output: schema(SCHEMAS.rpc["Auth.InstallService"].output),
114
+ callerCapabilities: ["admin"],
115
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
116
+ },
117
+ "Auth.KickConnection": {
118
+ subject: "rpc.v1.Auth.KickConnection",
119
+ input: schema(SCHEMAS.rpc["Auth.KickConnection"].input),
120
+ output: schema(SCHEMAS.rpc["Auth.KickConnection"].output),
121
+ callerCapabilities: ["admin"],
122
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
123
+ },
124
+ "Auth.ListApprovals": {
125
+ subject: "rpc.v1.Auth.ListApprovals",
126
+ input: schema(SCHEMAS.rpc["Auth.ListApprovals"].input),
127
+ output: schema(SCHEMAS.rpc["Auth.ListApprovals"].output),
128
+ callerCapabilities: [],
129
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
130
+ },
131
+ "Auth.ListConnections": {
132
+ subject: "rpc.v1.Auth.ListConnections",
133
+ input: schema(SCHEMAS.rpc["Auth.ListConnections"].input),
134
+ output: schema(SCHEMAS.rpc["Auth.ListConnections"].output),
135
+ callerCapabilities: ["admin"],
136
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
137
+ },
138
+ "Auth.ListInstalledContracts": {
139
+ subject: "rpc.v1.Auth.ListInstalledContracts",
140
+ input: schema(SCHEMAS.rpc["Auth.ListInstalledContracts"].input),
141
+ output: schema(SCHEMAS.rpc["Auth.ListInstalledContracts"].output),
142
+ callerCapabilities: ["admin"],
143
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
144
+ },
145
+ "Auth.ListLoginPortalSelections": {
146
+ subject: "rpc.v1.Auth.ListLoginPortalSelections",
147
+ input: schema(SCHEMAS.rpc["Auth.ListLoginPortalSelections"].input),
148
+ output: schema(SCHEMAS.rpc["Auth.ListLoginPortalSelections"].output),
149
+ callerCapabilities: ["admin"],
150
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
151
+ },
152
+ "Auth.ListPortals": {
153
+ subject: "rpc.v1.Auth.ListPortals",
154
+ input: schema(SCHEMAS.rpc["Auth.ListPortals"].input),
155
+ output: schema(SCHEMAS.rpc["Auth.ListPortals"].output),
156
+ callerCapabilities: ["admin"],
157
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
158
+ },
159
+ "Auth.ListServices": {
160
+ subject: "rpc.v1.Auth.ListServices",
161
+ input: schema(SCHEMAS.rpc["Auth.ListServices"].input),
162
+ output: schema(SCHEMAS.rpc["Auth.ListServices"].output),
163
+ callerCapabilities: ["admin"],
164
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
165
+ },
166
+ "Auth.ListSessions": {
167
+ subject: "rpc.v1.Auth.ListSessions",
168
+ input: schema(SCHEMAS.rpc["Auth.ListSessions"].input),
169
+ output: schema(SCHEMAS.rpc["Auth.ListSessions"].output),
170
+ callerCapabilities: ["admin"],
171
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
172
+ },
173
+ "Auth.ListUsers": {
174
+ subject: "rpc.v1.Auth.ListUsers",
175
+ input: schema(SCHEMAS.rpc["Auth.ListUsers"].input),
176
+ output: schema(SCHEMAS.rpc["Auth.ListUsers"].output),
177
+ callerCapabilities: ["admin"],
178
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
179
+ },
180
+ "Auth.ListWorkloadActivationReviews": {
181
+ subject: "rpc.v1.Auth.ListWorkloadActivationReviews",
182
+ input: schema(SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].input),
183
+ output: schema(SCHEMAS.rpc["Auth.ListWorkloadActivationReviews"].output),
184
+ callerCapabilities: ["admin"],
185
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
186
+ },
187
+ "Auth.ListWorkloadActivations": {
188
+ subject: "rpc.v1.Auth.ListWorkloadActivations",
189
+ input: schema(SCHEMAS.rpc["Auth.ListWorkloadActivations"].input),
190
+ output: schema(SCHEMAS.rpc["Auth.ListWorkloadActivations"].output),
191
+ callerCapabilities: ["admin"],
192
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
193
+ },
194
+ "Auth.ListWorkloadInstances": {
195
+ subject: "rpc.v1.Auth.ListWorkloadInstances",
196
+ input: schema(SCHEMAS.rpc["Auth.ListWorkloadInstances"].input),
197
+ output: schema(SCHEMAS.rpc["Auth.ListWorkloadInstances"].output),
198
+ callerCapabilities: ["admin"],
199
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
200
+ },
201
+ "Auth.ListWorkloadPortalSelections": {
202
+ subject: "rpc.v1.Auth.ListWorkloadPortalSelections",
203
+ input: schema(SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].input),
204
+ output: schema(SCHEMAS.rpc["Auth.ListWorkloadPortalSelections"].output),
205
+ callerCapabilities: ["admin"],
206
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
207
+ },
208
+ "Auth.ListWorkloadProfiles": {
209
+ subject: "rpc.v1.Auth.ListWorkloadProfiles",
210
+ input: schema(SCHEMAS.rpc["Auth.ListWorkloadProfiles"].input),
211
+ output: schema(SCHEMAS.rpc["Auth.ListWorkloadProfiles"].output),
212
+ callerCapabilities: ["admin"],
213
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
214
+ },
215
+ "Auth.Logout": {
216
+ subject: "rpc.v1.Auth.Logout",
217
+ input: schema(SCHEMAS.rpc["Auth.Logout"].input),
218
+ output: schema(SCHEMAS.rpc["Auth.Logout"].output),
219
+ callerCapabilities: [],
220
+ errors: ["AuthError", "UnexpectedError"],
221
+ },
222
+ "Auth.Me": {
223
+ subject: "rpc.v1.Auth.Me",
224
+ input: schema(SCHEMAS.rpc["Auth.Me"].input),
225
+ output: schema(SCHEMAS.rpc["Auth.Me"].output),
226
+ callerCapabilities: [],
227
+ errors: ["AuthError", "UnexpectedError"],
228
+ },
229
+ "Auth.ProvisionWorkloadInstance": {
230
+ subject: "rpc.v1.Auth.ProvisionWorkloadInstance",
231
+ input: schema(SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].input),
232
+ output: schema(SCHEMAS.rpc["Auth.ProvisionWorkloadInstance"].output),
233
+ callerCapabilities: ["admin"],
234
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
235
+ },
236
+ "Auth.RenewBindingToken": {
237
+ subject: "rpc.v1.Auth.RenewBindingToken",
238
+ input: schema(SCHEMAS.rpc["Auth.RenewBindingToken"].input),
239
+ output: schema(SCHEMAS.rpc["Auth.RenewBindingToken"].output),
240
+ callerCapabilities: [],
241
+ errors: ["AuthError", "UnexpectedError"],
242
+ },
243
+ "Auth.RevokeApproval": {
244
+ subject: "rpc.v1.Auth.RevokeApproval",
245
+ input: schema(SCHEMAS.rpc["Auth.RevokeApproval"].input),
246
+ output: schema(SCHEMAS.rpc["Auth.RevokeApproval"].output),
247
+ callerCapabilities: [],
248
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
249
+ },
250
+ "Auth.RevokeSession": {
251
+ subject: "rpc.v1.Auth.RevokeSession",
252
+ input: schema(SCHEMAS.rpc["Auth.RevokeSession"].input),
253
+ output: schema(SCHEMAS.rpc["Auth.RevokeSession"].output),
254
+ callerCapabilities: ["admin"],
255
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
256
+ },
257
+ "Auth.RevokeWorkloadActivation": {
258
+ subject: "rpc.v1.Auth.RevokeWorkloadActivation",
259
+ input: schema(SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].input),
260
+ output: schema(SCHEMAS.rpc["Auth.RevokeWorkloadActivation"].output),
261
+ callerCapabilities: ["admin"],
262
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
263
+ },
264
+ "Auth.SetLoginPortalDefault": {
265
+ subject: "rpc.v1.Auth.SetLoginPortalDefault",
266
+ input: schema(SCHEMAS.rpc["Auth.SetLoginPortalDefault"].input),
267
+ output: schema(SCHEMAS.rpc["Auth.SetLoginPortalDefault"].output),
268
+ callerCapabilities: ["admin"],
269
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
270
+ },
271
+ "Auth.SetLoginPortalSelection": {
272
+ subject: "rpc.v1.Auth.SetLoginPortalSelection",
273
+ input: schema(SCHEMAS.rpc["Auth.SetLoginPortalSelection"].input),
274
+ output: schema(SCHEMAS.rpc["Auth.SetLoginPortalSelection"].output),
275
+ callerCapabilities: ["admin"],
276
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
277
+ },
278
+ "Auth.SetWorkloadPortalDefault": {
279
+ subject: "rpc.v1.Auth.SetWorkloadPortalDefault",
280
+ input: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].input),
281
+ output: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalDefault"].output),
282
+ callerCapabilities: ["admin"],
283
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
284
+ },
285
+ "Auth.SetWorkloadPortalSelection": {
286
+ subject: "rpc.v1.Auth.SetWorkloadPortalSelection",
287
+ input: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].input),
288
+ output: schema(SCHEMAS.rpc["Auth.SetWorkloadPortalSelection"].output),
289
+ callerCapabilities: ["admin"],
290
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
291
+ },
292
+ "Auth.UpdateUser": {
293
+ subject: "rpc.v1.Auth.UpdateUser",
294
+ input: schema(SCHEMAS.rpc["Auth.UpdateUser"].input),
295
+ output: schema(SCHEMAS.rpc["Auth.UpdateUser"].output),
296
+ callerCapabilities: ["admin"],
297
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
298
+ },
299
+ "Auth.UpgradeServiceContract": {
300
+ subject: "rpc.v1.Auth.UpgradeServiceContract",
301
+ input: schema(SCHEMAS.rpc["Auth.UpgradeServiceContract"].input),
302
+ output: schema(SCHEMAS.rpc["Auth.UpgradeServiceContract"].output),
303
+ callerCapabilities: ["admin"],
304
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
305
+ },
306
+ "Auth.ValidateRequest": {
307
+ subject: "rpc.v1.Auth.ValidateRequest",
308
+ input: schema(SCHEMAS.rpc["Auth.ValidateRequest"].input),
309
+ output: schema(SCHEMAS.rpc["Auth.ValidateRequest"].output),
310
+ callerCapabilities: ["service"],
311
+ errors: ["AuthError", "ValidationError", "UnexpectedError"],
312
+ },
313
+ },
314
+ operations: {},
315
+ events: {
316
+ "Auth.Connect": {
317
+ subject: "events.v1.Auth.Connect",
318
+ event: schema(SCHEMAS.events["Auth.Connect"].event),
319
+ publishCapabilities: ["service:events:auth"],
320
+ subscribeCapabilities: ["service:events:auth"],
321
+ },
322
+ "Auth.ConnectionKicked": {
323
+ subject: "events.v1.Auth.ConnectionKicked",
324
+ event: schema(SCHEMAS.events["Auth.ConnectionKicked"].event),
325
+ publishCapabilities: ["service:events:auth"],
326
+ subscribeCapabilities: ["service:events:auth"],
327
+ },
328
+ "Auth.Disconnect": {
329
+ subject: "events.v1.Auth.Disconnect",
330
+ event: schema(SCHEMAS.events["Auth.Disconnect"].event),
331
+ publishCapabilities: ["service:events:auth"],
332
+ subscribeCapabilities: ["service:events:auth"],
333
+ },
334
+ "Auth.SessionRevoked": {
335
+ subject: "events.v1.Auth.SessionRevoked",
336
+ event: schema(SCHEMAS.events["Auth.SessionRevoked"].event),
337
+ publishCapabilities: ["service:events:auth"],
338
+ subscribeCapabilities: ["service:events:auth"],
339
+ },
340
+ "Auth.WorkloadActivationReviewRequested": {
341
+ subject: "events.v1.Auth.WorkloadActivationReviewRequested",
342
+ event: schema(SCHEMAS.events["Auth.WorkloadActivationReviewRequested"].event),
343
+ publishCapabilities: ["service:events:auth"],
344
+ subscribeCapabilities: ["workload.review"],
345
+ },
346
+ },
347
+ subjects: {},
348
+ };
349
+ const EMPTY_API = { rpc: {}, operations: {}, events: {}, subjects: {} };
350
+ export const API = {
351
+ owned: OWNED_API,
352
+ used: EMPTY_API,
353
+ trellis: OWNED_API,
354
+ };
@@ -0,0 +1,28 @@
1
+ import type { ContractDependencyUse, SdkContractModule, TrellisContractV1, UseSpec } from "../../../contracts/mod.js";
2
+ import { API } from "./api.js";
3
+ export declare const CONTRACT_ID: "trellis.auth@v1";
4
+ export declare const CONTRACT_DIGEST: "Nf__I64IhjOU59OwMTk0w6r0AuN8O9WDMmNQ-YM3oqk";
5
+ export declare const CONTRACT: TrellisContractV1;
6
+ declare const DEFAULT_AUTH_RPC_CALL: readonly ["Auth.Me", "Auth.Logout", "Auth.RenewBindingToken"];
7
+ type AuthOwnedApi = typeof API.owned;
8
+ type AuthUseSpec = UseSpec<AuthOwnedApi>;
9
+ type DefaultAuthRpcCall = typeof DEFAULT_AUTH_RPC_CALL;
10
+ type WithDefaultAuthRpcCall<TSpec extends AuthUseSpec | undefined> = TSpec extends {
11
+ rpc?: {
12
+ call?: infer TCall extends readonly string[];
13
+ };
14
+ } ? readonly [...DefaultAuthRpcCall, ...TCall] : DefaultAuthRpcCall;
15
+ type WithDefaultAuthUseSpec<TSpec extends AuthUseSpec | undefined> = (TSpec extends AuthUseSpec ? Omit<TSpec, "rpc"> : {}) & {
16
+ rpc: {
17
+ call: WithDefaultAuthRpcCall<TSpec>;
18
+ };
19
+ };
20
+ type AuthUseDefaultsFn = <const TSpec extends AuthUseSpec | undefined = undefined>(spec?: TSpec) => ContractDependencyUse<typeof CONTRACT_ID, AuthOwnedApi, WithDefaultAuthUseSpec<TSpec>>;
21
+ type AuthModule = SdkContractModule<typeof CONTRACT_ID, typeof API.owned> & {
22
+ useDefaults: AuthUseDefaultsFn;
23
+ };
24
+ export declare const auth: AuthModule;
25
+ export declare const use: any;
26
+ export declare const useDefaults: any;
27
+ export {};
28
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC1H,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,eAAO,MAAM,WAAW,mBAA6B,CAAC;AACtD,eAAO,MAAM,eAAe,+CAAyD,CAAC;AACtF,eAAO,MAAM,QAAQ,EAAo91E,iBAAiB,CAAC;AA2B3/1E,QAAA,MAAM,qBAAqB,+DAIjB,CAAC;AAEX,KAAK,YAAY,GAAG,OAAO,GAAG,CAAC,KAAK,CAAC;AACrC,KAAK,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AACzC,KAAK,kBAAkB,GAAG,OAAO,qBAAqB,CAAC;AACvD,KAAK,sBAAsB,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,IAC/D,KAAK,SAAS;IAAE,GAAG,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,KAAK,SAAS,SAAS,MAAM,EAAE,CAAA;KAAE,CAAA;CAAE,GACpE,SAAS,CAAC,GAAG,kBAAkB,EAAE,GAAG,KAAK,CAAC,GAC1C,kBAAkB,CAAC;AACzB,KAAK,sBAAsB,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,IAC/D,CAAC,KAAK,SAAS,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG;IACtD,GAAG,EAAE;QACH,IAAI,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;KACrC,CAAC;CACH,CAAC;AACJ,KAAK,iBAAiB,GAAG,CACvB,KAAK,CAAC,KAAK,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EACvD,IAAI,CAAC,EAAE,KAAK,KAAK,qBAAqB,CACtC,OAAO,WAAW,EAClB,YAAY,EACZ,sBAAsB,CAAC,KAAK,CAAC,CAC9B,CAAC;AACF,KAAK,UAAU,GAAG,iBAAiB,CAAC,OAAO,WAAW,EAAE,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG;IAC1E,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAmBF,eAAO,MAAM,IAAI,EAAE,UAwClB,CAAC;AAEF,eAAO,MAAM,GAAG,KAAW,CAAC;AAC5B,eAAO,MAAM,WAAW,KAAmB,CAAC"}