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';
/**
*
* @export
* @interface ConsentDetails
*/
export interface ConsentDetails {
/**
*
* @type {string}
* @memberof ConsentDetails
*/
clientName: string;
/**
*
* @type {string}
* @memberof ConsentDetails
*/
redirectUri: string;
/**
*
* @type {Array<string>}
* @memberof ConsentDetails
*/
scopes: Array<string>;
}
/**
* Check if a given object implements the ConsentDetails interface.
*/
export function instanceOfConsentDetails(value: object): value is ConsentDetails {
if (!('clientName' in value) || value['clientName'] === undefined) return false;
if (!('redirectUri' in value) || value['redirectUri'] === undefined) return false;
if (!('scopes' in value) || value['scopes'] === undefined) return false;
return true;
}
export function ConsentDetailsFromJSON(json: any): ConsentDetails {
return ConsentDetailsFromJSONTyped(json, false);
}
export function ConsentDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentDetails {
if (json == null) {
return json;
}
return {
'clientName': json['client_name'],
'redirectUri': json['redirect_uri'],
'scopes': json['scopes'],
};
}
export function ConsentDetailsToJSON(json: any): ConsentDetails {
return ConsentDetailsToJSONTyped(json, false);
}
export function ConsentDetailsToJSONTyped(value?: ConsentDetails | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'client_name': value['clientName'],
'redirect_uri': value['redirectUri'],
'scopes': value['scopes'],
};
}