/* 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 { GrantRequest } from './GrantRequest'; import { GrantRequestFromJSON, GrantRequestFromJSONTyped, GrantRequestToJSON, GrantRequestToJSONTyped, } from './GrantRequest'; /** * Response to an agent's access request: the request it created, plus the URL to hand to * the human it acts for. An agent has no browser, so it cannot run the approval itself -- * `fulfill_url` is what its owner opens to approve or deny. * @export * @interface AgentGrantRequestCreated */ export interface AgentGrantRequestCreated { /** * * @type {GrantRequest} * @memberof AgentGrantRequestCreated */ readonly grantRequest: GrantRequest; /** * * @type {string} * @memberof AgentGrantRequestCreated */ readonly fulfillUrl: string; } /** * Check if a given object implements the AgentGrantRequestCreated interface. */ export function instanceOfAgentGrantRequestCreated(value: object): value is AgentGrantRequestCreated { if (!('grantRequest' in value) || value['grantRequest'] === undefined) return false; if (!('fulfillUrl' in value) || value['fulfillUrl'] === undefined) return false; return true; } export function AgentGrantRequestCreatedFromJSON(json: any): AgentGrantRequestCreated { return AgentGrantRequestCreatedFromJSONTyped(json, false); } export function AgentGrantRequestCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentGrantRequestCreated { if (json == null) { return json; } return { 'grantRequest': GrantRequestFromJSON(json['grant_request']), 'fulfillUrl': json['fulfill_url'], }; } export function AgentGrantRequestCreatedToJSON(json: any): AgentGrantRequestCreated { return AgentGrantRequestCreatedToJSONTyped(json, false); } export function AgentGrantRequestCreatedToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { }; }