Skip to content

Commit

Permalink
SDK updates
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 21, 2024
1 parent 5832c87 commit 4e60d60
Show file tree
Hide file tree
Showing 33 changed files with 3,482 additions and 279 deletions.
4 changes: 2 additions & 2 deletions docs/Model/UpdatePasskeysAuthMethod.md → docs/Model/Link.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# # UpdatePasskeysAuthMethod
# # Link

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enabled** | **bool** | | [optional] [default to true]
**href** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
19 changes: 19 additions & 0 deletions docs/Model/ListPaginatedUsersItem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# # ListPaginatedUsersItem

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **\DateTime** | |
**email** | **string** | |
**email_verified** | **bool** | |
**id** | **string** | |
**last_login_at** | **\DateTime** | |
**login_count** | **int** | |
**phone** | **string** | |
**phone_verified** | **bool** | |
**status** | [**\OpenAPI\Client\Model\UserStatus**](UserStatus.md) | |
**updated_at** | **\DateTime** | |
**user_metadata** | **object** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14 changes: 14 additions & 0 deletions docs/Model/ListPaginatedUsersResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# # ListPaginatedUsersResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_links** | [**\OpenAPI\Client\Model\PaginatedLinks**](PaginatedLinks.md) | |
**created_before** | **int** | time anchor (Unix timestamp) --> all users returned created before this timestamp |
**limit** | **int** | |
**page** | **int** | |
**total_users** | **int** | total number of users for a particular query |
**users** | [**\OpenAPI\Client\Model\ListPaginatedUsersItem[]**](ListPaginatedUsersItem.md) | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10 changes: 10 additions & 0 deletions docs/Model/Model403Error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# # Model403Error

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **string** | |
**error** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
9 changes: 9 additions & 0 deletions docs/Model/Nonce.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # Nonce

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nonce** | **string** | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13 changes: 13 additions & 0 deletions docs/Model/PaginatedLinks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# # PaginatedLinks

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**first** | [**\OpenAPI\Client\Model\Link**](Link.md) | |
**last** | [**\OpenAPI\Client\Model\Link**](Link.md) | |
**next** | [**\OpenAPI\Client\Model\Link**](Link.md) | |
**previous** | [**\OpenAPI\Client\Model\Link**](Link.md) | |
**self** | [**\OpenAPI\Client\Model\Link**](Link.md) | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11 changes: 0 additions & 11 deletions docs/Model/UpdateMagicLinkAuthMethod.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/Model/UpdateOtpAuthMethod.md

This file was deleted.

8 changes: 8 additions & 0 deletions docs/Model/UserEventStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# # UserEventStatus

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 2 additions & 0 deletions docs/Model/UserRecentEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **\DateTime** | |
**completed_at** | **\DateTime** | |
**id** | **string** | |
**ip_addr** | **string** | |
**status** | [**\OpenAPI\Client\Model\UserEventStatus**](UserEventStatus.md) | |
**type** | **string** | |
**user_agent** | **string** | |

