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 { ConnectorCredential } from './ConnectorCredential';
import {
ConnectorCredentialFromJSON,
ConnectorCredentialFromJSONTyped,
ConnectorCredentialToJSON,
ConnectorCredentialToJSONTyped,
} from './ConnectorCredential';
/**
*
* @export
* @interface PaginatedConnectorCredentialList
*/
export interface PaginatedConnectorCredentialList {
/**
*
* @type {number}
* @memberof PaginatedConnectorCredentialList
*/
count: number;
/**
*
* @type {string}
* @memberof PaginatedConnectorCredentialList
*/
next?: string | null;
/**
*
* @type {string}
* @memberof PaginatedConnectorCredentialList
*/
previous?: string | null;
/**
*
* @type {Array<ConnectorCredential>}
* @memberof PaginatedConnectorCredentialList
*/
results: Array<ConnectorCredential>;
}
/**
* Check if a given object implements the PaginatedConnectorCredentialList interface.
*/
export function instanceOfPaginatedConnectorCredentialList(value: object): value is PaginatedConnectorCredentialList {
if (!('count' in value) || value['count'] === undefined) return false;
if (!('results' in value) || value['results'] === undefined) return false;
return true;
}
export function PaginatedConnectorCredentialListFromJSON(json: any): PaginatedConnectorCredentialList {
return PaginatedConnectorCredentialListFromJSONTyped(json, false);
}
export function PaginatedConnectorCredentialListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConnectorCredentialList {
if (json == null) {
return json;
}
return {
'count': json['count'],
'next': json['next'] == null ? undefined : json['next'],
'previous': json['previous'] == null ? undefined : json['previous'],
'results': ((json['results'] as Array<any>).map(ConnectorCredentialFromJSON)),
};
}
export function PaginatedConnectorCredentialListToJSON(json: any): PaginatedConnectorCredentialList {
return PaginatedConnectorCredentialListToJSONTyped(json, false);
}
export function PaginatedConnectorCredentialListToJSONTyped(value?: PaginatedConnectorCredentialList | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'count': value['count'],
'next': value['next'],
'previous': value['previous'],
'results': ((value['results'] as Array<any>).map(ConnectorCredentialToJSON)),
};
}