Skip to content
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

SDK updates #60

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 2 additions & 0 deletions docs/Model/AppInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
**created_at** | **\DateTime** | |
**default_language** | **string** | |
**id** | **string** | |
Expand All @@ -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** | |
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/CreateMagicLinkRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
Expand Down
1 change: 1 addition & 0 deletions docs/Model/ListPaginatedUsersItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
Expand Down
8 changes: 8 additions & 0 deletions docs/Model/ThemeType.md
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions docs/Model/UserInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** | |
Expand Down
3 changes: 3 additions & 0 deletions generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ docs/Model/OtpAuthMethod.md
docs/Model/PaginatedLinks.md
docs/Model/PasskeysAuthMethod.md
docs/Model/Technologies.md
docs/Model/ThemeType.md
docs/Model/TtlDisplayUnit.md
docs/Model/UpdateUserRequest.md
docs/Model/UserEventStatus.md
Expand Down Expand Up @@ -94,6 +95,7 @@ lib/Model/OtpAuthMethod.php
lib/Model/PaginatedLinks.php
lib/Model/PasskeysAuthMethod.php
lib/Model/Technologies.php
lib/Model/ThemeType.php
lib/Model/TtlDisplayUnit.php
lib/Model/UpdateUserRequest.php
lib/Model/UserEventStatus.php
Expand Down Expand Up @@ -145,6 +147,7 @@ test/Model/OtpAuthMethodTest.php
test/Model/PaginatedLinksTest.php
test/Model/PasskeysAuthMethodTest.php
test/Model/TechnologiesTest.php
test/Model/ThemeTypeTest.php
test/Model/TtlDisplayUnitTest.php
test/Model/UpdateUserRequestTest.php
test/Model/UserEventStatusTest.php
Expand Down
1 change: 1 addition & 0 deletions generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Class | Method | HTTP request | Description
- [PaginatedLinks](docs/Model/PaginatedLinks.md)
- [PasskeysAuthMethod](docs/Model/PasskeysAuthMethod.md)
- [Technologies](docs/Model/Technologies.md)
- [ThemeType](docs/Model/ThemeType.md)
- [TtlDisplayUnit](docs/Model/TtlDisplayUnit.md)
- [UpdateUserRequest](docs/Model/UpdateUserRequest.md)
- [UserEventStatus](docs/Model/UserEventStatus.md)
Expand Down
74 changes: 74 additions & 0 deletions generated/lib/Model/AppInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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";
}
Expand All @@ -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";
}
Expand Down Expand Up @@ -932,6 +952,33 @@ public function setAuthOrigin($auth_origin)
return $this;
}

/**
* Gets auto_theme_enabled
*
* @return bool
*/
public function getAutoThemeEnabled()
{
return $this->container['auto_theme_enabled'];
}

/**
* Sets auto_theme_enabled
*
* @param bool $auto_theme_enabled auto_theme_enabled
*
* @return self
*/
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
*
Expand Down Expand Up @@ -1202,6 +1249,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
*
Expand Down
2 changes: 1 addition & 1 deletion generated/lib/Model/CreateMagicLinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
37 changes: 37 additions & 0 deletions generated/lib/Model/ListPaginatedUsersItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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";
}
Expand Down Expand Up @@ -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
*
Expand Down
Loading
Loading