Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/auth/CreatedSaasUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|**email** | **String** | E-mail. For sign-in ID authentication users, this field is an empty string. | |
|**signInId** | **String** | Sign-in ID. For email authentication users, this field is an empty string. | |
|**attributes** | **Map<String, Object>** | Attribute information | |
|**lastLoginAt** | **Integer** | Last login date and time (unix timestamp). Null if the user has never logged in. | [optional] |
|**password** | **String** | Auto-generated password (only when sign_in_id authentication and password not specified) | [optional] |


Expand Down
1 change: 1 addition & 0 deletions docs/auth/SaasUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
|**email** | **String** | E-mail. For sign-in ID authentication users, this field is an empty string. | |
|**signInId** | **String** | Sign-in ID. For email authentication users, this field is an empty string. | |
|**attributes** | **Map<String, Object>** | Attribute information | |
|**lastLoginAt** | **Integer** | Last login date and time (unix timestamp). Null if the user has never logged in. | [optional] |



212 changes: 212 additions & 0 deletions docs/auth/SaasUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ All URIs are relative to *https://api.saasus.io/v1/auth*
| [**deleteSaasUser**](SaasUserApi.md#deleteSaasUser) | **DELETE** /users/{user_id} | Delete User |
| [**getSaasUser**](SaasUserApi.md#getSaasUser) | **GET** /users/{user_id} | Get User |
| [**getSaasUsers**](SaasUserApi.md#getSaasUsers) | **GET** /users | Get Users |
| [**getSaasUsersCount**](SaasUserApi.md#getSaasUsersCount) | **GET** /users/count | Get SaaS Users Count |
| [**getUserMfaPreference**](SaasUserApi.md#getUserMfaPreference) | **GET** /users/{user_id}/mfa/preference | Get User's MFA Settings |
| [**linkAwsMarketplace**](SaasUserApi.md#linkAwsMarketplace) | **PATCH** /aws-marketplace/link | Link an existing tenant with AWS Marketplace |
| [**requestEmailUpdate**](SaasUserApi.md#requestEmailUpdate) | **POST** /users/{user_id}/email/request | Request User Email Update |
| [**requestExternalUserLink**](SaasUserApi.md#requestExternalUserLink) | **POST** /external-users/request | Request External User Account Link |
| [**resendSignUpConfirmationEmail**](SaasUserApi.md#resendSignUpConfirmationEmail) | **POST** /sign-up/resend | Resend Sign Up Confirmation Email |
| [**resetSaasUserPassword**](SaasUserApi.md#resetSaasUserPassword) | **POST** /users/{user_id}/password/reset | Reset Password |
| [**respondToSignInChallenge**](SaasUserApi.md#respondToSignInChallenge) | **POST** /sign-in/challenge | Respond to Sign In Challenge |
| [**saveSaasUsersCount**](SaasUserApi.md#saveSaasUsersCount) | **POST** /users/count | Save SaaS Users Count |
| [**searchSaasUsers**](SaasUserApi.md#searchSaasUsers) | **GET** /users/search | Search SaaS Users |
| [**signIn**](SaasUserApi.md#signIn) | **POST** /sign-in | Sign In |
| [**signUp**](SaasUserApi.md#signUp) | **POST** /sign-up | Sign Up |
| [**signUpWithAwsMarketplace**](SaasUserApi.md#signUpWithAwsMarketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace |
Expand Down Expand Up @@ -649,6 +652,70 @@ This endpoint does not need any parameter.
| **200** | OK | - |
| **500** | Internal Server Error | - |

<a id="getSaasUsersCount"></a>
# **getSaasUsersCount**
> SaasUsersCount getSaasUsersCount()

Get SaaS Users Count

Get the count of SaaS users.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.SaasUserApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

SaasUserApi apiInstance = new SaasUserApi(defaultClient);
try {
SaasUsersCount result = apiInstance.getSaasUsersCount();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SaasUserApi#getSaasUsersCount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**SaasUsersCount**](SaasUsersCount.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **500** | Internal Server Error | - |

<a id="getUserMfaPreference"></a>
# **getUserMfaPreference**
> MfaPreference getUserMfaPreference(userId)
Expand Down Expand Up @@ -1126,6 +1193,151 @@ public class Example {
| **401** | Unauthorized | - |
| **500** | Internal Server Error | - |

<a id="saveSaasUsersCount"></a>
# **saveSaasUsersCount**
> saveSaasUsersCount(saveSaasUsersCountParam)

Save SaaS Users Count

Save the count of SaaS users.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.SaasUserApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

SaasUserApi apiInstance = new SaasUserApi(defaultClient);
SaveSaasUsersCountParam saveSaasUsersCountParam = new SaveSaasUsersCountParam(); // SaveSaasUsersCountParam |
try {
apiInstance.saveSaasUsersCount(saveSaasUsersCountParam);
} catch (ApiException e) {
System.err.println("Exception when calling SaasUserApi#saveSaasUsersCount");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **saveSaasUsersCountParam** | [**SaveSaasUsersCountParam**](SaveSaasUsersCountParam.md)| | |

### Return type

null (empty response body)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **500** | Internal Server Error | - |

<a id="searchSaasUsers"></a>
# **searchSaasUsers**
> SearchSaasUsersResult searchSaasUsers(id, email, signInId, limit, cursor)

Search SaaS Users

Search SaaS users by user ID, email, or sign-in ID.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.SaasUserApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

SaasUserApi apiInstance = new SaasUserApi(defaultClient);
String id = "id_example"; // String | User ID
String email = "email_example"; // String | Email prefix
String signInId = "signInId_example"; // String | Sign-in ID prefix
Long limit = 56L; // Long | Maximum number of items to retrieve
String cursor = "cursor_example"; // String | Cursor for cursor pagination
try {
SearchSaasUsersResult result = apiInstance.searchSaasUsers(id, email, signInId, limit, cursor);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SaasUserApi#searchSaasUsers");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **id** | **String**| User ID | [optional] |
| **email** | **String**| Email prefix | [optional] |
| **signInId** | **String**| Sign-in ID prefix | [optional] |
| **limit** | **Long**| Maximum number of items to retrieve | [optional] |
| **cursor** | **String**| Cursor for cursor pagination | [optional] |

### Return type

[**SearchSaasUsersResult**](SearchSaasUsersResult.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **400** | Bad Request | - |
| **500** | Internal Server Error | - |

<a id="signIn"></a>
# **signIn**
> SignInResult signIn(signInParam)
Expand Down
14 changes: 14 additions & 0 deletions docs/auth/SaasUsersCount.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SaasUsersCount


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**count** | **Integer** | Count of SaaS users | |
|**updatedAt** | **Long** | Unix timestamp (seconds) of the last update | |



13 changes: 13 additions & 0 deletions docs/auth/SaveSaasUsersCountParam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# SaveSaasUsersCountParam


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**count** | **Integer** | Count of SaaS users | |



14 changes: 14 additions & 0 deletions docs/auth/SaveTenantUserCountParam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SaveTenantUserCountParam


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**tenantId** | **String** | | |
|**count** | **Integer** | Count of tenant users | |



13 changes: 13 additions & 0 deletions docs/auth/SaveTenantUsersCountsParam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# SaveTenantUsersCountsParam


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**tenantUserCounts** | [**List&lt;SaveTenantUserCountParam&gt;**](SaveTenantUserCountParam.md) | | |



14 changes: 14 additions & 0 deletions docs/auth/SearchSaasUsersResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SearchSaasUsersResult


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**users** | [**List&lt;SaasUser&gt;**](SaasUser.md) | | |
|**cursor** | **String** | Pagination cursor for the next page | [optional] |



14 changes: 14 additions & 0 deletions docs/auth/SearchTenantUsersResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SearchTenantUsersResult


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**users** | [**List&lt;User&gt;**](User.md) | | |
|**cursor** | **String** | Pagination cursor for the next page | [optional] |



Loading