The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.0.0
*
*
* 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 { AssetInputKindEnum } from './AssetInputKindEnum';
import {
AssetInputKindEnumFromJSON,
AssetInputKindEnumFromJSONTyped,
AssetInputKindEnumToJSON,
AssetInputKindEnumToJSONTyped,
} from './AssetInputKindEnum';
/**
*
* @export
* @interface AssetInputRequest
*/
export interface AssetInputRequest {
/**
*
* @type {string}
* @memberof AssetInputRequest
*/
project: string;
/**
*
* @type {AssetInputKindEnum}
* @memberof AssetInputRequest
*/
kind: AssetInputKindEnum;
/**
*
* @type {string}
* @memberof AssetInputRequest
*/
name: string;
/**
*
* @type {any}
* @memberof AssetInputRequest
*/
specification: any | null;
/**
*
* @type {string}
* @memberof AssetInputRequest
*/
parent?: string | null;
/**
*
* @type {string}
* @memberof AssetInputRequest
*/
requestKey: string;
}
/**
* Check if a given object implements the AssetInputRequest interface.
*/
export function instanceOfAssetInputRequest(value: object): value is AssetInputRequest {
if (!('project' in value) || value['project'] === undefined) return false;
if (!('kind' in value) || value['kind'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('specification' in value) || value['specification'] === undefined) return false;
if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
return true;
}
export function AssetInputRequestFromJSON(json: any): AssetInputRequest {
return AssetInputRequestFromJSONTyped(json, false);
}
export function AssetInputRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetInputRequest {
if (json == null) {
return json;
}
return {
'project': json['project'],
'kind': AssetInputKindEnumFromJSON(json['kind']),
'name': json['name'],
'specification': json['specification'],
'parent': json['parent'] == null ? undefined : json['parent'],
'requestKey': json['request_key'],
};
}
export function AssetInputRequestToJSON(json: any): AssetInputRequest {
return AssetInputRequestToJSONTyped(json, false);
}
export function AssetInputRequestToJSONTyped(value?: AssetInputRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'kind': AssetInputKindEnumToJSON(value['kind']),
'name': value['name'],
'specification': value['specification'],
'parent': value['parent'],
'request_key': value['requestKey'],
};
}