/* tslint:disable */
/* eslint-disable */
/**
* Squad API
* API for managing Squad resources
*
* The version of the OpenAPI document: 4.8.0
* Contact: help@meetsquad.ai
*
* 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.js';
import type { ConsiderOpportunitiesToOutcomesRequest } from './ConsiderOpportunitiesToOutcomesRequest.js';
import {
ConsiderOpportunitiesToOutcomesRequestFromJSON,
ConsiderOpportunitiesToOutcomesRequestFromJSONTyped,
ConsiderOpportunitiesToOutcomesRequestToJSON,
ConsiderOpportunitiesToOutcomesRequestToJSONTyped,
} from './ConsiderOpportunitiesToOutcomesRequest.js';
/**
*
* @export
* @interface InvokeAgentRequestOneOf5
*/
export interface InvokeAgentRequestOneOf5 {
/**
*
* @type {string}
* @memberof InvokeAgentRequestOneOf5
*/
agent: InvokeAgentRequestOneOf5AgentEnum;
/**
*
* @type {ConsiderOpportunitiesToOutcomesRequest}
* @memberof InvokeAgentRequestOneOf5
*/
data: ConsiderOpportunitiesToOutcomesRequest;
}
/**
* @export
*/
export const InvokeAgentRequestOneOf5AgentEnum = {
ConsiderOpportunitiesToOutcomes: 'considerOpportunitiesToOutcomes'
} as const;
export type InvokeAgentRequestOneOf5AgentEnum = typeof InvokeAgentRequestOneOf5AgentEnum[keyof typeof InvokeAgentRequestOneOf5AgentEnum];
/**
* Check if a given object implements the InvokeAgentRequestOneOf5 interface.
*/
export function instanceOfInvokeAgentRequestOneOf5(value: object): value is InvokeAgentRequestOneOf5 {
if (!('agent' in value) || value['agent'] === undefined) return false;
if (!('data' in value) || value['data'] === undefined) return false;
return true;
}
export function InvokeAgentRequestOneOf5FromJSON(json: any): InvokeAgentRequestOneOf5 {
return InvokeAgentRequestOneOf5FromJSONTyped(json, false);
}
export function InvokeAgentRequestOneOf5FromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeAgentRequestOneOf5 {
if (json == null) {
return json;
}
return {
'agent': json['agent'],
'data': ConsiderOpportunitiesToOutcomesRequestFromJSON(json['data']),
};
}
export function InvokeAgentRequestOneOf5ToJSON(json: any): InvokeAgentRequestOneOf5 {
return InvokeAgentRequestOneOf5ToJSONTyped(json, false);
}
export function InvokeAgentRequestOneOf5ToJSONTyped(value?: InvokeAgentRequestOneOf5 | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'agent': value['agent'],
'data': ConsiderOpportunitiesToOutcomesRequestToJSON(value['data']),
};
}