UNPKG

@vectorize-io/vectorize-client

Version:
94 lines (85 loc) 2.48 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 type { Anthropic } from './Anthropic'; import { instanceOfAnthropic, AnthropicFromJSON, AnthropicFromJSONTyped, AnthropicToJSON, } from './Anthropic'; import type { Bedrock } from './Bedrock'; import { instanceOfBedrock, BedrockFromJSON, BedrockFromJSONTyped, BedrockToJSON, } from './Bedrock'; import type { Groq } from './Groq'; import { instanceOfGroq, GroqFromJSON, GroqFromJSONTyped, GroqToJSON, } from './Groq'; import type { Openai } from './Openai'; import { instanceOfOpenai, OpenaiFromJSON, OpenaiFromJSONTyped, OpenaiToJSON, } from './Openai'; import type { Vertex } from './Vertex'; import { instanceOfVertex, VertexFromJSON, VertexFromJSONTyped, VertexToJSON, } from './Vertex'; import type { Voyage } from './Voyage'; import { instanceOfVoyage, VoyageFromJSON, VoyageFromJSONTyped, VoyageToJSON, } from './Voyage'; /** * @type CreateAIPlatformConnectorRequest * * @export */ export type CreateAIPlatformConnectorRequest = Anthropic | Bedrock | Groq | Openai | Vertex | Voyage; export function CreateAIPlatformConnectorRequestFromJSON(json: any): CreateAIPlatformConnectorRequest { return CreateAIPlatformConnectorRequestFromJSONTyped(json, false); } export function CreateAIPlatformConnectorRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAIPlatformConnectorRequest { if (json == null) { return json; } switch (json['type']) { default: throw new Error(`No variant of CreateAIPlatformConnectorRequest exists with 'type=${json['type']}'`); } } export function CreateAIPlatformConnectorRequestToJSON(json: any): any { return CreateAIPlatformConnectorRequestToJSONTyped(json, false); } export function CreateAIPlatformConnectorRequestToJSONTyped(value?: CreateAIPlatformConnectorRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } switch (value['type']) { default: throw new Error(`No variant of CreateAIPlatformConnectorRequest exists with 'type=${value['type']}'`); } }