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 ActivitySeenRequest
*/
export interface ActivitySeenRequest {
/**
*
* @type {string}
* @memberof ActivitySeenRequest
*/
project?: string;
/**
*
* @type {Array<string>}
* @memberof ActivitySeenRequest
*/
ids: Array<string>;
/**
* Every unseen event up to `through`; `ids` is ignored.
* @type {boolean}
* @memberof ActivitySeenRequest
*/
all?: boolean;
/**
*
* @type {Date}
* @memberof ActivitySeenRequest
*/
through: Date;
}
/**
* Check if a given object implements the ActivitySeenRequest interface.
*/
export function instanceOfActivitySeenRequest(value: object): value is ActivitySeenRequest {
if (!('ids' in value) || value['ids'] === undefined) return false;
if (!('through' in value) || value['through'] === undefined) return false;
return true;
}
export function ActivitySeenRequestFromJSON(json: any): ActivitySeenRequest {
return ActivitySeenRequestFromJSONTyped(json, false);
}
export function ActivitySeenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ActivitySeenRequest {
if (json == null) {
return json;
}
return {
'project': json['project'] == null ? undefined : json['project'],
'ids': json['ids'],
'all': json['all'] == null ? undefined : json['all'],
'through': (new Date(json['through'])),
};
}
export function ActivitySeenRequestToJSON(json: any): ActivitySeenRequest {
return ActivitySeenRequestToJSONTyped(json, false);
}
export function ActivitySeenRequestToJSONTyped(value?: ActivitySeenRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'project': value['project'],
'ids': value['ids'],
'all': value['all'],
'through': value['through'].toISOString(),
};
}