{"_id":"@openzeppelin/defender-autotask-client","_rev":"40-6ff0c3a889809d8b23e15f647833bff3","name":"@openzeppelin/defender-autotask-client","dist-tags":{"rc":"1.54.0-rc.0","latest":"1.54.6"},"versions":{"1.45.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.45.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.45.0","maintainers":[{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"ee0d114b57dc2e63e887acca8d12e54560840193","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.45.0.tgz","fileCount":31,"integrity":"sha512-1BiAHV5e7qA3ozMwYmGwVyFXx1P8LYcIkQ6t/og3j+qYz4gwmp4akkT2hvdAdn1doSJr4k3YHT26F1vvLx0qfA==","signatures":[{"sig":"MEUCIGbbUwYuGhuPm6rGMI2SQ79yk+RuO//RBZFmum0gZNryAiEAmGVn5DJrZVA4tZONBS5VTZ/uKnLUplApsrapBO6ufpc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134758},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^0.21.2","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.45.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.45.0_1686610969439_0.6788915497457815","host":"s3://npm-registry-packages"}},"1.46.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.46.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.46.0","maintainers":[{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"b89649ff039c1ac8013146dac7179218cb6c03a0","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.46.0.tgz","fileCount":31,"integrity":"sha512-3HgVf6t7gNkMRikYUkN8UxG7syAskot9ExNt7okLRc8sMAaoMQu0f9KPMiidwUEm/dGRg5jmGTkl1l9r2KaVIw==","signatures":[{"sig":"MEUCIDj98ZhCm9sUHnfPq2TBQNzn6/et6DhybRYfg/9p2LQpAiEAtzIZv8atqDbllluN0Gi3xlFEc011lz0McyiiNzuQg3M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133829},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^0.21.2","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.46.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.46.0_1686722815338_0.8734797409312174","host":"s3://npm-registry-packages"}},"1.47.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.47.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.47.0","maintainers":[{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"7dfc7d3ee1761d95b3a62de6ebb04f4d37df8b0e","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.47.0.tgz","fileCount":31,"integrity":"sha512-E7sWSTXgPEzLkkofPreRDKRpn029EXen9LdOV5YSh/iLyMmcnTykrPrn1oqbQDUq5B7XLd1VqLbFtGMmuil+MQ==","signatures":[{"sig":"MEYCIQCRcHm4/cNGBrlkXc0wkImsaUtnsfEjvrnrTY1jFzCuDAIhAJFhzKJ1Rq7DgGn+7xAtyoxOoOi66TfcPxuOQYY5EUbM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70411},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"12d67c544a12ff299c02fad3c8c1848e164e0e5b","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.47.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.47.0_1689178036668_0.2594366597959943","host":"s3://npm-registry-packages"}},"1.47.1":{"name":"@openzeppelin/defender-autotask-client","version":"1.47.1","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.47.1","maintainers":[{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"c907ee03841f175d75dbe24cf394e3f002730c31","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.47.1.tgz","fileCount":54,"integrity":"sha512-sBrDgWWDiT87Jvgop2HGX4SvwoHXUb/wTUJUxk90+rUEOcrtKv8NBXRTYbfS6rEvMTIlBMbA4JNdHVngpKgX0g==","signatures":[{"sig":"MEUCIBs0wjIq9jpujfy6Wr0Pgg2fswB4hvFDv8I50iRcgF6uAiEA607ecBiYRxqQRMbav4Om94eDx3wpCXniQS+QHbT0aG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87595},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.47.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.47.1_1690544979597_0.9040941209494013","host":"s3://npm-registry-packages"}},"1.48.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.48.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.48.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"42242c7d83dbb2ab0140eb9157e094e1f905a2c9","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.48.0.tgz","fileCount":32,"integrity":"sha512-n/ozewIMYmLUfSxa4v8uwHL+/YsRfQn6YM8Is0LLmd3+jziU02akFzaRuid5DFKmhVokXdsIPG682I/FBPUvlw==","signatures":[{"sig":"MEQCIGklpLXNM1FhCpMN+8aeNTrG7MXIN2B2TJN91f4kpAa/AiBxJKzDvyo7ly5Q/T+qrm7+qNjCpQ/MVWE4HVY0yefdEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70809},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/7.1.4/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.48.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.48.0_1691666407766_0.35233009041208896","host":"s3://npm-registry-packages"}},"1.49.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.49.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.49.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"fedced67918b04b8be568352f0fce9dd304a2422","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.49.0.tgz","fileCount":54,"integrity":"sha512-FhqFB/E0jaDNEgx0WklodpRS2RPfE181+kwtGL23a8uzGiyQRs7+Ia/a8ARGaLEqD9gWwAte6ODiqZAaim7/jg==","signatures":[{"sig":"MEUCICBvU4mcqbua06lydTuxuVfoBdcjN0Rp6FaEBEIpYDckAiEAzutRevIzbd6N8rFAVTvRJLtikOPzP9nkec63UNV0G7M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88290},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.49.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.49.0_1696865457747_0.9690474221900531","host":"s3://npm-registry-packages"}},"1.50.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.50.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.50.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"30ec7506524a650860f5d3c126175e35b522de9d","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.50.0.tgz","fileCount":54,"integrity":"sha512-QWob3F6xuOu8r8oPy0Y2XLfAL1PTuKE2F4nC4wGeu3JJT8/pJz3xnHX5DgUYwiGIMqnkitUNUoBcmi4CPI31yw==","signatures":[{"sig":"MEQCIHqALyNP5rMFAYGKJhJPDplNb3kWbNQZdCMo5WWhq20zAiAG4Ra3tjQIgbHqch3ebrBrzN+rf2F2J3haTTOnt8N2+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88290},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.50.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.50.0_1698212749991_0.4992384992346126","host":"s3://npm-registry-packages"}},"1.51.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.51.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.51.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"1658acfd482746b53b61379d87a1b8cca271e937","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.51.0.tgz","fileCount":54,"integrity":"sha512-UtDGLMtudr+dvYBuFT9NJ+Otf6EdA1wRSCLYLOMG9Cwr7FyIgrCoMHr4JWojF5GxLIMCszqYUkLV0MLIynF7JA==","signatures":[{"sig":"MEUCIAtIhCPeDL9gGzmJwsPyGtKlgmbb3fPgsh7mWNgxvsrlAiEAuYf0KcljSuIbD5zd/zo+DvCBdQMgN/ZPZbSZMoJ68M4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88290},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.51.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.51.0_1699377868504_0.8531454128127995","host":"s3://npm-registry-packages"}},"1.52.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"ea5de166e949060a5edae4d1afa5bee7373c2c2c","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.0.tgz","fileCount":31,"integrity":"sha512-fHVkaj4TVIFuOhVcT69iIY16eDRX/Ah8bf9VUhFIdd1Jfv5F9wMMDRCUujsE5kIfKRzoX+z86+0yJ9ioZz2VVw==","signatures":[{"sig":"MEUCICAXGlz8Z/GiW6XohMMbLeoXu93kyPgweOSOjg5UgdsTAiEAxYPylqofvYTIwkuOmBVylZ7bcBse970muxRjkxDRIbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72029},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"3ed4bed14249f4d412d118d3067e6128c41bb76d","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.0_1699580174026_0.60156933458162","host":"s3://npm-registry-packages"}},"1.52.0-rc.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.0-rc.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.0-rc.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"02f839c14337b412ef7dd61a229f85a3eb6d8219","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.0-rc.0.tgz","fileCount":32,"integrity":"sha512-JvCFv31qB4MVO4YDFFbBwm8bv5UFK8WdFtXgw3O92Dhsbs27y6+EOJC8+CnNDx3GcJRRVrc41Vu6HTUEQbe1mg==","signatures":[{"sig":"MEUCIQC/JKT1mWtOSaddFT7bP4l25cFOAvQtYSAy0fi2UvvhegIgUwtglsds/ZZbQzXVurcJX6c4baHqojeWlmNQB1X45gM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72437},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","_npmVersion":"lerna/7.4.1/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.0-rc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.0-rc.0_1700116499053_0.05707910998953181","host":"s3://npm-registry-packages"}},"1.52.0-rc.1":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.0-rc.1","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.0-rc.1","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"f8e70c01216c11a6e60eecabe6e2cec2a6151ae7","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.0-rc.1.tgz","fileCount":32,"integrity":"sha512-x1mn+bLsvSS6gFvxEcH1X/XqeKJAjiFSeiT4QhRtPckRSw08mOElVsUfjBMno2S2S6Qo4xdECTBxAHvu7Il56A==","signatures":[{"sig":"MEUCIQDHLs8iDO7AdxAv+l2o20BA6WFwPnVl2WyUvdWmRbfKYQIgFk8bSI5tVeIgvgj+cuOk9AVf+IvFqRLPShvBBVkpd4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.52.0-rc.1","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":72544},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/7.4.1/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.0-rc.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.0-rc.1_1700133451364_0.7913080893066817","host":"s3://npm-registry-packages"}},"1.52.0-rc.2":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.0-rc.2","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.0-rc.2","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"d97d7c7685de6aef777d8669eb596fa151311537","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.0-rc.2.tgz","fileCount":32,"integrity":"sha512-iCP8LbM2hDZ3n0CQs7riXqdCoeCWdxn0v+Ee45XpwnSn9OF0oT/uo5CglPA9xO3Gl1v/5BZKhj+c0SXavuZozQ==","signatures":[{"sig":"MEQCIBW1uL3jrm0LdmtB7vQdTh5/b0Rktx8aQxwPaqZpFuaoAiAKNBqCIP8jzFivXeQZZVce0UMstuGas2MRPRNDGJXVTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.52.0-rc.2","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":72544},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/7.4.1/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.0-rc.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.0-rc.2_1700135220974_0.1453956610547602","host":"s3://npm-registry-packages"}},"1.52.0-rc.3":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.0-rc.3","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.0-rc.3","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"3cd82600c4bcb6eeb1936a885bbe223ba48f1cf4","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.0-rc.3.tgz","fileCount":32,"integrity":"sha512-Z73p+oSJ5wi2QRb78HzrnPsEiF77wwh9ek14SIqRun/PxSr6vepLSjxVv3TLuvqvkfb88BQPETQCerts9hKjHw==","signatures":[{"sig":"MEUCIClt8u9OiNjQzX9Vrf/aMF7xoyiA7ApPJo/BGW/q+v9aAiEA2f+AzHwReWglSo3E3Ra4cL1c8lvxrbbTdtVsTA/SBzo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.52.0-rc.3","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":72544},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"ae9f6d4fedfe98d19a663cd803aa0ea900cc4b29","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/7.4.1/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.0-rc.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.0-rc.3_1700139751381_0.8667166924351568","host":"s3://npm-registry-packages"}},"1.52.1-rc.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.52.1-rc.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.52.1-rc.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"7649c230126bdfa969b35ccd8f3ef8080b10b923","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.52.1-rc.0.tgz","fileCount":3,"integrity":"sha512-bn2tSgB3MenmBtf7Wj1vr/Jm+3tC16FZqvvXgEY+Y3IXGE9rsJJTjEQpm5M306hamH2Q9Ed6e6PBp14Fk7CnkA==","signatures":[{"sig":"MEYCIQDU0T5XWnSz89+dyoTChhuXToKfsflsLH30Rhj//p/wYgIhAKkDLxz9eT4Np7NDl8V8PPC7nEcEt2iGEOKgqquYH5bG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.52.1-rc.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":7966},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"75f2dd88ddd843a57b592a47885b3d1e653cbc94","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/7.4.1/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.52.1-rc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.52.1-rc.0_1700405076175_0.8647353716896253","host":"s3://npm-registry-packages"}},"1.53.0-rc.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.53.0-rc.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.53.0-rc.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"0c839cd5fd97fa3e7371ccdef7f86aaac6b027d8","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.53.0-rc.0.tgz","fileCount":3,"integrity":"sha512-Pg/EukVOl6NelZoe/c1s8resmIEc9ESsDhS6qCOKv8qAif+piWAFNVNHX4sVAZBwNAv5uL6269Rr0OcxERHmxg==","signatures":[{"sig":"MEUCIQCHw2jHVQh9zNKBgxEhlxSWmLRKL2Yn0OHUQhASNjcn8gIgUpZ8qG6iMjK0uHXPa/jiUTed5GSlIYDf8u89TCjezwI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.53.0-rc.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":7966},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"1df9d1d1b44ceeced693bb24444d4edc1effa3e0","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/7.4.2/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.53.0-rc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.53.0-rc.0_1701162938738_0.9912779775849518","host":"s3://npm-registry-packages"}},"1.54.0-rc.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.0-rc.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.0-rc.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"a1a1795810fa1b8fc09c0da66bf32bb6a6e91185","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.0-rc.0.tgz","fileCount":3,"integrity":"sha512-BlBkfAqlN+Y6eAx7VVpwl1SCsUWGJbRu4C051bTRasILhnY6JvDrYWvR4/y5enM4ZFJxUmCA1uoR3r3dZdinxQ==","signatures":[{"sig":"MEYCIQDVMVb13KNEFSg0FZYej9bVyhWwPFViU+T8GwbhYu0tsAIhAJWGc2pEGoiEWqH5QLd6XJKGO1ybzL4fCyM6EwA01GYx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.54.0-rc.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":7966},"main":"./lib/index.js","types":"./lib/index.d.ts","readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","gitHead":"f5a404590be2debd3a98bb7cd02820a3b035ab2c","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/8.0.0/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.0-rc.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.0-rc.0_1701822120453_0.945135485773871","host":"s3://npm-registry-packages"}},"1.54.0":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.0","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.0","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"a9f5fc0e38bef5f25da77f3b2ef32c0a3664fce4","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.0.tgz","fileCount":3,"integrity":"sha512-oMEmwNA8B/19RxRMmN7oHA/MpX9gVQR4nLe1Al3YnoFRW1I2g9HY4y9sbjDJyq35XCs5ZTHQT9N/0Wp6AIbQBQ==","signatures":[{"sig":"MEUCICSJ6kurxhW+MMaMhT6GlA8etUYxRYUoX3JTYytL/5F9AiEA05XHB3wGVqT9BjR505Nm0G8jGj4dat5pc6k4+8ngIvI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openzeppelin%2fdefender-autotask-client@1.54.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":7956},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"035dacd398375dc70295063aba5ce81f76b90f55","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/8.0.0/node@v16.20.0+x64 (linux)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.0_1701985016947_0.9421429900067666","host":"s3://npm-registry-packages"}},"1.54.1":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.1","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.1","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"3389ba558b7dada23fc2f7c47d1897d9d13f1af9","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.1.tgz","fileCount":31,"integrity":"sha512-Qn16qaP8djTB/1OGpd3red4H0srlu4mfnAyoLE+xeZ4R3iIvCGMq0mJB9KzDAdmB183EzdtVAxB5QvQe3X8elA==","signatures":[{"sig":"MEUCIDX4IJgSCeqI44kuLvFPKiM3bcPapjX1GLNTPHSjJYlaAiEAqoeeLw5PmxQJpMqcKkEDKvdoSuB7J7agUILhniewNF4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70953},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"ff20768e5718ebff4bccc199508834bb7219f7c1","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.20.0+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.0","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.1_1702021215386_0.9805719458985549","host":"s3://npm-registry-packages"}},"1.54.2":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.2","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.2","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"e9df8af2ca625ee5bf38de822f621aa5c0711d86","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.2.tgz","fileCount":31,"integrity":"sha512-/Ygwjj6ikUcw0NodLt/Ajcq4WNoMMlOiQppqetzD1qN8wmSN0+jwHDabKfIsiWW04HEqTJsj3jRSjjgD3uMamw==","signatures":[{"sig":"MEQCIDQBagSsD5M9wRaXGlUtUN2r1KuWv46v6KSmToTR4BusAiA8n/CKGXkTP0AXzBnWHr9D57AbUlEGlegeXGxWe4XW4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74707},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a4f42ccd3773997da730ed215a2600dc94aefd43","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.20.1+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"16.20.1","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.2_1715802967767_0.6653301201544706","host":"s3://npm-registry-packages"}},"1.54.3":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.3","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.3","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"77af81299eec281b09ad6f72237f35068a1cea9d","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.3.tgz","fileCount":54,"integrity":"sha512-BpG2vwmZdlsxe5Wez2eDJYg9PkxRwucf4BmAt9zoloROf7Xn2odeM1rmLSnrmT853u9/NR+NnU3aLZdfUzRnYQ==","signatures":[{"sig":"MEYCIQCpGnqc2NGlQx5xYirdmtL9kiLNU3rg0QgbozCbzQ3zcwIhAIMilS1TfhntsmXPKdH1swyJam/+E3KnTSLulK+k3VRm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90360},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"https://github.com/OpenZeppelin/defender-client.git","type":"git"},"description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.3_1716053229245_0.7610008382787288","host":"s3://npm-registry-packages"}},"1.54.4":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.4","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.4","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"2b4063e3ad6542cd0b1fe000e601afad3f1fa3af","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.4.tgz","fileCount":54,"integrity":"sha512-I5Ges1tVLkaFhc7+q9tl3qVCIbpPqd1jJExKqzCilR83Xe3gDLZhgKuW5LC4iQ4kLzi6rEaONFML7XKG+Mz1NQ==","signatures":[{"sig":"MEUCIQC15jFlTc0t9QC/mu774klHR0iBP1hnCRoH0KLp7C7NVwIgHQXaxamdb6U9q7og6yz1UpxgMUaTJ9tG+shgPq2iPxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90160},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"a7c4808dd11e708df42d110de230c264061c72c3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"https://github.com/OpenZeppelin/defender-client.git","type":"git"},"description":"Client library for managing Defender Autotasks","directories":{},"dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.4_1716188776427_0.3723592211598057","host":"s3://npm-registry-packages"}},"1.54.5":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.5","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.5","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"f23145e33673ed73e965e50746b0670b64b9a65f","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.5.tgz","fileCount":31,"integrity":"sha512-8/m46ZAQw4Z3q7V3wSYtSy1TDqJ1RFFfg/Q9DvVe2MjLMQkNOpVhqX4Mlx9CR4hkiwrZIylAmT4uK4Uq0JnL8w==","signatures":[{"sig":"MEUCIQC+vI+0jvYt4t/4S9atc5aqhqZ0rTK8y5XWqNdzNA1wSgIgdLz4s0Pey7Y6jgbQKQmPRrd0t+vE8Q/8/aPH+qnkQNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75050},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"0fc43da796268b8c75d70179c7ea649b160dfd06","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v20.11.1+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"20.11.1","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.5_1716415322536_0.06532273394104049","host":"s3://npm-registry-packages"}},"1.54.6":{"name":"@openzeppelin/defender-autotask-client","version":"1.54.6","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","_id":"@openzeppelin/defender-autotask-client@1.54.6","maintainers":[{"name":"mcarlomagno","email":"marcoscarlomagno1@gmail.com"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"}],"homepage":"https://github.com/OpenZeppelin/defender-client#readme","bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"bin":{"defender-autotask":"lib/bin.js"},"dist":{"shasum":"2a9ad0ab4ddfd8e204706034fd7f2a429e0f2ef2","tarball":"https://registry.npmjs.org/@openzeppelin/defender-autotask-client/-/defender-autotask-client-1.54.6.tgz","fileCount":31,"integrity":"sha512-UEJnAuOBdUQhfFyHRKGqzB8gbqt35pCPHsRCYu5Zzrfr++mXnDx6g/RBdVbZflzQf/lQRXEaWhKortd4b43kpA==","signatures":[{"sig":"MEUCIBRObSQGPiWOZJxTBY6f98sl8foIX7mZrpFbatEm7lCcAiEAi5lfPzghy6pfCqJdfbLlJWytLmPKUtf1lEHaOso70vQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73418},"main":"./lib/index.js","types":"./lib/index.d.ts","gitHead":"9eea3f7d413b8647b20e7b77a1c4ecd4186e4ed3","scripts":{"test":"yarn test:unit","build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","watch":"tsc -w","prepare":"yarn build","test:unit":"jest --verbose --passWithNoTests"},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"deprecated":"This package has been deprecated and will no longer be maintained, please use @openzeppelin/defender-sdk package instead.","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v20.11.1+arm64 (darwin)","description":"Client library for managing Defender Autotasks","directories":{},"_nodeVersion":"20.11.1","dependencies":{"glob":"^7.1.6","axios":"^1.4.0","jszip":"^3.5.0","dotenv":"^10.0.0","lodash":"^4.17.19","node-fetch":"^2.6.0","@openzeppelin/defender-base-client":"1.54.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/defender-autotask-client_1.54.6_1716451907484_0.8784708562019989","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-06-12T23:02:49.347Z","modified":"2026-09-24T16:19:14.680Z","1.45.0":"2023-06-12T23:02:49.663Z","1.46.0":"2023-06-14T06:06:55.523Z","1.47.0":"2023-07-12T16:07:16.890Z","1.47.1":"2023-07-28T11:49:39.771Z","1.48.0":"2023-08-10T11:20:07.976Z","1.49.0":"2023-10-09T15:30:57.960Z","1.50.0":"2023-10-25T05:45:50.155Z","1.51.0":"2023-11-07T17:24:28.768Z","1.52.0":"2023-11-10T01:36:14.202Z","1.52.0-rc.0":"2023-11-16T06:34:59.230Z","1.52.0-rc.1":"2023-11-16T11:17:31.724Z","1.52.0-rc.2":"2023-11-16T11:47:01.171Z","1.52.0-rc.3":"2023-11-16T13:02:31.538Z","1.52.1-rc.0":"2023-11-19T14:44:36.343Z","1.53.0-rc.0":"2023-11-28T09:15:38.865Z","1.54.0-rc.0":"2023-12-06T00:22:00.664Z","1.54.0":"2023-12-07T21:36:57.111Z","1.54.1":"2023-12-08T07:40:15.596Z","1.54.2":"2024-05-15T19:56:07.969Z","1.54.3":"2024-05-18T17:27:09.394Z","1.54.4":"2024-05-20T07:06:16.639Z","1.54.5":"2024-05-22T22:02:02.728Z","1.54.6":"2024-05-23T08:11:47.741Z"},"bugs":{"url":"https://github.com/OpenZeppelin/defender-client/issues"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","homepage":"https://github.com/OpenZeppelin/defender-client#readme","repository":{"url":"git+https://github.com/OpenZeppelin/defender-client.git","type":"git"},"description":"Client library for managing Defender Autotasks","maintainers":[{"email":"collins.wekesa@openzeppelin.com","name":"collins-oz"},{"email":"tirumerla@gmail.com","name":"tirumerla"},{"email":"son.dinh@openzeppelin.com","name":"son-oz"}],"readme":"# Defender Autotask Client\n\nThe [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis, via webhooks or from Sentinels that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.\n\nThis client allows you to update the code of your Autotasks programmatically, so you don't need to copy-paste code into the Defender web application. Additionally, the client allows you to easily create, list, retrieve, delete and update your Autotasks.\n\n# End Of Support Notice\n\nWe will no longer be maintaining or supporting any additional releases for defender-client. Please migrate to defender-sdk as soon as possible to get all the benefits of defender 2.0 and more.\n\nExample usage:\n\n```bash\ndefender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install @openzeppelin/defender-autotask-client\n```\n\n```bash\nyarn add @openzeppelin/defender-autotask-client\n```\n\n## Usage\n\nThe client can be used either programmatically as part of a script, or directly via the command line. Both uses require a Defender _Team API Key_. Create one on the top-right menu in the Defender web application, and grant to it the capability to manage autotask code.\n\nKeep in mind that your Autotask code should include an `index.js` javascript file with an entrypoint, such as the following. You may also `require` other files you include in the bundle.\n\n```js\nexports.handler = async function () {\n  /* your code here */\n};\n```\n\nNote that you can only use the client to update the code of an existing Autotask.\n\n### Command line\n\nSet the environment variables `API_KEY` and `API_SECRET` to the Team API key/secret you created on Defender, and invoke the `defender-autotask` bin:\n\n```bash\ndefender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\ndefender-autotask execute-run $AUTOTASK_ID\ndefender-autotask tail-runs $AUTOTASK_ID\n```\n\nBeware that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\n\n**Note**: In order to get the CLI to work, it should've been installed globally, otherwise, you can prefix with `npx` if you're using it directly on bash. This is not necessary when running from your `package.json` defined scripts.\n\n### Script usage\n\nUse the Team API key to initialize an instance of the Defender Autotask client:\n\n```js\nconst { AutotaskClient } = require('@openzeppelin/defender-autotask-client');\nconst client = new AutotaskClient({ apiKey: API_KEY, apiSecret: API_SECRET });\n```\n\n**List**\n\nTo list your current autotasks, simply call the `list` function.\n\n```js\nawait client.list();\n```\n\n**Create**\n\nTo create a new autotask, construct an `CreateAutotaskRequest` object.\n\n```js\ninterface CreateAutotaskRequest {\n  name: string;\n  encodedZippedCode: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `create` function.\n\n```js\nconst myAutotask: CreateAutotaskRequest = { name: \"myAutotask\", paused: false, ... };\nawait client.create(myAutotask);\n```\n\n**Retrieve**\n\nTo retrieve one of your autotask, call the `get` function with the autotask Id.\n\n```js\nawait client.get('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update**\n\nTo update an existing autotask, construct an `UpdateAutotaskRequest` object.\n\n```js\ninterface UpdateAutotaskRequest {\n  autotaskId: string;\n  name: string;\n  encodedZippedCode?: string;\n  relayerId?: string;\n  trigger: {\n    type: 'schedule' | 'webhook' | 'sentinel' | 'monitor-filter' | 'scenario',\n    frequencyMinutes?: number,\n    cron?: string,\n  };\n  paused: boolean;\n}\n```\n\nAnd pass down the object to the `update` function.\n\n```js\nconst myAutotask: UpdateAutotaskRequest = { name: \"myAutotask-V2\", paused: true, ... };\nawait client.update(myAutotask);\n```\n\n**Delete**\n\nTo delete one of your autotask, call the `delete` function with the autotask Id.\n\n```js\nawait client.delete('671d1f80-99e3-4829-aa15-f01e3298e428');\n```\n\n**Update Code**\n\nTo update the code of an existing Autotask, zip it and upload it using the client, providing the ID of the Autotask to update:\n\n```js\nconst zip = fs.readFileSync('code.zip');\nawait client.updateCodeFromZip(autotaskId, zip);\n```\n\nAlternatively, you can also choose a folder to upload, and the client will take care of zipping it and uploading it:\n\n```js\nawait client.updateCodeFromFolder(autotaskId, './path/to/code');\n```\n\nYou can also provide the set of files and their content, and the client will generate and upload the zip file for you:\n\n```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }',\n});\n```\n\n**Autotask Runs**\n\nTo execute an autotask run, execute the command below substituting the `autotaskId`:\n\n```js\nawait client.runAutotask(autotaskId);\n```\n\nYou can list all runs for an autotask with the following command:\n\n```js\nawait client.listAutotaskRuns(autotaskId);\n```\n\nList of all runs can be filtered by status:\n\n```js\nawait client.listAutotaskRuns(autotaskId, 'error');\n```\n\nAnd get detailed logs for a single run using the `autotaskRunId` (returned in the `listAutotaskRuns` response directly above):\n\n```js\nawait client.getAutotaskRun(autotaskRunId);\n```\n\n## FAQ\n\n**How do I find the ID of my Autotask?**\n\nYou can retrieve it from the _Edit Code_ page of your Autotask, or directly from the [URL](https://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e). For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n**Can I use this package in a browser?**\n\nThis package is not designed to be used in a browser environment. Using this package requires sensitive API KEYS that should not be exposed publicly.\n","readmeFilename":"README.md"}