/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.8.0-rc7 * 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'; /** * Body for an agent requesting access for itself. Deliberately narrower than * `GrantRequestCreateSerializer`: an agent may not pick its own expiry, which is * derived from the granting rules and capped by the agent's own lifetime. * @export * @interface AgentGrantRequestCreateRequest */ export interface AgentGrantRequestCreateRequest { /** * * @type {Array} * @memberof AgentGrantRequestCreateRequest */ pbms: Array; } /** * Check if a given object implements the AgentGrantRequestCreateRequest interface. */ export function instanceOfAgentGrantRequestCreateRequest(value: object): value is AgentGrantRequestCreateRequest { if (!('pbms' in value) || value['pbms'] === undefined) return false; return true; } export function AgentGrantRequestCreateRequestFromJSON(json: any): AgentGrantRequestCreateRequest { return AgentGrantRequestCreateRequestFromJSONTyped(json, false); } export function AgentGrantRequestCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentGrantRequestCreateRequest { if (json == null) { return json; } return { 'pbms': json['pbms'], }; } export function AgentGrantRequestCreateRequestToJSON(json: any): AgentGrantRequestCreateRequest { return AgentGrantRequestCreateRequestToJSONTyped(json, false); } export function AgentGrantRequestCreateRequestToJSONTyped(value?: AgentGrantRequestCreateRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'pbms': value['pbms'], }; }