@stigmer/server-slim 3.32.0 → 3.33.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 (562) hide show
  1. package/console/404.html +1 -1
  2. package/console/__next.__PAGE__.txt +2 -2
  3. package/console/__next._full.txt +14 -14
  4. package/console/__next._head.txt +4 -4
  5. package/console/__next._index.txt +9 -9
  6. package/console/__next._tree.txt +1 -1
  7. package/console/_next/static/chunks/03jef~~op3hrf.js +1 -0
  8. package/console/_next/static/chunks/03myx4o636wfo.js +1 -0
  9. package/console/_next/static/chunks/{179qu67bn5k90.js → 0a1.8jlu1flwz.js} +1 -1
  10. package/console/_next/static/chunks/{0owq59irnycu5.js → 0lzt51xpvz0p0.js} +1 -1
  11. package/console/_next/static/chunks/0psljecn.i5g..js +1 -0
  12. package/console/_next/static/chunks/{0f9xh0e8xu4u8.js → 107k.7sfwlnvt.js} +1 -1
  13. package/console/_not-found/__next._full.txt +14 -14
  14. package/console/_not-found/__next._head.txt +4 -4
  15. package/console/_not-found/__next._index.txt +9 -9
  16. package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
  17. package/console/_not-found/__next._not-found.txt +3 -3
  18. package/console/_not-found/__next._tree.txt +1 -1
  19. package/console/_not-found.html +1 -1
  20. package/console/_not-found.txt +14 -14
  21. package/console/auth/callback/__next._full.txt +16 -16
  22. package/console/auth/callback/__next._head.txt +4 -4
  23. package/console/auth/callback/__next._index.txt +9 -9
  24. package/console/auth/callback/__next._tree.txt +1 -1
  25. package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
  26. package/console/auth/callback/__next.auth.callback.txt +3 -3
  27. package/console/auth/callback/__next.auth.txt +3 -3
  28. package/console/auth/callback.html +1 -1
  29. package/console/auth/callback.txt +16 -16
  30. package/console/auth/github/callback/__next._full.txt +16 -16
  31. package/console/auth/github/callback/__next._head.txt +4 -4
  32. package/console/auth/github/callback/__next._index.txt +9 -9
  33. package/console/auth/github/callback/__next._tree.txt +1 -1
  34. package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
  35. package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
  36. package/console/auth/github/callback/__next.auth.github.txt +3 -3
  37. package/console/auth/github/callback/__next.auth.txt +3 -3
  38. package/console/auth/github/callback.html +1 -1
  39. package/console/auth/github/callback.txt +16 -16
  40. package/console/auth/oauth/callback/__next._full.txt +16 -16
  41. package/console/auth/oauth/callback/__next._head.txt +4 -4
  42. package/console/auth/oauth/callback/__next._index.txt +9 -9
  43. package/console/auth/oauth/callback/__next._tree.txt +1 -1
  44. package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
  45. package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
  46. package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
  47. package/console/auth/oauth/callback/__next.auth.txt +3 -3
  48. package/console/auth/oauth/callback.html +1 -1
  49. package/console/auth/oauth/callback.txt +16 -16
  50. package/console/chat/__placeholder__/__placeholder__/__next._full.txt +15 -15
  51. package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
  52. package/console/chat/__placeholder__/__placeholder__/__next._index.txt +9 -9
  53. package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  54. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
  55. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
  56. package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
  57. package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
  58. package/console/chat/__placeholder__/__placeholder__.html +1 -1
  59. package/console/chat/__placeholder__/__placeholder__.txt +15 -15
  60. package/console/conversations/__next._full.txt +15 -15
  61. package/console/conversations/__next._head.txt +4 -4
  62. package/console/conversations/__next._index.txt +9 -9
  63. package/console/conversations/__next._tree.txt +1 -1
  64. package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
  65. package/console/conversations/__next.conversations.txt +3 -3
  66. package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +15 -15
  67. package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
  68. package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +9 -9
  69. package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  70. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
  71. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
  72. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
  73. package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
  74. package/console/conversations/__placeholder__/__placeholder__.html +1 -1
  75. package/console/conversations/__placeholder__/__placeholder__.txt +15 -15
  76. package/console/conversations.html +1 -1
  77. package/console/conversations.txt +15 -15
  78. package/console/dashboard/__next._full.txt +15 -15
  79. package/console/dashboard/__next._head.txt +4 -4
  80. package/console/dashboard/__next._index.txt +9 -9
  81. package/console/dashboard/__next._tree.txt +1 -1
  82. package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
  83. package/console/dashboard/__next.dashboard.txt +3 -3
  84. package/console/dashboard.html +1 -1
  85. package/console/dashboard.txt +15 -15
  86. package/console/executions/__placeholder__/__next._full.txt +14 -14
  87. package/console/executions/__placeholder__/__next._head.txt +4 -4
  88. package/console/executions/__placeholder__/__next._index.txt +9 -9
  89. package/console/executions/__placeholder__/__next._tree.txt +1 -1
  90. package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
  91. package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
  92. package/console/executions/__placeholder__/__next.executions.txt +3 -3
  93. package/console/executions/__placeholder__.html +1 -1
  94. package/console/executions/__placeholder__.txt +14 -14
  95. package/console/index.html +1 -1
  96. package/console/index.txt +14 -14
  97. package/console/invite/__placeholder__/__next._full.txt +15 -15
  98. package/console/invite/__placeholder__/__next._head.txt +4 -4
  99. package/console/invite/__placeholder__/__next._index.txt +9 -9
  100. package/console/invite/__placeholder__/__next._tree.txt +1 -1
  101. package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
  102. package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
  103. package/console/invite/__placeholder__/__next.invite.txt +3 -3
  104. package/console/invite/__placeholder__.html +1 -1
  105. package/console/invite/__placeholder__.txt +15 -15
  106. package/console/library/__next._full.txt +17 -17
  107. package/console/library/__next._head.txt +4 -4
  108. package/console/library/__next._index.txt +9 -9
  109. package/console/library/__next._tree.txt +1 -1
  110. package/console/library/__next.library.__PAGE__.txt +3 -3
  111. package/console/library/__next.library.txt +5 -5
  112. package/console/library/agents/__next._full.txt +17 -17
  113. package/console/library/agents/__next._head.txt +4 -4
  114. package/console/library/agents/__next._index.txt +9 -9
  115. package/console/library/agents/__next._tree.txt +1 -1
  116. package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
  117. package/console/library/agents/__next.library.agents.txt +3 -3
  118. package/console/library/agents/__next.library.txt +5 -5
  119. package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +17 -17
  120. package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
  121. package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +9 -9
  122. package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  123. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
  124. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
  125. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
  126. package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
  127. package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
  128. package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
  129. package/console/library/agents/__placeholder__/__placeholder__.txt +17 -17
  130. package/console/library/agents/new/__next._full.txt +18 -18
  131. package/console/library/agents/new/__next._head.txt +4 -4
  132. package/console/library/agents/new/__next._index.txt +9 -9
  133. package/console/library/agents/new/__next._tree.txt +1 -1
  134. package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
  135. package/console/library/agents/new/__next.library.agents.new.txt +3 -3
  136. package/console/library/agents/new/__next.library.agents.txt +3 -3
  137. package/console/library/agents/new/__next.library.txt +5 -5
  138. package/console/library/agents/new.html +1 -1
  139. package/console/library/agents/new.txt +18 -18
  140. package/console/library/agents.html +1 -1
  141. package/console/library/agents.txt +17 -17
  142. package/console/library/mcp-servers/__next._full.txt +17 -17
  143. package/console/library/mcp-servers/__next._head.txt +4 -4
  144. package/console/library/mcp-servers/__next._index.txt +9 -9
  145. package/console/library/mcp-servers/__next._tree.txt +1 -1
  146. package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
  147. package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
  148. package/console/library/mcp-servers/__next.library.txt +5 -5
  149. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +17 -17
  150. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
  151. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +9 -9
  152. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  153. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
  154. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
  155. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
  156. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
  157. package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
  158. package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
  159. package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +17 -17
  160. package/console/library/mcp-servers/new/__next._full.txt +18 -18
  161. package/console/library/mcp-servers/new/__next._head.txt +4 -4
  162. package/console/library/mcp-servers/new/__next._index.txt +9 -9
  163. package/console/library/mcp-servers/new/__next._tree.txt +1 -1
  164. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
  165. package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
  166. package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
  167. package/console/library/mcp-servers/new/__next.library.txt +5 -5
  168. package/console/library/mcp-servers/new.html +1 -1
  169. package/console/library/mcp-servers/new.txt +18 -18
  170. package/console/library/mcp-servers.html +1 -1
  171. package/console/library/mcp-servers.txt +17 -17
  172. package/console/library/plugins/__next._full.txt +17 -17
  173. package/console/library/plugins/__next._head.txt +4 -4
  174. package/console/library/plugins/__next._index.txt +9 -9
  175. package/console/library/plugins/__next._tree.txt +1 -1
  176. package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
  177. package/console/library/plugins/__next.library.plugins.txt +3 -3
  178. package/console/library/plugins/__next.library.txt +5 -5
  179. package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +17 -17
  180. package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
  181. package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +9 -9
  182. package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  183. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
  184. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
  185. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
  186. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
  187. package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
  188. package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
  189. package/console/library/plugins/__placeholder__/__placeholder__.txt +17 -17
  190. package/console/library/plugins/upload/__next._full.txt +18 -18
  191. package/console/library/plugins/upload/__next._head.txt +4 -4
  192. package/console/library/plugins/upload/__next._index.txt +9 -9
  193. package/console/library/plugins/upload/__next._tree.txt +1 -1
  194. package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
  195. package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
  196. package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
  197. package/console/library/plugins/upload/__next.library.txt +5 -5
  198. package/console/library/plugins/upload.html +1 -1
  199. package/console/library/plugins/upload.txt +18 -18
  200. package/console/library/plugins.html +1 -1
  201. package/console/library/plugins.txt +17 -17
  202. package/console/library/schedules/__next._full.txt +17 -17
  203. package/console/library/schedules/__next._head.txt +4 -4
  204. package/console/library/schedules/__next._index.txt +9 -9
  205. package/console/library/schedules/__next._tree.txt +1 -1
  206. package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
  207. package/console/library/schedules/__next.library.schedules.txt +3 -3
  208. package/console/library/schedules/__next.library.txt +5 -5
  209. package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +17 -17
  210. package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
  211. package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +9 -9
  212. package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  213. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
  214. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
  215. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
  216. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
  217. package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
  218. package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
  219. package/console/library/schedules/__placeholder__/__placeholder__.txt +17 -17
  220. package/console/library/schedules/new/__next._full.txt +18 -18
  221. package/console/library/schedules/new/__next._head.txt +4 -4
  222. package/console/library/schedules/new/__next._index.txt +9 -9
  223. package/console/library/schedules/new/__next._tree.txt +1 -1
  224. package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
  225. package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
  226. package/console/library/schedules/new/__next.library.schedules.txt +3 -3
  227. package/console/library/schedules/new/__next.library.txt +5 -5
  228. package/console/library/schedules/new.html +1 -1
  229. package/console/library/schedules/new.txt +18 -18
  230. package/console/library/schedules.html +1 -1
  231. package/console/library/schedules.txt +17 -17
  232. package/console/library/skills/__next._full.txt +17 -17
  233. package/console/library/skills/__next._head.txt +4 -4
  234. package/console/library/skills/__next._index.txt +9 -9
  235. package/console/library/skills/__next._tree.txt +1 -1
  236. package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
  237. package/console/library/skills/__next.library.skills.txt +3 -3
  238. package/console/library/skills/__next.library.txt +5 -5
  239. package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +17 -17
  240. package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
  241. package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +9 -9
  242. package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  243. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
  244. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
  245. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
  246. package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
  247. package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
  248. package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
  249. package/console/library/skills/__placeholder__/__placeholder__.txt +17 -17
  250. package/console/library/skills/new/__next._full.txt +18 -18
  251. package/console/library/skills/new/__next._head.txt +4 -4
  252. package/console/library/skills/new/__next._index.txt +9 -9
  253. package/console/library/skills/new/__next._tree.txt +1 -1
  254. package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
  255. package/console/library/skills/new/__next.library.skills.new.txt +3 -3
  256. package/console/library/skills/new/__next.library.skills.txt +3 -3
  257. package/console/library/skills/new/__next.library.txt +5 -5
  258. package/console/library/skills/new.html +1 -1
  259. package/console/library/skills/new.txt +18 -18
  260. package/console/library/skills.html +1 -1
  261. package/console/library/skills.txt +17 -17
  262. package/console/library/workflows/__next._full.txt +17 -17
  263. package/console/library/workflows/__next._head.txt +4 -4
  264. package/console/library/workflows/__next._index.txt +9 -9
  265. package/console/library/workflows/__next._tree.txt +1 -1
  266. package/console/library/workflows/__next.library.txt +5 -5
  267. package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
  268. package/console/library/workflows/__next.library.workflows.txt +3 -3
  269. package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
  270. package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  271. package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
  272. package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  273. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
  274. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  275. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
  276. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
  277. package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
  278. package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
  279. package/console/library/workflows/__placeholder__/__placeholder__.txt +17 -17
  280. package/console/library/workflows/executions/__next._full.txt +17 -17
  281. package/console/library/workflows/executions/__next._head.txt +4 -4
  282. package/console/library/workflows/executions/__next._index.txt +9 -9
  283. package/console/library/workflows/executions/__next._tree.txt +1 -1
  284. package/console/library/workflows/executions/__next.library.txt +5 -5
  285. package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
  286. package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
  287. package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
  288. package/console/library/workflows/executions.html +1 -1
  289. package/console/library/workflows/executions.txt +17 -17
  290. package/console/library/workflows/new/__next._full.txt +18 -18
  291. package/console/library/workflows/new/__next._head.txt +4 -4
  292. package/console/library/workflows/new/__next._index.txt +9 -9
  293. package/console/library/workflows/new/__next._tree.txt +1 -1
  294. package/console/library/workflows/new/__next.library.txt +5 -5
  295. package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
  296. package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
  297. package/console/library/workflows/new/__next.library.workflows.txt +3 -3
  298. package/console/library/workflows/new.html +1 -1
  299. package/console/library/workflows/new.txt +18 -18
  300. package/console/library/workflows.html +1 -1
  301. package/console/library/workflows.txt +17 -17
  302. package/console/library.html +1 -1
  303. package/console/library.txt +17 -17
  304. package/console/login/__next._full.txt +16 -16
  305. package/console/login/__next._head.txt +4 -4
  306. package/console/login/__next._index.txt +9 -9
  307. package/console/login/__next._tree.txt +1 -1
  308. package/console/login/__next.login.__PAGE__.txt +4 -4
  309. package/console/login/__next.login.txt +3 -3
  310. package/console/login.html +1 -1
  311. package/console/login.txt +16 -16
  312. package/console/marketplace/__next._full.txt +15 -15
  313. package/console/marketplace/__next._head.txt +4 -4
  314. package/console/marketplace/__next._index.txt +9 -9
  315. package/console/marketplace/__next._tree.txt +1 -1
  316. package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
  317. package/console/marketplace/__next.marketplace.txt +3 -3
  318. package/console/marketplace.html +1 -1
  319. package/console/marketplace.txt +15 -15
  320. package/console/oauth/slack/callback/__next._full.txt +16 -16
  321. package/console/oauth/slack/callback/__next._head.txt +4 -4
  322. package/console/oauth/slack/callback/__next._index.txt +9 -9
  323. package/console/oauth/slack/callback/__next._tree.txt +1 -1
  324. package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
  325. package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
  326. package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
  327. package/console/oauth/slack/callback/__next.oauth.txt +3 -3
  328. package/console/oauth/slack/callback.html +1 -1
  329. package/console/oauth/slack/callback.txt +16 -16
  330. package/console/sessions/__placeholder__/__next._full.txt +14 -14
  331. package/console/sessions/__placeholder__/__next._head.txt +4 -4
  332. package/console/sessions/__placeholder__/__next._index.txt +9 -9
  333. package/console/sessions/__placeholder__/__next._tree.txt +1 -1
  334. package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
  335. package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
  336. package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
  337. package/console/sessions/__placeholder__.html +1 -1
  338. package/console/sessions/__placeholder__.txt +14 -14
  339. package/console/settings/__next._full.txt +18 -18
  340. package/console/settings/__next._head.txt +4 -4
  341. package/console/settings/__next._index.txt +9 -9
  342. package/console/settings/__next._tree.txt +1 -1
  343. package/console/settings/__next.settings.__PAGE__.txt +4 -4
  344. package/console/settings/__next.settings.txt +5 -5
  345. package/console/settings/account-preferences/__next._full.txt +17 -17
  346. package/console/settings/account-preferences/__next._head.txt +4 -4
  347. package/console/settings/account-preferences/__next._index.txt +9 -9
  348. package/console/settings/account-preferences/__next._tree.txt +1 -1
  349. package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
  350. package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
  351. package/console/settings/account-preferences/__next.settings.txt +5 -5
  352. package/console/settings/account-preferences.html +1 -1
  353. package/console/settings/account-preferences.txt +17 -17
  354. package/console/settings/api-keys/__next._full.txt +18 -18
  355. package/console/settings/api-keys/__next._head.txt +4 -4
  356. package/console/settings/api-keys/__next._index.txt +9 -9
  357. package/console/settings/api-keys/__next._tree.txt +1 -1
  358. package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
  359. package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
  360. package/console/settings/api-keys/__next.settings.txt +5 -5
  361. package/console/settings/api-keys.html +1 -1
  362. package/console/settings/api-keys.txt +18 -18
  363. package/console/settings/billing/__next._full.txt +18 -18
  364. package/console/settings/billing/__next._head.txt +4 -4
  365. package/console/settings/billing/__next._index.txt +9 -9
  366. package/console/settings/billing/__next._tree.txt +1 -1
  367. package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
  368. package/console/settings/billing/__next.settings.billing.txt +3 -3
  369. package/console/settings/billing/__next.settings.txt +5 -5
  370. package/console/settings/billing.html +1 -1
  371. package/console/settings/billing.txt +18 -18
  372. package/console/settings/channel-apps/__next._full.txt +17 -17
  373. package/console/settings/channel-apps/__next._head.txt +4 -4
  374. package/console/settings/channel-apps/__next._index.txt +9 -9
  375. package/console/settings/channel-apps/__next._tree.txt +1 -1
  376. package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
  377. package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
  378. package/console/settings/channel-apps/__next.settings.txt +5 -5
  379. package/console/settings/channel-apps.html +1 -1
  380. package/console/settings/channel-apps.txt +17 -17
  381. package/console/settings/cursor-accounts/__next._full.txt +18 -18
  382. package/console/settings/cursor-accounts/__next._head.txt +4 -4
  383. package/console/settings/cursor-accounts/__next._index.txt +9 -9
  384. package/console/settings/cursor-accounts/__next._tree.txt +1 -1
  385. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
  386. package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
  387. package/console/settings/cursor-accounts/__next.settings.txt +5 -5
  388. package/console/settings/cursor-accounts.html +1 -1
  389. package/console/settings/cursor-accounts.txt +18 -18
  390. package/console/settings/environments/__next._full.txt +17 -17
  391. package/console/settings/environments/__next._head.txt +4 -4
  392. package/console/settings/environments/__next._index.txt +9 -9
  393. package/console/settings/environments/__next._tree.txt +1 -1
  394. package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
  395. package/console/settings/environments/__next.settings.environments.txt +3 -3
  396. package/console/settings/environments/__next.settings.txt +5 -5
  397. package/console/settings/environments.html +1 -1
  398. package/console/settings/environments.txt +17 -17
  399. package/console/settings/identity-providers/__next._full.txt +17 -17
  400. package/console/settings/identity-providers/__next._head.txt +4 -4
  401. package/console/settings/identity-providers/__next._index.txt +9 -9
  402. package/console/settings/identity-providers/__next._tree.txt +1 -1
  403. package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
  404. package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
  405. package/console/settings/identity-providers/__next.settings.txt +5 -5
  406. package/console/settings/identity-providers.html +1 -1
  407. package/console/settings/identity-providers.txt +17 -17
  408. package/console/settings/invitations/__next._full.txt +17 -17
  409. package/console/settings/invitations/__next._head.txt +4 -4
  410. package/console/settings/invitations/__next._index.txt +9 -9
  411. package/console/settings/invitations/__next._tree.txt +1 -1
  412. package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
  413. package/console/settings/invitations/__next.settings.invitations.txt +3 -3
  414. package/console/settings/invitations/__next.settings.txt +5 -5
  415. package/console/settings/invitations.html +1 -1
  416. package/console/settings/invitations.txt +17 -17
  417. package/console/settings/licenses/__next._full.txt +18 -18
  418. package/console/settings/licenses/__next._head.txt +4 -4
  419. package/console/settings/licenses/__next._index.txt +9 -9
  420. package/console/settings/licenses/__next._tree.txt +1 -1
  421. package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +4 -4
  422. package/console/settings/licenses/__next.settings.licenses.txt +3 -3
  423. package/console/settings/licenses/__next.settings.txt +5 -5
  424. package/console/settings/licenses.html +1 -1
  425. package/console/settings/licenses.txt +18 -18
  426. package/console/settings/members/__next._full.txt +17 -17
  427. package/console/settings/members/__next._head.txt +4 -4
  428. package/console/settings/members/__next._index.txt +9 -9
  429. package/console/settings/members/__next._tree.txt +1 -1
  430. package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
  431. package/console/settings/members/__next.settings.members.txt +3 -3
  432. package/console/settings/members/__next.settings.txt +5 -5
  433. package/console/settings/members.html +1 -1
  434. package/console/settings/members.txt +17 -17
  435. package/console/settings/memory/__next._full.txt +17 -17
  436. package/console/settings/memory/__next._head.txt +4 -4
  437. package/console/settings/memory/__next._index.txt +9 -9
  438. package/console/settings/memory/__next._tree.txt +1 -1
  439. package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
  440. package/console/settings/memory/__next.settings.memory.txt +3 -3
  441. package/console/settings/memory/__next.settings.txt +5 -5
  442. package/console/settings/memory.html +1 -1
  443. package/console/settings/memory.txt +17 -17
  444. package/console/settings/oauth-apps/__next._full.txt +17 -17
  445. package/console/settings/oauth-apps/__next._head.txt +4 -4
  446. package/console/settings/oauth-apps/__next._index.txt +9 -9
  447. package/console/settings/oauth-apps/__next._tree.txt +1 -1
  448. package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
  449. package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
  450. package/console/settings/oauth-apps/__next.settings.txt +5 -5
  451. package/console/settings/oauth-apps.html +1 -1
  452. package/console/settings/oauth-apps.txt +17 -17
  453. package/console/settings/org-preferences/__next._full.txt +17 -17
  454. package/console/settings/org-preferences/__next._head.txt +4 -4
  455. package/console/settings/org-preferences/__next._index.txt +9 -9
  456. package/console/settings/org-preferences/__next._tree.txt +1 -1
  457. package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
  458. package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
  459. package/console/settings/org-preferences/__next.settings.txt +5 -5
  460. package/console/settings/org-preferences.html +1 -1
  461. package/console/settings/org-preferences.txt +17 -17
  462. package/console/settings/org-profile/__next._full.txt +17 -17
  463. package/console/settings/org-profile/__next._head.txt +4 -4
  464. package/console/settings/org-profile/__next._index.txt +9 -9
  465. package/console/settings/org-profile/__next._tree.txt +1 -1
  466. package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
  467. package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
  468. package/console/settings/org-profile/__next.settings.txt +5 -5
  469. package/console/settings/org-profile.html +1 -1
  470. package/console/settings/org-profile.txt +17 -17
  471. package/console/settings/platform-clients/__next._full.txt +18 -18
  472. package/console/settings/platform-clients/__next._head.txt +4 -4
  473. package/console/settings/platform-clients/__next._index.txt +9 -9
  474. package/console/settings/platform-clients/__next._tree.txt +1 -1
  475. package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
  476. package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
  477. package/console/settings/platform-clients/__next.settings.txt +5 -5
  478. package/console/settings/platform-clients.html +1 -1
  479. package/console/settings/platform-clients.txt +18 -18
  480. package/console/settings/pricing-governance/__next._full.txt +18 -18
  481. package/console/settings/pricing-governance/__next._head.txt +4 -4
  482. package/console/settings/pricing-governance/__next._index.txt +9 -9
  483. package/console/settings/pricing-governance/__next._tree.txt +1 -1
  484. package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
  485. package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
  486. package/console/settings/pricing-governance/__next.settings.txt +5 -5
  487. package/console/settings/pricing-governance.html +1 -1
  488. package/console/settings/pricing-governance.txt +18 -18
  489. package/console/settings/provider-standing/__next._full.txt +18 -18
  490. package/console/settings/provider-standing/__next._head.txt +4 -4
  491. package/console/settings/provider-standing/__next._index.txt +9 -9
  492. package/console/settings/provider-standing/__next._tree.txt +1 -1
  493. package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
  494. package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
  495. package/console/settings/provider-standing/__next.settings.txt +5 -5
  496. package/console/settings/provider-standing.html +1 -1
  497. package/console/settings/provider-standing.txt +18 -18
  498. package/console/settings/teams/__next._full.txt +17 -17
  499. package/console/settings/teams/__next._head.txt +4 -4
  500. package/console/settings/teams/__next._index.txt +9 -9
  501. package/console/settings/teams/__next._tree.txt +1 -1
  502. package/console/settings/teams/__next.settings.teams.__PAGE__.txt +3 -3
  503. package/console/settings/teams/__next.settings.teams.txt +3 -3
  504. package/console/settings/teams/__next.settings.txt +5 -5
  505. package/console/settings/teams.html +1 -1
  506. package/console/settings/teams.txt +17 -17
  507. package/console/settings/usage/__next._full.txt +17 -17
  508. package/console/settings/usage/__next._head.txt +4 -4
  509. package/console/settings/usage/__next._index.txt +9 -9
  510. package/console/settings/usage/__next._tree.txt +1 -1
  511. package/console/settings/usage/__next.settings.txt +5 -5
  512. package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
  513. package/console/settings/usage/__next.settings.usage.txt +3 -3
  514. package/console/settings/usage.html +1 -1
  515. package/console/settings/usage.txt +17 -17
  516. package/console/settings.html +1 -1
  517. package/console/settings.txt +18 -18
  518. package/console/workflows/__next._full.txt +14 -14
  519. package/console/workflows/__next._head.txt +4 -4
  520. package/console/workflows/__next._index.txt +9 -9
  521. package/console/workflows/__next._tree.txt +1 -1
  522. package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
  523. package/console/workflows/__next.workflows.txt +3 -3
  524. package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +15 -15
  525. package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
  526. package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
  527. package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
  528. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
  529. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
  530. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
  531. package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
  532. package/console/workflows/__placeholder__/__placeholder__.html +1 -1
  533. package/console/workflows/__placeholder__/__placeholder__.txt +15 -15
  534. package/console/workflows/executions/__next._full.txt +14 -14
  535. package/console/workflows/executions/__next._head.txt +4 -4
  536. package/console/workflows/executions/__next._index.txt +9 -9
  537. package/console/workflows/executions/__next._tree.txt +1 -1
  538. package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
  539. package/console/workflows/executions/__next.workflows.executions.txt +3 -3
  540. package/console/workflows/executions/__next.workflows.txt +3 -3
  541. package/console/workflows/executions/__placeholder__/__next._full.txt +15 -15
  542. package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
  543. package/console/workflows/executions/__placeholder__/__next._index.txt +9 -9
  544. package/console/workflows/executions/__placeholder__/__next._tree.txt +1 -1
  545. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
  546. package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
  547. package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
  548. package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
  549. package/console/workflows/executions/__placeholder__.html +1 -1
  550. package/console/workflows/executions/__placeholder__.txt +15 -15
  551. package/console/workflows/executions.html +1 -1
  552. package/console/workflows/executions.txt +14 -14
  553. package/console/workflows.html +1 -1
  554. package/console/workflows.txt +14 -14
  555. package/main.js +5 -5
  556. package/package.json +6 -6
  557. package/console/_next/static/chunks/0c38on~9yer5n.js +0 -1
  558. package/console/_next/static/chunks/0m3s~-y075j1o.js +0 -1
  559. package/console/_next/static/chunks/0wyb4nqlt6his.js +0 -1
  560. /package/console/_next/static/{zec9_FSsvTK5epvHZ4seq → 2BPT4TYJ8p-UFjQOb2das}/_buildManifest.js +0 -0
  561. /package/console/_next/static/{zec9_FSsvTK5epvHZ4seq → 2BPT4TYJ8p-UFjQOb2das}/_clientMiddlewareManifest.js +0 -0
  562. /package/console/_next/static/{zec9_FSsvTK5epvHZ4seq → 2BPT4TYJ8p-UFjQOb2das}/_ssgManifest.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigmer/server-slim",
