/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * 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 { FlowSetRequest } from './FlowSetRequest'; import { FlowSetRequestFromJSON, FlowSetRequestFromJSONTyped, FlowSetRequestToJSON, FlowSetRequestToJSONTyped, } from './FlowSetRequest'; /** * PromptStage Serializer * @export * @interface PatchedPromptStageRequest */ export interface PatchedPromptStageRequest { /** * * @type {string} * @memberof PatchedPromptStageRequest */ name?: string; /** * * @type {Array} * @memberof PatchedPromptStageRequest */ flowSet?: Array; /** * * @type {Array} * @memberof PatchedPromptStageRequest */ fields?: Array; /** * * @type {Array} * @memberof PatchedPromptStageRequest */ validationPolicies?: Array; } /** * Check if a given object implements the PatchedPromptStageRequest interface. */ export function instanceOfPatchedPromptStageRequest(value: object): value is PatchedPromptStageRequest { return true; } export function PatchedPromptStageRequestFromJSON(json: any): PatchedPromptStageRequest { return PatchedPromptStageRequestFromJSONTyped(json, false); } export function PatchedPromptStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedPromptStageRequest { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array).map(FlowSetRequestFromJSON)), 'fields': json['fields'] == null ? undefined : json['fields'], 'validationPolicies': json['validation_policies'] == null ? undefined : json['validation_policies'], }; } export function PatchedPromptStageRequestToJSON(json: any): PatchedPromptStageRequest { return PatchedPromptStageRequestToJSONTyped(json, false); } export function PatchedPromptStageRequestToJSONTyped(value?: PatchedPromptStageRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array).map(FlowSetRequestToJSON)), 'fields': value['fields'], 'validation_policies': value['validationPolicies'], }; }