UNPKG

@n8n/n8n-nodes-langchain

Version:
83 lines • 3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GoogleVertexAiApi = void 0; const google_vertex_1 = require("../utils/google-vertex"); class GoogleVertexAiApi { constructor() { this.name = 'googleVertexAiApi'; this.extends = ['googleApi']; this.displayName = 'Google Vertex AI'; this.documentationUrl = 'googlevertexai'; this.icon = 'file:icons/google.svg'; this.properties = [ { displayName: 'Project', name: 'project', type: 'options', options: [{ name: 'Custom', value: google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT }], default: google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT, required: true, description: 'Select a Google Cloud project, or select Custom to enter a project ID', typeOptions: { loadOptionsMethod: 'gcpProjectsList', loadOptionsDependsOn: ['email', 'privateKey'], }, }, { displayName: 'Project ID', name: 'projectId', type: 'string', default: '', required: true, placeholder: 'my-project-id', description: 'Google Cloud project to use with Vertex AI', displayOptions: { show: { project: [google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT] } }, }, { displayName: 'Impersonate a User', name: 'inpersonate', type: 'hidden', default: false, }, { displayName: 'Email', name: 'delegatedEmail', type: 'hidden', default: '', }, { displayName: 'Set up for use in HTTP Request node', name: 'httpNode', type: 'hidden', default: false, }, { displayName: 'HTTP Request Warning', name: 'httpWarning', type: 'hidden', default: '', }, { displayName: 'Scope(s)', name: 'scopes', type: 'hidden', default: '', }, { displayName: 'Allowed HTTP Request Domains', name: 'allowedHttpRequestDomains', type: 'hidden', default: 'all', }, { displayName: 'Allowed Domains', name: 'allowedDomains', type: 'hidden', default: '', }, ]; this.methods = { loadOptions: { gcpProjectsList: google_vertex_1.searchGoogleProjects } }; } } exports.GoogleVertexAiApi = GoogleVertexAiApi; //# sourceMappingURL=GoogleVertexAiApi.credentials.js.map