3
- "version": "3.32.0",
3
+ "version": "3.33.0",
4
4
  "description": "Self-contained build of the Stigmer TypeScript control plane, launched by the stigmer CLI's local stack",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -11,11 +11,11 @@
11
11
  "@grpc/grpc-js": "^1.14.4"
12
12
  },
13
13
  "optionalDependencies": {
14
- "@stigmer/server-slim-darwin-arm64": "3.32.0",
15
- "@stigmer/server-slim-darwin-x64": "3.32.0",
16
- "@stigmer/server-slim-linux-x64": "3.32.0",
17
- "@stigmer/server-slim-linux-arm64": "3.32.0",
18
- "@stigmer/server-slim-win32-x64": "3.32.0"
14
+ "@stigmer/server-slim-darwin-arm64": "3.33.0",
15
+ "@stigmer/server-slim-darwin-x64": "3.33.0",
16
+ "@stigmer/server-slim-linux-x64": "3.33.0",
17
+ "@stigmer/server-slim-linux-arm64": "3.33.0",
18
+ "@stigmer/server-slim-win32-x64": "3.33.0"
19
19
  },
20
20
  "repository": {
21
21
  "type": "git",
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,257977,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(610595),i=e.i(17616),a=e.i(188482),l=e.i(891287),o=e.i(587751),g=e.i(586108),d=e.i(583093),c=e.i(326283);function u(){let e=(0,g.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{deletePlatformClient:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.platformclient.delete(t)}catch(e){throw i((0,c.toError)(e)),e}finally{r(!1)}},[e]),isDeleting:t,error:n,clearError:a}}var m=e.i(379410);function x(e,t=new Date){return void 0!==e&&!e.neverExpires&&void 0!==e.expiresAt&&(0,i.timestampDate)(e.expiresAt).getTime()<t.getTime()}function p({org:e,onEdit:i,onRefetchRef:a,className:c}){let{platformClients:u,isLoading:m,error:x,refetch:b}=function(e){let t=(0,g.useStigmer)(),{data:s,isLoading:r,isRefetching:n,error:i,refetch:a}=(0,d.useFetch)(e?()=>t.platformclient.listByOrg((0,l.create)(o.ListPlatformClientsByOrgInputSchema,{org:e})).then(e=>[...e.entries]):null,[e,t],[]);return{platformClients:s,isLoading:r,isRefetching:n,error:i,refetch:a}}(e),[f,v]=(0,s.useState)(null);return(a&&a(b),m)?(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",c),"aria-busy":"true","aria-label":"Loading platform clients",children:Array.from({length:2},(e,s)=>(0,t.jsx)("div",{className:"stg:bg-muted-subtle stg:h-14 stg:animate-pulse stg:rounded-lg"},s))}):x?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-destructive stg:text-xs",c),role:"alert",children:(0,n.getUserMessage)(x)}):0===u.length?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",c),children:"No platform clients configured."}):(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",c),role:"list","aria-label":"Platform clients",children:u.map(e=>{let s=e.metadata?.id??"";return(0,t.jsx)(h,{platformClient:e,isConfirming:f===s,onEdit:i?()=>i(e):void 0,onConfirmDelete:()=>v(s),onCancelDelete:()=>v(null),onDeleted:()=>{v(null),b()}},s)})})}function h({platformClient:e,isConfirming:l,onEdit:o,onConfirmDelete:g,onCancelDelete:d,onDeleted:c}){let{deletePlatformClient:x,isDeleting:p,error:N}=u(),k=e.metadata?.id??"",C=e.spec,w=e.metadata?.name??"Unnamed client",S=C?.clientId??"",I=C?.secretFingerprint??"",D=e.status?.audit?.specAudit?.createdAt,A=(0,s.useCallback)(async()=>{try{await x({resourceId:k}),c()}catch{}},[k,x,c]);return l?(0,t.jsxs)("div",{role:"listitem",className:"stg:flex stg:items-center stg:justify-between stg:rounded-lg stg:border stg:border-destructive/30 stg:bg-destructive-subtle stg:px-3 stg:py-2.5",children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:text-foreground",children:["Delete ",(0,t.jsx)("span",{className:"stg:font-medium",children:w}),"?",S&&(0,t.jsxs)("span",{className:"stg:ml-1 stg:text-muted-foreground",children:["This will invalidate client ID"," ",(0,t.jsx)("code",{className:"stg:font-mono",children:S}),"."]})]}),N&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-destructive",children:(0,n.getUserMessage)(N)})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:A,disabled:p,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[p&&(0,t.jsx)(m.SpinnerIcon,{size:12}),"Delete"]}),(0,t.jsx)("button",{type:"button",onClick:d,disabled:p,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}):(0,t.jsxs)("div",{role:"listitem",className:"stg:flex stg:items-center stg:gap-3 stg:rounded-lg stg:border stg:border-border-muted stg:px-3 stg:py-2.5 stg:hover:border-border stg:transition-colors",children:[(0,t.jsx)(v,{}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-sm stg:font-medium stg:text-foreground",children:w}),S&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-xs stg:text-muted-foreground stg:font-mono",children:S})]}),(0,t.jsxs)("div",{className:"stg:hidden stg:sm:flex stg:shrink-0 stg:items-center stg:gap-3 stg:text-xs stg:text-muted-foreground",children:[I&&(0,t.jsxs)(a.Tooltip,{children:[(0,t.jsxs)(a.TooltipTrigger,{render:(0,t.jsx)("span",{className:"stg:font-mono"}),children:["••••",I.slice(-4)]}),(0,t.jsx)(a.TooltipContent,{side:"top",className:"stg:break-all",children:`Secret fingerprint: ${I}`})]}),(0,t.jsx)(b,{spec:C}),C?.autoProvisionAccounts&&(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"JIT"}),D&&(0,t.jsxs)(a.Tooltip,{children:[(0,t.jsx)(a.TooltipTrigger,{render:(0,t.jsx)("time",{dateTime:(0,i.timestampDate)(D).toISOString()}),children:f((0,i.timestampDate)(D))}),(0,t.jsx)(a.TooltipContent,{side:"top",children:`Created ${(0,i.timestampDate)(D).toISOString()}`})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1",children:[o&&(0,t.jsx)("button",{type:"button",onClick:o,"aria-label":`Edit ${w}`,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),children:(0,t.jsx)(j,{})}),(0,t.jsx)("button",{type:"button",onClick:g,"aria-label":`Delete ${w}`,className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-1","stg:text-muted-foreground stg:hover:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:(0,t.jsx)(y,{})})]})]})}function b({spec:e}){if(e?.neverExpires)return(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"No expiry"});if(e?.expiresAt){let s=(0,i.timestampDate)(e.expiresAt),n=x(e);return(0,t.jsxs)(a.Tooltip,{children:[(0,t.jsx)(a.TooltipTrigger,{render:(0,t.jsx)("time",{dateTime:s.toISOString(),className:(0,r.cn)("stg:text-[0.65rem]",n?"stg:text-destructive stg:font-medium":"stg:text-muted-foreground")}),children:n?"Expired":`Exp ${f(s)}`}),(0,t.jsx)(a.TooltipContent,{side:"top",children:`Expires ${s.toISOString()}`})]})}return null}function f(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function v(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:shrink-0 stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"10.5",cy:"5.5",r:"3"}),(0,t.jsx)("path",{d:"M8.5 7.5L3 13l-.5-2.5L5 10l1-1-1-1 3.5.5z"})]})}function j(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11 2.5l2.5 2.5L5 13.5H2.5V11L11 2.5z"})})}function y(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2.5 4h11M5.5 4V2.5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1V4"}),(0,t.jsx)("path",{d:"M12.5 4v9a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1V4"}),(0,t.jsx)("line",{x1:"6.5",y1:"7",x2:"6.5",y2:"11"}),(0,t.jsx)("line",{x1:"9.5",y1:"7",x2:"9.5",y2:"11"})]})}var N=e.i(869803),k=e.i(430182);function C({org:e,onCreated:i,onCancel:a,className:l}){let o=(0,s.useId)(),{create:d,isCreating:u,error:x,clearError:p}=function(){let e=(0,g.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{create:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.platformclient.create(t)}catch(e){throw i((0,c.toError)(e)),e}finally{r(!1)}},[e]),isCreating:t,error:n,clearError:a}}(),[h,b]=(0,s.useState)(""),[f,v]=(0,s.useState)(!0),[j,y]=(0,s.useState)(""),[A,E]=(0,s.useState)(!0),[R,T]=(0,s.useState)(!0),[L,O]=(0,s.useState)(k.IamRole.iam_role_unspecified),[_,M]=(0,s.useState)([]),[$,F]=(0,s.useState)(""),B=(0,s.useCallback)(e=>{E(e),e||(T(!1),O(k.IamRole.iam_role_unspecified))},[]),U=(0,s.useCallback)(e=>{T(e),e&&E(!0),e||O(k.IamRole.iam_role_unspecified)},[]),P=(0,s.useCallback)(()=>{let e=$.trim();e&&!_.includes(e)&&M(t=>[...t,e]),F("")},[$,_]),G=(0,s.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),P())},[P]),z=(0,s.useCallback)(e=>{M(t=>t.filter(t=>t!==e))},[]),V=h.trim(),W=""!==V&&!u,Y=(0,s.useCallback)(async t=>{if(t.preventDefault(),W){p();try{let t=await d({name:V,org:e,neverExpires:f,...!f&&j&&{expiresAt:new Date(j).toISOString()},autoProvisionAccounts:A,autoGrantOnOrg:R,...R&&L!==k.IamRole.iam_role_unspecified&&{autoGrantRole:L},..._.length>0&&{allowedOrigins:_}});i?.(t)}catch{}}},[W,V,e,f,j,A,R,L,_,d,p,i]);return(0,t.jsxs)("form",{onSubmit:Y,className:(0,r.cn)("stg:space-y-3",l),children:[(0,t.jsx)(S,{id:`${o}-name`,label:"Name",value:h,onChange:b,placeholder:"e.g. my-saas-backend",disabled:u,required:!0}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2"),disabled:u,children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Expiry"}),(0,t.jsx)(I,{checked:f,onChange:v,label:"Never expires",disabled:u}),!f&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${o}-expires-at`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Expires at"}),(0,t.jsx)("input",{id:`${o}-expires-at`,type:"datetime-local",value:j,onChange:e=>y(e.target.value),disabled:u,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")})]})]}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2.5"),disabled:u,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"JIT provisioning"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Configure automatic account creation and role assignment for users authenticated via this platform client."}),(0,t.jsx)(I,{checked:A,onChange:B,label:"Auto-provision accounts",hint:"Create a Stigmer identity account automatically on first token mint",disabled:u}),(0,t.jsx)(I,{checked:R,onChange:U,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:u||!A}),R&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${o}-grant-role`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Auto-grant role"}),(0,t.jsx)("select",{id:`${o}-grant-role`,value:String(L),onChange:e=>O(Number(e.target.value)),disabled:u,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:w.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Role granted automatically — org admins can upgrade later"})]})]}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2"),disabled:u,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Allowed origins"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Browser origins permitted to use tokens minted by this client. Leave empty to allow all origins."}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("input",{type:"text",value:$,onChange:e=>F(e.target.value),onKeyDown:G,onBlur:()=>{$.trim()&&P()},placeholder:"https://example.com",disabled:u,className:(0,r.cn)("stg:min-w-0 stg:flex-1 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,t.jsx)("button",{type:"button",onClick:P,disabled:u||!$.trim(),className:(0,r.cn)("stg:shrink-0 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-colors"),children:"Add"})]}),_.length>0&&(0,t.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-1.5",children:_.map(e=>(0,t.jsxs)("span",{className:"stg:inline-flex stg:items-center stg:gap-1 stg:rounded-full stg:border stg:border-border-muted stg:bg-muted-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-mono stg:text-foreground",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>z(e),disabled:u,"aria-label":`Remove ${e}`,className:"stg:text-muted-foreground stg:hover:text-destructive stg:transition-colors",children:(0,t.jsx)(D,{})})]},e))})]}),x&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(x)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:!W,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[u&&(0,t.jsx)(m.SpinnerIcon,{size:12}),"Create platform client"]}),a&&(0,t.jsx)("button",{type:"button",onClick:a,disabled:u,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]})}let w=[{value:String(k.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(k.IamRole.viewer),label:"Viewer"},{value:String(k.IamRole.member),label:"Member"},{value:String(k.IamRole.admin),label:"Admin"}];function S({id:e,label:s,value:n,onChange:i,placeholder:a,hint:l,disabled:o,required:g}){return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:e,className:"stg:text-xs stg:font-medium stg:text-foreground",children:s}),(0,t.jsx)("input",{id:e,type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,disabled:o,required:g,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),l&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:l})]})}function I({checked:e,onChange:s,label:n,hint:i,disabled:a}){return(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>s(!e),disabled:a,className:(0,r.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:border-2 stg:border-transparent stg:transition-colors",e?"stg:bg-primary":"stg:bg-muted","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)("span",{className:(0,r.cn)("stg:pointer-events-none stg:inline-block stg:h-4 stg:w-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",e?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:n})]}),i&&(0,t.jsx)("p",{className:"stg:pl-11 stg:text-[0.65rem] stg:text-muted-foreground",children:i})]})}function D(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var A=e.i(546839);function E({platformClient:e,onUpdated:a,onSecretRotated:l,onDeleted:o,onBack:d,className:p}){let h=(0,s.useId)(),b=e.spec,f=e.metadata,{update:v,isUpdating:j,error:y,clearError:C}=function(){let e=(0,g.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{update:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.platformclient.update(t)}catch(e){throw i((0,c.toError)(e)),e}finally{r(!1)}},[e]),isUpdating:t,error:n,clearError:a}}(),{rotateSecret:w,isRotating:S,error:I,clearError:D}=function(){let e=(0,g.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{rotateSecret:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.platformclient.rotateSecret(t)}catch(e){throw i((0,c.toError)(e)),e}finally{r(!1)}},[e]),isRotating:t,error:n,clearError:a}}(),{deletePlatformClient:T,isDeleting:_,error:B}=u(),[U,P]=(0,s.useState)("view"),[G,z]=(0,s.useState)(!1),[V,W]=(0,s.useState)(!1),Y=j||S||_,q=x(b),[K,J]=(0,s.useState)(b?.neverExpires??!0),[H,Q]=(0,s.useState)(()=>b?.expiresAt?M((0,i.timestampDate)(b.expiresAt)):""),[X,Z]=(0,s.useState)(b?.autoProvisionAccounts??!1),[ee,et]=(0,s.useState)(b?.autoGrantOnOrg??!1),[es,er]=(0,s.useState)(b?.autoGrantRole??k.IamRole.iam_role_unspecified),[en,ei]=(0,s.useState)([...b?.allowedOrigins??[]]),[ea,el]=(0,s.useState)(""),eo=(0,s.useCallback)(e=>{Z(e),e||(et(!1),er(k.IamRole.iam_role_unspecified))},[]),eg=(0,s.useCallback)(e=>{et(e),e&&Z(!0),e||er(k.IamRole.iam_role_unspecified)},[]),ed=(0,s.useCallback)(()=>{let e=ea.trim();e&&!en.includes(e)&&ei(t=>[...t,e]),el("")},[ea,en]),ec=(0,s.useCallback)(e=>{"Enter"===e.key&&(e.preventDefault(),ed())},[ed]),eu=(0,s.useCallback)(e=>{ei(t=>t.filter(t=>t!==e))},[]),em=(0,s.useCallback)(()=>{J(b?.neverExpires??!0),Q(b?.expiresAt?M((0,i.timestampDate)(b.expiresAt)):""),Z(b?.autoProvisionAccounts??!1),et(b?.autoGrantOnOrg??!1),er(b?.autoGrantRole??k.IamRole.iam_role_unspecified),ei([...b?.allowedOrigins??[]]),el(""),C(),P("edit")},[b,C]),ex=(0,s.useCallback)(()=>{C(),P("view")},[C]),ep=(0,s.useCallback)(async t=>{t.preventDefault(),C();try{let t=await v({...(0,A.toPlatformClientUpdateInput)(e),neverExpires:K,expiresAt:!K&&H?new Date(H):void 0,autoProvisionAccounts:X,autoGrantOnOrg:ee,autoGrantRole:ee&&es!==k.IamRole.iam_role_unspecified?es:void 0,allowedOrigins:en});P("view"),a?.(t)}catch{}},[e,K,H,X,ee,es,en,v,C,a]),eh=(0,s.useCallback)(async()=>{D();try{let e=await w(f?.id??"");W(!1),l?.(e)}catch{}},[f?.id,w,D,l]),eb=(0,s.useCallback)(async()=>{try{await T({resourceId:f?.id??""}),o?.()}catch{}},[f?.id,T,o]),ef=e.status?.audit?.specAudit?.createdAt,ev=e.status?.audit?.specAudit?.updatedAt;return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-4",p),children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[d&&(0,t.jsxs)("button",{type:"button",onClick:d,className:"stg:text-muted-foreground stg:hover:text-foreground stg:mb-1 stg:flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(F,{}),"Back to list"]}),(0,t.jsx)("h3",{className:"stg:text-foreground stg:truncate stg:text-sm stg:font-semibold",children:f?.name??"Platform Client"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[f?.slug&&(0,t.jsx)("span",{className:"stg:text-muted-foreground stg:font-mono stg:text-xs",children:f.slug}),b?.autoProvisionAccounts&&(0,t.jsx)("span",{className:"stg:inline-flex stg:items-center stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-primary",children:"JIT"})]})]}),"view"===U&&(0,t.jsx)("button",{type:"button",onClick:em,className:(0,r.cn)("stg:shrink-0 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),children:"Edit"})]}),"view"===U?(0,t.jsx)(R,{spec:b,createdAt:ef,updatedAt:ev}):(0,t.jsxs)("form",{onSubmit:ep,className:"stg:space-y-3",children:[(0,t.jsxs)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:bg-muted-faint stg:px-3 stg:py-2 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Client ID"}),(0,t.jsx)("p",{className:"stg:font-mono stg:text-xs stg:text-foreground",children:b?.clientId??"—"})]}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2"),disabled:j,children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Expiry"}),(0,t.jsx)(L,{checked:K,onChange:J,label:"Never expires",disabled:j}),!K&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${h}-expires-at`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Expires at"}),(0,t.jsx)("input",{id:`${h}-expires-at`,type:"datetime-local",value:H,onChange:e=>Q(e.target.value),disabled:j,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")})]})]}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2.5"),disabled:j,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"JIT provisioning"}),(0,t.jsx)(L,{checked:X,onChange:eo,label:"Auto-provision accounts",hint:"Create a Stigmer identity account automatically on first token mint",disabled:j}),(0,t.jsx)(L,{checked:ee,onChange:eg,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:j||!X}),ee&&(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${h}-grant-role`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Auto-grant role"}),(0,t.jsx)("select",{id:`${h}-grant-role`,value:String(es),onChange:e=>er(Number(e.target.value)),disabled:j,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:O.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})]})]}),(0,t.jsxs)("fieldset",{className:(0,r.cn)(N.UNSTYLED_FIELDSET,"stg:space-y-2"),disabled:j,children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Allowed origins"}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Browser origins permitted to use tokens minted by this client. Leave empty to allow all origins."}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("input",{type:"text",value:ea,onChange:e=>el(e.target.value),onKeyDown:ec,onBlur:()=>{ea.trim()&&ed()},placeholder:"https://example.com",disabled:j,className:(0,r.cn)("stg:min-w-0 stg:flex-1 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),(0,t.jsx)("button",{type:"button",onClick:ed,disabled:j||!ea.trim(),className:(0,r.cn)("stg:shrink-0 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-colors"),children:"Add"})]}),en.length>0&&(0,t.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-1.5",children:en.map(e=>(0,t.jsxs)("span",{className:"stg:inline-flex stg:items-center stg:gap-1 stg:rounded-full stg:border stg:border-border-muted stg:bg-muted-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-mono stg:text-foreground",children:[e,(0,t.jsx)("button",{type:"button",onClick:()=>eu(e),disabled:j,"aria-label":`Remove ${e}`,className:"stg:text-muted-foreground stg:hover:text-destructive stg:transition-colors",children:(0,t.jsx)($,{})})]},e))})]}),y&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(y)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:j,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[j&&(0,t.jsx)(m.SpinnerIcon,{size:12}),"Save changes"]}),(0,t.jsx)("button",{type:"button",onClick:ex,disabled:j,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}),"view"===U&&(0,t.jsxs)("div",{className:"stg:space-y-2 stg:pt-2",children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),V?(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:rounded-md stg:border stg:border-warning/30 stg:bg-warning/5 stg:px-3 stg:py-2",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:text-foreground",children:["Rotate secret? The current secret will be",(0,t.jsx)("span",{className:"stg:font-medium",children:" permanently invalidated"}),".",q&&(0,t.jsx)("span",{className:"stg:mt-1 stg:block stg:text-destructive",children:"This client has expired. Rotating does not extend it; edit its expiry instead."})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:eh,disabled:Y,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[S&&(0,t.jsx)(m.SpinnerIcon,{size:12}),"Rotate"]}),(0,t.jsx)("button",{type:"button",onClick:()=>{W(!1),D()},disabled:Y,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}):(0,t.jsx)("button",{type:"button",onClick:()=>W(!0),disabled:Y,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-colors"),children:"Rotate secret"}),I&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(I)}),G?(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:rounded-md stg:border stg:border-destructive/30 stg:bg-destructive-subtle stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("p",{className:"stg:text-xs stg:text-foreground",children:["Delete"," ",(0,t.jsx)("span",{className:"stg:font-medium",children:f?.name}),"? This action is permanent."]}),B&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-destructive",children:(0,n.getUserMessage)(B)})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:eb,disabled:Y,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[_&&(0,t.jsx)(m.SpinnerIcon,{size:12}),"Delete"]}),(0,t.jsx)("button",{type:"button",onClick:()=>z(!1),disabled:Y,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]}):(0,t.jsx)("button",{type:"button",onClick:()=>z(!0),disabled:Y,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:text-destructive stg:hover:text-destructive-foreground stg:hover:bg-destructive-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-colors"),children:"Delete platform client"})]})]})}function R({spec:e,createdAt:s,updatedAt:r}){return(0,t.jsxs)("dl",{className:"stg:space-y-2.5",children:[(0,t.jsx)(T,{label:"Client ID",value:e?.clientId,mono:!0}),(0,t.jsx)(T,{label:"Secret fingerprint",value:e?.secretFingerprint?`••••${e.secretFingerprint.slice(-4)}`:void 0,mono:!0}),e?.neverExpires?(0,t.jsx)(T,{label:"Expiry",value:"Never expires"}):e?.expiresAt?x(e)?(0,t.jsx)(T,{label:"Expired",value:_((0,i.timestampDate)(e.expiresAt)),tone:"destructive"}):(0,t.jsx)(T,{label:"Expires",value:_((0,i.timestampDate)(e.expiresAt))}):null,(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)(T,{label:"Auto-provision accounts",value:e?.autoProvisionAccounts?"Enabled":"Disabled"}),(0,t.jsx)(T,{label:"Auto-grant on organization",value:e?.autoGrantOnOrg?"Enabled":"Disabled"}),e?.autoGrantOnOrg&&(0,t.jsx)(T,{label:"Auto-grant role",value:function(e){switch(e){case k.IamRole.viewer:return"Viewer";case k.IamRole.member:return"Member";case k.IamRole.admin:return"Admin";case k.IamRole.owner:return"Owner";default:return"Viewer (default)"}}(e.autoGrantRole)}),(e?.allowedOrigins.length??0)>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground stg:text-[0.65rem] stg:font-medium",children:"Allowed origins"}),(0,t.jsx)("dd",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:gap-1.5",children:e.allowedOrigins.map(e=>(0,t.jsx)("span",{className:"stg:inline-block stg:rounded-full stg:border stg:border-border-muted stg:bg-muted-subtle stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-mono stg:text-foreground",children:e},e))})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-6",children:[s&&(0,t.jsx)(T,{label:"Created",value:_((0,i.timestampDate)(s))}),r&&(0,t.jsx)(T,{label:"Updated",value:_((0,i.timestampDate)(r))})]})]})}function T({label:e,value:s,mono:n,tone:i}){return s?(0,t.jsxs)("div",{children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground stg:text-[0.65rem] stg:font-medium",children:e}),(0,t.jsx)("dd",{className:(0,r.cn)("stg:mt-0.5 stg:break-all stg:text-xs","destructive"===i?"stg:text-destructive stg:font-medium":"stg:text-foreground",n&&"stg:font-mono"),children:s})]}):null}function L({checked:e,onChange:s,label:n,hint:i,disabled:a}){return(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>s(!e),disabled:a,className:(0,r.cn)("stg:relative stg:inline-flex stg:h-5 stg:w-9 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:border-2 stg:border-transparent stg:transition-colors",e?"stg:bg-primary":"stg:bg-muted","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)("span",{className:(0,r.cn)("stg:pointer-events-none stg:inline-block stg:h-4 stg:w-4 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",e?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:n})]}),i&&(0,t.jsx)("p",{className:"stg:pl-11 stg:text-[0.65rem] stg:text-muted-foreground",children:i})]})}let O=[{value:String(k.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(k.IamRole.viewer),label:"Viewer"},{value:String(k.IamRole.member),label:"Member"},{value:String(k.IamRole.admin),label:"Admin"}];function _(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function M(e){let t=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`}function $(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}function F(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M10 3L5 8l5 5"})})}var B=e.i(162697),U=e.i(193799);function P({clientId:e,clientSecret:s,context:n,onDismiss:i,className:a}){return(0,t.jsxs)("div",{role:"alert",className:(0,r.cn)("stg:rounded-lg stg:border stg:border-primary/30 stg:bg-primary-subtle stg:p-4",a),children:[(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-start stg:justify-between stg:gap-3",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"created"===n?"Platform client created":"Client secret rotated"}),(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:"Copy the client secret now. It will not be shown again."})]}),(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":"Dismiss",className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),children:(0,t.jsx)(W,{})})]}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)(G,{label:"Client ID",value:e}),(0,t.jsx)(G,{label:"Client secret",value:s})]})]})}function G({label:e,value:n}){let{copy:i,copied:a}=(0,U.useCopyFeedback)(),l=(0,s.useRef)(null),o=(0,s.useCallback)(async()=>{!await i(n)&&l.current&&(0,B.selectElementText)(l.current)},[i,n]);return(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:e}),(0,t.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("code",{ref:l,className:(0,r.cn)("stg:min-w-0 stg:flex-1 stg:select-all stg:truncate stg:rounded-md","stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5","stg:font-mono stg:text-xs stg:text-foreground"),children:n}),(0,t.jsxs)("button",{type:"button",onClick:()=>void o(),"aria-label":`Copy ${e}`,className:(0,r.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:transition-colors"),children:[a?(0,t.jsx)(V,{}):(0,t.jsx)(z,{}),a?"Copied":"Copy"]})]}),(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"stg:sr-only",children:a&&`${e} copied to clipboard`})]})}function z(){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("rect",{x:"5",y:"5",width:"9",height:"9",rx:"1.5"}),(0,t.jsx)("path",{d:"M5 11H3.5A1.5 1.5 0 0 1 2 9.5V3.5A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"})]})}function V(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 8.5l3.5 3.5L13 5"})})}function W(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var Y=e.i(630983),q=e.i(297629);e.s(["PlatformClientsSection",0,function(){let e=(0,s.useId)(),r=(0,q.useActiveOrgSlug)(),{serverInfo:n}=function(){let e=(0,g.useStigmer)(),{data:t,isLoading:s,error:r}=(0,d.useFetch)(()=>e.platform.getServerInfo(),[e],null,{cacheKey:"server-info"});return{serverInfo:t,isLoading:s,error:r}}(),i=n?.authenticationRequired===!1,a=null!==n&&!i,[l,o]=(0,s.useState)({phase:"idle"}),c=(0,s.useRef)(null),u=(0,s.useCallback)(e=>{c.current=e},[]),m=(0,s.useCallback)(e=>{c.current?.(),o({phase:"revealing",clientId:e.platformClient?.spec?.clientId??"",clientSecret:e.clientSecret,context:"created"})},[]),x=(0,s.useCallback)(e=>{c.current?.(),o({phase:"revealing",clientId:e.platformClient?.spec?.clientId??"",clientSecret:e.clientSecret,context:"rotated"})},[]),h=(0,s.useCallback)(()=>{c.current?.(),o({phase:"idle"})},[]),b=(0,s.useCallback)(()=>{c.current?.(),o({phase:"idle"})},[]);return(0,t.jsxs)("section",{"aria-labelledby":e,children:[(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("h2",{id:e,className:"stg:text-foreground stg:text-sm stg:font-semibold",children:"Platform Clients"}),a&&r&&"idle"===l.phase&&(0,t.jsx)("button",{type:"button",onClick:()=>o({phase:"creating"}),className:"stg:text-primary stg:hover:text-foreground stg:text-xs stg:font-medium stg:transition-colors",children:"+ New platform client"})]}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mb-4 stg:text-xs",children:"Platform clients let your backend mint Stigmer user tokens so you can embed Stigmer components in your application without requiring OIDC federation."}),i&&(0,t.jsxs)(Y.CloudFeatureNotice,{className:"stg:mb-4",children:["This server trusts every request, so nothing would verify a platform client's tokens and it does not mint them. Configure an identity provider (",(0,t.jsx)("code",{children:"STIGMER_OIDC_ISSUER"}),") to create platform clients."]}),"creating"===l.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(C,{org:r,onCreated:m,onCancel:()=>o({phase:"idle"})})}):"revealing"===l.phase?(0,t.jsxs)("div",{className:"stg:space-y-4",children:[(0,t.jsx)(P,{clientId:l.clientId,clientSecret:l.clientSecret,context:l.context,onDismiss:()=>o({phase:"idle"})}),(0,t.jsx)(p,{org:r,onEdit:e=>o({phase:"editing",platformClient:e}),onRefetchRef:u})]}):"editing"===l.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(E,{platformClient:l.platformClient,onUpdated:h,onSecretRotated:x,onDeleted:b,onBack:()=>o({phase:"idle"})})}):(0,t.jsx)(p,{org:r,onEdit:e=>o({phase:"editing",platformClient:e}),onRefetchRef:u})]})}],257977)}]);