UNPKG

@vectorize-io/vectorize-client

Version:
67 lines (56 loc) 1.6 kB
/* 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 OpenAI * @export * @interface OPENAIAuthConfig */ export interface OPENAIAuthConfig { /** * API Key. Example: Enter your OpenAI API Key * @type {string} * @memberof OPENAIAuthConfig */ key: string; } /** * Check if a given object implements the OPENAIAuthConfig interface. */ export function instanceOfOPENAIAuthConfig(value: object): value is OPENAIAuthConfig { if (!('key' in value) || value['key'] === undefined) return false; return true; } export function OPENAIAuthConfigFromJSON(json: any): OPENAIAuthConfig { return OPENAIAuthConfigFromJSONTyped(json, false); } export function OPENAIAuthConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): OPENAIAuthConfig { if (json == null) { return json; } return { 'key': json['key'], }; } export function OPENAIAuthConfigToJSON(json: any): OPENAIAuthConfig { return OPENAIAuthConfigToJSONTyped(json, false); } export function OPENAIAuthConfigToJSONTyped(value?: OPENAIAuthConfig | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'key': value['key'], }; }