mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
3959fe8297
* feat: add workspace-level service accounts (EE) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * sqlx * sqlx * chore: update ee-repo-ref Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
1003 B
Rust
37 lines
1003 B
Rust
#[cfg(feature = "private")]
|
|
#[allow(unused)]
|
|
pub use crate::workspaces_ee::*;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
use crate::workspaces::{EditAutoInvite, NewServiceAccount};
|
|
#[cfg(not(feature = "private"))]
|
|
use http::StatusCode;
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_api_auth::ApiAuthed;
|
|
#[cfg(not(feature = "private"))]
|
|
use windmill_common::DB;
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn edit_auto_invite(
|
|
_authed: ApiAuthed,
|
|
_db: DB,
|
|
_w_id: String,
|
|
_ea: EditAutoInvite,
|
|
) -> windmill_common::error::Result<String> {
|
|
Err(windmill_common::error::Error::internal_err(
|
|
"Not implemented on OSS".to_string(),
|
|
))
|
|
}
|
|
|
|
#[cfg(not(feature = "private"))]
|
|
pub async fn create_service_account(
|
|
_authed: ApiAuthed,
|
|
_db: DB,
|
|
_w_id: String,
|
|
_nu: NewServiceAccount,
|
|
) -> windmill_common::error::Result<(StatusCode, String)> {
|
|
Err(windmill_common::error::Error::BadRequest(
|
|
"Service accounts require Windmill Enterprise Edition".to_string(),
|
|
))
|
|
}
|