Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quidproquo-webserver

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quidproquo-webserver - npm Package Compare versions

Comparing version 0.0.177 to 0.0.178

lib/commonjs/services/log/entry/constants/index.d.ts

1

lib/commonjs/config/settings/index.d.ts

@@ -8,3 +8,2 @@ export * from './api';

export * from './serviceFunction';
export * from './logApi';
export * from './migration';

@@ -11,0 +10,0 @@ export * from './openApi';

@@ -24,3 +24,2 @@ "use strict";

__exportStar(require("./serviceFunction"), exports);
__exportStar(require("./logApi"), exports);
__exportStar(require("./migration"), exports);

@@ -27,0 +26,0 @@ __exportStar(require("./openApi"), exports);

@@ -6,3 +6,4 @@ import { QPQConfig, QPQConfigAdvancedSettings } from 'quidproquo-core';

cloudflareApiKeySecretName?: string;
claudeAiApiKeySecretName?: string;
}
export declare const defineLogs: (buildPath: string, webFilesPath: string, rootDomain: string, advancedSettings?: QPQConfigAdvancedLogSettings) => QPQConfig;

@@ -75,2 +75,6 @@ "use strict";

(0, route_1.defineRoute)('GET', '/log/downloadurl/{correlationId}', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'downloadUrl', routeAuthSettings),
(0, route_1.defineRoute)('POST', '/log/chat/message', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'sendChatMessage', routeAuthSettings),
(0, quidproquo_core_1.defineGlobal)('claudeAi-api-key', (advancedSettings === null || advancedSettings === void 0 ? void 0 : advancedSettings.claudeAiApiKeySecretName) || ''),
(0, route_1.defineRoute)('POST', '/log/chat', (0, quidproquo_core_1.getServiceEntry)('log', 'controller', 'logController'), 'getChatMessages', routeAuthSettings),
(0, quidproquo_core_1.defineKeyValueStore)('qpq-log-messages', 'correlationId', ['timestamp']),
(0, webEntry_1.defineWebEntry)('admin', {

@@ -77,0 +81,0 @@ buildPath: webFilesPath,

@@ -19,1 +19,3 @@ import { QpqRuntimeType } from 'quidproquo-core';

}): Generator<import("quidproquo-core").FileGenerateTemporarySecureUrlAction, import("../../../../types").HTTPEventResponse<string>, string>;
export declare function sendChatMessage(event: HTTPEvent): Generator<import("quidproquo-core").Action<any>, import("../../../../types").HTTPEventResponse<string>, any>;
export declare function getChatMessages(event: HTTPEvent): Generator<import("quidproquo-core").Action<any>, import("../../../../types").HTTPEventResponse<string>, any>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.downloadUrl = exports.getChildren = exports.getLog = exports.getLogs = void 0;
exports.getChatMessages = exports.sendChatMessage = exports.downloadUrl = exports.getChildren = exports.getLog = exports.getLogs = void 0;
/* eslint-disable @typescript-eslint/no-unused-vars */

@@ -8,2 +8,4 @@ const quidproquo_core_1 = require("quidproquo-core");

const logMetadataData_1 = require("../data/logMetadataData");
const askLogSendChatMessage_1 = require("../logic/askLogSendChatMessage");
const askGetLogChatMessages_1 = require("../logic/askGetLogChatMessages");
function* getLogs(event, params) {

@@ -33,1 +35,13 @@ const { nextPageKey, startIsoDateTime, endIsoDateTime, runtimeType } = (0, httpEventUtils_1.fromJsonEventRequest)(event);

exports.downloadUrl = downloadUrl;
function* sendChatMessage(event) {
const sendLogChatMessage = (0, httpEventUtils_1.fromJsonEventRequest)(event);
const message = yield* (0, askLogSendChatMessage_1.askLogSendChatMessage)(sendLogChatMessage.correlationId, sendLogChatMessage.message);
return (0, httpEventUtils_1.toJsonEventResponse)(message);
}
exports.sendChatMessage = sendChatMessage;
function* getChatMessages(event) {
const listLogChatMessages = (0, httpEventUtils_1.fromJsonEventRequest)(event);
const messages = yield* (0, askGetLogChatMessages_1.askGetLogChatMessages)(listLogChatMessages.correlationId, listLogChatMessages.nextPageKey);
return (0, httpEventUtils_1.toJsonEventResponse)(messages);
}
exports.getChatMessages = getChatMessages;

@@ -1,1 +0,4 @@

export * from "./LogMetadata";
export * from './LogMetadata';
export * from './LogChatMessage';
export * from './SendLogChatMessage';
export * from './ListLogChatMessages';

@@ -18,1 +18,4 @@ "use strict";

__exportStar(require("./LogMetadata"), exports);
__exportStar(require("./LogChatMessage"), exports);
__exportStar(require("./SendLogChatMessage"), exports);
__exportStar(require("./ListLogChatMessages"), exports);
{
"name": "quidproquo-webserver",
"version": "0.0.177",
"version": "0.0.178",
"description": "",

@@ -28,8 +28,9 @@ "main": "./lib/commonjs/index.js",

"dependencies": {
"quidproquo-core": "0.0.177"
"@anthropic-ai/sdk": "^0.19.1",
"quidproquo-core": "0.0.178"
},
"devDependencies": {
"quidproquo-tsconfig": "0.0.177",
"quidproquo-tsconfig": "0.0.178",
"typescript": "^4.9.3"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc