@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
67 lines (56 loc) • 1.61 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Vectorize API
* API for Vectorize services (Beta)
*
* The version of the OpenAPI document: 0.1.2
*
*
* 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';
/**
* Authentication configuration for Voyage AI
* @export
* @interface VOYAGEAuthConfig
*/
export interface VOYAGEAuthConfig {
/**
* API Key. Example: Enter your Voyage AI API Key
* @type {string}
* @memberof VOYAGEAuthConfig
*/
key: string;
}
/**
* Check if a given object implements the VOYAGEAuthConfig interface.
*/
export function instanceOfVOYAGEAuthConfig(value: object): value is VOYAGEAuthConfig {
if (!('key' in value) || value['key'] === undefined) return false;
return true;
}
export function VOYAGEAuthConfigFromJSON(json: any): VOYAGEAuthConfig {
return VOYAGEAuthConfigFromJSONTyped(json, false);
}
export function VOYAGEAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): VOYAGEAuthConfig {
if (json == null) {
return json;
}
return {
'key': json['key'],
};
}
export function VOYAGEAuthConfigToJSON(json: any): VOYAGEAuthConfig {
return VOYAGEAuthConfigToJSONTyped(json, false);
}
export function VOYAGEAuthConfigToJSONTyped(value?: VOYAGEAuthConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'key': value['key'],
};
}