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 SignalSubscriptionRequest
*/
export interface SignalSubscriptionRequest {
/**
*
* @type {string}
* @memberof SignalSubscriptionRequest
*/
project: string;
/**
*
* @type {string}
* @memberof SignalSubscriptionRequest
*/
capability?: string | null;
/**
*
* @type {SignalTypeEnum}
* @memberof SignalSubscriptionRequest
*/
signalType: SignalTypeEnum;
/**
*
* @type {boolean}
* @memberof SignalSubscriptionRequest
*/
enabled?: boolean;
/**
*
* @type {any}
* @memberof SignalSubscriptionRequest
*/
config?: any | null;
}
/**
* Check if a given object implements the SignalSubscriptionRequest interface.
*/
export function instanceOfSignalSubscriptionRequest(value: object): value is SignalSubscriptionRequest {
if (!('project' in value) || value['project'] === undefined) return false;
if (!('signalType' in value) || value['signalType'] === undefined) return false;
return true;
}
export function SignalSubscriptionRequestFromJSON(json: any): SignalSubscriptionRequest {
return SignalSubscriptionRequestFromJSONTyped(json, false);
}
export function SignalSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignalSubscriptionRequest {
if (json == null) {
return json;
}
return {
'project': json['project'],
'capability': json['capability'] == null ? undefined : json['capability'],
'signalType': SignalTypeEnumFromJSON(json['signal_type']),
'enabled': json['enabled'] == null ? undefined : json['enabled'],
'config': json['config'] == null ? undefined : json['config'],
};
}
export function SignalSubscriptionRequestToJSON(json: any): SignalSubscriptionRequest {
return SignalSubscriptionRequestToJSONTyped(json, false);
}
export function SignalSubscriptionRequestToJSONTyped(value?: SignalSubscriptionRequest | 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'],
};
}