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 { ExecutionEnum } from './ExecutionEnum';
import {
ExecutionEnumFromJSON,
ExecutionEnumFromJSONTyped,
ExecutionEnumToJSON,
ExecutionEnumToJSONTyped,
} from './ExecutionEnum';
/**
*
* @export
* @interface CellTransformation
*/
export interface CellTransformation {
/**
*
* @type {ExecutionEnum}
* @memberof CellTransformation
*/
execution: ExecutionEnum;
/**
*
* @type {string}
* @memberof CellTransformation
*/
run: string | null;
/**
*
* @type {string}
* @memberof CellTransformation
*/
pipeline: string | null;
/**
*
* @type {number}
* @memberof CellTransformation
*/
revision: number | null;
/**
*
* @type {string}
* @memberof CellTransformation
*/
_package: string | null;
/**
*
* @type {string}
* @memberof CellTransformation
*/
packageSha256: string;
/**
*
* @type {string}
* @memberof CellTransformation
*/
entrypoint: string;
/**
*
* @type {string}
* @memberof CellTransformation
*/
provenance: string;
}
/**
* Check if a given object implements the CellTransformation interface.
*/
export function instanceOfCellTransformation(value: object): value is CellTransformation {
if (!('execution' in value) || value['execution'] === undefined) return false;
if (!('run' in value) || value['run'] === undefined) return false;
if (!('pipeline' in value) || value['pipeline'] === undefined) return false;
if (!('revision' in value) || value['revision'] === undefined) return false;
if (!('_package' in value) || value['_package'] === undefined) return false;
if (!('packageSha256' in value) || value['packageSha256'] === undefined) return false;
if (!('entrypoint' in value) || value['entrypoint'] === undefined) return false;
if (!('provenance' in value) || value['provenance'] === undefined) return false;
return true;
}
export function CellTransformationFromJSON(json: any): CellTransformation {
return CellTransformationFromJSONTyped(json, false);
}
export function CellTransformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CellTransformation {
if (json == null) {
return json;
}
return {
'execution': ExecutionEnumFromJSON(json['execution']),
'run': json['run'],
'pipeline': json['pipeline'],
'revision': json['revision'],
'_package': json['package'],
'packageSha256': json['package_sha256'],
'entrypoint': json['entrypoint'],
'provenance': json['provenance'],
};
}
export function CellTransformationToJSON(json: any): CellTransformation {
return CellTransformationToJSONTyped(json, false);
}
export function CellTransformationToJSONTyped(value?: CellTransformation | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'execution': ExecutionEnumToJSON(value['execution']),
'run': value['run'],
'pipeline': value['pipeline'],
'revision': value['revision'],
'package': value['_package'],
'package_sha256': value['packageSha256'],
'entrypoint': value['entrypoint'],
'provenance': value['provenance'],
};
}