-
Notifications
You must be signed in to change notification settings - Fork 10
New apis april 2026 #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8aec647
new-apis
pfvatterott 9275dd9
new-apis
pfvatterott fc8422e
fix external_id_from_idp parameter
pfvatterott 34c9cec
add pagination to Fetch SCIM group
pfvatterott 210d087
move scim types to /models
pfvatterott d0dc9cb
scim group models
pfvatterott 5c7d2ce
Merge branch 'main' into new-apis-april-2026
pfvatterott 1cbdcea
remove double import
pfvatterott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,155 @@ | ||
| /* | ||
| * propelauth | ||
| * | ||
| * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
| * | ||
| * The version of the OpenAPI document: 0.1.0 | ||
| * | ||
| * Generated by: https://openapi-generator.tech | ||
| */ | ||
|
|
||
| use reqwest; | ||
|
|
||
| use super::{configuration, Error}; | ||
| use crate::propelauth::auth::AUTH_HOSTNAME_HEADER; | ||
| use crate::apis::ResponseContent; | ||
| use crate::models::{ | ||
| FetchOrgScimGroupsError, FetchOrgScimGroupsRequest, | ||
| FetchScimGroupError, FetchScimGroupRequest, | ||
| ScimGroup, ScimGroupResultPage, | ||
| }; | ||
|
|
||
|
|
||
| pub async fn fetch_org_scim_groups( | ||
| configuration: &configuration::Configuration, | ||
| params: FetchOrgScimGroupsRequest, | ||
| ) -> Result<ScimGroupResultPage, Error<FetchOrgScimGroupsError>> { | ||
| let local_var_configuration = configuration; | ||
|
|
||
| // unbox the parameters | ||
| let FetchOrgScimGroupsRequest { | ||
| org_id, | ||
| user_id, | ||
| page_size, | ||
| page_number, | ||
| } = params; | ||
|
|
||
| let local_var_client = &local_var_configuration.client; | ||
|
|
||
| let local_var_uri_str = format!( | ||
| "{}/api/backend/v1/scim/{org_id}/groups", | ||
| local_var_configuration.base_path, | ||
| org_id = crate::apis::urlencode(org_id) | ||
| ); | ||
| let mut local_var_req_builder = | ||
| local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); | ||
|
|
||
| if let Some(ref local_var_str) = page_size { | ||
| local_var_req_builder = | ||
| local_var_req_builder.query(&[("page_size", &local_var_str.to_string())]); | ||
| } | ||
| if let Some(ref local_var_str) = page_number { | ||
| local_var_req_builder = | ||
| local_var_req_builder.query(&[("page_number", &local_var_str.to_string())]); | ||
| } | ||
| if let Some(ref local_var_str) = user_id { | ||
| local_var_req_builder = | ||
| local_var_req_builder.query(&[("user_id", &local_var_str.to_string())]); | ||
| } | ||
| if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { | ||
| local_var_req_builder = | ||
| local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); | ||
| } | ||
| if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { | ||
| local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); | ||
| }; | ||
| local_var_req_builder = local_var_req_builder.header( | ||
| AUTH_HOSTNAME_HEADER, | ||
| local_var_configuration.auth_hostname.to_owned(), | ||
| ); | ||
|
|
||
| let local_var_req = local_var_req_builder.build()?; | ||
| let local_var_resp = local_var_client.execute(local_var_req).await?; | ||
|
|
||
| let local_var_status = local_var_resp.status(); | ||
| let local_var_content = local_var_resp.text().await?; | ||
|
|
||
| if !local_var_status.is_client_error() && !local_var_status.is_server_error() { | ||
| serde_json::from_str(&local_var_content).map_err(Error::from) | ||
| } else { | ||
| let local_var_entity: Option<FetchOrgScimGroupsError> = | ||
| serde_json::from_str(&local_var_content).ok(); | ||
| let local_var_error: crate::apis::ResponseContent<FetchOrgScimGroupsError> = ResponseContent { | ||
| status: local_var_status, | ||
| content: local_var_content, | ||
| entity: local_var_entity, | ||
| }; | ||
| Err(Error::ResponseError(local_var_error)) | ||
| } | ||
| } | ||
|
|
||
| pub async fn fetch_scim_group( | ||
| configuration: &configuration::Configuration, | ||
| params: FetchScimGroupRequest, | ||
| ) -> Result<ScimGroup, Error<FetchScimGroupError>> { | ||
| let local_var_configuration = configuration; | ||
|
|
||
| // unbox the parameters | ||
| let FetchScimGroupRequest { | ||
| org_id, | ||
| group_id, | ||
| members_page_number, | ||
| members_page_size | ||
| } = params; | ||
|
|
||
| let local_var_client = &local_var_configuration.client; | ||
|
|
||
| let local_var_uri_str = format!( | ||
| "{}/api/backend/v1/scim/{org_id}/groups/{group_id}", | ||
| local_var_configuration.base_path, | ||
| org_id = crate::apis::urlencode(org_id), | ||
| group_id = crate::apis::urlencode(group_id) | ||
| ); | ||
| let mut local_var_req_builder = | ||
| local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); | ||
|
|
||
| if let Some(ref local_var_str) = members_page_size { | ||
| local_var_req_builder = | ||
| local_var_req_builder.query(&[("members_page_size", &local_var_str.to_string())]); | ||
| } | ||
| if let Some(ref local_var_str) = members_page_number { | ||
| local_var_req_builder = | ||
| local_var_req_builder.query(&[("members_page_number", &local_var_str.to_string())]); | ||
| } | ||
|
|
||
| if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { | ||
| local_var_req_builder = | ||
| local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); | ||
| } | ||
| if let Some(ref local_var_token) = local_var_configuration.bearer_access_token { | ||
| local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned()); | ||
| }; | ||
| local_var_req_builder = local_var_req_builder.header( | ||
| AUTH_HOSTNAME_HEADER, | ||
| local_var_configuration.auth_hostname.to_owned(), | ||
| ); | ||
|
|
||
| let local_var_req = local_var_req_builder.build()?; | ||
| let local_var_resp = local_var_client.execute(local_var_req).await?; | ||
|
|
||
| let local_var_status = local_var_resp.status(); | ||
| let local_var_content = local_var_resp.text().await?; | ||
|
|
||
| if !local_var_status.is_client_error() && !local_var_status.is_server_error() { | ||
| serde_json::from_str(&local_var_content).map_err(Error::from) | ||
| } else { | ||
| let local_var_entity: Option<FetchScimGroupError> = | ||
| serde_json::from_str(&local_var_content).ok(); | ||
| let local_var_error: crate::apis::ResponseContent<FetchScimGroupError> = ResponseContent { | ||
| status: local_var_status, | ||
| content: local_var_content, | ||
| entity: local_var_entity, | ||
| }; | ||
| Err(Error::ResponseError(local_var_error)) | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.