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 { ConnectorSourceProject } from './ConnectorSourceProject';
import {
ConnectorSourceProjectFromJSON,
ConnectorSourceProjectFromJSONTyped,
ConnectorSourceProjectToJSON,
ConnectorSourceProjectToJSONTyped,
} from './ConnectorSourceProject';
import type { ConnectorCapabilities } from './ConnectorCapabilities';
import {
ConnectorCapabilitiesFromJSON,
ConnectorCapabilitiesFromJSONTyped,
ConnectorCapabilitiesToJSON,
ConnectorCapabilitiesToJSONTyped,
} from './ConnectorCapabilities';
/**
*
* @export
* @interface ConnectorVerifyResponse
*/
export interface ConnectorVerifyResponse {
/**
*
* @type {boolean}
* @memberof ConnectorVerifyResponse
*/
ok: boolean;
/**
*
* @type {string}
* @memberof ConnectorVerifyResponse
*/
apiVersion?: string;
/**
*
* @type {Array<ConnectorSourceProject>}
* @memberof ConnectorVerifyResponse
*/
projects?: Array<ConnectorSourceProject>;
/**
*
* @type {ConnectorCapabilities}
* @memberof ConnectorVerifyResponse
*/
capabilities?: ConnectorCapabilities;
/**
*
* @type {string}
* @memberof ConnectorVerifyResponse
*/
detail?: string;
}
/**
* Check if a given object implements the ConnectorVerifyResponse interface.
*/
export function instanceOfConnectorVerifyResponse(value: object): value is ConnectorVerifyResponse {
if (!('ok' in value) || value['ok'] === undefined) return false;
return true;
}
export function ConnectorVerifyResponseFromJSON(json: any): ConnectorVerifyResponse {
return ConnectorVerifyResponseFromJSONTyped(json, false);
}
export function ConnectorVerifyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorVerifyResponse {
if (json == null) {
return json;
}
return {
'ok': json['ok'],
'apiVersion': json['api_version'] == null ? undefined : json['api_version'],
'projects': json['projects'] == null ? undefined : ((json['projects'] as Array<any>).map(ConnectorSourceProjectFromJSON)),
'capabilities': json['capabilities'] == null ? undefined : ConnectorCapabilitiesFromJSON(json['capabilities']),
'detail': json['detail'] == null ? undefined : json['detail'],
};
}
export function ConnectorVerifyResponseToJSON(json: any): ConnectorVerifyResponse {
return ConnectorVerifyResponseToJSONTyped(json, false);
}
export function ConnectorVerifyResponseToJSONTyped(value?: ConnectorVerifyResponse | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'ok': value['ok'],
'api_version': value['apiVersion'],
'projects': value['projects'] == null ? undefined : ((value['projects'] as Array<any>).map(ConnectorSourceProjectToJSON)),
'capabilities': ConnectorCapabilitiesToJSON(value['capabilities']),
'detail': value['detail'],
};
}