Skip to content

The platform for continuously improving AI agents.

2.6 KB
Raw Blame
/* 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 { ExecutionSourceKindEnum } from './ExecutionSourceKindEnum';
import {
    ExecutionSourceKindEnumFromJSON,
    ExecutionSourceKindEnumFromJSONTyped,
    ExecutionSourceKindEnumToJSON,
    ExecutionSourceKindEnumToJSONTyped,
} from './ExecutionSourceKindEnum';

/**
 *
 * @export
 * @interface ExecutionSourceRequest
 */
export interface ExecutionSourceRequest {
    /**
     *
     * @type {ExecutionSourceKindEnum}
     * @memberof ExecutionSourceRequest
     */
    kind: ExecutionSourceKindEnum;
    /**
     *
     * @type {string}
     * @memberof ExecutionSourceRequest
     */
    id: string;
    /**
     *
     * @type {string}
     * @memberof ExecutionSourceRequest
     */
    fingerprint?: string | null;
    /**
     *
     * @type {boolean}
     * @memberof ExecutionSourceRequest
     */
    descendants?: boolean;
}



/**
 * Check if a given object implements the ExecutionSourceRequest interface.
 */
export function instanceOfExecutionSourceRequest(value: object): value is ExecutionSourceRequest {
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('id' in value) || value['id'] === undefined) return false;
    return true;
}

export function ExecutionSourceRequestFromJSON(json: any): ExecutionSourceRequest {
    return ExecutionSourceRequestFromJSONTyped(json, false);
}

export function ExecutionSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionSourceRequest {
    if (json == null) {
        return json;
    }
    return {

        'kind': ExecutionSourceKindEnumFromJSON(json['kind']),
        'id': json['id'],
        'fingerprint': json['fingerprint'] == null ? undefined : json['fingerprint'],
        'descendants': json['descendants'] == null ? undefined : json['descendants'],
    };
}

export function ExecutionSourceRequestToJSON(json: any): ExecutionSourceRequest {
    return ExecutionSourceRequestToJSONTyped(json, false);
}

export function ExecutionSourceRequestToJSONTyped(value?: ExecutionSourceRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'kind': ExecutionSourceKindEnumToJSON(value['kind']),
        'id': value['id'],
        'fingerprint': value['fingerprint'],
        'descendants': value['descendants'],
    };
}