/* 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'; import type { FIRECRAWLAuthConfig } from './FIRECRAWLAuthConfig'; import { FIRECRAWLAuthConfigFromJSON, FIRECRAWLAuthConfigFromJSONTyped, FIRECRAWLAuthConfigToJSON, FIRECRAWLAuthConfigToJSONTyped, } from './FIRECRAWLAuthConfig'; /** * * @export * @interface Firecrawl */ export interface Firecrawl { /** * Name of the connector * @type {string} * @memberof Firecrawl */ name: string; /** * Connector type (must be "FIRECRAWL") * @type {string} * @memberof Firecrawl */ type: FirecrawlTypeEnum; /** * * @type {FIRECRAWLAuthConfig} * @memberof Firecrawl */ config: FIRECRAWLAuthConfig; } /** * @export */ export const FirecrawlTypeEnum = { Firecrawl: 'FIRECRAWL' } as const; export type FirecrawlTypeEnum = typeof FirecrawlTypeEnum[keyof typeof FirecrawlTypeEnum]; /** * Check if a given object implements the Firecrawl interface. */ export function instanceOfFirecrawl(value: object): value is Firecrawl { if (!('name' in value) || value['name'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('config' in value) || value['config'] === undefined) return false; return true; } export function FirecrawlFromJSON(json: any): Firecrawl { return FirecrawlFromJSONTyped(json, false); } export function FirecrawlFromJSONTyped(json: any, ignoreDiscriminator: boolean): Firecrawl { if (json == null) { return json; } return { 'name': json['name'], 'type': json['type'], 'config': FIRECRAWLAuthConfigFromJSON(json['config']), }; } export function FirecrawlToJSON(json: any): Firecrawl { return FirecrawlToJSONTyped(json, false); } export function FirecrawlToJSONTyped(value?: Firecrawl | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'type': value['type'], 'config': FIRECRAWLAuthConfigToJSON(value['config']), }; }