UNPKG

@vectorize-io/vectorize-client

Version:
130 lines (115 loc) 3.71 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'; import type { SourceConnectorInputConfig } from './SourceConnectorInputConfig'; import { SourceConnectorInputConfigFromJSON, SourceConnectorInputConfigFromJSONTyped, SourceConnectorInputConfigToJSON, SourceConnectorInputConfigToJSONTyped, } from './SourceConnectorInputConfig'; /** * Source connector configuration * @export * @interface SourceConnectorInput */ export interface SourceConnectorInput { /** * Unique identifier for the source connector * @type {string} * @memberof SourceConnectorInput */ id: string; /** * Type of source connector * @type {string} * @memberof SourceConnectorInput */ type: SourceConnectorInputTypeEnum; /** * * @type {SourceConnectorInputConfig} * @memberof SourceConnectorInput */ config: SourceConnectorInputConfig; } /** * @export */ export const SourceConnectorInputTypeEnum = { AwsS3: 'AWS_S3', AzureBlob: 'AZURE_BLOB', Confluence: 'CONFLUENCE', Discord: 'DISCORD', Dropbox: 'DROPBOX', DropboxOauth: 'DROPBOX_OAUTH', DropboxOauthMulti: 'DROPBOX_OAUTH_MULTI', DropboxOauthMultiCustom: 'DROPBOX_OAUTH_MULTI_CUSTOM', FileUpload: 'FILE_UPLOAD', GoogleDriveOauth: 'GOOGLE_DRIVE_OAUTH', GoogleDrive: 'GOOGLE_DRIVE', GoogleDriveOauthMulti: 'GOOGLE_DRIVE_OAUTH_MULTI', GoogleDriveOauthMultiCustom: 'GOOGLE_DRIVE_OAUTH_MULTI_CUSTOM', Firecrawl: 'FIRECRAWL', Gcs: 'GCS', Zoom: 'ZOOM', ZoomAdmin: 'ZOOM_ADMIN', Intercom: 'INTERCOM', Notion: 'NOTION', NotionOauthMulti: 'NOTION_OAUTH_MULTI', NotionOauthMultiCustom: 'NOTION_OAUTH_MULTI_CUSTOM', OneDrive: 'ONE_DRIVE', Sharepoint: 'SHAREPOINT', WebCrawler: 'WEB_CRAWLER', Github: 'GITHUB', Fireflies: 'FIREFLIES', Docusign: 'DOCUSIGN', Gmail: 'GMAIL' } as const; export type SourceConnectorInputTypeEnum = typeof SourceConnectorInputTypeEnum[keyof typeof SourceConnectorInputTypeEnum]; /** * Check if a given object implements the SourceConnectorInput interface. */ export function instanceOfSourceConnectorInput(value: object): value is SourceConnectorInput { if (!('id' in value) || value['id'] === 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 SourceConnectorInputFromJSON(json: any): SourceConnectorInput { return SourceConnectorInputFromJSONTyped(json, false); } export function SourceConnectorInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceConnectorInput { if (json == null) { return json; } return { 'id': json['id'], 'type': json['type'], 'config': SourceConnectorInputConfigFromJSON(json['config']), }; } export function SourceConnectorInputToJSON(json: any): SourceConnectorInput { return SourceConnectorInputToJSONTyped(json, false); } export function SourceConnectorInputToJSONTyped(value?: SourceConnectorInput | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'config': SourceConnectorInputConfigToJSON(value['config']), }; }