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 { SignalTypeEnum } from './SignalTypeEnum';
import {
SignalTypeEnumFromJSON,
SignalTypeEnumFromJSONTyped,
SignalTypeEnumToJSON,
SignalTypeEnumToJSONTyped,
} from './SignalTypeEnum';
/**
*
* @export
* @interface PatchedSignalSubscriptionRequest
*/
export interface PatchedSignalSubscriptionRequest {
/**
*
* @type {string}
* @memberof PatchedSignalSubscriptionRequest
*/
project?: string;
/**
*
* @type {string}
* @memberof PatchedSignalSubscriptionRequest
*/
capability?: string | null;
/**
*
* @type {SignalTypeEnum}
* @memberof PatchedSignalSubscriptionRequest
*/
signalType?: SignalTypeEnum;
/**
*
* @type {boolean}
* @memberof PatchedSignalSubscriptionRequest
*/
enabled?: boolean;
/**
*
* @type {any}
* @memberof PatchedSignalSubscriptionRequest
*/
config?: any | null;
}
/**
* Check if a given object implements the PatchedSignalSubscriptionRequest interface.
*/
export function instanceOfPatchedSignalSubscriptionRequest(value: object): value is PatchedSignalSubscriptionRequest {
return true;
}
export function PatchedSignalSubscriptionRequestFromJSON(json: any): PatchedSignalSubscriptionRequest {
return PatchedSignalSubscriptionRequestFromJSONTyped(json, false);
}
export function PatchedSignalSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSignalSubscriptionRequest {
if (json == null) {
return json;
}
return {
'project': json['project'] == null ? undefined : json['project'],
'capability': json['capability'] == null ? undefined : json['capability'],
'signalType': json['signal_type'] == null ? undefined : SignalTypeEnumFromJSON(json['signal_type']),
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'config': json['config'] == null ? undefined : json['config'],
};
}
export function PatchedSignalSubscriptionRequestToJSON(json: any): PatchedSignalSubscriptionRequest {
return PatchedSignalSubscriptionRequestToJSONTyped(json, false);
}
export function PatchedSignalSubscriptionRequestToJSONTyped(value?: PatchedSignalSubscriptionRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'capability': value['capability'],
'signal_type': SignalTypeEnumToJSON(value['signalType']),
'enabled': value['enabled'],
'config': value['config'],
};
}