@vectorize-io/vectorize-client
Version:
Client for the Vectorize API
87 lines (73 loc) • 2.22 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';
/**
* Configuration for Firecrawl connector
* @export
* @interface FIRECRAWLConfig
*/
export interface FIRECRAWLConfig {
/**
* Endpoint. Example: Choose which api endpoint to use
* @type {string}
* @memberof FIRECRAWLConfig
*/
endpoint: FIRECRAWLConfigEndpointEnum;
/**
* Request Body. Example: JSON config for firecrawl's /crawl or /scrape endpoint.
* @type {object}
* @memberof FIRECRAWLConfig
*/
request: object;
}
/**
* @export
*/
export const FIRECRAWLConfigEndpointEnum = {
Crawl: 'Crawl',
Scrape: 'Scrape'
} as const;
export type FIRECRAWLConfigEndpointEnum = typeof FIRECRAWLConfigEndpointEnum[keyof typeof FIRECRAWLConfigEndpointEnum];
/**
* Check if a given object implements the FIRECRAWLConfig interface.
*/
export function instanceOfFIRECRAWLConfig(value: object): value is FIRECRAWLConfig {
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
if (!('request' in value) || value['request'] === undefined) return false;
return true;
}
export function FIRECRAWLConfigFromJSON(json: any): FIRECRAWLConfig {
return FIRECRAWLConfigFromJSONTyped(json, false);
}
export function FIRECRAWLConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FIRECRAWLConfig {
if (json == null) {
return json;
}
return {
'endpoint': json['endpoint'],
'request': json['request'],
};
}
export function FIRECRAWLConfigToJSON(json: any): FIRECRAWLConfig {
return FIRECRAWLConfigToJSONTyped(json, false);
}
export function FIRECRAWLConfigToJSONTyped(value?: FIRECRAWLConfig | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'endpoint': value['endpoint'],
'request': value['request'],
};
}