Skip to content

The platform for continuously improving AI agents.

3.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 { ExecutionSourceRequest } from './ExecutionSourceRequest';
import {
    ExecutionSourceRequestFromJSON,
    ExecutionSourceRequestFromJSONTyped,
    ExecutionSourceRequestToJSON,
    ExecutionSourceRequestToJSONTyped,
} from './ExecutionSourceRequest';
import type { AuthorityEnum } from './AuthorityEnum';
import {
    AuthorityEnumFromJSON,
    AuthorityEnumFromJSONTyped,
    AuthorityEnumToJSON,
    AuthorityEnumToJSONTyped,
} from './AuthorityEnum';
import type { FamiliesEnum } from './FamiliesEnum';
import {
    FamiliesEnumFromJSON,
    FamiliesEnumFromJSONTyped,
    FamiliesEnumToJSON,
    FamiliesEnumToJSONTyped,
} from './FamiliesEnum';

/**
 *
 * @export
 * @interface ExecutionMandateRequest
 */
export interface ExecutionMandateRequest {
    /**
     *
     * @type {AuthorityEnum}
     * @memberof ExecutionMandateRequest
     */
    authority: AuthorityEnum;
    /**
     *
     * @type {Array<FamiliesEnum>}
     * @memberof ExecutionMandateRequest
     */
    families: Array<FamiliesEnum>;
    /**
     *
     * @type {string}
     * @memberof ExecutionMandateRequest
     */
    experiment?: string | null;
    /**
     *
     * @type {Array<ExecutionSourceRequest>}
     * @memberof ExecutionMandateRequest
     */
    sources?: Array<ExecutionSourceRequest>;
    /**
     *
     * @type {{ [key: string]: any; }}
     * @memberof ExecutionMandateRequest
     */
    constraints?: { [key: string]: any; };
}



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

export function ExecutionMandateRequestFromJSON(json: any): ExecutionMandateRequest {
    return ExecutionMandateRequestFromJSONTyped(json, false);
}

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

        'authority': AuthorityEnumFromJSON(json['authority']),
        'families': ((json['families'] as Array<any>).map(FamiliesEnumFromJSON)),
        'experiment': json['experiment'] == null ? undefined : json['experiment'],
        'sources': json['sources'] == null ? undefined : ((json['sources'] as Array<any>).map(ExecutionSourceRequestFromJSON)),
        'constraints': json['constraints'] == null ? undefined : json['constraints'],
    };
}

export function ExecutionMandateRequestToJSON(json: any): ExecutionMandateRequest {
    return ExecutionMandateRequestToJSONTyped(json, false);
}

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

    return {

        'authority': AuthorityEnumToJSON(value['authority']),
        'families': ((value['families'] as Array<any>).map(FamiliesEnumToJSON)),
        'experiment': value['experiment'],
        'sources': value['sources'] == null ? undefined : ((value['sources'] as Array<any>).map(ExecutionSourceRequestToJSON)),
        'constraints': value['constraints'],
    };
}