@stigmer/server-slim 3.27.0 → 3.27.2
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.
- package/console/404.html +1 -1
- package/console/__next.__PAGE__.txt +2 -2
- package/console/__next._full.txt +14 -14
- package/console/__next._head.txt +4 -4
- package/console/__next._index.txt +9 -9
- package/console/__next._tree.txt +1 -1
- package/console/_next/static/chunks/01t5bq-0-a_i1.js +1 -0
- package/console/_next/static/chunks/{0ecjlb.bunt.1.js → 02-y8.0mij3oo.js} +1 -1
- package/console/_next/static/chunks/06305x101kz.-.js +1 -0
- package/console/_next/static/chunks/0a0wj-awx7rg..js +1 -0
- package/console/_next/static/chunks/0aao6-s-v_vxi.js +1 -0
- package/console/_next/static/chunks/0it9gag-6iroy.js +1 -0
- package/console/_next/static/chunks/0k.09v5itlmei.js +1 -0
- package/console/_next/static/chunks/0zwmzxuausxu9.js +1 -0
- package/console/_next/static/chunks/107k.7sfwlnvt.js +1 -0
- package/console/_next/static/chunks/{15ujs0cxvcbwz.js → 11i.dbxqrdc26.js} +1 -1
- package/console/_next/static/chunks/{00r~itj4ekq5y.js → 16wp_e52o23tz.js} +1 -1
- package/console/_not-found/__next._full.txt +14 -14
- package/console/_not-found/__next._head.txt +4 -4
- package/console/_not-found/__next._index.txt +9 -9
- package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
- package/console/_not-found/__next._not-found.txt +3 -3
- package/console/_not-found/__next._tree.txt +1 -1
- package/console/_not-found.html +1 -1
- package/console/_not-found.txt +14 -14
- package/console/auth/callback/__next._full.txt +16 -16
- package/console/auth/callback/__next._head.txt +4 -4
- package/console/auth/callback/__next._index.txt +9 -9
- package/console/auth/callback/__next._tree.txt +1 -1
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
- package/console/auth/callback/__next.auth.callback.txt +3 -3
- package/console/auth/callback/__next.auth.txt +3 -3
- package/console/auth/callback.html +1 -1
- package/console/auth/callback.txt +16 -16
- package/console/auth/github/callback/__next._full.txt +16 -16
- package/console/auth/github/callback/__next._head.txt +4 -4
- package/console/auth/github/callback/__next._index.txt +9 -9
- package/console/auth/github/callback/__next._tree.txt +1 -1
- package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
- package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
- package/console/auth/github/callback/__next.auth.github.txt +3 -3
- package/console/auth/github/callback/__next.auth.txt +3 -3
- package/console/auth/github/callback.html +1 -1
- package/console/auth/github/callback.txt +16 -16
- package/console/auth/oauth/callback/__next._full.txt +16 -16
- package/console/auth/oauth/callback/__next._head.txt +4 -4
- package/console/auth/oauth/callback/__next._index.txt +9 -9
- package/console/auth/oauth/callback/__next._tree.txt +1 -1
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
- package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.txt +3 -3
- package/console/auth/oauth/callback.html +1 -1
- package/console/auth/oauth/callback.txt +16 -16
- package/console/chat/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/chat/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__.html +1 -1
- package/console/chat/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations/__next._full.txt +15 -15
- package/console/conversations/__next._head.txt +4 -4
- package/console/conversations/__next._index.txt +9 -9
- package/console/conversations/__next._tree.txt +1 -1
- package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
- package/console/conversations/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__.html +1 -1
- package/console/conversations/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations.html +1 -1
- package/console/conversations.txt +15 -15
- package/console/dashboard/__next._full.txt +15 -15
- package/console/dashboard/__next._head.txt +4 -4
- package/console/dashboard/__next._index.txt +9 -9
- package/console/dashboard/__next._tree.txt +1 -1
- package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
- package/console/dashboard/__next.dashboard.txt +3 -3
- package/console/dashboard.html +1 -1
- package/console/dashboard.txt +15 -15
- package/console/executions/__placeholder__/__next._full.txt +14 -14
- package/console/executions/__placeholder__/__next._head.txt +4 -4
- package/console/executions/__placeholder__/__next._index.txt +9 -9
- package/console/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
- package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
- package/console/executions/__placeholder__/__next.executions.txt +3 -3
- package/console/executions/__placeholder__.html +1 -1
- package/console/executions/__placeholder__.txt +14 -14
- package/console/index.html +1 -1
- package/console/index.txt +14 -14
- package/console/invite/__placeholder__/__next._full.txt +15 -15
- package/console/invite/__placeholder__/__next._head.txt +4 -4
- package/console/invite/__placeholder__/__next._index.txt +9 -9
- package/console/invite/__placeholder__/__next._tree.txt +1 -1
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.txt +3 -3
- package/console/invite/__placeholder__.html +1 -1
- package/console/invite/__placeholder__.txt +15 -15
- package/console/library/__next._full.txt +17 -17
- package/console/library/__next._head.txt +4 -4
- package/console/library/__next._index.txt +9 -9
- package/console/library/__next._tree.txt +1 -1
- package/console/library/__next.library.__PAGE__.txt +3 -3
- package/console/library/__next.library.txt +5 -5
- package/console/library/agents/__next._full.txt +17 -17
- package/console/library/agents/__next._head.txt +4 -4
- package/console/library/agents/__next._index.txt +9 -9
- package/console/library/agents/__next._tree.txt +1 -1
- package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
- package/console/library/agents/__next.library.agents.txt +3 -3
- package/console/library/agents/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
- package/console/library/agents/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/agents/new/__next._full.txt +18 -18
- package/console/library/agents/new/__next._head.txt +4 -4
- package/console/library/agents/new/__next._index.txt +9 -9
- package/console/library/agents/new/__next._tree.txt +1 -1
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
- package/console/library/agents/new/__next.library.agents.new.txt +3 -3
- package/console/library/agents/new/__next.library.agents.txt +3 -3
- package/console/library/agents/new/__next.library.txt +5 -5
- package/console/library/agents/new.html +1 -1
- package/console/library/agents/new.txt +18 -18
- package/console/library/agents.html +1 -1
- package/console/library/agents.txt +17 -17
- package/console/library/mcp-servers/__next._full.txt +17 -17
- package/console/library/mcp-servers/__next._head.txt +4 -4
- package/console/library/mcp-servers/__next._index.txt +9 -9
- package/console/library/mcp-servers/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/mcp-servers/new/__next._full.txt +18 -18
- package/console/library/mcp-servers/new/__next._head.txt +4 -4
- package/console/library/mcp-servers/new/__next._index.txt +9 -9
- package/console/library/mcp-servers/new/__next._tree.txt +1 -1
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.txt +5 -5
- package/console/library/mcp-servers/new.html +1 -1
- package/console/library/mcp-servers/new.txt +18 -18
- package/console/library/mcp-servers.html +1 -1
- package/console/library/mcp-servers.txt +17 -17
- package/console/library/plugins/__next._full.txt +17 -17
- package/console/library/plugins/__next._head.txt +4 -4
- package/console/library/plugins/__next._index.txt +9 -9
- package/console/library/plugins/__next._tree.txt +1 -1
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
- package/console/library/plugins/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/plugins/upload/__next._full.txt +18 -18
- package/console/library/plugins/upload/__next._head.txt +4 -4
- package/console/library/plugins/upload/__next._index.txt +9 -9
- package/console/library/plugins/upload/__next._tree.txt +1 -1
- package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
- package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
- package/console/library/plugins/upload/__next.library.txt +5 -5
- package/console/library/plugins/upload.html +1 -1
- package/console/library/plugins/upload.txt +18 -18
- package/console/library/plugins.html +1 -1
- package/console/library/plugins.txt +17 -17
- package/console/library/schedules/__next._full.txt +17 -17
- package/console/library/schedules/__next._head.txt +4 -4
- package/console/library/schedules/__next._index.txt +9 -9
- package/console/library/schedules/__next._tree.txt +1 -1
- package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
- package/console/library/schedules/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/schedules/new/__next._full.txt +18 -18
- package/console/library/schedules/new/__next._head.txt +4 -4
- package/console/library/schedules/new/__next._index.txt +9 -9
- package/console/library/schedules/new/__next._tree.txt +1 -1
- package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
- package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
- package/console/library/schedules/new/__next.library.schedules.txt +3 -3
- package/console/library/schedules/new/__next.library.txt +5 -5
- package/console/library/schedules/new.html +1 -1
- package/console/library/schedules/new.txt +18 -18
- package/console/library/schedules.html +1 -1
- package/console/library/schedules.txt +17 -17
- package/console/library/skills/__next._full.txt +17 -17
- package/console/library/skills/__next._head.txt +4 -4
- package/console/library/skills/__next._index.txt +9 -9
- package/console/library/skills/__next._tree.txt +1 -1
- package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
- package/console/library/skills/__next.library.skills.txt +3 -3
- package/console/library/skills/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
- package/console/library/skills/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/skills/new/__next._full.txt +18 -18
- package/console/library/skills/new/__next._head.txt +4 -4
- package/console/library/skills/new/__next._index.txt +9 -9
- package/console/library/skills/new/__next._tree.txt +1 -1
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
- package/console/library/skills/new/__next.library.skills.new.txt +3 -3
- package/console/library/skills/new/__next.library.skills.txt +3 -3
- package/console/library/skills/new/__next.library.txt +5 -5
- package/console/library/skills/new.html +1 -1
- package/console/library/skills/new.txt +18 -18
- package/console/library/skills.html +1 -1
- package/console/library/skills.txt +17 -17
- package/console/library/workflows/__next._full.txt +17 -17
- package/console/library/workflows/__next._head.txt +4 -4
- package/console/library/workflows/__next._index.txt +9 -9
- package/console/library/workflows/__next._tree.txt +1 -1
- package/console/library/workflows/__next.library.txt +5 -5
- package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
- package/console/library/workflows/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/workflows/executions/__next._full.txt +17 -17
- package/console/library/workflows/executions/__next._head.txt +4 -4
- package/console/library/workflows/executions/__next._index.txt +9 -9
- package/console/library/workflows/executions/__next._tree.txt +1 -1
- package/console/library/workflows/executions/__next.library.txt +5 -5
- package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
- package/console/library/workflows/executions.html +1 -1
- package/console/library/workflows/executions.txt +17 -17
- package/console/library/workflows/new/__next._full.txt +18 -18
- package/console/library/workflows/new/__next._head.txt +4 -4
- package/console/library/workflows/new/__next._index.txt +9 -9
- package/console/library/workflows/new/__next._tree.txt +1 -1
- package/console/library/workflows/new/__next.library.txt +5 -5
- package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
- package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
- package/console/library/workflows/new/__next.library.workflows.txt +3 -3
- package/console/library/workflows/new.html +1 -1
- package/console/library/workflows/new.txt +18 -18
- package/console/library/workflows.html +1 -1
- package/console/library/workflows.txt +17 -17
- package/console/library.html +1 -1
- package/console/library.txt +17 -17
- package/console/login/__next._full.txt +16 -16
- package/console/login/__next._head.txt +4 -4
- package/console/login/__next._index.txt +9 -9
- package/console/login/__next._tree.txt +1 -1
- package/console/login/__next.login.__PAGE__.txt +4 -4
- package/console/login/__next.login.txt +3 -3
- package/console/login.html +1 -1
- package/console/login.txt +16 -16
- package/console/marketplace/__next._full.txt +15 -15
- package/console/marketplace/__next._head.txt +4 -4
- package/console/marketplace/__next._index.txt +9 -9
- package/console/marketplace/__next._tree.txt +1 -1
- package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
- package/console/marketplace/__next.marketplace.txt +3 -3
- package/console/marketplace.html +1 -1
- package/console/marketplace.txt +15 -15
- package/console/oauth/slack/callback/__next._full.txt +16 -16
- package/console/oauth/slack/callback/__next._head.txt +4 -4
- package/console/oauth/slack/callback/__next._index.txt +9 -9
- package/console/oauth/slack/callback/__next._tree.txt +1 -1
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
- package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.txt +3 -3
- package/console/oauth/slack/callback.html +1 -1
- package/console/oauth/slack/callback.txt +16 -16
- package/console/sessions/__placeholder__/__next._full.txt +14 -14
- package/console/sessions/__placeholder__/__next._head.txt +4 -4
- package/console/sessions/__placeholder__/__next._index.txt +9 -9
- package/console/sessions/__placeholder__/__next._tree.txt +1 -1
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
- package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
- package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
- package/console/sessions/__placeholder__.html +1 -1
- package/console/sessions/__placeholder__.txt +14 -14
- package/console/settings/__next._full.txt +18 -18
- package/console/settings/__next._head.txt +4 -4
- package/console/settings/__next._index.txt +9 -9
- package/console/settings/__next._tree.txt +1 -1
- package/console/settings/__next.settings.__PAGE__.txt +4 -4
- package/console/settings/__next.settings.txt +5 -5
- package/console/settings/account-preferences/__next._full.txt +17 -17
- package/console/settings/account-preferences/__next._head.txt +4 -4
- package/console/settings/account-preferences/__next._index.txt +9 -9
- package/console/settings/account-preferences/__next._tree.txt +1 -1
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
- package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
- package/console/settings/account-preferences/__next.settings.txt +5 -5
- package/console/settings/account-preferences.html +1 -1
- package/console/settings/account-preferences.txt +17 -17
- package/console/settings/api-keys/__next._full.txt +17 -17
- package/console/settings/api-keys/__next._head.txt +4 -4
- package/console/settings/api-keys/__next._index.txt +9 -9
- package/console/settings/api-keys/__next._tree.txt +1 -1
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
- package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
- package/console/settings/api-keys/__next.settings.txt +5 -5
- package/console/settings/api-keys.html +1 -1
- package/console/settings/api-keys.txt +17 -17
- package/console/settings/billing/__next._full.txt +18 -18
- package/console/settings/billing/__next._head.txt +4 -4
- package/console/settings/billing/__next._index.txt +9 -9
- package/console/settings/billing/__next._tree.txt +1 -1
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
- package/console/settings/billing/__next.settings.billing.txt +3 -3
- package/console/settings/billing/__next.settings.txt +5 -5
- package/console/settings/billing.html +1 -1
- package/console/settings/billing.txt +18 -18
- package/console/settings/channel-apps/__next._full.txt +17 -17
- package/console/settings/channel-apps/__next._head.txt +4 -4
- package/console/settings/channel-apps/__next._index.txt +9 -9
- package/console/settings/channel-apps/__next._tree.txt +1 -1
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
- package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
- package/console/settings/channel-apps/__next.settings.txt +5 -5
- package/console/settings/channel-apps.html +1 -1
- package/console/settings/channel-apps.txt +17 -17
- package/console/settings/cursor-accounts/__next._full.txt +18 -18
- package/console/settings/cursor-accounts/__next._head.txt +4 -4
- package/console/settings/cursor-accounts/__next._index.txt +9 -9
- package/console/settings/cursor-accounts/__next._tree.txt +1 -1
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
- package/console/settings/cursor-accounts/__next.settings.txt +5 -5
- package/console/settings/cursor-accounts.html +1 -1
- package/console/settings/cursor-accounts.txt +18 -18
- package/console/settings/environments/__next._full.txt +17 -17
- package/console/settings/environments/__next._head.txt +4 -4
- package/console/settings/environments/__next._index.txt +9 -9
- package/console/settings/environments/__next._tree.txt +1 -1
- package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
- package/console/settings/environments/__next.settings.environments.txt +3 -3
- package/console/settings/environments/__next.settings.txt +5 -5
- package/console/settings/environments.html +1 -1
- package/console/settings/environments.txt +17 -17
- package/console/settings/identity-providers/__next._full.txt +18 -18
- package/console/settings/identity-providers/__next._head.txt +4 -4
- package/console/settings/identity-providers/__next._index.txt +9 -9
- package/console/settings/identity-providers/__next._tree.txt +1 -1
- package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
- package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
- package/console/settings/identity-providers/__next.settings.txt +5 -5
- package/console/settings/identity-providers.html +1 -1
- package/console/settings/identity-providers.txt +18 -18
- package/console/settings/invitations/__next._full.txt +17 -17
- package/console/settings/invitations/__next._head.txt +4 -4
- package/console/settings/invitations/__next._index.txt +9 -9
- package/console/settings/invitations/__next._tree.txt +1 -1
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
- package/console/settings/invitations/__next.settings.invitations.txt +3 -3
- package/console/settings/invitations/__next.settings.txt +5 -5
- package/console/settings/invitations.html +1 -1
- package/console/settings/invitations.txt +17 -17
- package/console/settings/licenses/__next._full.txt +18 -18
- package/console/settings/licenses/__next._head.txt +4 -4
- package/console/settings/licenses/__next._index.txt +9 -9
- package/console/settings/licenses/__next._tree.txt +1 -1
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +4 -4
- package/console/settings/licenses/__next.settings.licenses.txt +3 -3
- package/console/settings/licenses/__next.settings.txt +5 -5
- package/console/settings/licenses.html +1 -1
- package/console/settings/licenses.txt +18 -18
- package/console/settings/members/__next._full.txt +17 -17
- package/console/settings/members/__next._head.txt +4 -4
- package/console/settings/members/__next._index.txt +9 -9
- package/console/settings/members/__next._tree.txt +1 -1
- package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
- package/console/settings/members/__next.settings.members.txt +3 -3
- package/console/settings/members/__next.settings.txt +5 -5
- package/console/settings/members.html +1 -1
- package/console/settings/members.txt +17 -17
- package/console/settings/memory/__next._full.txt +17 -17
- package/console/settings/memory/__next._head.txt +4 -4
- package/console/settings/memory/__next._index.txt +9 -9
- package/console/settings/memory/__next._tree.txt +1 -1
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
- package/console/settings/memory/__next.settings.memory.txt +3 -3
- package/console/settings/memory/__next.settings.txt +5 -5
- package/console/settings/memory.html +1 -1
- package/console/settings/memory.txt +17 -17
- package/console/settings/oauth-apps/__next._full.txt +17 -17
- package/console/settings/oauth-apps/__next._head.txt +4 -4
- package/console/settings/oauth-apps/__next._index.txt +9 -9
- package/console/settings/oauth-apps/__next._tree.txt +1 -1
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.txt +5 -5
- package/console/settings/oauth-apps.html +1 -1
- package/console/settings/oauth-apps.txt +17 -17
- package/console/settings/org-preferences/__next._full.txt +17 -17
- package/console/settings/org-preferences/__next._head.txt +4 -4
- package/console/settings/org-preferences/__next._index.txt +9 -9
- package/console/settings/org-preferences/__next._tree.txt +1 -1
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
- package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
- package/console/settings/org-preferences/__next.settings.txt +5 -5
- package/console/settings/org-preferences.html +1 -1
- package/console/settings/org-preferences.txt +17 -17
- package/console/settings/org-profile/__next._full.txt +18 -18
- package/console/settings/org-profile/__next._head.txt +4 -4
- package/console/settings/org-profile/__next._index.txt +9 -9
- package/console/settings/org-profile/__next._tree.txt +1 -1
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
- package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
- package/console/settings/org-profile/__next.settings.txt +5 -5
- package/console/settings/org-profile.html +1 -1
- package/console/settings/org-profile.txt +18 -18
- package/console/settings/platform-clients/__next._full.txt +17 -17
- package/console/settings/platform-clients/__next._head.txt +4 -4
- package/console/settings/platform-clients/__next._index.txt +9 -9
- package/console/settings/platform-clients/__next._tree.txt +1 -1
- package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
- package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
- package/console/settings/platform-clients/__next.settings.txt +5 -5
- package/console/settings/platform-clients.html +1 -1
- package/console/settings/platform-clients.txt +17 -17
- package/console/settings/pricing-governance/__next._full.txt +18 -18
- package/console/settings/pricing-governance/__next._head.txt +4 -4
- package/console/settings/pricing-governance/__next._index.txt +9 -9
- package/console/settings/pricing-governance/__next._tree.txt +1 -1
- package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
- package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
- package/console/settings/pricing-governance/__next.settings.txt +5 -5
- package/console/settings/pricing-governance.html +1 -1
- package/console/settings/pricing-governance.txt +18 -18
- package/console/settings/provider-standing/__next._full.txt +18 -18
- package/console/settings/provider-standing/__next._head.txt +4 -4
- package/console/settings/provider-standing/__next._index.txt +9 -9
- package/console/settings/provider-standing/__next._tree.txt +1 -1
- package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
- package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
- package/console/settings/provider-standing/__next.settings.txt +5 -5
- package/console/settings/provider-standing.html +1 -1
- package/console/settings/provider-standing.txt +18 -18
- package/console/settings/teams/__next._full.txt +17 -17
- package/console/settings/teams/__next._head.txt +4 -4
- package/console/settings/teams/__next._index.txt +9 -9
- package/console/settings/teams/__next._tree.txt +1 -1
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +3 -3
- package/console/settings/teams/__next.settings.teams.txt +3 -3
- package/console/settings/teams/__next.settings.txt +5 -5
- package/console/settings/teams.html +1 -1
- package/console/settings/teams.txt +17 -17
- package/console/settings/usage/__next._full.txt +17 -17
- package/console/settings/usage/__next._head.txt +4 -4
- package/console/settings/usage/__next._index.txt +9 -9
- package/console/settings/usage/__next._tree.txt +1 -1
- package/console/settings/usage/__next.settings.txt +5 -5
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
- package/console/settings/usage/__next.settings.usage.txt +3 -3
- package/console/settings/usage.html +1 -1
- package/console/settings/usage.txt +17 -17
- package/console/settings.html +1 -1
- package/console/settings.txt +18 -18
- package/console/workflows/__next._full.txt +14 -14
- package/console/workflows/__next._head.txt +4 -4
- package/console/workflows/__next._index.txt +9 -9
- package/console/workflows/__next._tree.txt +1 -1
- package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
- package/console/workflows/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/workflows/__placeholder__/__placeholder__.txt +15 -15
- package/console/workflows/executions/__next._full.txt +14 -14
- package/console/workflows/executions/__next._head.txt +4 -4
- package/console/workflows/executions/__next._index.txt +9 -9
- package/console/workflows/executions/__next._tree.txt +1 -1
- package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
- package/console/workflows/executions/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/executions/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__.html +1 -1
- package/console/workflows/executions/__placeholder__.txt +15 -15
- package/console/workflows/executions.html +1 -1
- package/console/workflows/executions.txt +14 -14
- package/console/workflows.html +1 -1
- package/console/workflows.txt +14 -14
- package/main.js +5 -5
- package/package.json +6 -6
- package/console/_next/static/chunks/0-zcgxw8vt51~.js +0 -1
- package/console/_next/static/chunks/01_egbwaa3b.d.js +0 -1
- package/console/_next/static/chunks/05uzu4-_sp1yp.js +0 -1
- package/console/_next/static/chunks/0heeg7tjg-ble.js +0 -1
- package/console/_next/static/chunks/0io-wgdji~5d0.js +0 -1
- package/console/_next/static/chunks/0rihzw4w1wzg3.js +0 -1
- package/console/_next/static/chunks/0xy23zns071f6.js +0 -1
- package/console/_next/static/chunks/189scd957oqn5.js +0 -1
- /package/console/_next/static/{MYSrXmkdRZDzmi_vg4TIZ → DNLQClN7GaRAVmHLSwsMN}/_buildManifest.js +0 -0
- /package/console/_next/static/{MYSrXmkdRZDzmi_vg4TIZ → DNLQClN7GaRAVmHLSwsMN}/_clientMiddlewareManifest.js +0 -0
- /package/console/_next/static/{MYSrXmkdRZDzmi_vg4TIZ → DNLQClN7GaRAVmHLSwsMN}/_ssgManifest.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stigmer/server-slim",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.2",
|
|
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.27.
|
|
15
|
-
"@stigmer/server-slim-darwin-x64": "3.27.
|
|
16
|
-
"@stigmer/server-slim-linux-x64": "3.27.
|
|
17
|
-
"@stigmer/server-slim-linux-arm64": "3.27.
|
|
18
|
-
"@stigmer/server-slim-win32-x64": "3.27.
|
|
14
|
+
"@stigmer/server-slim-darwin-arm64": "3.27.2",
|
|
15
|
+
"@stigmer/server-slim-darwin-x64": "3.27.2",
|
|
16
|
+
"@stigmer/server-slim-linux-x64": "3.27.2",
|
|
17
|
+
"@stigmer/server-slim-linux-arm64": "3.27.2",
|
|
18
|
+
"@stigmer/server-slim-win32-x64": "3.27.2"
|
|
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,750567,t=>{"use strict";var e=t.i(891287),s=t.i(725842),r=t.i(586108),a=t.i(583093);t.s(["useIdentityProviderList",0,function(t){let i=(0,r.useStigmer)(),{data:n,isLoading:g,isRefetching:o,error:d,refetch:l}=(0,a.useFetch)(t?()=>i.identityProvider.listByOrg((0,e.create)(s.ListIdentityProvidersByOrgInputSchema,{org:t})).then(t=>[...t.entries]):null,[t,i],[]);return{identityProviders:n,isLoading:g,isRefetching:o,error:d,refetch:l}}])},313488,333259,t=>{"use strict";var e=t.i(586108),s=t.i(583093);t.s(["useOrganization",0,function(t){let r=(0,e.useStigmer)(),{data:a,isLoading:i,isRefetching:n,error:g,refetch:o}=(0,s.useFetch)(t?()=>r.organization.get(t):null,[t,r],null);return{organization:a,isLoading:i,isRefetching:n,error:g,refetch:o}}],313488);var r=t.i(271645),a=t.i(326283);t.s(["useUpdateOrganization",0,function(){let t=(0,e.useStigmer)(),[s,i]=(0,r.useState)(!1),[n,g]=(0,r.useState)(null),o=(0,r.useCallback)(()=>g(null),[]);return{update:(0,r.useCallback)(async e=>{i(!0),g(null);try{return await t.organization.update(e)}catch(t){throw g((0,a.toError)(t)),t}finally{i(!1)}},[t]),isUpdating:s,error:n,clearError:o}}],333259)},780268,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),a=t.i(610595),i=t.i(785767),n=t.i(313488),g=t.i(333259),o=t.i(750567),d=t.i(597744),l=t.i(170255),c=t.i(379410),u=t.i(193799);function m({orgId:t,onUpdated:o,className:d}){let l=(0,s.useId)(),{organization:u,isLoading:p,error:f,refetch:y}=(0,n.useOrganization)(t||null),{update:v,isUpdating:j,error:N,clearError:k}=(0,g.useUpdateOrganization)(),[S,z]=(0,s.useState)(""),[C,w]=(0,s.useState)(""),[L,O]=(0,s.useState)(""),U=u?.metadata?.name??"",P=u?.spec?.description??"",I=u?.spec?.logoUrl??"",$=u?.metadata?.slug??"",A=u?.metadata?.id??"",F=u?.spec?.isPersonal??!1;(0,s.useEffect)(()=>{u&&(z(u.metadata?.name??""),w(u.spec?.description??""),O(u.spec?.logoUrl??""))},[u]);let R=(0,s.useMemo)(()=>S.trim()!==U||C.trim()!==P||L.trim()!==I,[S,C,L,U,P,I]),M=S.trim().length>0&&!j&&R,T=(0,s.useCallback)(()=>{z(U),w(P),O(I),k()},[U,P,I,k]),B=(0,s.useCallback)(async t=>{if(t.preventDefault(),M&&u){k();try{let t=await v({...(0,i.toOrganizationUpdateInput)(u),name:S.trim(),description:C.trim()||void 0,logoUrl:L.trim()||void 0});y(),o?.(t)}catch{}}},[M,u,S,C,L,v,k,y,o]);return p&&!u?(0,e.jsx)("div",{className:(0,r.cn)("stg:space-y-4",d),"aria-busy":"true","aria-label":"Loading organization profile",children:Array.from({length:4},(t,s)=>(0,e.jsx)("div",{className:"stg:bg-muted-subtle stg:h-10 stg:animate-pulse stg:rounded",style:{width:`${90-12*s}%`}},s))}):f?(0,e.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",d),role:"alert",children:[(0,e.jsx)("p",{className:"stg:text-destructive stg:text-sm",children:(0,a.getUserMessage)(f)}),(0,e.jsx)("button",{type:"button",onClick:y,className:(0,r.cn)("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"),children:"Retry"})]}):u?(0,e.jsxs)("form",{onSubmit:B,className:(0,r.cn)("stg:space-y-6",d),children:[(0,e.jsxs)("div",{className:"stg:space-y-3",children:[(0,e.jsx)(h,{label:"Slug",value:$,mono:!0}),(0,e.jsx)(h,{label:"Organization ID",value:A}),F&&(0,e.jsx)("div",{children:(0,e.jsx)("span",{className:"stg:bg-primary-subtle stg:text-primary stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wider",children:"Personal"})})]}),(0,e.jsx)("hr",{className:"stg:border-border"}),(0,e.jsxs)("div",{className:"stg:space-y-4",children:[(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-name`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Name"}),(0,e.jsx)("input",{id:`${l}-name`,type:"text",value:S,onChange:t=>z(t.target.value),disabled:j,required:!0,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")}),(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"The display name shown in the sidebar and across the platform."})]}),(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-desc`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Description"}),(0,e.jsx)("textarea",{id:`${l}-desc`,value:C,onChange:t=>w(t.target.value),maxLength:500,rows:3,disabled:j,placeholder:"What is this organization for?",className:(0,r.cn)("stg:w-full stg:resize-y 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,e.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:[C.length,"/",500," characters"]})]}),(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("label",{htmlFor:`${l}-logo`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Logo URL"}),(0,e.jsx)("input",{id:`${l}-logo`,type:"url",value:L,onChange:t=>O(t.target.value),maxLength:2048,disabled:j,placeholder:"https://example.com/logo.png",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")}),(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"A public URL to your organization's logo image."}),(0,e.jsx)(b,{url:L.trim()})]})]}),N&&(0,e.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,a.getUserMessage)(N)}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsxs)("button",{type:"submit",disabled:!M,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,e.jsx)(c.SpinnerIcon,{size:12}),"Save changes"]}),R&&!j&&(0,e.jsx)("button",{type:"button",onClick:T,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"),children:"Discard"})]}),(0,e.jsx)(x,{orgSlug:$})]}):null}function x({orgSlug:t}){let s=(0,d.useResourceAvailable)(l.ApiResourceKind.identity_provider),{identityProviders:r,isLoading:a}=(0,o.useIdentityProviderList)(s&&t?t:null);return s&&t?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("hr",{className:"stg:border-border"}),(0,e.jsxs)("div",{className:"stg:space-y-2",children:[(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground stg:uppercase stg:tracking-wider",children:"Identity Providers"}),a?(0,e.jsx)("div",{className:"stg:bg-muted-subtle stg:h-8 stg:animate-pulse stg:rounded"}):0===r.length?(0,e.jsxs)("p",{className:"stg:text-xs stg:text-muted-foreground",children:["No identity providers configured."," ",(0,e.jsx)("a",{href:"/settings/identity-providers",className:"stg:text-primary stg:hover:text-primary-hover stg:underline stg:underline-offset-2",children:"Set up federated authentication"})]}):(0,e.jsxs)("div",{className:"stg:space-y-1.5",children:[r.map(t=>{let s=t.spec,r=s?.displayName||t.metadata?.name||"Unnamed",a=s?.isSsoProvider,i=!a&&s?.autoProvisionAccounts;return(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-xs",children:[(0,e.jsx)(p,{}),(0,e.jsx)("span",{className:"stg:text-foreground stg:truncate",children:r}),a&&(0,e.jsx)("span",{className:"stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-1.5 stg:py-px stg:text-[0.6rem] stg:font-medium stg:text-primary",children:"SSO"}),i&&(0,e.jsx)("span",{className:"stg:rounded-full stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-1.5 stg:py-px stg:text-[0.6rem] stg:font-medium stg:text-primary",children:"JIT"})]},t.metadata?.id)}),(0,e.jsx)("a",{href:"/settings/identity-providers",className:"stg:inline-block stg:text-[0.65rem] stg:text-primary stg:hover:text-primary-hover stg:underline stg:underline-offset-2",children:"Manage"})]})]})]}):null}function p(){return(0,e.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",className:"stg:shrink-0 stg:text-muted-foreground",children:(0,e.jsx)("path",{d:"M8 1.5L2 4v4c0 3.5 2.5 5.5 6 7 3.5-1.5 6-3.5 6-7V4L8 1.5z"})})}function h({label:t,value:s,mono:a}){let{copy:i,copied:n}=(0,u.useCopyFeedback)();return s?(0,e.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground stg:uppercase stg:tracking-wider",children:t}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("span",{className:(0,r.cn)("stg:text-xs stg:text-foreground stg:select-all",a&&"stg:font-mono"),children:s}),(0,e.jsx)("button",{type:"button",onClick:()=>void i(s),className:(0,r.cn)("stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem]","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),"aria-label":`Copy ${t}`,children:n?"Copied":"Copy"})]})]}):null}function b({url:t}){let[a,i]=(0,s.useState)("idle");return((0,s.useEffect)(()=>{i("idle")},[t]),t&&"error"!==a)?(0,e.jsx)("div",{className:"stg:mt-2",children:(0,e.jsx)("img",{src:t,alt:"Organization logo preview",onLoad:()=>i("loaded"),onError:()=>i("error"),className:(0,r.cn)("stg:h-10 stg:w-10 stg:rounded-md stg:border stg:border-border stg:object-contain stg:bg-background","idle"===a&&"stg:opacity-0","loaded"===a&&"stg:opacity-100")})}):null}var f=t.i(297629);t.s(["OrgProfileSection",0,function(){let t=(0,s.useId)(),{activeOrg:r,refresh:a}=(0,f.useOrg)(),i=r?.metadata?.id??"",n=(0,s.useCallback)(t=>{a(t.metadata?.slug)},[a]);return(0,e.jsxs)("section",{"aria-labelledby":t,children:[(0,e.jsx)("h2",{id:t,className:"stg:text-foreground stg:mb-1 stg:text-sm stg:font-semibold",children:"Organization Profile"}),(0,e.jsx)("p",{className:"stg:text-muted-foreground stg:mb-6 stg:text-xs",children:"Manage your organization's display name, description, and logo."}),i?(0,e.jsx)(m,{orgId:i,onUpdated:n}):(0,e.jsx)("p",{className:"stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",children:"Select an organization to view its profile."})]})}],780268)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,146312,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(869803),i=t.i(818094),a=t.i(691444);t.s(["RoleSelector",0,function({kind:t,onSelect:g,selected:l,defaultRole:o,disabled:c=!1,granteeKind:d="identity_account",className:u}){let m=(0,s.useId)(),{options:x,selected:f,select:h}=function(t,e,r="identity_account"){let[n,g]=(0,s.useState)(e??null),l=(0,s.useMemo)(()=>null===t?[]:("team"===r?(0,i.getTeamGrantableRoles)(t):(0,i.getGrantableRoles)(t)).map(t=>({role:t,label:(0,a.iamRoleDisplayName)(t),description:(0,a.iamRoleDescription)(t),value:(0,a.iamRoleToString)(t)})),[t,r]),o=(0,s.useMemo)(()=>null!==n?(0,a.iamRoleToString)(n):"",[n]),c=(0,s.useCallback)(t=>g(t),[]),d=(0,s.useCallback)(()=>g(null),[]);return(0,s.useMemo)(()=>({options:l,selected:n,selectedValue:o,select:c,clear:d,hasOptions:l.length>0}),[l,n,o,c,d])}(t,o,d),p=void 0!==l?l:f;return 0===x.length?null:(0,e.jsxs)("fieldset",{className:(0,r.cn)(n.UNSTYLED_FIELDSET,"stg:space-y-1.5",u),children:[(0,e.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Role"}),(0,e.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-2",children:x.map(t=>{let s=p===t.role;return(0,e.jsxs)("label",{className:(0,r.cn)("stg:inline-flex stg:cursor-pointer stg:flex-col stg:rounded-md stg:border stg:px-3 stg:py-1.5 stg:text-xs stg:transition-colors",s?"stg:border-primary stg:bg-primary-subtle stg:text-primary stg:font-medium":"stg:border-input stg:bg-background stg:text-muted-foreground stg:hover:border-border stg:hover:text-foreground",c&&"stg:pointer-events-none stg:opacity-50"),children:[(0,e.jsx)("input",{type:"radio",name:m,value:t.value,checked:s,disabled:c,onChange:()=>{var e;h(e=t.role),g?.(e)},className:"stg:sr-only"}),(0,e.jsx)("span",{children:t.label}),(0,e.jsx)("span",{className:"stg:text-[0.625rem] stg:text-muted-foreground stg:font-normal stg:mt-0.5",children:t.description})]},t.value)})})]})}],146312)},213149,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(468806),i=t.i(170255),a=t.i(818094),g=t.i(597744),l=t.i(610595),o=t.i(884561),c=t.i(869803),d=t.i(681094),u=t.i(540279),m=t.i(891287),x=t.i(632897),f=t.i(691444),h=t.i(288441),p=t.i(146312),b=t.i(982943),v=t.i(379410);function j({resourceKind:t,resourceKindString:n,resourceId:i,orgId:g,includeTeams:c=!1,excludeGrantees:d,onGranted:u,onCancel:y,className:N}){let{create:k,isCreating:w,error:C,clearError:M}=(0,h.useCreateIamPolicy)(),[S,R]=(0,s.useState)(null),[A,T]=(0,s.useState)(null),L=(0,s.useCallback)(e=>{R(e),T(s=>null===s||null===e||("team"===e.kind?(0,a.isRoleTeamGrantable)(t,s):(0,a.isRoleGrantable)(t,s))?s:null)},[t]),I=null!==S&&null!==A&&!w,z=(0,s.useCallback)(async t=>{if(t.preventDefault(),I&&null!==A&&null!==S){M();try{let t=(0,m.create)(x.IamPolicySpecSchema,{principal:(0,o.granteeRef)(S.grantee),resource:(0,m.create)(x.ApiResourceRefSchema,{kind:n,id:i}),relation:(0,f.iamRoleToString)(A)}),e=await k(t);u?.(e)}catch{}}},[I,A,S,n,i,k,M,u]);return(0,e.jsxs)("form",{onSubmit:z,className:(0,r.cn)("stg:space-y-3",N),children:[(0,e.jsxs)("div",{className:"stg:space-y-3",children:[(0,e.jsx)(b.PrincipalPicker,{orgId:g,value:S,onChange:L,includeTeams:c,excludeGrantees:d,disabled:w}),(0,e.jsx)(p.RoleSelector,{kind:t,granteeKind:S?.kind??"identity_account",selected:A,onSelect:T,disabled:w})]}),C&&(0,e.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(C)}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,e.jsxs)("button",{type:"submit",disabled:!I,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:[w&&(0,e.jsx)(v.SpinnerIcon,{size:12}),"Grant access"]}),y&&(0,e.jsx)("button",{type:"button",onClick:y,disabled:w,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"})]})]})}var y=t.i(590150);function N({resource:t,resourceKindString:n,resourceKind:i,orgId:a,className:m}){let{accessList:x,isLoading:f,fetchError:h,revoke:p,isRevoking:b,revokeError:v,refetch:k,hasGrantableRoles:w,canShareWithTeams:C}=(0,d.useShareFlow)(t),M=(0,g.useDeploymentMode)(),[S,R]=(0,s.useState)(!1),A=(0,s.useMemo)(()=>x.flatMap(t=>{let e=t.principal?(0,o.granteeFromView)(t.principal):void 0;return e?[e]:[]}),[x]);if("local"===M&&"organization"!==t.kind)return(0,e.jsxs)("p",{className:(0,r.cn)("stg:text-xs stg:text-muted-foreground",m),children:["This edition does not share ",n.replaceAll("_"," "),"s with individual people. Sharing with specific people is available in Stigmer Enterprise and Cloud."]});let T={kind:n,id:t.id};return(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",m),children:[(0,e.jsxs)("div",{className:"stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:f?"Loading access list...":`${x.length} with access`}),h&&(0,e.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(h)}),!f&&x.length>0&&(0,e.jsx)("ul",{className:(0,r.cn)(c.UNSTYLED_LIST,"stg:space-y-1 stg:mt-2"),"aria-label":"Who has access",children:x.map(t=>(0,e.jsx)(u.AccessRow,{entry:t,grantGate:T,onRemove:p,isRemoving:b},(0,u.accessEntryKey)(t)))}),v&&(0,e.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(v)})]}),w&&(0,e.jsx)(y.PermissionGate,{resource:T,relation:"can_grant_access",children:(0,e.jsx)("div",{className:"stg:border-t stg:border-border stg:pt-3",children:S?(0,e.jsx)(j,{resourceKind:i,resourceKindString:n,resourceId:t.id,orgId:a,includeTeams:C,excludeGrantees:A,onGranted:()=>{R(!1),k()},onCancel:()=>R(!1)}):(0,e.jsx)("button",{type:"button",onClick:()=>R(!0),className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-center","stg:border stg:border-dashed stg:border-border","stg:text-muted-foreground stg:hover:text-foreground stg:hover:border-border-prominent","stg:hover:bg-accent-hover stg:transition-colors"),children:C?"+ Add people or teams":"+ Add people"})})})]})}var k=t.i(388023);function w({title:t,description:s,children:r}){return(0,e.jsxs)("section",{className:"stg:px-6 stg:py-4",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:t}),s&&(0,e.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-muted-foreground",children:s}),(0,e.jsx)("div",{className:"stg:mt-2.5",children:r})]})}function C(){return(0,e.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}t.s(["ManageAccessDialog",0,function({open:t,onOpenChange:l,resource:o,visibility:c,extraSection:d}){let u=(0,s.useId)(),m=(0,s.useCallback)(()=>{l(!1)},[l]),x=(0,a.hasGrantableRoles)(o.kind),f=(0,g.useResourceAvailable)(i.ApiResourceKind.team)&&(0,a.hasTeamGrantableRoles)(o.kind)?"People and teams with access":"People with access";return(0,e.jsx)(n.DialogShell,{open:t,onOpenChange:l,width:"md","aria-labelledby":u,children:t&&(0,e.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:border-b stg:border-border stg:px-6 stg:py-4",children:[(0,e.jsxs)("div",{className:"stg:min-w-0",children:[(0,e.jsx)("h2",{id:u,className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Manage access"}),o.name&&(0,e.jsx)("p",{className:"stg:mt-0.5 stg:truncate stg:text-xs stg:text-muted-foreground",children:o.name})]}),(0,e.jsx)("button",{type:"button",onClick:m,"aria-label":"Close",className:(0,r.cn)("stg:rounded-md stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring"),children:(0,e.jsx)(C,{})})]}),(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:[c&&(0,e.jsx)(w,{title:"General access",description:"Who can find and open this resource.",children:(0,e.jsx)(k.ResourceVisibilityControl,{kind:c.kind,resourceId:o.id,visibility:c.current,org:c.org,onChanged:c.onChanged})}),x&&(0,e.jsx)(w,{title:f,children:(0,e.jsx)(N,{resource:{kind:o.kindString,id:o.id,resourceKind:o.kind},resourceKindString:o.kindString,resourceKind:o.kind,orgId:o.org})}),d&&(0,e.jsx)(w,{title:d.title,description:d.description,children:d.content})]}),(0,e.jsx)("div",{className:"stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:px-6 stg:py-3",children:(0,e.jsx)("button",{type:"button",onClick:m,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring stg:focus:ring-offset-2"),children:"Done"})})]})})}],213149)},10337,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(468806);t.s(["ConfirmDialog",0,function({state:t,onConfirm:i,onCancel:a}){let g=(0,s.useCallback)(t=>{t||a()},[a]);if(!t)return null;let l="destructive"===t.variant;return(0,e.jsx)(n.DialogShell,{open:!0,onOpenChange:g,width:"sm","aria-label":t.title,children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:t.title}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:t.description})]}),(0,e.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:a,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:t.cancelLabel??"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:i,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",l?"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover":"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:t.confirmLabel??"Confirm"})]})]})})}])},966205,t=>{"use strict";var e=t.i(271645);t.s(["useConfirmAction",0,function(){let[t,s]=(0,e.useState)(null),r=(0,e.useCallback)(t=>new Promise(e=>{s({...t,resolve:e})}),[]),n=(0,e.useCallback)(()=>{t?.resolve(!0),s(null)},[t]),i=(0,e.useCallback)(()=>{t?.resolve(!1),s(null)},[t]);return(0,e.useMemo)(()=>({confirmState:t,confirm:r,handleConfirm:n,handleCancel:i}),[t,r,n,i])}])},475254,t=>{"use strict";var e=t.i(271645);let s=(...t)=>t.filter((t,e,s)=>!!t&&""!==t.trim()&&s.indexOf(t)===e).join(" ").trim(),r=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,e.forwardRef)(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:g="",children:l,iconNode:o,...c},d)=>(0,e.createElement)("svg",{ref:d,...n,width:r,height:r,stroke:t,strokeWidth:a?24*Number(i)/Number(r):i,className:s("lucide",g),...!l&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...o.map(([t,s])=>(0,e.createElement)(t,s)),...Array.isArray(l)?l:[l]]));t.s(["default",0,(t,n)=>{let a=(0,e.forwardRef)(({className:a,...g},l)=>(0,e.createElement)(i,{ref:l,iconNode:n,className:s(`lucide-${r(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...g}));return a.displayName=r(t),a}],475254)},678745,t=>{"use strict";let e=(0,t.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["default",0,e])},845132,678784,916624,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(704077),n=t.i(678745);t.s(["CheckIcon",()=>n.default],678784);var n=n,i=t.i(364354);function a(t){return(0,e.jsx)(r.Menu.Root,{...t})}function g(t){return(0,e.jsx)(r.Menu.Trigger,{...t})}function l({align:t="start",alignOffset:n=0,side:a="bottom",sideOffset:g=4,className:o,...c}){let d=(0,i.useStigmerPortalContainer)();return(0,e.jsx)(r.Menu.Portal,{container:d,children:(0,e.jsx)(r.Menu.Positioner,{className:"stg:isolate stg:z-50 stg:outline-none",align:t,alignOffset:n,side:a,sideOffset:g,children:(0,e.jsx)(r.Menu.Popup,{className:(0,s.cn)("stg:bg-popover stg:text-popover-foreground stg:ring-foreground/10","stg:data-[side=bottom]:slide-in-from-top-2 stg:data-[side=inline-end]:slide-in-from-left-2 stg:data-[side=inline-start]:slide-in-from-right-2 stg:data-[side=left]:slide-in-from-right-2 stg:data-[side=right]:slide-in-from-left-2 stg:data-[side=top]:slide-in-from-bottom-2","stg:data-open:animate-in stg:data-open:fade-in-0 stg:data-open:zoom-in-95","stg:data-closed:animate-out stg:data-closed:fade-out-0 stg:data-closed:zoom-out-95","stg:z-50 stg:max-h-(--available-height) stg:w-(--anchor-width) stg:min-w-32 stg:origin-(--transform-origin) stg:overflow-x-hidden stg:overflow-y-auto stg:rounded-lg stg:p-1 stg:shadow-md stg:ring-1 stg:duration-100 stg:outline-none stg:data-closed:overflow-hidden",o),...c})})})}function o({className:t,variant:n="default",...i}){return(0,e.jsx)(r.Menu.Item,{"data-variant":n,className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:not-data-[variant=destructive]:focus:**:text-accent-foreground","stg:data-[variant=destructive]:text-destructive stg:data-[variant=destructive]:focus:bg-destructive-subtle stg:data-[variant=destructive]:focus:text-destructive stg:data-[variant=destructive]:*:[svg]:text-destructive","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-1 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...i})}function c({className:t,...n}){return(0,e.jsx)(r.Menu.Separator,{className:(0,s.cn)("stg:bg-border stg:-mx-1 stg:my-1 stg:h-px",t),...n})}function d({className:t,...s}){return(0,e.jsx)("div",{role:"group",className:t,...s})}function u({className:t,...r}){return(0,e.jsx)("span",{className:(0,s.cn)("stg:text-muted-foreground stg:block stg:px-1.5 stg:py-1 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:select-none",t),...r})}t.s(["Menu",0,a,"MenuContent",0,l,"MenuGroup",0,d,"MenuItem",0,o,"MenuLabel",0,u,"MenuRadioGroup",0,function(t){return(0,e.jsx)(r.Menu.RadioGroup,{...t})},"MenuRadioItem",0,function({className:t,children:i,...a}){return(0,e.jsxs)(r.Menu.RadioItem,{className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:focus:**:text-accent-foreground","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:py-1 stg:pr-8 stg:pl-1.5 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...a,children:[(0,e.jsx)("span",{className:"stg:pointer-events-none stg:absolute stg:right-2 stg:flex stg:items-center stg:justify-center",children:(0,e.jsx)(r.Menu.RadioItemIndicator,{children:(0,e.jsx)(n.default,{})})}),i]})},"MenuSeparator",0,c,"MenuTrigger",0,g],916624);let m=Object.assign(function({children:t}){return(0,e.jsx)(a,{children:t})},{Trigger:function({children:t,className:r,"aria-label":n="Actions"}){return(0,e.jsx)(g,{className:(0,s.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:data-popup-open:bg-accent stg:data-popup-open:text-foreground",r),"aria-label":n,children:t})},Content:function({children:t,align:r="end",className:n}){return(0,e.jsx)(l,{align:r,className:(0,s.cn)("stg:min-w-44",n),children:t})},Item:function({children:t,onSelect:r,icon:n,shortcut:i,variant:a="default",disabled:g,className:l}){return(0,e.jsxs)(o,{variant:a,disabled:g,onClick:r,className:(0,s.cn)("stg:justify-between",l),children:[(0,e.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-2",children:[n,(0,e.jsx)("span",{children:t})]}),i&&(0,e.jsx)("kbd",{className:"stg:ml-auto stg:text-[11px] stg:tracking-widest stg:text-muted-foreground-subtle",children:i})]})},Separator:function({className:t}){return(0,e.jsx)(c,{className:t})},Group:function({children:t,label:s,className:r}){return(0,e.jsxs)(d,{className:r,children:[s&&(0,e.jsx)(u,{children:s}),t]})}});t.s(["ActionMenu",0,m],845132)},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(610595),n=t.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function l({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function o({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["ErrorMessage",0,function({error:t,title:c,retry:d,className:u}){let[m,x]=(0,s.useState)(!1);if(!t)return null;let f=(0,r.classifyError)(t),h=(0,r.getUserMessage)(t),p=(0,r.getRpcMetadata)(t),b=(0,r.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,n.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,e.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[f]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),p&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>x(t=>!t),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(l,{className:(0,n.cn)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,e.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),d&&b&&(0,e.jsxs)("button",{type:"button",onClick:d,className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(188482);let n={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};t.s(["StatusBadge",0,function({phase:t,label:i,tooltip:a,className:g}){let l=i??n[t],o=(0,e.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(t),g),children:[(0,e.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(t)),"aria-hidden":"true"}),l]});return a?(0,e.jsxs)(r.Tooltip,{children:[(0,e.jsx)(r.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,e.jsx)(r.TooltipContent,{side:"top",children:a})]}):o}])},193799,t=>{"use strict";var e=t.i(271645);t.s(["useCopyFeedback",0,function(){let[t,s]=(0,e.useState)(!1),r=(0,e.useRef)(null);(0,e.useEffect)(()=>()=>{null!==r.current&&clearTimeout(r.current)},[]);let n=(0,e.useCallback)(async t=>{try{await navigator.clipboard.writeText(t)}catch{return!1}return s(!0),null!==r.current&&clearTimeout(r.current),r.current=setTimeout(()=>s(!1),2e3),!0},[]);return(0,e.useMemo)(()=>({copy:n,copied:t}),[n,t])}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:n,onTabChange:i,children:a,"aria-label":g,className:l}){let o=(0,s.useId)(),c=(0,s.useRef)(new Map),d=t=>`${o}-tab-${t}`,u=t=>`${o}-panel-${t}`,m=(0,s.useCallback)(t=>{c.current.get(t)?.focus(),i(t)},[i]),x=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===n);if(-1===s)return;let r=null;switch(e.key){case"ArrowRight":r=(s+1)%t.length;break;case"ArrowLeft":r=(s-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),m(t[r].id)},[t,n,m]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),children:[(0,e.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:x,className:"stg:flex stg:border-b stg:border-border",children:t.map(t=>{let s=t.id===n;return(0,e.jsxs)("button",{ref:e=>{e?c.current.set(t.id,e):c.current.delete(t.id)},id:d(t.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(t.id),tabIndex:s?0:-1,onClick:()=>i(t.id),"data-cursor-target":`tab-${t.id}`,className:(0,r.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[t.icon,t.label,null!=t.badge&&t.badge>0&&(0,e.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:t.badge}),s&&(0,e.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},t.id)})}),(0,e.jsx)("div",{id:u(n),role:"tabpanel","aria-labelledby":d(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},107141,t=>{"use strict";var e=t.i(271645),s=t.i(618566);let r="__placeholder__";t.s(["useStaticRouteParam",0,function(t,n=1){let i=(0,s.useParams)()[t];return(0,e.useMemo)(()=>{if(i!==r)return i;let t=window.location.pathname.split("/").filter(Boolean),e=t[t.length-n];return e&&e!==r?e:null},[i,n])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(266442),n=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:r,className:n}){let i=null!=r&&r.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),children:[t&&(0,e.jsxs)("button",{type:"button",onClick:t.onAction,disabled:t.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[t.icon,t.label]}),i&&(0,e.jsx)(l,{actions:r})]}):null}function l({actions:t}){var s;let r=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",r=t.get(s);r?r.push(e):t.set(s,[e])}return Array.from(t.entries()).map(([t,e])=>({key:t,items:e}))},[s]));return(0,e.jsxs)(a.ActionMenu,{children:[(0,e.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,e.jsx)(o,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:r.map((t,s)=>(0,e.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,e.jsx)(a.ActionMenu.Separator,{}),t.items.map(t=>(0,e.jsx)(a.ActionMenu.Item,{icon:t.icon,shortcut:t.shortcut,variant:t.variant,disabled:t.disabled,onSelect:t.onAction,children:t.label},t.id))]},t.key))})]})}function o({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:t,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:g,slug:l,qualifiedSlug:o,description:m,iconUrl:x,icon:f,createdAt:h,updatedAt:p,status:b,statusLabel:v}=t,j=l&&l!==i&&!o;return(0,e.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[x?(0,e.jsx)("img",{src:x,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):f?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:f}):null,(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,e.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,e.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:l}),b&&(0,e.jsx)(r.StatusBadge,{phase:b,label:v}),s]}),o&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:o}),(0,e.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,e.jsx)("span",{children:g}),n,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Updated ",u(p)]})]})]}),m&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:m})]})]})}function d(){return(0,e.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(t){return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function m({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}t.s(["ResourceDetailShell",0,function({header:t,visibilityControl:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:o,tabs:d,activeTab:u,onTabChange:m,tabsAriaLabel:x,children:f,className:h}){let p=null!=d&&d.length>0;return(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",h),children:[a,(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,e.jsx)(c,{header:t,visibilityControl:r,metaExtra:i}),(0,e.jsx)(g,{primaryAction:l,actions:o,className:"stg:shrink-0"})]}),p&&u&&m?(0,e.jsx)(n.Tabs,{tabs:d,activeTab:u,onTabChange:m,"aria-label":x,children:f}):f]})}],668093),t.s(["Section",0,function({title:t,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:g,className:l}){return(0,e.jsxs)("section",{className:l,"data-scroll-target":a,children:[(0,e.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:t}),null!=r&&r>0&&(0,e.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:r}),(n||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,i&&(0,e.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${t.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,e.jsx)(m,{className:"stg:size-3.5"})})]})]}),(0,e.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditTextarea",0,function({value:t,onSave:a,placeholder:g="Click to edit",validate:l,minRows:o=3,disabled:c,isSaving:d,error:u,className:m}){let[x,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(t),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{x&&(p(t),v(null),requestAnimationFrame(()=>{let t=j.current;t&&(t.focus(),t.selectionStart=t.value.length)}))},[x,t]),(0,s.useEffect)(()=>{let t=j.current;t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)},[h,x]);let y=(0,s.useCallback)(async()=>{if(h===t)return void f(!1);if(l){let t=l(h);if(t)return void v(t)}await a(h)&&f(!1)},[h,t,l,a]),N=(0,s.useCallback)(()=>{f(!1),p(t),v(null)},[t]),k=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),y()):"Escape"===t.key&&N()},[y,N]),w=b||u;return c||!x?(0,e.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",m),children:(0,e.jsx)("button",{type:"button",onClick:()=>{c||f(!0)},disabled:c,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,e.jsx)("pre",{className:(0,r.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:t||g}),!c&&(0,e.jsx)(n,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1.5",m),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{p(t.target.value),v(null)},onKeyDown:k,disabled:d,placeholder:g,rows:o,className:(0,r.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",w&&"stg:border-destructive")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,e.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:N,disabled:d,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:y,disabled:d,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:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,e.jsx)(i,{}),"Save"]})]})]}),w&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:w})]})}])},484763,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(981922),n=t.i(213149);t.s(["useManageAccess",0,function({resource:t,visibility:i,extraSection:a,label:g="Manage access"}){let[l,o]=(0,s.useState)(!1),{allowed:c}=(0,r.useCheckPermission)(t?{kind:t.kindString,id:t.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>o(!0),[]);return{action:t&&c?{id:"manage-access",label:g,group:"sharing",onAction:d}:null,dialog:t?(0,e.jsx)(n.ManageAccessDialog,{open:l,onOpenChange:o,resource:t,visibility:i,extraSection:a}):null,open:d,isOpen:l}}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,506213,e=>{"use strict";e.s([],593742),e.i(593742);var t,n=e.i(271645),r=e.i(66196),s=e.i(58509),i=e.i(933605),o=e.i(789633),a=e.i(926665),l=e.i(151665),u=e.i(206157);e.i(247167);var c=e.i(367805);let d=n.createContext(void 0);function g(e){let t=n.useContext(d);if(void 0===t&&!e)throw Error((0,c.default)(47));return t}var p=e.i(174080),f=e.i(598263),v=e.i(783921),b=e.i(566745),m=e.i(630628),h=e.i(294365),x=e.i(803404),S=e.i(600628),k=e.i(769375),y=e.i(607335);let R={...S.popupStoreSelectors,disabled:(0,v.createSelector)(e=>e.disabled),instantType:(0,v.createSelector)(e=>e.instantType),openMethod:(0,v.createSelector)(e=>e.openMethod),openChangeReason:(0,v.createSelector)(e=>e.openChangeReason),modal:(0,v.createSelector)(e=>e.modal),stickIfOpen:(0,v.createSelector)(e=>e.stickIfOpen),titleElementId:(0,v.createSelector)(e=>e.titleElementId),descriptionElementId:(0,v.createSelector)(e=>e.descriptionElementId),openOnHover:(0,v.createSelector)(e=>e.openOnHover),closeDelay:(0,v.createSelector)(e=>e.closeDelay),hasViewport:(0,v.createSelector)(e=>e.hasViewport)};class C extends f.ReactStore{constructor(e){const t={...(0,S.createInitialPopupStoreState)(),disabled:!1,modal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1,...e};t.open&&e?.mounted===void 0&&(t.mounted=!0),super(t,{popupRef:n.createRef(),backdropRef:n.createRef(),internalBackdropRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:n.createRef(),beforeContentFocusGuardRef:n.createRef(),stickIfOpenTimeout:new b.Timeout,triggerElements:new k.PopupTriggerMap},R)}setOpen=(e,t)=>{let n=t.reason===x.REASONS.triggerHover,r=t.reason===x.REASONS.triggerPress&&0===t.event.detail,s=!e&&(t.reason===x.REASONS.escapeKey||null==t.reason);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let i={open:e,nativeEvent:t.event,reason:t.reason,nested:this.state.nested,triggerElement:t.trigger},o=this.state.floatingRootContext.context.events;o?.emit("openchange",i);let a=()=>{let n={open:e,openChangeReason:t.reason},r=t.trigger?.id??null;(r||e)&&(n.activeTriggerId=r,n.activeTriggerElement=t.trigger??null),this.update(n)};n?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(y.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),p.flushSync(a)):a(),r||s?this.set("instantType",r?"click":"dismiss"):t.reason===x.REASONS.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(e,t){let n=(0,m.useRefWithInit)(()=>new C(t)).current,r=e??n;return(0,h.useOnMount)(n.disposeEffect),r}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}var E=e.i(5963),w=e.i(258642),O=e.i(450091),j=e.i(843476);function I({props:e}){let{children:t,open:c,defaultOpen:g=!1,onOpenChange:p,onOpenChangeComplete:f,modal:v=!1,handle:b,triggerId:m,defaultTriggerId:h=null}=e,S=C.useStore(b?.store,{modal:v,open:g,openProp:c,activeTriggerId:h,triggerIdProp:m});(0,s.useOnFirstRender)(()=>{void 0===c&&!1===S.state.open&&!0===g&&S.update({open:!0,activeTriggerId:h})}),S.useControlledProp("openProp",c),S.useControlledProp("triggerIdProp",m);let k=S.useState("open"),y=S.useState("positionerElement"),R=S.useState("payload"),T=S.useState("openChangeReason");S.useContextCallback("onOpenChange",p),S.useContextCallback("onOpenChangeComplete",f);let{openMethod:P,triggerProps:M}=(0,O.useOpenInteractionType)(k);(0,w.useImplicitActiveTrigger)(S);let{forceUnmount:A}=(0,w.useOpenStateTransitions)(k,S,()=>{S.update({stickIfOpen:!0,openChangeReason:null})});(0,r.useScrollLock)(k&&!0===v&&T!==x.REASONS.triggerHover&&"touch"!==P,y),n.useEffect(()=>{k||S.context.stickIfOpenTimeout.clear()},[S,k]);let N=n.useCallback(e=>{let t=(0,E.createChangeEventDetails)(e);return t.preventUnmountOnClose=()=>{S.set("preventUnmountingOnClose",!0)},t},[S]),F=n.useCallback(()=>{S.setOpen(!1,N(x.REASONS.imperativeAction))},[S,N]);n.useImperativeHandle(e.actionsRef,()=>({unmount:A,close:F}),[A,F]);let V=(0,u.useSyncedFloatingRootContext)({popupStore:S,onOpenChange:S.setOpen}),D=(0,i.useDismiss)(V,{outsidePressEvent:{mouse:"trap-focus"===v?"sloppy":"intentional",touch:"sloppy"}}),L=(0,a.useRole)(V),{getReferenceProps:H,getFloatingProps:B,getTriggerProps:_}=(0,o.useInteractions)([D,L]),z=n.useMemo(()=>H(M),[H,M]),U=n.useMemo(()=>_(M),[_,M]),K=n.useMemo(()=>B(),[B]);S.useSyncedValues({modal:v,openMethod:P,activeTriggerProps:z,inactiveTriggerProps:U,popupProps:K,floatingRootContext:V,nested:null!=(0,l.useFloatingParentNodeId)()});let W=n.useMemo(()=>({store:S}),[S]);return(0,j.jsx)(d.Provider,{value:W,children:"function"==typeof t?t({payload:R}):t})}var T=e.i(676477),P=e.i(991730),M=e.i(383590),A=e.i(327601),N=e.i(437287),F=e.i(804012),V=e.i(397254),D=e.i(189879),L=e.i(672408),H=e.i(247857),B=e.i(559266);let _=n.forwardRef(function(e,t){let{render:r,className:s,disabled:i=!1,nativeButton:a=!0,handle:l,payload:u,openOnHover:d=!1,delay:f=300,closeDelay:v=0,id:b,...m}=e,h=g(!0),S=l?.store??h?.store;if(!S)throw Error((0,c.default)(74));let k=(0,D.useBaseUiId)(b),R=S.useState("isTriggerActive",k),C=S.useState("floatingRootContext"),O=S.useState("isOpenedByTrigger",k),I=n.useRef(null),{registerTrigger:_,isMountedByThisTrigger:z}=(0,w.useTriggerDataForwarding)(k,I,S,{payload:u,disabled:i,openOnHover:d,closeDelay:v}),U=S.useState("openChangeReason"),K=S.useState("stickIfOpen"),W=S.useState("openMethod"),G=(0,V.useHoverReferenceInteraction)(C,{enabled:null!=C&&d&&("touch"!==W||U!==x.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,N.safePolygon)(),restMs:f,delay:{close:v},triggerElementRef:I,isActiveTrigger:R}),$=(0,F.useClick)(C,{enabled:null!=C,stickIfOpen:K}),Y=(0,o.useInteractions)([$]),q=S.useState("triggerProps",z),{getButtonProps:Z,buttonRef:J}=(0,P.useButton)({disabled:i,native:a}),Q=n.useMemo(()=>({open:e=>e&&U===x.REASONS.triggerPress?M.pressableTriggerOpenStateMapping.open(e):M.triggerOpenStateMapping.open(e)}),[U]),X=(0,A.useRenderElement)("button",e,{state:{disabled:i,open:O},ref:[J,t,_,I],props:[Y.getReferenceProps(),G,q,{[y.CLICK_TRIGGER_IDENTIFIER]:"",id:k},m,Z],stateAttributesMapping:Q}),ee=n.useRef(null),et=(0,T.useStableCallback)(e=>{p.flushSync(()=>{S.setOpen(!1,(0,E.createChangeEventDetails)(x.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let t=(0,B.getTabbableBeforeElement)(ee.current);t?.focus()}),en=(0,T.useStableCallback)(e=>{let t=S.select("positionerElement");if(t&&(0,B.isOutsideEvent)(e,t))S.context.beforeContentFocusGuardRef.current?.focus();else{p.flushSync(()=>{S.setOpen(!1,(0,E.createChangeEventDetails)(x.REASONS.focusOut,e.nativeEvent,e.currentTarget))});let n=(0,B.getTabbableAfterElement)(S.context.triggerFocusTargetRef.current||I.current);for(;null!==n&&(0,H.contains)(t,n);){let e=n;if((n=(0,B.getNextTabbable)(n))===e)break}n?.focus()}});return R?(0,j.jsxs)(n.Fragment,{children:[(0,j.jsx)(L.FocusGuard,{ref:ee,onFocus:et}),(0,j.jsx)(n.Fragment,{children:X},k),(0,j.jsx)(L.FocusGuard,{ref:S.context.triggerFocusTargetRef,onFocus:en})]}):(0,j.jsx)(n.Fragment,{children:X},k)});var z=e.i(937692);let U=n.createContext(void 0),K=n.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:s}=g();return s.useState("mounted")||n?(0,j.jsx)(U.Provider,{value:n,children:(0,j.jsx)(z.FloatingPortal,{ref:t,...r})}):null});var W=e.i(658130),G=e.i(500977);let $=n.createContext(void 0);function Y(){let e=n.useContext($);if(!e)throw Error((0,c.default)(46));return e}var q=e.i(56590),Z=e.i(536893),J=e.i(177817),Q=e.i(767569),X=e.i(418847);let ee=n.forwardRef(function(e,t){let{render:r,className:s,anchor:i,positionMethod:o="absolute",side:a="bottom",align:u="center",sideOffset:d=0,alignOffset:p=0,collisionBoundary:f="clipping-ancestors",collisionPadding:v=5,arrowPadding:b=5,sticky:m=!1,disableAnchorTracking:h=!1,collisionAvoidance:S=y.POPUP_COLLISION_AVOIDANCE,...k}=e,{store:R}=g(),C=function(){let e=n.useContext(U);if(void 0===e)throw Error((0,c.default)(45));return e}(),E=(0,l.useFloatingNodeId)(),w=R.useState("floatingRootContext"),O=R.useState("mounted"),I=R.useState("open"),T=R.useState("openChangeReason"),P=R.useState("activeTriggerElement"),N=R.useState("modal"),F=R.useState("positionerElement"),V=R.useState("instantType"),D=R.useState("transitionStatus"),L=R.useState("hasViewport"),H=n.useRef(null),B=(0,J.useAnimationsFinished)(F,!1,!1),_=(0,q.useAnchorPositioning)({anchor:i,floatingRootContext:w,positionMethod:o,mounted:O,side:a,sideOffset:d,align:u,alignOffset:p,arrowPadding:b,collisionBoundary:f,collisionPadding:v,sticky:m,disableAnchorTracking:h,keepMounted:C,nodeId:E,collisionAvoidance:S,adaptiveOrigin:L?Q.adaptiveOrigin:void 0}),z=n.useMemo(()=>{let e={};return I||(e.pointerEvents="none"),{role:"presentation",hidden:!O,style:{..._.positionerStyles,...e}}},[I,O,_.positionerStyles]),K=n.useMemo(()=>({props:z,..._}),[z,_]),Y=w.useState("domReferenceElement");(0,G.useIsoLayoutEffect)(()=>{let e=H.current;if(Y&&(H.current=Y),e&&Y&&Y!==e){R.set("instantType",void 0);let e=new AbortController;return B(()=>{R.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Y,B,R]);let ee={open:I,side:K.side,align:K.align,anchorHidden:K.anchorHidden,instant:V},et=n.useCallback(e=>{R.set("positionerElement",e)},[R]),en=(0,A.useRenderElement)("div",e,{state:ee,props:[K.props,(0,X.getDisabledMountTransitionStyles)(D),k],ref:[t,et],stateAttributesMapping:M.popupStateMapping});return(0,j.jsxs)($.Provider,{value:K,children:[O&&!0===N&&T!==x.REASONS.triggerHover&&(0,j.jsx)(Z.InternalBackdrop,{ref:R.context.internalBackdropRef,inert:(0,W.inertValue)(!I),cutout:P}),(0,j.jsx)(l.FloatingNode,{id:E,children:en})]})});var et=e.i(229315),en=e.i(488306),er=e.i(761896),es=e.i(284759),ei=e.i(889269),eo=e.i(992238),ea=e.i(560752);let el=n.createContext(void 0);function eu(e){let{value:t,children:n}=e;return(0,j.jsx)(el.Provider,{value:t,children:n})}let ec={...M.popupStateMapping,...es.transitionStatusMapping},ed=n.forwardRef(function(e,t){let{className:r,render:s,initialFocus:i,finalFocus:o,...a}=e,{store:l}=g(),u=Y(),c=null!=(0,ea.useToolbarRootContext)(!0),{context:d,hasClosePart:p}=function(){let[e,t]=n.useState(0),r=(0,T.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:n.useMemo(()=>({register:r}),[r]),hasClosePart:e>0}}(),f=l.useState("open"),v=l.useState("openMethod"),b=l.useState("instantType"),m=l.useState("transitionStatus"),h=l.useState("popupProps"),S=l.useState("titleElementId"),k=l.useState("descriptionElementId"),y=l.useState("modal"),R=l.useState("mounted"),C=l.useState("openChangeReason"),E=l.useState("activeTriggerElement"),w=l.useState("floatingRootContext");(0,ei.useOpenChangeComplete)({open:f,ref:l.context.popupRef,onComplete(){f&&l.context.onOpenChangeComplete?.(!0)}});let O=l.useState("disabled"),I=l.useState("openOnHover"),P=l.useState("closeDelay");(0,er.useHoverFloatingInteraction)(w,{enabled:I&&!O,closeDelay:P});let M=void 0===i?function(e){return"touch"!==e||l.context.popupRef.current}:i,N={open:f,side:u.side,align:u.align,instant:b,transitionStatus:m},F=n.useCallback(e=>{l.set("popupElement",e)},[l]),V=(0,A.useRenderElement)("div",e,{state:N,ref:[t,l.context.popupRef,F],props:[h,{"aria-labelledby":S,"aria-describedby":k,onKeyDown(e){c&&eo.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,X.getDisabledMountTransitionStyles)(m),a],stateAttributesMapping:ec});return(0,j.jsx)(en.FloatingFocusManager,{context:w,openInteractionType:v,modal:!1!==y&&p,disabled:!R||C===x.REASONS.triggerHover,initialFocus:M,returnFocus:o,restoreFocus:"popup",previousFocusableElement:(0,et.isHTMLElement)(E)?E:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,j.jsx)(eu,{value:d,children:V})})}),eg=n.forwardRef(function(e,t){let{className:n,render:r,...s}=e,{store:i}=g(),o=i.useState("open"),{arrowRef:a,side:l,align:u,arrowUncentered:c,arrowStyles:d}=Y();return(0,A.useRenderElement)("div",e,{state:{open:o,side:l,align:u,uncentered:c},ref:[t,a],props:[{style:d,"aria-hidden":!0},s],stateAttributesMapping:M.popupStateMapping})}),ep={...M.popupStateMapping,...es.transitionStatusMapping},ef=n.forwardRef(function(e,t){let{className:n,render:r,...s}=e,{store:i}=g(),o=i.useState("open"),a=i.useState("mounted"),l=i.useState("transitionStatus"),u=i.useState("openChangeReason");return(0,A.useRenderElement)("div",e,{state:{open:o,transitionStatus:l},ref:[i.context.backdropRef,t],props:[{role:"presentation",hidden:!a,style:{pointerEvents:u===x.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},s],stateAttributesMapping:ep})}),ev=n.forwardRef(function(e,t){let{render:n,className:r,...s}=e,{store:i}=g(),o=(0,D.useBaseUiId)(s.id);return(0,G.useIsoLayoutEffect)(()=>(i.set("titleElementId",o),()=>{i.set("titleElementId",void 0)}),[i,o]),(0,A.useRenderElement)("h2",e,{ref:t,props:[{id:o},s]})}),eb=n.forwardRef(function(e,t){let{render:n,className:r,...s}=e,{store:i}=g(),o=(0,D.useBaseUiId)(s.id);return(0,G.useIsoLayoutEffect)(()=>(i.set("descriptionElementId",o),()=>{i.set("descriptionElementId",void 0)}),[i,o]),(0,A.useRenderElement)("p",e,{ref:t,props:[{id:o},s]})}),em=n.forwardRef(function(e,t){let r,{render:s,className:i,disabled:o=!1,nativeButton:a=!0,...l}=e,{buttonRef:u,getButtonProps:c}=(0,P.useButton)({disabled:o,focusableWhenDisabled:!1,native:a}),{store:d}=g();return r=n.useContext(el),(0,G.useIsoLayoutEffect)(()=>r?.register(),[r]),(0,A.useRenderElement)("button",e,{ref:[t,u],props:[{onClick(e){d.setOpen(!1,(0,E.createChangeEventDetails)(x.REASONS.closePress,e.nativeEvent,e.currentTarget))}},l,c]})}),eh=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var ex=e.i(712666);let eS={activationDirection:e=>e?{"data-activation-direction":e}:null},ek=n.forwardRef(function(e,t){let{render:n,className:r,children:s,...i}=e,{store:o}=g(),{side:a}=Y(),l=o.useState("instantType"),{children:u,state:c}=(0,ex.usePopupViewport)({store:o,side:a,cssVars:eh,children:s}),d={activationDirection:c.activationDirection,transitioning:c.transitioning,instant:l};return(0,A.useRenderElement)("div",e,{state:d,ref:t,props:[i,{children:u}],stateAttributesMapping:eS})});class ey{constructor(){this.store=new C}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error((0,c.default)(80,e));this.store.setOpen(!0,(0,E.createChangeEventDetails)(x.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,E.createChangeEventDetails)(x.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,eg,"Backdrop",0,ef,"Close",0,em,"Description",0,eb,"Handle",0,ey,"Popup",0,ed,"Portal",0,K,"Positioner",0,ee,"Root",0,function(e){return g(!0)?(0,j.jsx)(I,{props:e}):(0,j.jsx)(l.FloatingTree,{children:(0,j.jsx)(I,{props:e})})},"Title",0,ev,"Trigger",0,_,"Viewport",0,ek,"createHandle",0,function(){return new ey}],307311);var eR=e.i(307311);e.s(["Popover",0,eR],506213)},575407,e=>{"use strict";var t=e.i(271645),n=e.i(891287),r=e.i(725842),s=e.i(910304),i=e.i(586108),o=e.i(326283);e.s(["useSsoProvider",0,function(e){let a=(0,i.useStigmer)(),[l,u]=(0,t.useState)(null),[c,d]=(0,t.useState)(!1),[g,p]=(0,t.useState)(null);return(0,t.useEffect)(()=>{if(!e){u(null),d(!1),p(null);return}let t={current:!1};return d(!0),p(null),a.identityProvider.getSsoProvider((0,n.create)(r.OrganizationSsoLookupSchema,{org:e})).then(e=>{t.current||(u(e),d(!1))},e=>{t.current||((0,s.isNotFound)(e)?u(null):p((0,o.toError)(e)),d(!1))}),()=>{t.current=!0}},[e,a]),{ssoProvider:l,isLoading:c,error:g}}])},388023,853793,758960,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(170255),s=e.i(597744),i=e.i(590150),o=e.i(575407),a=e.i(506213),l=e.i(893976),u=e.i(364354),c=e.i(188482),d=e.i(10337),g=e.i(966205);let p="stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1 stg:rounded-full stg:bg-muted stg:px-2 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",f=(0,n.forwardRef)(function({option:e,isSelected:n,role:r,isHighlighted:s,disabled:i,tabIndex:o,onSelect:a,onMouseEnter:u,onKeyDown:c},d){let g=void 0!==e.lockedReason,p="radio"===r?{"aria-checked":n}:{"aria-selected":n};return(0,t.jsxs)("button",{ref:d,type:"button",role:r,...p,"aria-disabled":g||void 0,tabIndex:o,disabled:i||g,onClick:a,onMouseEnter:u,onKeyDown:c,className:(0,l.cn)("stg:flex stg:w-full stg:items-start stg:gap-2 stg:rounded-md stg:px-2.5 stg:py-2 stg:text-left stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",g?"stg:disabled:pointer-events-none stg:cursor-default":"stg:disabled:pointer-events-none stg:disabled:opacity-50",!g&&(s?"stg:bg-accent stg:text-foreground":"stg:hover:bg-accent-hover")),children:[(0,t.jsx)(b,{tone:e.tone,className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-muted-foreground"}),(0,t.jsxs)("span",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsx)("span",{className:(0,l.cn)("stg:block stg:text-xs stg:font-medium",g?"stg:text-muted-foreground":"stg:text-foreground"),children:e.label}),(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:leading-snug stg:text-muted-foreground",children:g?e.lockedReason:e.description})]}),g?(0,t.jsx)(m,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-muted-foreground"}):n&&(0,t.jsx)(k,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-primary"})]})}),v={private:{container:"stg:border-amber-200 stg:bg-amber-50 stg:dark:border-amber-800/50 stg:dark:bg-amber-950/30",text:"stg:text-amber-800 stg:dark:text-amber-200",confirm:"stg:bg-amber-600 stg:hover:bg-amber-700 stg:dark:bg-amber-600 stg:dark:hover:bg-amber-500",cancel:"stg:text-amber-700 stg:hover:text-amber-900 stg:dark:text-amber-300 stg:dark:hover:text-amber-100"},org:{container:"stg:border-blue-200 stg:bg-blue-50 stg:dark:border-blue-800/50 stg:dark:bg-blue-950/30",text:"stg:text-blue-800 stg:dark:text-blue-200",confirm:"stg:bg-blue-600 stg:hover:bg-blue-700 stg:dark:bg-blue-600 stg:dark:hover:bg-blue-500",cancel:"stg:text-blue-700 stg:hover:text-blue-900 stg:dark:text-blue-300 stg:dark:hover:text-blue-100"},platform:{container:"stg:border-violet-200 stg:bg-violet-50 stg:dark:border-violet-800/50 stg:dark:bg-violet-950/30",text:"stg:text-violet-800 stg:dark:text-violet-200",confirm:"stg:bg-violet-600 stg:hover:bg-violet-700 stg:dark:bg-violet-600 stg:dark:hover:bg-violet-500",cancel:"stg:text-violet-700 stg:hover:text-violet-900 stg:dark:text-violet-300 stg:dark:hover:text-violet-100"},public:{container:"stg:border-emerald-200 stg:bg-emerald-50 stg:dark:border-emerald-800/50 stg:dark:bg-emerald-950/30",text:"stg:text-emerald-800 stg:dark:text-emerald-200",confirm:"stg:bg-emerald-600 stg:hover:bg-emerald-700 stg:dark:bg-emerald-600 stg:dark:hover:bg-emerald-500",cancel:"stg:text-emerald-700 stg:hover:text-emerald-900 stg:dark:text-emerald-300 stg:dark:hover:text-emerald-100"}};function b({tone:e,className:n}){switch(e){case"org":return(0,t.jsx)(h,{className:n});case"platform":return(0,t.jsx)(x,{className:n});case"public":return(0,t.jsx)(S,{className:n});default:return(0,t.jsx)(m,{className:n})}}function m({className:e}){return(0,t.jsxs)("svg",{className:e,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:"3.5",y:"7",width:"9",height:"7",rx:"1.5"}),(0,t.jsx)("path",{d:"M5.5 7V5a2.5 2.5 0 0 1 5 0v2"})]})}function h({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"6",cy:"5",r:"2.5"}),(0,t.jsx)("path",{d:"M2 13c0-2.21 1.79-4 4-4s4 1.79 4 4"}),(0,t.jsx)("circle",{cx:"11.5",cy:"5.5",r:"2"}),(0,t.jsx)("path",{d:"M14 13c0-1.66-1.12-3-2.5-3-.5 0-1 .14-1.4.4"})]})}function x({className:e}){return(0,t.jsxs)("svg",{className:e,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 14V4.5L6.5 2v12"}),(0,t.jsx)("path",{d:"M6.5 6.5 14 8.5V14"}),(0,t.jsx)("path",{d:"M2 14h12"}),(0,t.jsx)("path",{d:"M4.25 6h.01M4.25 8.5h.01M4.25 11h.01M10.5 10.5h.01M10.5 12.5h.01"})]})}function S({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M2 8h12"}),(0,t.jsx)("path",{d:"M8 2c1.66 1.46 2.6 3.63 2.6 6s-.94 4.54-2.6 6c-1.66-1.46-2.6-3.63-2.6-6s.94-4.54 2.6-6Z"})]})}function k({className:e}){return(0,t.jsx)("svg",{className:e,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.5 6.5 12 13 4.5"})})}var y=e.i(302933);let R={value:y.ApiResourceVisibility.visibility_private,label:"Private",description:"Only you can access",tone:"private"},C={value:y.ApiResourceVisibility.visibility_org,label:"Organization",description:"All members of your organization",confirmPrompt:"Make visible to all org members?",tone:"org"},E={value:y.ApiResourceVisibility.visibility_platform,label:"Platform",description:"All organizations managed by your platform",confirmDialog:{title:"Share with your whole platform?",description:"Every organization managed by your platform will be able to view and use this resource. You can return it to a narrower visibility at any time."},tone:"platform"},w={value:y.ApiResourceVisibility.visibility_public,label:"Public",description:"Retired level — this resource becomes visible to your organization on upgrade",tone:"public"};function O(e){return e.hasIdentityProvider?[R,C,E]:[R,C]}function j(){return[R,{...C,description:"All org members can view executions"}]}function I(e){return"local"===e?[R]:[{...R,description:"Only you can view and use these credentials"},{...C,description:"Agents run in your org — including shared-agent visitors — can use these credentials. Members see names only; secret values stay hidden.",confirmPrompt:"Let agents run in your org use these credentials?"}]}function T(e){switch(e){case y.ApiResourceVisibility.visibility_org:return C;case y.ApiResourceVisibility.visibility_platform:return E;case y.ApiResourceVisibility.visibility_public:return w;default:return R}}function P({visibility:e,options:r,onVisibilityChange:s,mode:i="manage",isPending:o=!1,disabled:c=!1,ariaLabel:m="Resource visibility",className:h}){let x=(0,u.useStigmerPortalContainer)(),{confirmState:S,confirm:k,handleConfirm:y,handleCancel:R}=(0,g.useConfirmAction)(),[C,E]=(0,n.useState)(!1),[w,O]=(0,n.useState)(null),[j,I]=(0,n.useState)(-1),A=(0,n.useRef)([]),N=c||o,F=(0,n.useMemo)(()=>r.some(t=>t.value===e)?r:[...r,T(e)],[r,e]),V=(0,n.useCallback)(t=>{let n=F.map(e=>e.value);return n.indexOf(t)>n.indexOf(e)},[F,e]),D=(0,n.useCallback)(e=>{E(!1),O(null),s(e)},[s]),L=(0,n.useCallback)(t=>{if(void 0!==t.lockedReason)return;let n=t.value;if(n===e){O(null),E(!1);return}if("create"===i||!V(n))return void D(n);if(t.confirmDialog){E(!1),O(null),k({title:t.confirmDialog.title,description:t.confirmDialog.description,confirmLabel:`Make ${t.label}`,variant:"default"}).then(e=>{e&&s(n)});return}t.confirmPrompt?O(n):D(n)},[e,i,V,D,k,s]),H=(0,n.useCallback)((e,t)=>{let n=F.length,r=e;for(let e=0;e<n&&(r=(r+t+n)%n,F[r]?.lockedReason!==void 0);e++);I(r),A.current[r]?.focus()},[F]),B=(0,n.useCallback)((e,t)=>{switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),H(t,1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),H(t,-1);break;case"Home":e.preventDefault(),I(0),A.current[0]?.focus();break;case"End":{e.preventDefault();let t=F.length-1;I(t),A.current[t]?.focus()}}},[H,F.length]);(0,n.useEffect)(()=>{if(!C){O(null),I(-1);return}let t=F.findIndex(t=>t.value===e),n=t>=0?t:0;I(n);let r=requestAnimationFrame(()=>A.current[n]?.focus());return()=>cancelAnimationFrame(r)},[C,F,e]);let _=(0,t.jsx)(d.ConfirmDialog,{state:S,onConfirm:y,onCancel:R}),z=n=>F.map((r,s)=>(0,t.jsx)(f,{ref:e=>{A.current[s]=e},option:r,role:n,isSelected:e===r.value,isHighlighted:"option"===n&&j===s,tabIndex:"radio"===n?e===r.value?0:-1:j===s?0:-1,disabled:N,onSelect:()=>L(r),onMouseEnter:"option"===n?()=>I(s):void 0,onKeyDown:e=>B(e,s)},r.value));if("create"===i)return(0,t.jsx)("div",{role:"radiogroup","aria-label":m,"aria-disabled":N||void 0,className:(0,l.cn)("stg:flex stg:flex-col stg:gap-0.5 stg:rounded-md stg:border stg:border-border stg:p-1",N&&"stg:pointer-events-none stg:opacity-50",h),children:z("radio")});let U=T(e),K=null!==w?F.find(e=>e.value===w):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.Popover.Root,{open:C,onOpenChange:E,children:[(0,t.jsxs)(a.Popover.Trigger,{disabled:N,"aria-label":`${m}: ${U.label}`,className:(0,l.cn)(p,"stg:transition-colors stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",h),children:[o?(0,t.jsx)("span",{className:"stg:inline-block stg:size-2.5 stg:animate-spin stg:rounded-full stg:border-2 stg:border-current stg:border-t-transparent","aria-hidden":"true"}):(0,t.jsx)(b,{tone:U.tone,className:"stg:size-2.5"}),U.label,(0,t.jsx)(M,{})]}),(0,t.jsx)(a.Popover.Portal,{container:x,children:(0,t.jsx)(a.Popover.Positioner,{sideOffset:4,align:"start",children:(0,t.jsxs)(a.Popover.Popup,{role:"listbox","aria-label":m,className:(0,l.cn)("stg:z-popover stg:w-72 stg:rounded-lg stg:border stg:border-border stg:bg-popover stg:p-1 stg:shadow-md","stg:text-popover-foreground stg:animate-in stg:fade-in-0 stg:zoom-in-95"),children:[z("option"),K?.confirmPrompt&&(0,t.jsxs)("div",{role:"alert",className:(0,l.cn)("stg:mt-1 stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5",v[K.tone].container),children:[(0,t.jsx)("span",{className:(0,l.cn)("stg:flex-1 stg:text-[0.65rem] stg:leading-snug",v[K.tone].text),children:K.confirmPrompt}),(0,t.jsx)("button",{type:"button",onClick:()=>O(null),className:(0,l.cn)("stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",v[K.tone].cancel),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:()=>D(K.value),className:(0,l.cn)("stg:rounded stg:px-2 stg:py-0.5 stg:text-[0.65rem] stg:font-medium stg:text-white","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",v[K.tone].confirm),children:"Confirm"})]})]})})})]}),_]})}function M(){return(0,t.jsx)("svg",{className:"stg:size-2.5 stg:shrink-0 stg:text-muted-foreground",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 4.5 6 7.5 9 4.5"})})}function A({visibility:e,className:n,onClick:r}){let s=T(e),i=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b,{tone:s.tone,className:"stg:size-2.5"}),s.label]});return r?(0,t.jsxs)(c.Tooltip,{children:[(0,t.jsx)(c.TooltipTrigger,{render:(0,t.jsx)("button",{type:"button",onClick:r,"aria-label":`${s.label} visibility — manage access`,className:(0,l.cn)(p,"stg:transition-colors stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",n)}),children:i}),(0,t.jsx)(c.TooltipContent,{side:"top",children:"Manage access"})]}):(0,t.jsx)("span",{className:(0,l.cn)(p,n),children:i})}e.s(["blueprintVisibilityLevels",0,O,"environmentVisibilityLevels",0,I,"instanceVisibilityLevels",0,j,"visibilityOption",0,T],853793),e.s(["VisibilityBadge",0,A,"VisibilitySelector",0,P],758960);var N=e.i(891287),F=e.i(459153),V=e.i(586108),D=e.i(326283);let L={agent:"agent",workflow:"workflow",plugin:"plugin",skill:"skill",mcpServer:"mcp_server",agentInstance:"agent_instance",workflowInstance:"workflow_instance",environment:"environment"},H=new Set(["agentInstance","workflowInstance"]);e.s(["ResourceVisibilityControl",0,function({kind:e,resourceId:a,visibility:l,org:u,onChanged:c,className:d}){let{updateVisibility:g,isPending:p}=function(e,t){let r=(0,V.useStigmer)(),[s,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(null);return{updateVisibility:(0,n.useCallback)(async n=>{if(t){i(!0),a(null);try{let s=(0,N.create)(F.UpdateVisibilityInputSchema,{resourceId:t,visibility:n});switch(e){case"skill":await r.skill.updateVisibility(s);break;case"agent":await r.agent.updateVisibility(s);break;case"mcpServer":await r.mcpServer.updateVisibility(s);break;case"workflow":await r.workflow.updateVisibility(s);break;case"plugin":await r.plugin.updateVisibility(s);break;case"agentInstance":await r.agentInstance.updateVisibility(s);break;case"workflowInstance":await r.workflowInstance.updateVisibility(s);break;case"environment":await r.environment.updateVisibility(s)}}catch(e){throw a((0,D.toError)(e)),e}finally{i(!1)}}},[e,t,r]),isPending:s,error:o}}(e,a),f=(0,s.useDeploymentMode)(),v=(0,s.useResourceAvailable)(r.ApiResourceKind.identity_provider),b=H.has(e),m="environment"===e,{ssoProvider:h}=(0,o.useSsoProvider)(b||m||!v?null:u??null),x=m?I(f):b?j():O({hasIdentityProvider:null!==h}),S=(0,n.useCallback)(async e=>{try{await g(e),c?.()}catch{}},[g,c]),k=(0,t.jsx)(A,{visibility:l,className:d});if(x.length<2)return k;let y=(0,t.jsx)(P,{visibility:l,options:x,onVisibilityChange:S,isPending:p,ariaLabel:b?"Instance visibility":"Resource visibility",className:d});return(0,t.jsx)(i.PermissionGate,{resource:{kind:L[e],id:a},relation:"can_edit",fallback:k,loading:k,children:y})}],388023)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,988646,e=>{"use strict";var a=e.i(424407),i=e.i(14156);let l=(0,a.fileDesc)("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw"),t=(0,i.messageDesc)(l,0);e.s(["EmptySchema",0,t,"file_google_protobuf_empty",0,l])},785767,e=>{"use strict";var a,i,l=e.i(910304),t=e.i(292558),c=e.i(891287),d=e.i(988646),n=e.i(338300),r=e.i(459153),m=e.i(421415),b=e.i(424407),s=e.i(304532),o=e.i(988158);e.i(113024);let u=(0,b.fileDesc)("Ci1haS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL2VudW0ucHJvdG8SImFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEqWQoOTWFuYWdlbWVudE1vZGUSHwobbWFuYWdlbWVudF9tb2RlX3Vuc3BlY2lmaWVkEAASEAoMc2VsZl9tYW5hZ2VkEAESFAoQcGxhdGZvcm1fbWFuYWdlZBACYgZwcm90bzM");(a=i||(i={}))[a.management_mode_unspecified=0]="management_mode_unspecified",a[a.self_managed=1]="self_managed",a[a.platform_managed=2]="platform_managed";var W=e.i(761867);let p=(0,b.fileDesc)("Ci1haS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL3NwZWMucHJvdG8SImFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEi7wIKEE9yZ2FuaXphdGlvblNwZWMSHQoLZGVzY3JpcHRpb24YASABKAlCCLpIBXIDGPQDEhoKCGxvZ29fdXJsGAIgASgJQgi6SAVyAxiAEBJLCg9tYW5hZ2VtZW50X21vZGUYAyABKA4yMi5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk1hbmFnZW1lbnRNb2RlElMKFWlkZW50aXR5X3Byb3ZpZGVyX3JlZhgEIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRIXCg9leHRlcm5hbF9vcmdfaWQYBSABKAkSEwoLaXNfcGVyc29uYWwYBiABKAgSUAoLcHJlZmVyZW5jZXMYByABKAsyOy5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvblByZWZlcmVuY2VzIlUKF09yZ2FuaXphdGlvblByZWZlcmVuY2VzEiIKEHN0YW5kaW5nX2NvbnRleHQYASABKAlCCLpIBXIDGNAPEhYKDm1lbW9yeV9lbmFibGVkGAIgASgIYgZwcm90bzM",[r.file_ai_stigmer_commons_apiresource_io,u,W.file_buf_validate_validate]),g=(0,s.messageDesc)(p,0),G=(0,s.messageDesc)(p,1),Z=(0,b.fileDesc)("CixhaS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL2FwaS5wcm90bxIiYWkuc3RpZ21lci50ZW5hbmN5Lm9yZ2FuaXphdGlvbi52MSK/AgoMT3JnYW5pemF0aW9uEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVdGVuYW5jeS5zdGlnbWVyLmFpL3YxEiEKBGtpbmQYAiABKAlCE7pIEHIOCgxPcmdhbml6YXRpb24STQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YUIGukgDyAEBEkIKBHNwZWMYBCABKAsyNC5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvblNwZWMSRgoGc3RhdHVzGAUgASgLMjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXRTdGF0dXNiBnByb3RvMw",[m.file_ai_stigmer_commons_apiresource_metadata,o.file_ai_stigmer_commons_apiresource_status,p,W.file_buf_validate_validate]),A=(0,s.messageDesc)(Z,0);var h=e.i(499328),Y=e.i(819200),y=e.i(693569);let V=(0,b.fileDesc)("CithaS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL2lvLnByb3RvEiJhaS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxIlIKDU9yZ2FuaXphdGlvbnMSQQoHZW50cmllcxgBIAMoCzIwLmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uImoKEE9yZ2FuaXphdGlvbkxpc3QSEwoLdG90YWxfcGFnZXMYASABKAUSQQoHZW50cmllcxgCIAMoCzIwLmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uIioKDk9yZ2FuaXphdGlvbklkEhgKBXZhbHVlGAEgASgJQgm6SAZyBBABGEAimwEKGk9yZ2FuaXphdGlvbkV4dGVybmFsTG9va3VwElsKFWlkZW50aXR5X3Byb3ZpZGVyX3JlZhgBIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZUIGukgDyAEBEiAKD2V4dGVybmFsX29yZ19pZBgCIAEoCUIHukgEcgIQAWIGcHJvdG8z",[r.file_ai_stigmer_commons_apiresource_io,Z,W.file_buf_validate_validate]),v=(0,s.messageDesc)(V,2),S=(0,b.fileDesc)("CjBhaS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL2NvbW1hbmQucHJvdG8SImFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEy2AQKHU9yZ2FuaXphdGlvbkNvbW1hbmRDb250cm9sbGVyEmsKBWFwcGx5EjAuYWkuc3RpZ21lci50ZW5hbmN5Lm9yZ2FuaXphdGlvbi52MS5Pcmdhbml6YXRpb24aMC5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbhJyCgZjcmVhdGUSMC5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbhowLmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uIgTQuBgBEqgBCgZ1cGRhdGUSMC5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbhowLmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uIjrCuBg2CAIQHiILbWV0YWRhdGEuaWQqI3VuYXV0aG9yaXplZCB0byB1cGRhdGUgb3JnYW5pemF0aW9uEqQBCgZkZWxldGUSMi5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbklkGjAuYWkuc3RpZ21lci50ZW5hbmN5Lm9yZ2FuaXphdGlvbi52MS5Pcmdhbml6YXRpb24iNMK4GDAIAxAeIgV2YWx1ZSojdW5hdXRob3JpemVkIHRvIGRlbGV0ZSBvcmdhbml6YXRpb24aBKD/Kx5iBnByb3RvMw",[Y.file_ai_stigmer_commons_apiresource_rpc_service_options,y.file_ai_stigmer_commons_rpc_method_options,Z,V]),R=(0,h.serviceDesc)(S,0),I=(0,b.fileDesc)("Ci5haS9zdGlnbWVyL3RlbmFuY3kvb3JnYW5pemF0aW9uL3YxL3F1ZXJ5LnByb3RvEiJhaS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxMrkEChtPcmdhbml6YXRpb25RdWVyeUNvbnRyb2xsZXISnwEKA2dldBIyLmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uSWQaMC5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbiIywrgYLggBEB4iBXZhbHVlKiF1bmF1dGhvcml6ZWQgdG8gdmlldyBvcmdhbml6YXRpb24SewoEZmluZBI3LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5GaW5kQXBpUmVzb3VyY2VzUmVxdWVzdBo0LmFpLnN0aWdtZXIudGVuYW5jeS5vcmdhbml6YXRpb24udjEuT3JnYW5pemF0aW9uTGlzdCIE0LgYARJmChNmaW5kTXlPcmdhbml6YXRpb25zEhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GjEuYWkuc3RpZ21lci50ZW5hbmN5Lm9yZ2FuaXphdGlvbi52MS5Pcmdhbml6YXRpb25zIgTQuBgBEowBChJnZXRCeUV4dGVybmFsT3JnSWQSPi5haS5zdGlnbWVyLnRlbmFuY3kub3JnYW5pemF0aW9uLnYxLk9yZ2FuaXphdGlvbkV4dGVybmFsTG9va3VwGjAuYWkuc3RpZ21lci50ZW5hbmN5Lm9yZ2FuaXphdGlvbi52MS5Pcmdhbml6YXRpb24iBNC4GAEaBKD/Kx5iBnByb3RvMw",[r.file_ai_stigmer_commons_apiresource_io,Y.file_ai_stigmer_commons_apiresource_rpc_service_options,y.file_ai_stigmer_commons_rpc_method_options,Z,V,d.file_google_protobuf_empty]),B=(0,h.serviceDesc)(I,0);function X(e){var a;let i=e.identityProviderRef?.slug||e.identityProviderRef?.org?(0,c.create)(r.ApiResourceReferenceSchema,e.identityProviderRef):void 0,l=e.preferences?(a=e.preferences,Object.assign((0,c.create)(G),(0,t.stripUndefined)({standingContext:a.standingContext,memoryEnabled:a.memoryEnabled}))):void 0;return Object.assign((0,c.create)(A),{apiVersion:"tenancy.stigmer.ai/v1",kind:"Organization",metadata:Object.assign((0,c.create)(m.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,c.create)(g),(0,t.stripUndefined)({description:e.description,logoUrl:e.logoUrl,managementMode:e.managementMode,identityProviderRef:i,externalOrgId:e.externalOrgId,isPersonal:e.isPersonal,preferences:l}))})}e.s(["OrganizationClient",0,class{command;query;constructor(e){this.command=(0,n.createClient)(R,e),this.query=(0,n.createClient)(B,e)}async apply(e){try{return await this.command.apply(X(e))}catch(e){throw(0,l.wrapError)(e)}}async create(e){try{return await this.command.create(X(e))}catch(e){throw(0,l.wrapError)(e)}}async update(e){try{return await this.command.update(X(e))}catch(e){throw(0,l.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,c.create)(v,{value:e}))}catch(e){throw(0,l.wrapError)(e)}}async get(e){try{return await this.query.get((0,c.create)(v,{value:e}))}catch(e){throw(0,l.wrapError)(e)}}async find(e){try{return await this.query.find(e)}catch(e){throw(0,l.wrapError)(e)}}async findMyOrganizations(){try{return await this.query.findMyOrganizations((0,c.create)(d.EmptySchema,{}))}catch(e){throw(0,l.wrapError)(e)}}async getByExternalOrgId(e){try{return await this.query.getByExternalOrgId(e)}catch(e){throw(0,l.wrapError)(e)}}},"toOrganizationUpdateInput",0,function(e){var a;let i=e.metadata,l=e.spec??(0,c.create)(g);return{id:i?.id||void 0,name:i?.name??"",slug:i?.slug||void 0,org:i?.org||i?.slug||"",labels:i?.labels&&Object.keys(i.labels).length>0?{...i.labels}:void 0,visibility:i?.visibility||void 0,description:l.description||void 0,logoUrl:l.logoUrl||void 0,managementMode:l.managementMode||void 0,identityProviderRef:(0,t.toResourceRefInput)(l.identityProviderRef),externalOrgId:l.externalOrgId||void 0,isPersonal:l.isPersonal||void 0,preferences:l.preferences?{standingContext:(a=l.preferences).standingContext||void 0,memoryEnabled:a.memoryEnabled||void 0}:void 0}}],785767)},808139,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(988646),c=e.i(338300),d=e.i(459153),n=e.i(421415),r=e.i(424407),m=e.i(304532),b=e.i(988158),s=e.i(267872),o=e.i(761867);let u=(0,r.fileDesc)("CixhaS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvc3BlYy5wcm90bxIhYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxIpwDChNJZGVudGl0eUFjY291bnRTcGVjEhYKBmlkcF9pZBgBIAEoCUIGukgDyAEBEg0KBWVtYWlsGAIgASgJEhIKCmZpcnN0X25hbWUYAyABKAkSEQoJbGFzdF9uYW1lGAQgASgJEhMKC3BpY3R1cmVfdXJsGAUgASgJEhoKEmlzX21hY2hpbmVfYWNjb3VudBgGIAEoCBJdChFwcm92aXNpb25pbmdfbW9kZRgHIAEoDjJCLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnRQcm92aXNpb25pbmdNb2RlElMKFWlkZW50aXR5X3Byb3ZpZGVyX3JlZhgIIAEoCzI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRJSCgtwcmVmZXJlbmNlcxgJIAEoCzI9LmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnRQcmVmZXJlbmNlcyL3AQoaSWRlbnRpdHlBY2NvdW50UHJlZmVyZW5jZXMSIgoQc3RhbmRpbmdfY29udGV4dBgBIAEoCUIIukgFcgMY0A8SMQoPZGVmYXVsdF9oYXJuZXNzGAIgASgJQhi6SBXYAQFyEFIGbmF0aXZlUgZjdXJzb3ISJQoUZGVmYXVsdF9uYXRpdmVfbW9kZWwYAyABKAlCB7pIBHICGGQSJQoUZGVmYXVsdF9jdXJzb3JfbW9kZWwYBCABKAlCB7pIBHICGGQSFgoObWVtb3J5X2VuYWJsZWQYBSABKAgSHAoUZGVmYXVsdF9hdXRvX2FwcHJvdmUYBiABKAhiBnByb3RvMw",[d.file_ai_stigmer_commons_apiresource_io,s.file_ai_stigmer_iam_identityaccount_v1_enum,o.file_buf_validate_validate]),W=(0,m.messageDesc)(u,0),p=(0,m.messageDesc)(u,1),g=(0,r.fileDesc)("CithaS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvYXBpLnByb3RvEiFhaS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEiuwIKD0lkZW50aXR5QWNjb3VudBItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEiQKBGtpbmQYAiABKAlCFrpIE3IRCg9JZGVudGl0eUFjY291bnQSRQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YRJECgRzcGVjGAQgASgLMjYuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudFNwZWMSRgoGc3RhdHVzGAUgASgLMjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXRTdGF0dXNiBnByb3RvMw",[n.file_ai_stigmer_commons_apiresource_metadata,b.file_ai_stigmer_commons_apiresource_status,u,o.file_buf_validate_validate]),G=(0,m.messageDesc)(g,0);var Z=e.i(499328),A=e.i(819200),h=e.i(693569),Y=e.i(85849);let y=(0,r.fileDesc)("CiphaS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvaW8ucHJvdG8SIWFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MSJXChBJZGVudGl0eUFjY291bnRzEkMKB2VudHJpZXMYASADKAsyMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IioKEUlkZW50aXR5QWNjb3VudElkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiLQoUSWRlbnRpdHlBY2NvdW50RW1haWwSFQoFdmFsdWUYASABKAlCBrpIA8gBASIeCgVJZHBJZBIVCgV2YWx1ZRgBIAEoCUIGukgDyAEBImsKHExpc3RXaXRoSWRlbnRpdHlBY2NvdW50SWRSZXESGwoTaWRlbnRpdHlfYWNjb3VudF9pZBgBIAEoCRIuCgRwYWdlGAIgASgLMiAuYWkuc3RpZ21lci5jb21tb25zLnJwYy5QYWdlSW5mbyJwChRJZGVudGl0eUFjY291bnRzTGlzdBITCgt0b3RhbF9wYWdlcxgBIAEoBRJDCgdlbnRyaWVzGAIgAygLMjIuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudCJSChNMaXN0V2l0aElkZW50aXR5T3JnEgsKA29yZxgBIAEoCRIuCgRwYWdlGAIgASgLMiAuYWkuc3RpZ21lci5jb21tb25zLnJwYy5QYWdlSW5mbyKbAQoRRXh0ZXJuYWxTdWJMb29rdXASEwoDb3JnGAEgASgJQga6SAPIAQESUwoVaWRlbnRpdHlfcHJvdmlkZXJfcmVmGAIgASgLMjQuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlUmVmZXJlbmNlEhwKDGV4dGVybmFsX3N1YhgDIAEoCUIGukgDyAEBIvgBChtDcmVhdGVGZWRlcmF0ZWRBY2NvdW50SW5wdXQSEwoDb3JnGAEgASgJQga6SAPIAQESUwoVaWRlbnRpdHlfcHJvdmlkZXJfcmVmGAIgASgLMjQuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlUmVmZXJlbmNlEhwKDGV4dGVybmFsX3N1YhgDIAEoCUIGukgDyAEBEhUKBWVtYWlsGAQgASgJQga6SAPIAQESEgoKZmlyc3RfbmFtZRgFIAEoCRIRCglsYXN0X25hbWUYBiABKAkSEwoLcGljdHVyZV91cmwYByABKAki+AEKG1VwZGF0ZUZlZGVyYXRlZEFjY291bnRJbnB1dBITCgNvcmcYASABKAlCBrpIA8gBARJTChVpZGVudGl0eV9wcm92aWRlcl9yZWYYAiABKAsyNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2USHAoMZXh0ZXJuYWxfc3ViGAMgASgJQga6SAPIAQESFQoFZW1haWwYBCABKAlCBrpIA8gBARISCgpmaXJzdF9uYW1lGAUgASgJEhEKCWxhc3RfbmFtZRgGIAEoCRITCgtwaWN0dXJlX3VybBgHIAEoCSLCAQogRGVwcm92aXNpb25GZWRlcmF0ZWRBY2NvdW50SW5wdXQSEwoDb3JnGAEgASgJQga6SAPIAQESUwoVaWRlbnRpdHlfcHJvdmlkZXJfcmVmGAIgASgLMjQuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlUmVmZXJlbmNlEhwKDGV4dGVybmFsX3N1YhgDIAEoCUIGukgDyAEBEhYKDmRlbGV0ZV9hY2NvdW50GAQgASgIYgZwcm90bzM",[d.file_ai_stigmer_commons_apiresource_io,Y.file_ai_stigmer_commons_rpc_pagination,g,o.file_buf_validate_validate]),V=(0,m.messageDesc)(y,1),v=(0,m.messageDesc)(y,3),S=(0,r.fileDesc)("Ci9haS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvY29tbWFuZC5wcm90bxIhYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxMosKCiBJZGVudGl0eUFjY291bnRDb21tYW5kQ29udHJvbGxlchJ2CgZjcmVhdGUSMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50GjIuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudCIE0LgYARKwAQoGdXBkYXRlEjIuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudBoyLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnQiPsK4GDoIAhALIgttZXRhZGF0YS5pZCondW5hdXRob3JpemVkIHRvIHVwZGF0ZSBpZGVudGl0eSBhY2NvdW50EqwBCgZkZWxldGUSNC5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50SWQaMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IjjCuBg0CAMQCyIFdmFsdWUqJ3VuYXV0aG9yaXplZCB0byBkZWxldGUgaWRlbnRpdHkgYWNjb3VudBLaAQoWY3JlYXRlRmVkZXJhdGVkQWNjb3VudBI+LmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5DcmVhdGVGZWRlcmF0ZWRBY2NvdW50SW5wdXQaMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IkzCuBhICBUQHiIDb3JnKj11bmF1dGhvcml6ZWQgdG8gY3JlYXRlIGlkZW50aXR5IGFjY291bnRzIGluIHRoaXMgb3JnYW5pemF0aW9uEtoBChZ1cGRhdGVGZWRlcmF0ZWRBY2NvdW50Ej4uYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLlVwZGF0ZUZlZGVyYXRlZEFjY291bnRJbnB1dBoyLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnQiTMK4GEgIFRAeIgNvcmcqPXVuYXV0aG9yaXplZCB0byBtYW5hZ2UgaWRlbnRpdHkgYWNjb3VudHMgaW4gdGhpcyBvcmdhbml6YXRpb24S5AEKG2RlcHJvdmlzaW9uRmVkZXJhdGVkQWNjb3VudBJDLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5EZXByb3Zpc2lvbkZlZGVyYXRlZEFjY291bnRJbnB1dBoyLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnQiTMK4GEgIFRAeIgNvcmcqPXVuYXV0aG9yaXplZCB0byBtYW5hZ2UgaWRlbnRpdHkgYWNjb3VudHMgaW4gdGhpcyBvcmdhbml6YXRpb24SZgoScHJvdmlzaW9uTXlBY2NvdW50EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5GjIuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudCIE0LgYARoEoP8rC2IGcHJvdG8z",[A.file_ai_stigmer_commons_apiresource_rpc_service_options,h.file_ai_stigmer_commons_rpc_method_options,g,y,t.file_google_protobuf_empty]),R=(0,Z.serviceDesc)(S,0),I=(0,r.fileDesc)("Ci1haS9zdGlnbWVyL2lhbS9pZGVudGl0eWFjY291bnQvdjEvcXVlcnkucHJvdG8SIWFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MTKDCAoeSWRlbnRpdHlBY2NvdW50UXVlcnlDb250cm9sbGVyEqYBCgNnZXQSNC5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50SWQaMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IjXCuBgxCAEQCyIFdmFsdWUqJHVuYXV0aG9yaXplZCB0byBnZXQgaWRlbnRpdHkgYWNjb3VudBJaCgZ3aG9BbUkSFi5nb29nbGUucHJvdG9idWYuRW1wdHkaMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IgTQuBgBErABCgpnZXRCeUVtYWlsEjcuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudEVtYWlsGjIuYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlhY2NvdW50LnYxLklkZW50aXR5QWNjb3VudCI1wrgYMQgBEAsiBXZhbHVlKiR1bmF1dGhvcml6ZWQgdG8gZ2V0IGlkZW50aXR5IGFjY291bnQSoQEKCmdldEJ5SWRwSWQSKC5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRwSWQaMi5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50IjXCuBgxCAEQCyIFdmFsdWUqJHVuYXV0aG9yaXplZCB0byBnZXQgaWRlbnRpdHkgYWNjb3VudBLLAQoQZ2V0QnlFeHRlcm5hbFN1YhI0LmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5FeHRlcm5hbFN1Ykxvb2t1cBoyLmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5YWNjb3VudC52MS5JZGVudGl0eUFjY291bnQiTcK4GEkIFRAeIgNvcmcqPnVuYXV0aG9yaXplZCB0byBsb29rIHVwIGlkZW50aXR5IGFjY291bnRzIGluIHRoaXMgb3JnYW5pemF0aW9uErABCgxnZXRBY3RvckluZm8SNC5haS5zdGlnbWVyLmlhbS5pZGVudGl0eWFjY291bnQudjEuSWRlbnRpdHlBY2NvdW50SWQaNS5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdEFjdG9yIjPCuBgvCAEQCyIFdmFsdWUqInVuYXV0aG9yaXplZCB0byBsb29rIHVwIGFjdG9yIGluZm8aBKD/KwtiBnByb3RvMw",[A.file_ai_stigmer_commons_apiresource_rpc_service_options,b.file_ai_stigmer_commons_apiresource_status,h.file_ai_stigmer_commons_rpc_method_options,g,y,t.file_google_protobuf_empty]),B=(0,Z.serviceDesc)(I,0);function X(e){var a;let t=e.identityProviderRef?.slug||e.identityProviderRef?.org?(0,l.create)(d.ApiResourceReferenceSchema,e.identityProviderRef):void 0,c=e.preferences?(a=e.preferences,Object.assign((0,l.create)(p),(0,i.stripUndefined)({standingContext:a.standingContext,defaultHarness:a.defaultHarness,defaultNativeModel:a.defaultNativeModel,defaultCursorModel:a.defaultCursorModel,memoryEnabled:a.memoryEnabled,defaultAutoApprove:a.defaultAutoApprove}))):void 0;return Object.assign((0,l.create)(G),{apiVersion:"iam.stigmer.ai/v1",kind:"IdentityAccount",metadata:Object.assign((0,l.create)(n.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(W),(0,i.stripUndefined)({idpId:e.idpId,email:e.email,firstName:e.firstName,lastName:e.lastName,pictureUrl:e.pictureUrl,isMachineAccount:e.isMachineAccount,provisioningMode:e.provisioningMode,identityProviderRef:t,preferences:c}))})}e.s(["IdentityAccountClient",0,class{command;query;constructor(e){this.command=(0,c.createClient)(R,e),this.query=(0,c.createClient)(B,e)}async create(e){try{return await this.command.create(X(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(X(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(V,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async createFederatedAccount(e){try{return await this.command.createFederatedAccount(e)}catch(e){throw(0,a.wrapError)(e)}}async updateFederatedAccount(e){try{return await this.command.updateFederatedAccount(e)}catch(e){throw(0,a.wrapError)(e)}}async deprovisionFederatedAccount(e){try{return await this.command.deprovisionFederatedAccount(e)}catch(e){throw(0,a.wrapError)(e)}}async provisionMyAccount(){try{return await this.command.provisionMyAccount((0,l.create)(t.EmptySchema,{}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(V,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async whoAmI(){try{return await this.query.whoAmI((0,l.create)(t.EmptySchema,{}))}catch(e){throw(0,a.wrapError)(e)}}async getByEmail(e){try{return await this.query.getByEmail(e)}catch(e){throw(0,a.wrapError)(e)}}async getByIdpId(e){try{return await this.query.getByIdpId((0,l.create)(v,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByExternalSub(e){try{return await this.query.getByExternalSub(e)}catch(e){throw(0,a.wrapError)(e)}}async getActorInfo(e){try{return await this.query.getActorInfo((0,l.create)(V,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}},"toIdentityAccountUpdateInput",0,function(e){var a;let t=e.metadata,c=e.spec??(0,l.create)(W);return{id:t?.id||void 0,name:t?.name??"",slug:t?.slug||void 0,org:t?.org??"",labels:t?.labels&&Object.keys(t.labels).length>0?{...t.labels}:void 0,visibility:t?.visibility||void 0,idpId:c.idpId??"",email:c.email||void 0,firstName:c.firstName||void 0,lastName:c.lastName||void 0,pictureUrl:c.pictureUrl||void 0,isMachineAccount:c.isMachineAccount||void 0,provisioningMode:c.provisioningMode||void 0,identityProviderRef:(0,i.toResourceRefInput)(c.identityProviderRef),preferences:c.preferences?{standingContext:(a=c.preferences).standingContext||void 0,defaultHarness:a.defaultHarness||void 0,defaultNativeModel:a.defaultNativeModel||void 0,defaultCursorModel:a.defaultCursorModel||void 0,memoryEnabled:a.memoryEnabled||void 0,defaultAutoApprove:a.defaultAutoApprove||void 0}:void 0}}],808139)},546839,587751,290846,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(17616),c=e.i(338300),d=e.i(170255),n=e.i(459153),r=e.i(421415),m=e.i(424407),b=e.i(304532),s=e.i(988158),o=e.i(823363),u=e.i(430182),W=e.i(761867),p=e.i(732303);let g=(0,m.fileDesc)("CithaS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS9zcGVjLnByb3RvEiBhaS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MSKQBwoSUGxhdGZvcm1DbGllbnRTcGVjEhcKCWNsaWVudF9pZBgBIAEoCUIEyIUsARIgChJjbGllbnRfc2VjcmV0X2hhc2gYAiABKAlCBMiFLAESIAoSc2VjcmV0X2ZpbmdlcnByaW50GAMgASgJQgTIhSwBEi4KCmV4cGlyZXNfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhUKDW5ldmVyX2V4cGlyZXMYBSABKAgSHwoXYXV0b19wcm92aXNpb25fYWNjb3VudHMYBiABKAgSGQoRYXV0b19ncmFudF9vbl9vcmcYByABKAgSMwoPYXV0b19ncmFudF9yb2xlGAggASgOMhouYWkuc3RpZ21lci5pYW0udjEuSWFtUm9sZRIXCg9hbGxvd2VkX29yaWdpbnMYCSADKAkSyAEKEGVudmlyb25tZW50X3JlZnMYCiADKAsyNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2VCeLpIcZIBbiJsugFpChVlbnZpcm9ubWVudF9yZWZzLmtpbmQSP2Vudmlyb25tZW50X3JlZnMgbXVzdCByZWZlcmVuY2UgcmVzb3VyY2VzIHdpdGgga2luZD1lbnZpcm9ubWVudBoPdGhpcy5raW5kID09IDUz4IUsNTqAA7pI/AIa2wEKMnBsYXRmb3JtX2NsaWVudC5hdXRvX2dyYW50X3JlcXVpcmVzX2F1dG9fcHJvdmlzaW9uEmxhdXRvX2dyYW50X29uX29yZyByZXF1aXJlcyBhdXRvX3Byb3Zpc2lvbl9hY2NvdW50czogb25seSBhbiBhY2NvdW50IHRoZSBjbGllbnQgcHJvdmlzaW9ucyByZWNlaXZlcyB0aGUgZ3JhbnQaNyF0aGlzLmF1dG9fZ3JhbnRfb25fb3JnIHx8IHRoaXMuYXV0b19wcm92aXNpb25fYWNjb3VudHMamwEKKXBsYXRmb3JtX2NsaWVudC5hdXRvX2dyYW50X3JvbGVfbm90X293bmVyElNhdXRvX2dyYW50X3JvbGUgY2Fubm90IGJlIG93bmVyOyBvcmdhbml6YXRpb24gb3duZXJzaGlwIG11c3QgYmUgYXNzaWduZWQgZXhwbGljaXRseRoZdGhpcy5hdXRvX2dyYW50X3JvbGUgIT0gMWIGcHJvdG8z",[o.file_ai_stigmer_commons_apiresource_field_options,n.file_ai_stigmer_commons_apiresource_io,u.file_ai_stigmer_iam_v1_enum,W.file_buf_validate_validate,p.file_google_protobuf_timestamp]),G=(0,b.messageDesc)(g,0),Z=(0,m.fileDesc)("CiphaS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS9hcGkucHJvdG8SIGFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxIr8CCg5QbGF0Zm9ybUNsaWVudBItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEiMKBGtpbmQYAiABKAlCFbpIEnIQCg5QbGF0Zm9ybUNsaWVudBJNCghtZXRhZGF0YRgDIAEoCzIzLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZU1ldGFkYXRhQga6SAPIAQESQgoEc3BlYxgEIAEoCzI0LmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50U3BlYxJGCgZzdGF0dXMYBSABKAsyNi5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5QbGF0Zm9ybUNsaWVudFN0YXR1cyKJAQoUUGxhdGZvcm1DbGllbnRTdGF0dXMSPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdBIwCgxsYXN0X3VzZWRfYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wYgZwcm90bzM",[r.file_ai_stigmer_commons_apiresource_metadata,s.file_ai_stigmer_commons_apiresource_status,g,W.file_buf_validate_validate,p.file_google_protobuf_timestamp]),A=(0,b.messageDesc)(Z,0);var h=e.i(499328),Y=e.i(819200),y=e.i(693569);let V=(0,m.fileDesc)("CilhaS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS9pby5wcm90bxIgYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEiLAoQUGxhdGZvcm1DbGllbnRJZBIYCgV2YWx1ZRgBIAEoCUIJukgGcgQQARhAIlQKD1BsYXRmb3JtQ2xpZW50cxJBCgdlbnRyaWVzGAEgAygLMjAuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuUGxhdGZvcm1DbGllbnQiNQodTGlzdFBsYXRmb3JtQ2xpZW50c0J5T3JnSW5wdXQSFAoDb3JnGAEgASgJQge6SARyAhABIoABChxQbGF0Zm9ybUNsaWVudENyZWF0ZVJlc3BvbnNlEkkKD3BsYXRmb3JtX2NsaWVudBgBIAEoCzIwLmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50EhUKDWNsaWVudF9zZWNyZXQYAiABKAliBnByb3RvMw",[Z,W.file_buf_validate_validate]),v=(0,b.messageDesc)(V,0),S=(0,b.messageDesc)(V,2);e.s(["ListPlatformClientsByOrgInputSchema",0,S,"PlatformClientIdSchema",0,v,"file_ai_stigmer_iam_platformclient_v1_io",0,V],587751);let R=(0,m.fileDesc)("Ci5haS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS9jb21tYW5kLnByb3RvEiBhaS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MTKgBgofUGxhdGZvcm1DbGllbnRDb21tYW5kQ29udHJvbGxlchLPAQoGY3JlYXRlEjAuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuUGxhdGZvcm1DbGllbnQaPi5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5QbGF0Zm9ybUNsaWVudENyZWF0ZVJlc3BvbnNlIlPCuBhPCBgQHiIMbWV0YWRhdGEub3JnKjt1bmF1dGhvcml6ZWQgdG8gY3JlYXRlIHBsYXRmb3JtIGNsaWVudCBpbiB0aGlzIG9yZ2FuaXphdGlvbhKrAQoGdXBkYXRlEjAuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuUGxhdGZvcm1DbGllbnQaMC5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5QbGF0Zm9ybUNsaWVudCI9wrgYOQgCEBciC21ldGFkYXRhLmlkKiZ1bmF1dGhvcml6ZWQgdG8gdXBkYXRlIHBsYXRmb3JtIGNsaWVudBKxAQoGZGVsZXRlEjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlRGVsZXRlSW5wdXQaMC5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5QbGF0Zm9ybUNsaWVudCI9wrgYOQgDEBciC3Jlc291cmNlX2lkKiZ1bmF1dGhvcml6ZWQgdG8gZGVsZXRlIHBsYXRmb3JtIGNsaWVudBLCAQoMcm90YXRlU2VjcmV0EjIuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuUGxhdGZvcm1DbGllbnRJZBo+LmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50Q3JlYXRlUmVzcG9uc2UiPsK4GDoIAhAXIgV2YWx1ZSotdW5hdXRob3JpemVkIHRvIHJvdGF0ZSBwbGF0Zm9ybSBjbGllbnQgc2VjcmV0GgSg/ysXYgZwcm90bzM",[n.file_ai_stigmer_commons_apiresource_io,Y.file_ai_stigmer_commons_apiresource_rpc_service_options,y.file_ai_stigmer_commons_rpc_method_options,Z,V]),I=(0,h.serviceDesc)(R,0),B=(0,m.fileDesc)("CixhaS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS9xdWVyeS5wcm90bxIgYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEykgQKHVBsYXRmb3JtQ2xpZW50UXVlcnlDb250cm9sbGVyEp0BCgNnZXQSLS5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VJZBowLmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50IjXCuBgxCAEQFyIFdmFsdWUqJHVuYXV0aG9yaXplZCB0byB2aWV3IHBsYXRmb3JtIGNsaWVudBJ+Cg5nZXRCeVJlZmVyZW5jZRI0LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVJlZmVyZW5jZRowLmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50IgTQuBgBEsoBCglsaXN0QnlPcmcSPy5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5MaXN0UGxhdGZvcm1DbGllbnRzQnlPcmdJbnB1dBoxLmFpLnN0aWdtZXIuaWFtLnBsYXRmb3JtY2xpZW50LnYxLlBsYXRmb3JtQ2xpZW50cyJJwrgYRQgBEB4iA29yZyo6dW5hdXRob3JpemVkIHRvIGxpc3QgcGxhdGZvcm0gY2xpZW50cyBpbiB0aGlzIG9yZ2FuaXphdGlvbhoEoP8rF2IGcHJvdG8z",[n.file_ai_stigmer_commons_apiresource_io,Y.file_ai_stigmer_commons_apiresource_rpc_service_options,y.file_ai_stigmer_commons_rpc_method_options,Z,V]),X=(0,h.serviceDesc)(B,0),E=(0,m.fileDesc)("CixhaS9zdGlnbWVyL2lhbS9wbGF0Zm9ybWNsaWVudC92MS90b2tlbi5wcm90bxIgYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEiugEKFE1pbnRVc2VyVG9rZW5SZXF1ZXN0EhoKCWNsaWVudF9pZBgBIAEoCUIHukgEcgIQARIeCg1jbGllbnRfc2VjcmV0GAIgASgJQge6SARyAhABEhsKB3VzZXJfaWQYAyABKAlCCrpIB3IFEAEYgAISHAoKdXNlcl9lbWFpbBgEIAEoCUIIukgFcgMYwAISGwoJdXNlcl9uYW1lGAUgASgJQgi6SAVyAxiAAhIOCgZvcmdfaWQYBiABKAkiVQoVTWludFVzZXJUb2tlblJlc3BvbnNlEhQKDGFjY2Vzc190b2tlbhgBIAEoCRISCgp0b2tlbl90eXBlGAIgASgJEhIKCmV4cGlyZXNfaW4YAyABKAUiyQMKFU1pbnRHdWVzdFRva2VuUmVxdWVzdBIUCgNvcmcYASABKAlCB7pIBHICEAESFQoEc2x1ZxgCIAEoCUIHukgEcgIQARIXCg9ndWVzdF9jb29raWVfaWQYAyABKAkSywIKDGVtYmVkX29yaWdpbhgEIAEoCUK0ArpIsAK6AawCChNlbWJlZF9vcmlnaW4uZm9ybWF0EndlbWJlZF9vcmlnaW4gbXVzdCBiZSBlbXB0eSwgIm51bGwiLCBvciBhbiBleGFjdCB3ZWIgb3JpZ2luIGxpa2UgaHR0cHM6Ly9leGFtcGxlLmNvbSAobm8gcGF0aCwgcXVlcnksIG9yIHRyYWlsaW5nIHNsYXNoKRqbAXRoaXMgPT0gJycgfHwgdGhpcyA9PSAnbnVsbCcgfHwgdGhpcy5tYXRjaGVzKCdeaHR0cHM/Oi8vW0EtWmEtejAtOV0oW0EtWmEtejAtOS1dKltBLVphLXowLTldKT8oXFwuW0EtWmEtejAtOV0oW0EtWmEtejAtOS1dKltBLVphLXowLTldKT8pKig6WzAtOV17MSw1fSk/JCcpEhwKCmxpbmtfdG9rZW4YBSABKAlCCLpIBXIDGIABIm8KFk1pbnRHdWVzdFRva2VuUmVzcG9uc2USFAoMYWNjZXNzX3Rva2VuGAEgASgJEhIKCnRva2VuX3R5cGUYAiABKAkSEgoKZXhwaXJlc19pbhgDIAEoBRIXCg9ndWVzdF9jb29raWVfaWQYBCABKAkytAIKHVBsYXRmb3JtQ2xpZW50VG9rZW5Db250cm9sbGVyEoYBCg1taW50VXNlclRva2VuEjYuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuTWludFVzZXJUb2tlblJlcXVlc3QaNy5haS5zdGlnbWVyLmlhbS5wbGF0Zm9ybWNsaWVudC52MS5NaW50VXNlclRva2VuUmVzcG9uc2UiBMi4GAESiQEKDm1pbnRHdWVzdFRva2VuEjcuYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuTWludEd1ZXN0VG9rZW5SZXF1ZXN0GjguYWkuc3RpZ21lci5pYW0ucGxhdGZvcm1jbGllbnQudjEuTWludEd1ZXN0VG9rZW5SZXNwb25zZSIEyLgYAWIGcHJvdG8z",[y.file_ai_stigmer_commons_rpc_method_options,W.file_buf_validate_validate]),F=(0,b.messageDesc)(E,2),C=(0,h.serviceDesc)(E,0);function _(e){let a=void 0!==e.expiresAt?(0,i.toTimestamp)(e.expiresAt):void 0,t=e.environmentRefs?.map(e=>(0,l.create)(n.ApiResourceReferenceSchema,{...e,kind:53}));return Object.assign((0,l.create)(A),{apiVersion:"iam.stigmer.ai/v1",kind:"PlatformClient",metadata:Object.assign((0,l.create)(r.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(G),(0,i.stripUndefined)({clientId:e.clientId,clientSecretHash:e.clientSecretHash,secretFingerprint:e.secretFingerprint,expiresAt:a,neverExpires:e.neverExpires,autoProvisionAccounts:e.autoProvisionAccounts,autoGrantOnOrg:e.autoGrantOnOrg,autoGrantRole:e.autoGrantRole,allowedOrigins:e.allowedOrigins,environmentRefs:t}))})}e.s(["MintGuestTokenRequestSchema",0,F,"PlatformClientTokenController",0,C],290846),e.s(["PlatformClientClient",0,class{command;query;token;constructor(e){this.command=(0,c.createClient)(I,e),this.query=(0,c.createClient)(X,e),this.token=(0,c.createClient)(C,e)}async create(e){try{return await this.command.create(_(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(_(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(n.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,a.wrapError)(e)}}async rotateSecret(e){try{return await this.command.rotateSecret((0,l.create)(v,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(n.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,l.create)(n.ApiResourceReferenceSchema,{...e,kind:d.ApiResourceKind.platform_client}))}catch(e){throw(0,a.wrapError)(e)}}async listByOrg(e){try{return await this.query.listByOrg(e)}catch(e){throw(0,a.wrapError)(e)}}async mintUserToken(e){try{return await this.token.mintUserToken(e)}catch(e){throw(0,a.wrapError)(e)}}async mintGuestToken(e){try{return await this.token.mintGuestToken(e)}catch(e){throw(0,a.wrapError)(e)}}},"toPlatformClientUpdateInput",0,function(e){let a=e.metadata,c=e.spec??(0,l.create)(G);return{id:a?.id||void 0,name:a?.name??"",slug:a?.slug||void 0,org:a?.org??"",labels:a?.labels&&Object.keys(a.labels).length>0?{...a.labels}:void 0,visibility:a?.visibility||void 0,clientId:c.clientId||void 0,clientSecretHash:c.clientSecretHash||void 0,secretFingerprint:c.secretFingerprint||void 0,expiresAt:c.expiresAt?(0,t.timestampDate)(c.expiresAt):void 0,neverExpires:c.neverExpires||void 0,autoProvisionAccounts:c.autoProvisionAccounts||void 0,autoGrantOnOrg:c.autoGrantOnOrg||void 0,autoGrantRole:c.autoGrantRole||void 0,allowedOrigins:c.allowedOrigins?.length?[...c.allowedOrigins]:void 0,environmentRefs:(0,i.toResourceRefInputs)(c.environmentRefs)}}],546839)},576985,823809,e=>{"use strict";e.i(113024);var a,i,l,t,c,d,n=e.i(424407),r=e.i(304532),m=e.i(761867),b=e.i(732303);let s=(0,n.fileDesc)("CjJhaS9zdGlnbWVyL2JpbGxpbmcvdjEvbW9kZWxfcHJpY2luZ19iYXNlbGluZS5wcm90bxIVYWkuc3RpZ21lci5iaWxsaW5nLnYxIoADCgxQcmljaW5nQmxvY2sSLwoeaW5wdXRfcHJpY2VfbWljcm9zX3Blcl9taWxsaW9uGAEgASgDQge6SAQiAigAEjAKH291dHB1dF9wcmljZV9taWNyb3NfcGVyX21pbGxpb24YAiABKANCB7pIBCICKAASNQokY2FjaGVfd3JpdGVfcHJpY2VfbWljcm9zX3Blcl9taWxsaW9uGAMgASgDQge6SAQiAigAEjQKI2NhY2hlX3JlYWRfcHJpY2VfbWljcm9zX3Blcl9taWxsaW9uGAQgASgDQge6SAQiAigAEjUKJGN1cnNvcl90b2tlbl9yYXRlX21pY3Jvc19wZXJfbWlsbGlvbhgFIAEoA0IHukgEIgIoABIYCgZzb3VyY2UYBiABKAlCCLpIBXIDGIABEh0KC3NvdXJjZV9ub3RlGAcgASgJQgi6SAVyAxiAEBIwCgxlZmZlY3RpdmVfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIm8KDlByaWNpbmdWYXJpYW50EjwKB3ByaWNpbmcYASABKAsyIy5haS5zdGlnbWVyLmJpbGxpbmcudjEuUHJpY2luZ0Jsb2NrQga6SAPIAQESHwoId2lyZV9pZHMYAiADKAlCDbpICpIBByIFcgMYgAEifgoTU3VtbWFyaXphdGlvbkNvbmZpZxIiChF0cmlnZ2VyX3RocmVzaG9sZBgBIAEoBUIHukgEGgIoABIeCg10YXJnZXRfdG9rZW5zGAIgASgFQge6SAQaAigAEiMKEm1heF9zdW1tYXJ5X3Rva2VucxgDIAEoBUIHukgEGgIoACJ1ChFNb2RlbENhcGFiaWxpdGllcxIQCgh0b29sX3VzZRgBIAEoCBIOCgZ2aXNpb24YAiABKAgSEQoJc3RyZWFtaW5nGAMgASgIEhAKCHRoaW5raW5nGAQgASgIEhkKEWFkYXB0aXZlX3RoaW5raW5nGAUgASgIIvcIChRNb2RlbFByaWNpbmdCYXNlbGluZRITCgtiYXNlbGluZV9pZBgBIAEoCRIdCghtb2RlbF9pZBgCIAEoCUILukgIyAEBcgMYgAESHgoMYXBpX21vZGVsX2lkGAMgASgJQgi6SAVyAxiAARIcCghwcm92aWRlchgEIAEoCUIKukgHyAEBcgIYQBIbCgdoYXJuZXNzGAUgASgJQgq6SAfIAQFyAhhAEiEKDGRpc3BsYXlfbmFtZRgGIAEoCUILukgIyAEBcgMYgAESIwoRc2hvcnRfZGVzY3JpcHRpb24YByABKAlCCLpIBXIDGIACEjgKCnNwZWVkX3RpZXIYCCABKAlCJLpIIXIfUgdmYXN0ZXN0UgRmYXN0UghiYWxhbmNlZFIEc2xvdxI0Cgljb3N0X3RpZXIYCSABKAlCIbpIHnIcUgdlY29ub215UghzdGFuZGFyZFIHcHJlbWl1bRIQCghmZWF0dXJlZBgKIAEoCBI8CgdwcmljaW5nGAsgASgLMiMuYWkuc3RpZ21lci5iaWxsaW5nLnYxLlByaWNpbmdCbG9ja0IGukgDyAEBEloKEHByaWNpbmdfdmFyaWFudHMYDCADKAsyQC5haS5zdGlnbWVyLmJpbGxpbmcudjEuTW9kZWxQcmljaW5nQmFzZWxpbmUuUHJpY2luZ1ZhcmlhbnRzRW50cnkSHwoId2lyZV9pZHMYGCADKAlCDbpICpIBByIFcgMYgAESJgoVY29udGV4dF93aW5kb3dfdG9rZW5zGA0gASgFQge6SAQaAigAEiIKEW1heF9vdXRwdXRfdG9rZW5zGA4gASgFQge6SAQaAigAEiUKFHRva2VuX2NvdW50ZXJfbWV0aG9kGA8gASgJQge6SARyAhhAEkEKDXN1bW1hcml6YXRpb24YECABKAsyKi5haS5zdGlnbWVyLmJpbGxpbmcudjEuU3VtbWFyaXphdGlvbkNvbmZpZxI+CgxjYXBhYmlsaXRpZXMYESABKAsyKC5haS5zdGlnbWVyLmJpbGxpbmcudjEuTW9kZWxDYXBhYmlsaXRpZXMSQQoGc3RhdHVzGBIgASgOMjEuYWkuc3RpZ21lci5iaWxsaW5nLnYxLk1vZGVsUHJpY2luZ0Jhc2VsaW5lU3RhdHVzEh4KFnN1cGVyc2VkZXNfYmFzZWxpbmVfaWQYEyABKAkSEgoKZGVjaWRlZF9ieRgUIAEoCRIuCgpkZWNpZGVkX2F0GBUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIfCg1yZXZpc2lvbl9ub3RlGBYgASgJQgi6SAVyAxiACBIuCgpjcmVhdGVkX2F0GBcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBpdChRQcmljaW5nVmFyaWFudHNFbnRyeRILCgNrZXkYASABKAkSNAoFdmFsdWUYAiABKAsyJS5haS5zdGlnbWVyLmJpbGxpbmcudjEuUHJpY2luZ1ZhcmlhbnQ6AjgBKqcBChpNb2RlbFByaWNpbmdCYXNlbGluZVN0YXR1cxItCiltb2RlbF9wcmljaW5nX2Jhc2VsaW5lX3N0YXR1c191bnNwZWNpZmllZBAAEhsKF3ByaWNpbmdfYmFzZWxpbmVfYWN0aXZlEAESHwobcHJpY2luZ19iYXNlbGluZV9zdXBlcnNlZGVkEAISHAoYcHJpY2luZ19iYXNlbGluZV9yZXRpcmVkEANiBnByb3RvMw",[m.file_buf_validate_validate,b.file_google_protobuf_timestamp]),o=(0,r.messageDesc)(s,0),u=(0,r.messageDesc)(s,1),W=(0,r.messageDesc)(s,4);(a=t||(t={}))[a.model_pricing_baseline_status_unspecified=0]="model_pricing_baseline_status_unspecified",a[a.pricing_baseline_active=1]="pricing_baseline_active",a[a.pricing_baseline_superseded=2]="pricing_baseline_superseded",a[a.pricing_baseline_retired=3]="pricing_baseline_retired",e.s(["ModelPricingBaselineSchema",0,W,"ModelPricingBaselineStatus",0,t,"PricingBlockSchema",0,o,"PricingVariantSchema",0,u,"file_ai_stigmer_billing_v1_model_pricing_baseline",0,s],576985);let p=(0,n.fileDesc)("CixhaS9zdGlnbWVyL2JpbGxpbmcvdjEvcHJpY2luZ19vdmVycmlkZS5wcm90bxIVYWkuc3RpZ21lci5iaWxsaW5nLnYxItMCChlQcmljaW5nT3ZlcnJpZGVQcm92ZW5hbmNlEhcKD3NvdXJjZV9wcm92aWRlchgBIAEoCRITCgt3aW5kb3dfZnJvbRgCIAEoCRIRCgl3aW5kb3dfdG8YAyABKAkSKAogb2JzZXJ2ZWRfcmF0ZV9taWNyb3NfcGVyX21pbGxpb24YBCABKAMSNwovZWZmZWN0aXZlX3JhdGVfYXRfZGVyaXZhdGlvbl9taWNyb3NfcGVyX21pbGxpb24YBSABKAMSGgoSZGVsdGFfYmFzaXNfcG9pbnRzGAYgASgDEhUKDXNhbXBsZV90b2tlbnMYByABKAMSGgoSc2FtcGxlX2Nvc3RfbWljcm9zGAggASgDEhMKC3dvcmtmbG93X2lkGAkgASgJEi4KCmRlcml2ZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIrUEChRNb2RlbFByaWNpbmdPdmVycmlkZRITCgtvdmVycmlkZV9pZBgBIAEoCRIQCghtb2RlbF9pZBgCIAEoCRIQCghwcm92aWRlchgDIAEoCRIPCgdoYXJuZXNzGAQgASgJEg8KB3ZhcmlhbnQYBSABKAkSOwoKcmF0ZV9maWVsZBgGIAEoDjInLmFpLnN0aWdtZXIuYmlsbGluZy52MS5QcmljaW5nUmF0ZUZpZWxkEh8KF3JhdGVfbWljcm9zX3Blcl9taWxsaW9uGAcgASgDEkEKBnN0YXR1cxgIIAEoDjIxLmFpLnN0aWdtZXIuYmlsbGluZy52MS5Nb2RlbFByaWNpbmdPdmVycmlkZVN0YXR1cxJECgpwcm92ZW5hbmNlGAkgASgLMjAuYWkuc3RpZ21lci5iaWxsaW5nLnYxLlByaWNpbmdPdmVycmlkZVByb3ZlbmFuY2USMAoMZWZmZWN0aXZlX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBISCgpkZWNpZGVkX2J5GAsgASgJEi4KCmRlY2lkZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhUKDWRlY2lzaW9uX25vdGUYDSABKAkSHgoWc3VwZXJzZWRlc19vdmVycmlkZV9pZBgOIAEoCRIuCgpjcmVhdGVkX2F0GA8gASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCrOAQoaTW9kZWxQcmljaW5nT3ZlcnJpZGVTdGF0dXMSLQopbW9kZWxfcHJpY2luZ19vdmVycmlkZV9zdGF0dXNfdW5zcGVjaWZpZWQQABIkCiBwcmljaW5nX292ZXJyaWRlX3BlbmRpbmdfc2lnbm9mZhABEhsKF3ByaWNpbmdfb3ZlcnJpZGVfYWN0aXZlEAISHwobcHJpY2luZ19vdmVycmlkZV9zdXBlcnNlZGVkEAMSHQoZcHJpY2luZ19vdmVycmlkZV9yZWplY3RlZBAEKuQBChBQcmljaW5nUmF0ZUZpZWxkEiIKHnByaWNpbmdfcmF0ZV9maWVsZF91bnNwZWNpZmllZBAAEhwKGHByaWNpbmdfcmF0ZV9maWVsZF9pbnB1dBABEh0KGXByaWNpbmdfcmF0ZV9maWVsZF9vdXRwdXQQAhIiCh5wcmljaW5nX3JhdGVfZmllbGRfY2FjaGVfd3JpdGUQAxIhCh1wcmljaW5nX3JhdGVfZmllbGRfY2FjaGVfcmVhZBAEEigKJHByaWNpbmdfcmF0ZV9maWVsZF9jdXJzb3JfdG9rZW5fcmF0ZRAFYgZwcm90bzM",[b.file_google_protobuf_timestamp]);(i=c||(c={}))[i.model_pricing_override_status_unspecified=0]="model_pricing_override_status_unspecified",i[i.pricing_override_pending_signoff=1]="pricing_override_pending_signoff",i[i.pricing_override_active=2]="pricing_override_active",i[i.pricing_override_superseded=3]="pricing_override_superseded",i[i.pricing_override_rejected=4]="pricing_override_rejected",(l=d||(d={}))[l.unspecified=0]="unspecified",l[l.input=1]="input",l[l.output=2]="output",l[l.cache_write=3]="cache_write",l[l.cache_read=4]="cache_read",l[l.cursor_token_rate=5]="cursor_token_rate",e.s(["PricingRateField",0,d,"file_ai_stigmer_billing_v1_pricing_override",0,p],823809)},565507,494953,740694,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(424407),d=e.i(304532),n=e.i(937111),r=e.i(283416),m=e.i(761867),b=e.i(732303);let s=(0,c.fileDesc)("CihhaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9zcGVjLnByb3RvEh1haS5zdGlnbWVyLmJpbGxpbmcubGljZW5zZS52MSLuAwoLTGljZW5zZVNwZWMSQQoIY3VzdG9tZXIYASABKAsyJy5haS5zdGlnbWVyLnBsYXRmb3JtLnYxLkxpY2Vuc2VDdXN0b21lckIGukgDyAEBEg8KB3BsYW5faWQYAiABKAkSQgoMZW50aXRsZW1lbnRzGAMgASgLMiQuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5FbnRpdGxlbWVudHNCBrpIA8gBARJACgR0ZXJtGAQgASgOMiMuYWkuc3RpZ21lci5wbGF0Zm9ybS52MS5MaWNlbnNlVGVybUINukgKyAEBggEEEAEgABI2CgpleHBpcmVzX2F0GAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGukgDyAEBEjcKC2dyYWNlX3VudGlsGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEIGukgDyAEBEhcKBW5vdGVzGAcgASgJQgi6SAVyAxiAIDp7ukh4GnYKJGxpY2Vuc2Vfc3BlYy5ncmFjZV9ub3RfYmVmb3JlX2V4cGlyeRIpZ3JhY2VfdW50aWwgbXVzdCBub3QgYmUgYmVmb3JlIGV4cGlyZXNfYXQaI3RoaXMuZ3JhY2VfdW50aWwgPj0gdGhpcy5leHBpcmVzX2F0YgZwcm90bzM",[n.file_ai_stigmer_platform_v1_entitlement,r.file_ai_stigmer_platform_v1_license,m.file_buf_validate_validate,b.file_google_protobuf_timestamp]),o=(0,d.messageDesc)(s,0);var u=e.i(988158);let W=(0,c.fileDesc)("CiphaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9zdGF0dXMucHJvdG8SHWFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxIp8BCg1MaWNlbnNlU3RhdHVzEj8KBWF1ZGl0GGMgASgLMjAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXQSDgoGa2V5X2lkGAEgASgJEi0KCWlzc3VlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDgoGdGlja2V0GAMgASgJYgZwcm90bzM",[u.file_ai_stigmer_commons_apiresource_status,b.file_google_protobuf_timestamp]);var p=e.i(421415);let g=(0,c.fileDesc)("CidhaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9hcGkucHJvdG8SHWFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxIqECCgdMaWNlbnNlEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYmlsbGluZy5zdGlnbWVyLmFpL3YxEhwKBGtpbmQYAiABKAlCDrpIC3IJCgdMaWNlbnNlEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARI4CgRzcGVjGAQgASgLMiouYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEuTGljZW5zZVNwZWMSPAoGc3RhdHVzGAUgASgLMiwuYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEuTGljZW5zZVN0YXR1c2IGcHJvdG8z",[s,W,p.file_ai_stigmer_commons_apiresource_metadata,m.file_buf_validate_validate]),G=(0,d.messageDesc)(g,0);e.s(["LicenseSchema",0,G,"file_ai_stigmer_billing_license_v1_api",0,g],494953);var Z=e.i(499328),A=e.i(819200),h=e.i(693569);let Y=(0,c.fileDesc)("CithaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9jb21tYW5kLnByb3RvEh1haS5zdGlnbWVyLmJpbGxpbmcubGljZW5zZS52MTK6AQoYTGljZW5zZUNvbW1hbmRDb250cm9sbGVyEpcBCgZjcmVhdGUSJi5haS5zdGlnbWVyLmJpbGxpbmcubGljZW5zZS52MS5MaWNlbnNlGiYuYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEuTGljZW5zZSI9wrgYOQgqEB8qKm9ubHkgcGxhdGZvcm0gb3BlcmF0b3JzIGNhbiBpc3N1ZSBsaWNlbnNlczIHc3RpZ21lchoEoP8rSGIGcHJvdG8z",[g,A.file_ai_stigmer_commons_apiresource_rpc_service_options,h.file_ai_stigmer_commons_rpc_method_options]),y=(0,Z.serviceDesc)(Y,0),V=(0,c.fileDesc)("CiZhaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9pby5wcm90bxIdYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEiJQoJTGljZW5zZUlkEhgKBXZhbHVlGAEgASgJQgm6SAZyBBABGEAiQwoITGljZW5zZXMSNwoHZW50cmllcxgBIAMoCzImLmFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxLkxpY2Vuc2UiKAoRTGlzdExpY2Vuc2VzSW5wdXQSEwoLY3VzdG9tZXJfaWQYASABKAliBnByb3RvMw",[g,m.file_buf_validate_validate]),v=(0,d.messageDesc)(V,0),S=(0,d.messageDesc)(V,2);e.s(["LicenseIdSchema",0,v,"ListLicensesInputSchema",0,S,"file_ai_stigmer_billing_license_v1_io",0,V],740694);let R=(0,c.fileDesc)("CilhaS9zdGlnbWVyL2JpbGxpbmcvbGljZW5zZS92MS9xdWVyeS5wcm90bxIdYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEy2AIKFkxpY2Vuc2VRdWVyeUNvbnRyb2xsZXISlQEKA2dldBIoLmFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxLkxpY2Vuc2VJZBomLmFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxLkxpY2Vuc2UiPMK4GDgIKhAfKilvbmx5IHBsYXRmb3JtIG9wZXJhdG9ycyBjYW4gdmlldyBsaWNlbnNlczIHc3RpZ21lchKfAQoEbGlzdBIwLmFpLnN0aWdtZXIuYmlsbGluZy5saWNlbnNlLnYxLkxpc3RMaWNlbnNlc0lucHV0GicuYWkuc3RpZ21lci5iaWxsaW5nLmxpY2Vuc2UudjEuTGljZW5zZXMiPMK4GDgIKhAfKilvbmx5IHBsYXRmb3JtIG9wZXJhdG9ycyBjYW4gdmlldyBsaWNlbnNlczIHc3RpZ21lchoEoP8rSGIGcHJvdG8z",[g,V,A.file_ai_stigmer_commons_apiresource_rpc_service_options,h.file_ai_stigmer_commons_rpc_method_options]),I=(0,Z.serviceDesc)(R,0);function B(e){var a,t,c;let d,m=e.customer?(a=e.customer,Object.assign((0,l.create)(r.LicenseCustomerSchema),(0,i.stripUndefined)({id:a.id,displayName:a.displayName,contactEmail:a.contactEmail,organization:a.organization}))):void 0,b=e.entitlements?(t=e.entitlements,d=(0,l.create)(n.EntitlementsSchema),t.limits&&(c=t.limits,d.limits=Object.assign((0,l.create)(n.EntitlementLimitsSchema),(0,i.stripUndefined)({maxOrganizations:c.maxOrganizations,maxUsers:c.maxUsers,includedManagedOrganizations:c.includedManagedOrganizations}))),t.features&&(d.features=t.features),d):void 0,s=void 0!==e.expiresAt?(0,i.toTimestamp)(e.expiresAt):void 0,u=void 0!==e.graceUntil?(0,i.toTimestamp)(e.graceUntil):void 0;return Object.assign((0,l.create)(G),{apiVersion:"billing.stigmer.ai/v1",kind:"License",metadata:Object.assign((0,l.create)(p.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(o),(0,i.stripUndefined)({customer:m,planId:e.planId,entitlements:b,term:e.term,expiresAt:s,graceUntil:u,notes:e.notes}))})}e.s(["LicenseClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(y,e),this.query=(0,t.createClient)(I,e)}async create(e){try{return await this.command.create(B(e))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(v,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async list(e){try{return await this.query.list(e)}catch(e){throw(0,a.wrapError)(e)}}},"buildLicenseProto",0,B],565507)},456644,730578,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(424407),d=e.i(304532),n=e.i(761867);let r=(0,c.fileDesc)("CidhaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL3NwZWMucHJvdG8SHGFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEikgEKCk1lbW9yeVNwZWMSGwoHY29udGVudBgBIAEoCUIKukgHcgUQARj0AxIjChtzdWJqZWN0X2lkZW50aXR5X2FjY291bnRfaWQYAiABKAkSQgoKcHJvdmVuYW5jZRgDIAEoCzIuLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5UHJvdmVuYW5jZSJqChBNZW1vcnlQcm92ZW5hbmNlEhAKCGFnZW50X2lkGAEgASgJEhIKCnNlc3Npb25faWQYAiABKAkSGgoSYWdlbnRfZXhlY3V0aW9uX2lkGAMgASgJEhQKDHRvb2xfY2FsbF9pZBgEIAEoCWIGcHJvdG8z",[n.file_buf_validate_validate]),m=(0,d.messageDesc)(r,0),b=(0,d.messageDesc)(r,1);var s=e.i(564138),o=e.i(988158),u=e.i(732303);let W=(0,c.fileDesc)("CilhaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL3N0YXR1cy5wcm90bxIcYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MSLSAQoMTWVtb3J5U3RhdHVzEksKD2xpZmVjeWNsZV9zdGF0ZRgBIAEoDjIyLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5TGlmZWN5Y2xlU3RhdGUSNAoQc3RhdGVfY2hhbmdlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASPwoFYXVkaXQYYyABKAsyMC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdGIGcHJvdG8z",[s.file_ai_stigmer_agentic_memory_v1_enum,o.file_ai_stigmer_commons_apiresource_status,u.file_google_protobuf_timestamp]);var p=e.i(421415);let g=(0,c.fileDesc)("CiZhaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL2FwaS5wcm90bxIcYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MSKbAgoGTWVtb3J5EjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEhsKBGtpbmQYAiABKAlCDbpICnIICgZNZW1vcnkSTQoIbWV0YWRhdGEYAyABKAsyMy5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VNZXRhZGF0YUIGukgDyAEBEjYKBHNwZWMYBCABKAsyKC5haS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxLk1lbW9yeVNwZWMSOgoGc3RhdHVzGAUgASgLMiouYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5NZW1vcnlTdGF0dXNiBnByb3RvMw",[r,W,p.file_ai_stigmer_commons_apiresource_metadata,n.file_buf_validate_validate]),G=(0,d.messageDesc)(g,0);var Z=e.i(499328),A=e.i(85849);let h=(0,c.fileDesc)("CiVhaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL2lvLnByb3RvEhxhaS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxIiEKCE1lbW9yeUlkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiYAoTTGlzdE1lbW9yaWVzUmVxdWVzdBIUCgNvcmcYASABKAlCB7pIBHICEAESMwoJcGFnZV9pbmZvGAIgASgLMiAuYWkuc3RpZ21lci5jb21tb25zLnJwYy5QYWdlSW5mbyJWCgpNZW1vcnlMaXN0EhMKC3RvdGFsX2NvdW50GAEgASgFEjMKBWl0ZW1zGAIgAygLMiQuYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5NZW1vcnliBnByb3RvMw",[g,A.file_ai_stigmer_commons_rpc_pagination,n.file_buf_validate_validate]),Y=(0,d.messageDesc)(h,0),y=(0,d.messageDesc)(h,1);e.s(["ListMemoriesRequestSchema",0,y,"MemoryIdSchema",0,Y,"file_ai_stigmer_agentic_memory_v1_io",0,h],730578);var V=e.i(819200),v=e.i(693569);let S=(0,c.fileDesc)("CiphaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL2NvbW1hbmQucHJvdG8SHGFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEypQUKF01lbW9yeUNvbW1hbmRDb250cm9sbGVyEloKBmNyZWF0ZRIkLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5GiQuYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5NZW1vcnkiBNC4GAESigEKBnVwZGF0ZRIkLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5GiQuYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5NZW1vcnkiNMK4GDAIAhA5IgttZXRhZGF0YS5pZCoddW5hdXRob3JpemVkIHRvIHVwZGF0ZSBtZW1vcnkShgEKBmRlbGV0ZRImLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5SWQaJC5haS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxLk1lbW9yeSIuwrgYKggDEDkiBXZhbHVlKh11bmF1dGhvcml6ZWQgdG8gZGVsZXRlIG1lbW9yeRKIAQoHY29uZmlybRImLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5SWQaJC5haS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxLk1lbW9yeSIvwrgYKwgCEDkiBXZhbHVlKh51bmF1dGhvcml6ZWQgdG8gY29uZmlybSBtZW1vcnkShgEKBnJlamVjdBImLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5SWQaJC5haS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxLk1lbW9yeSIuwrgYKggCEDkiBXZhbHVlKh11bmF1dGhvcml6ZWQgdG8gcmVqZWN0IG1lbW9yeRoEoP8rOWIGcHJvdG8z",[g,h,V.file_ai_stigmer_commons_apiresource_rpc_service_options,v.file_ai_stigmer_commons_rpc_method_options]),R=(0,Z.serviceDesc)(S,0),I=(0,c.fileDesc)("CihhaS9zdGlnbWVyL2FnZW50aWMvbWVtb3J5L3YxL3F1ZXJ5LnByb3RvEhxhaS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxMosCChVNZW1vcnlRdWVyeUNvbnRyb2xsZXISgAEKA2dldBImLmFpLnN0aWdtZXIuYWdlbnRpYy5tZW1vcnkudjEuTWVtb3J5SWQaJC5haS5zdGlnbWVyLmFnZW50aWMubWVtb3J5LnYxLk1lbW9yeSIrwrgYJwgBEDkiBXZhbHVlKhp1bmF1dGhvcml6ZWQgdG8gZ2V0IG1lbW9yeRJpCgRsaXN0EjEuYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5MaXN0TWVtb3JpZXNSZXF1ZXN0GiguYWkuc3RpZ21lci5hZ2VudGljLm1lbW9yeS52MS5NZW1vcnlMaXN0IgTQuBgBGgSg/ys5YgZwcm90bzM",[g,h,V.file_ai_stigmer_commons_apiresource_rpc_service_options,v.file_ai_stigmer_commons_rpc_method_options]),B=(0,Z.serviceDesc)(I,0);function X(e){var a;let t=e.provenance?(a=e.provenance,Object.assign((0,l.create)(b),(0,i.stripUndefined)({agentId:a.agentId,sessionId:a.sessionId,agentExecutionId:a.agentExecutionId,toolCallId:a.toolCallId}))):void 0;return Object.assign((0,l.create)(G),{apiVersion:"agentic.stigmer.ai/v1",kind:"Memory",metadata:Object.assign((0,l.create)(p.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(m),(0,i.stripUndefined)({content:e.content,subjectIdentityAccountId:e.subjectIdentityAccountId,provenance:t}))})}e.s(["MemoryClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(R,e),this.query=(0,t.createClient)(B,e)}async create(e){try{return await this.command.create(X(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(X(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(Y,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async confirm(e){try{return await this.command.confirm((0,l.create)(Y,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async reject(e){try{return await this.command.reject((0,l.create)(Y,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(Y,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async list(e){try{return await this.query.list(e)}catch(e){throw(0,a.wrapError)(e)}}},"toMemoryUpdateInput",0,function(e){var a;let i=e.metadata,t=e.spec??(0,l.create)(m);return{id:i?.id||void 0,name:i?.name??"",slug:i?.slug||void 0,org:i?.org??"",labels:i?.labels&&Object.keys(i.labels).length>0?{...i.labels}:void 0,visibility:i?.visibility||void 0,content:t.content||void 0,subjectIdentityAccountId:t.subjectIdentityAccountId||void 0,provenance:t.provenance?{agentId:(a=t.provenance).agentId||void 0,sessionId:a.sessionId||void 0,agentExecutionId:a.agentExecutionId||void 0,toolCallId:a.toolCallId||void 0}:void 0}}],456644)},988467,40253,e=>{"use strict";var a,i,l=e.i(424407),t=e.i(304532),c=e.i(761867),d=e.i(732303);let n=(0,l.fileDesc)("CjlhaS9zdGlnbWVyL3BsYXRmb3JtL2N1cnNvcmFjY291bnQvdjEvY3Vyc29yX2FjY291bnQucHJvdG8SJGFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MSK/AwoNQ3Vyc29yQWNjb3VudBISCgphY2NvdW50X2lkGAEgASgJEiEKDGRpc3BsYXlfbmFtZRgCIAEoCUILukgIyAEBcgMYgAESFQoNYWRtaW5fYXBpX2tleRgDIAEoCRIPCgdlbmFibGVkGAQgASgIEh8KE2lzX3BsYXRmb3JtX2RlZmF1bHQYBSABKAhCAhgBEh4KB29yZ19pZHMYBiADKAlCDbpICpIBByIFcgMYgAESSgoLbWVtYmVyX2tleXMYByADKAsyNS5haS5zdGlnbWVyLnBsYXRmb3JtLmN1cnNvcmFjY291bnQudjEuQ3Vyc29yTWVtYmVyS2V5EhIKCmNyZWF0ZWRfYnkYCCABKAkSLgoKY3JlYXRlZF9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASEgoKdXBkYXRlZF9ieRgKIAEoCRIuCgp1cGRhdGVkX2F0GAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIgChhvbl9kZW1hbmRfdXNhZ2VfZGlzYWJsZWQYDCABKAgSGAoQdGVhbV9pbnZpdGVfbGluaxgNIAEoCSLhAQoPQ3Vyc29yTWVtYmVyS2V5Eg4KBmtleV9pZBgBIAEoCRIPCgdhcGlfa2V5GAIgASgJEhcKBWxhYmVsGAMgASgJQgi6SAVyAxiAARITCgtib3VuZF9lbWFpbBgEIAEoCRIVCg1ib3VuZF91c2VyX2lkGAUgASgJEhcKD2N1cnNvcl9rZXlfbmFtZRgGIAEoCRIPCgdlbmFibGVkGAcgASgIEhAKCGFkZGVkX2J5GAggASgJEiwKCGFkZGVkX2F0GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCJOChBDdXJzb3JUZWFtTWVtYmVyEg8KB3VzZXJfaWQYASABKAkSDQoFZW1haWwYAiABKAkSDAoEbmFtZRgDIAEoCRIMCgRyb2xlGAQgASgJItsBChFDdXJzb3JNZW1iZXJTcGVuZBIPCgd1c2VyX2lkGAEgASgJEg0KBWVtYWlsGAIgASgJEioKGWluY2x1ZGVkX3NwZW5kX3VzZF9taWNyb3MYAyABKANCB7pIBCICKAASKQoYb3ZlcmFnZV9zcGVuZF91c2RfbWljcm9zGAQgASgDQge6SAQiAigAEhoKEnRvdGFsX3BlcmNlbnRfdXNlZBgFIAEoARIZChFhdXRvX3BlcmNlbnRfdXNlZBgGIAEoARIYChBhcGlfcGVyY2VudF91c2VkGAcgASgBIrQCChlDdXJzb3JBY2NvdW50U3luY1NuYXBzaG90EhIKCmFjY291bnRfaWQYASABKAkSLQoJc3luY2VkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBJHCgdtZW1iZXJzGAMgAygLMjYuYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvclRlYW1NZW1iZXISRgoFc3BlbmQYBCADKAsyNy5haS5zdGlnbWVyLnBsYXRmb3JtLmN1cnNvcmFjY291bnQudjEuQ3Vyc29yTWVtYmVyU3BlbmQSLwoLY3ljbGVfc3RhcnQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnN5bmNfZXJyb3IYBiABKAliBnByb3RvMw",[c.file_buf_validate_validate,d.file_google_protobuf_timestamp]),r=(0,t.messageDesc)(n,0);e.s(["CursorAccountSchema",0,r,"file_ai_stigmer_platform_cursoraccount_v1_cursor_account",0,n],988467),e.i(113024);let m=(0,l.fileDesc)("Ci1haS9zdGlnbWVyL3BsYXRmb3JtL2N1cnNvcmFjY291bnQvdjEvaW8ucHJvdG8SJGFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MSJoChhVcHNlcnRDdXJzb3JBY2NvdW50SW5wdXQSTAoHYWNjb3VudBgBIAEoCzIzLmFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MS5DdXJzb3JBY2NvdW50Qga6SAPIAQEiRgoYRGVsZXRlQ3Vyc29yQWNjb3VudElucHV0EhsKCmFjY291bnRfaWQYASABKAlCB7pIBHICEAESDQoFZm9yY2UYAiABKAgibQoXQWRkQ3Vyc29yTWVtYmVyS2V5SW5wdXQSGwoKYWNjb3VudF9pZBgBIAEoCUIHukgEcgIQARIcCgdhcGlfa2V5GAIgASgJQgu6SAjIAQFyAxiAAhIXCgVsYWJlbBgDIAEoCUIIukgFcgMYgAEiYQoaUmVtb3ZlQ3Vyc29yTWVtYmVyS2V5SW5wdXQSGwoKYWNjb3VudF9pZBgBIAEoCUIHukgEcgIQARIXCgZrZXlfaWQYAiABKAlCB7pIBHICEAESDQoFZm9yY2UYAyABKAgiZwoeU2V0Q3Vyc29yTWVtYmVyS2V5RW5hYmxlZElucHV0EhsKCmFjY291bnRfaWQYASABKAlCB7pIBHICEAESFwoGa2V5X2lkGAIgASgJQge6SARyAhABEg8KB2VuYWJsZWQYAyABKAgiNQoWU3luY0N1cnNvckFjY291bnRJbnB1dBIbCgphY2NvdW50X2lkGAEgASgJQge6SARyAhABIhkKF0xpc3RDdXJzb3JBY2NvdW50c0lucHV0IugBChRDdXJzb3JBY2NvdW50U3VtbWFyeRJECgdhY2NvdW50GAEgASgLMjMuYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvckFjY291bnQSGQoRZW5hYmxlZF9rZXlfY291bnQYAiABKAUSMgoObGFzdF9zeW5jZWRfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhoKEnJvdXRhYmxlX2tleV9jb3VudBgEIAEoBRIfChdndWFyZF90cmlwcGVkX2tleV9jb3VudBgFIAEoBSJmChZDdXJzb3JBY2NvdW50c1Jlc3BvbnNlEkwKCGFjY291bnRzGAEgAygLMjouYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvckFjY291bnRTdW1tYXJ5IjgKGUdldEN1cnNvckFjY291bnRWaWV3SW5wdXQSGwoKYWNjb3VudF9pZBgBIAEoCUIHukgEcgIQASKmAQoUQ3Vyc29yVGVhbU1lbWJlclZpZXcSRgoGbWVtYmVyGAEgASgLMjYuYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvclRlYW1NZW1iZXISRgoFc3BlbmQYAiABKAsyNy5haS5zdGlnbWVyLnBsYXRmb3JtLmN1cnNvcmFjY291bnQudjEuQ3Vyc29yTWVtYmVyU3BlbmQiiQIKE0N1cnNvck1lbWJlcktleVZpZXcSQgoDa2V5GAEgASgLMjUuYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvck1lbWJlcktleRJJCgVzdGF0ZRgCIAEoDjI6LmFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MS5DdXJzb3JNZW1iZXJLZXlTdGF0ZRJGCgVzcGVuZBgDIAEoCzI3LmFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MS5DdXJzb3JNZW1iZXJTcGVuZBIbChN1c2FnZV9ndWFyZF90cmlwcGVkGAQgASgIIvYCChFDdXJzb3JBY2NvdW50VmlldxJECgdhY2NvdW50GAEgASgLMjMuYWkuc3RpZ21lci5wbGF0Zm9ybS5jdXJzb3JhY2NvdW50LnYxLkN1cnNvckFjY291bnQSUQoIc25hcHNob3QYAiABKAsyPy5haS5zdGlnbWVyLnBsYXRmb3JtLmN1cnNvcmFjY291bnQudjEuQ3Vyc29yQWNjb3VudFN5bmNTbmFwc2hvdBJMCglrZXlfdmlld3MYAyADKAsyOS5haS5zdGlnbWVyLnBsYXRmb3JtLmN1cnNvcmFjY291bnQudjEuQ3Vyc29yTWVtYmVyS2V5VmlldxJeChptZW1iZXJzX3dpdGhvdXRfa2V5c192aWV3cxgFIAMoCzI6LmFpLnN0aWdtZXIucGxhdGZvcm0uY3Vyc29yYWNjb3VudC52MS5DdXJzb3JUZWFtTWVtYmVyVmlld0oECAQQBVIUbWVtYmVyc193aXRob3V0X2tleXMqkgEKFEN1cnNvck1lbWJlcktleVN0YXRlEicKI2N1cnNvcl9tZW1iZXJfa2V5X3N0YXRlX3Vuc3BlY2lmaWVkEAASFQoRbWVtYmVyX2tleV9hY3RpdmUQARIcChhtZW1iZXJfa2V5X293bmVyX3JlbW92ZWQQAhIcChhtZW1iZXJfa2V5X293bmVyX3Vua25vd24QA2IGcHJvdG8z",[n,c.file_buf_validate_validate,d.file_google_protobuf_timestamp]),b=(0,t.messageDesc)(m,0),s=(0,t.messageDesc)(m,1),o=(0,t.messageDesc)(m,2),u=(0,t.messageDesc)(m,3),W=(0,t.messageDesc)(m,4),p=(0,t.messageDesc)(m,5),g=(0,t.messageDesc)(m,6),G=(0,t.messageDesc)(m,9);(a=i||(i={}))[a.cursor_member_key_state_unspecified=0]="cursor_member_key_state_unspecified",a[a.member_key_active=1]="member_key_active",a[a.member_key_owner_removed=2]="member_key_owner_removed",a[a.member_key_owner_unknown=3]="member_key_owner_unknown",e.s(["AddCursorMemberKeyInputSchema",0,o,"CursorMemberKeyState",0,i,"DeleteCursorAccountInputSchema",0,s,"GetCursorAccountViewInputSchema",0,G,"ListCursorAccountsInputSchema",0,g,"RemoveCursorMemberKeyInputSchema",0,u,"SetCursorMemberKeyEnabledInputSchema",0,W,"SyncCursorAccountInputSchema",0,p,"UpsertCursorAccountInputSchema",0,b,"file_ai_stigmer_platform_cursoraccount_v1_io",0,m],40253)},767828,369072,435653,992649,e=>{"use strict";var a,i,l=e.i(424407),t=e.i(304532),c=e.i(421415),d=e.i(988158);e.i(113024);let n=(0,l.fileDesc)("CidhaS9zdGlnbWVyL2lhbS9pbnZpdGF0aW9uL3YxL2VudW0ucHJvdG8SHGFpLnN0aWdtZXIuaWFtLmludml0YXRpb24udjEqbQoPSW52aXRhdGlvblN0YXRlEiAKHGludml0YXRpb25fc3RhdGVfdW5zcGVjaWZpZWQQABIKCgZhY3RpdmUQARILCgdleHBpcmVkEAISCwoHcmV2b2tlZBADEhIKDmZ1bGx5X3JlZGVlbWVkEARiBnByb3RvMw");(a=i||(i={}))[a.invitation_state_unspecified=0]="invitation_state_unspecified",a[a.active=1]="active",a[a.expired=2]="expired",a[a.revoked=3]="revoked",a[a.fully_redeemed=4]="fully_redeemed",e.s(["InvitationState",0,i,"file_ai_stigmer_iam_invitation_v1_enum",0,n],369072);var r=e.i(430182),m=e.i(761867),b=e.i(732303);let s=(0,l.fileDesc)("CidhaS9zdGlnbWVyL2lhbS9pbnZpdGF0aW9uL3YxL3NwZWMucHJvdG8SHGFpLnN0aWdtZXIuaWFtLmludml0YXRpb24udjEirAEKDkludml0YXRpb25TcGVjEjAKBHJvbGUYASABKA4yGi5haS5zdGlnbWVyLmlhbS52MS5JYW1Sb2xlQga6SAPIAQESFwoPbWF4X3JlZGVtcHRpb25zGAIgASgFEjYKCmV4cGlyZXNfYXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQga6SAPIAQESFwoFbGFiZWwYBCABKAlCCLpIBXIDGMgBYgZwcm90bzM",[r.file_ai_stigmer_iam_v1_enum,m.file_buf_validate_validate,b.file_google_protobuf_timestamp]),o=(0,t.messageDesc)(s,0);e.s(["InvitationSpecSchema",0,o,"file_ai_stigmer_iam_invitation_v1_spec",0,s],435653);let u=(0,l.fileDesc)("CiZhaS9zdGlnbWVyL2lhbS9pbnZpdGF0aW9uL3YxL2FwaS5wcm90bxIcYWkuc3RpZ21lci5pYW0uaW52aXRhdGlvbi52MSKnAgoKSW52aXRhdGlvbhItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEh8KBGtpbmQYAiABKAlCEbpIDnIMCgpJbnZpdGF0aW9uEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARI6CgRzcGVjGAQgASgLMiwuYWkuc3RpZ21lci5pYW0uaW52aXRhdGlvbi52MS5JbnZpdGF0aW9uU3BlYxI+CgZzdGF0dXMYBSABKAsyLi5haS5zdGlnbWVyLmlhbS5pbnZpdGF0aW9uLnYxLkludml0YXRpb25TdGF0dXMigwIKEEludml0YXRpb25TdGF0dXMSDQoFdG9rZW4YASABKAkSPAoFc3RhdGUYAiABKA4yLS5haS5zdGlnbWVyLmlhbS5pbnZpdGF0aW9uLnYxLkludml0YXRpb25TdGF0ZRIYChByZWRlbXB0aW9uX2NvdW50GAMgASgFEkcKC3JlZGVtcHRpb25zGAQgAygLMjIuYWkuc3RpZ21lci5pYW0uaW52aXRhdGlvbi52MS5JbnZpdGF0aW9uUmVkZW1wdGlvbhI/CgVhdWRpdBhjIAEoCzIwLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUF1ZGl0ImQKFEludml0YXRpb25SZWRlbXB0aW9uEhsKE2lkZW50aXR5X2FjY291bnRfaWQYASABKAkSLwoLcmVkZWVtZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wYgZwcm90bzM",[c.file_ai_stigmer_commons_apiresource_metadata,d.file_ai_stigmer_commons_apiresource_status,n,s,m.file_buf_validate_validate,b.file_google_protobuf_timestamp]),W=(0,t.messageDesc)(u,0);e.s(["InvitationSchema",0,W,"file_ai_stigmer_iam_invitation_v1_api",0,u],992649);let p=(0,l.fileDesc)("CiVhaS9zdGlnbWVyL2lhbS9pbnZpdGF0aW9uL3YxL2lvLnByb3RvEhxhaS5zdGlnbWVyLmlhbS5pbnZpdGF0aW9uLnYxIiUKDEludml0YXRpb25JZBIVCgV2YWx1ZRgBIAEoCUIGukgDyAEBIkgKC0ludml0YXRpb25zEjkKB2VudHJpZXMYASADKAsyKC5haS5zdGlnbWVyLmlhbS5pbnZpdGF0aW9uLnYxLkludml0YXRpb24iMQoZTGlzdEludml0YXRpb25zQnlPcmdJbnB1dBIUCgNvcmcYASABKAlCB7pIBHICEAEiLgoUSW52aXRhdGlvblRva2VuSW5wdXQSFgoFdG9rZW4YASABKAlCB7pIBHICEAEiLwoVUmVkZWVtSW52aXRhdGlvbklucHV0EhYKBXRva2VuGAEgASgJQge6SARyAhABIvsBChFJbnZpdGF0aW9uUHJldmlldxIZChFvcmdhbml6YXRpb25fbmFtZRgBIAEoCRIZChFvcmdhbml6YXRpb25fc2x1ZxgCIAEoCRIdChVvcmdhbml6YXRpb25fbG9nb191cmwYAyABKAkSKAoEcm9sZRgEIAEoDjIaLmFpLnN0aWdtZXIuaWFtLnYxLklhbVJvbGUSLgoKZXhwaXJlc19hdBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASDQoFbGFiZWwYBiABKAkSEAoIaXNfdmFsaWQYByABKAgSFgoOaW52YWxpZF9yZWFzb24YCCABKAliBnByb3RvMw",[u,r.file_ai_stigmer_iam_v1_enum,m.file_buf_validate_validate,b.file_google_protobuf_timestamp]),g=(0,t.messageDesc)(p,0),G=(0,t.messageDesc)(p,2),Z=(0,t.messageDesc)(p,3),A=(0,t.messageDesc)(p,4);e.s(["InvitationIdSchema",0,g,"InvitationTokenInputSchema",0,Z,"ListInvitationsByOrgInputSchema",0,G,"RedeemInvitationInputSchema",0,A,"file_ai_stigmer_iam_invitation_v1_io",0,p],767828)},266565,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(170255),d=e.i(459153),n=e.i(421415),r=e.i(554212),m=e.i(424407),b=e.i(499328),s=e.i(819200),o=e.i(693569);let u=(0,m.fileDesc)("CiRhaS9zdGlnbWVyL2lhbS90ZWFtL3YxL2NvbW1hbmQucHJvdG8SFmFpLnN0aWdtZXIuaWFtLnRlYW0udjEyvQMKFVRlYW1Db21tYW5kQ29udHJvbGxlchKOAQoGY3JlYXRlEhwuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtGhwuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtIkjCuBhECC0QHiIMbWV0YWRhdGEub3JnKjB1bmF1dGhvcml6ZWQgdG8gY3JlYXRlIHRlYW0gaW4gdGhpcyBvcmdhbml6YXRpb24SeAoGdXBkYXRlEhwuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtGhwuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtIjLCuBguCAIQGCILbWV0YWRhdGEuaWQqG3VuYXV0aG9yaXplZCB0byB1cGRhdGUgdGVhbRKSAQoGZGVsZXRlEjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlRGVsZXRlSW5wdXQaHC5haS5zdGlnbWVyLmlhbS50ZWFtLnYxLlRlYW0iMsK4GC4IAxAYIgtyZXNvdXJjZV9pZCobdW5hdXRob3JpemVkIHRvIGRlbGV0ZSB0ZWFtGgSg/ysYYgZwcm90bzM",[d.file_ai_stigmer_commons_apiresource_io,s.file_ai_stigmer_commons_apiresource_rpc_service_options,o.file_ai_stigmer_commons_rpc_method_options,r.file_ai_stigmer_iam_team_v1_api]),W=(0,b.serviceDesc)(u,0);var p=e.i(3422);let g=(0,m.fileDesc)("CiJhaS9zdGlnbWVyL2lhbS90ZWFtL3YxL3F1ZXJ5LnByb3RvEhZhaS5zdGlnbWVyLmlhbS50ZWFtLnYxMqEDChNUZWFtUXVlcnlDb250cm9sbGVyEn4KA2dldBItLmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUlkGhwuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtIirCuBgmCAEQGCIFdmFsdWUqGXVuYXV0aG9yaXplZCB0byB2aWV3IHRlYW0SagoOZ2V0QnlSZWZlcmVuY2USNC5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VSZWZlcmVuY2UaHC5haS5zdGlnbWVyLmlhbS50ZWFtLnYxLlRlYW0iBNC4GAESlwEKCWxpc3RCeU9yZxIrLmFpLnN0aWdtZXIuaWFtLnRlYW0udjEuTGlzdFRlYW1zQnlPcmdJbnB1dBodLmFpLnN0aWdtZXIuaWFtLnRlYW0udjEuVGVhbXMiPsK4GDoIARAeIgNvcmcqL3VuYXV0aG9yaXplZCB0byBsaXN0IHRlYW1zIGluIHRoaXMgb3JnYW5pemF0aW9uGgSg/ysYYgZwcm90bzM",[d.file_ai_stigmer_commons_apiresource_io,s.file_ai_stigmer_commons_apiresource_rpc_service_options,o.file_ai_stigmer_commons_rpc_method_options,r.file_ai_stigmer_iam_team_v1_api,p.file_ai_stigmer_iam_team_v1_io]),G=(0,b.serviceDesc)(g,0);var Z=e.i(11493);function A(e){return Object.assign((0,l.create)(r.TeamSchema),{apiVersion:"iam.stigmer.ai/v1",kind:"Team",metadata:Object.assign((0,l.create)(n.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(Z.TeamSpecSchema),(0,i.stripUndefined)({description:e.description}))})}e.s(["TeamClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(W,e),this.query=(0,t.createClient)(G,e)}async create(e){try{return await this.command.create(A(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(A(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(d.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(d.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,l.create)(d.ApiResourceReferenceSchema,{...e,kind:c.ApiResourceKind.team}))}catch(e){throw(0,a.wrapError)(e)}}async listByOrg(e){try{return await this.query.listByOrg(e)}catch(e){throw(0,a.wrapError)(e)}}},"toTeamUpdateInput",0,function(e){let a=e.metadata,i=e.spec??(0,l.create)(Z.TeamSpecSchema);return{id:a?.id||void 0,name:a?.name??"",slug:a?.slug||void 0,org:a?.org??"",labels:a?.labels&&Object.keys(a.labels).length>0?{...a.labels}:void 0,visibility:a?.visibility||void 0,description:i.description||void 0}}],266565)},857897,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(166492),d=e.i(754260),n=e.i(297825),r=e.i(468296),m=e.i(170255),b=e.i(459153),s=e.i(421415);function o(e){var a,t;let d=Object.assign((0,l.create)(r.ChannelAppSpecSchema),(0,i.stripUndefined)({}));return e.slack?d.providerConfig={case:"slack",value:(a=e.slack,Object.assign((0,l.create)(r.SlackChannelAppConfigSchema),(0,i.stripUndefined)({clientId:a.clientId,clientSecret:a.clientSecret,signingSecret:a.signingSecret})))}:e.whatsapp&&(d.providerConfig={case:"whatsapp",value:(t=e.whatsapp,Object.assign((0,l.create)(r.WhatsAppChannelAppConfigSchema),(0,i.stripUndefined)({appId:t.appId,appSecret:t.appSecret,accessToken:t.accessToken,verifyToken:t.verifyToken})))}),Object.assign((0,l.create)(c.ChannelAppSchema),{apiVersion:"agentic.stigmer.ai/v1",kind:"ChannelApp",metadata:Object.assign((0,l.create)(s.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:d})}e.s(["ChannelAppClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(d.ChannelAppCommandController,e),this.query=(0,t.createClient)(n.ChannelAppQueryController,e)}async apply(e){try{return await this.command.apply(o(e))}catch(e){throw(0,a.wrapError)(e)}}async create(e){try{return await this.command.create(o(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(o(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(b.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(b.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,l.create)(b.ApiResourceReferenceSchema,{...e,kind:m.ApiResourceKind.channel_app}))}catch(e){throw(0,a.wrapError)(e)}}async listByOrg(e){try{return await this.query.listByOrg(e)}catch(e){throw(0,a.wrapError)(e)}}},"toChannelAppUpdateInput",0,function(e){var a,i;let t=e.metadata,c=e.spec??(0,l.create)(r.ChannelAppSpecSchema);return{id:t?.id||void 0,name:t?.name??"",slug:t?.slug||void 0,org:t?.org??"",labels:t?.labels&&Object.keys(t.labels).length>0?{...t.labels}:void 0,visibility:t?.visibility||void 0,slack:c.providerConfig?.case==="slack"?{clientId:(a=c.providerConfig.value).clientId||void 0,clientSecret:a.clientSecret||void 0,signingSecret:a.signingSecret||void 0}:void 0,whatsapp:c.providerConfig?.case==="whatsapp"?{appId:(i=c.providerConfig.value).appId||void 0,appSecret:i.appSecret||void 0,accessToken:i.accessToken||void 0,verifyToken:i.verifyToken||void 0}:void 0}}])},34442,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(170255),d=e.i(459153),n=e.i(421415),r=e.i(741787),m=e.i(978477),b=e.i(791367),s=e.i(437241);function o(e){return Object.assign((0,l.create)(r.OAuthAppSchema),{apiVersion:"iam.stigmer.ai/v1",kind:"OAuthApp",metadata:Object.assign((0,l.create)(n.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(s.OAuthAppSpecSchema),(0,i.stripUndefined)({provider:e.provider,clientId:e.clientId,clientSecret:e.clientSecret,authorizationUrl:e.authorizationUrl,tokenUrl:e.tokenUrl,scopes:e.scopes,userinfoUrl:e.userinfoUrl,scopeParameterName:e.scopeParameterName,vendorApprovalStatus:e.vendorApprovalStatus,vendorApprovalDocsUrl:e.vendorApprovalDocsUrl,tokenEndpointAuthMethod:e.tokenEndpointAuthMethod}))})}e.s(["OAuthAppClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(m.OAuthAppCommandController,e),this.query=(0,t.createClient)(b.OAuthAppQueryController,e)}async apply(e){try{return await this.command.apply(o(e))}catch(e){throw(0,a.wrapError)(e)}}async create(e){try{return await this.command.create(o(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(o(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(d.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(d.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,l.create)(d.ApiResourceReferenceSchema,{...e,kind:c.ApiResourceKind.oauth_app}))}catch(e){throw(0,a.wrapError)(e)}}async listByOrg(e){try{return await this.query.listByOrg(e)}catch(e){throw(0,a.wrapError)(e)}}},"toOAuthAppUpdateInput",0,function(e){let a=e.metadata,i=e.spec??(0,l.create)(s.OAuthAppSpecSchema);return{id:a?.id||void 0,name:a?.name??"",slug:a?.slug||void 0,org:a?.org??"",labels:a?.labels&&Object.keys(a.labels).length>0?{...a.labels}:void 0,visibility:a?.visibility||void 0,provider:i.provider||void 0,clientId:i.clientId||void 0,clientSecret:i.clientSecret||void 0,authorizationUrl:i.authorizationUrl||void 0,tokenUrl:i.tokenUrl||void 0,scopes:i.scopes?.length?[...i.scopes]:void 0,userinfoUrl:i.userinfoUrl||void 0,scopeParameterName:i.scopeParameterName||void 0,vendorApprovalStatus:i.vendorApprovalStatus||void 0,vendorApprovalDocsUrl:i.vendorApprovalDocsUrl||void 0,tokenEndpointAuthMethod:i.tokenEndpointAuthMethod||void 0}}])},353978,e=>{"use strict";var a=e.i(910304),i=e.i(292558),l=e.i(891287),t=e.i(338300),c=e.i(170255),d=e.i(459153),n=e.i(421415),r=e.i(128486),m=e.i(739806),b=e.i(955598),s=e.i(122244);function o(e){return Object.assign((0,l.create)(r.IdentityProviderSchema),{apiVersion:"iam.stigmer.ai/v1",kind:"IdentityProvider",metadata:Object.assign((0,l.create)(n.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,l.create)(s.IdentityProviderSpecSchema),(0,i.stripUndefined)({displayName:e.displayName,jwksUri:e.jwksUri,allowedIssuers:e.allowedIssuers,expectedAudience:e.expectedAudience,rateLimitBudget:e.rateLimitBudget,userinfoEndpoint:e.userinfoEndpoint,isSsoProvider:e.isSsoProvider,oidcClientId:e.oidcClientId,autoProvisionAccounts:e.autoProvisionAccounts,autoGrantOnOrg:e.autoGrantOnOrg,autoGrantRole:e.autoGrantRole,tenantOrgClaim:e.tenantOrgClaim}))})}e.s(["IdentityProviderClient",0,class{command;query;constructor(e){this.command=(0,t.createClient)(m.IdentityProviderCommandController,e),this.query=(0,t.createClient)(b.IdentityProviderQueryController,e)}async apply(e){try{return await this.command.apply(o(e))}catch(e){throw(0,a.wrapError)(e)}}async create(e){try{return await this.command.create(o(e))}catch(e){throw(0,a.wrapError)(e)}}async update(e){try{return await this.command.update(o(e))}catch(e){throw(0,a.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,l.create)(d.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,a.wrapError)(e)}}async get(e){try{return await this.query.get((0,l.create)(d.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,a.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,l.create)(d.ApiResourceReferenceSchema,{...e,kind:c.ApiResourceKind.identity_provider}))}catch(e){throw(0,a.wrapError)(e)}}async listByOrg(e){try{return await this.query.listByOrg(e)}catch(e){throw(0,a.wrapError)(e)}}async getSsoProvider(e){try{return await this.query.getSsoProvider(e)}catch(e){throw(0,a.wrapError)(e)}}},"toIdentityProviderUpdateInput",0,function(e){let a=e.metadata,i=e.spec??(0,l.create)(s.IdentityProviderSpecSchema);return{id:a?.id||void 0,name:a?.name??"",slug:a?.slug||void 0,org:a?.org??"",labels:a?.labels&&Object.keys(a.labels).length>0?{...a.labels}:void 0,visibility:a?.visibility||void 0,displayName:i.displayName||void 0,jwksUri:i.jwksUri||void 0,allowedIssuers:i.allowedIssuers?.length?[...i.allowedIssuers]:void 0,expectedAudience:i.expectedAudience||void 0,rateLimitBudget:i.rateLimitBudget||void 0,userinfoEndpoint:i.userinfoEndpoint||void 0,isSsoProvider:i.isSsoProvider||void 0,oidcClientId:i.oidcClientId||void 0,autoProvisionAccounts:i.autoProvisionAccounts||void 0,autoGrantOnOrg:i.autoGrantOnOrg||void 0,autoGrantRole:i.autoGrantRole||void 0,tenantOrgClaim:i.tenantOrgClaim||void 0}}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23280,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),o=e.i(750567),l=e.i(586108),d=e.i(326283),g=e.i(379410);function c({org:e,onEdit:i,onRefetchRef:a,className:l}){let{identityProviders:d,isLoading:g,error:m,refetch:x}=(0,o.useIdentityProviderList)(e),[p,h]=(0,s.useState)(null);return(a&&a(x),g)?(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",l),"aria-busy":"true","aria-label":"Loading identity providers",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))}):m?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-destructive stg:text-xs",l),role:"alert",children:(0,n.getUserMessage)(m)}):0===d.length?(0,t.jsx)("p",{className:(0,r.cn)("stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",l),children:"No identity providers configured."}):(0,t.jsx)("div",{className:(0,r.cn)("stg:space-y-2",l),role:"list","aria-label":"Identity providers",children:d.map(e=>{let s=e.metadata?.id??"";return(0,t.jsx)(u,{identityProvider:e,isConfirming:p===s,onEdit:i?()=>i(e):void 0,onConfirmDelete:()=>h(s),onCancelDelete:()=>h(null),onDeleted:()=>{h(null),x()}},s)})})}function u({identityProvider:e,isConfirming:o,onEdit:c,onConfirmDelete:h,onCancelDelete:b,onDeleted:f}){let{deleteProvider:v,isDeleting:j,error:y}=function(){let e=(0,l.useStigmer)(),[t,r]=(0,s.useState)(!1),[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(()=>i(null),[]);return{deleteProvider:(0,s.useCallback)(async t=>{r(!0),i(null);try{return await e.identityProvider.delete(t)}catch(e){throw i((0,d.toError)(e)),e}finally{r(!1)}},[e]),isDeleting:t,error:n,clearError:a}}(),k=e.metadata?.id??"",C=e.spec,w=C?.displayName||e.metadata?.name||"Unnamed provider",N=e.metadata?.slug,S=C?.isSsoProvider,I=!S&&C?.autoProvisionAccounts,A=e.status?.audit?.specAudit?.createdAt,O=(0,s.useCallback)(async()=>{try{await v({resourceId:k}),f()}catch{}},[k,v,f]);return o?(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}),"?"]}),y&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-destructive",children:(0,n.getUserMessage)(y)})]}),(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:O,disabled:j,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:[j&&(0,t.jsx)(g.SpinnerIcon,{size:12}),"Delete"]}),(0,t.jsx)("button",{type:"button",onClick:b,disabled:j,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)(m,{}),(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}),N&&(0,t.jsx)("span",{className:"stg:block stg:text-xs stg:text-muted-foreground stg:font-mono",children:N})]}),(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:[S&&(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:"SSO"}),I&&(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"}),A&&(0,t.jsxs)(a.Tooltip,{children:[(0,t.jsx)(a.TooltipTrigger,{render:(0,t.jsx)("time",{dateTime:(0,i.timestampDate)(A).toISOString()}),children:(0,i.timestampDate)(A).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}),(0,t.jsx)(a.TooltipContent,{side:"top",children:`Created ${(0,i.timestampDate)(A).toISOString()}`})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:shrink-0 stg:items-center stg:gap-1",children:[c&&(0,t.jsx)("button",{type:"button",onClick:c,"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)(x,{})}),(0,t.jsx)("button",{type:"button",onClick:h,"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)(p,{})})]})]})}function m(){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",className:"stg:shrink-0 stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M8 1.5L2 4v4c0 3.5 2.5 5.5 6 7 3.5-1.5 6-3.5 6-7V4L8 1.5z"})})}function x(){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 p(){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 h=e.i(869803),b=e.i(430182);let f=[{id:"auth0",label:"Auth0",description:"Auth0 by Okta — universal login and identity platform",variables:[{key:"tenant",label:"Tenant name",placeholder:"acme-prod",hint:"The subdomain from your Auth0 tenant URL",type:"text"},{key:"region",label:"Region",placeholder:"us",type:"select",options:[{value:"us",label:"US"},{value:"eu",label:"EU"},{value:"au",label:"AU"},{value:"jp",label:"JP"}]}],buildConfig(e){let{tenant:t,region:s}=e;if(!t||!s)return null;let r=`${t}.${s}.auth0.com`,n=`https://${r}/`;return{issuer:n,jwksUri:`https://${r}/.well-known/jwks.json`,allowedIssuers:[n],userinfoEndpoint:`https://${r}/userinfo`}}},{id:"okta",label:"Okta",description:"Okta — enterprise identity and access management",variables:[{key:"domain",label:"Okta domain",placeholder:"acme.okta.com",hint:"Your Okta organization domain (e.g., acme.okta.com)",type:"text"}],buildConfig(e){let{domain:t}=e;if(!t)return null;let s=`https://${t}/oauth2/default`;return{issuer:s,jwksUri:`${s}/v1/keys`,allowedIssuers:[s],userinfoEndpoint:`${s}/v1/userinfo`}}},{id:"google",label:"Google",description:"Google Identity — Workspace and consumer accounts",variables:[],buildConfig:()=>({issuer:"https://accounts.google.com",jwksUri:"https://www.googleapis.com/oauth2/v3/certs",allowedIssuers:["https://accounts.google.com"],userinfoEndpoint:"https://openidconnect.googleapis.com/v1/userinfo"})},{id:"azure-ad",label:"Microsoft Entra ID",description:"Microsoft Entra ID (formerly Azure AD) — enterprise identity",variables:[{key:"tenantId",label:"Tenant ID",placeholder:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",hint:"Your Entra ID / Azure AD tenant identifier (GUID)",type:"text"}],buildConfig(e){let{tenantId:t}=e;if(!t)return null;let s=`https://login.microsoftonline.com/${t}/v2.0`;return{issuer:s,jwksUri:`https://login.microsoftonline.com/${t}/discovery/v2.0/keys`,allowedIssuers:[s],userinfoEndpoint:"https://graph.microsoft.com/oidc/userinfo"}}},{id:"aws-cognito",label:"AWS Cognito",description:"Amazon Cognito — user pools for AWS applications",variables:[{key:"region",label:"AWS region",placeholder:"us-east-1",hint:"The AWS region of your Cognito user pool",type:"text"},{key:"userPoolId",label:"User Pool ID",placeholder:"us-east-1_aBcDeFgHi",hint:"Your Cognito user pool identifier",type:"text"}],buildConfig(e){let{region:t,userPoolId:s}=e;if(!t||!s)return null;let r=`https://cognito-idp.${t}.amazonaws.com/${s}`;return{issuer:r,jwksUri:`${r}/.well-known/jwks.json`,allowedIssuers:[r]}}},{id:"custom",label:"Custom OIDC",description:"Any OpenID Connect compliant identity provider",variables:[{key:"issuerUrl",label:"Issuer URL",placeholder:"https://idp.example.com",hint:"The OIDC issuer URL — configuration will be auto-discovered",type:"text"}],buildConfig:()=>null}];function v({onSelect:e,className:s}){return(0,t.jsx)("div",{className:(0,r.cn)("stg:grid stg:grid-cols-2 stg:gap-2 stg:sm:grid-cols-3",s),role:"listbox","aria-label":"Choose an identity provider",children:f.map(s=>(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":!1,onClick:()=>e(s),className:(0,r.cn)("stg:flex stg:flex-col stg:items-start stg:gap-2 stg:rounded-lg stg:px-3 stg:py-3 stg:text-left stg:transition-colors","stg:border stg:hover:border-primary/60 stg:hover:bg-accent-hover","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","custom"===s.id?"stg:border-dashed stg:border-border":"stg:border-border-muted"),children:[(0,t.jsx)(j,{presetId:s.id}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("span",{className:"stg:block stg:text-sm stg:font-medium stg:text-foreground",children:s.label}),(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:leading-tight stg:text-muted-foreground",children:s.description})]})]},s.id))})}function j({presetId:e}){let s=y[e]??k;return(0,t.jsx)("span",{className:"stg:flex stg:size-8 stg:items-center stg:justify-center stg:rounded-lg stg:bg-muted",children:(0,t.jsx)(s,{})})}let y={auth0:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("rect",{x:"3.5",y:"7",width:"9",height:"7",rx:"1.5"}),(0,t.jsx)("path",{d:"M5.5 7V5a2.5 2.5 0 0 1 5 0v2"})]})},okta:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"5.5",cy:"10",r:"3"}),(0,t.jsx)("path",{d:"M8 8l5.5-5.5M11 5l2-0.5L13.5 2.5"})]})},google:function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M2 8h12M8 2c2 2 2.5 4 2.5 6S10 14 8 14c-2-2-2.5-4-2.5-6S6 2 8 2z"})]})},"azure-ad":function(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M4 12.5h8.5a3 3 0 0 0 0-6 .5.5 0 0 1-.5-.4A4.5 4.5 0 0 0 3.5 8v.5a3 3 0 0 0 .5 6z"})})},"aws-cognito":function(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:[(0,t.jsx)("circle",{cx:"6",cy:"5",r:"2.5"}),(0,t.jsx)("path",{d:"M1.5 14c0-2.5 2-4.5 4.5-4.5S10.5 11.5 10.5 14"}),(0,t.jsx)("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),(0,t.jsx)("path",{d:"M14.5 14c0-1.5-1-3-2.5-3.5"})]})},custom:function(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("path",{d:"M5 4.5L1.5 8 5 11.5M11 4.5l3.5 3.5-3.5 3.5M9 2.5l-2 11"})})}};function k(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"stg:text-muted-foreground",children:(0,t.jsx)("circle",{cx:"8",cy:"8",r:"6"})})}async function C(e){let t,s,r=e.replace(/\/+$/,""),n=`${r}/.well-known/openid-configuration`;try{t=await fetch(n,{mode:"cors"})}catch{throw Error("Could not reach the issuer's discovery endpoint. The provider may not allow browser requests (CORS). You can enter the configuration manually instead.")}if(!t.ok)throw Error(`Discovery endpoint returned HTTP ${t.status}. Verify the issuer URL is correct.`);try{s=await t.json()}catch{throw Error("Discovery endpoint returned invalid JSON. Verify the issuer URL points to a valid OIDC provider.")}if("string"!=typeof s.issuer||"string"!=typeof s.jwks_uri)throw Error("Discovery document is missing required fields (issuer, jwks_uri). This may not be a compliant OpenID Connect provider.");return{issuer:s.issuer,jwksUri:s.jwks_uri,userinfoEndpoint:"string"==typeof s.userinfo_endpoint?s.userinfo_endpoint:void 0}}function w({org:e,onCreated:n,onCancel:i,className:a}){let{create:o,isCreating:g,error:c,clearError:u}=function(){let e=(0,l.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.identityProvider.create(t)}catch(e){throw i((0,d.toError)(e)),e}finally{r(!1)}},[e]),isCreating:t,error:n,clearError:a}}(),{discover:m,isDiscovering:x,error:p}=function(){let[e,t]=(0,s.useState)(!1),[r,n]=(0,s.useState)(null);return{discover:(0,s.useCallback)(async e=>{t(!0),n(null);try{return await C(e)}catch(e){return n(e instanceof Error?e:Error(String(e))),null}finally{t(!1)}},[]),isDiscovering:e,error:r}}(),[h,f]=(0,s.useState)("pick"),[j,y]=(0,s.useState)(null),[k,N]=(0,s.useState)({}),[R,D]=(0,s.useState)(""),[U,E]=(0,s.useState)(""),[L,T]=(0,s.useState)(""),[$,_]=(0,s.useState)(""),[z,G]=(0,s.useState)(""),[M,W]=(0,s.useState)(!1),[B,J]=(0,s.useState)(""),[q,F]=(0,s.useState)(!1),[V,K]=(0,s.useState)(!1),[Y,H]=(0,s.useState)(!1),[Q,X]=(0,s.useState)(b.IamRole.iam_role_unspecified),[Z,ee]=(0,s.useState)(""),[et,es]=(0,s.useState)(null),er=(0,s.useCallback)(e=>{y(e),N(Object.fromEntries(e.variables.map(e=>[e.key,e.options?.[0]?.value??""]))),D(""),E(""),f("configure")},[]),en=(0,s.useCallback)(()=>{f("pick"),y(null)},[]),ei=(0,s.useCallback)(e=>{T(e?.jwksUri??""),_(e?.allowedIssuers.join(", ")??""),G(e?.userinfoEndpoint??""),W(!1),J(""),F(!e)},[]),ea=(0,s.useCallback)(async()=>{if(j){if("custom"===j.id){let e=await m(k.issuerUrl??"");ei(e?{...e,allowedIssuers:[e.issuer]}:null)}else ei(j.buildConfig(k));f("review")}},[j,k,m,ei]),eo=(0,s.useCallback)(()=>{f("configure"),u()},[u]),el=(0,s.useCallback)(e=>{K(e),e||(H(!1),X(b.IamRole.iam_role_unspecified),ee(""))},[]),ed=(0,s.useCallback)(e=>{H(e),e&&K(!0),e||(X(b.IamRole.iam_role_unspecified),ee(""))},[]),eg=(0,s.useCallback)(async t=>{t.preventDefault(),u();try{let t=await o({name:R.trim(),org:e,displayName:R.trim(),jwksUri:L.trim(),allowedIssuers:$.split(",").map(e=>e.trim()).filter(Boolean),expectedAudience:U.trim(),userinfoEndpoint:z.trim()||void 0,...M&&{isSsoProvider:!0,oidcClientId:B.trim()},...!M&&{autoProvisionAccounts:V,autoGrantOnOrg:Y,...Y&&Q!==b.IamRole.iam_role_unspecified&&{autoGrantRole:Q},...Y&&Z.trim()&&{tenantOrgClaim:Z.trim()}}});es(t),f("success")}catch{}},[R,e,L,$,U,z,M,B,V,Y,Q,Z,o,u]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-4",a),children:[(0,t.jsx)(S,{current:h}),"pick"===h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:"Choose your identity provider to get started. Known providers will have their OIDC configuration auto-populated."}),(0,t.jsx)(v,{onSelect:er}),i&&(0,t.jsx)("div",{className:"stg:pt-1",children:(0,t.jsx)(P,{onClick:i})})]}),"configure"===h&&j&&(0,t.jsx)(I,{preset:j,vars:k,onVarChange:(e,t)=>N(s=>({...s,[e]:t})),name:R,onNameChange:D,audience:U,onAudienceChange:E,isLoading:x,discoveryError:p,onBack:en,onContinue:ea,onCancel:i}),"review"===h&&(0,t.jsx)(A,{discoveryFailed:q,jwksUri:L,onJwksUriChange:T,issuers:$,onIssuersChange:_,userinfoEndpoint:z,onUserinfoEndpointChange:G,isSso:M,onIsSsoChange:W,oidcClientId:B,onOidcClientIdChange:J,autoProvision:V,onAutoProvisionChange:el,autoGrant:Y,onAutoGrantChange:ed,autoGrantRole:Q,onAutoGrantRoleChange:X,tenantOrgClaim:Z,onTenantOrgClaimChange:ee,isCreating:g,createError:c,onBack:eo,onSubmit:eg,onCancel:i}),"success"===h&&et&&(0,t.jsx)(O,{identityProvider:et,org:e,isSso:M,autoProvision:V,autoGrant:Y,autoGrantRole:Q,onDone:()=>n?.(et)})]})}let N=[{key:"pick",label:"Provider"},{key:"configure",label:"Configure"},{key:"review",label:"Review"},{key:"success",label:"Done"}];function S({current:e}){let s=N.findIndex(t=>t.key===e);return(0,t.jsx)("nav",{"aria-label":"Wizard progress",className:"stg:flex stg:items-center stg:gap-1.5",children:N.map((e,n)=>{let i=n<s?"done":n===s?"active":"upcoming";return(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1.5",children:[n>0&&(0,t.jsx)("span",{className:(0,r.cn)("stg:h-px stg:w-4","upcoming"===i?"stg:bg-border":"stg:bg-primary-subtle")}),(0,t.jsx)("span",{className:(0,r.cn)("stg:text-[0.65rem] stg:font-medium","active"===i?"stg:text-primary":"done"===i?"stg:text-muted-foreground":"stg:text-muted-foreground-faint"),children:e.label})]},e.key)})})}function I({preset:e,vars:i,onVarChange:a,name:o,onNameChange:l,audience:d,onAudienceChange:c,isLoading:u,discoveryError:m,onBack:x,onContinue:p,onCancel:h}){let b=(0,s.useId)(),f=e.variables.every(e=>""!==(i[e.key]??"").trim())&&""!==o.trim()&&""!==d.trim()&&!u;return(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:e.variables.length>0?`Enter your ${e.label} details to auto-populate the OIDC configuration.`:`${e.label} configuration is fully automatic — just provide a name and audience.`}),e.variables.map(e=>(0,t.jsx)(R,{id:`stgm-idp-var-${e.key}`,label:e.label,value:i[e.key]??"",onChange:t=>a(e.key,t),placeholder:e.placeholder,hint:e.hint,disabled:u,type:e.type,options:e.options},e.key)),(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)(R,{id:`${b}-name`,label:"Display name",value:o,onChange:l,placeholder:"e.g., Acme Corp SSO",hint:"Human-readable name shown in the UI",disabled:u}),(0,t.jsx)(R,{id:`${b}-audience`,label:"Expected audience",value:d,onChange:c,placeholder:"stigmer-api",hint:"The aud claim value expected in JWTs from this provider",disabled:u}),m&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(m)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:p,disabled:!f,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)(g.SpinnerIcon,{size:12}),"Continue"]}),(0,t.jsx)(L,{onClick:x,disabled:u,children:"Back"}),h&&(0,t.jsx)(P,{onClick:h,disabled:u})]})]})}function A({discoveryFailed:e,jwksUri:i,onJwksUriChange:a,issuers:o,onIssuersChange:l,userinfoEndpoint:d,onUserinfoEndpointChange:c,isSso:u,onIsSsoChange:m,oidcClientId:x,onOidcClientIdChange:p,autoProvision:h,onAutoProvisionChange:b,autoGrant:f,onAutoGrantChange:v,autoGrantRole:j,onAutoGrantRoleChange:y,tenantOrgClaim:k,onTenantOrgClaimChange:C,isCreating:w,createError:N,onBack:S,onSubmit:I,onCancel:O}){let D=(0,s.useId)(),T=""!==i.trim()&&""!==o.trim()&&(!u||""!==x.trim())&&!w;return(0,t.jsxs)("form",{onSubmit:I,className:"stg:space-y-3",children:[e&&(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-warning/30 stg:bg-warning/5 stg:px-3 stg:py-2 stg:text-xs stg:text-warning-foreground",role:"alert",children:"Auto-discovery could not reach the provider. Enter the configuration manually below."}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:text-xs",children:"Review the OIDC configuration. All fields are editable."}),(0,t.jsx)(R,{id:`${D}-jwks`,label:"JWKS URI",value:i,onChange:a,placeholder:"https://example.com/.well-known/jwks.json",disabled:w,required:!0}),(0,t.jsx)(R,{id:`${D}-issuers`,label:"Allowed issuers",value:o,onChange:l,placeholder:"https://issuer.example.com/",hint:"Comma-separated list of trusted JWT issuer values",disabled:w,required:!0}),(0,t.jsx)(R,{id:`${D}-userinfo`,label:"Userinfo endpoint",value:d,onChange:c,placeholder:"https://example.com/userinfo",hint:"Optional — used to fetch user profile data during token exchange",disabled:w}),(0,t.jsx)(E,{checked:u,onChange:m,label:"SSO provider",disabled:w}),u&&(0,t.jsx)(R,{id:`${D}-client-id`,label:"OIDC client ID",value:x,onChange:p,placeholder:"public-client-id",hint:"Client ID for the PKCE-based Authorization Code flow",disabled:w,required:!0}),(0,t.jsx)(U,{isSso:u,autoProvision:h,onAutoProvisionChange:b,autoGrant:f,onAutoGrantChange:v,autoGrantRole:j,onAutoGrantRoleChange:y,tenantOrgClaim:k,onTenantOrgClaimChange:C,disabled:w}),N&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(N)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:!T,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:[w&&(0,t.jsx)(g.SpinnerIcon,{size:12}),"Create identity provider"]}),(0,t.jsx)(L,{onClick:S,disabled:w,children:"Back"}),O&&(0,t.jsx)(P,{onClick:O,disabled:w})]})]})}function O({identityProvider:e,org:s,isSso:n,autoProvision:i,autoGrant:a,autoGrantRole:o,onDone:l}){let d=e.spec?.displayName||e.metadata?.name||"Identity provider",g=o!==b.IamRole.iam_role_unspecified?b.IamRole[o]:"viewer";return(0,t.jsxs)("div",{className:"stg:space-y-4",children:[(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-primary/30 stg:bg-primary-subtle stg:px-3 stg:py-2.5",children:(0,t.jsxs)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:[d," created successfully"]})}),(0,t.jsxs)("div",{className:"stg:space-y-2",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"What happens next"}),n?(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["Users can sign in via SSO at"," ",(0,t.jsxs)("span",{className:"stg:font-mono stg:text-foreground",children:["/login?org=",s]}),". Accounts are auto-provisioned and granted the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on this organization."]}):i&&a?(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["Users authenticating with JWTs from this provider will be automatically provisioned and granted the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:g})," role on this organization. No additional setup is required."]}):i?(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Accounts are auto-provisioned on first authentication, but no organization role is granted automatically. Use the Members page to grant access."}):(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"The trust relationship is configured. Accounts must be created manually before users can authenticate."}),(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"To verify the setup, have a user authenticate with a JWT from this provider and confirm they can access the organization's resources."})]}),(0,t.jsx)("button",{type:"button",onClick:l,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"),children:"Done"})]})}function R({id:e,label:s,value:n,onChange:i,placeholder:a,hint:o,disabled:l,required:d,type:g="text",options:c}){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}),"select"===g&&c?(0,t.jsx)("select",{id:e,value:n,onChange:e=>i(e.target.value),disabled:l,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:c.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}):(0,t.jsx)("input",{id:e,type:"text",value:n,onChange:e=>i(e.target.value),placeholder:a,disabled:l,required:d,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")}),o&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:o})]})}let D=[{value:String(b.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(b.IamRole.viewer),label:"Viewer"},{value:String(b.IamRole.member),label:"Member"},{value:String(b.IamRole.admin),label:"Admin"}];function U({isSso:e,autoProvision:n,onAutoProvisionChange:i,autoGrant:a,onAutoGrantChange:o,autoGrantRole:l,onAutoGrantRoleChange:d,tenantOrgClaim:g,onTenantOrgClaimChange:c,disabled:u}){let m=(0,s.useId)();return e?(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:bg-muted-faint stg:px-3 stg:py-2",children:(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["SSO providers automatically provision accounts and grant the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on the owning organization. JIT provisioning settings are not applicable."]})}):(0,t.jsxs)("fieldset",{className:(0,r.cn)(h.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 authenticating with this provider."}),(0,t.jsx)(E,{checked:n,onChange:i,label:"Auto-provision accounts",hint:"Create a federated account automatically on first authentication",disabled:u}),(0,t.jsx)(E,{checked:a,onChange:o,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:u||!n}),a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R,{id:`${m}-grant-role`,label:"Auto-grant role",value:String(l),onChange:e=>d(Number(e)),placeholder:"",hint:"Role granted automatically — org admins can upgrade later",disabled:u,type:"select",options:D}),(0,t.jsx)(R,{id:`${m}-tenant-claim`,label:"Tenant org claim",value:g,onChange:c,placeholder:"e.g., org_id",hint:"JWT claim name that maps to a platform-managed organization (max 256 chars)",disabled:u})]})]})}function E({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 L({onClick:e,disabled:s,children:n}){return(0,t.jsx)("button",{type:"button",onClick:e,disabled:s,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:n})}function P({onClick:e,disabled:s}){return(0,t.jsx)(L,{onClick:e,disabled:s,children:"Cancel"})}var T=e.i(353978),$=e.i(162697),_=e.i(193799);function z({identityProvider:e,onUpdated:i,onBack:a,ssoLoginUrl:o,className:c}){let u=(0,s.useId)(),m=e.spec,x=e.metadata,{update:p,isUpdating:h,error:f,clearError:v}=function(){let e=(0,l.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.identityProvider.update(t)}catch(e){throw i((0,d.toError)(e)),e}finally{r(!1)}},[e]),isUpdating:t,error:n,clearError:a}}(),[j,y]=(0,s.useState)("view"),[k,C]=(0,s.useState)(m?.displayName??""),[w,N]=(0,s.useState)(m?.jwksUri??""),[S,I]=(0,s.useState)(m?.allowedIssuers.join(", ")??""),[A,O]=(0,s.useState)(m?.expectedAudience??""),[R,D]=(0,s.useState)(m?.userinfoEndpoint??""),[U,E]=(0,s.useState)(m?.isSsoProvider??!1),[L,P]=(0,s.useState)(m?.oidcClientId??""),[$,_]=(0,s.useState)(m?.autoProvisionAccounts??!1),[M,W]=(0,s.useState)(m?.autoGrantOnOrg??!1),[q,V]=(0,s.useState)(m?.autoGrantRole??b.IamRole.iam_role_unspecified),[K,H]=(0,s.useState)(m?.tenantOrgClaim??""),Q=(0,s.useCallback)(e=>{_(e),e||(W(!1),V(b.IamRole.iam_role_unspecified),H(""))},[]),X=(0,s.useCallback)(e=>{W(e),e&&_(!0),e||(V(b.IamRole.iam_role_unspecified),H(""))},[]),Z=(0,s.useCallback)(()=>{C(m?.displayName??""),N(m?.jwksUri??""),I(m?.allowedIssuers.join(", ")??""),O(m?.expectedAudience??""),D(m?.userinfoEndpoint??""),E(m?.isSsoProvider??!1),P(m?.oidcClientId??""),_(m?.autoProvisionAccounts??!1),W(m?.autoGrantOnOrg??!1),V(m?.autoGrantRole??b.IamRole.iam_role_unspecified),H(m?.tenantOrgClaim??""),v(),y("edit")},[m,v]),ee=(0,s.useCallback)(()=>{v(),y("view")},[v]),et=(0,s.useCallback)(async t=>{t.preventDefault(),v();try{let t=await p({...(0,T.toIdentityProviderUpdateInput)(e),displayName:k.trim(),jwksUri:w.trim(),allowedIssuers:S.split(",").map(e=>e.trim()).filter(Boolean),expectedAudience:A.trim(),userinfoEndpoint:R.trim()||void 0,isSsoProvider:U,oidcClientId:U?L.trim():void 0,autoProvisionAccounts:!U&&!!$||void 0,autoGrantOnOrg:!U&&!!M||void 0,autoGrantRole:!U&&M&&q!==b.IamRole.iam_role_unspecified?q:void 0,tenantOrgClaim:!U&&M&&K.trim()?K.trim():void 0});y("view"),i?.(t)}catch{}},[e,k,w,S,A,R,U,L,$,M,q,K,p,v,i]),es=""!==k.trim()&&""!==w.trim()&&""!==S.trim()&&""!==A.trim()&&(!U||""!==L.trim())&&!h,er=e.status?.audit?.specAudit?.createdAt,en=e.status?.audit?.specAudit?.updatedAt;return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-4",c),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:[a&&(0,t.jsxs)("button",{type:"button",onClick:a,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)(Y,{}),"Back to list"]}),(0,t.jsx)("h3",{className:"stg:text-foreground stg:truncate stg:text-sm stg:font-semibold",children:m?.displayName||x?.name||"Identity Provider"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[x?.slug&&(0,t.jsx)("span",{className:"stg:text-muted-foreground stg:font-mono stg:text-xs",children:x.slug}),(0,t.jsx)(J,{spec:m})]})]}),"view"===j&&(0,t.jsx)("button",{type:"button",onClick:Z,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"===j?(0,t.jsx)(G,{spec:m,ssoLoginUrl:o,createdAt:er,updatedAt:en}):(0,t.jsxs)("form",{onSubmit:et,className:"stg:space-y-3",children:[(0,t.jsx)(B,{id:`${u}-name`,label:"Display name",value:k,onChange:C,placeholder:"e.g., Acme Corp SSO",disabled:h,required:!0}),(0,t.jsx)(B,{id:`${u}-jwks`,label:"JWKS URI",value:w,onChange:N,placeholder:"https://example.com/.well-known/jwks.json",disabled:h,required:!0}),(0,t.jsx)(B,{id:`${u}-issuers`,label:"Allowed issuers",value:S,onChange:I,placeholder:"https://issuer.example.com/",hint:"Comma-separated list of trusted JWT issuer values",disabled:h,required:!0}),(0,t.jsx)(B,{id:`${u}-audience`,label:"Expected audience",value:A,onChange:O,placeholder:"stigmer-api",disabled:h,required:!0}),(0,t.jsx)(B,{id:`${u}-userinfo`,label:"Userinfo endpoint",value:R,onChange:D,placeholder:"https://example.com/userinfo",hint:"Optional — used to fetch user profile data",disabled:h}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":U,onClick:()=>E(e=>!e),disabled:h,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",U?"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",U?"stg:translate-x-4":"stg:translate-x-0")})}),(0,t.jsx)("span",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"SSO provider"})]}),U&&(0,t.jsx)(B,{id:`${u}-client-id`,label:"OIDC client ID",value:L,onChange:P,placeholder:"public-client-id",hint:"Client ID for the PKCE-based Authorization Code flow",disabled:h,required:!0}),(0,t.jsx)(F,{isSso:U,autoProvision:$,onAutoProvisionChange:Q,autoGrant:M,onAutoGrantChange:X,autoGrantRole:q,onAutoGrantRoleChange:V,tenantOrgClaim:K,onTenantOrgClaimChange:H,disabled:h}),f&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,n.getUserMessage)(f)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:pt-1",children:[(0,t.jsxs)("button",{type:"submit",disabled:!es,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:[h&&(0,t.jsx)(g.SpinnerIcon,{size:12}),"Save changes"]}),(0,t.jsx)("button",{type:"button",onClick:ee,disabled:h,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"})]})]})]})}function G({spec:e,ssoLoginUrl:s,createdAt:r,updatedAt:n}){return(0,t.jsxs)("dl",{className:"stg:space-y-2.5",children:[(0,t.jsx)(M,{label:"JWKS URI",value:e?.jwksUri,mono:!0}),(0,t.jsx)(M,{label:"Allowed issuers",value:e?.allowedIssuers.join(", "),mono:!0}),(0,t.jsx)(M,{label:"Expected audience",value:e?.expectedAudience,mono:!0}),e?.userinfoEndpoint&&(0,t.jsx)(M,{label:"Userinfo endpoint",value:e.userinfoEndpoint,mono:!0}),e?.isSsoProvider&&(0,t.jsx)(M,{label:"OIDC client ID",value:e.oidcClientId,mono:!0}),e?.isSsoProvider&&s&&(0,t.jsx)(W,{label:"SSO login URL",value:s,hint:"Share this URL with your team members to sign in via SSO"}),(e?.rateLimitBudget??0)>0&&(0,t.jsx)(M,{label:"Rate limit",value:`${e.rateLimitBudget} req/min`}),!e?.isSsoProvider&&e?.autoProvisionAccounts&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("hr",{className:"stg:border-border-muted"}),(0,t.jsx)(M,{label:"Auto-provision accounts",value:e.autoProvisionAccounts?"Enabled":"Disabled"}),(0,t.jsx)(M,{label:"Auto-grant on organization",value:e.autoGrantOnOrg?"Enabled":"Disabled"}),e.autoGrantOnOrg&&(0,t.jsx)(M,{label:"Auto-grant role",value:function(e){switch(e){case b.IamRole.viewer:return"Viewer";case b.IamRole.member:return"Member";case b.IamRole.admin:return"Admin";case b.IamRole.owner:return"Owner";default:return"Viewer (default)"}}(e.autoGrantRole)}),e.autoGrantOnOrg&&e.tenantOrgClaim&&(0,t.jsx)(M,{label:"Tenant org claim",value:e.tenantOrgClaim,mono:!0})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-6",children:[r&&(0,t.jsx)(M,{label:"Created",value:K((0,i.timestampDate)(r))}),n&&(0,t.jsx)(M,{label:"Updated",value:K((0,i.timestampDate)(n))})]})]})}function M({label:e,value:s,mono:n}){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:text-foreground stg:mt-0.5 stg:break-all stg:text-xs",n&&"stg:font-mono"),children:s})]}):null}function W({label:e,value:n,hint:i}){let{copy:a,copied:o}=(0,_.useCopyFeedback)(),l=(0,s.useRef)(null),d=(0,s.useCallback)(async()=>{!await a(n)&&l.current&&(0,$.selectElementText)(l.current)},[a,n]);return(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.jsxs)("dd",{className:"stg:mt-0.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{ref:l,className:"stg:text-foreground stg:break-all stg:font-mono stg:text-xs stg:select-all",children:n}),(0,t.jsx)("button",{type:"button",onClick:()=>void d(),className:(0,r.cn)("stg:shrink-0 stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem]","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:transition-colors"),"aria-label":`Copy ${e}`,children:o?"Copied":"Copy"})]}),i&&(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mt-0.5 stg:text-[0.65rem]",children:i}),(0,t.jsx)("div",{role:"status","aria-live":"polite","aria-atomic":"true",className:"stg:sr-only",children:o&&"SSO login URL copied to clipboard"})]})]})}function B({id:e,label:s,value:n,onChange:i,placeholder:a,hint:o,disabled:l,required:d}){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:l,required:d,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")}),o&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:o})]})}function J({spec:e}){return e?.isSsoProvider?(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:"SSO"}):e?.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"}):null}let q=[{value:String(b.IamRole.iam_role_unspecified),label:"Default (viewer)"},{value:String(b.IamRole.viewer),label:"Viewer"},{value:String(b.IamRole.member),label:"Member"},{value:String(b.IamRole.admin),label:"Admin"}];function F({isSso:e,autoProvision:n,onAutoProvisionChange:i,autoGrant:a,onAutoGrantChange:o,autoGrantRole:l,onAutoGrantRoleChange:d,tenantOrgClaim:g,onTenantOrgClaimChange:c,disabled:u}){let m=(0,s.useId)();return e?(0,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border-muted stg:bg-muted-faint stg:px-3 stg:py-2",children:(0,t.jsxs)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:["SSO providers automatically provision accounts and grant the"," ",(0,t.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:"viewer"})," role on the owning organization. JIT provisioning settings are not applicable."]})}):(0,t.jsxs)("fieldset",{className:(0,r.cn)(h.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 authenticating with this provider."}),(0,t.jsx)(V,{checked:n,onChange:i,label:"Auto-provision accounts",hint:"Create a federated account automatically on first authentication",disabled:u}),(0,t.jsx)(V,{checked:a,onChange:o,label:"Auto-grant on organization",hint:"Grant a role on the owning organization when an account is provisioned",disabled:u||!n}),a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("label",{htmlFor:`${m}-grant-role`,className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Auto-grant role"}),(0,t.jsx)("select",{id:`${m}-grant-role`,value:String(l),onChange:e=>d(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:q.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.jsx)(B,{id:`${m}-tenant-claim`,label:"Tenant org claim",value:g,onChange:c,placeholder:"e.g., org_id",hint:"JWT claim name that maps to a platform-managed organization (max 256 chars)",disabled:u})]})]})}function V({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 K(e){return e.toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})}function Y(){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 H=e.i(597744),Q=e.i(170255),X=e.i(630983),Z=e.i(297629);e.s(["IdentityProvidersSection",0,function({ssoLoginBaseUrl:e}={}){let r=(0,s.useId)(),{activeOrg:n}=(0,Z.useOrg)(),i=(0,H.useResourceAvailable)(Q.ApiResourceKind.identity_provider),a=n?.metadata?.slug??"",[o,l]=(0,s.useState)({phase:"idle"}),d=(0,s.useRef)(null),g=(0,s.useCallback)(e=>{d.current=e},[]),u=(0,s.useCallback)(()=>{d.current?.(),l({phase:"idle"})},[]),m=(0,s.useCallback)(()=>{d.current?.(),l({phase:"idle"})},[]),x=e??window.location.origin;return(0,t.jsxs)("section",{"aria-labelledby":r,children:[(0,t.jsxs)("div",{className:"stg:mb-3 stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("h2",{id:r,className:"stg:text-foreground stg:text-sm stg:font-semibold",children:"Identity Providers"}),i&&a&&"idle"===o.phase&&(0,t.jsx)("button",{type:"button",onClick:()=>l({phase:"creating"}),className:"stg:text-primary stg:hover:text-foreground stg:text-xs stg:font-medium stg:transition-colors",children:"+ New identity provider"})]}),(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:mb-4 stg:text-xs",children:"Identity providers define external OIDC trust relationships for federated authentication. Configure providers for platform-managed organizations or self-managed SSO."}),i?a?"creating"===o.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(w,{org:a,onCreated:u,onCancel:()=>l({phase:"idle"})})}):"editing"===o.phase?(0,t.jsx)("div",{className:"stg:border-border stg:bg-card stg:rounded-lg stg:border stg:p-4",children:(0,t.jsx)(z,{identityProvider:o.identityProvider,ssoLoginUrl:o.identityProvider.spec?.isSsoProvider?`${x}/login?org=${a}`:void 0,onUpdated:m,onBack:()=>l({phase:"idle"})})}):(0,t.jsx)(c,{org:a,onEdit:e=>l({phase:"editing",identityProvider:e}),onRefetchRef:g}):(0,t.jsx)("p",{className:"stg:text-muted-foreground stg:py-4 stg:text-center stg:text-xs",children:"Select an organization to manage identity providers."}):(0,t.jsx)(X.CloudFeatureNotice,{children:"Identity providers are not available in local mode. Federated authentication requires Stigmer Cloud."})]})}],23280)}]);
|