/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.8.0 * 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. */ import { mapValues } from '../runtime'; import type { Agent } from './Agent'; import { AgentFromJSON, AgentFromJSONTyped, AgentToJSON, AgentToJSONTyped, } from './Agent'; /** * Response returned once when an agent is created, carrying the one-time API token. * @export * @interface AgentCreated */ export interface AgentCreated { /** * * @type {Agent} * @memberof AgentCreated */ readonly agent: Agent; /** * * @type {string} * @memberof AgentCreated */ readonly token: string; } /** * Check if a given object implements the AgentCreated interface. */ export function instanceOfAgentCreated(value: object): value is AgentCreated { if (!('agent' in value) || value['agent'] === undefined) return false; if (!('token' in value) || value['token'] === undefined) return false; return true; } export function AgentCreatedFromJSON(json: any): AgentCreated { return AgentCreatedFromJSONTyped(json, false); } export function AgentCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCreated { if (json == null) { return json; } return { 'agent': AgentFromJSON(json['agent']), 'token': json['token'], }; } export function AgentCreatedToJSON(json: any): AgentCreated { return AgentCreatedToJSONTyped(json, false); } export function AgentCreatedToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { }; }