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';
/**
* Credits balance for the authenticated user.
* @export
* @interface BillingAccount
*/
export interface BillingAccount {
/**
*
* @type {boolean}
* @memberof BillingAccount
*/
billingEnabled: boolean;
/**
*
* @type {string}
* @memberof BillingAccount
*/
creditsUsd: string;
/**
*
* @type {string}
* @memberof BillingAccount
*/
creditsGrantedUsd: string;
/**
*
* @type {string}
* @memberof BillingAccount
*/
creditsSpentUsd: string;
/**
*
* @type {string}
* @memberof BillingAccount
*/
balanceCredits: string;
/**
*
* @type {string}
* @memberof BillingAccount
*/
spentCredits: string;
/**
*
* @type {boolean}
* @memberof BillingAccount
*/
backgroundPaused: boolean;
}
/**
* Check if a given object implements the BillingAccount interface.
*/
export function instanceOfBillingAccount(value: object): value is BillingAccount {
if (!('billingEnabled' in value) || value['billingEnabled'] === undefined) return false;
if (!('creditsUsd' in value) || value['creditsUsd'] === undefined) return false;
if (!('creditsGrantedUsd' in value) || value['creditsGrantedUsd'] === undefined) return false;
if (!('creditsSpentUsd' in value) || value['creditsSpentUsd'] === undefined) return false;
if (!('balanceCredits' in value) || value['balanceCredits'] === undefined) return false;
if (!('spentCredits' in value) || value['spentCredits'] === undefined) return false;
if (!('backgroundPaused' in value) || value['backgroundPaused'] === undefined) return false;
return true;
}
export function BillingAccountFromJSON(json: any): BillingAccount {
return BillingAccountFromJSONTyped(json, false);
}
export function BillingAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccount {
if (json == null) {
return json;
}
return {
'billingEnabled': json['billing_enabled'],
'creditsUsd': json['credits_usd'],
'creditsGrantedUsd': json['credits_granted_usd'],
'creditsSpentUsd': json['credits_spent_usd'],
'balanceCredits': json['balance_credits'],
'spentCredits': json['spent_credits'],
'backgroundPaused': json['background_paused'],
};
}
export function BillingAccountToJSON(json: any): BillingAccount {
return BillingAccountToJSONTyped(json, false);
}
export function BillingAccountToJSONTyped(value?: BillingAccount | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'billing_enabled': value['billingEnabled'],
'credits_usd': value['creditsUsd'],
'credits_granted_usd': value['creditsGrantedUsd'],
'credits_spent_usd': value['creditsSpentUsd'],
'balance_credits': value['balanceCredits'],
'spent_credits': value['spentCredits'],
'background_paused': value['backgroundPaused'],
};
}