-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Nov 28, 2023
1 parent
32db17c
commit d71f0fe
Showing
9 changed files
with
262 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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 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 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,92 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Passage Management API | ||
* Passage\'s management API to manage your Passage apps and users. | ||
* | ||
* The version of the OpenAPI document: 1 | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
import type { TtlDisplayUnit } from './TtlDisplayUnit'; | ||
import { | ||
TtlDisplayUnitFromJSON, | ||
TtlDisplayUnitFromJSONTyped, | ||
TtlDisplayUnitToJSON, | ||
} from './TtlDisplayUnit'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface MagicLinkAuthMethod | ||
*/ | ||
export interface MagicLinkAuthMethod { | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof MagicLinkAuthMethod | ||
*/ | ||
enabled: boolean; | ||
/** | ||
* Maximum time (IN SECONDS) for the auth to expire. | ||
* @type {number} | ||
* @memberof MagicLinkAuthMethod | ||
*/ | ||
ttl: number; | ||
/** | ||
* | ||
* @type {TtlDisplayUnit} | ||
* @memberof MagicLinkAuthMethod | ||
* @deprecated | ||
*/ | ||
ttl_display_unit: TtlDisplayUnit; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the MagicLinkAuthMethod interface. | ||
*/ | ||
export function instanceOfMagicLinkAuthMethod(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "enabled" in value; | ||
isInstance = isInstance && "ttl" in value; | ||
isInstance = isInstance && "ttl_display_unit" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function MagicLinkAuthMethodFromJSON(json: any): MagicLinkAuthMethod { | ||
return MagicLinkAuthMethodFromJSONTyped(json, false); | ||
} | ||
|
||
export function MagicLinkAuthMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicLinkAuthMethod { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'enabled': json['enabled'], | ||
'ttl': json['ttl'], | ||
'ttl_display_unit': TtlDisplayUnitFromJSON(json['ttl_display_unit']), | ||
}; | ||
} | ||
|
||
export function MagicLinkAuthMethodToJSON(value?: MagicLinkAuthMethod | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'enabled': value.enabled, | ||
'ttl': value.ttl, | ||
'ttl_display_unit': TtlDisplayUnitToJSON(value.ttl_display_unit), | ||
}; | ||
} | ||
|
This file contains 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 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
Oops, something went wrong.