@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,1212 @@
1
+ import type { StaticDecode } from "typebox";
2
+ import { Type } from "typebox";
3
+ export declare const DigestSchema: Type.TString;
4
+ export declare const OpenObjectSchema: Type.TUnsafe<Record<string, unknown>>;
5
+ export declare const ServiceViewSchema: Type.TObject<{
6
+ sessionKey: Type.TString;
7
+ displayName: Type.TString;
8
+ active: Type.TBoolean;
9
+ capabilities: Type.TArray<Type.TString>;
10
+ namespaces: Type.TArray<Type.TString>;
11
+ description: Type.TString;
12
+ contractId: Type.TOptional<Type.TString>;
13
+ contractDigest: Type.TOptional<Type.TString>;
14
+ resourceBindings: any;
15
+ createdAt: Type.TString;
16
+ }>;
17
+ export declare const ApprovalDecisionSchema: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
18
+ export declare const ContractApprovalViewSchema: Type.TObject<{
19
+ contractDigest: Type.TString;
20
+ contractId: Type.TString;
21
+ displayName: Type.TString;
22
+ description: Type.TString;
23
+ capabilities: Type.TArray<Type.TString>;
24
+ }>;
25
+ export declare const ApprovalRecordViewSchema: Type.TObject<{
26
+ user: Type.TString;
27
+ answer: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
28
+ answeredAt: Type.TString;
29
+ updatedAt: Type.TString;
30
+ approval: Type.TObject<{
31
+ contractDigest: Type.TString;
32
+ contractId: Type.TString;
33
+ displayName: Type.TString;
34
+ description: Type.TString;
35
+ capabilities: Type.TArray<Type.TString>;
36
+ }>;
37
+ }>;
38
+ export declare const AuthListServicesSchema: Type.TObject<{}>;
39
+ export declare const AuthListServicesResponseSchema: Type.TObject<{
40
+ services: Type.TArray<Type.TObject<{
41
+ sessionKey: Type.TString;
42
+ displayName: Type.TString;
43
+ active: Type.TBoolean;
44
+ capabilities: Type.TArray<Type.TString>;
45
+ namespaces: Type.TArray<Type.TString>;
46
+ description: Type.TString;
47
+ contractId: Type.TOptional<Type.TString>;
48
+ contractDigest: Type.TOptional<Type.TString>;
49
+ resourceBindings: any;
50
+ createdAt: Type.TString;
51
+ }>>;
52
+ }>;
53
+ export declare const AuthInstallServiceSchema: Type.TObject<{
54
+ sessionKey: Type.TString;
55
+ displayName: Type.TString;
56
+ active: Type.TOptional<Type.TBoolean>;
57
+ namespaces: Type.TArray<Type.TString>;
58
+ description: Type.TString;
59
+ contract: Type.TUnsafe<Record<string, unknown>>;
60
+ }>;
61
+ export declare const AuthInstallServiceResponseSchema: Type.TObject<{
62
+ success: Type.TBoolean;
63
+ sessionKey: Type.TString;
64
+ contractId: Type.TString;
65
+ contractDigest: Type.TString;
66
+ resourceBindings: any;
67
+ }>;
68
+ export declare const AuthUpgradeServiceContractSchema: Type.TObject<{
69
+ sessionKey: Type.TString;
70
+ contract: Type.TUnsafe<Record<string, unknown>>;
71
+ }>;
72
+ export declare const AuthUpgradeServiceContractResponseSchema: Type.TObject<{
73
+ success: Type.TBoolean;
74
+ sessionKey: Type.TString;
75
+ contractId: Type.TString;
76
+ contractDigest: Type.TString;
77
+ resourceBindings: any;
78
+ }>;
79
+ export declare const ContractAnalysisSummarySchema: Type.TObject<{
80
+ namespaces: Type.TArray<Type.TString>;
81
+ rpcMethods: Type.TNumber;
82
+ events: Type.TNumber;
83
+ natsPublish: Type.TNumber;
84
+ natsSubscribe: Type.TNumber;
85
+ kvResources: Type.TNumber;
86
+ jobsQueues: Type.TNumber;
87
+ streamResources: Type.TNumber;
88
+ }>;
89
+ export declare const ContractAnalysisKvResourceSchema: Type.TObject<{
90
+ alias: Type.TString;
91
+ purpose: Type.TString;
92
+ required: Type.TBoolean;
93
+ history: Type.TNumber;
94
+ ttlMs: Type.TNumber;
95
+ maxValueBytes: Type.TOptional<Type.TNumber>;
96
+ }>;
97
+ export declare const ContractAnalysisJobsQueueSchema: Type.TObject<{
98
+ queueType: Type.TString;
99
+ payload: Type.TObject<{
100
+ schema: Type.TString;
101
+ }>;
102
+ result: Type.TOptional<Type.TObject<{
103
+ schema: Type.TString;
104
+ }>>;
105
+ maxDeliver: Type.TNumber;
106
+ backoffMs: Type.TArray<Type.TNumber>;
107
+ ackWaitMs: Type.TNumber;
108
+ defaultDeadlineMs: Type.TOptional<Type.TNumber>;
109
+ progress: Type.TBoolean;
110
+ logs: Type.TBoolean;
111
+ dlq: Type.TBoolean;
112
+ concurrency: Type.TNumber;
113
+ }>;
114
+ export declare const ContractAnalysisStreamResourceSchema: Type.TObject<{
115
+ alias: Type.TString;
116
+ purpose: Type.TString;
117
+ required: Type.TBoolean;
118
+ retention: Type.TOptional<Type.TString>;
119
+ storage: Type.TOptional<Type.TString>;
120
+ numReplicas: Type.TOptional<Type.TNumber>;
121
+ maxAgeMs: Type.TOptional<Type.TNumber>;
122
+ maxBytes: Type.TOptional<Type.TNumber>;
123
+ maxMsgs: Type.TOptional<Type.TNumber>;
124
+ discard: Type.TOptional<Type.TString>;
125
+ subjects: Type.TArray<Type.TString>;
126
+ sources: Type.TOptional<Type.TArray<Type.TObject<{
127
+ fromAlias: Type.TString;
128
+ streamName: Type.TString;
129
+ filterSubject: Type.TOptional<Type.TString>;
130
+ subjectTransformDest: Type.TOptional<Type.TString>;
131
+ }>>>;
132
+ }>;
133
+ export declare const ContractAnalysisRpcMethodSchema: Type.TObject<{
134
+ key: Type.TString;
135
+ subject: Type.TString;
136
+ wildcardSubject: Type.TString;
137
+ callerCapabilities: Type.TArray<Type.TString>;
138
+ }>;
139
+ export declare const ContractAnalysisEventSchema: Type.TObject<{
140
+ key: Type.TString;
141
+ subject: Type.TString;
142
+ wildcardSubject: Type.TString;
143
+ publishCapabilities: Type.TArray<Type.TString>;
144
+ subscribeCapabilities: Type.TArray<Type.TString>;
145
+ }>;
146
+ export declare const ContractAnalysisSubjectSchema: Type.TObject<{
147
+ key: Type.TString;
148
+ subject: Type.TString;
149
+ publishCapabilities: Type.TArray<Type.TString>;
150
+ subscribeCapabilities: Type.TArray<Type.TString>;
151
+ }>;
152
+ export declare const ContractAnalysisNatsRuleSchema: Type.TObject<{
153
+ kind: Type.TString;
154
+ subject: Type.TString;
155
+ wildcardSubject: Type.TString;
156
+ requiredCapabilities: Type.TArray<Type.TString>;
157
+ }>;
158
+ export declare const ContractAnalysisSchema: Type.TObject<{
159
+ namespaces: Type.TArray<Type.TString>;
160
+ rpc: Type.TObject<{
161
+ methods: Type.TArray<Type.TObject<{
162
+ key: Type.TString;
163
+ subject: Type.TString;
164
+ wildcardSubject: Type.TString;
165
+ callerCapabilities: Type.TArray<Type.TString>;
166
+ }>>;
167
+ }>;
168
+ events: Type.TObject<{
169
+ events: Type.TArray<Type.TObject<{
170
+ key: Type.TString;
171
+ subject: Type.TString;
172
+ wildcardSubject: Type.TString;
173
+ publishCapabilities: Type.TArray<Type.TString>;
174
+ subscribeCapabilities: Type.TArray<Type.TString>;
175
+ }>>;
176
+ }>;
177
+ subjects: Type.TOptional<Type.TObject<{
178
+ subjects: Type.TArray<Type.TObject<{
179
+ key: Type.TString;
180
+ subject: Type.TString;
181
+ publishCapabilities: Type.TArray<Type.TString>;
182
+ subscribeCapabilities: Type.TArray<Type.TString>;
183
+ }>>;
184
+ }>>;
185
+ nats: Type.TObject<{
186
+ publish: Type.TArray<Type.TObject<{
187
+ kind: Type.TString;
188
+ subject: Type.TString;
189
+ wildcardSubject: Type.TString;
190
+ requiredCapabilities: Type.TArray<Type.TString>;
191
+ }>>;
192
+ subscribe: Type.TArray<Type.TObject<{
193
+ kind: Type.TString;
194
+ subject: Type.TString;
195
+ wildcardSubject: Type.TString;
196
+ requiredCapabilities: Type.TArray<Type.TString>;
197
+ }>>;
198
+ }>;
199
+ resources: Type.TObject<{
200
+ kv: Type.TArray<Type.TObject<{
201
+ alias: Type.TString;
202
+ purpose: Type.TString;
203
+ required: Type.TBoolean;
204
+ history: Type.TNumber;
205
+ ttlMs: Type.TNumber;
206
+ maxValueBytes: Type.TOptional<Type.TNumber>;
207
+ }>>;
208
+ jobs: Type.TArray<Type.TObject<{
209
+ queueType: Type.TString;
210
+ payload: Type.TObject<{
211
+ schema: Type.TString;
212
+ }>;
213
+ result: Type.TOptional<Type.TObject<{
214
+ schema: Type.TString;
215
+ }>>;
216
+ maxDeliver: Type.TNumber;
217
+ backoffMs: Type.TArray<Type.TNumber>;
218
+ ackWaitMs: Type.TNumber;
219
+ defaultDeadlineMs: Type.TOptional<Type.TNumber>;
220
+ progress: Type.TBoolean;
221
+ logs: Type.TBoolean;
222
+ dlq: Type.TBoolean;
223
+ concurrency: Type.TNumber;
224
+ }>>;
225
+ streams: Type.TArray<Type.TObject<{
226
+ alias: Type.TString;
227
+ purpose: Type.TString;
228
+ required: Type.TBoolean;
229
+ retention: Type.TOptional<Type.TString>;
230
+ storage: Type.TOptional<Type.TString>;
231
+ numReplicas: Type.TOptional<Type.TNumber>;
232
+ maxAgeMs: Type.TOptional<Type.TNumber>;
233
+ maxBytes: Type.TOptional<Type.TNumber>;
234
+ maxMsgs: Type.TOptional<Type.TNumber>;
235
+ discard: Type.TOptional<Type.TString>;
236
+ subjects: Type.TArray<Type.TString>;
237
+ sources: Type.TOptional<Type.TArray<Type.TObject<{
238
+ fromAlias: Type.TString;
239
+ streamName: Type.TString;
240
+ filterSubject: Type.TOptional<Type.TString>;
241
+ subjectTransformDest: Type.TOptional<Type.TString>;
242
+ }>>>;
243
+ }>>;
244
+ }>;
245
+ }>;
246
+ export declare const InstalledContractSchema: Type.TObject<{
247
+ digest: Type.TString;
248
+ id: Type.TString;
249
+ displayName: Type.TString;
250
+ description: Type.TString;
251
+ sessionKey: Type.TOptional<Type.TString>;
252
+ installedAt: Type.TString;
253
+ analysisSummary: Type.TOptional<Type.TObject<{
254
+ namespaces: Type.TArray<Type.TString>;
255
+ rpcMethods: Type.TNumber;
256
+ events: Type.TNumber;
257
+ natsPublish: Type.TNumber;
258
+ natsSubscribe: Type.TNumber;
259
+ kvResources: Type.TNumber;
260
+ jobsQueues: Type.TNumber;
261
+ streamResources: Type.TNumber;
262
+ }>>;
263
+ resourceBindings: any;
264
+ }>;
265
+ export declare const InstalledContractDetailSchema: Type.TObject<{
266
+ digest: Type.TString;
267
+ id: Type.TString;
268
+ displayName: Type.TString;
269
+ description: Type.TString;
270
+ sessionKey: Type.TOptional<Type.TString>;
271
+ installedAt: Type.TString;
272
+ analysisSummary: Type.TOptional<Type.TObject<{
273
+ namespaces: Type.TArray<Type.TString>;
274
+ rpcMethods: Type.TNumber;
275
+ events: Type.TNumber;
276
+ natsPublish: Type.TNumber;
277
+ natsSubscribe: Type.TNumber;
278
+ kvResources: Type.TNumber;
279
+ jobsQueues: Type.TNumber;
280
+ streamResources: Type.TNumber;
281
+ }>>;
282
+ analysis: Type.TOptional<Type.TObject<{
283
+ namespaces: Type.TArray<Type.TString>;
284
+ rpc: Type.TObject<{
285
+ methods: Type.TArray<Type.TObject<{
286
+ key: Type.TString;
287
+ subject: Type.TString;
288
+ wildcardSubject: Type.TString;
289
+ callerCapabilities: Type.TArray<Type.TString>;
290
+ }>>;
291
+ }>;
292
+ events: Type.TObject<{
293
+ events: Type.TArray<Type.TObject<{
294
+ key: Type.TString;
295
+ subject: Type.TString;
296
+ wildcardSubject: Type.TString;
297
+ publishCapabilities: Type.TArray<Type.TString>;
298
+ subscribeCapabilities: Type.TArray<Type.TString>;
299
+ }>>;
300
+ }>;
301
+ subjects: Type.TOptional<Type.TObject<{
302
+ subjects: Type.TArray<Type.TObject<{
303
+ key: Type.TString;
304
+ subject: Type.TString;
305
+ publishCapabilities: Type.TArray<Type.TString>;
306
+ subscribeCapabilities: Type.TArray<Type.TString>;
307
+ }>>;
308
+ }>>;
309
+ nats: Type.TObject<{
310
+ publish: Type.TArray<Type.TObject<{
311
+ kind: Type.TString;
312
+ subject: Type.TString;
313
+ wildcardSubject: Type.TString;
314
+ requiredCapabilities: Type.TArray<Type.TString>;
315
+ }>>;
316
+ subscribe: Type.TArray<Type.TObject<{
317
+ kind: Type.TString;
318
+ subject: Type.TString;
319
+ wildcardSubject: Type.TString;
320
+ requiredCapabilities: Type.TArray<Type.TString>;
321
+ }>>;
322
+ }>;
323
+ resources: Type.TObject<{
324
+ kv: Type.TArray<Type.TObject<{
325
+ alias: Type.TString;
326
+ purpose: Type.TString;
327
+ required: Type.TBoolean;
328
+ history: Type.TNumber;
329
+ ttlMs: Type.TNumber;
330
+ maxValueBytes: Type.TOptional<Type.TNumber>;
331
+ }>>;
332
+ jobs: Type.TArray<Type.TObject<{
333
+ queueType: Type.TString;
334
+ payload: Type.TObject<{
335
+ schema: Type.TString;
336
+ }>;
337
+ result: Type.TOptional<Type.TObject<{
338
+ schema: Type.TString;
339
+ }>>;
340
+ maxDeliver: Type.TNumber;
341
+ backoffMs: Type.TArray<Type.TNumber>;
342
+ ackWaitMs: Type.TNumber;
343
+ defaultDeadlineMs: Type.TOptional<Type.TNumber>;
344
+ progress: Type.TBoolean;
345
+ logs: Type.TBoolean;
346
+ dlq: Type.TBoolean;
347
+ concurrency: Type.TNumber;
348
+ }>>;
349
+ streams: Type.TArray<Type.TObject<{
350
+ alias: Type.TString;
351
+ purpose: Type.TString;
352
+ required: Type.TBoolean;
353
+ retention: Type.TOptional<Type.TString>;
354
+ storage: Type.TOptional<Type.TString>;
355
+ numReplicas: Type.TOptional<Type.TNumber>;
356
+ maxAgeMs: Type.TOptional<Type.TNumber>;
357
+ maxBytes: Type.TOptional<Type.TNumber>;
358
+ maxMsgs: Type.TOptional<Type.TNumber>;
359
+ discard: Type.TOptional<Type.TString>;
360
+ subjects: Type.TArray<Type.TString>;
361
+ sources: Type.TOptional<Type.TArray<Type.TObject<{
362
+ fromAlias: Type.TString;
363
+ streamName: Type.TString;
364
+ filterSubject: Type.TOptional<Type.TString>;
365
+ subjectTransformDest: Type.TOptional<Type.TString>;
366
+ }>>>;
367
+ }>>;
368
+ }>;
369
+ }>>;
370
+ resources: any;
371
+ resourceBindings: any;
372
+ contract: Type.TUnsafe<Record<string, unknown>>;
373
+ }>;
374
+ export declare const AuthListInstalledContractsSchema: Type.TObject<{
375
+ sessionKey: Type.TOptional<Type.TString>;
376
+ }>;
377
+ export declare const AuthListInstalledContractsResponseSchema: Type.TObject<{
378
+ contracts: Type.TArray<Type.TObject<{
379
+ digest: Type.TString;
380
+ id: Type.TString;
381
+ displayName: Type.TString;
382
+ description: Type.TString;
383
+ sessionKey: Type.TOptional<Type.TString>;
384
+ installedAt: Type.TString;
385
+ analysisSummary: Type.TOptional<Type.TObject<{
386
+ namespaces: Type.TArray<Type.TString>;
387
+ rpcMethods: Type.TNumber;
388
+ events: Type.TNumber;
389
+ natsPublish: Type.TNumber;
390
+ natsSubscribe: Type.TNumber;
391
+ kvResources: Type.TNumber;
392
+ jobsQueues: Type.TNumber;
393
+ streamResources: Type.TNumber;
394
+ }>>;
395
+ resourceBindings: any;
396
+ }>>;
397
+ }>;
398
+ export declare const AuthGetInstalledContractSchema: Type.TObject<{
399
+ digest: Type.TString;
400
+ }>;
401
+ export declare const AuthGetInstalledContractResponseSchema: Type.TObject<{
402
+ contract: Type.TObject<{
403
+ digest: Type.TString;
404
+ id: Type.TString;
405
+ displayName: Type.TString;
406
+ description: Type.TString;
407
+ sessionKey: Type.TOptional<Type.TString>;
408
+ installedAt: Type.TString;
409
+ analysisSummary: Type.TOptional<Type.TObject<{
410
+ namespaces: Type.TArray<Type.TString>;
411
+ rpcMethods: Type.TNumber;
412
+ events: Type.TNumber;
413
+ natsPublish: Type.TNumber;
414
+ natsSubscribe: Type.TNumber;
415
+ kvResources: Type.TNumber;
416
+ jobsQueues: Type.TNumber;
417
+ streamResources: Type.TNumber;
418
+ }>>;
419
+ analysis: Type.TOptional<Type.TObject<{
420
+ namespaces: Type.TArray<Type.TString>;
421
+ rpc: Type.TObject<{
422
+ methods: Type.TArray<Type.TObject<{
423
+ key: Type.TString;
424
+ subject: Type.TString;
425
+ wildcardSubject: Type.TString;
426
+ callerCapabilities: Type.TArray<Type.TString>;
427
+ }>>;
428
+ }>;
429
+ events: Type.TObject<{
430
+ events: Type.TArray<Type.TObject<{
431
+ key: Type.TString;
432
+ subject: Type.TString;
433
+ wildcardSubject: Type.TString;
434
+ publishCapabilities: Type.TArray<Type.TString>;
435
+ subscribeCapabilities: Type.TArray<Type.TString>;
436
+ }>>;
437
+ }>;
438
+ subjects: Type.TOptional<Type.TObject<{
439
+ subjects: Type.TArray<Type.TObject<{
440
+ key: Type.TString;
441
+ subject: Type.TString;
442
+ publishCapabilities: Type.TArray<Type.TString>;
443
+ subscribeCapabilities: Type.TArray<Type.TString>;
444
+ }>>;
445
+ }>>;
446
+ nats: Type.TObject<{
447
+ publish: Type.TArray<Type.TObject<{
448
+ kind: Type.TString;
449
+ subject: Type.TString;
450
+ wildcardSubject: Type.TString;
451
+ requiredCapabilities: Type.TArray<Type.TString>;
452
+ }>>;
453
+ subscribe: Type.TArray<Type.TObject<{
454
+ kind: Type.TString;
455
+ subject: Type.TString;
456
+ wildcardSubject: Type.TString;
457
+ requiredCapabilities: Type.TArray<Type.TString>;
458
+ }>>;
459
+ }>;
460
+ resources: Type.TObject<{
461
+ kv: Type.TArray<Type.TObject<{
462
+ alias: Type.TString;
463
+ purpose: Type.TString;
464
+ required: Type.TBoolean;
465
+ history: Type.TNumber;
466
+ ttlMs: Type.TNumber;
467
+ maxValueBytes: Type.TOptional<Type.TNumber>;
468
+ }>>;
469
+ jobs: Type.TArray<Type.TObject<{
470
+ queueType: Type.TString;
471
+ payload: Type.TObject<{
472
+ schema: Type.TString;
473
+ }>;
474
+ result: Type.TOptional<Type.TObject<{
475
+ schema: Type.TString;
476
+ }>>;
477
+ maxDeliver: Type.TNumber;
478
+ backoffMs: Type.TArray<Type.TNumber>;
479
+ ackWaitMs: Type.TNumber;
480
+ defaultDeadlineMs: Type.TOptional<Type.TNumber>;
481
+ progress: Type.TBoolean;
482
+ logs: Type.TBoolean;
483
+ dlq: Type.TBoolean;
484
+ concurrency: Type.TNumber;
485
+ }>>;
486
+ streams: Type.TArray<Type.TObject<{
487
+ alias: Type.TString;
488
+ purpose: Type.TString;
489
+ required: Type.TBoolean;
490
+ retention: Type.TOptional<Type.TString>;
491
+ storage: Type.TOptional<Type.TString>;
492
+ numReplicas: Type.TOptional<Type.TNumber>;
493
+ maxAgeMs: Type.TOptional<Type.TNumber>;
494
+ maxBytes: Type.TOptional<Type.TNumber>;
495
+ maxMsgs: Type.TOptional<Type.TNumber>;
496
+ discard: Type.TOptional<Type.TString>;
497
+ subjects: Type.TArray<Type.TString>;
498
+ sources: Type.TOptional<Type.TArray<Type.TObject<{
499
+ fromAlias: Type.TString;
500
+ streamName: Type.TString;
501
+ filterSubject: Type.TOptional<Type.TString>;
502
+ subjectTransformDest: Type.TOptional<Type.TString>;
503
+ }>>>;
504
+ }>>;
505
+ }>;
506
+ }>>;
507
+ resources: any;
508
+ resourceBindings: any;
509
+ contract: Type.TUnsafe<Record<string, unknown>>;
510
+ }>;
511
+ }>;
512
+ export declare const AuthenticatedUserSchema: Type.TObject<{
513
+ id: Type.TString;
514
+ origin: Type.TString;
515
+ active: Type.TBoolean;
516
+ name: Type.TString;
517
+ email: Type.TString;
518
+ image: Type.TOptional<Type.TString>;
519
+ capabilities: Type.TArray<Type.TString>;
520
+ lastLogin: Type.TOptional<Type.TString>;
521
+ }>;
522
+ export type AuthenticatedUser = StaticDecode<typeof AuthenticatedUserSchema>;
523
+ export declare const AuthMeSchema: Type.TObject<{}>;
524
+ export declare const AuthValidateRequestSchema: Type.TObject<{
525
+ sessionKey: Type.TString;
526
+ proof: Type.TString;
527
+ subject: Type.TString;
528
+ payloadHash: Type.TString;
529
+ capabilities: Type.TOptional<Type.TArray<Type.TString>>;
530
+ }>;
531
+ export declare const AuthenticatedServiceSchema: Type.TObject<{
532
+ type: Type.TLiteral<"service">;
533
+ id: Type.TString;
534
+ name: Type.TString;
535
+ active: Type.TBoolean;
536
+ capabilities: Type.TArray<Type.TString>;
537
+ }>;
538
+ export type AuthenticatedService = StaticDecode<typeof AuthenticatedServiceSchema>;
539
+ export declare const AuthenticatedDeviceSchema: Type.TObject<{
540
+ type: Type.TLiteral<"device">;
541
+ deviceId: Type.TString;
542
+ deviceType: Type.TString;
543
+ runtimePublicKey: Type.TString;
544
+ profileId: Type.TString;
545
+ active: Type.TBoolean;
546
+ capabilities: Type.TArray<Type.TString>;
547
+ }>;
548
+ export declare const AuthenticatedWorkloadSchema: Type.TObject<{
549
+ type: Type.TLiteral<"workload">;
550
+ instanceId: Type.TString;
551
+ publicIdentityKey: Type.TString;
552
+ profileId: Type.TString;
553
+ active: Type.TBoolean;
554
+ capabilities: Type.TArray<Type.TString>;
555
+ }>;
556
+ export type AuthenticatedWorkload = StaticDecode<typeof AuthenticatedWorkloadSchema>;
557
+ export declare const AuthMeResponseSchema: Type.TObject<{
558
+ user: Type.TUnion<[Type.TObject<{
559
+ id: Type.TString;
560
+ origin: Type.TString;
561
+ active: Type.TBoolean;
562
+ name: Type.TString;
563
+ email: Type.TString;
564
+ image: Type.TOptional<Type.TString>;
565
+ capabilities: Type.TArray<Type.TString>;
566
+ lastLogin: Type.TOptional<Type.TString>;
567
+ }>, Type.TNull]>;
568
+ workload: Type.TUnion<[Type.TObject<{
569
+ type: Type.TLiteral<"workload">;
570
+ instanceId: Type.TString;
571
+ publicIdentityKey: Type.TString;
572
+ profileId: Type.TString;
573
+ active: Type.TBoolean;
574
+ capabilities: Type.TArray<Type.TString>;
575
+ }>, Type.TNull]>;
576
+ service: Type.TUnion<[Type.TObject<{
577
+ type: Type.TLiteral<"service">;
578
+ id: Type.TString;
579
+ name: Type.TString;
580
+ active: Type.TBoolean;
581
+ capabilities: Type.TArray<Type.TString>;
582
+ }>, Type.TNull]>;
583
+ }>;
584
+ export type AuthMeResponse = StaticDecode<typeof AuthMeResponseSchema>;
585
+ export declare const CallerViewSchema: Type.TUnion<[Type.TObject<{
586
+ type: Type.TLiteral<"user">;
587
+ id: Type.TString;
588
+ origin: Type.TString;
589
+ active: Type.TBoolean;
590
+ name: Type.TString;
591
+ email: Type.TString;
592
+ image: Type.TOptional<Type.TString>;
593
+ capabilities: Type.TArray<Type.TString>;
594
+ }>, Type.TObject<{
595
+ type: Type.TLiteral<"service">;
596
+ id: Type.TString;
597
+ name: Type.TString;
598
+ active: Type.TBoolean;
599
+ capabilities: Type.TArray<Type.TString>;
600
+ }>, Type.TObject<{
601
+ type: Type.TLiteral<"workload">;
602
+ instanceId: Type.TString;
603
+ publicIdentityKey: Type.TString;
604
+ profileId: Type.TString;
605
+ active: Type.TBoolean;
606
+ capabilities: Type.TArray<Type.TString>;
607
+ }>]>;
608
+ export declare const AuthValidateRequestResponseSchema: Type.TObject<{
609
+ allowed: Type.TBoolean;
610
+ inboxPrefix: Type.TString;
611
+ caller: Type.TUnion<[Type.TObject<{
612
+ type: Type.TLiteral<"user">;
613
+ id: Type.TString;
614
+ origin: Type.TString;
615
+ active: Type.TBoolean;
616
+ name: Type.TString;
617
+ email: Type.TString;
618
+ image: Type.TOptional<Type.TString>;
619
+ capabilities: Type.TArray<Type.TString>;
620
+ }>, Type.TObject<{
621
+ type: Type.TLiteral<"service">;
622
+ id: Type.TString;
623
+ name: Type.TString;
624
+ active: Type.TBoolean;
625
+ capabilities: Type.TArray<Type.TString>;
626
+ }>, Type.TObject<{
627
+ type: Type.TLiteral<"workload">;
628
+ instanceId: Type.TString;
629
+ publicIdentityKey: Type.TString;
630
+ profileId: Type.TString;
631
+ active: Type.TBoolean;
632
+ capabilities: Type.TArray<Type.TString>;
633
+ }>]>;
634
+ }>;
635
+ export declare const AuthListApprovalsSchema: Type.TObject<{
636
+ user: Type.TOptional<Type.TString>;
637
+ digest: Type.TOptional<Type.TString>;
638
+ }>;
639
+ export declare const AuthListApprovalsResponseSchema: Type.TObject<{
640
+ approvals: Type.TArray<Type.TObject<{
641
+ user: Type.TString;
642
+ answer: Type.TUnion<[Type.TLiteral<"approved">, Type.TLiteral<"denied">]>;
643
+ answeredAt: Type.TString;
644
+ updatedAt: Type.TString;
645
+ approval: Type.TObject<{
646
+ contractDigest: Type.TString;
647
+ contractId: Type.TString;
648
+ displayName: Type.TString;
649
+ description: Type.TString;
650
+ capabilities: Type.TArray<Type.TString>;
651
+ }>;
652
+ }>>;
653
+ }>;
654
+ export declare const AuthRevokeApprovalSchema: Type.TObject<{
655
+ contractDigest: Type.TString;
656
+ user: Type.TOptional<Type.TString>;
657
+ }>;
658
+ export declare const AuthRevokeApprovalResponseSchema: Type.TObject<{
659
+ success: Type.TBoolean;
660
+ }>;
661
+ export declare const PortalSchema: Type.TObject<{
662
+ portalId: Type.TString;
663
+ appContractId: Type.TOptional<Type.TString>;
664
+ entryUrl: Type.TString;
665
+ disabled: Type.TBoolean;
666
+ }>;
667
+ export declare const LoginPortalDefaultSchema: Type.TObject<{
668
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
669
+ }>;
670
+ export type LoginPortalDefault = StaticDecode<typeof LoginPortalDefaultSchema>;
671
+ export declare const WorkloadPortalDefaultSchema: Type.TObject<{
672
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
673
+ }>;
674
+ export type WorkloadPortalDefault = StaticDecode<typeof WorkloadPortalDefaultSchema>;
675
+ export declare const LoginPortalSelectionSchema: Type.TObject<{
676
+ contractId: Type.TString;
677
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
678
+ }>;
679
+ export type LoginPortalSelection = StaticDecode<typeof LoginPortalSelectionSchema>;
680
+ export declare const WorkloadPortalSelectionSchema: Type.TObject<{
681
+ profileId: Type.TString;
682
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
683
+ }>;
684
+ export type WorkloadPortalSelection = StaticDecode<typeof WorkloadPortalSelectionSchema>;
685
+ export declare const PortalFlowStateSchema: Type.TUnion<[Type.TObject<{
686
+ status: Type.TLiteral<"choose_provider">;
687
+ flowId: Type.TString;
688
+ providers: Type.TArray<Type.TObject<{
689
+ id: Type.TString;
690
+ displayName: Type.TString;
691
+ }>>;
692
+ app: Type.TObject<{
693
+ contractId: Type.TString;
694
+ contractDigest: Type.TString;
695
+ displayName: Type.TString;
696
+ description: Type.TString;
697
+ context: Type.TOptional<Type.TUnsafe<Record<string, unknown>>>;
698
+ }>;
699
+ }>, Type.TObject<{
700
+ status: Type.TLiteral<"approval_required">;
701
+ flowId: Type.TString;
702
+ user: Type.TObject<{
703
+ origin: Type.TString;
704
+ id: Type.TString;
705
+ name: Type.TOptional<Type.TString>;
706
+ email: Type.TOptional<Type.TString>;
707
+ image: Type.TOptional<Type.TString>;
708
+ }>;
709
+ approval: Type.TObject<{
710
+ contractDigest: Type.TString;
711
+ contractId: Type.TString;
712
+ displayName: Type.TString;
713
+ description: Type.TString;
714
+ capabilities: Type.TArray<Type.TString>;
715
+ }>;
716
+ }>, Type.TObject<{
717
+ status: Type.TLiteral<"approval_denied">;
718
+ flowId: Type.TString;
719
+ approval: Type.TObject<{
720
+ contractDigest: Type.TString;
721
+ contractId: Type.TString;
722
+ displayName: Type.TString;
723
+ description: Type.TString;
724
+ capabilities: Type.TArray<Type.TString>;
725
+ }>;
726
+ returnLocation: Type.TOptional<Type.TString>;
727
+ }>, Type.TObject<{
728
+ status: Type.TLiteral<"insufficient_capabilities">;
729
+ flowId: Type.TString;
730
+ user: Type.TOptional<Type.TObject<{
731
+ origin: Type.TString;
732
+ id: Type.TString;
733
+ name: Type.TOptional<Type.TString>;
734
+ }>>;
735
+ approval: Type.TObject<{
736
+ contractDigest: Type.TString;
737
+ contractId: Type.TString;
738
+ displayName: Type.TString;
739
+ description: Type.TString;
740
+ capabilities: Type.TArray<Type.TString>;
741
+ }>;
742
+ missingCapabilities: Type.TArray<Type.TString>;
743
+ userCapabilities: Type.TArray<Type.TString>;
744
+ returnLocation: Type.TOptional<Type.TString>;
745
+ }>, Type.TObject<{
746
+ status: Type.TLiteral<"redirect">;
747
+ location: Type.TString;
748
+ }>, Type.TObject<{
749
+ status: Type.TLiteral<"expired">;
750
+ }>]>;
751
+ export type PortalFlowState = StaticDecode<typeof PortalFlowStateSchema>;
752
+ export type PortalFlowChooseProviderState = Extract<PortalFlowState, {
753
+ status: "choose_provider";
754
+ }>;
755
+ export type PortalFlowApprovalRequiredState = Extract<PortalFlowState, {
756
+ status: "approval_required";
757
+ }>;
758
+ export type PortalFlowApprovalDeniedState = Extract<PortalFlowState, {
759
+ status: "approval_denied";
760
+ }>;
761
+ export type PortalFlowInsufficientCapabilitiesState = Extract<PortalFlowState, {
762
+ status: "insufficient_capabilities";
763
+ }>;
764
+ export type PortalFlowRedirectState = Extract<PortalFlowState, {
765
+ status: "redirect";
766
+ }>;
767
+ export type PortalFlowExpiredState = Extract<PortalFlowState, {
768
+ status: "expired";
769
+ }>;
770
+ export type PortalFlowApp = PortalFlowChooseProviderState["app"];
771
+ export type PortalFlowProvider = PortalFlowChooseProviderState["providers"][number];
772
+ export type PortalFlowApproval = PortalFlowApprovalRequiredState["approval"];
773
+ export type PortalFlowUser = PortalFlowApprovalRequiredState["user"];
774
+ export declare const WorkloadProfileSchema: Type.TObject<{
775
+ profileId: Type.TString;
776
+ contractId: Type.TString;
777
+ allowedDigests: Type.TArray<Type.TString>;
778
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
779
+ disabled: Type.TBoolean;
780
+ }>;
781
+ export declare const WorkloadSchema: Type.TObject<{
782
+ instanceId: Type.TString;
783
+ publicIdentityKey: Type.TString;
784
+ profileId: Type.TString;
785
+ state: Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>;
786
+ createdAt: Type.TString;
787
+ activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
788
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
789
+ }>;
790
+ export declare const WorkloadActivationActorSchema: Type.TObject<{
791
+ origin: Type.TString;
792
+ id: Type.TString;
793
+ }>;
794
+ export type WorkloadActivationActor = StaticDecode<typeof WorkloadActivationActorSchema>;
795
+ export declare const WorkloadActivationRecordSchema: Type.TObject<{
796
+ instanceId: Type.TString;
797
+ publicIdentityKey: Type.TString;
798
+ profileId: Type.TString;
799
+ activatedBy: Type.TOptional<Type.TObject<{
800
+ origin: Type.TString;
801
+ id: Type.TString;
802
+ }>>;
803
+ state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
804
+ activatedAt: Type.TString;
805
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
806
+ }>;
807
+ export type WorkloadActivationRecord = StaticDecode<typeof WorkloadActivationRecordSchema>;
808
+ export declare const WorkloadActivationReviewSchema: Type.TObject<{
809
+ reviewId: Type.TString;
810
+ instanceId: Type.TString;
811
+ publicIdentityKey: Type.TString;
812
+ profileId: Type.TString;
813
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
814
+ requestedAt: Type.TString;
815
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
816
+ reason: Type.TOptional<Type.TString>;
817
+ }>;
818
+ export declare const AuthWorkloadActivationReviewRequestedEventSchema: Type.TObject<{
819
+ reviewId: Type.TString;
820
+ handoffId: Type.TString;
821
+ instanceId: Type.TString;
822
+ publicIdentityKey: Type.TString;
823
+ profileId: Type.TString;
824
+ requestedAt: Type.TString;
825
+ requestedBy: Type.TObject<{
826
+ origin: Type.TString;
827
+ id: Type.TString;
828
+ }>;
829
+ }>;
830
+ export declare const WorkloadConnectInfoSchema: Type.TObject<{
831
+ instanceId: Type.TString;
832
+ profileId: Type.TString;
833
+ contractId: Type.TString;
834
+ contractDigest: Type.TString;
835
+ transport: Type.TObject<{
836
+ natsServers: Type.TArray<Type.TString>;
837
+ sentinel: Type.TObject<{
838
+ jwt: Type.TString;
839
+ seed: Type.TString;
840
+ }>;
841
+ }>;
842
+ auth: Type.TObject<{
843
+ mode: Type.TLiteral<"workload_identity">;
844
+ iatSkewSeconds: Type.TNumber;
845
+ }>;
846
+ }>;
847
+ export declare const AuthCreatePortalSchema: Type.TObject<{
848
+ portalId: Type.TString;
849
+ appContractId: Type.TOptional<Type.TString>;
850
+ entryUrl: Type.TString;
851
+ }>;
852
+ export declare const AuthCreatePortalResponseSchema: Type.TObject<{
853
+ portal: Type.TObject<{
854
+ portalId: Type.TString;
855
+ appContractId: Type.TOptional<Type.TString>;
856
+ entryUrl: Type.TString;
857
+ disabled: Type.TBoolean;
858
+ }>;
859
+ }>;
860
+ export declare const AuthListPortalsSchema: Type.TObject<{}>;
861
+ export declare const AuthListPortalsResponseSchema: Type.TObject<{
862
+ portals: Type.TArray<Type.TObject<{
863
+ portalId: Type.TString;
864
+ appContractId: Type.TOptional<Type.TString>;
865
+ entryUrl: Type.TString;
866
+ disabled: Type.TBoolean;
867
+ }>>;
868
+ }>;
869
+ export declare const AuthDisablePortalSchema: Type.TObject<{
870
+ portalId: Type.TString;
871
+ }>;
872
+ export declare const AuthDisablePortalResponseSchema: Type.TObject<{
873
+ success: Type.TBoolean;
874
+ }>;
875
+ export declare const AuthGetLoginPortalDefaultSchema: Type.TObject<{}>;
876
+ export declare const AuthGetLoginPortalDefaultResponseSchema: Type.TObject<{
877
+ defaultPortal: Type.TObject<{
878
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
879
+ }>;
880
+ }>;
881
+ export declare const AuthSetLoginPortalDefaultSchema: Type.TObject<{
882
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
883
+ }>;
884
+ export declare const AuthSetLoginPortalDefaultResponseSchema: Type.TObject<{
885
+ defaultPortal: Type.TObject<{
886
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
887
+ }>;
888
+ }>;
889
+ export declare const AuthListLoginPortalSelectionsSchema: Type.TObject<{}>;
890
+ export declare const AuthListLoginPortalSelectionsResponseSchema: Type.TObject<{
891
+ selections: Type.TArray<Type.TObject<{
892
+ contractId: Type.TString;
893
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
894
+ }>>;
895
+ }>;
896
+ export declare const AuthSetLoginPortalSelectionSchema: Type.TObject<{
897
+ contractId: Type.TString;
898
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
899
+ }>;
900
+ export declare const AuthSetLoginPortalSelectionResponseSchema: Type.TObject<{
901
+ selection: Type.TObject<{
902
+ contractId: Type.TString;
903
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
904
+ }>;
905
+ }>;
906
+ export declare const AuthClearLoginPortalSelectionSchema: Type.TObject<{
907
+ contractId: Type.TString;
908
+ }>;
909
+ export declare const AuthClearLoginPortalSelectionResponseSchema: Type.TObject<{
910
+ success: Type.TBoolean;
911
+ }>;
912
+ export declare const AuthGetWorkloadPortalDefaultSchema: Type.TObject<{}>;
913
+ export declare const AuthGetWorkloadPortalDefaultResponseSchema: Type.TObject<{
914
+ defaultPortal: Type.TObject<{
915
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
916
+ }>;
917
+ }>;
918
+ export declare const AuthSetWorkloadPortalDefaultSchema: Type.TObject<{
919
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
920
+ }>;
921
+ export declare const AuthSetWorkloadPortalDefaultResponseSchema: Type.TObject<{
922
+ defaultPortal: Type.TObject<{
923
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
924
+ }>;
925
+ }>;
926
+ export declare const AuthListWorkloadPortalSelectionsSchema: Type.TObject<{}>;
927
+ export declare const AuthListWorkloadPortalSelectionsResponseSchema: Type.TObject<{
928
+ selections: Type.TArray<Type.TObject<{
929
+ profileId: Type.TString;
930
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
931
+ }>>;
932
+ }>;
933
+ export declare const AuthSetWorkloadPortalSelectionSchema: Type.TObject<{
934
+ profileId: Type.TString;
935
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
936
+ }>;
937
+ export declare const AuthSetWorkloadPortalSelectionResponseSchema: Type.TObject<{
938
+ selection: Type.TObject<{
939
+ profileId: Type.TString;
940
+ portalId: Type.TUnion<[Type.TString, Type.TNull]>;
941
+ }>;
942
+ }>;
943
+ export declare const AuthClearWorkloadPortalSelectionSchema: Type.TObject<{
944
+ profileId: Type.TString;
945
+ }>;
946
+ export declare const AuthClearWorkloadPortalSelectionResponseSchema: Type.TObject<{
947
+ success: Type.TBoolean;
948
+ }>;
949
+ export declare const AuthCreateWorkloadProfileSchema: Type.TObject<{
950
+ profileId: Type.TString;
951
+ contractId: Type.TString;
952
+ allowedDigests: Type.TArray<Type.TString>;
953
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
954
+ contract: Type.TOptional<Type.TObject<{}>>;
955
+ }>;
956
+ export declare const AuthCreateWorkloadProfileResponseSchema: Type.TObject<{
957
+ profile: Type.TObject<{
958
+ profileId: Type.TString;
959
+ contractId: Type.TString;
960
+ allowedDigests: Type.TArray<Type.TString>;
961
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
962
+ disabled: Type.TBoolean;
963
+ }>;
964
+ }>;
965
+ export declare const AuthListWorkloadProfilesSchema: Type.TObject<{
966
+ contractId: Type.TOptional<Type.TString>;
967
+ disabled: Type.TOptional<Type.TBoolean>;
968
+ }>;
969
+ export declare const AuthListWorkloadProfilesResponseSchema: Type.TObject<{
970
+ profiles: Type.TArray<Type.TObject<{
971
+ profileId: Type.TString;
972
+ contractId: Type.TString;
973
+ allowedDigests: Type.TArray<Type.TString>;
974
+ reviewMode: Type.TOptional<Type.TUnion<[Type.TLiteral<"none">, Type.TLiteral<"required">]>>;
975
+ disabled: Type.TBoolean;
976
+ }>>;
977
+ }>;
978
+ export declare const AuthDisableWorkloadProfileSchema: Type.TObject<{
979
+ profileId: Type.TString;
980
+ }>;
981
+ export declare const AuthDisableWorkloadProfileResponseSchema: Type.TObject<{
982
+ success: Type.TBoolean;
983
+ }>;
984
+ export declare const AuthProvisionWorkloadInstanceSchema: Type.TObject<{
985
+ profileId: Type.TString;
986
+ publicIdentityKey: Type.TString;
987
+ activationKey: Type.TString;
988
+ }>;
989
+ export declare const AuthProvisionWorkloadInstanceResponseSchema: Type.TObject<{
990
+ instance: Type.TObject<{
991
+ instanceId: Type.TString;
992
+ publicIdentityKey: Type.TString;
993
+ profileId: Type.TString;
994
+ state: Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>;
995
+ createdAt: Type.TString;
996
+ activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
997
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
998
+ }>;
999
+ }>;
1000
+ export declare const AuthListWorkloadInstancesSchema: Type.TObject<{
1001
+ profileId: Type.TOptional<Type.TString>;
1002
+ state: Type.TOptional<Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>>;
1003
+ }>;
1004
+ export declare const AuthListWorkloadInstancesResponseSchema: Type.TObject<{
1005
+ instances: Type.TArray<Type.TObject<{
1006
+ instanceId: Type.TString;
1007
+ publicIdentityKey: Type.TString;
1008
+ profileId: Type.TString;
1009
+ state: Type.TUnion<[Type.TLiteral<"registered">, Type.TLiteral<"activated">, Type.TLiteral<"revoked">, Type.TLiteral<"disabled">]>;
1010
+ createdAt: Type.TString;
1011
+ activatedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1012
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1013
+ }>>;
1014
+ }>;
1015
+ export declare const AuthDisableWorkloadInstanceSchema: Type.TObject<{
1016
+ instanceId: Type.TString;
1017
+ }>;
1018
+ export declare const AuthDisableWorkloadInstanceResponseSchema: Type.TObject<{
1019
+ success: Type.TBoolean;
1020
+ }>;
1021
+ export declare const AuthActivateWorkloadSchema: Type.TObject<{
1022
+ handoffId: Type.TString;
1023
+ }>;
1024
+ export declare const AuthActivateWorkloadResponseSchema: Type.TUnion<[Type.TObject<{
1025
+ status: Type.TLiteral<"activated">;
1026
+ instanceId: Type.TString;
1027
+ profileId: Type.TString;
1028
+ activatedAt: Type.TString;
1029
+ confirmationCode: Type.TOptional<Type.TString>;
1030
+ }>, Type.TObject<{
1031
+ status: Type.TLiteral<"pending_review">;
1032
+ reviewId: Type.TString;
1033
+ instanceId: Type.TString;
1034
+ profileId: Type.TString;
1035
+ requestedAt: Type.TString;
1036
+ }>, Type.TObject<{
1037
+ status: Type.TLiteral<"rejected">;
1038
+ reason: Type.TOptional<Type.TString>;
1039
+ }>]>;
1040
+ export declare const AuthGetWorkloadActivationStatusSchema: Type.TObject<{
1041
+ handoffId: Type.TString;
1042
+ }>;
1043
+ export declare const AuthGetWorkloadActivationStatusResponseSchema: Type.TUnion<[Type.TObject<{
1044
+ status: Type.TLiteral<"activated">;
1045
+ instanceId: Type.TString;
1046
+ profileId: Type.TString;
1047
+ activatedAt: Type.TString;
1048
+ confirmationCode: Type.TOptional<Type.TString>;
1049
+ }>, Type.TObject<{
1050
+ status: Type.TLiteral<"pending_review">;
1051
+ reviewId: Type.TString;
1052
+ instanceId: Type.TString;
1053
+ profileId: Type.TString;
1054
+ requestedAt: Type.TString;
1055
+ }>, Type.TObject<{
1056
+ status: Type.TLiteral<"rejected">;
1057
+ reason: Type.TOptional<Type.TString>;
1058
+ }>]>;
1059
+ export declare const WaitForWorkloadActivationResponseSchema: Type.TUnion<[Type.TObject<{
1060
+ status: Type.TLiteral<"pending">;
1061
+ }>, Type.TObject<{
1062
+ status: Type.TLiteral<"activated">;
1063
+ activatedAt: Type.TString;
1064
+ confirmationCode: Type.TOptional<Type.TString>;
1065
+ connectInfo: Type.TObject<{
1066
+ instanceId: Type.TString;
1067
+ profileId: Type.TString;
1068
+ contractId: Type.TString;
1069
+ contractDigest: Type.TString;
1070
+ transport: Type.TObject<{
1071
+ natsServers: Type.TArray<Type.TString>;
1072
+ sentinel: Type.TObject<{
1073
+ jwt: Type.TString;
1074
+ seed: Type.TString;
1075
+ }>;
1076
+ }>;
1077
+ auth: Type.TObject<{
1078
+ mode: Type.TLiteral<"workload_identity">;
1079
+ iatSkewSeconds: Type.TNumber;
1080
+ }>;
1081
+ }>;
1082
+ }>, Type.TObject<{
1083
+ status: Type.TLiteral<"rejected">;
1084
+ reason: Type.TOptional<Type.TString>;
1085
+ }>]>;
1086
+ export declare const AuthGetWorkloadConnectInfoSchema: Type.TObject<{
1087
+ publicIdentityKey: Type.TString;
1088
+ contractDigest: Type.TString;
1089
+ iat: Type.TNumber;
1090
+ sig: Type.TString;
1091
+ }>;
1092
+ export declare const AuthGetWorkloadConnectInfoResponseSchema: Type.TObject<{
1093
+ status: Type.TLiteral<"ready">;
1094
+ connectInfo: Type.TObject<{
1095
+ instanceId: Type.TString;
1096
+ profileId: Type.TString;
1097
+ contractId: Type.TString;
1098
+ contractDigest: Type.TString;
1099
+ transport: Type.TObject<{
1100
+ natsServers: Type.TArray<Type.TString>;
1101
+ sentinel: Type.TObject<{
1102
+ jwt: Type.TString;
1103
+ seed: Type.TString;
1104
+ }>;
1105
+ }>;
1106
+ auth: Type.TObject<{
1107
+ mode: Type.TLiteral<"workload_identity">;
1108
+ iatSkewSeconds: Type.TNumber;
1109
+ }>;
1110
+ }>;
1111
+ }>;
1112
+ export declare const AuthListWorkloadActivationsSchema: Type.TObject<{
1113
+ instanceId: Type.TOptional<Type.TString>;
1114
+ profileId: Type.TOptional<Type.TString>;
1115
+ state: Type.TOptional<Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>>;
1116
+ }>;
1117
+ export declare const AuthListWorkloadActivationsResponseSchema: Type.TObject<{
1118
+ activations: Type.TArray<Type.TObject<{
1119
+ instanceId: Type.TString;
1120
+ publicIdentityKey: Type.TString;
1121
+ profileId: Type.TString;
1122
+ activatedBy: Type.TOptional<Type.TObject<{
1123
+ origin: Type.TString;
1124
+ id: Type.TString;
1125
+ }>>;
1126
+ state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
1127
+ activatedAt: Type.TString;
1128
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1129
+ }>>;
1130
+ }>;
1131
+ export declare const AuthRevokeWorkloadActivationSchema: Type.TObject<{
1132
+ instanceId: Type.TString;
1133
+ }>;
1134
+ export declare const AuthRevokeWorkloadActivationResponseSchema: Type.TObject<{
1135
+ success: Type.TBoolean;
1136
+ }>;
1137
+ export declare const AuthListWorkloadActivationReviewsSchema: Type.TObject<{
1138
+ instanceId: Type.TOptional<Type.TString>;
1139
+ profileId: Type.TOptional<Type.TString>;
1140
+ state: Type.TOptional<Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>>;
1141
+ }>;
1142
+ export declare const AuthListWorkloadActivationReviewsResponseSchema: Type.TObject<{
1143
+ reviews: Type.TArray<Type.TObject<{
1144
+ reviewId: Type.TString;
1145
+ instanceId: Type.TString;
1146
+ publicIdentityKey: Type.TString;
1147
+ profileId: Type.TString;
1148
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
1149
+ requestedAt: Type.TString;
1150
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1151
+ reason: Type.TOptional<Type.TString>;
1152
+ }>>;
1153
+ }>;
1154
+ export declare const AuthDecideWorkloadActivationReviewSchema: Type.TObject<{
1155
+ reviewId: Type.TString;
1156
+ decision: Type.TUnion<[Type.TLiteral<"approve">, Type.TLiteral<"reject">]>;
1157
+ reason: Type.TOptional<Type.TString>;
1158
+ }>;
1159
+ export declare const AuthDecideWorkloadActivationReviewResponseSchema: Type.TObject<{
1160
+ review: Type.TObject<{
1161
+ reviewId: Type.TString;
1162
+ instanceId: Type.TString;
1163
+ publicIdentityKey: Type.TString;
1164
+ profileId: Type.TString;
1165
+ state: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"approved">, Type.TLiteral<"rejected">]>;
1166
+ requestedAt: Type.TString;
1167
+ decidedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1168
+ reason: Type.TOptional<Type.TString>;
1169
+ }>;
1170
+ activation: Type.TOptional<Type.TObject<{
1171
+ instanceId: Type.TString;
1172
+ publicIdentityKey: Type.TString;
1173
+ profileId: Type.TString;
1174
+ activatedBy: Type.TOptional<Type.TObject<{
1175
+ origin: Type.TString;
1176
+ id: Type.TString;
1177
+ }>>;
1178
+ state: Type.TUnion<[Type.TLiteral<"activated">, Type.TLiteral<"revoked">]>;
1179
+ activatedAt: Type.TString;
1180
+ revokedAt: Type.TUnion<[Type.TString, Type.TNull]>;
1181
+ }>>;
1182
+ confirmationCode: Type.TOptional<Type.TString>;
1183
+ }>;
1184
+ export declare const UserViewSchema: Type.TObject<{
1185
+ origin: Type.TString;
1186
+ id: Type.TString;
1187
+ name: Type.TOptional<Type.TString>;
1188
+ email: Type.TOptional<Type.TString>;
1189
+ active: Type.TBoolean;
1190
+ capabilities: Type.TArray<Type.TString>;
1191
+ }>;
1192
+ export declare const AuthListUsersSchema: Type.TObject<{}>;
1193
+ export declare const AuthListUsersResponseSchema: Type.TObject<{
1194
+ users: Type.TArray<Type.TObject<{
1195
+ origin: Type.TString;
1196
+ id: Type.TString;
1197
+ name: Type.TOptional<Type.TString>;
1198
+ email: Type.TOptional<Type.TString>;
1199
+ active: Type.TBoolean;
1200
+ capabilities: Type.TArray<Type.TString>;
1201
+ }>>;
1202
+ }>;
1203
+ export declare const AuthUpdateUserSchema: Type.TObject<{
1204
+ origin: Type.TString;
1205
+ id: Type.TString;
1206
+ active: Type.TOptional<Type.TBoolean>;
1207
+ capabilities: Type.TOptional<Type.TArray<Type.TString>>;
1208
+ }>;
1209
+ export declare const AuthUpdateUserResponseSchema: Type.TObject<{
1210
+ success: Type.TBoolean;
1211
+ }>;
1212
+ //# sourceMappingURL=protocol.d.ts.map