mirror of
https://github.com/goauthentik/authentik
synced 2026-05-11 17:36:35 +02:00
* fix relObjId type Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix slot comments Signed-off-by: Jens Langhammer <jens@goauthentik.io> * sigh Signed-off-by: Jens Langhammer <jens@goauthentik.io> * use prettier on generated ts code Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
93 lines
2.3 KiB
TypeScript
Generated
93 lines
2.3 KiB
TypeScript
Generated
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* authentik
|
|
* Making authentication simple.
|
|
*
|
|
* The version of the OpenAPI document: 2026.5.0-rc1
|
|
* Contact: hello@goauthentik.io
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
/**
|
|
* User agent device
|
|
* @export
|
|
* @interface AuthenticatedSessionUserAgentDevice
|
|
*/
|
|
export interface AuthenticatedSessionUserAgentDevice {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof AuthenticatedSessionUserAgentDevice
|
|
*/
|
|
brand: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof AuthenticatedSessionUserAgentDevice
|
|
*/
|
|
family: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof AuthenticatedSessionUserAgentDevice
|
|
*/
|
|
model: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the AuthenticatedSessionUserAgentDevice interface.
|
|
*/
|
|
export function instanceOfAuthenticatedSessionUserAgentDevice(
|
|
value: object,
|
|
): value is AuthenticatedSessionUserAgentDevice {
|
|
if (!("brand" in value) || value["brand"] === undefined) return false;
|
|
if (!("family" in value) || value["family"] === undefined) return false;
|
|
if (!("model" in value) || value["model"] === undefined) return false;
|
|
return true;
|
|
}
|
|
|
|
export function AuthenticatedSessionUserAgentDeviceFromJSON(
|
|
json: any,
|
|
): AuthenticatedSessionUserAgentDevice {
|
|
return AuthenticatedSessionUserAgentDeviceFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function AuthenticatedSessionUserAgentDeviceFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): AuthenticatedSessionUserAgentDevice {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
brand: json["brand"],
|
|
family: json["family"],
|
|
model: json["model"],
|
|
};
|
|
}
|
|
|
|
export function AuthenticatedSessionUserAgentDeviceToJSON(
|
|
json: any,
|
|
): AuthenticatedSessionUserAgentDevice {
|
|
return AuthenticatedSessionUserAgentDeviceToJSONTyped(json, false);
|
|
}
|
|
|
|
export function AuthenticatedSessionUserAgentDeviceToJSONTyped(
|
|
value?: AuthenticatedSessionUserAgentDevice | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
brand: value["brand"],
|
|
family: value["family"],
|
|
model: value["model"],
|
|
};
|
|
}
|