UNPKG

n8n-nodes-octagon

Version:

Professional n8n node for Octagon AI Agents - Access 6 public-market specialists plus prediction markets, SEC filings, earnings transcripts, and stock data

88 lines 3.28 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.OctagonApi = void 0; const packageInfo = __importStar(require("../package.json")); class OctagonApi { constructor() { this.name = 'octagonApi'; this.displayName = 'Octagon API'; this.documentationUrl = 'httpsDocsOctagonagentsCom'; this.properties = [ { displayName: 'Get your free Octagon API Key at: <a href="https://app.octagonai.co/signup" target="_blank">app.octagonai.co/signup</a>', name: 'notice', type: 'notice', default: '', displayOptions: { show: {}, }, }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, placeholder: 'oct_1234567890abcdef...', description: 'Your Octagon API key from Settings → API Keys in your account', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', 'User-Agent': `${packageInfo.name}/${packageInfo.version} (Node.js)`, }, }, }; this.test = { request: { baseURL: 'https://api-gateway.octagonagents.com', url: '/v1/responses', method: 'POST', body: { model: 'octagon-agent', input: 'Test connection', stream: true, }, }, }; } } exports.OctagonApi = OctagonApi; //# sourceMappingURL=OctagonApi.credentials.js.map