Skip to content

The platform for continuously improving AI agents.

2.4 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';
/**
 *
 * @export
 * @interface ExperimentEventReceipt
 */
export interface ExperimentEventReceipt {
    /**
     *
     * @type {string}
     * @memberof ExperimentEventReceipt
     */
    eventId: string;
    /**
     *
     * @type {string}
     * @memberof ExperimentEventReceipt
     */
    state: string;
    /**
     *
     * @type {Date}
     * @memberof ExperimentEventReceipt
     */
    receivedAt: Date;
    /**
     *
     * @type {string}
     * @memberof ExperimentEventReceipt
     */
    inspect: string;
}

/**
 * Check if a given object implements the ExperimentEventReceipt interface.
 */
export function instanceOfExperimentEventReceipt(value: object): value is ExperimentEventReceipt {
    if (!('eventId' in value) || value['eventId'] === undefined) return false;
    if (!('state' in value) || value['state'] === undefined) return false;
    if (!('receivedAt' in value) || value['receivedAt'] === undefined) return false;
    if (!('inspect' in value) || value['inspect'] === undefined) return false;
    return true;
}

export function ExperimentEventReceiptFromJSON(json: any): ExperimentEventReceipt {
    return ExperimentEventReceiptFromJSONTyped(json, false);
}

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

        'eventId': json['event_id'],
        'state': json['state'],
        'receivedAt': (new Date(json['received_at'])),
        'inspect': json['inspect'],
    };
}

export function ExperimentEventReceiptToJSON(json: any): ExperimentEventReceipt {
    return ExperimentEventReceiptToJSONTyped(json, false);
}

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

    return {

        'event_id': value['eventId'],
        'state': value['state'],
        'received_at': value['receivedAt'].toISOString(),
        'inspect': value['inspect'],
    };
}