{"_id":"@acuvity/acuvity","_rev":"13-92a4984b8bc4c9ce78ff06a1f657a4fb","name":"@acuvity/acuvity","dist-tags":{"latest":"0.7.0"},"versions":{"0.2.0":{"name":"@acuvity/acuvity","version":"0.2.0","author":{"name":"Acuvity, Inc."},"_id":"@acuvity/acuvity@0.2.0","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"}],"dist":{"shasum":"127f2cea972e30f744c1a68ad87368eea7208997","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.0.tgz","fileCount":538,"integrity":"sha512-lxtR3VCqxgSkZUi6TGb4PFdkpYMpbBbZHr1qYaBZyiJPRWtU4wU06QTYgKPpVDANmtMPnYY3EJp9cu0Zmz79SA==","signatures":[{"sig":"MEYCIQDuKXS0NylLm1KB4epG32bX3AVK4uyVj71uBLVXzIk9YAIhAP2TD6Ol+5aS/T4ea89cqbF6vgAjS9hvIE5bbO7x7Wfx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1109744},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"c369392cd8cf9c8f991d86ff8cb562f6aada66f0","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"_npmVersion":"8.19.4","description":"Developer-friendly & type-safe Typescript SDK specifically catered to leverage *acuvity* API.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.0_1733815109318_0.5776361468763611","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@acuvity/acuvity","version":"0.2.1","author":{"name":"Acuvity, Inc."},"_id":"@acuvity/acuvity@0.2.1","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"}],"dist":{"shasum":"22549adb0e2c4e3779929a2ae5f0fce9108285d6","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.1.tgz","fileCount":538,"integrity":"sha512-tm28pYx5Qp0W8hpPojpWk1B3mjpLSoh7RQuuWyWl7atZbVTMNqSoaLLvwDBbbiAvhqtTs4sy6l5cbc62DZ5Yww==","signatures":[{"sig":"MEQCIEo3rS0LA9tr0a4rLpBKtNlkIZl77kBD6dQPRkFZa1vWAiAR9bmc476FVaHi5wJFtPOUyqf8PiXkAYoWWM4zVz6FLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1109780},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"2416900b903968e24dd3923fe3cee2518933ce3f","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"_npmVersion":"8.19.4","description":"Developer-friendly & type-safe Typescript SDK specifically catered to leverage *acuvity* API.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.1_1733815450800_0.9707070622116565","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@acuvity/acuvity","version":"0.2.2","author":{"name":"Acuvity, Inc."},"_id":"@acuvity/acuvity@0.2.2","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"}],"dist":{"shasum":"e652b2b69336c659cf99194f3ebf3aeaff00a812","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.2.tgz","fileCount":538,"integrity":"sha512-c3EX85REUTGNzfaPzddysNfYejPKOTJ8afBbbpNXO0aAg+yCEmNvXhQYHkciwW96CBZMGpNrXmf+Wqkd70NXfQ==","signatures":[{"sig":"MEQCIG+HCH4qr/yIgocaKdbO3FrBNbUx+7wJhsSx2POh2tHeAiBOX4KFLkk0gTKz5jjUHVtsAw6hI4AzozbLfKlPLYd2MA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1094548},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"27090b47f2ec7dbb949e7ea9358297e07381e944","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"_npmVersion":"8.19.4","description":"Developer-friendly & type-safe Typescript SDK specifically catered to leverage *acuvity* API.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.2_1733817240205_0.3422963316961478","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@acuvity/acuvity","version":"0.2.3","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.2.3","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"2ce2fe24098c000434de1b33ee9fe26433d26d27","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.3.tgz","fileCount":538,"integrity":"sha512-9eUkqetLIJzOMsoU41mFmATGof6gFuo0JUv7vn0Z5iE1r+MGD3kKmCu5OkrVpEUKbOnALB29rrHzqsDHfZQUeQ==","signatures":[{"sig":"MEYCIQDC7qroW4Tlgsp+vunEbRUW+0q/r3WEGqGfb9lQBiohtQIhAJkmvhRNyolPLNmb4J6HfjdA//TOApWWePKWoNapGMI4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095330},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"770d11da28b63e695728c90f3797861e5a0f8712","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-node.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.3_1733875426821_0.713492909885266","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@acuvity/acuvity","version":"0.2.4","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.2.4","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"56afb2541c2d1a72b5397e3442dd929ffc6d17ed","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.4.tgz","fileCount":538,"integrity":"sha512-oWTKBLA7vdcf+obkn/W5OgdMFSebSrge37kInTnEkL8jBBH0CFCrFaPTaB7XTsS5VH9yE/jkFjft6RIyGTgcXA==","signatures":[{"sig":"MEQCIHIYqnNdOUIN9Y5c6ryafitYOp0tFvxjuDxSUF7fD25jAiB9Qa2y4zMM3r4Nq3JUiO4MZ7Xqx4n5xVdyDqDduDWmLg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1095328},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"f9e2abf37bd2281740729c846a1b7cf995a50507","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.4_1733877005696_0.6782504458909746","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@acuvity/acuvity","version":"0.2.5","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.2.5","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"b2748bd25dc54296dcd1c43d73f8a6982d99f07a","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.2.5.tgz","fileCount":538,"integrity":"sha512-BVNeFvyogB4cELl63fmhDZZQuMSR1piQxJ4lTC2pi0AJR7Kb3Nl6PfYvGGt3gsXRvV/57OTM5QFEsNPl1d5uOQ==","signatures":[{"sig":"MEUCIDVUmbJ9bsWtipUIsgG3rjzAXwmAF23kR5Tw0HWlnkxdAiEAi/iBsURAzCyFfDA8zs8nCJ1e7ozOaEasDlEOR5Wgl+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1097356},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"b1f48c8b88579c11978e96de33f13f141a09a572","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.2.5_1734116989831_0.024225325951626964","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@acuvity/acuvity","version":"0.3.0","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.3.0","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"7cd12fc967041e5e44e0322f052032dd649f3c3c","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.3.0.tgz","fileCount":565,"integrity":"sha512-FARtsAaGukrO9msJYadcdQrIme6qsaCuzM+2pCJ/GrsO2Q4optsaCS87zjCVjTSOkA+MPltCFY5+xF4bdKFnjA==","signatures":[{"sig":"MEQCIC45uOXtQ3KZmDeT80heNLqPVpFr3/67R0Uzecvaz9ajAiALsXgdtEOg/8GjVDTAuOrfGk/kNPgAcGaekyAG66I7eg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1223224},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"40274dd9bb18a3ae64e2f81c205aa0a2e6da8a1f","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.3.0_1734732874890_0.007989176571886913","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@acuvity/acuvity","version":"0.4.0","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.4.0","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"ab9f523300c27061fa266bea8124563b5a725048","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.4.0.tgz","fileCount":565,"integrity":"sha512-q47+A4BJNbhhha5/NP5iiwA5DXxrtFRzEZMSx1CbO9Io94XU9K+d1vZLVRTiB+PXVsnjWlghqZH1MtmepJqqbA==","signatures":[{"sig":"MEUCIHjuuCOj/h0Q4MQvQN+xhkeRAjnxQ+BqR6E3lTzUK9+NAiEA3A0MEnyykwJGZkWhF0nBbIkaq/ff/hkPoxDzAw1Iato=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1215569},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","source":"./src/*.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","source":"./src/*.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","source":"./src/types/index.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","source":"./src/models/components/index.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"c3fc910d48e0143a063f6257354cae115bf247e3","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","tshy":"^1.16.2","eslint":"^8.57.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.4.0_1736443335145_0.6704464871890172","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@acuvity/acuvity","version":"0.5.0","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.5.0","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"fb1f9109cbf190966aadd45c5c79cc211a5e8679","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.5.0.tgz","fileCount":629,"integrity":"sha512-5bmEz3M3JYjvnihFJYthxl6EaRjqPZ3rBv3FhOcCSAvkkVMUfFfF3YUk7y1A/j7pAfzZd6yNv4cySXWNRtB54Q==","signatures":[{"sig":"MEUCIQCfqHjMWaidfai8UIe7m9aD3RgGoI2gjFz5lSXYt9XCewIgLrQ8GbXxTQUTtVvnAHOCvavBxbHusz0WV3oyHjolTdE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1283096},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"},"sourceDialects":["@acuvity/acuvity/source"]},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js","@acuvity/acuvity/source":"./src/index.ts"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","default":"./dist/esm/types/index.js","@acuvity/acuvity/source":"./src/types/index.ts"},"require":{"types":"./dist/commonjs/types/index.d.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","default":"./dist/esm/models/errors/index.js","@acuvity/acuvity/source":"./src/models/errors/index.ts"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","default":"./dist/esm/models/components/index.js","@acuvity/acuvity/source":"./src/models/components/index.ts"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"74851942bcb4f3633aed2c5bc8bbd2f41edd2e1a","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"yaml":"^2.7.0","jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","jest":"^29.7.0","tshy":"^2.0.0","eslint":"^8.57.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/jest":"^29.5.14","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.5.0_1737669825568_0.5624230010012783","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@acuvity/acuvity","version":"0.5.1","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.5.1","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"dist":{"shasum":"a45f9e7ffe9862718a09364ba245564b467253b1","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.5.1.tgz","fileCount":629,"integrity":"sha512-CPWBvZ0rO1sSy8PuheFnQjLGddbW0hJbtVv+hTUDLKTpU7q8j9dzl4n0OnGoetXDZMBX70eSBtfIJSSFT6AYmg==","signatures":[{"sig":"MEUCIAzaXmKE9Y49qvvPYRobERu2h/jebJIuvGVCN7BcP3zxAiEAhKkX/l/Abr3eFX1GXv13ouC+ogLu05HlwqU53LbwH/o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1289368},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"},"sourceDialects":["@acuvity/acuvity/source"]},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js","@acuvity/acuvity/source":"./src/index.ts"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","default":"./dist/esm/types/index.js","@acuvity/acuvity/source":"./src/types/index.ts"},"require":{"types":"./dist/commonjs/types/index.d.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","default":"./dist/esm/models/errors/index.js","@acuvity/acuvity/source":"./src/models/errors/index.ts"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","default":"./dist/esm/models/components/index.js","@acuvity/acuvity/source":"./src/models/components/index.ts"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"493c36aba29600ca9d5588a09148101eb942f4e1","scripts":{"lint":"eslint --max-warnings=0 src","build":"tshy","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"yaml":"^2.7.0","jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.23.4","jest":"^29.7.0","tshy":"^2.0.0","eslint":"^8.57.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/jest":"^29.5.14","@types/node":"^18.0.0","eslint-plugin-import":"^2.29.1","@typescript-eslint/parser":"^7.7.1","@typescript-eslint/eslint-plugin":"^7.7.1","eslint-import-resolver-typescript":"^3.6.1"},"peerDependencies":{"zod":">= 3"},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.5.1_1737763914506_0.781223856984292","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@acuvity/acuvity","version":"0.6.0","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","_id":"@acuvity/acuvity@0.6.0","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"homepage":"https://acuvity.ai/","bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"bin":{"mcp":"bin/mcp-server.js"},"dist":{"shasum":"d7ad5e9f42f9276aece4bd1ea9df088b818279b3","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.6.0.tgz","fileCount":762,"integrity":"sha512-5VkHjPJG6/NYB4sTTYkMK9Z52n4jSvY/voq2ASWyJybGNoDJRlNCbU6HNrrlLKyyT6vrbDnEab39qAvz0TmCwQ==","signatures":[{"sig":"MEUCIQDWLTe5Nxap/ZMSPQ6RfyAAIK3FENvNwjF2w25OrB3GHwIgfFinM2NYKMcqS6sDJ0PuikTEFxqagwjzX4OYdVF97Z4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5022717},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./*":"./src/*.ts","./*.js":"./src/*.ts","./types":"./src/types/index.ts","./package.json":"./package.json","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts"},"sourceDialects":["@acuvity/acuvity/source"]},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js","@acuvity/acuvity/source":"./src/index.ts"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./*":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./*.js":{"import":{"types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js","@acuvity/acuvity/source":"./src/*.ts"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./types":{"import":{"types":"./dist/esm/types/index.d.ts","default":"./dist/esm/types/index.js","@acuvity/acuvity/source":"./src/types/index.ts"},"require":{"types":"./dist/commonjs/types/index.d.ts","default":"./dist/commonjs/types/index.js"}},"./package.json":"./package.json","./models/errors":{"import":{"types":"./dist/esm/models/errors/index.d.ts","default":"./dist/esm/models/errors/index.js","@acuvity/acuvity/source":"./src/models/errors/index.ts"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"types":"./dist/esm/models/components/index.d.ts","default":"./dist/esm/models/components/index.js","@acuvity/acuvity/source":"./src/models/components/index.ts"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","default":"./dist/commonjs/models/components/index.js"}}},"gitHead":"299270512c5814fe96dd3523f664774c9827f1f7","scripts":{"lint":"eslint --cache --max-warnings=0 src","build":"npm run build:mcp && tshy","build:mcp":"bun src/mcp-server/build.mts","prepublishOnly":"npm run build"},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},"repository":{"url":"git+https://github.com/acuvity/acuvity-ts.git","type":"git"},"_npmVersion":"8.19.4","description":"The official Acuvity TypeScript SDK","directories":{},"sideEffects":false,"_nodeVersion":"16.20.2","dependencies":{"yaml":"^2.7.0","jwt-decode":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"bun":"^1.2.2","zod":"^3.23.4","jest":"^29.7.0","tshy":"^2.0.0","eslint":"^9.19.0","express":"^4.21.2","globals":"^15.14.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","bun-types":"^1.2.2","@eslint/js":"^9.19.0","typescript":"^5.4.5","@types/deno":"^2.0.0","@types/jest":"^29.5.14","@types/node":"^18.0.0","@stricli/core":"^1.1.1","@types/express":"^4.17.21","typescript-eslint":"^8.22.0","@modelcontextprotocol/sdk":"^1.5.0"},"peerDependencies":{"zod":">= 3","@modelcontextprotocol/sdk":"^1.5.0"},"peerDependenciesMeta":{"@modelcontextprotocol/sdk":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/acuvity_0.6.0_1741141787729_0.6540200448484406","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@acuvity/acuvity","version":"0.7.0","author":{"name":"Acuvity, Inc."},"keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/acuvity/acuvity-ts.git"},"bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"description":"The official Acuvity TypeScript SDK","homepage":"https://acuvity.ai/","type":"module","bin":{"mcp":"bin/mcp-server.js"},"tshy":{"sourceDialects":["@acuvity/acuvity/source"],"exports":{".":"./src/index.ts","./package.json":"./package.json","./types":"./src/types/index.ts","./models/errors":"./src/models/errors/index.ts","./models/components":"./src/models/components/index.ts","./*.js":"./src/*.ts","./*":"./src/*.ts"}},"sideEffects":false,"scripts":{"lint":"eslint --cache --max-warnings=0 src","build:mcp":"bun src/mcp-server/build.mts","build":"npm run build:mcp && tshy","prepublishOnly":"npm run build"},"peerDependencies":{"@modelcontextprotocol/sdk":"^1.5.0","zod":">= 3"},"peerDependenciesMeta":{"@modelcontextprotocol/sdk":{"optional":true}},"devDependencies":{"@eslint/js":"^9.19.0","@modelcontextprotocol/sdk":"^1.5.0","@stricli/core":"^1.1.1","@types/deno":"^2.0.0","@types/express":"^4.17.21","@types/jest":"^29.5.14","@types/node":"^18.0.0","bun":"^1.2.2","bun-types":"^1.2.2","eslint":"^9.19.0","express":"^4.21.2","globals":"^15.14.0","jest":"^29.7.0","ts-jest":"^29.2.5","ts-node":"^10.9.2","tshy":"^2.0.0","typescript":"^5.4.5","typescript-eslint":"^8.22.0","zod":"^3.23.4"},"dependencies":{"jwt-decode":"^4.0.0","yaml":"^2.7.0"},"exports":{".":{"import":{"@acuvity/acuvity/source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json","./types":{"import":{"@acuvity/acuvity/source":"./src/types/index.ts","types":"./dist/esm/types/index.d.ts","default":"./dist/esm/types/index.js"},"require":{"types":"./dist/commonjs/types/index.d.ts","default":"./dist/commonjs/types/index.js"}},"./models/errors":{"import":{"@acuvity/acuvity/source":"./src/models/errors/index.ts","types":"./dist/esm/models/errors/index.d.ts","default":"./dist/esm/models/errors/index.js"},"require":{"types":"./dist/commonjs/models/errors/index.d.ts","default":"./dist/commonjs/models/errors/index.js"}},"./models/components":{"import":{"@acuvity/acuvity/source":"./src/models/components/index.ts","types":"./dist/esm/models/components/index.d.ts","default":"./dist/esm/models/components/index.js"},"require":{"types":"./dist/commonjs/models/components/index.d.ts","default":"./dist/commonjs/models/components/index.js"}},"./*.js":{"import":{"@acuvity/acuvity/source":"./src/*.ts","types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}},"./*":{"import":{"@acuvity/acuvity/source":"./src/*.ts","types":"./dist/esm/*.d.ts","default":"./dist/esm/*.js"},"require":{"types":"./dist/commonjs/*.d.ts","default":"./dist/commonjs/*.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","gitHead":"78838985d438ac486aa4b476e3d360defd597ca9","_id":"@acuvity/acuvity@0.7.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-N+lHstxhMIv7OJbegrItr2scJjlBXtEQYfPYpE5o1bvR831/fYB+Mrhn9HyNwDi2bgt1qJYCNeaVhyisuB2baQ==","shasum":"2ca5cff239656cb40168cbb74d51ab2592ba9ef8","tarball":"https://registry.npmjs.org/@acuvity/acuvity/-/acuvity-0.7.0.tgz","fileCount":844,"unpackedSize":5372132,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCg28FfXj0j5BeQpxMiVVdwU2k0FQ7OcVxYeJsLjedkVgIhAIguDmm5u3v79LPo2DkHQ8XJOTIrl85U28eoSanQvPfW"}]},"_npmUser":{"name":"mheese-acuvity","email":"marcus@acuvity.ai","actor":{"name":"mheese-acuvity","email":"marcus@acuvity.ai","type":"user"}},"directories":{},"maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/acuvity_0.7.0_1751475319392_0.9459329019221747"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-10T07:18:29.230Z","modified":"2025-07-02T16:55:19.801Z","0.2.0":"2024-12-10T07:18:29.542Z","0.2.1":"2024-12-10T07:24:10.989Z","0.2.2":"2024-12-10T07:54:00.423Z","0.2.3":"2024-12-11T00:03:47.040Z","0.2.4":"2024-12-11T00:30:05.971Z","0.2.5":"2024-12-13T19:09:50.109Z","0.3.0":"2024-12-20T22:14:35.178Z","0.4.0":"2025-01-09T17:22:15.375Z","0.5.0":"2025-01-23T22:03:45.833Z","0.5.1":"2025-01-25T00:11:54.713Z","0.6.0":"2025-03-05T02:29:48.030Z","0.7.0":"2025-07-02T16:55:19.614Z"},"bugs":{"url":"https://github.com/acuvity/acuvity-ts/issues"},"author":{"name":"Acuvity, Inc."},"license":"Apache-2.0","homepage":"https://acuvity.ai/","keywords":["security","genai","ai","prompt_detection","jailbreak","typescript","library","nodejs"],"repository":{"type":"git","url":"git+https://github.com/acuvity/acuvity-ts.git"},"description":"The official Acuvity TypeScript SDK","maintainers":[{"name":"mheese-acuvity","email":"marcus@acuvity.ai"},{"name":"cyril-nom","email":"cyril@acuvity.ai"}],"readme":"# acuvity\n\nDeveloper-friendly & type-safe Typescript SDK specifically catered to leverage the Acuvity APIs - in particularly the Apex API.\n\n<div align=\"left\">\n    <a href=\"https://www.apache.org/licenses/LICENSE-2.0.html\">\n        <img src=\"https://img.shields.io/badge/License-Apache_2.0-blue.svg\" style=\"width: 100px; height: 28px;\" />\n    </a>\n</div>\n\n<!-- Start Summary [summary] -->\n## Summary\n\nApex API: Acuvity Apex provides access to scan and detection APIs\n<!-- End Summary [summary] -->\n\n<!-- Start Table of Contents [toc] -->\n## Table of Contents\n<!-- $toc-max-depth=2 -->\n* [acuvity](#acuvity)\n  * [SDK Installation](#sdk-installation)\n  * [Requirements](#requirements)\n  * [SDK Example Usage](#sdk-example-usage)\n  * [Available Resources and Operations](#available-resources-and-operations)\n  * [Standalone functions](#standalone-functions)\n  * [Retries](#retries)\n  * [Error Handling](#error-handling)\n  * [Server Selection](#server-selection)\n  * [Custom HTTP Client](#custom-http-client)\n  * [Authentication](#authentication)\n  * [Debugging](#debugging)\n* [Development](#development)\n  * [Maturity](#maturity)\n  * [Contributions](#contributions)\n\n<!-- End Table of Contents [toc] -->\n\n<!-- Start SDK Installation [installation] -->\n## SDK Installation\n\nThe SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.\n\n### NPM\n\n```bash\nnpm add @acuvity/acuvity\n```\n\n### PNPM\n\n```bash\npnpm add @acuvity/acuvity\n```\n\n### Bun\n\n```bash\nbun add @acuvity/acuvity\n```\n\n### Yarn\n\n```bash\nyarn add @acuvity/acuvity zod\n\n# Note that Yarn does not install peer dependencies automatically. You will need\n# to install zod as shown above.\n```\n\n> [!NOTE]\n> This package is published with CommonJS and ES Modules (ESM) support.\n\n\n### Model Context Protocol (MCP) Server\n\nThis SDK is also an installable MCP server where the various SDK methods are\nexposed as tools that can be invoked by AI applications.\n\n> Node.js v20 or greater is required to run the MCP server.\n\n<details>\n<summary>Claude installation steps</summary>\n\nAdd the following server definition to your `claude_desktop_config.json` file:\n\n```json\n{\n  \"mcpServers\": {\n    \"Acuvity\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\", \"--package\", \"@acuvity/acuvity\",\n        \"--\",\n        \"mcp\", \"start\",\n        \"--api-token\", \"...\",\n        \"--cookie\", \"...\"\n      ]\n    }\n  }\n}\n```\n\n</details>\n\n<details>\n<summary>Cursor installation steps</summary>\n\nGo to `Cursor Settings > Features > MCP Servers > Add new MCP server` and use the following settings:\n\n- Name: Acuvity\n- Type: `command`\n- Command:\n```sh\nnpx -y --package @acuvity/acuvity -- mcp start --api-token ... --cookie ... \n```\n\n</details>\n\nFor a full list of server arguments, run:\n\n```sh\nnpx -y --package @acuvity/acuvity -- mcp start --help\n```\n<!-- End SDK Installation [installation] -->\n\n<!-- Start Requirements [requirements] -->\n## Requirements\n\nFor supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).\n<!-- End Requirements [requirements] -->\n\n<!-- No SDK Example Usage [usage] -->\n## SDK Example Usage\n\n### Process a scan request\n\nNow you can submit a scan request using the Scan API.\n\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  const result = await acuvity.apex.scan({\n    messages: [\"Using a weather forecasting service, provide me with a weather forecast for the next ten days for Sunnyvale, CA.\"],\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n\n### List all available analyzers\n\nNow you can list all available analyzers that can be used in the Scan API.\n\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  const result = await acuvity.apex.listAnalyzers();\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n\n**NOTE:** If you simply want to get a list of analyzer names or groups that can be used in the scan API, use `listAnalyzerNames()` or `listAnalyzerGroups()` instead.\n\n### Guard config\n\nThe SDK provides a guard config through which the user can input the guard checks for a particular prompts.\n\nIf no guard config is provided then by default all the guards will be run.\n\nexample:\n```yaml\nguardrails:\n  - name: prompt_injection\n    threshold: \">= 0.7\"\n  - name: toxic\n    threshold: \"0.7\"\n  - name: gibberish\n    threshold: \">= 0.8\"\n  - name: jailbreak\n    threshold: \">= 1.0\"\n  - name: biased\n    threshold: \"0.8\"\n  - name: harmful\n```\nIf no threshold is given then by default its 0.\n\nUse the above guard_config to be passed in the scan request as below:\n\n```typescript\nconst SCRIPT_DIR = dirname(fileURLToPath(import.meta.url));\n\nconst filePath = resolve(SCRIPT_DIR, \"test_data\", \"pi-test.txt\");\n\nconst result = await acuvity.apex.scan({\n            messages: [\n                \"corporate sales number are 10k filling, in.abcd@gmail.com, 123abcd@yahoo.com hate you, 792-77-3459, 792-77-3453, 792-77-3454\",\n            ],\n            files: filePath\n        });\nconsole.log(\"result\", JSON.stringify(result.matches(), null, 2));\n```\n\n#### Evaluate the scan response as per the guard config.\n\nOnce the prompt with the guard config is passed to the SDK, the scan response will have the evaluation/match\nof the request prompt with respect to the guard config.\nIt will show all the guards that we matched on the corresponding input.\n\n```typescript\n\nconst result = await acuvity.apex.scan({\n            messages: [\n                \"corporate sales number are 10k filling, in.abcd@gmail.com, 123abcd@yahoo.com hate you, 792-77-3459, 792-77-3453, 792-77-3454\",\n            ],\n        });\nconsole.log(\"result\", JSON.stringify(result.matches()));\n```\n\nThe output of the above would be a list of guard matches with a match as YES or NO.\n\n```json\n[\n  {\n    \"inputData\": \"corporate sales number are 10k filling, in.abcd@gmail.com, 123abcd@yahoo.com hate you, 792-77-3459, 792-77-3453, 792-77-3454\",\n    \"responseMatch\": \"YES\",\n    \"matchedChecks\": [\n      {\n        \"responseMatch\": \"YES\",\n        \"guardName\": {\n          \"value\": \"modality\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 1,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"YES\",\n        \"guardName\": {\n          \"value\": \"pii_detector\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 1,\n        \"matchCount\": 3\n      }\n    ],\n    \"allChecks\": [\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"prompt_injection\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"jailbreak\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"malicious_url\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"toxic\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"biased\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"harmful\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"language\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"YES\",\n        \"guardName\": {\n          \"value\": \"modality\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 1,\n        \"matchCount\": 0\n      },\n      {\n        \"responseMatch\": \"YES\",\n        \"guardName\": {\n          \"value\": \"pii_detector\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 1,\n        \"matchCount\": 3\n      },\n      {\n        \"responseMatch\": \"NO\",\n        \"guardName\": {\n          \"value\": \"secrets_detector\"\n        },\n        \"threshold\": \">= 0\",\n        \"actualValue\": 0,\n        \"matchCount\": 0\n      }\n    ]\n  }\n]\n```\n\n### List all available guards, secrets and piis\n\nNow you can list all available analyzers that can be used in the Scan API.\n\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  const guardNames = await acuvity.apex.listAvailableGuards()\n  console.log(\"\\n guardnames: \", guardNames)\n  const secretsNames = await acuvity.apex.listDetectableSecrets()\n  console.log(\"\\n secrets: \", secretsNames)\n  const piisNames = await acuvity.apex.listDetectablePIIs()\n  console.log(\"\\n PIIs: \", secretsNames)\n}\n\nrun();\n\n```\n\n\n\n<!-- No SDK Example Usage [usage] -->\n\n<!-- Start Available Resources and Operations [operations] -->\n## Available Resources and Operations\n\n<details open>\n<summary>Available methods</summary>\n\n\n### [apex](docs/sdks/apex/README.md)\n\n* [listAnalyzers](docs/sdks/apex/README.md#listanalyzers) - List of all available analyzers.\n* [scanRequest](docs/sdks/apex/README.md#scanrequest) - Processes the scan request.\n\n</details>\n<!-- End Available Resources and Operations [operations] -->\n\n<!-- Start Standalone functions [standalone-funcs] -->\n## Standalone functions\n\nAll the methods listed above are available as standalone functions. These\nfunctions are ideal for use in applications running in the browser, serverless\nruntimes or other environments where application bundle size is a primary\nconcern. When using a bundler to build your application, all unused\nfunctionality will be either excluded from the final bundle or tree-shaken away.\n\nTo read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).\n\n<details>\n\n<summary>Available standalone functions</summary>\n\n- [`apexListAnalyzers`](docs/sdks/apex/README.md#listanalyzers) - List of all available analyzers.\n- [`apexScanRequest`](docs/sdks/apex/README.md#scanrequest) - Processes the scan request.\n\n</details>\n<!-- End Standalone functions [standalone-funcs] -->\n\n<!-- No Retries [retries] -->\n## Retries\n\nSome of the endpoints in this SDK support retries.  If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API.  However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.\n\nTo change the default retry strategy for a single API call, simply provide a retryConfig object to the call:\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  const result = await acuvity.apex.listAnalyzers({\n    retries: {\n      strategy: \"backoff\",\n      backoff: {\n        initialInterval: 1,\n        maxInterval: 50,\n        exponent: 1.1,\n        maxElapsedTime: 100,\n      },\n      retryConnectionErrors: false,\n    },\n  });\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n\nIf you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    retryConfig: {\n      strategy: \"backoff\",\n      backoff: {\n        initialInterval: 1,\n        maxInterval: 50,\n        exponent: 1.1,\n        maxElapsedTime: 100,\n      },\n      retryConnectionErrors: false,\n    },\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  const result = await acuvity.apex.listAnalyzers();\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n<!-- No Retries [retries] -->\n\n<!-- No Error Handling [errors] -->\n## Error Handling\n\nAll SDK methods return a response object or throw an error. By default, an API error will throw a `errors.APIError`.\n\nIf a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:\n\n| HTTP Client Error                                    | Description                                          |\n| ---------------------------------------------------- | ---------------------------------------------------- |\n| RequestAbortedError                                  | HTTP request was aborted by the client               |\n| RequestTimeoutError                                  | HTTP request timed out due to an AbortSignal signal  |\n| ConnectionError                                      | HTTP client was unable to make a request to a server |\n| InvalidRequestError                                  | Any input used to create a request is invalid        |\n| UnexpectedClientError                                | Unrecognised or unexpected error                     |\n\nIn addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `listAnalyzers` method may throw the following errors:\n\n| Error Type            | Status Code   | Content Type     |\n| --------------------- | ------------- | ---------------- |\n| errors.Elementalerror | 400, 401, 500 | application/json |\n| errors.APIError       | 4XX, 5XX      | \\*/\\*            |\n\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\nimport {\n  Elementalerror,\n  SDKValidationError,\n} from \"@acuvity/acuvity/models/errors\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: process.env.ACUVITY_TOKEN,\n    },\n  }));\n\n  let result;\n  try {\n    result = await acuvity.apex.listAnalyzers();\n\n    // Handle the result\n    console.log(result);\n  } catch (err) {\n    switch (true) {\n      case (err instanceof SDKValidationError): {\n        // Validation errors can be pretty-printed\n        console.error(err.pretty());\n        // Raw value may also be inspected\n        console.error(err.rawValue);\n        return;\n      }\n      case (err instanceof Elementalerror): {\n        // Handle err.data$: ElementalerrorData\n        console.error(err);\n        return;\n      }\n      default: {\n        throw err;\n      }\n    }\n  }\n}\n\nrun();\n\n```\n\nValidation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.\n<!-- No Error Handling [errors] -->\n\n<!-- No Server Selection [server] -->\n## Server Selection\n\n### Server Variables\n\nThe default server `https://{apex_domain}:{apex_port}` contains variables and is set to `https://apex.acuvity.ai:443` by default. Note that the default values **DO NOT** point to a valid and existing Apex URL as they are specific and unique to every organization. Therefore both variables must be set. The following parameters are available when initializing the SDK client instance:\n * `apexDomain: string`\n * `apexPort: string`\n\nHowever, it is highly recommended to determine your Apex URL automatically which can be achieved from the provided token. Therefore you should in most cases simply use the `discoverApex()` wrapper as shown in all usage examples which takes an `SDKOptions` object and returns an `SDKOptions` object with the enhanced variables set. If this operation fails, it will throw an exception.\n\n### Override Server URL Per-Client\n\nThe default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:\n```typescript\nimport { Acuvity } from \"@acuvity/acuvity\";\n\nconst acuvity = new Acuvity({\n  serverURL: \"https://my-enterprise-apex.example.com:443\",\n  security: {\n    token: \"<YOUR_BEARER_TOKEN_HERE>\",\n  },\n});\n\nasync function run() {\n  const result = await acuvity.apex.listAnalyzers();\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n<!-- No Server Selection [server] -->\n\n<!-- Start Custom HTTP Client [http-client] -->\n## Custom HTTP Client\n\nThe TypeScript SDK makes API calls using an `HTTPClient` that wraps the native\n[Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). This\nclient is a thin wrapper around `fetch` and provides the ability to attach hooks\naround the request lifecycle that can be used to modify the request or handle\nerrors and response.\n\nThe `HTTPClient` constructor takes an optional `fetcher` argument that can be\nused to integrate a third-party HTTP client or when writing tests to mock out\nthe HTTP client and feed in fixtures.\n\nThe following example shows how to use the `\"beforeRequest\"` hook to to add a\ncustom header and a timeout to requests and how to use the `\"requestError\"` hook\nto log errors:\n\n```typescript\nimport { Acuvity } from \"@acuvity/acuvity\";\nimport { HTTPClient } from \"@acuvity/acuvity/lib/http\";\n\nconst httpClient = new HTTPClient({\n  // fetcher takes a function that has the same signature as native `fetch`.\n  fetcher: (request) => {\n    return fetch(request);\n  }\n});\n\nhttpClient.addHook(\"beforeRequest\", (request) => {\n  const nextRequest = new Request(request, {\n    signal: request.signal || AbortSignal.timeout(5000)\n  });\n\n  nextRequest.headers.set(\"x-custom-header\", \"custom value\");\n\n  return nextRequest;\n});\n\nhttpClient.addHook(\"requestError\", (error, request) => {\n  console.group(\"Request Error\");\n  console.log(\"Reason:\", `${error}`);\n  console.log(\"Endpoint:\", `${request.method} ${request.url}`);\n  console.groupEnd();\n});\n\nconst sdk = new Acuvity({ httpClient });\n```\n<!-- End Custom HTTP Client [http-client] -->\n\n<!-- No Authentication [security] -->\n## Authentication\n\n### Per-Client Security Schemes\n\nThis SDK supports the following security schemes globally:\n\n| Name     | Type   | Scheme      |\n| -------- | ------ | ----------- |\n| `token`  | http   | HTTP Bearer |\n| `cookie` | apiKey | API key     |\n\nYou can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:\n```typescript\nimport { Acuvity, discoverApex } from \"@acuvity/acuvity\";\n\nasync function run() {\n  const acuvity = new Acuvity(await discoverApex({\n    security: {\n      token: \"<YOUR_BEARER_TOKEN_HERE>\",\n    },\n  }));\n\n  const result = await acuvity.apex.listAnalyzers();\n\n  // Handle the result\n  console.log(result);\n}\n\nrun();\n\n```\n<!-- No Authentication [security] -->\n\n<!-- Start Debugging [debug] -->\n## Debugging\n\nYou can setup your SDK to emit debug logs for SDK requests and responses.\n\nYou can pass a logger that matches `console`'s interface as an SDK option.\n\n> [!WARNING]\n> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.\n\n```typescript\nimport { Acuvity } from \"@acuvity/acuvity\";\n\nconst sdk = new Acuvity({ debugLogger: console });\n```\n<!-- End Debugging [debug] -->\n\n<!-- Placeholder for Future Speakeasy SDK Sections -->\n\n# Development\n\n## Maturity\n\nThis SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage\nto a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally\nlooking for the latest version.\n\n## Contributions\n\nWhile we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.\nWe look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.\n","readmeFilename":"README.md"}