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 { ConnectorTypeEnum } from './ConnectorTypeEnum';
import {
ConnectorTypeEnumFromJSON,
ConnectorTypeEnumFromJSONTyped,
ConnectorTypeEnumToJSON,
ConnectorTypeEnumToJSONTyped,
} from './ConnectorTypeEnum';
/**
*
* @export
* @interface PatchedConnectorCredentialRequest
*/
export interface PatchedConnectorCredentialRequest {
/**
*
* @type {string}
* @memberof PatchedConnectorCredentialRequest
*/
project?: string;
/**
*
* @type {string}
* @memberof PatchedConnectorCredentialRequest
*/
name?: string;
/**
*
* @type {ConnectorTypeEnum}
* @memberof PatchedConnectorCredentialRequest
*/
connectorType?: ConnectorTypeEnum;
/**
*
* @type {string}
* @memberof PatchedConnectorCredentialRequest
*/
baseUrl?: string;
/**
*
* @type {string}
* @memberof PatchedConnectorCredentialRequest
*/
apiKey?: string;
/**
*
* @type {string}
* @memberof PatchedConnectorCredentialRequest
*/
apiSecret?: string;
/**
*
* @type {boolean}
* @memberof PatchedConnectorCredentialRequest
*/
autoSyncEnabled?: boolean;
/**
*
* @type {number}
* @memberof PatchedConnectorCredentialRequest
*/
pollIntervalSeconds?: number;
}
/**
* Check if a given object implements the PatchedConnectorCredentialRequest interface.
*/
export function instanceOfPatchedConnectorCredentialRequest(value: object): value is PatchedConnectorCredentialRequest {
return true;
}
export function PatchedConnectorCredentialRequestFromJSON(json: any): PatchedConnectorCredentialRequest {
return PatchedConnectorCredentialRequestFromJSONTyped(json, false);
}
export function PatchedConnectorCredentialRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedConnectorCredentialRequest {
if (json == null) {
return json;
}
return {
'project': json['project'] == null ? undefined : json['project'],
'name': json['name'] == null ? undefined : json['name'],
'connectorType': json['connector_type'] == null ? undefined : ConnectorTypeEnumFromJSON(json['connector_type']),
'baseUrl': json['base_url'] == null ? undefined : json['base_url'],
'apiKey': json['api_key'] == null ? undefined : json['api_key'],
'apiSecret': json['api_secret'] == null ? undefined : json['api_secret'],
'autoSyncEnabled': json['auto_sync_enabled'] == null ? undefined : json['auto_sync_enabled'],
'pollIntervalSeconds': json['poll_interval_seconds'] == null ? undefined : json['poll_interval_seconds'],
};
}
export function PatchedConnectorCredentialRequestToJSON(json: any): PatchedConnectorCredentialRequest {
return PatchedConnectorCredentialRequestToJSONTyped(json, false);
}
export function PatchedConnectorCredentialRequestToJSONTyped(value?: PatchedConnectorCredentialRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'name': value['name'],
'connector_type': ConnectorTypeEnumToJSON(value['connectorType']),
'base_url': value['baseUrl'],
'api_key': value['apiKey'],
'api_secret': value['apiSecret'],
'auto_sync_enabled': value['autoSyncEnabled'],
'poll_interval_seconds': value['pollIntervalSeconds'],
};
}