UNPKG

@centure/node-sdk

Version:

A Typescript SDK for interacting with Centure's API

46 lines 1.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpStatus = exports.ServiceTier = exports.ConfidenceLevel = exports.ThreatCategory = void 0; /** * Threat category codes returned by the Centure API */ var ThreatCategory; (function (ThreatCategory) { ThreatCategory["BEHAVIORAL_OVERRIDE_LOW"] = "behavioral_override_low"; ThreatCategory["ROLE_MANIPULATION"] = "role_manipulation"; ThreatCategory["CONTEXT_INJECTION"] = "context_injection"; ThreatCategory["INSTRUCTION_HIERARCHY_MANIPULATION"] = "instruction_hierarchy_manipulation"; ThreatCategory["OUTPUT_MANIPULATION"] = "output_manipulation"; ThreatCategory["DATA_EXFILTRATION"] = "data_exfiltration"; ThreatCategory["EXTERNAL_ACTIONS"] = "external_actions"; ThreatCategory["SAFETY_BYPASS"] = "safety_bypass"; })(ThreatCategory || (exports.ThreatCategory = ThreatCategory = {})); /** * Confidence level of a threat detection */ var ConfidenceLevel; (function (ConfidenceLevel) { ConfidenceLevel["MEDIUM"] = "medium"; ConfidenceLevel["HIGH"] = "high"; })(ConfidenceLevel || (exports.ConfidenceLevel = ConfidenceLevel = {})); /** * Service tier for the API request */ var ServiceTier; (function (ServiceTier) { ServiceTier["LOW"] = "low"; ServiceTier["STANDARD"] = "standard"; ServiceTier["DEDICATED"] = "dedicated"; })(ServiceTier || (exports.ServiceTier = ServiceTier = {})); /** * HTTP status codes that can be returned by the API */ var HttpStatus; (function (HttpStatus) { HttpStatus[HttpStatus["OK"] = 200] = "OK"; HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST"; HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED"; HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE"; HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR"; })(HttpStatus || (exports.HttpStatus = HttpStatus = {})); //# sourceMappingURL=types.js.map