Expand Down
30 changes: 21 additions & 9 deletions generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,28 @@ docs/Model/GithubUserSocialConnection.md
docs/Model/GoogleUserSocialConnection.md
docs/Model/LayoutConfig.md
docs/Model/Layouts.md
docs/Model/Link.md
docs/Model/ListDevicesResponse.md
docs/Model/ListPaginatedUsersItem.md
docs/Model/ListPaginatedUsersResponse.md
docs/Model/MagicLink.md
docs/Model/MagicLinkAuthMethod.md
docs/Model/MagicLinkChannel.md
docs/Model/MagicLinkResponse.md
docs/Model/MagicLinkType.md
docs/Model/Model400Error.md
docs/Model/Model401Error.md
docs/Model/Model403Error.md
docs/Model/Model404Error.md
docs/Model/Model500Error.md
docs/Model/Nonce.md
docs/Model/OtpAuthMethod.md
docs/Model/PaginatedLinks.md
docs/Model/PasskeysAuthMethod.md
docs/Model/Technologies.md
docs/Model/TtlDisplayUnit.md
docs/Model/UpdateMagicLinkAuthMethod.md
docs/Model/UpdateOtpAuthMethod.md
docs/Model/UpdatePasskeysAuthMethod.md
docs/Model/UpdateUserRequest.md
docs/Model/UserEventStatus.md
docs/Model/UserInfo.md
docs/Model/UserMetadataField.md
docs/Model/UserMetadataFieldType.md
Expand Down Expand Up @@ -70,25 +74,29 @@ lib/Model/GithubUserSocialConnection.php
lib/Model/GoogleUserSocialConnection.php
lib/Model/LayoutConfig.php
lib/Model/Layouts.php
lib/Model/Link.php
lib/Model/ListDevicesResponse.php
lib/Model/ListPaginatedUsersItem.php
lib/Model/ListPaginatedUsersResponse.php
lib/Model/MagicLink.php
lib/Model/MagicLinkAuthMethod.php
lib/Model/MagicLinkChannel.php
lib/Model/MagicLinkResponse.php
lib/Model/MagicLinkType.php
lib/Model/Model400Error.php
lib/Model/Model401Error.php
lib/Model/Model403Error.php
lib/Model/Model404Error.php
lib/Model/Model500Error.php
lib/Model/ModelInterface.php
lib/Model/Nonce.php
lib/Model/OtpAuthMethod.php
lib/Model/PaginatedLinks.php
lib/Model/PasskeysAuthMethod.php
lib/Model/Technologies.php
lib/Model/TtlDisplayUnit.php
lib/Model/UpdateMagicLinkAuthMethod.php
lib/Model/UpdateOtpAuthMethod.php
lib/Model/UpdatePasskeysAuthMethod.php
lib/Model/UpdateUserRequest.php
lib/Model/UserEventStatus.php
lib/Model/UserInfo.php
lib/Model/UserMetadataField.php
lib/Model/UserMetadataFieldType.php
Expand Down Expand Up @@ -118,24 +126,28 @@ test/Model/GithubUserSocialConnectionTest.php
test/Model/GoogleUserSocialConnectionTest.php
test/Model/LayoutConfigTest.php
test/Model/LayoutsTest.php
test/Model/LinkTest.php
test/Model/ListDevicesResponseTest.php
test/Model/ListPaginatedUsersItemTest.php
test/Model/ListPaginatedUsersResponseTest.php
test/Model/MagicLinkAuthMethodTest.php
test/Model/MagicLinkChannelTest.php
test/Model/MagicLinkResponseTest.php
test/Model/MagicLinkTest.php
test/Model/MagicLinkTypeTest.php
test/Model/Model400ErrorTest.php
test/Model/Model401ErrorTest.php
test/Model/Model403ErrorTest.php
test/Model/Model404ErrorTest.php
test/Model/Model500ErrorTest.php
test/Model/NonceTest.php
test/Model/OtpAuthMethodTest.php
test/Model/PaginatedLinksTest.php
test/Model/PasskeysAuthMethodTest.php
test/Model/TechnologiesTest.php
test/Model/TtlDisplayUnitTest.php
test/Model/UpdateMagicLinkAuthMethodTest.php
test/Model/UpdateOtpAuthMethodTest.php
test/Model/UpdatePasskeysAuthMethodTest.php
test/Model/UpdateUserRequestTest.php
test/Model/UserEventStatusTest.php
test/Model/UserInfoTest.php
test/Model/UserMetadataFieldTest.php
test/Model/UserMetadataFieldTypeTest.php
Expand Down
11 changes: 8 additions & 3 deletions generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
*UsersApi* | [**deactivateUser**](docs/Api/UsersApi.md#deactivateuser) | **PATCH** /apps/{app_id}/users/{user_id}/deactivate | Deactivate User
*UsersApi* | [**deleteUser**](docs/Api/UsersApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/{user_id} | Delete User
*UsersApi* | [**getUser**](docs/Api/UsersApi.md#getuser) | **GET** /apps/{app_id}/users/{user_id} | Get User
*UsersApi* | [**listPaginatedUsers**](docs/Api/UsersApi.md#listpaginatedusers) | **GET** /apps/{app_id}/users | List Users
*UsersApi* | [**updateUser**](docs/Api/UsersApi.md#updateuser) | **PATCH** /apps/{app_id}/users/{user_id} | Update User

## Models
Expand All @@ -103,24 +104,28 @@ Class | Method | HTTP request | Description
- [GoogleUserSocialConnection](docs/Model/GoogleUserSocialConnection.md)
- [LayoutConfig](docs/Model/LayoutConfig.md)
- [Layouts](docs/Model/Layouts.md)
- [Link](docs/Model/Link.md)
- [ListDevicesResponse](docs/Model/ListDevicesResponse.md)
- [ListPaginatedUsersItem](docs/Model/ListPaginatedUsersItem.md)
- [ListPaginatedUsersResponse](docs/Model/ListPaginatedUsersResponse.md)
- [MagicLink](docs/Model/MagicLink.md)
- [MagicLinkAuthMethod](docs/Model/MagicLinkAuthMethod.md)
- [MagicLinkChannel](docs/Model/MagicLinkChannel.md)
- [MagicLinkResponse](docs/Model/MagicLinkResponse.md)
- [MagicLinkType](docs/Model/MagicLinkType.md)
- [Model400Error](docs/Model/Model400Error.md)
- [Model401Error](docs/Model/Model401Error.md)
- [Model403Error](docs/Model/Model403Error.md)
- [Model404Error](docs/Model/Model404Error.md)
- [Model500Error](docs/Model/Model500Error.md)
- [Nonce](docs/Model/Nonce.md)
- [OtpAuthMethod](docs/Model/OtpAuthMethod.md)
- [PaginatedLinks](docs/Model/PaginatedLinks.md)
- [PasskeysAuthMethod](docs/Model/PasskeysAuthMethod.md)
- [Technologies](docs/Model/Technologies.md)
- [TtlDisplayUnit](docs/Model/TtlDisplayUnit.md)
- [UpdateMagicLinkAuthMethod](docs/Model/UpdateMagicLinkAuthMethod.md)
- [UpdateOtpAuthMethod](docs/Model/UpdateOtpAuthMethod.md)
- [UpdatePasskeysAuthMethod](docs/Model/UpdatePasskeysAuthMethod.md)
- [UpdateUserRequest](docs/Model/UpdateUserRequest.md)
- [UserEventStatus](docs/Model/UserEventStatus.md)
- [UserInfo](docs/Model/UserInfo.md)
- [UserMetadataField](docs/Model/UserMetadataField.md)
- [UserMetadataFieldType](docs/Model/UserMetadataFieldType.md)
Expand Down
27 changes: 25 additions & 2 deletions generated/lib/Api/MagicLinksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function getConfig()
*
* @throws \OpenAPI\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\MagicLinkResponse|\OpenAPI\Client\Model\Model400Error|\OpenAPI\Client\Model\Model401Error|\OpenAPI\Client\Model\Model404Error|\OpenAPI\Client\Model\Model500Error
* @return \OpenAPI\Client\Model\MagicLinkResponse|\OpenAPI\Client\Model\Model400Error|\OpenAPI\Client\Model\Model401Error|\OpenAPI\Client\Model\Model403Error|\OpenAPI\Client\Model\Model404Error|\OpenAPI\Client\Model\Model500Error
*/
public function createMagicLink($app_id, $create_magic_link_request, string $contentType = self::contentTypes['createMagicLink'][0])
{
Expand All @@ -153,7 +153,7 @@ public function createMagicLink($app_id, $create_magic_link_request, string $con
*
* @throws \OpenAPI\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\MagicLinkResponse|\OpenAPI\Client\Model\Model400Error|\OpenAPI\Client\Model\Model401Error|\OpenAPI\Client\Model\Model404Error|\OpenAPI\Client\Model\Model500Error, HTTP status code, HTTP response headers (array of strings)
* @return array of \OpenAPI\Client\Model\MagicLinkResponse|\OpenAPI\Client\Model\Model400Error|\OpenAPI\Client\Model\Model401Error|\OpenAPI\Client\Model\Model403Error|\OpenAPI\Client\Model\Model404Error|\OpenAPI\Client\Model\Model500Error, HTTP status code, HTTP response headers (array of strings)
*/
public function createMagicLinkWithHttpInfo($app_id, $create_magic_link_request, string $contentType = self::contentTypes['createMagicLink'][0])
{
Expand Down Expand Up @@ -240,6 +240,21 @@ public function createMagicLinkWithHttpInfo($app_id, $create_magic_link_request,
$response->getStatusCode(),
$response->getHeaders()
];
case 403:
if ('\OpenAPI\Client\Model\Model403Error' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\OpenAPI\Client\Model\Model403Error' !== 'string') {
$content = json_decode($content);
}
}

return [
ObjectSerializer::deserialize($content, '\OpenAPI\Client\Model\Model403Error', []),
$response->getStatusCode(),
$response->getHeaders()
];
case 404:
if ('\OpenAPI\Client\Model\Model404Error' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
Expand Down Expand Up @@ -314,6 +329,14 @@ public function createMagicLinkWithHttpInfo($app_id, $create_magic_link_request,
);
$e->setResponseObject($data);
break;
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\OpenAPI\Client\Model\Model403Error',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
Expand Down
8 changes: 8 additions & 0 deletions generated/lib/Api/TokensApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ public function revokeUserRefreshTokensWithHttpInfo($app_id, $user_id, string $c
);
$e->setResponseObject($data);
break;
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\OpenAPI\Client\Model\Model403Error',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 404:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
Expand Down
Loading

0 comments on commit 4e60d60

Please sign in to comment.