@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
67 lines (56 loc) • 1.66 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 Anthropic
* @export
* @interface ANTHROPICAuthConfig
*/
export interface ANTHROPICAuthConfig {
/**
* API Key. Example: Enter your Anthropic API Key
* @type {string}
* @memberof ANTHROPICAuthConfig
*/
key: string;
}
/**
* Check if a given object implements the ANTHROPICAuthConfig interface.
*/
export function instanceOfANTHROPICAuthConfig(value: object): value is ANTHROPICAuthConfig {
if (!('key' in value) || value['key'] === undefined) return false;
return true;
}
export function ANTHROPICAuthConfigFromJSON(json: any): ANTHROPICAuthConfig {
return ANTHROPICAuthConfigFromJSONTyped(json, false);
}
export function ANTHROPICAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ANTHROPICAuthConfig {
if (json == null) {
return json;
}
return {
'key': json['key'],
};
}
export function ANTHROPICAuthConfigToJSON(json: any): ANTHROPICAuthConfig {
return ANTHROPICAuthConfigToJSONTyped(json, false);
}
export function ANTHROPICAuthConfigToJSONTyped(value?: ANTHROPICAuthConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'key': value['key'],
};
}