From 528a71a226f5776695e61e02093d33cda8ae7641 Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 19 Sep 2024 20:53:22 +0000 Subject: [PATCH] SDK updates --- docs/Model/AppInfo.md | 2 + docs/Model/CreateMagicLinkRequest.md | 2 +- docs/Model/ListPaginatedUsersItem.md | 1 + docs/Model/SocialConnectionType.md | 8 ++ docs/Model/ThemeType.md | 8 ++ docs/Model/UserEventAction.md | 8 ++ docs/Model/UserInfo.md | 1 + docs/Model/UserRecentEvent.md | 2 + generated/.openapi-generator/FILES | 9 ++ generated/README.md | 3 + generated/lib/Model/AppInfo.php | 76 +++++++++++++++ .../lib/Model/CreateMagicLinkRequest.php | 2 +- .../lib/Model/ListPaginatedUsersItem.php | 37 ++++++++ generated/lib/Model/Model404Error.php | 2 + generated/lib/Model/SocialConnectionType.php | 66 +++++++++++++ generated/lib/Model/ThemeType.php | 66 +++++++++++++ generated/lib/Model/UserEventAction.php | 66 +++++++++++++ generated/lib/Model/UserInfo.php | 37 ++++++++ generated/lib/Model/UserRecentEvent.php | 93 +++++++++++++++++-- generated/test/Model/AppInfoTest.php | 18 ++++ .../test/Model/ListPaginatedUsersItemTest.php | 9 ++ .../test/Model/SocialConnectionTypeTest.php | 82 ++++++++++++++++ generated/test/Model/ThemeTypeTest.php | 82 ++++++++++++++++ generated/test/Model/UserEventActionTest.php | 82 ++++++++++++++++ generated/test/Model/UserInfoTest.php | 9 ++ generated/test/Model/UserRecentEventTest.php | 18 ++++ 26 files changed, 781 insertions(+), 8 deletions(-) create mode 100644 docs/Model/SocialConnectionType.md create mode 100644 docs/Model/ThemeType.md create mode 100644 docs/Model/UserEventAction.md create mode 100644 generated/lib/Model/SocialConnectionType.php create mode 100644 generated/lib/Model/ThemeType.php create mode 100644 generated/lib/Model/UserEventAction.php create mode 100644 generated/test/Model/SocialConnectionTypeTest.php create mode 100644 generated/test/Model/ThemeTypeTest.php create mode 100644 generated/test/Model/UserEventActionTest.php diff --git a/docs/Model/AppInfo.md b/docs/Model/AppInfo.md index 1125d93..a202d8d 100644 --- a/docs/Model/AppInfo.md +++ b/docs/Model/AppInfo.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **auth_fallback_method_ttl** | **int** | Deprecated Property. Please refer to `auth_methods` to view settings for individual authentication methods. | **auth_methods** | [**\OpenAPI\Client\Model\AuthMethods**](AuthMethods.md) | | **auth_origin** | **string** | | +**auto_theme_enabled** | **bool** | Deprecated Property. Please use `hosted_theme` to set hosted page theming instead. | **created_at** | **\DateTime** | | **default_language** | **string** | | **id** | **string** | | @@ -23,6 +24,7 @@ Name | Type | Description | Notes **name** | **string** | | **hosted** | **bool** | whether or not the app's login page hosted by passage | **hosted_subdomain** | **string** | the subdomain of the app's hosted login page | +**hosted_theme** | [**\OpenAPI\Client\Model\ThemeType**](ThemeType.md) | | **id_token_lifetime** | **int** | | [optional] **passage_branding** | **bool** | | **profile_management** | **bool** | | diff --git a/docs/Model/CreateMagicLinkRequest.md b/docs/Model/CreateMagicLinkRequest.md index 2160979..6ab83f0 100644 --- a/docs/Model/CreateMagicLinkRequest.md +++ b/docs/Model/CreateMagicLinkRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **channel** | [**\OpenAPI\Client\Model\MagicLinkChannel**](MagicLinkChannel.md) | | **email** | **string** | | **language** | **string** | language of the email to send (optional) | [optional] -**magic_link_path** | **string** | | +**magic_link_path** | **string** | must be a relative url | **phone** | **string** | | **redirect_url** | **string** | | **send** | **bool** | | diff --git a/docs/Model/ListPaginatedUsersItem.md b/docs/Model/ListPaginatedUsersItem.md index 115f7b5..52b7c6e 100644 --- a/docs/Model/ListPaginatedUsersItem.md +++ b/docs/Model/ListPaginatedUsersItem.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | **email** | **string** | | **email_verified** | **bool** | | +**external_id** | **string** | The external ID of the user. Only set if the user was created in a Flex app. | **id** | **string** | | **last_login_at** | **\DateTime** | | **login_count** | **int** | | diff --git a/docs/Model/SocialConnectionType.md b/docs/Model/SocialConnectionType.md new file mode 100644 index 0000000..ba34aba --- /dev/null +++ b/docs/Model/SocialConnectionType.md @@ -0,0 +1,8 @@ +# # SocialConnectionType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ThemeType.md b/docs/Model/ThemeType.md new file mode 100644 index 0000000..737a588 --- /dev/null +++ b/docs/Model/ThemeType.md @@ -0,0 +1,8 @@ +# # ThemeType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UserEventAction.md b/docs/Model/UserEventAction.md new file mode 100644 index 0000000..593eeb8 --- /dev/null +++ b/docs/Model/UserEventAction.md @@ -0,0 +1,8 @@ +# # UserEventAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UserInfo.md b/docs/Model/UserInfo.md index a960f73..e456189 100644 --- a/docs/Model/UserInfo.md +++ b/docs/Model/UserInfo.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **created_at** | **\DateTime** | | **email** | **string** | | **email_verified** | **bool** | | +**external_id** | **string** | The external ID of the user. Only set if the user was created in a Flex app. | **id** | **string** | | **last_login_at** | **\DateTime** | | **login_count** | **int** | | diff --git a/docs/Model/UserRecentEvent.md b/docs/Model/UserRecentEvent.md index 4bb0dcc..fd2d70f 100644 --- a/docs/Model/UserRecentEvent.md +++ b/docs/Model/UserRecentEvent.md @@ -11,5 +11,7 @@ Name | Type | Description | Notes **status** | [**\OpenAPI\Client\Model\UserEventStatus**](UserEventStatus.md) | | **type** | **string** | | **user_agent** | **string** | | +**action** | [**\OpenAPI\Client\Model\UserEventAction**](UserEventAction.md) | | +**social_login_type** | [**\OpenAPI\Client\Model\SocialConnectionType**](SocialConnectionType.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/generated/.openapi-generator/FILES b/generated/.openapi-generator/FILES index 0e6bba0..77df141 100644 --- a/generated/.openapi-generator/FILES +++ b/generated/.openapi-generator/FILES @@ -39,9 +39,12 @@ docs/Model/Nonce.md docs/Model/OtpAuthMethod.md docs/Model/PaginatedLinks.md docs/Model/PasskeysAuthMethod.md +docs/Model/SocialConnectionType.md docs/Model/Technologies.md +docs/Model/ThemeType.md docs/Model/TtlDisplayUnit.md docs/Model/UpdateUserRequest.md +docs/Model/UserEventAction.md docs/Model/UserEventStatus.md docs/Model/UserInfo.md docs/Model/UserMetadataField.md @@ -93,9 +96,12 @@ lib/Model/Nonce.php lib/Model/OtpAuthMethod.php lib/Model/PaginatedLinks.php lib/Model/PasskeysAuthMethod.php +lib/Model/SocialConnectionType.php lib/Model/Technologies.php +lib/Model/ThemeType.php lib/Model/TtlDisplayUnit.php lib/Model/UpdateUserRequest.php +lib/Model/UserEventAction.php lib/Model/UserEventStatus.php lib/Model/UserInfo.php lib/Model/UserMetadataField.php @@ -144,9 +150,12 @@ test/Model/NonceTest.php test/Model/OtpAuthMethodTest.php test/Model/PaginatedLinksTest.php test/Model/PasskeysAuthMethodTest.php +test/Model/SocialConnectionTypeTest.php test/Model/TechnologiesTest.php +test/Model/ThemeTypeTest.php test/Model/TtlDisplayUnitTest.php test/Model/UpdateUserRequestTest.php +test/Model/UserEventActionTest.php test/Model/UserEventStatusTest.php test/Model/UserInfoTest.php test/Model/UserMetadataFieldTest.php diff --git a/generated/README.md b/generated/README.md index 7e31921..d639a18 100644 --- a/generated/README.md +++ b/generated/README.md @@ -122,9 +122,12 @@ Class | Method | HTTP request | Description - [OtpAuthMethod](docs/Model/OtpAuthMethod.md) - [PaginatedLinks](docs/Model/PaginatedLinks.md) - [PasskeysAuthMethod](docs/Model/PasskeysAuthMethod.md) +- [SocialConnectionType](docs/Model/SocialConnectionType.md) - [Technologies](docs/Model/Technologies.md) +- [ThemeType](docs/Model/ThemeType.md) - [TtlDisplayUnit](docs/Model/TtlDisplayUnit.md) - [UpdateUserRequest](docs/Model/UpdateUserRequest.md) +- [UserEventAction](docs/Model/UserEventAction.md) - [UserEventStatus](docs/Model/UserEventStatus.md) - [UserInfo](docs/Model/UserInfo.md) - [UserMetadataField](docs/Model/UserMetadataField.md) diff --git a/generated/lib/Model/AppInfo.php b/generated/lib/Model/AppInfo.php index bf1d57e..4471250 100644 --- a/generated/lib/Model/AppInfo.php +++ b/generated/lib/Model/AppInfo.php @@ -67,6 +67,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'auth_fallback_method_ttl' => 'int', 'auth_methods' => '\OpenAPI\Client\Model\AuthMethods', 'auth_origin' => 'string', + 'auto_theme_enabled' => 'bool', 'created_at' => '\DateTime', 'default_language' => 'string', 'id' => 'string', @@ -77,6 +78,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'name' => 'string', 'hosted' => 'bool', 'hosted_subdomain' => 'string', + 'hosted_theme' => '\OpenAPI\Client\Model\ThemeType', 'id_token_lifetime' => 'int', 'passage_branding' => 'bool', 'profile_management' => 'bool', @@ -116,6 +118,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'auth_fallback_method_ttl' => null, 'auth_methods' => null, 'auth_origin' => null, + 'auto_theme_enabled' => null, 'created_at' => 'date-time', 'default_language' => null, 'id' => null, @@ -126,6 +129,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'name' => null, 'hosted' => null, 'hosted_subdomain' => null, + 'hosted_theme' => null, 'id_token_lifetime' => null, 'passage_branding' => null, 'profile_management' => null, @@ -163,6 +167,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'auth_fallback_method_ttl' => false, 'auth_methods' => false, 'auth_origin' => false, + 'auto_theme_enabled' => false, 'created_at' => false, 'default_language' => false, 'id' => false, @@ -173,6 +178,7 @@ class AppInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'name' => false, 'hosted' => false, 'hosted_subdomain' => false, + 'hosted_theme' => false, 'id_token_lifetime' => false, 'passage_branding' => false, 'profile_management' => false, @@ -290,6 +296,7 @@ public function isNullableSetToNull(string $property): bool 'auth_fallback_method_ttl' => 'auth_fallback_method_ttl', 'auth_methods' => 'auth_methods', 'auth_origin' => 'auth_origin', + 'auto_theme_enabled' => 'auto_theme_enabled', 'created_at' => 'created_at', 'default_language' => 'default_language', 'id' => 'id', @@ -300,6 +307,7 @@ public function isNullableSetToNull(string $property): bool 'name' => 'name', 'hosted' => 'hosted', 'hosted_subdomain' => 'hosted_subdomain', + 'hosted_theme' => 'hosted_theme', 'id_token_lifetime' => 'id_token_lifetime', 'passage_branding' => 'passage_branding', 'profile_management' => 'profile_management', @@ -337,6 +345,7 @@ public function isNullableSetToNull(string $property): bool 'auth_fallback_method_ttl' => 'setAuthFallbackMethodTtl', 'auth_methods' => 'setAuthMethods', 'auth_origin' => 'setAuthOrigin', + 'auto_theme_enabled' => 'setAutoThemeEnabled', 'created_at' => 'setCreatedAt', 'default_language' => 'setDefaultLanguage', 'id' => 'setId', @@ -347,6 +356,7 @@ public function isNullableSetToNull(string $property): bool 'name' => 'setName', 'hosted' => 'setHosted', 'hosted_subdomain' => 'setHostedSubdomain', + 'hosted_theme' => 'setHostedTheme', 'id_token_lifetime' => 'setIdTokenLifetime', 'passage_branding' => 'setPassageBranding', 'profile_management' => 'setProfileManagement', @@ -384,6 +394,7 @@ public function isNullableSetToNull(string $property): bool 'auth_fallback_method_ttl' => 'getAuthFallbackMethodTtl', 'auth_methods' => 'getAuthMethods', 'auth_origin' => 'getAuthOrigin', + 'auto_theme_enabled' => 'getAutoThemeEnabled', 'created_at' => 'getCreatedAt', 'default_language' => 'getDefaultLanguage', 'id' => 'getId', @@ -394,6 +405,7 @@ public function isNullableSetToNull(string $property): bool 'name' => 'getName', 'hosted' => 'getHosted', 'hosted_subdomain' => 'getHostedSubdomain', + 'hosted_theme' => 'getHostedTheme', 'id_token_lifetime' => 'getIdTokenLifetime', 'passage_branding' => 'getPassageBranding', 'profile_management' => 'getProfileManagement', @@ -497,6 +509,7 @@ public function __construct(array $data = null) $this->setIfExists('auth_fallback_method_ttl', $data ?? [], null); $this->setIfExists('auth_methods', $data ?? [], null); $this->setIfExists('auth_origin', $data ?? [], null); + $this->setIfExists('auto_theme_enabled', $data ?? [], null); $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('default_language', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); @@ -507,6 +520,7 @@ public function __construct(array $data = null) $this->setIfExists('name', $data ?? [], null); $this->setIfExists('hosted', $data ?? [], null); $this->setIfExists('hosted_subdomain', $data ?? [], null); + $this->setIfExists('hosted_theme', $data ?? [], null); $this->setIfExists('id_token_lifetime', $data ?? [], null); $this->setIfExists('passage_branding', $data ?? [], null); $this->setIfExists('profile_management', $data ?? [], null); @@ -583,6 +597,9 @@ public function listInvalidProperties() if ($this->container['auth_origin'] === null) { $invalidProperties[] = "'auth_origin' can't be null"; } + if ($this->container['auto_theme_enabled'] === null) { + $invalidProperties[] = "'auto_theme_enabled' can't be null"; + } if ($this->container['created_at'] === null) { $invalidProperties[] = "'created_at' can't be null"; } @@ -607,6 +624,9 @@ public function listInvalidProperties() if ($this->container['hosted_subdomain'] === null) { $invalidProperties[] = "'hosted_subdomain' can't be null"; } + if ($this->container['hosted_theme'] === null) { + $invalidProperties[] = "'hosted_theme' can't be null"; + } if ($this->container['passage_branding'] === null) { $invalidProperties[] = "'passage_branding' can't be null"; } @@ -932,6 +952,35 @@ public function setAuthOrigin($auth_origin) return $this; } + /** + * Gets auto_theme_enabled + * + * @return bool + * @deprecated + */ + public function getAutoThemeEnabled() + { + return $this->container['auto_theme_enabled']; + } + + /** + * Sets auto_theme_enabled + * + * @param bool $auto_theme_enabled Deprecated Property. Please use `hosted_theme` to set hosted page theming instead. + * + * @return self + * @deprecated + */ + public function setAutoThemeEnabled($auto_theme_enabled) + { + if (is_null($auto_theme_enabled)) { + throw new \InvalidArgumentException('non-nullable auto_theme_enabled cannot be null'); + } + $this->container['auto_theme_enabled'] = $auto_theme_enabled; + + return $this; + } + /** * Gets created_at * @@ -1202,6 +1251,33 @@ public function setHostedSubdomain($hosted_subdomain) return $this; } + /** + * Gets hosted_theme + * + * @return \OpenAPI\Client\Model\ThemeType + */ + public function getHostedTheme() + { + return $this->container['hosted_theme']; + } + + /** + * Sets hosted_theme + * + * @param \OpenAPI\Client\Model\ThemeType $hosted_theme hosted_theme + * + * @return self + */ + public function setHostedTheme($hosted_theme) + { + if (is_null($hosted_theme)) { + throw new \InvalidArgumentException('non-nullable hosted_theme cannot be null'); + } + $this->container['hosted_theme'] = $hosted_theme; + + return $this; + } + /** * Gets id_token_lifetime * diff --git a/generated/lib/Model/CreateMagicLinkRequest.php b/generated/lib/Model/CreateMagicLinkRequest.php index 7814b33..a73d6da 100644 --- a/generated/lib/Model/CreateMagicLinkRequest.php +++ b/generated/lib/Model/CreateMagicLinkRequest.php @@ -471,7 +471,7 @@ public function getMagicLinkPath() /** * Sets magic_link_path * - * @param string $magic_link_path magic_link_path + * @param string $magic_link_path must be a relative url * * @return self */ diff --git a/generated/lib/Model/ListPaginatedUsersItem.php b/generated/lib/Model/ListPaginatedUsersItem.php index bac3130..8786c4f 100644 --- a/generated/lib/Model/ListPaginatedUsersItem.php +++ b/generated/lib/Model/ListPaginatedUsersItem.php @@ -61,6 +61,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial 'created_at' => '\DateTime', 'email' => 'string', 'email_verified' => 'bool', + 'external_id' => 'string', 'id' => 'string', 'last_login_at' => '\DateTime', 'login_count' => 'int', @@ -82,6 +83,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial 'created_at' => 'date-time', 'email' => null, 'email_verified' => null, + 'external_id' => null, 'id' => null, 'last_login_at' => 'date-time', 'login_count' => null, @@ -101,6 +103,7 @@ class ListPaginatedUsersItem implements ModelInterface, ArrayAccess, \JsonSerial 'created_at' => false, 'email' => false, 'email_verified' => false, + 'external_id' => false, 'id' => false, 'last_login_at' => false, 'login_count' => false, @@ -200,6 +203,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'created_at', 'email' => 'email', 'email_verified' => 'email_verified', + 'external_id' => 'external_id', 'id' => 'id', 'last_login_at' => 'last_login_at', 'login_count' => 'login_count', @@ -219,6 +223,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'setCreatedAt', 'email' => 'setEmail', 'email_verified' => 'setEmailVerified', + 'external_id' => 'setExternalId', 'id' => 'setId', 'last_login_at' => 'setLastLoginAt', 'login_count' => 'setLoginCount', @@ -238,6 +243,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'getCreatedAt', 'email' => 'getEmail', 'email_verified' => 'getEmailVerified', + 'external_id' => 'getExternalId', 'id' => 'getId', 'last_login_at' => 'getLastLoginAt', 'login_count' => 'getLoginCount', @@ -308,6 +314,7 @@ public function __construct(array $data = null) $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('email_verified', $data ?? [], null); + $this->setIfExists('external_id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('last_login_at', $data ?? [], null); $this->setIfExists('login_count', $data ?? [], null); @@ -354,6 +361,9 @@ public function listInvalidProperties() if ($this->container['email_verified'] === null) { $invalidProperties[] = "'email_verified' can't be null"; } + if ($this->container['external_id'] === null) { + $invalidProperties[] = "'external_id' can't be null"; + } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -474,6 +484,33 @@ public function setEmailVerified($email_verified) return $this; } + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The external ID of the user. Only set if the user was created in a Flex app. + * + * @return self + */ + public function setExternalId($external_id) + { + if (is_null($external_id)) { + throw new \InvalidArgumentException('non-nullable external_id cannot be null'); + } + $this->container['external_id'] = $external_id; + + return $this; + } + /** * Gets id * diff --git a/generated/lib/Model/Model404Error.php b/generated/lib/Model/Model404Error.php index c8993cb..ccf0576 100644 --- a/generated/lib/Model/Model404Error.php +++ b/generated/lib/Model/Model404Error.php @@ -253,6 +253,7 @@ public function getModelName() public const CODE_SMS_TEMPLATE_NOT_FOUND = 'sms_template_not_found'; public const CODE_SOCIAL_CONNECTION_NOT_FOUND = 'social_connection_not_found'; public const CODE_USER_NOT_FOUND = 'user_not_found'; + public const CODE_NATIVE_CLIENT_NOT_FOUND = 'native_client_not_found'; /** * Gets allowable values of the enum @@ -280,6 +281,7 @@ public function getCodeAllowableValues() self::CODE_SMS_TEMPLATE_NOT_FOUND, self::CODE_SOCIAL_CONNECTION_NOT_FOUND, self::CODE_USER_NOT_FOUND, + self::CODE_NATIVE_CLIENT_NOT_FOUND, ]; } diff --git a/generated/lib/Model/SocialConnectionType.php b/generated/lib/Model/SocialConnectionType.php new file mode 100644 index 0000000..1986997 --- /dev/null +++ b/generated/lib/Model/SocialConnectionType.php @@ -0,0 +1,66 @@ + '\DateTime', 'email' => 'string', 'email_verified' => 'bool', + 'external_id' => 'string', 'id' => 'string', 'last_login_at' => '\DateTime', 'login_count' => 'int', @@ -87,6 +88,7 @@ class UserInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'created_at' => 'date-time', 'email' => null, 'email_verified' => null, + 'external_id' => null, 'id' => null, 'last_login_at' => 'date-time', 'login_count' => null, @@ -111,6 +113,7 @@ class UserInfo implements ModelInterface, ArrayAccess, \JsonSerializable 'created_at' => false, 'email' => false, 'email_verified' => false, + 'external_id' => false, 'id' => false, 'last_login_at' => false, 'login_count' => false, @@ -215,6 +218,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'created_at', 'email' => 'email', 'email_verified' => 'email_verified', + 'external_id' => 'external_id', 'id' => 'id', 'last_login_at' => 'last_login_at', 'login_count' => 'login_count', @@ -239,6 +243,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'setCreatedAt', 'email' => 'setEmail', 'email_verified' => 'setEmailVerified', + 'external_id' => 'setExternalId', 'id' => 'setId', 'last_login_at' => 'setLastLoginAt', 'login_count' => 'setLoginCount', @@ -263,6 +268,7 @@ public function isNullableSetToNull(string $property): bool 'created_at' => 'getCreatedAt', 'email' => 'getEmail', 'email_verified' => 'getEmailVerified', + 'external_id' => 'getExternalId', 'id' => 'getId', 'last_login_at' => 'getLastLoginAt', 'login_count' => 'getLoginCount', @@ -338,6 +344,7 @@ public function __construct(array $data = null) $this->setIfExists('created_at', $data ?? [], null); $this->setIfExists('email', $data ?? [], null); $this->setIfExists('email_verified', $data ?? [], null); + $this->setIfExists('external_id', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); $this->setIfExists('last_login_at', $data ?? [], null); $this->setIfExists('login_count', $data ?? [], null); @@ -389,6 +396,9 @@ public function listInvalidProperties() if ($this->container['email_verified'] === null) { $invalidProperties[] = "'email_verified' can't be null"; } + if ($this->container['external_id'] === null) { + $invalidProperties[] = "'external_id' can't be null"; + } if ($this->container['id'] === null) { $invalidProperties[] = "'id' can't be null"; } @@ -524,6 +534,33 @@ public function setEmailVerified($email_verified) return $this; } + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The external ID of the user. Only set if the user was created in a Flex app. + * + * @return self + */ + public function setExternalId($external_id) + { + if (is_null($external_id)) { + throw new \InvalidArgumentException('non-nullable external_id cannot be null'); + } + $this->container['external_id'] = $external_id; + + return $this; + } + /** * Gets id * diff --git a/generated/lib/Model/UserRecentEvent.php b/generated/lib/Model/UserRecentEvent.php index d0ac09d..e48fb61 100644 --- a/generated/lib/Model/UserRecentEvent.php +++ b/generated/lib/Model/UserRecentEvent.php @@ -64,7 +64,9 @@ class UserRecentEvent implements ModelInterface, ArrayAccess, \JsonSerializable 'ip_addr' => 'string', 'status' => '\OpenAPI\Client\Model\UserEventStatus', 'type' => 'string', - 'user_agent' => 'string' + 'user_agent' => 'string', + 'action' => '\OpenAPI\Client\Model\UserEventAction', + 'social_login_type' => '\OpenAPI\Client\Model\SocialConnectionType' ]; /** @@ -81,7 +83,9 @@ class UserRecentEvent implements ModelInterface, ArrayAccess, \JsonSerializable 'ip_addr' => null, 'status' => null, 'type' => null, - 'user_agent' => null + 'user_agent' => null, + 'action' => null, + 'social_login_type' => null ]; /** @@ -96,7 +100,9 @@ class UserRecentEvent implements ModelInterface, ArrayAccess, \JsonSerializable 'ip_addr' => false, 'status' => false, 'type' => false, - 'user_agent' => false + 'user_agent' => false, + 'action' => false, + 'social_login_type' => true ]; /** @@ -191,7 +197,9 @@ public function isNullableSetToNull(string $property): bool 'ip_addr' => 'ip_addr', 'status' => 'status', 'type' => 'type', - 'user_agent' => 'user_agent' + 'user_agent' => 'user_agent', + 'action' => 'action', + 'social_login_type' => 'social_login_type' ]; /** @@ -206,7 +214,9 @@ public function isNullableSetToNull(string $property): bool 'ip_addr' => 'setIpAddr', 'status' => 'setStatus', 'type' => 'setType', - 'user_agent' => 'setUserAgent' + 'user_agent' => 'setUserAgent', + 'action' => 'setAction', + 'social_login_type' => 'setSocialLoginType' ]; /** @@ -221,7 +231,9 @@ public function isNullableSetToNull(string $property): bool 'ip_addr' => 'getIpAddr', 'status' => 'getStatus', 'type' => 'getType', - 'user_agent' => 'getUserAgent' + 'user_agent' => 'getUserAgent', + 'action' => 'getAction', + 'social_login_type' => 'getSocialLoginType' ]; /** @@ -288,6 +300,8 @@ public function __construct(array $data = null) $this->setIfExists('status', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('user_agent', $data ?? [], null); + $this->setIfExists('action', $data ?? [], null); + $this->setIfExists('social_login_type', $data ?? [], null); } /** @@ -338,6 +352,12 @@ public function listInvalidProperties() if ($this->container['user_agent'] === null) { $invalidProperties[] = "'user_agent' can't be null"; } + if ($this->container['action'] === null) { + $invalidProperties[] = "'action' can't be null"; + } + if ($this->container['social_login_type'] === null) { + $invalidProperties[] = "'social_login_type' can't be null"; + } return $invalidProperties; } @@ -548,6 +568,67 @@ public function setUserAgent($user_agent) return $this; } + + /** + * Gets action + * + * @return \OpenAPI\Client\Model\UserEventAction + */ + public function getAction() + { + return $this->container['action']; + } + + /** + * Sets action + * + * @param \OpenAPI\Client\Model\UserEventAction $action action + * + * @return self + */ + public function setAction($action) + { + if (is_null($action)) { + throw new \InvalidArgumentException('non-nullable action cannot be null'); + } + $this->container['action'] = $action; + + return $this; + } + + /** + * Gets social_login_type + * + * @return \OpenAPI\Client\Model\SocialConnectionType + */ + public function getSocialLoginType() + { + return $this->container['social_login_type']; + } + + /** + * Sets social_login_type + * + * @param \OpenAPI\Client\Model\SocialConnectionType $social_login_type social_login_type + * + * @return self + */ + public function setSocialLoginType($social_login_type) + { + if (is_null($social_login_type)) { + array_push($this->openAPINullablesSetToNull, 'social_login_type'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('social_login_type', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['social_login_type'] = $social_login_type; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/generated/test/Model/AppInfoTest.php b/generated/test/Model/AppInfoTest.php index bc49509..f970805 100644 --- a/generated/test/Model/AppInfoTest.php +++ b/generated/test/Model/AppInfoTest.php @@ -161,6 +161,15 @@ public function testPropertyAuthOrigin() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "auto_theme_enabled" + */ + public function testPropertyAutoThemeEnabled() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "created_at" */ @@ -251,6 +260,15 @@ public function testPropertyHostedSubdomain() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "hosted_theme" + */ + public function testPropertyHostedTheme() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "id_token_lifetime" */ diff --git a/generated/test/Model/ListPaginatedUsersItemTest.php b/generated/test/Model/ListPaginatedUsersItemTest.php index b2188a3..8ceb83e 100644 --- a/generated/test/Model/ListPaginatedUsersItemTest.php +++ b/generated/test/Model/ListPaginatedUsersItemTest.php @@ -107,6 +107,15 @@ public function testPropertyEmailVerified() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "external_id" + */ + public function testPropertyExternalId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "id" */ diff --git a/generated/test/Model/SocialConnectionTypeTest.php b/generated/test/Model/SocialConnectionTypeTest.php new file mode 100644 index 0000000..76ab131 --- /dev/null +++ b/generated/test/Model/SocialConnectionTypeTest.php @@ -0,0 +1,82 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/generated/test/Model/ThemeTypeTest.php b/generated/test/Model/ThemeTypeTest.php new file mode 100644 index 0000000..5c8f659 --- /dev/null +++ b/generated/test/Model/ThemeTypeTest.php @@ -0,0 +1,82 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/generated/test/Model/UserEventActionTest.php b/generated/test/Model/UserEventActionTest.php new file mode 100644 index 0000000..22c04f4 --- /dev/null +++ b/generated/test/Model/UserEventActionTest.php @@ -0,0 +1,82 @@ +markTestIncomplete('Not implemented'); + } +} diff --git a/generated/test/Model/UserInfoTest.php b/generated/test/Model/UserInfoTest.php index 4ed9dd6..44eca32 100644 --- a/generated/test/Model/UserInfoTest.php +++ b/generated/test/Model/UserInfoTest.php @@ -107,6 +107,15 @@ public function testPropertyEmailVerified() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "external_id" + */ + public function testPropertyExternalId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "id" */ diff --git a/generated/test/Model/UserRecentEventTest.php b/generated/test/Model/UserRecentEventTest.php index 7bcd720..054f083 100644 --- a/generated/test/Model/UserRecentEventTest.php +++ b/generated/test/Model/UserRecentEventTest.php @@ -142,4 +142,22 @@ public function testPropertyUserAgent() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "action" + */ + public function testPropertyAction() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "social_login_type" + */ + public function testPropertySocialLoginType() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } }