Skip to content

The platform for continuously improving AI agents.

1.9 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 BindingStateRequest
 */
export interface BindingStateRequest {
    /**
     *
     * @type {number}
     * @memberof BindingStateRequest
     */
    expectedVersion: number;
    /**
     *
     * @type {boolean}
     * @memberof BindingStateRequest
     */
    enabled: boolean;
}

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

export function BindingStateRequestFromJSON(json: any): BindingStateRequest {
    return BindingStateRequestFromJSONTyped(json, false);
}

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

        'expectedVersion': json['expected_version'],
        'enabled': json['enabled'],
    };
}

export function BindingStateRequestToJSON(json: any): BindingStateRequest {
    return BindingStateRequestToJSONTyped(json, false);
}

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

    return {

        'expected_version': value['expectedVersion'],
        'enabled': value['enabled'],
    };
}