@centure/node-sdk
Version:
A Typescript SDK for interacting with Centure's API
47 lines • 1.98 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpStatus = exports.ServiceTier = exports.ConfidenceLevel = exports.ThreatCategory = void 0;
/**
* Threat category codes returned by the Centure API
*
* - output_manipulation: Controls AI output content, formatting, or style
* - context_injection: Fake context, roles, system messages, or instruction overrides
* - data_exfiltration: Attempts to extract sensitive data
* - unauthorized_actions: Attempts to trigger unauthorized actions or API calls
*/
var ThreatCategory;
(function (ThreatCategory) {
ThreatCategory["OUTPUT_MANIPULATION"] = "output_manipulation";
ThreatCategory["CONTEXT_INJECTION"] = "context_injection";
ThreatCategory["DATA_EXFILTRATION"] = "data_exfiltration";
ThreatCategory["UNAUTHORIZED_ACTIONS"] = "unauthorized_actions";
})(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