/* 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'; /** * Base serializer class which doesn't implement create/update methods * @export * @interface GrantRequestCreateRequest */ export interface GrantRequestCreateRequest { /** * * @type {Array} * @memberof GrantRequestCreateRequest */ pbms: Array; /** * Optional override for how long the grant should last once approved. Clamped to the granting rule binding(s)' expiry_granted_max. * @type {string} * @memberof GrantRequestCreateRequest */ expiry?: string; } /** * Check if a given object implements the GrantRequestCreateRequest interface. */ export function instanceOfGrantRequestCreateRequest(value: object): value is GrantRequestCreateRequest { if (!('pbms' in value) || value['pbms'] === undefined) return false; return true; } export function GrantRequestCreateRequestFromJSON(json: any): GrantRequestCreateRequest { return GrantRequestCreateRequestFromJSONTyped(json, false); } export function GrantRequestCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantRequestCreateRequest { if (json == null) { return json; } return { 'pbms': json['pbms'], 'expiry': json['expiry'] == null ? undefined : json['expiry'], }; } export function GrantRequestCreateRequestToJSON(json: any): GrantRequestCreateRequest { return GrantRequestCreateRequestToJSONTyped(json, false); } export function GrantRequestCreateRequestToJSONTyped(value?: GrantRequestCreateRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'pbms': value['pbms'], 'expiry': value['expiry'], }; }