{"_id":"defender-autotask-client","_rev":"64-b76dd58374cc97bd4f13c4e9c2ee4a8e","name":"defender-autotask-client","dist-tags":{"next":"1.44.0-rc.1","latest":"1.38.3-rc.0","store":"1.7.0-store.0"},"versions":{"1.4.1-rc.0":{"name":"defender-autotask-client","version":"1.4.1-rc.0","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.4.0-rc.1","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"2fbc095cdcd4a2715155715a6c5aa8d26663ba43","_id":"defender-autotask-client@1.4.1-rc.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-a0ooPtz3XEbf9XVlzEh3nhsAVVgAdvOBS5s2NEwqdKkEdsPaUermZzjOV8b90QoR3ZXQMYBMGCFFQP9nmWBZEA==","shasum":"2a0d69ba4e9f0678c3b7b6d76c0b2c8fe2de18e7","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.4.1-rc.0.tgz","fileCount":13,"unpackedSize":96710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIY8FCRA9TVsSAnZWagAAxk4P/2ZEirtvEyhAmaCl05M7\nVlvBqzAGIE6JW0bQm/nFayK3XVstIYtYdVq6JyxkgSTH6nRwrWcTAGjTfQNE\ntL2K7PQsBP2z5Ps+ThaYV8xNqG/1tFqkoqGTQLhLqqkFNAJRPJj1L2NGiXSQ\nMcWAQuW4+blJJsCaXb6VElEPZRELWkuL3sgsRiq1rFETCCR+RhPorGAiDwa2\nKybYHnLx5I5d0GfVWgOl6b8JxV7XU85QM4D0bm7Pg9oqRxJL0U/GfoEF1Meg\nwOcK0OsbpVE/mBQ68RPF/h+qAuHkyu+y3t0M0b2P6VrKWbsjwz0XvPPj5kCt\nodUAelJUDBZVaKvOjRltkLJzFv9012Ue4XOyjvGwULLxhg/ra7tqszpP1rIn\nvgHQhjU+wPvI+CRjB3qbht+jvAXF5ThZtQaMjeOootEK0u5dNgb6i46Vu6xO\nuRabAxmTt/F9ulWRHBweJCqkceTGS93Li6G8E+wpkCOKQzPAWtyweJKDBryX\nmPOddkEC0rnqQTynyug0nO1rXjb3tZd9qKacNFIblBu6MCdG1np7hNvY3blL\nmainMfB9DVhyaFlk9LRDd2hW1NNm0xtMFNdRtFVsh01Bc1ocHwuElbxcEmjd\n9HOhZMlSiFDFGVFDKqaG6TVBzJAMz5qe+cNk4l1Q6zE9Rf5NMN5z2y//5Rs5\n4DSP\r\n=XCx5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEcgfogE5TvizeYwHxIvnHCZd4NDDxf+Alhgnjh3DOrOAiEAkQuTjgiNjqWFpmsyCQLanBtt/gQL+N6BIaWoSblUgp0="}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.4.1-rc.0_1612812037253_0.5692791529393135"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.4.1":{"name":"defender-autotask-client","version":"1.4.1","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.4.0-rc.1","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"73f1fd6568c8c8787a7a6088aa83b47b9129c966","_id":"defender-autotask-client@1.4.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-ci0OcVtQErGoAxuAaZq31eTcC3mqaDLqMLvEnYlu27qynoeE0O9OByJEMe2AKzSjEYhwRkIcm069L4BnUGgZnw==","shasum":"f8eacc34c2aaa4195fa350532c42e9d0007cf3b3","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.4.1.tgz","fileCount":13,"unpackedSize":96705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIZJjCRA9TVsSAnZWagAAJkcP/1b4Gj2iFUUfTYUsaz+s\nBzMFrbOaWr9ZmrKqdvzo62loSW0w2kg1Eigqu1XdxAf85v1Xds4W0bP0bVqt\nGkM7kYb9ZOfEoCtQJL6KdDAkPi17zh6Hf4XE8/UCmKNQqDWGNwfTv7kKUqvM\nM1d5fKcqpgIVEtLjP3nMtvnIo4JiaNRSiUDLaMT9oiIzyb7LLoQgT4x+VGey\nW9gwNYWgz8HPwUz8qVsI5rLf3scVWkAjs3F2HVs/+8AjOFXAwGmgpkKtrIHT\n5ZCC231NqnceweUyJc573ZmtnVHV+8nTD2m6y8u/zXzYps8Zy5CNMCXsACHu\nUChy41B4CLXI2ngm3GJa8HAdef+l5pVXBjgJCT7BQaUf0awF+aqg8voG8G0l\nHtLrjqrtEvhnoPOF9B5+5BUW9ZEEUSfSqSb0P7zfD5Kvvi7hfJkfuQ2LzZ14\nVjDcDnwkV0NTCPNqntMERJCXJFMmJFMiiLCKj39Oz7rCd93NYAICqmXkNz5L\nLqYFMDzPWmYBeJREhqSvvEEhGnwM8Qy+kRoBxCWBUSlNi+WrQEabKbP797wn\nTEl+RgmaC+h9z4M0Yoc4YJoYPxAX5MiukACMY66NUkiuK3tlMrfHZj6aPeiw\nsgL/lsUcmYv4JTWLSqHoaHrCHMjt851yrfmvy2ojVfoESdyEXz9aYpCfLCOg\nwaLZ\r\n=Gozd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFSKuMK66aq/z69n2LMwDm1vpWgIhPl/DP6XmNc3kQ9AIhAPWolboYeOQGpA19PjCbSt8yBaV6YcvidA9SqKMafOnF"}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.4.1_1612812899193_0.004161902929930239"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.5.0":{"name":"defender-autotask-client","version":"1.5.0","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.5.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"88ad6167fbff20b27770af4083029e9b021ebde0","_id":"defender-autotask-client@1.5.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-bZXQjdDJU83Rp+GGWjDsmYjsJXehcQP0IJ6ChYQOcg0nv3K92UdkoMZQFfAn3NvIG80DxV0UHDPptzOC+vSKBg==","shasum":"9504884bc374be8376d6e0a0af6a50fb0084e1bf","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.5.0.tgz","fileCount":13,"unpackedSize":96551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU750CRA9TVsSAnZWagAAnfAP/1rdNcnvoUJyIGZQmtM9\nV8YJME1cBPidza4zaaD88Hjww2GdXJ+B3eYWQf4PoW3xlVEZu9egT1a38Elb\n5qd0nsF3Kwyfm9T01Wg/FJUq/2ZC53bkDfN1KBtil2lcA7LkLfIJ4/nsXPRb\napLl+elyyECqJcnDCPxQhu6o9N9HEp/cfsWt3bmJmgOe/Ru5US58ERABvJMk\nvNkkDiEhYMeJ/eXGbIsK+Ch6BjPqrcMTIU4q4sr/cQuullIhejP8V9Qv2D77\nRUQPqjDgK2kmZca8Hu77PnWUbzmlh3PWtWjVD4rchpaIlum/D+wPC500N0Ur\n0X7msGvTlcx+FydFab5NKV7czD0kqeroEPT4rEH3hwZ3szTH9uTWLpqRnTLV\nWOLRc4Iuaj8wNf7IQjsfZiVrQCe0pzx3fiR4z1DM4+WGrAKXarE30AVJiB0s\n64mFxtfa/m5e/5y1XzkrxXuCXICf5GZhW3L4I3kOqgkKnBpN4BZsl9H88pBb\nBnMQe1KMUb/HNxyjAQM2tQTELqDARY4YM0FIDCz5WEfvLlG4ryziO8NWw0n+\n54CObqssrgM1OsiqiWyS7TrvNlUuBFC9L0RLxN6DFU9sn0xbeODZkoOXA77M\nnrTnPfeFOSTreGaJSusj1BlVlat+9qTNmMs9HYqs0E8XqgdzCJ/3odQmFBJs\nkqJd\r\n=kA6z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeX1wpa3S0DXY5ZbikglZZmJsSSfwihZqrrH2y5gv4qwIgMZ+4iBaB1t99aGIKVaq5ZOaknYy/APi79Dk7SFwdY3k="}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.5.0_1616100979746_0.21523980070996585"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.5.1":{"name":"defender-autotask-client","version":"1.5.1","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.5.1","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"c48cda744d404e84c9ab4c0fdcbf036110f9ff70","_id":"defender-autotask-client@1.5.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-1OEMy9UODbgIznPG4iiVWQXy7ig76B8LqUP1HHVdoPcRXFYqmU48u9CQkH/Cdnfimx64KNadPlJcGGFcVbmO+Q==","shasum":"0a6da1986e4a9d9c2f94e5dd937c431851872355","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.5.1.tgz","fileCount":13,"unpackedSize":96551,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbxN5CRA9TVsSAnZWagAAkCEP/RWfwHG9auXnB2Mjh3RO\nayEI4HD0zY/ZKMLvH01oHL+s2u3seTIR5GZ/QjZ1dmG7p8Il2/WiNt0lkYM1\nuykbxTLStq9m6AR6I5+RHC6L5D4JB1BRyg53FHjndAYmkZ9sFSiIMLJc6spp\nJfyQGXYJSAV0sc0PyZU4rpelsQ17ZykYqbWdgCMAdVoWCf4UwSeMtPcb0ZcN\nBkdxK9QKr6gXMmqQNoasaKuKx1cojlroo0ZCdRVkfAndZ+s2GxucYVsH87Wp\nwjSFejKmEJrZhBTxBdnxnlPTP7PM4CxoQixTIQhWIpjq2MeEd1HwZdrQrwe4\noOO25813odf+Wq0GZt7U66EL1Zm5WBGG4N5kaBzslUULpzdUdDmzv4Ejp5sK\neZitkg9ejfUiYe3Lq00P0ybPOaVu7TJvwISKvJ1j9c42gsEew/cuTI8OOtA3\nJaZGIzJ1/t0at3DWjtuyHRikuTTyO5iIt4e6IQF1hK1gV1B2G1gP5gA1Htz5\n9n8VmfwgAUyM0UgBGQsBnqPCI++L7R2n0KAp1VYqGKHuRcWxyhk6INZXYWfK\nVDlqURXnFjAww85MdxUa1QuzedpW82OOEU25bbx858IjfXWEaTcteUgh1A36\nQQfvgIuXwoZIOFx66xMFwvy/zeHkMwHnwSIN83bnNiitBcFvkZz6mvHeyvKm\n/AxV\r\n=9aiC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrlHmAIT2My/wSu9iynfWSGBtPV51ztCzr4A4rPKRwUAIhALG4z73hBbiO1CCYCeEBHNgAjnYhUzIls59ysWVsd5Y+"}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.5.1_1617892217187_0.9836708991856935"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.7.0-store.0":{"name":"defender-autotask-client","version":"1.7.0-store.0","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.7.0-store.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"dd7287dcee13c48f62e4b0219b445df70b36d8d3","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 or via webhooks 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.\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add defender-autotask-client\n```\n\n## Usage\n\nStart by creating a new _Team API Key_ in Defender, and granting it the capability to update autotask code. Use the newly created API key to initialize an instance of the Autotask client.\n\n```js\nconst { AutotaskClient } = require('defender-autotask-client');\nconst client = new AutotaskClient({apiKey: API_KEY, apiSecret: API_SECRET});\n```\n\n### Updating code\n\nTo update the Autotask code, you will need the ID of the Autotask to update. You can retrieve it from the _Edit Code_ page of your Autotask, or directly from the URL. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\n\nYour 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() { /* your code here */ }\n```\n\nTo upload the code, zip it and upload it using the client:\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```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }'\n});\n```\n","readmeFilename":"README.md","_id":"defender-autotask-client@1.7.0-store.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-GTuuX5wNVM0cryrcS5N0IsTtArLf0gM0f0y1EqiF2ql67WnKWONpD7sJcveF9QmwFU+DJdFao4qT4r9YOI5jLw==","shasum":"617be14f01a1e1b63b39cc5d898fcd80b6290c7f","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.7.0-store.0.tgz","fileCount":13,"unpackedSize":97820,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgm+rvCRA9TVsSAnZWagAAvnYP/iwKmjPbRYPv5jIAkwi/\n/adOPw3t1fVmXKpGPviLPzJ9FegYQZz4EYTYx7zq56lJlMLyZAz93yjBijF5\nTofJIE6ub987kMfu5qGB8vO/XO6yPNwCTKrRvIRLviRmRHu3dGrEoeo08s7F\niWkQ2VOBkZdH02tbh3k/1vFxDb+Et1yyvx7EhPfbRXfYLbkaD1t1/vPTCxRI\nzRzF6W+k0U8r4ErcHSf4MlNDgc1cIq8Ok4Kdv5Exus3AHcOC62EJdxZ0QTBP\nby12cV2qNw9YXHL88Njwr175N8tsHZq0NedYU2yxd5QVzZWoQOw1SAlB5NPQ\nyOOv1LWCnDUZ1tweJwc/CavDSpdUMvFwaPu6VqwdAgDj81rSnGTCTLn7TSH5\n/GBg+Wu3VU+9OmVaS58+nUkJlkOuklM77hY6TdCTDGLCHZI8NYwn4nulL0FV\nTfYVukd5ga2G26SuKYGL20AY+CiX6som1qc3NaL5+H7XsVoTyGKfHiridwGr\nxmVK+pcRtUxRG7Cv7oBWAPps7UNuYcd5G76XqtacFUI60wOGYRbXZb8GdCdX\nGbhibxNAzbIYVrVAI8QTitPQsclm8jTHsIPdGYbyOhqw190IkfM5sv4TLWFb\nYSsD4k3Q+OFC5kjko1iscT1YFjX7z6vMbJq3D0e7n4eL8nrBoSiK7AY2N2t8\nvLlc\r\n=FvLY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0oCHc4iVMhY82xMIk5aj0iRs4yIkawSiLibmH2hRnMQIgGPV4RMINn6H0YPAJYYxpEVeuKnLqfe8n30nHKSwGDuw="}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.7.0-store.0_1620830958961_0.5893823202683208"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.7.0":{"name":"defender-autotask-client","version":"1.7.0","description":"Client library for managing Defender Autotasks","main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.7.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"0f307714b8ab375daa3ec43b232851c09084567d","_id":"defender-autotask-client@1.7.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-9wOegN/OII1tDdIZ2YA+dij3yQzT5pYFnIeAWTTC/vcvjqnMrhovMbSFLqPQPfC1MvI72wcv9ldsWmTTpnjfzA==","shasum":"e48c1a95c13ac7fbd1198f1ca9c8b49c4104bdf0","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.7.0.tgz","fileCount":13,"unpackedSize":97805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnW5HCRA9TVsSAnZWagAA5doP/1MDbMghXf2CdUN+2LF7\n6Kksn0taGh3M2LC92fkgFDZ6cCN+b2DSa5hD2bPlVYhaWOqrnOmj1FS/jiJt\n2DjsixLD5qITrrssX75hfcCoMI9oFCCLv2FGwYhhMNbbdpXSCxnrQ7Ob1Ddp\nXdHLj/dszNEHP9JUO6d1McND63H0hQFX63Wkx40h0TDhrHbVraKeP54igoHY\nYxZicVksOwrUDDpjAUURFFVpQ+uXoyfbKO6ZYlI3KERFlF4frjOiJsg6Fb6N\n3yjWcfGKmy0Yb9tM8WQM++Bvg0PI7BNipa1BTV0oCGEOCnHjF51/yVC8bbyt\nyMLvpiof4leUSUcD3/59HwvMnefKOG1My0WRuzG5BM8HI5cDjxClGmqGqJcF\naUIhmf5PZelGa9ibellsYz12vDXzv5upDSDH9E4M1T9KswwrBtuX/NzXy95u\n8Vj2AwNzOfCVxLNTtNKaeKcMiMHaWhwY+WG1LvG+0TufX3tsBwN8a78tTUoQ\noParskLcGG2hAg/B/ZF+mDp9hudg7HS8ISk2weIVglqujvC961b4wKPZDSv2\nxaIlzNYKfCnPy14BoTLhyGVP6kZMEKGiUhi6A07ToyV9P/mU2Xyp3uC5uiK5\nOutNgBTB7aQx0pNhFCNLvqRSuF39Uofu/SOf+4GDKQ/7bcJ1z/d7HEdbwF51\nrAPM\r\n=fUJx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFpLjt3xO1ZOPg9mJtcsxie5P/LkRl+NWU899/Q/elZAiEAuvPwRWh+lDO/9WJ2IonnvP1lc/WKntXNGsfb5XNQJfY="}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.7.0_1620930119100_0.16826093889568394"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.10.0":{"name":"defender-autotask-client","version":"1.10.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.10.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"b79d7cf10661e36c1e28df1a0aaf2edfa223dc3d","_id":"defender-autotask-client@1.10.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-RuyBUEDuCqeyWj594VLY/wW0J+5MFoCRny39Kzx0oxbTRVZWKUeyfXs9ats4COcYVYha90lYktnrgZDcSqo74Q==","shasum":"1945e88603a4619a0f1cf9f182cadc34de4cad7c","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.10.0.tgz","fileCount":16,"unpackedSize":100427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5gc8CRA9TVsSAnZWagAAD50P/jL524kmW+JspRf6jfZ3\nCKGGZ9k+YGvZ1zERK/3E5Ch/dpOaYBMna/i8VYKXraC+ebQoCH6GGpNYZiBh\nNVUqFufw1n0gU1tHKSRS43CpSu/j32/ncni2yhZdz2WAHJwItX+eBQBRcf5f\nLWqPYCYW897iwlGZ5V3zcXNBHJOC1SxSmTap8hTRNyGoEDdtUov2xPN5U3aN\nRlLhopqEeZD5H66cHrT/pqG2Uw9CzAIwfr4Q+v72UCgU/OFwlnFX+BYBRas8\nUxAlEBu8tqaeBhCJ0vd4UzCZzfkTZ1pCJNuj3+ZUGoitTnN9AKRPFcan/lXe\nAkKUr+4S3DlnqPRtFUOcBImyqTjmv5gHA4k/25b/LybJAaQKJzcgAUPwZZkO\ngR3K7hjWAR1nKhAqsu/M4Apho3AKwNgAZaevw3Rx4SgS4gI7syFlbpKOCYzz\ncqRkaTt4+SnIosOSRbzNnD9e7Vg7tnMvGNxRz54FlhOLBLbfJhRE5yitOstm\nic2wMoi4hZOCGPu9SQlAZzte/fvSKiy/3bWEXzlqtoWGYFDIcW9x9lcvLrUI\nHJ6vqj6CaQWzollY914PtyAcyeMYgc/7gF5fWXuxKGZM6XL6DYz93nCYphjw\nYW+dLDecmcXSpyFvR3s2QGwp20T501bqXF7OUSkhTwwzcyUclUHLnrkPHA5z\nCCiA\r\n=Oois\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNwJF+bpPh7mAp44YqjQpA06LSOmIUDWGGDalsP7STYwIgYMYpXsm8mzU/qSq9I5aFGIUxphfJu6fP6W0qmrKSl/U="}]},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.10.0_1625687868016_0.36807171940028405"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.12.0":{"name":"defender-autotask-client","version":"1.12.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.12.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"daddff62731a4b55075b57905d8c5b8c4eb3b80e","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 or via webhooks 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.\n\nExample usage:\n\n```bash\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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() { /* your code here */ }\n```\n\nNote that you can only use the client to update the code of an existing Autotask. At the moment it is not possible to _create_ new Autotasks from the client - you need to create your Autotasks on the Defender webapp.\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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n```\n\nNote that the `defender-autotask` CLI will automatically load environment variables from a local `.env` file if found.\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('defender-autotask-client');\nconst client = new AutotaskClient({apiKey: API_KEY, apiSecret: API_SECRET});\n```\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```js\nawait client.updateCodeFromSources(autotaskId, {\n  'index.js': 'exports.handler = function() { return 42; }'\n});\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\n\n","readmeFilename":"README.md","_id":"defender-autotask-client@1.12.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (darwin)","dist":{"integrity":"sha512-9h3sVbrWImeAdtN0J2f3RLoGOgvcX/SbU0p5fDkeMUSDlzQ9qOAfn76V53nTCM+W5yKPsCzou03yqUspNdgwbw==","shasum":"344bacdf8377b50047cae37c5492d5a28f24325b","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.12.0.tgz","fileCount":16,"unpackedSize":102024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhnmFlCRA9TVsSAnZWagAAF/AP/Rbd5yvVGvnObtTBLNff\n+FbQrmM9QN+S8HEYoqC0MS5mCPU+UuqX046SubfY2rb/+7iMsQjfV9VEhXfn\n6HMVwz9x91YnaASAuiE3iECuflnpwAC2CPsitIJc7TV1Yc4szwNZ4Vlujy80\n+iIF+iDqUdkNBYhCEEAFvubdV6BQ20E5SQRSkjSHdAHh3UkzUYjT3afwU3d9\nSUNPstvU3QCjE4bpT5OyCTg5j9Mw1wn7l+BiW4vdEZTG/Yv7DUaL8tGEfySy\nJ4pI1LwY1fl545eR3eP+r6/xr0T1EyJt5IRsGMayb/rCtyDc3u+F9eOzhNlj\n3X+RY1/PQWNzUGXTRY/Bvp07v63TNVjegG9LfCnrcMWc4JWJGGh73KzZIqja\nwXhqlosuQytmd/ycW4HW5YnSb1PxgIMhmd6U9WRoYKeu3IZGcZXYkDOMrF3i\nWyTL4A9hfugX3UxklQz7XY1PG1qY9TMXV9oBb7tT+oDCNbYbd3bvHfrVWmFV\nfFjJa4mv4X/V2z58/PpI9/sp+qj2wbg3hxJrBkqMGz3+EuUJeWhciUZ+T1Ct\neuBp+IX/em/dzqSB1KygIi43SV7RnOs4CCz1ZfAzO4EH+BdWh7cswIhIOuh8\nlLKsXN9azvUrqj4dP1fp8ie0DKNNvYMSAt4hSo6REMtal0/YuMqeDaJk9EJC\nReff\r\n=ROJt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyGPOnBEKUQrJmVK4z5bneyFPeWntnGF+SbwqbVeFxDAiAoDHGuk85JI5jsR43Kjy9QSHv7uI5IdYP3fMa7I4Kh/g=="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.12.0_1637769573477_0.5033309743948609"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.12.1":{"name":"defender-autotask-client","version":"1.12.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.12.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"f3a6a34874e04e5fb2607981b0ce63c49e2957df","_id":"defender-autotask-client@1.12.1","_nodeVersion":"16.2.0","_npmVersion":"lerna/3.22.1/node@v16.2.0+x64 (darwin)","dist":{"integrity":"sha512-53qZgeXxjZhsqNquAjBKL9lt/B4bmXruCNFDpvIMf5LrxATKIsQivjnCUBv4LzRLSBJlVteFuiLAHQWkrYlcnA==","shasum":"e437c5f085837dc523d0e5861646dd5b44a72e89","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.12.1.tgz","fileCount":16,"unpackedSize":102025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhn6qJCRA9TVsSAnZWagAABSwQAIVzmdZjOT9ZUpFsMnnQ\nla0bsEp/9/hWY9Uo4tvBE6JtunGPN6gRXJ1AqsXWBRTspeXe512vUSuC1s+h\nivMt1IZmhk//9LeI8ZAa6XeWUcOtrNOZRhzbCcWPXQaoGYtKtZC/6oAb/Rq5\n4eCHm8QNWBWKPlqYG1Jsb62V93B+QQyxHSz+AQmQBwMQ6HZvRFmcj8p5yOIT\nVQljio6x/53bz/QGPXN6F7E0rovdy+kaRLIgFefw/uYjp9942/OFO13ufxSW\nldpNp6NLtO0Zja7tKG4OnPHit/6GdyEPvgyoNtcjyCVnvXtItGSEwVxQ+DH3\nAbpcV8Waz4apNqN6TQU22ER6GGZeVXQolReEbkKMZMeH8a03Y6jwuo9ZxeBo\nzdQYQjqdir7MJ0oaignpHyPpETQ6nzTY/kmJ3yLJC8CL+7LIG4mcnahHl25i\n1hLGi2jzinGyHtree8HUgGqa+ELXB4hrIsPXYBxXzGNifurMZ+4V08mWAIJK\nZZRznaYMq3OgjpXx7dzzuBP+w/279aBwZw/r2WCEtQWp/+o6/9vHN9rA0lyD\nMqfXxFa0sdsZPZ1RpbWYPXHxOxvY2Mx6k5k83uGbiS28YaBdzUjUe0+5jPAh\ncgf4xaRGzjzl7piVZqvWlnb4Aihsn13JDC+yU0ojJOqr1D3tD48uP2ymSRIq\nFEJg\r\n=kkKX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDujnqvBxUgelqudyHC/5I03NfUjMPg0EniEsGT3Ty/BgIgHvHiPTZsaKD9DAhE+itaW/IIUhZ4HiUgwT3BV5NJboc="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.12.1_1637853833654_0.7857039599734255"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.14.0":{"name":"defender-autotask-client","version":"1.14.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.14.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"11c76154e21e4356d4020549444f76b9cf0b2da7","_id":"defender-autotask-client@1.14.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (darwin)","dist":{"integrity":"sha512-EcEPOkFGXJdgpfugivGqsR0xi6Bx5WxSOJLeQxTVsMEd/DVTHdgfgWitTAuSqbTg754SYjEBwGZ8cCXj1ueJXQ==","shasum":"307f287dc11450ae81fb31ccd8b6be13bcac4315","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.14.0.tgz","fileCount":16,"unpackedSize":102025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBPrTCRA9TVsSAnZWagAAwpIP+QC48InVdFWXed3TIjPw\nHLtvxup0mPFBmPeNm0PZzxhXFy81QgpoI5Kx0DkuFQ//uZxRRrZU5/W5lcve\n+j63TKXX7bOmEVdR59qaOIi26VPGPE9RwRu900T9z470qYpfI45qhXMHU1oY\n6f/WtICdJBaos+EA1W5G2l3NjoiWTxFWufTJLDPCAATFPlP4+yriZl4uFDX/\n1/RNNIC3BtMKzbKQVAA0+Wmx1F9YHVN4iCe49bnBQ9DZC61ykS+sZ9ZYkf4v\nclbq8LksGt+Juu3xrHKnwA14OGeqYLDDdPq3fxKCm9icmyo7PsW95PtKMOok\nQk2qAH+Za4IhRZk+VHJezejQFOp1aGv+58tQr9pBAQIxXHE5GRrZGL8umULE\n+BAcw60g+M8bdYktjI0Op7wSHqFvBYhz0LOmr+C5Bt970TjmKpVkDhopNVTw\n/MqkZucwkTprGlgpXoL74V10n7AOi19WR4xfLKuPVH440YyIwYA1wd5ow4cG\nfnJ65BSIcMllfSaUffm7FsfXyVsIl5aMvW9WyE+fEriLOfppr9M+qhrcBL+G\nLVEuHJfWc1BCxREszgVAs5729P6MQ+AUzjPOVQkD5hQ8C817p0UV5nLeFqex\nm4cG2JP3ixJHvu59r7WBghiyAFG2qHOQa1gQqzIdfZPqIFHkwvBOyhq+AX0l\nn0cP\r\n=Mg/P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBENcpUyB6LqHUgxx+eDgKXROGd6CWL0YaPb3CVTpdJ0AiEAjH3oz2q3MGXNqZaI8Ma0eWLw0yJoKFqjpS3LW0eribU="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.14.0_1644493523842_0.634407246477052"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.16.0":{"name":"defender-autotask-client","version":"1.16.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.16.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"8471085f5f94dafb25a87611ced018e66307bf9a","_id":"defender-autotask-client@1.16.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (darwin)","dist":{"integrity":"sha512-UqqG/ohPRsGSu6cDCFqZHhCdj+FaMAAhVruCEW6Y0lTyI3euLOQ8DS7xz8oGofsztxCCYQTZp/XzIRE9tdWJJA==","shasum":"ad35c07c2d3389f46d5d8497e5fa09677942040e","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.16.0.tgz","fileCount":16,"unpackedSize":102025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDhmiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAWhAAhJcCPwyK5NQ9DkLuwj1clTH8X028hcEDeC0N6AiIthS8oSGi\r\nU/TqyB9tb5l8e4lZQVLKPmKpsVN1yRQkFYQ0BHCvnmUQNljbE9bpjU6yEP7j\r\nTqPk5WvTv21+V2Bsv0g2w0JpIL05zBcv/W7YXIDkwjGBrR64p/W2Josbo90m\r\nuC1mlNqJ9IcPyuWRMx06KhAoTbkMJRf1NwpGahZZnO85qrlLYfSlR6wadURJ\r\nZ6yxaWZFSP2Hguhs/Vu7wk3Fti82OMntsgdEQORS3sMhS/TuuPVlUv3iqYgt\r\nLqNC4SCB0+tnCHfaT3KmW+1mdoAU2nRl4r61qr63LufLNqxdclmxCsh/aZkQ\r\nsv/BGvDqnhdXOc7VL9/8skEOJZKPRa9r27/Wy8+IFsKJx4Gbkc+YwSytZhp/\r\nRVM+uH65PWrSXTkTaoMMP8ifcqj74PMg6nGtJ3jT1hEfOwcR8CpvOZT5lifN\r\nHgu6L+hh6GCQ9HxTDUMRKMPqM8hraXyCXyGBgLokcUBbIGIU8inAo9r8/8G4\r\nKM1yMuOyAMkAQ/hCUcG0T7ZUnSR3WSbquS7rM78s0vueEYLIonR87OQ8WFuT\r\ncAI7ELQj4n847rvHb+GH0caltb+7lI+FNHWr3Sw/DZbv3UHLMOMjPU3sVD0I\r\n7cmHKYr7s4sZQwV8HbuREqHAmI9kvLwpJKU=\r\n=ca3e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA154eCI4Xe7IfjATS9Z0nPKzAisutrGIDsxsPF2n6fDAiEA8uHGYAnQ+3oJ1tnlH8T+1zECqJYEoctAwPNzVaym08w="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.16.0_1645091234802_0.764722744776412"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.17.0":{"name":"defender-autotask-client","version":"1.17.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.16.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"dba98e38df742d462e3e95aaf27fc75ce29a91d5","_id":"defender-autotask-client@1.17.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (darwin)","dist":{"integrity":"sha512-xoOBMwKc/FsAesff38Z2XsTOiXDGlNdVAydc06wuQgYEu8k80tXuqFq8YhrbBG/MW65q4hWlX8tJo7d8T4iAiA==","shasum":"ac4dacdca2f170001e3e9d1743c5925d88659ade","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.17.0.tgz","fileCount":22,"unpackedSize":109352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGKkHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqShBAAjuAyCOqHmKJR6I3CARoUAHqB9Jo6oaQKcNfgK+vdeSjBV00J\r\nVQxKCkexM5+A2V3/Z/t09OaeVw1tkAfAAxAJ5njXGlASCoPqpaibqw3c0wwA\r\n2iHDmq+zvS8a7hOeRcHo6mmE5jeub4QKFxerZpCt0xW4O/uZbJM1gxJs+cID\r\nDoLoZb6nxBXNgkEbrgDNTcYBQE/O9gGxqEHC5kt044YLLwmQ9Itnu9I2wvbb\r\nGLuhNKt6tuqVYSYE7WYM4lsNDhd1Y49mAv6IX0bhh++ZrZNuSzU8GS63AsnL\r\nQQH8z6JUmRgLBeviRj6zJLdU4E9N/hcTFLpuwxVcjWmbNRzbQxM1HKRyWHTb\r\nWG2qprCXt0qkuzUDkZfm35j2gjvuCgwrds0TC6l2mo3wqLMHa5808Ao2ZGbn\r\nLcPE8kUhwnxNR9DA4zT9Hp6GPUlsSQ45cyBbc9cDkEEehG7D9PedGzt92xXB\r\nN4za1Q/Ug0AxCwzwcLkdxmxtiPDhaSIsixCJkJELyj+gPRv8m7zYJYDHp8Eb\r\nMNVfcbsqdLoh+6sraVFfUapKAEBH9RiBV4RwBnBFA7wAGOpPweiWXSQxLl4E\r\nT9IubBxuWJrMWiysRTk8UtP90Tc91v336DaOpvEoOfjofGyNuK1JoSZVOZDS\r\nT7aZESJ69OqxZE2nRVRXWKS3QfYIzBXmbSo=\r\n=bkQ1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfM9HE2HfZMOYtiicrTLJHRldynPkRsvH25d4LH+oETAIgXOXw2VXOnuhfySvz+XfMmpJyJlqPJ7Lm1/nApYrIqAg="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.17.0_1645783303154_0.4526986564005906"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.18.0":{"name":"defender-autotask-client","version":"1.18.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"^1.18.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"8d0373f3fcfce313ce66d0ab21ed0b44608432ce","_id":"defender-autotask-client@1.18.0","_nodeVersion":"12.22.1","_npmVersion":"lerna/3.22.1/node@v12.22.1+x64 (darwin)","dist":{"integrity":"sha512-wjVzPRtaAmoT0oyM2BYjwIejKu/waWpoilroJLngTU5nWB7rsEe43RSoJFzA7b9X4gBcjEqvmxEZteiWVriV2g==","shasum":"65636543f6fa21894b93c1bd2297c7fb1ba1ad90","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.18.0.tgz","fileCount":22,"unpackedSize":109352,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKjXiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGiw/9EXZHoRiXfleUaDEqeHVuF+FZtMuT3k84wCcHj+xLiUvUdOEH\r\nbdPQXmD67dHR3Fk8rAzF90wYVndAGbaB+p9m1TiSYWC3DNF+uIDEozD5EaRF\r\n1OriYBdaZlzhmi/nmVFyabgGPO2iWFgvXEtQ7fVgySdUPtk/CCiPVTeKP3e/\r\nCwcm0tJKCxO6LrDROTa+g/UOo9ngBIgRdal1ZAShyuXz00O8sF2rh7/wxlzw\r\naicKoPpnWdO05ENgy0FTs2kac/LmnS/JU8kx6XO9mwyJpStIOv3WMmkjpoA4\r\n3qRButylfPsfH2ULnEMi0EdcUvvnvTYuWvyZZCsTpW37a7C80uRTxOsRd7nO\r\nnVytJ86czeDzP76TZT3RcGU96pttI7CY0GQUzKBF56/P4OzmV4YBomS5VUrJ\r\nYHDiC7LuwIiZ5P+pfFKSUQS+EIDSuteE3WI6D1+rFItQXJoI31NMP+o0L+OU\r\nSdDYei4iA9peuSHTdvk5CrQhbssrCXwtM9uBZcPyLpurB4W+SAGOtNDFVAy4\r\nocvWQNCtao3LYUe8R4v+B8IpJAVkdTT8xRC5Mb0XFDgNF7pat/uguYDlT9QE\r\nYVo4e6voXtMWKbjjnrgBe56SUaena/WutQuJpI9QmhyutgFJ6RNQejQuSSWp\r\nBbGktdAhFZ1S+J58inY7T/c33ICeGg39fnI=\r\n=5+PT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5FWOWl0Lz1YoXgceoqt/j/OiPnRyO1N930vQoxiXmHAiEAxT9iOPTkU8orrwyVlRV1T2hjz6HUFbNFbU+/HY2gNkw="}]},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.18.0_1646933474574_0.0478405614653552"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.20.1":{"name":"defender-autotask-client","version":"1.20.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.20.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"9816c46acec94730ccb357a4800cbe1b31c3d324","_id":"defender-autotask-client@1.20.1","_nodeVersion":"12.22.9","_npmVersion":"lerna/3.22.1/node@v12.22.9+x64 (darwin)","_npmUser":{"name":"ernestognw","email":"ernesto@openzeppelin.com"},"dist":{"integrity":"sha512-5l4uYVuobRyvzStLbZD+pbe67YWCnzfih8xZbRBqqLpki+t6mSRRWQEu0UPb/2qua6Dm0omgH3Gyh5wGmyGuzA==","shasum":"20e036e8d313b3e0183aeb601b0d237a2e2df8d7","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.20.1.tgz","fileCount":22,"unpackedSize":107754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb9Kpcm0VxdlbjsHXaSSRdpxYxgq7YP+UTJgMPH+gnFQIhAIoqAvO0RS+WkB7h1zx/cA2LkwGdJGbB+BMRhYM7nuw+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiaCHAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4AQ/9FZeovmRm5NQVLXgAOK3TL+eEe9yk7YHkBPsR958K45VkPQBK\r\n7WnR51u/H7hHDQsvnXoPg5sc6cQaRRecFSGzhI4KuQDg07HrOQT8N/+3ojOe\r\nNUGOPRmDGJuc5ah4KfJCBFqa4XciJApqyqUoyA1REqw7dtv7xwO9zGN/7sP9\r\n0LeLJHb36C8kdga/1eR2DlGxCz09OmDZdZJ4QfeTdJBCHR1Y3EOT191R8miW\r\nYKJBsbXaUqT4gm9FCl26+eNFJtSvKik9l9irjIgT20fLLF1KZaojhdS4gAgI\r\n+5JQDF21nZpTjKH0yIdd+YkND4mzrBVETrPV7VWCAe2tNCb7FE2iPyiRMBvT\r\nnZIilOY9DxcHHW2kL81S0GR9brVi1LZPU3+WKNj7kfJtKHzEJadBIgScJkLg\r\nbaNkO+d4PQUotH1DNZY8b8RyZD9+IFXf+jV+Uv1bds92y1pMuxO+0mRGk1NY\r\nbTOtFrGHXcmCiDdKhYbnqX2UGE2z0DxJ2XT+LkvZW1kXjIR2Nd7/iD0pBzMG\r\nehAougDYxXX+S4x47B4zTQWTg+HCguDaLNJDiXOVT7V9N1nwztewzN3JVEwU\r\nthedC0GNdDUcvduv/M/myyv6TF6G1Q4yvXLlBNRChk1nurJJ5zuBKXs/rraQ\r\nkWcP8I2zrMNM1DW0BOywhyAhDa/BpE3iMcs=\r\n=3qlj\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.20.1_1650991551980_0.201847374317224"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.21.0":{"name":"defender-autotask-client","version":"1.21.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.21.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"af627f8accdcdc176ac545e106a7e7aef1ea0e2b","_id":"defender-autotask-client@1.21.0","_nodeVersion":"15.5.1","_npmVersion":"lerna/3.22.1/node@v15.5.1+x64 (darwin)","dist":{"integrity":"sha512-tJJ0la4nLFP6ayhZ8pZrLujXCGkyNoVJKr8AO2Qe+OITG1eigYLNgNxAZgNLpN7ryLV+BWqf2fXUUHJnZl5N8Q==","shasum":"0a2475b62efa5610a25e8c5c9fd326b15519b0d5","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.21.0.tgz","fileCount":22,"unpackedSize":107754,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbyK6J+Qs/SYF9zKhkfW+Zs/jO3Thqau0FHWSm+Mfg0wIgfce6QbLzNBt+0OJ1U4tegehc7VRbjkAX60Wljr616HQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicBBMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqMw//TJfSPZcLIg1guEV6hWliDATs4Um3e29pk/4YQPNGqp2uTQhA\r\nYXzIz7DLSPyI7x4CKxoxBJOHhG185muh+GaNdJteUtMCXiWXbLeQRFVyDJQw\r\n4AHKHIPaintXfiJOse4oWp0Av5LuvfXS2ezDZueorZYdV0I6gPua76xIC1No\r\nbPCHWcE6Z48Yk4PqJQBkJ8EWW5XYXfr5q7sZ0gquQYYQkyJogG5jcj15WXkR\r\nGU0Tn11LT4VahHHm7vIO9PsUy3gj/nqJoolllMFszO7a5He5jw5HwSPQbwWl\r\nh+gB8Gu3t/7N+c7qnwhcTviHCBDPY5rd7ZAptsfYFQJFT8WBVAH7qmo3SSDK\r\nZJ7Abu7cQrHUHVHI1IiW/nIWYJ71yIirKWyW/myq3fP8WEY8AA6PdV6QSRXN\r\n+Ti58qpEv0BX8Mm9o1w4DrKYkZO7Ww6wSW/AdH8FcKsotaAmLrmlwJWoDoth\r\nv3B9LJLyojxld9gQQWaVyhKkHvfkhZJzzfCMLdgYmhUoGelnQh5FywFI+dPf\r\nqWWxjuUz5ehrZ28o7oDqiqfpL7l8FC+kGVuLxTZQKesX8Mh+dYBAlz6eW5KI\r\nFUZoQQxjwGBMOdxAep2+V+bahay7UKyD1YfzVAe1OXTmG6yID303L7sJ85wb\r\njHPvBnYiagnxsFpx0lraX++3XtGZlwggdmg=\r\n=TlUt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dylkil","email":"dylankilkenny95@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.21.0_1651511372185_0.5897682720146411"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.21.2":{"name":"defender-autotask-client","version":"1.21.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.19.2","defender-base-client":"1.21.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"648c076b68f2b37fcb8b34f6802d0d928b39739f","_id":"defender-autotask-client@1.21.2","_nodeVersion":"12.22.8","_npmVersion":"lerna/3.22.1/node@v12.22.8+arm64 (darwin)","dist":{"integrity":"sha512-4znroiOYEBtTjq+8twNBobqEi1RPlvf/dqHEIqWUXbHvkDI1kq8y0j5PG45uIlKBgtHgSc4M3+1uX287XR6eJw==","shasum":"29ac665e7ee334cdf79f8d24130c52bdaef5fcf9","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.21.2.tgz","fileCount":28,"unpackedSize":119050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuviysPy1f6TgRF0st+VWWXNf7BkI780cOnTWeae+CFAiBI/iIlALE9XIUXZmnQg8WeX8RYDJsJfqg3shQroijpGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJieWXiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFYA//TsUCH2j8FjJuwvF35MmhuHzRhKyyT0z/spTzUyyb/cugLekZ\r\nP9vtqGiQ0WjVFrx7NVWhr9SRU9ia7H0ENVN80CXdA4O/pZCNk+MsyEiEt1kX\r\nqY/Wx5wE9ekzDydnHAW5ObetSCr2zppIzaH3kfFNVqGhW/DUTHYAoKYtA07f\r\nRk9VIiEYjg3SL2wW5WZusSHib5dMlaQfkrIBwKYXftjTPsG4XoR6gq7Yc4s+\r\nCcWga2XFNclm57SlBQIOcJvzQ5jOKlh0709fQfMzxlB9rs7RoqAxsmbWZH/g\r\nI9xeobkpc3RdcApjoxjgFaid0DiAza0vJuTjiAbCy6AjC8x1txlrQDExNmh6\r\nA08vrCNgOJB8pyqjbMPrVA12JKwxd1gDdWrtC4ANGNtbYVmrmKGDrzfwn4VS\r\nU5ykm6ihcn8gXdwuKox4JAT2iQIjhLTj5nwV2szybXicvSvFfvs4p28i+hx4\r\nlQxSFjLVgbt2ybU2One5OOoJMxwdSyd7taT13nGmYA7ixDtzAmWlmKPYbkuk\r\nVNUeQqDZXlX/OiUHAjsa85MgL9TfVxvwD6bD61c66pImHYFFcoUoor2I4Uy/\r\nePxHGFidZ9lmEqCa5f64EY4cp0SXjmcc7rDgaEV4myd2ojFg4gM9usyE1fmA\r\nwdVVVf797EsQZFtGhZKrtM77go8quCdGiK4=\r\n=6vok\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.21.2_1652123106108_0.9889438347999007"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.21.3":{"name":"defender-autotask-client","version":"1.21.3","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.21.3","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"68cfe771c487cac57fc9bcc742d92c2d4fd16904","_id":"defender-autotask-client@1.21.3","_nodeVersion":"12.22.9","_npmVersion":"lerna/3.22.1/node@v12.22.9+x64 (darwin)","dist":{"integrity":"sha512-lCbJ+ryy+b5hT0pAReADpq/u3IUOsD9MN9tzuAlYZ3bU9r6MXTJyRMhCSVLqyxEuhLDYv9ad7TeKij6sBr4rrw==","shasum":"e81f89fd23768b6a8a3c48ef1932cc0c5f7d4d1e","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.21.3.tgz","fileCount":28,"unpackedSize":119050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAL66Nqv5TXfn4f18fvbTuyy9/vlMn8t0KXGZegovJUhAiEAh8LJ81M2/Nl9A5nWesxpjb/8UJX11nVah/iw3EYGMgE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJietLrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0pQ/9FYvJrXoHlLXwr/ZJB8aseE5P9GWIGoBZYDc6gndM+oSTpJnG\r\nBOMJng+ZJ2ZsMFyeNBqyXQDaWvBfIaH6YFejxdu6w21AjpcwIlFXi4PbM42e\r\npAmmnkc/urmuNnGMuPYmotfTJKWxmnLYsZgenIZh5HIBWOla4t0c3/28xmh7\r\n8Xjh4Bs7En95nWjWprVfmPjyrrovTZWhq6sxfV1XTOhmycwXTPfOMnpKh4fd\r\nqKyPPxgRne1iKjKGSq2asuHekKW9mcGFDm8czvd0oJtF7hXzfjNQfjvgW6cs\r\nvEX3etgnprDtVvnXdbvT/VMks1JFnzZhcBsCDtShbtyxKGMQ34I8rEy9ceRt\r\n+2YQ2VAqJJHbsHecF9i2uEsREXcUp1XiA9FHGXDzYNIMVMtfpbjPybZxTkcR\r\nTjQO834DZt8U984Yz886S+kWgFX8xQPl82ej11ZJ/9w4+J7jDwnvQQRTH5Hn\r\nFnfiFm0f9TaBa+eQ/VYdSV+CLj+fFmv2pVbCuYBqzciF4qJVhj/jhNr3lrjK\r\nDd6cEwl1axvhtj+7XdTANdeDCpUI2dHsTnot9PkMZVpPUnsU+A5cx/nrz9FG\r\nTRnrpUlPhoPyiGUfOJ5LUnwjRCQpYEABIfjI2xR/poCDYQXSgNLIWbKx3C77\r\ni4gTamkBhbEX4jLrSh6GH/zw8NWHI+0x9Kg=\r\n=L2l+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ernestognw","email":"ernesto@openzeppelin.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.21.3_1652216554838_0.8911184276428126"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.22.0":{"name":"defender-autotask-client","version":"1.22.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.21.3","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"286a3cd00d81e92f0ce9785f65f203d274de4083","_id":"defender-autotask-client@1.22.0","_nodeVersion":"12.22.7","_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (darwin)","dist":{"integrity":"sha512-P8lOdn5aJAy26FDBZo5ejV1ugZ85eudCcUdwdyXHqaPpO4nifpbrjB+LTFIlUS11g9fhFRzzrMfiSJyqdvpv8w==","shasum":"a45990efb73ea665f15b624be934426af976a9b5","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.22.0.tgz","fileCount":28,"unpackedSize":119596,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrTIG3hocJ5NbrdwpTth8czNl7aBOPu13jsqe6lt/p5wIgdBfkE39/guXLA9LtCoxp5eN81IqI+sReFntuOfNUsQU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJij5kAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8gRAAkObF/lxTXZYcPX4MKD/NV4HMoFvNvNtP0LOf+Ei/DHwTd7+y\r\n3N8t6+7VgPkLsrnxsz+GuukMA/rOqb2r22OEk3VOAD+5m2+oCuxr5YT4DWEv\r\nN63IKlk+KtzAb8ocrxJgfQO0QUvjlPm3QhW/UawsFZH7ag/0+YLJgAhYJ17X\r\nsNk/Dy/eRZY9PEyY6S+MGH2XhuB7RRDnjYQmPpGt+naF656mVXZ6hGo8YtZ7\r\nNGcRWc4h5ZQBT1bNa1G2YeYp7W2yvSPEnRXBWgJQ50uGKNO9j70Tf8nMuR9s\r\nYtqO+hdCQBrmJ9ciZerO5rQ7iSptF7sSDjSRQOPWD9UsYob6qVWQb5OByeos\r\nSR0FWCTv5fvhfkaiNwZ85tsD5141DjnTJDrxlUGcyn6kmDOpVQYAx37Wbsar\r\nyIcaDmDUX7+xU+1DCtkmfi/3pY1qFUkqvxqchiY9C5rhsyfmbBOUiOgYBZEh\r\ne5Z/2Kcw8FsyaZKwETS/iMf7SUVV+62dUiFdCQH0TnxFjevW3L2FOMlx2L0v\r\noDVrJlxgHvTPG9hHZ0mCpb6yJ3eP0m5hw2nMSeXTqaV1XRXBcmStIsJcZWNR\r\nks7CAVvRI+PqtGnXfrwiVUUn9rYDgjXI6rMxLXnGBksSl+IjE0LjnOw/FIfM\r\nFv9VIU/SZIeCOB1lpFlDu2Pp6ZZkGAcIezA=\r\n=EG8r\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"namis","email":"me@nami.sh"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.22.0_1653577984487_0.32672001529535155"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.23.0":{"name":"defender-autotask-client","version":"1.23.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.23.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"acba418b19bd605a696d3887800cfbefe7bf5a7b","_id":"defender-autotask-client@1.23.0","_nodeVersion":"16.12.0","_npmVersion":"lerna/3.22.1/node@v16.12.0+x64 (darwin)","dist":{"integrity":"sha512-YFlk0hVTUg5+DUQu5Ig21Bq+CHOR4GRPziDiwAe7FUDkH+8s6XyqoLrK9j/zKNnLE7FMZX8cVcuxE+7ocrMeaA==","shasum":"7b95cea97677b0df4ffa44b5a746a0fdcd97f916","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.23.0.tgz","fileCount":28,"unpackedSize":120024,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgf7PW6SUQnLbLJ6ag/+S9r5aQdffgKEG3fPIYrSo3nAIgZJFa+x6oU519o4UJ4UROc9u64t7/2ik4vhoD8mIl6g4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimeEqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/hBAAgMYggJiXGRIu0Qs+22BaD6HYeZp3GMQ4x9W+hyTShkdOua2b\r\n70yMkT4o7RrdqHmG+YDlsEeR0iLKq1UBeTsU3kX2AsFljvujEAfPzUPhT4zf\r\nwAr6nSjHAViXFTMl3TSHGg8ysSIld/fTFd9Jz5PWvaAbVW0xJmLpYSICQ/7C\r\nQwmmBR5QOw85pDdxYNP5+713IB0cZLgK1YX7XygthOGYP+Zpq11gGB++EDYs\r\ndfsIk1ZN2aVbYlMFg0839PrtpDSsO6yxzZxMddN1It9bYTtkXpePnFTgmgQe\r\n7BDTD9yIiYNaasPRqKYbFWNoOzMAKv0zIcFaYT4alosuSbd3Y4BGNZuTNy5L\r\ne0rgPHigsx+NgoC5966bFR4GFxwcTj5yAXvZoekzM7iDlsMuGEInjj5ja6hm\r\nlvMc6Fv1vm71CDYdLIC6xIMaG58hEbT2DVAhsNxt3rCNjLEcM66LSwvMR6Fj\r\njwfJSeL9IzeLi4H6XjVc3xapS8YsHqynt0lgcFM7D1PeOyuAzLQ17Fux0PkT\r\nnAenm5WPbaCaYQG/MVRYCeIAwrZjCNBHuAriKv+z9y0a5hPcbgyJnZ7Vsv4O\r\n6G7eaQtX09JlJ/VXP5MPXyb/iVxWwVNv1SN7SecGGu1dvfO5vZZH05Bvwrg/\r\n29T6Rhc5WDUYIoTIidaHqUb5U32Ri4bmywo=\r\n=aZ9G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dylkil","email":"dylankilkenny95@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.23.0_1654251817852_0.35965970254874446"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.24.0":{"name":"defender-autotask-client","version":"1.24.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.24.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"6471d6bb3d265c9416aca1a5f88981821dff5ccb","_id":"defender-autotask-client@1.24.0","_nodeVersion":"15.5.1","_npmVersion":"lerna/3.22.1/node@v15.5.1+x64 (darwin)","dist":{"integrity":"sha512-VtO0fvmN0Tq5AG82TGaOywn/zZRIXZh5rVOj0ZIL1fOAubvjZn8MjN5ysBCQ0dQEqo2yV815H0AFAJYaRM2L1Q==","shasum":"6715b38db5b516e55ae65ce632c4dbd4e29b62d2","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.24.0.tgz","fileCount":28,"unpackedSize":120086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqkCF8/7hGdhEaIL3CgxYV8Yo3t9tqrIVScvm3QLpMuQIgLhwezH37M+DsO54MzlxBw25IYKFQG6yD783vKqTMb5g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiohiuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpC4g//a8g4NNg/7vgHCGpiKlVWB1YRkDsvyhrvHwCsZ85eF6C5yxyO\r\nPy013cEzudmmDuDzRz6fiwjLfWGK+xjSG+Ibb5t6sPjbVP99ShKi2xeHgt6d\r\ncdKpjqtfT75UZ/se2Xtn+bDTAHUTWDodqhVfMlvABraKi7xEml4ajJOrdLOt\r\nDKo8ydA8VX4yqEievjTM8ZGqHthDA0AqzmcXeMzOLhmyZ3bTWTh4e9rpoKfd\r\ndH7c6lu9c1e3Im9kYdekR+A2lK9zS0bsi4DBb9RcqZMEjfwlU31b8C618+sx\r\ncaxXMKWs1Tt4KBsq5zXOWTzz44+qz5WQcBRrOFtSeM5xyRzRzmntQGllXk2J\r\n5x0fl+uG0Ver/U0hILYZr1qk3YXNeZ1xdK/Ig7XlimjOpak1S5rlfSfYvl1s\r\nLvdrysifx3yACN41tZzf5U7ojpCAMtWBQAr6ZasaHeYQ+dyz0L4An1Mlblqe\r\nTSby7W8/VGO96f5/YZebSeMYZRU0fD6RidMv+q3GpvYcqEBVqeUylHyGU9UF\r\n+XtyZ2ylbGjWwimkJrhaSfLS/A4ZAtSR9KwYyCGxujYueLKl720Cqr5CtSSz\r\n/phId6YOBBYWluDO8rjj6KsWoGY78zNayYK9NPwUuR+YWhIM55GR7gdH4ZOs\r\nlDtNaXKp62DqjR8LdAHqvULeL3z/NN1FQzU=\r\n=0wCw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dylkil","email":"dylankilkenny95@gmail.com"},"directories":{},"maintainers":[{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.24.0_1654790318251_0.711967759878815"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.25.0":{"name":"defender-autotask-client","version":"1.25.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.25.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"032a1b9a4f0c0e143baaf96186b1c2b2069b9d2a","_id":"defender-autotask-client@1.25.0","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (darwin)","dist":{"integrity":"sha512-/aD0jtduQtRqv0q1X8r0g8/UggSDwiYyGd1w7VqP9y86hINm15NwTNvezr2ZqMDgZerWc+5DAZ44M8trUhHmlA==","shasum":"8bfb6cb520d31192372c08fe709c580fd54af407","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.25.0.tgz","fileCount":28,"unpackedSize":120086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxbEcEFrJtlKHPYlPiRrD0L+qQKswiftZlbPMB32Ue0AIhAN7qvoRc/uGEMQzbYOgKs9sbuzy1AM8p0O58cbm/k7Cr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitM+xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXTQ//U8pM42+Nsu3AgcPOhlt9S3OTDK2x27rICLn+kc58o2/68AC0\r\nfwFBc30JnlA29GuSmI5s6sFk0/fktLq9xNjFOBl+AA3PIu3Np4FPFIz+rMJU\r\naK2kFS0kCKteQtKRU0gZPWpEi9CAa5nEqx2h0oBtbnlWccnJe2TvQXt5MGII\r\n6EQWgNtOy6GgbrdHdmr1EV2eMd36L87P5enn/pyRqjUg097pSyt/qXspVKBv\r\nQQRvLXC39eNVa0T70mNLuE2u6LexE25rqbEM/OKaLQUSAjedgtpEP9+npoLV\r\nKZ1iLjDZp9r9KUZ9m7ZagOSncV3kFsiJXdyu+pQUnP25cxJm/pRUmyuvtpYh\r\nEofvkmL1i1nV1RadjHa8tOz2m+zWji5EpaR7FSkyXneyOU7MP3Fl6T5IMRQ8\r\nR7XFu0KOKNSfUkwEwYyDWDn4MrjLot2u9MR4H8jt2cMb6FgEj7agYqWZn0JL\r\nuDh/I2lZMVbNbdviBS58EeIzTqovGp28NLZRtw57j3vzbGg2UZqu84CPfmxG\r\nyKJ8z3ozU6Fh7dIVt/LJXG96ishqBnm4I4fb8wJg2sx7k54iMGJ0+qUNK2QE\r\ngS/2Ds14INT7ozzhIQTV5sfCBFIqpJChkb9jwKlx9QtD5xbBuiproTVCZVVe\r\n1YzQM+3pRfZukZ11C6kfBC8eGUG0K+SP8Uc=\r\n=mlvs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.25.0_1656016817176_0.8660893729480661"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.27.0":{"name":"defender-autotask-client","version":"1.27.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"^1.27.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"93d31e83399217cf90563afd09d8258f22c4c362","_id":"defender-autotask-client@1.27.0","_nodeVersion":"16.2.0","_npmVersion":"lerna/3.22.1/node@v16.2.0+x64 (darwin)","dist":{"integrity":"sha512-5JCGj7LkWysuvykSYFQ21GgDlSn6JBD6pyKAJcPy0mjh9ASikIDBVhKTrVtaY09SurKEU7T5ydJt3plraL0JFA==","shasum":"29c0e9fca1d0a137070d14aba0589134df12bbe7","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.27.0.tgz","fileCount":28,"unpackedSize":121684,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3tH34+vK+LaR32KNh37kDNLux/y9xc0G2X2VoHbVEpAIhAMsQFbDPSF37zv8kP77dvddYPiU54hN8gc8Uy0EKEWk8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6+71ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEdBAAgGe7PgGDli7QZSp7V4srwLyF75+TGdq4TNIKU+kdpFrjrD3K\r\nu/wStd9Du1axw8Twzo3m2P5uq6bt2uk/YR3E3nz5BKLGnQ9k56xI2XYMHQ3n\r\nthR+cR40WMBtzIjHFzrQLQ/Pfij+TT3NfKUqRkeirvu+T8b0qJTBuIoHf4N7\r\nY8DiZ00Nu5nbuZzKQc1BrUNlbrK6sHIoD56Dzhk2bz5/MhSZhk4j8/td19/n\r\n6FdrWLik6HJDJ+PCgWcuFLBMjxl13WHn/SXcie1IL0UMTKFdAgy6Sr4OdD++\r\nNK3k0y1+gkbpaNnWDyXSboIoDjiHwIJejmFDcB6e2u+CV3zDwbpHHSyhlvur\r\nVlnWDfKC2DNCg3YsfTWXVV4C0kcNvKw7/7hOzDMi8u2K7e/iG1qk9IWyZ7tz\r\nf7ZS1n83jJP5GiIWFMoQvt1EnmvxIALgVTFqXe2eu1klNygxEF9lGPrm0Ri/\r\nsk/M//bjS5yH6CmstCKG8BUR0kdjqr2N4g9T4TZllv51OChObjMfXlhBzrKt\r\nEFGSTA8l7TDzzdjMx7BVfcBwpq7IwoJff6qn2aSs9noopjvyH5Y8+2PpFgkr\r\nV57Nnm0y9TYztz/Zg34WbLr15OZPQ8WKZXEj0tx2CVA391aeeVD1nzp5N1Yz\r\nYNvrxgEty9lJ0WSgFqGsN8jkRrSdoh+RUOo=\r\n=9xO8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.27.0_1659629301368_0.5015574932711178"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.27.1":{"name":"defender-autotask-client","version":"1.27.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.27.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"7a0a162e52e04f6a635f7d862a34b95bfe591d9d","_id":"defender-autotask-client@1.27.1","_nodeVersion":"12.22.9","_npmVersion":"lerna/3.22.1/node@v12.22.9+x64 (darwin)","_npmUser":{"name":"ernestognw","email":"ernesto@openzeppelin.com"},"dist":{"integrity":"sha512-xeAhggxl2kKOMTlsiLPsIYc88980b13D1J1yJ34rPPsywKaHgCUNC6bEtgvbBoykIPDvsscBLt3jIjB2cJhSog==","shasum":"0353fb08137df27b822713d86e77671851dbfa39","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.27.1.tgz","fileCount":28,"unpackedSize":120086,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD95J/hgGXUZCySb545tuZIj1ZJJ0HIdC3P7yik53nh8wIgA/YfPQa6cxTyjlG2SB+dx2mKeDv8hr+ffN7IuqYMgpU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7T9ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmcxAAjfkXF+Eg/WXpymwNMeA50E75VGBrtVuwLEkPArkeW/IyKo3K\r\nYVhoyXE7nkmoINZxe/BtTKd/Gkn47D79s3msc5OZjxo5/IH336hvhavgtEQ+\r\nMxHru3WOK22MtZX9O89XI3VVLe0wcgFKYKECikZEgmuCEF/ko7NzMUkFnUkr\r\nT5FaU4C8URqwkDclYKGofu+jFYs9LcGA4E3oj/9DPppEjhtALKBVBTZI+v10\r\nZduzOYJG1IquYndepFaFvRvAbyB5mPPWTTZFmadbIbefSUSGP4rO7d0SxfZC\r\npL/SEF5vGGEjgLMxWCqFHb4qE1C863S0JgaglKh0nkQDO/DFwfaLzrNR4zZh\r\nslHKrUu6+b+LG41MoZSeZdLqObh08XeIo/AOA7XsCaC6R14s5urX53svmPNr\r\nVe/7q6UzBeK6AH3o9ZXKNeQfkWLGekFvJKwtwej6qjCDX6cOAmAlOFZ0ayHe\r\npfGq9QpOZTKf4S7q2DssjUHZNpfZUUK+rMFvbFqWJOlMFBCOdwNZoQjQRNYs\r\nDZvflbFTpe7UB8RYLoiqAr+Hyi+ASeNVXq7ZIiUMvHSSLifKMlCgbN56teLL\r\nAIEGryV67pvOw0DkNVQbk3zEsdGrI9ZrbYpgUgnVX+EPHG867J07sGual6vF\r\nH25iYVGHwPSa/iYP7f/jSVebKPGfE79oZR0=\r\n=kadf\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.27.1_1659715417729_0.7509584410005534"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.28.1":{"name":"defender-autotask-client","version":"1.28.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.28.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"7e6b07e0e69b9ca21ff55650002248a0f7b1aec4","_id":"defender-autotask-client@1.28.1","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-oshhc2BIUeW+PIgmf7+5St8AQXeFZ5Az6P6eFTdF0sHKYz7eScJ9TXbpCUNDU4DuWkitvtVsZ9Kzw2JhI744jA==","shasum":"33575bff85b2bc4aa2826013ec20fa6d06c7da62","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.28.1.tgz","fileCount":28,"unpackedSize":121020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRtaKgqmywZPEm+b/eb32xdblwJpvwtpnBC97EA6P4jwIgFnvMWiUJxzEmuVsTbFPn/MMNgWI87yGxxJHYDcHSL7U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/nUHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmLw/8Dvb/+FzXIrtKwMH0HpQPkiu6Vl3fFKki+7cWD7zO9XuM7B/U\r\nro3f1DHyYz52OFSIhuvTXw+JigDUUi0iuwUnupGWoXLHVvpSYxEj6jHfuovS\r\nOSvfbz3ExCoWLHjsrlYkK7d5Qu7o/pZBwMkQMgeAS3SFFanwRam9EzjHimSl\r\n0+ogvrxSM+NuOAn56vuTHmTECj8pZxqFHkdO8dyRZwFi3R4+sJi50M1vMJOs\r\nQtCk4Ub2ipsSpbCyylU6CTjYBBcrGUrid67fP98WJH1aStbyHeUbLECb2sq6\r\nzmTKUxD/OK1Y6k1DulMRLBi77N8ToZsH/q6nIsf5GeWvyceJ4ZS5GsstveLI\r\nySbhiPmqheD7ovaAtPjasuAtsieS7sQQvMSxVTGCS7oSVyXc9Kie4HPAwORI\r\nNYRLhmw7nKRlHBQ+ntDZ9qsNti9Faww25eGcRkMqNZuR9iLqHLO7mbGmIZOj\r\nNIDpuEcTHig+h8FysWIggp01fTQGnFKN5l6dktSQlfcjwmmyDTGwTVTYNrnB\r\nULQVQqxNbcn4x2LiPMO4NNoCrQregXsziiAFwbS3dU8EigebO4CHhsy40dzR\r\nmptWftMqE2avp4RIIeWP+NXdgGSG+D1Rxh8+hYWHftRZ7+WoQhPioWzpt/8Q\r\nR6+qJTEvdAa+jzB76QJhEdAPS970GJGg+kM=\r\n=KM+b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"spalladino","email":"spalladino@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.28.1_1660843271093_0.45578278979942577"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.30.0-rc.1":{"name":"defender-autotask-client","version":"1.30.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.28.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"500d34a216663b1170ba506d0a3e26bb2e9881a2","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.30.0-rc.1","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (darwin)","dist":{"integrity":"sha512-Qnt0hOFVKtZCzpByUUgpHr+tmhI8OsdXqn1FC+HVaKFG2KkYehnCtcH6GoKhc3XT1Gg16kDM1YpychftOAXJDg==","shasum":"c3a7803004a88bbccef020a9d88352d59f3ed985","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.30.0-rc.1.tgz","fileCount":28,"unpackedSize":122470,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUNwqVQStGdRSkiII3UuLeOcXjBMF+kRtlz8tunRwWMQIhANhAPqluAqD4e+oBWaDvA+84sbhB9DF6EW6l436htThT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEPhuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9RA//SLtVO79CGRzKWk19/BgaYJamqU7JxvdG87WFg9Xtq0lrOOWc\r\nvqpnASkGqXupWK4MH130FpE7YF9TkzsfP7ZavjXtrt1EwzvQFDYZzxpzLjB2\r\n4FI5U+B5jbgOpzvpq/CUtcGNCXBwX2uLts8Mneruun7VGywQvUjiAyioOjQe\r\nhwuvE4k0OWb1H+4essi55vvEtJi8vLVko990DMGpC3g13ZBpon3A7gUS54Jw\r\nTr/DPuOEDJwaSNo28RVewdP4lcLwEp2nVF+64QOef1OTw98uWZmdirw9yrE+\r\nKTBUUnNAT7rQlZEKqrNdipuMXEAhSE21tCfnEePeq6pJtCgCIqMhUb/hR241\r\njw9uTkQmQXukO/5SM66Jwyj/+cH4CPkZElxXCw6dWaFqQC1SAsJhvbDLESI+\r\nblWOOc3sPTYxxsnmD2uGlCeNMHIIbsKseUlFBPJJDimCIZtZbLbLPvSnECzB\r\n6W/dTicWBf3uIgXInnQz91xQPS3mC6hoV6JCWB0MdvRC7sEH1yGmxsvvV5wn\r\nOwu4C3ukmXV8a7dW7453h2vYtr5Xlj6R98NeSRHinvFp283leOsDVU0PKHl3\r\nHwux9+l1SBjbYfL/oV316cmwWIkMjXkXsD2EIQBE2HS/Cew3vO7MPsoRbiBA\r\nPVXLnwn/ZUKlg1lM+k34wGgoEcfaWVK2i0k=\r\n=6f3o\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.30.0-rc.1_1662056558442_0.20605059395605907"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.30.0":{"name":"defender-autotask-client","version":"1.30.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.30.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"49099c0b756e028cc92af56bd068b23be6f49e66","_id":"defender-autotask-client@1.30.0","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (darwin)","dist":{"integrity":"sha512-qwWR2AYf/XZWo5RgxfV/vpIfoGS6sNgHa37SNNsN3+9UF6ypxNedPumxwj2xBu94f4yMV618fk8qppAe6Fu8HA==","shasum":"5c93baee2fa0960b7d449a2a43a8811cb775d8a3","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.30.0.tgz","fileCount":28,"unpackedSize":122465,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCffrUWf1eueoxJUDI1b+Qd9fzJSgS6+qwcaXVcJjF0qQIhAP2S01PGi3sxFUytIjGhHCZe0bil4Yf8FgEr7Gc87cA8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjF6ylACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmontg//QfRyDZ0FMCUPiS51hxR6cBv3zYkRWCExbqFmwQMePIjo9CGW\r\ntd7uaQlNvX9aSg9ZbbQE89P+4capFpAPq5b4DQvTdgGEpsXr94OwAzpRxPhz\r\nqGaTqMcFQzt2xHI76QiNyuyb1jS2c4F2VJ5v/ZEslRko2AJeV1TKls/t4FnF\r\nJwIlCceYQDudUG3MCBNWaUC6WXIHqTl1yp2HsO9YQkGwcY+XenzwTjvKp7uO\r\n+9HIgAugkiDZft5v8YIPI0yw+x+iIiACJycJSdsl13r5T7pdG9uPFqOpf+v/\r\ncgXdD2Gal5asvNserWz6gn8kg5VvlGdp6T9t1D49jv3VKRcGjDT3Ze1KEkJV\r\nNooqJCmSVsxm0zfqVP4atINsiIuu4qrb8n8YpxIC7M5/2nmjCa7rIB4MG9R6\r\n4nHS6ETKfyIhLnpyMtRlxVf9bAetB2LUdFrtGQ25I2ti4WBBllOBGeH2bB58\r\nCgC9x7knnsfBSqIKHVYl5J9oPph4RWr/AAVDWS9b/OP1yNXA9fer9dcm03YH\r\nAsafMe/ichhP2lwaERttoEY2+I71/ulvPNB1QEu2qAUOsQfLZZ0rbiTXEDUA\r\nJoyW5nvAa7KdaPXLyvg2WHH407X33z8LcjLneUAUViPePfRZT80UBkr5o0aL\r\nRt8zEHA4BvFiSXOVaoh9Lwj3XlXL49W13wE=\r\n=n3Ud\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.30.0_1662495909107_0.9692827640953428"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.31.0-rc.1":{"name":"defender-autotask-client","version":"1.31.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.30.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"85602d264fd5e26e4638ee82a3f35ee14d1d86ba","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.31.0-rc.1","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (darwin)","dist":{"integrity":"sha512-+OqzHJqzOCwTA8X5N7pb1m3QyE9fOMMVQw6tvfD7lo7PM2hi8QRwKarBxiPJFaWxzp9iJS9EXuLM3gmpOvLFUA==","shasum":"19ac10db948cb94bd69cf87e48011a488b291953","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.31.0-rc.1.tgz","fileCount":28,"unpackedSize":122784,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpmeFqkxryxwH7kIv4UcuqUwpUEFfD98daUwNXXSda5AiEA+1cklLCaOTXvEaR86F7uiiDjsRs8h9Vp7zuYI0NwYsI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGRXOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbUg/+Ji0e4Ykp2ZOnsQ5/wHpYf55CGlBX2VJS1WJoA+jorBqT2JcW\r\n7/7/jBd1rB3bOLne4xWUJ3SPn0wPuW/dijt/9NKnMtAztxCP0YVFDIOPO3Pm\r\nUYUcZXSV3jMLIoCz1HzZWny7yjLNgEpGI0e6VBPScOrVdqiKOLhf9ND+O1Oz\r\nTZN6qd2eDMI2z977XrSPhuv8NAJs7xx3ayn70DuKlb6P/chY1cYNyzLyCaP2\r\nhWOSWKPsphPAWKGguLMU+8+0aBmCA4EAT7PqbRD6a6weOg8NpKG4pR36wjUi\r\nQQEGOdBZjlGrOiHOiQKM+vgUs+3HzVDBBucdAplIDTQtGgSaxzK4cUF2QZe+\r\nBan5oSV7ZizYTjUbxxHDYPtVY3T7rcrI+ne7UaIACJLJxYWwQP063iZJrQQW\r\nA9kbqVmf4wiv1dj3hVVbh92Jnt5VNKxmby6fKha5v1Ymf0RGwOGLp1XkRUnQ\r\nlYf3d+r+n0svlrfkw4EhGjDfPfLbDAyC7l1x3rvOaj74IUSc8BHDe4rSQeuX\r\n/vdoD9CAzWBsblkqz+nrUt8YqLBaTfiN4r6QdM8EF2k43E1Lkn9LyVpPvjbS\r\niweo0a9BCofzVpa2tmAf5Abe2uScJLafoxy0j9VsrQYBrAM8yyU53Cx3CDWb\r\nykY7ycl5XfrrCAWIcXaz8D7ct9DT22ZSFM8=\r\n=b1Bx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.31.0-rc.1_1662588366389_0.8399066739883061"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.31.0-rc.2":{"name":"defender-autotask-client","version":"1.31.0-rc.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.30.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"e244687a0b14906e390075ac62e670226b837405","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.31.0-rc.2","_nodeVersion":"12.22.7","_npmVersion":"lerna/3.22.1/node@v12.22.7+x64 (darwin)","dist":{"integrity":"sha512-4Ogpq+IeqTRPJRW36oqWZ/0gJynpS7U7WxuBV1nNz4Db6COqws6aqQhZpqb17ItjSPztlE4qvgEX3ruK5mTSPw==","shasum":"023b244152d931a7a2d9ab787bbdaa2c45c9a608","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.31.0-rc.2.tgz","fileCount":28,"unpackedSize":123166,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQd8XmzJpjfTZPEWsij9BgfwlOa0Alkw5HIMkAY7sSUQIhAP8FexIyjDx9vE9Gp7okJeQElSrdTjw1k8qk2V+ljVip"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjGxp1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4QQ/+MpzNSVq2i8i6dUAqF2TLydZAXgsduTX2aRNv32LsEveh/k9j\r\nduUbY4Zz+7uP8XbTaSNUQFIpSIQi8zTeyPuLEITN7kNhgTf9P6CcJzZTW9kP\r\nKgQ28hgis8pejAJVf/p48yqBtmj9K3dhx7wbiqDH4Ema5GV67Z9oLZ1vb0mG\r\nu219Ra/HEUiZbMP0yU8jr1z03c32AkFNAl/Ki/X3HowkJeokfjVu7hfNanQr\r\nW0ZU0twFJ9c9Ddqnep1oHAYpZLp+qrBzTcoz/Hg3q8TBzptmBxPGsqlGP6rN\r\njFd5+UyK1etXVx++LzLGurzhSBNVt/eDmy/h1P2k8mU/25KoAAQ3Tu2Rm3jG\r\nKTxZjYCOTfqqZXDk9aunHLiiCcy2b7V+R08Hu2H26jFNkqg1ES6LxS4IsGkD\r\nVTCpBBLd+a6Jo+cqGY7qRmiLksjz80vs9vJZX4etpgoKHzMHW5gInlRN4T0V\r\n8MDYK7fK1IKa93eiQE3Zdh+Gln0f7i3/dJRQGQZ5XusgqtsC4Eryz3QQ8YFz\r\nFELxqj8j51N97BhiFg1QR9m9dgGAAXc1cADMcn6+kRA0gFukqA5uftjq9s1A\r\nzSV47xsoy7ZosvYSLhgBwj8az6HzExBXE35Zslwvpj1b9R3LKdcY+ngDuMvS\r\nVcwVpFFGafxO8g7CQyPG1UpiRT0eMUdz/JQ=\r\n=4xJ0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"namis","email":"me@nami.sh"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.31.0-rc.2_1662720629126_0.11915842928325149"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.31.0-rc.3":{"name":"defender-autotask-client","version":"1.31.0-rc.3","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.30.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"05e49c07cfdec351d68150ad02196a5cdc7158ea","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.31.0-rc.3","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (linux)","_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"dist":{"integrity":"sha512-ai0eSdUwaZrRWzNk07YkdQvKSU/o1CW4+Jkd6uPxFxaF49y5bUSeM8yRkE1DwtCqKdC50Lp3oppydwst9WupsA==","shasum":"583bd8aeef0a8770896fc5b961825ebf4f86b56f","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.31.0-rc.3.tgz","fileCount":28,"unpackedSize":123166,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4u7+GJxPpnkZa9UqjzSL1Cee9kOFXvzc5R0LIzaO1EAiEArCaqxRcDujZ2rN8MdrQMkQR0xfbYj+eUV0IBNAGG+RI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjHyOSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp79g/9EKaR2TtEU9+WMp4MGnIFtQfzA4J/IUBmIHJ00aaNHOa1AVFo\r\npwlqf0xJs4QLg0XOPQhMtpP7mc6SObavSg/yQvhL6qODZEh2gdE/PPRhr5pl\r\n5ET4dKKKtCzwKeYfSQ//hQp8yziVJZ65VamGIr3/cJwFsBtQT9/iI1YI8NRO\r\n1YNG84rbWsyv8PtryrKFoy2kE3tzMLDKfeLc+14P5yJRgT03bz2doA/exMO1\r\nHIWuqLdfSyb/XS1GXOVumOytRkwTHYaEFLMdfNBR+nSE0L/mt/ZbLOnjuE2D\r\nGmSjuB3GsAA2FYMvUdyJ1XZK56EsJ6q2kLgKRcw5CgWfi0eGzW8FUG0ECEKg\r\nRHp/+u7OT5keV8DOCKNrbJ1GN3NdDrZb35Bo8pQb9xuQXQdeA6q9lNWIxkY/\r\nohmDji6x1YmvJQCbKo/ViLVAjU2kVr/LODf5L0I+rIALtH4CpXPj6dRkJDAj\r\n+Uym2InzAtheiG0rbQstdzVv39fPX3RnMm1GND8NuIBm21NfBfWh3ypCXqNg\r\nt4Ve/lLfnWA207GP0JMlm90W0oHogl4cIp4W0nKKqp7Fij6L5g0jzBPw63Rt\r\n0P40z6+XIkmHyU6AydNg/smYfgibUiz/CkCXeyhMIJCPNoKYi73vG0+Z1CmJ\r\ncb44Thi0uA0pLHrCPGVoi4W8dTbsFscfhlY=\r\n=uEQh\r\n-----END PGP SIGNATURE-----\r\n"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.31.0-rc.3_1662985106518_0.6380965004045371"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.31.1":{"name":"defender-autotask-client","version":"1.31.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.31.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"ec5acfd641599669e861dcb015c802310160c451","_id":"defender-autotask-client@1.31.1","_nodeVersion":"12.22.12","_npmVersion":"lerna/3.22.1/node@v12.22.12+x64 (darwin)","dist":{"integrity":"sha512-9DdH7S/VRCqy+Gpl9qWq2epo9cArsVxBPiMbcflcDKsV3QhBDjkpcfpU95v4WUBzMSrSf3I2+hCLOlgDb9FmgA==","shasum":"60487f11c207d196c261d42407779ece7ee3acce","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.31.1.tgz","fileCount":28,"unpackedSize":123161,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnjpjvJfVpVgfX/WibUS2voZ7wSakGnapq0xWo5LcgYQIgdFaK2MrSwV4BzBxA5OOMKzOCqhxsZ5ihC0PZ0vtf17w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH3frACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonQA/+NwtP9y475eJakAO+4CjfUIz4pYmTUUcyo+q/6JLYXiMEHa/g\r\nfegZ8Ihzl5bX3mHg9jOsOYL8u74ZEtmmRSOXr6VnvDCft/+D4iQPXR64HpX8\r\nq9Orpijs/QjGUUU7lVN6c0zKUhnG1DOYuvBBnpAVCfazhUdQhTipG0gd7v1/\r\n8JrLMM4z9q0ZtAY2678Q2l+JrSztcGbDuvNHsLujEJa8nx5+jjD5OHBOyczc\r\n36uq8/TRgdA07Zi2QXxVembEseJ/pGv2lvLMTnLYkyuGZ9wwE0k6fdXMPNlM\r\n8nB5CCLsv9K9yOPrzxgdc/C3gICeEWsbpfpz+DLBBAVSNEPFcOG0jZldmCUh\r\nINruRKXpqWEnG088nLlYc4HcOcGuY/vxCSM/W+hdBDJ0eQdnwxzP3YeQwiOO\r\n9UEMD7aQO0V5S5V0MZ0Y6Vz7JB0A28SDpnTig/b2dqosGHAs/gSc4+8eZ2/e\r\njlcX//anso33L3/sJNVhAP6B0o9EVT488IiXHy3x1RoNAnosAxVv5Sha29F0\r\nXRHMS329fpt1CkR6I5xLkgZWMryLDAYy6yyZzBeZ/MxTH4YVBxQ9YuSyMgoA\r\nGASAA3opFQbG5eXXU2FNgX1v4nnbL1BR/1GjMPVRglHtjqYrTrIAoniqBmGk\r\nRK/p42L6OeXv3O2CIWKjrXJI17zGwtH73ug=\r\n=w+kq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"spalladino","email":"spalladino@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"martinverzilli","email":"martin.verzilli@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.31.1_1663006698833_0.05342783827537745"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.34.0-rc.2":{"name":"defender-autotask-client","version":"1.34.0-rc.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.31.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"f2f5ef4e7554eefbb51220bbea910a400c51030e","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.34.0-rc.2","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-wZtkzDlz4SePv44vZjzOpifTU8Ds4xc6JUvhZiFUEURfGCytpMYU1WZ/KcRYCrMfO6rIqvSQmvuRRThXmtdVdQ==","shasum":"a39d4a900f88305d61875824378189aa0889758e","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.34.0-rc.2.tgz","fileCount":28,"unpackedSize":123166,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhsdbfI/E5sMIpO5s/LVFMIJJgDCteXfdLpKFFV7yKEAiEAnnR0xM47GR6wvt/DTOG3bLQLkDh1nod6e7whkroP5tM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV/8NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokgA/8DyGi0KvvqocPvJBX9LOg1hj7IV0x/OzYJ79VSe8qo4LUxHDB\r\nQPmK47ebshEjo3CtkJ3QU6f0Gs5TH48OEySZNsPoif0114i66T2kCuIMN1sN\r\ntVX9lY4wXhCgnKayrDOFScQ7XEffg8oZPVleqJ/B94qpNSmcDnrFBn86F4Uy\r\nUTuyhhUFnzQtL/MiSpid7OAhyUQZOLm1DYfFNNIenS24jNGjQFIMO79X7TJG\r\n1jbK09GO23MlCkRx6HWeTMmE47svkm/LZ+aZQCq3BNvbQ7nT6Et48YRBAR7w\r\n6kaF2gMTAMMZwm1EGmflf1M5l1GZyU/wfEJKGCg64WJ99BfVltq5TqXlVwwm\r\ndZ6elGP0Ow8Ydd9qBzEDzjrPqGghwb+DEJGeFjv14Py95r8bxeRZmAMKt8kV\r\nUMUKjnur1hD+O9C89sWUlwZALT/+TeTWSygREqbAfqBs46brow+0Ehqu05oG\r\nNycPtuNsXblfOysiaf08hbyY/nkQSMX6FWKJm7t9Gx1yOqUfbUrao47fPjuA\r\n00ZscZbsNFQ2PrPmSs5S4IwWblShXYxPe1jRGY+XI6Ji15HEXAFdwP1/V6Uy\r\nRFd3ZUWWl/NdUUzropJlUnfihFJrFhMeihtTRpEZ/7qaGM9J8EjYvpOL23LM\r\noMcYmk5FtZ+KP5OEXnIO0+gcwNc+S+Woxgg=\r\n=xbDq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.34.0-rc.2_1666711309391_0.5642456306312165"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.34.0-rc.3":{"name":"defender-autotask-client","version":"1.34.0-rc.3","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.34.0-rc.3","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"ddbaa93494713b30570340fe47c3e09e281f7994","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.34.0-rc.3","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-jSAwhvM2Di6xEXvqv83hTBHBIAazs+P5kZiYQYKDvnmgLDU+RKe4xL6mbNVP5hrLujIFwcB+zFxrMItTmekcIQ==","shasum":"93e5438bab1c890d2f05dda6ee6670350d661365","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.34.0-rc.3.tgz","fileCount":28,"unpackedSize":123171,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1+OLnk0cDcnT6ZdBgurWEYuFF8jOaywDdtEGME7ECkwIhAJnjm8isXmsDzUeq81A2Bfy0uvmrB1rJsVDL9qKvAWhS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV/+5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGdg//V7Nl6MuCIe9E8BrO5jz0DI7wWLT1FBG5n/9R5BAj3BztV0Zb\r\n7kY0CSmWnEnr9WNpoQFFQnC9Ce3Tp1BtAd7kHrZgKpi8+8jhQ9g+WZaC/91E\r\nqevCxhdLW6NAsrn0BaKqWc4Cis8XW3QsCtM48soUl5IR+B0Ea8FEK3zN6l+D\r\nuZt77TSbWsNV0cOo2k36rTmcPczwI3Q0pobwqChZQPb66UpaJINViwRmuEKd\r\nK5Bgnt5C6Y1Yc/3Ncd9enRRp8HJnhegDHRUMk38d60rU7TIkoUdUaexxBJJB\r\ne2OX89bUcSwUf1X/6YWSOvr/4OlWGHdpZ+kag0TahjmwnDz8IDAOJ+sot/Hw\r\nXqSl+ivUdVdycNv+OTBBN9NFmOMvTcGxYPsKAlwQbTOEUdKFopWDKol8i6t8\r\nmbX5+WM/dj/Qg5ALR994e7lvxQVc9Nmn6DlZTJnC5izneKYc++HOs3UBwE0E\r\nLg1PIcvqP1bJmsrBrIdy4keJ28nCNimSs3uN8TUcLLnlseVqWdxpS2lIISdV\r\nF8ZNfXzlVoYLK53S8cuf3dPLabd5zRlfU+UA5ISR2yJzRQEI//QlWooLqO4n\r\nUBnX+1YMjPnH09s66G4KhmDagvyeIA03TEWGv1gXZzDaNFozo4PJ1F27JcYg\r\nbadSac5lU/r7UVfOwS9yYodMVGg1hIMWcN0=\r\n=NlE5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.34.0-rc.3_1666711481075_0.8040976113409313"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.34.0":{"name":"defender-autotask-client","version":"1.34.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.34.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"47cf06c2db2ff19d9711a542bd70620d2b558ab2","_id":"defender-autotask-client@1.34.0","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-Gvnk8WYmNvtJjX/VJc9krqFHnT2JtKYpeA76KU6ozNQEkMlndOC7tXBGv8LwhXFVbj9e38o7qg6mzqwC6vOtfw==","shasum":"616b8f955185bad75af2079502db4bffbdfc7242","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.34.0.tgz","fileCount":28,"unpackedSize":123161,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd4zwDRXHJYZPLzT4rzzYvIQx2DGHYq+GcCwLGfPNG7gIhAL17FBAC879ijcp4H5HPVwgnqibV904CMuFT9QVwoQjE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWAUEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2wA//di0daa1t8MFNlaWjSJRw875KwKLBYfynu2D69Hy9Ek3ltglS\r\ni1iPi5bWMq14pz42bx0xxy+pLAeoNwFwNBRSS9FuaLoGZk/Z0A9v1XsFETT4\r\nrnVbCfsIxl/51wcBrluUAUVr958blSKBUsh5Z0x+BCa8sfDoRNtvyhOhn2ry\r\nMawTCVFIMxKk068lJS5SNfIS21t7oPCdECff5kog5r1JgiCDgQVdqlw54M5y\r\npNm2+TQnRHW4CEyGfAFr9QnBkxSDD6a4ZvoPYZCn2ANLVfJ8f3K1oicIWhH8\r\nUnVFje5bbdzGbdXpsx2Scwn8q0t5Lv3XNdAlSCXNKJNf1inSPbIHidEc/pr0\r\nGJxsZchdqI6WfdT49ZEgF9SwHN/NyQLfd3oWCIk3iivuLSHkQ65ioRG9pW9U\r\nr+ZjfGVRLRb6wlQ4vdClqPiTHS4AUT/ZmdGfjRT+yP/ynvhL+vBGzXHKYK3f\r\nAqf9a1adlon4U/GaY0i5gcJ4acxObqHVbT2igr5GydNUGv+0rk4oH/nYPooX\r\nBg/j1JqPK72ep+64xiK2DMPIDwSw2PB6xSq37AlkYoA29F4qUk/6stJfPaGd\r\nwbGASuEN3VFdD//3LqBRrrvwutTCXKTryvj8GQoYrmaTWIXcm/eWXWMCOVdc\r\nKARIKgrclJr1c0zSxROpOyOcB9bweF8EN6w=\r\n=nQjF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.34.0_1666712835718_0.09670029347271591"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.35.0-rc.1":{"name":"defender-autotask-client","version":"1.35.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.34.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"9f0db28f0be434fc209dffe668d03d5fafeae741","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.35.0-rc.1","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-OvcMljeXFcpdWt+WxSjUe3vb5aKfq1rPI2QBg19YuKwxIqIRjITXSmLMGvhPVagtg5SjwerztuewGcGgwDfLlQ==","shasum":"2d43e571cd5bcdaf187e299e43d489d9bb934628","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.35.0-rc.1.tgz","fileCount":28,"unpackedSize":123955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1GwJNftpuY+kvtf8NrdTekx/XZ532sjzDLxnKZEy5gAiAh+ALHLvNnRPdQXzIzzpVbF68BIja2Yi3HR/fE0ri1PQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYAJjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqg/Q/9G9m8H3ROH/MFVp2I1RWKHn8t4B4V8R6O0MB3upcSUf+/i6r8\r\nEp0N8e8cmxduM4ZnO1GmW7xXnBngHAu7u2IpYvJZQkP36QicnpbR1/iggEtM\r\nTNtQX0+GUlRzfCBHJ/Z8kg2HxopY2VrlcywU2rkb5LvCANedZqZo5BP/ik6a\r\nX/1EFygSj/4m69n+GLP/iTaAsPlJaw7jEU4zjOGRVPoP6KI8Wa3TWBXgtaCe\r\nxbtgCdRr8Nk2RdpDU9GfC96eW8Rxy8a9ZfEXrevb/ayllXhly7/rPcqlwhw5\r\n+eBhJ4JK47pyIUaEQ98zrk2YK+BdhmlfQ8ljPiRslkW1q5O4yg19bcAc3U4M\r\ndAXUCoISjQMypbUSyB+Ppamk+XvOo64yyQ12XQyXhWbnfNJjaO6WkPGxiMYa\r\ncqIUwRBHg3N6/oaYCPOx8VaCJeTTGhKBGPWyDweVwi9cKT3d+jGuk2XGjVbS\r\nwZZ3C8F10ExCq41TTvzEtE68zVak8o4nIfJTp+mYgG7BPCtY5QSrwjnzBQo0\r\nJWcMlh0/0O7JG/5DKv6kTeWmCQ4mEcjGGGIEmFV44Cq8HIShIuR929nF+oiT\r\nnka9+bxuU9xWwVNEhDU3f/MajEEPgbhuAIaZILGujJ2hSPWZC20kZWdKDYqa\r\n6kZj57W4QPVlPLTamFqNSM+vZH4peqeWzmw=\r\n=Q2oC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.35.0-rc.1_1667236450878_0.9250537923670725"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.35.0-rc.2":{"name":"defender-autotask-client","version":"1.35.0-rc.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.34.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"4335f854ef83501fd8b5791f2b71ba4f888f973d","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.35.0-rc.2","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-+2pl7DW19jzujbiSuNQZUHUfhRJewoZqqFuLFXk/eAAR5cbXribFS5h1foKtFSVPyqsUgAyLb9rnW+iYM5Uxvg==","shasum":"02505e5355ae66a987bd3561df4ee30f9c0ad0b2","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.35.0-rc.2.tgz","fileCount":28,"unpackedSize":123955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8AtdhhQpcqhsI/lqhDXG/BWrLcn48ccGR7FRNT3zYWAIhAI1VC+PDNXS2sLCLitpKdY3CCnu6HZGjOr7LVBq2MP81"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYAOBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHjA//YSM5fAMAbAKMrZ6cZzEmTpdn55gbk7T2H9nChAC/TLswpL92\r\n3aS9Zj/be0fyQugWA961/uI/pqB8VGWyix6Hx6UWtPfFHPqizCFuUpH01FrX\r\nWFoS878hAYKytBAWFDq82rWJXunjXeiaKw87R7lCXeoAtyO3tUm38Ha7X8f8\r\nY8kAj+kg47iXMNwsXUIida1kwgtVRlTnmaA9WTnez9r5t8Ii0Qa+63HAlcxq\r\n1M69nUjiKaFn5IcrL68zIYOj8VUl1vlKLE9Lk3CdA2nJb2ZLisQKFaPnz7GJ\r\nQH4DN+C+h8IbqsvhO7q2lMVt7Wi3EhRAJhqsrtzZfJ7qNOnAaVmpCggq2H6B\r\n6wB0j4eoziUboJTZM5D5x95NkyzCv2nNMyiNoMQvUjChki7Ey51NYFKWzAWs\r\nONYhkLtn7PdK6v3HP+J1tepg31WXjOnQ4tlIzCKanqeXpx1sOBVJjojKAItI\r\n9xI6ZEgDhBNbXd6NHw35lxsuXXGz2yUu1GnJJv7L0RZ9J9ncR70uAalzyuhQ\r\nimcOfw0cjerZnwcN3X6A74PY4poYQ5t94k+5ZQkqdtK9jAvikB0Dx078Rp8S\r\nTyFAtGdDNxj99aBXqAsyl1y3t8dZsOmhOfur2s6qzxFVNDsrlXFesLC034W0\r\nPIE470gLCn/5r70IEgfZ56DjJKdyH3PNPlA=\r\n=pGxV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.35.0-rc.2_1667236737374_0.2013212860086515"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.36.0-rc.1":{"name":"defender-autotask-client","version":"1.36.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.36.0-rc.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"b98cfa3f7afa424e6e514701452a1920576bd726","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.36.0-rc.1","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-6FdqWQoSRZ2KCn3k78n5v9jStTxegr5JpYqGkr+82CpFv6t3U6mGsw5oOvWiffJsyjmFKNGLWlE2Nxw+sy2+NQ==","shasum":"940d19c8d2949b11ea5ef927b7c5839b1bb48fd4","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.36.0-rc.1.tgz","fileCount":28,"unpackedSize":123960,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCd4KzeCIXp3jRndAuyXulIRw2OOxMNCnEL8tEoTNjW7gIgYBjxvv+8EgXlLodqjFHjJbVVKdpxDNusZ/b1fhlDtRQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYsbxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqsgg//WCuxJvN5CLW1MO5f4uuxXGWlhEQ0FvpAMEcanVlqnbMpteOz\r\nZry55RQsbxPZhhdvqScn2/dz3MDTEx0iW9vsO1bsCrbpjFMmFOGmkJOlWM+j\r\n2RBDJBK6L88ZTBWy9iWvxiszTdKGFWIHYlbjnxHRJwdKOSWqXHcdF/eT/CIq\r\nOGdtY+vFwD3Guei27ce4A/oZrqdjx+y2ia/uxleW/+PWkpEXSMNZJRel7+5s\r\nYt9LWVFhfMx76gJ7m0dodUrWB9IiO5cCQ4AJD0DHp6+4QVK4ap9B5MeKzJk+\r\nPBmansp9dPYyD6KXxU/wOdvu+I63GCPPgo74kxePTZQ+uWTCLemNwQtYiBYY\r\nAqk8GaiyvfG3TfXnIZKiN0w7h1skN8zxbsBX2snz1wXwz0emZld4ogFOxXq9\r\n3nZFl7Qq+QYAAfl9uMppWk2EoHSQBW2U7EYTfCvS9qF8b7AkTWL+6p5Ps7kL\r\nHE888OOl9l6xrIDUrMwxPnSEUmAX2fAhZDQZeRj4XbUtvue7c5TeACHHdEDK\r\nm4LGd7ar8xzxHEfPwZCouDnMq3eCTuRQtDR6FpT1827haevD3249JC10qssx\r\nIXbL/vK+4URUEfxFyNEgNWC37hnqGxRu4dnOLjdsewWXPJPPssZdZVr8QJSU\r\neCseZ7vThEos9YCo7Pz3MFh1Ev00LWTvYUQ=\r\n=Pn7G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.36.0-rc.1_1667417841296_0.5770492233047555"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.37.0-rc.1":{"name":"defender-autotask-client","version":"1.37.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.37.0-rc.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"0be8290c259711eb0a176725309d7fcf2c50189f","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.37.0-rc.1","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-m8DxdhXg/IaziqcA43nkvBlHYmrqDkyLA7QqPtMrfIe6yC4CCQD6hMtZLMNhyMvsMojlxVekJJrS0XcCZpUSOg==","shasum":"4970274b9fd2dc4193e4a50b34edc0c5b3df5ab5","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.37.0-rc.1.tgz","fileCount":28,"unpackedSize":124063,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8IFP5uC6sGmvgSxVbVmCI8JOrekNwW1blinm4WXne2AiEA5hM8w7ay90ATTgJnnExzZmn/qDQfeJWXmOig+m047YY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZdGAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrVA//XqnMW6d1zpM/Fmx+oBE7lgVe0UiD5iXobPQ2y5NPdNC5K8ra\r\nakG8fXA5rT+Vop3eSFbr6fk0rlFBC4BZnqU2KORgMVATnobItL/K7MkMkxJ1\r\nydlC3D5kOklbgCgDDocbq0NOXevsnC0zCGXU1ls+odkd5R4t0OcsNzM7DNtE\r\nw2sysSPQCXJKMGYFohW6E9bgpDew0HqytQnUl3z0YyOjo1T7guMlETfZe1dx\r\nYtru3//KHZqDa0Fmk9GmjNhQfTinf2Jau+9U3Sn4wKsO8AOgD6C4p/ZcPv8p\r\nhKK7L4OmnrvTEaVSnE1ngPq5FLayI83QH7Z5zS1PBhKI3zwtoXJ+SdcV7f0E\r\nzcJcoHZYv2Jdxpmn0rUnpcO1Jl5g8/eYYq81ghaIPbAZOfGN46mIX3j7KF8s\r\nJ7doikFiiXXjSLz5oDk4X0DCleRiW46fKHe2GSQ6W9l2rmEWBiWeeGAxfU6v\r\nvACLMHJ+ddx4+lzS1IU58AA78+o1rGA2WTNBSmmOJ03fB86uRTOVx9LZOPf4\r\nl+qDMC7P459xuelIjGOBD2AuXOEO+7VWbo5vQ6YzrS8TguZMMc40bEq+G+bV\r\ntx6k3YBHVnQPyfC5o6mvjTLFBBIEmxhFgNNO/XMx+ycFXEsqYC3y+8yBXqr4\r\nbJP3DcbDFiHz21p7h8i7CQJgVlof4gR24nk=\r\n=FqsJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.37.0-rc.1_1667617152128_0.5838242269264651"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.37.0-rc.2":{"name":"defender-autotask-client","version":"1.37.0-rc.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.37.0-rc.2","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"68296ab5d6380db617b7ec76a0916a607ba47d3a","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.37.0-rc.2","_nodeVersion":"16.18.0","_npmVersion":"lerna/3.22.1/node@v16.18.0+arm64 (darwin)","dist":{"integrity":"sha512-kvkqsC33ZKtEsabhNJFmytYkcOXwmA4y1C5kxJAyDdcFlIQ10AEja/aW/qvjB29VJ+WrSVywbZ0CQCB6/tTdEw==","shasum":"8d18c50c0e42b656f9586fbfb2386357b471bf84","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.37.0-rc.2.tgz","fileCount":28,"unpackedSize":124063,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpGfrkMwNOGBS801KvG1irBKHuODo/zcrWhpQ4EX8MSgIgQUPWE5OrZY3kuObroqR/4uNdwwtI6nw3gRqpAxnfeW8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZd35ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgsQ//cRxc3B0tEg1ZV7wNn/lPpUJyP7wH2V4P0hWjHJZIHogZDdxz\r\nMsXHA1FHRTEhIrMeBt1Tp4TBGg719R9aXiU8mVK1MBV+5IVPBITKJzFI4tVW\r\nPEyc0IHgBs5L2XpTt2bRcCqqnXEq3Q0/ul+Ujyhoc2v+yzAnVA9Rs3Y2pUec\r\n4bPzkErwvKg5q1XyvYhAtdCuFAiU71okT/RoFDYxat4ypiVR+vl0BBGzFOVh\r\nfhW9wBvlCQbaA2grPzY9vLPKQsner3FTgCmEK3OYXlgfhf//c21SzCpt19xu\r\nk7JBX9Dk5JQlvqH0SOVLP8WvyMVSgELNYq8QBz9s9IAxcqri4a1xCkHNuj21\r\nnlOrtrSBLo/oJVLFG+Ma+hchNGaKe+TMWhCwgPzPEeX2/CMyT9BLlER+EGSu\r\nwLKgg0W5EyoPz+wvJ7p/WarCErO+q9Q0z4XYibbveWOBumhi4ufXOMyKEis1\r\nJRfuJaYPuL6dGyY7X89nnj2Gag2iIR3tJr8CiD65cRatuswlmSVbDrIk1KaA\r\nzkLZO+hUp5qxEmNbyWn9JE7+Wnk6sJ/cdNdgzJsT8IF039whNvz6MZie07fe\r\nWsYjJ1dp0Dj2iWHYCWD1lUdEeBBJVF71WIBVxR+VRoUav1vrujZW1+jQGJbg\r\nVH9YKKT5tP8JPFHJcYT26KCB8ySuDP6bOxo=\r\n=ddZp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bjmrq","email":"bmarquiscom@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.37.0-rc.2_1667620345239_0.5462001317070309"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.37.0":{"name":"defender-autotask-client","version":"1.37.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.37.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"4b153fb8b16facd6713921faa4499af0b55c9e6e","_id":"defender-autotask-client@1.37.0","_nodeVersion":"16.17.0","_npmVersion":"lerna/3.22.1/node@v16.17.0+arm64 (darwin)","dist":{"integrity":"sha512-N66buqg7mgYiEMbN6R+/6tUB4gxp5Q9cu8QDFuDkviR32AxZ2jY7LqV+GkR/9dbRufQtb4ZRf+ihG/b01w5O5Q==","shasum":"3b59ac826e6d5df4fa3f706f36e09aad07e786d0","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.37.0.tgz","fileCount":28,"unpackedSize":124053,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEiYq+Uj68s7jPps9i+oWbOyxCyluPzAlGWPU3zO9zrhAiEA96luLf3M7qqbYWNBvN/JNsXJ+O6Nm+Wm+SG4uZEChd8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJja47WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsYxAAo2KJmXfN2V1L4TbpJCX4rmxFZ91Zc0w2aSlv7jFTDbxgm7ZN\r\n8DmgpzvEn+NarvfJZUC7AzKD8Uro9lIb0wV7vFYva3snued08/b0kKjxSQJz\r\nfUMrgd/cNkdqaM9HBtrjMpPkwsgoFhn9/9s/cUdlbQN08WbB7T4BfnQAKoar\r\nlMN7U/pSDM39dHKxtaW6ksgS+kVv5qhjUm5OqVtZHBct1Zz6SYTtrPONCJnw\r\nLNHOaNKdzo0YhnRZEg6KlfLq2PxO4IIM/iQWllzvX/TlM1ZQMd38MX1OUE97\r\ngwkYsX0KtA2CYUk3XthuklP8is0xlVFvFmvjbeFlP+tTlc15qlY1aS5hbsV7\r\nVEufoN5Fn1TxxnC7nQJpJIWD8/IcmW1vj5K78NPogRafCONIciTxQYqHNEhi\r\nnP79FrXK5W31cUe+raxv3sTQtQqkHnloqDLmld1XXtN9u+Q6bpa4J49NCT6b\r\nrmaov6NBzVKSxEGsT3BlAh5yp2Jz4s308OFMOYJGVg7lHDuNtcWLebA1/gke\r\n1r36vY9KkBG6L4okwbW+ZgW/mAarGSAYDybx5SCPvap+DQ0QNB+zt0mLDc3D\r\n4w+zJK9d7IPGDQAPlj7uZjivrTpCz8ge3aadFuCNLVHBkRowfq0w5x5MPFYS\r\nh782P2kve1zRDdRv0zdfrbrLPkeIxI6NGA4=\r\n=3UH5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.37.0_1667993302446_0.9942648227462947"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.38.0-rc.1":{"name":"defender-autotask-client","version":"1.38.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.0-rc.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"6c2082ed372e93ccad04347786cf233d3186c8d8","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.38.0-rc.1","_nodeVersion":"18.12.1","_npmVersion":"lerna/3.22.1/node@v18.12.1+arm64 (darwin)","dist":{"integrity":"sha512-NOXSWKky6Eus7GeW/N4Wk9ZLzG67Yn9Uapf7eDNljB+xJMUSAIemssl8i8Pgt0ddqnB2BmZCBj39ZsiMl4q3HA==","shasum":"19ea06de5daf01f3a01256c199794217683a126d","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.0-rc.1.tgz","fileCount":28,"unpackedSize":124511,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2P33UnL2x/VIRznGDRMcQPonuPUbcg8Z89OIgvZXTEAiEA57NWF5D6CP3YxIuBB24qRX3kwupUuOnsnLVSNv+VKck="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjibkzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKmw/8D9q0A5v2bzB0oitvtsfyoyMZTLRcU4Sk1v6+wvT0PSaHNFSV\r\nesWhtshzjxufgCGvvIfh3dHl6msnLv6JAeE7xnVo05vZCOQiE188VMocsLOD\r\ndk7tY2/e4UoJBhziox+WN4iD2AmQXMTM1bXmhdedAZdLT3QpZgOfDRwcUrZv\r\nnFKUrAdXlhYoH/QIGrIfVC2WNy7H01rjuV9YpZD8+vZmJB/ttoohaqcpHXV8\r\nJDeGwwIWPVx5twXK8lzdV8wd+UqzFVgQZhK4WUx/b2YOoQ6INOOlfj0fasva\r\noNMgLLXhIHk73CF5dhTxc97wtA8vDBlxXbdvs2KDLf4y6uWhg0mdm+8yz1wn\r\nf8TRYC4lh2eCf51qRmw4heeMsN2kSQCzVOadSEIAuuPoGdYlLYXW9Kxt8uRQ\r\n9Eg2KPsjNSoNIYBiSoGV8gJlt8hzNGzWPjwXE1/1eezL+XRSIJPYnE9u1Ui1\r\nbSfkJ6j9VVlZ0ZgRDaZ9cy3k8FJHwhmuVpf+7i4UQQlIxZrmRAbmQaLTzq0m\r\nayQhT9mwHhSftEm1up2rwaSzzCZrTUn8aDQYWfuGAtD5gwC2/giTf/IDLDIR\r\n3Vu+CEN3N5DgwwhL1hHYHbNAfp4sCgr9ySiAUEnxVB9eL146Pc+Hsnub9F7D\r\nLfdHOkfQcNuIwzANKEZ7r7XWDE/j7MGLKCE=\r\n=pkhF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.0-rc.1_1669970227688_0.21724483291035024"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.38.0-rc.2":{"name":"defender-autotask-client","version":"1.38.0-rc.2","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.0-rc.2","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"57592d10541364aaba9385c889414b077e73f853","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.38.0-rc.2","_nodeVersion":"18.12.1","_npmVersion":"lerna/3.22.1/node@v18.12.1+arm64 (darwin)","dist":{"integrity":"sha512-13wXxz+xV8vE0T1rbW+7HFOFFeCtyX1qNkzE/pkxb1kAv3xyDs6kUcceLM/WnPXuFdSuBxggnuTMgSvCwFm6aA==","shasum":"c7c5440a866965680d479dddc2d2d23bc262be03","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.0-rc.2.tgz","fileCount":28,"unpackedSize":124511,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqW88oYRM0nYXr3DLNq01gfSE6wawNNrELaNYbg8DF6gIgLWeEnRopKobcj1LhQVn5KEvxanEdw4lCJBxRsGMh0Bw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkceeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+cQ/+JP6Q1WAO1flYQRJpbwrs16MEfZFlrwVQvH16GIkkZ363PLIK\r\nHaJ2P9TeS3/9VvChA207fLvjIoOFVFPokFyzDyNyh63VR51fTOAMB0B8cWOp\r\neFV2L2xA1YkcDnGRUsVYroKD7OGKroNw0sECiZbYjDdYx3U2tHqF232SZqSM\r\nKxmx7vmEwzyBlrqATPwVqgO7/8BagyQabKqISeO2zapTIATpD9JBb5KKi96b\r\ncnb3aACHa7TY8WdWiV7CzWiJ3sHEkp3HKXsMwB4Onmcv0zCDnL2PoTaxtyZ1\r\njKWEvEdyY+Hi/bZtiK3ev+HBFxZuXRxQniUKlufQ6zZbBmgqwq8lxn/4/7PE\r\n6j6YW8w3MgasOf9r5sLrgYbu5ygHONgUEp+Dyv6Dp1PMr1mRUiT4w8Y0vuDn\r\nUAQUjpP0QuISfygg4Bbzr9xxq1PD+z5s4QyaSg5IgPMH/51JB8tjbi9k58xM\r\nZFUurLwTLJ6TpdY8PHYZ/UJDaIRI6HJAP8xQHaL/bJ3k139ARxEkYVmAW6Tg\r\nuQbGagjhkgsj9OIH7ec16ciXFiV3hKbu15OjUoZBPzAblhSfyNxxdQjVCXPC\r\nyo3aWHbJFE4jMLIwq8nM4RISBTpaq16QM0e+IwtWDwg/Ibh4F/22v31PLjwM\r\no+wqaiCsAxsKk+JmWJujUlDWAEoz3HuBxNU=\r\n=0d84\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.0-rc.2_1670498206148_0.11148052286446863"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.38.0":{"name":"defender-autotask-client","version":"1.38.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"b0af2e95b86c888501e3bd6d3acaeebd9a3de99f","_id":"defender-autotask-client@1.38.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-GiQOHhvUdvZ2ZH5QPoXbALHzqQlpNu1g1V1/s/qaAL1PXKCtIr6VRJSmYia9V6rnhwM0Etgh9T6jYmbKHXzdvg==","shasum":"7158ca116ffcca7e5539d3c43b34145465008bd1","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.0.tgz","fileCount":28,"unpackedSize":125463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEljtXwqq7eaKVk5ZNKNGIlBFLXxdpFYs+XMX2TsV7dQIgYDyE9sO0k8ctejS5j1/U6pGpITjPpWLVt6VxRiVJ6AA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxpr9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoy6A//fVI9oX337XYtCucHTVokQuhAaybrCNfTIF1DGG4LakIUZHKA\r\ntiJvwL6eVudhY274nTUpkA4+2WTxs26NeAXeAkFx6nQCJPMoBueN3hmiJTQL\r\nTl++ITe8b7pdi+AUnbnznNfBMxvuVSmAyC/qKCM3ZTAN10SxVGgV/Ffmshiz\r\n7hrY7cqvXE/CiuXsHYeCQC7LS76j31JtYH+3BHqM5XzRiHJ2aACHKKHp+gUe\r\nLwPfD1mQ55ZFolJOHMIOGx4G+ZVtTXjHvrgFe15QZqZdVE9NrkxsH7R0m5OQ\r\nOWdES08OLsRcaDdmlfIpMFeLM6gqO+VT+EHXw2/1cIxKMH78E46U7zhSSGKR\r\nH4SPQTvl5iqKdeLoqwKe9pQGPwzJXpNJwcdmvfhR1MPR+CzNAVHYhC0qS4Vd\r\nBsQKY35Te9/akB+Ac9CCwim3HuFBUL6s53PGgcMjBX/a2dG46OuCJhQanCeg\r\nwyFe5pNYTu6csVjQzHEASsDI8XHQ+7DtwlY5ANpxTTJJhtFzo/fIaUFjMOH6\r\nGa7Rg19YRhHXlHdwog2RYeEPj5sMyhetghdKfakGJ/bqBy8mZyYdcZeA/efO\r\nLM9/bO2I51PRmjyZ3/7rgypfrLrW7QM3z2aqE8A49kUS66RQxk//SsIAYVKk\r\n0WDbDMrGBHyZcgfFGF+jD6YwPoXvlQD4Ai8=\r\n=4+0O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.0_1673960189352_0.6097728226925507"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.39.0":{"name":"defender-autotask-client","version":"1.39.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.39.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"0c5b30c308fb0d898654f5069ef06bf91ea5a9d2","_id":"defender-autotask-client@1.39.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-mL8sMameNIPRlLCjPFbGxYV6+UPYzDHVwYo8QZk7KEazB70HPzTvpFZ+hKwK4H0SxTgJkyAjyiN0dWPWs2Zgyg==","shasum":"159135c82a9f6116835e1cdddff5671777fa60fa","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.39.0.tgz","fileCount":28,"unpackedSize":125463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHHWT23KA3R5MCeroZbuJ7qEx+0iZ7nHXu4Cah3FzsqSAiEAkY5CCCC+36t5ETEUK52ABgPV7HqUUcamNlbrTTMIYTw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj68Z3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLmg/+JNXZ1w0xH7Gkh3jEBounQ6mYI5wScMxXRPTVTYCu8LWaRO8S\r\nqe+uEu1hffyxhAOb++nzOqWNShT2TWtkTDFJ+c7Ks/h9jW55xmyY/SHMsJuW\r\nZVhu0CXOBWjgMixbIxDaL4Li2nSCui4YXlt6lfGzE/a7UXW7nv+7+F56fm13\r\nXl8vkWu8C7H6UkdVQjMMD+gzYm9FQxk9EpMiUa9B/U3M0K2UicIDCzyPFgl9\r\n/UDV5csAPSjMyRx9I/LLYbvfbE6s8mMTM5eWlmaKToOxOVorhr38e3vD9ZVA\r\nJlJSUnYJBYrNs/JjSFIThVp77NN5IYp2BFNh9pNBngPrpBbfj1ganoVOjGIH\r\nqU8+mx1x8xqOvfUnwzWIc5PD57+PTcRM2PIfgSmpU8QLJS3ccLL/8aV+LgZV\r\ngtUCPR8gxxECR56tMle7AXHb37y9r9nFPtkj6Pf7YDpjkO1QPzewwJmGudtq\r\n6HNnlWXQhQh5+Qekr2EsEITMnnMqLdTATQFszYDTT9D0hLCibkqFIXnMBKKX\r\ntOGnYL+7QtqPVj65GOR91lf9mOkzfEtuL+H2f8RVkpo8znchdc66SJaEuAz2\r\nx/xQLi4cienpI7/4/MQPYlbb9M9I7f+TRAoTBOxo+aHM7xeaiV5KtgYCXacl\r\nNDg7khNSR20GyeEvzdB6uCQPjTFXW4MTJr8=\r\n=mFko\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.39.0_1676396151268_0.6311743642067564"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.40.0":{"name":"defender-autotask-client","version":"1.40.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.40.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"a94c80803241f95fbacab0c242e1e1879eeacf6a","_id":"defender-autotask-client@1.40.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-BwqfKJpCNx5ynIp8iCs04teiemyTd2CqzBdR6r41x/6/lWr3xdfmJEdVn3BOrRvpqmemnJU5YgW+LUcjhIRtzA==","shasum":"1cf59dbef13efae796b7e55a6c5e29aecd1fa148","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.40.0.tgz","fileCount":28,"unpackedSize":126354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy9EHFNyFzij+8YKrrzU1Ez+GKJs8zscL3vOfOE+mKngIhAMvK7pRlDDSVvD8ZEWs9p4CgdmRHaAAUAUx0YoTA4Tlx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJzE9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFxA//R2WBIkYZdzV5/eQsPDDZZJmFbalKwVRGKdr9CF3byQPN602H\r\nqzIz6izcTPAJWpFrmGrCckbCuuwFoWwEmVZPhZPmSfgwi6XMj692OP4YqvEu\r\nwlMJ99y1J+scUJTBN2buIUOTmgGm3UiiMk+4oeFdrn2iGpbm387rpauXreka\r\n3Rx71WJAZzeKdQGUmbjprdlxMfG/TJD1jZdmYDLJLY7SLVIhna3DTuLYHuMZ\r\nQuqV+WjaSUQl1RVm63HO5GcBdGHoxjyESL3Y2jI6Ei6T4pe6p97VRprfwryw\r\nefz+9li6Y5g730/jcm5nWtLqO9V/J64ixaKGGdhbqTb9cEUsLWSA1baxVi7d\r\na1S90y99lBIUwL3uGRsjI3Lm8WmAgml7D0VmcnjxTqFe9E2u0/kinr48QFKF\r\nViZOPg/BPOBCtZtnlbn5zNKbfD0HAdL2iGLtbhCKrVdOhbTt8CQdqmlB/khG\r\nHM+7/BdcRqG210PW10HGxJqVADnQar1RneVqfqw12fGJG5qKp4Qmr42M0MCR\r\nhrgFp2Cgidr7f09JZiaC6eKB8kajLeFolhNl9uUoa+42cXbnhthGtrbGe+5E\r\naaTMS+RX94ruByvj+B0IF+nj9LNLOCJlOG6UuGpckiVFhXMYV7oD/6sY+xHs\r\nygdtkUZIAimOr39gZnDkHsw4W41ZSx8igGw=\r\n=tPpb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"mok0230@protonmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"mok0230@protonmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.40.0_1680290109007_0.26645842588931856"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.41.0":{"name":"defender-autotask-client","version":"1.41.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.41.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"62ce93cc6cb316df7c44941c683ba59fbb0ae575","_id":"defender-autotask-client@1.41.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-Kkk/hDU6ygMUGI2GP0LOG5PZmq+AzvSvsAPHBLji9JhGlInntjLVJ17cUBGzyV0k6BEGKklynPYN9mfcTm8lwA==","shasum":"44fb3a386519b28ddbcfb826b8685ba06cb06f4e","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.41.0.tgz","fileCount":28,"unpackedSize":126354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHIsnGFmmDnoWhaK5hwQcZGurRX34eac24UY6ANF/j/mAiEA/YlvEc1IHvngq3Ymi76myIp5Md8c3nZieEbXO7gjRJI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLJ6bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQIA//fsHBTTRGOA1tT0ZV3KW4uV/BJZsXGU/LuqcEPDJj4ROocesa\r\nnhyyHT5HV2NwEST3nlcVyMKlEjV0ILItapuQ7JLuX7+qllr8SsMDnrFaa/nv\r\nLYIjmywI0Q4YgZSKfYp6Aj4nmOEBPw9aLab3NQORMMqhDqT6S8AOwhAo7t+F\r\nTEzXeWi3XCgMjVwqlHcL/tRzn259Z1q8guoY/QUA+u2gpOiR4l1Cklbde1Dg\r\nPwpD6jjelT5T5JILq3vj+f42wEL+9NZoVk/yqvyxoxbrFAo+1Pyn1nv9u1mg\r\nNg7B5y8xMFxnKyoYuSqP0CTBbXjqalIPjc5NC186ZA17vdV66Zlvzj7Mb44Q\r\nAVfuhkN2WiX9ZzNzgUCY/DNxNvJGmZQQd2zmcyPOiQB4nEQjf92kI+0D1MMn\r\nE6Meg9yoLCtvFvzFtbfeK6+INrTZw6nInVluT89uTbK1aNawwrYX5zcLO1aB\r\nkOORYDIUtls7ewlc3aBHEV7R97RJ4+0VgNeOCb9nbG+JKoM1ImkHQcwzLWg9\r\nvEP729eRda3JbgNWYJQxpFgXK2Dijfe6dGqWo0K9pg1AI891jclrqIGRMN3d\r\nMB0JQdYl1HrN3U3OBfxaNo3qBYqdv7tUrFq2k3rmxLll7iQAIjPzBQz1w3iS\r\nTXV1cgUAjuTD+AJwSrosCetuyVhMcQLAUWQ=\r\n=hXpF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"dpmckeon@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.41.0_1680645786783_0.31435591777450966"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.42.0":{"name":"defender-autotask-client","version":"1.42.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.42.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"2ff4838a820afab095431d369b1fbfb2d4384b00","_id":"defender-autotask-client@1.42.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/3.22.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-6mYtX+y0U1Uh+J3qBBKo4i6XPdG+L+FGd74MplJ+WyJqy3/jCWObE4JayoJHCtpErh5HfhaI9QxqZWGalUf93A==","shasum":"601fd78813365bb448a8d08b709af098538e1a16","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.42.0.tgz","fileCount":28,"unpackedSize":126354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmH+6eNt9a5xLFQrXeGZaBef3B9raKRG6Od0CoXlZS9AiApHz/1XPy6tYQdiGhalAxndUXkdbdOh2UYNjbHkth9hg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkODluACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqi9A/+LN5s+MFzaCusAdYe1R9TVcQ4LuL5Md87eDfJykAt5hlSKbv8\r\n5/SlL8bUqhj9xNAy25Nt75TR6oTAsor+oYT28eOgixYIMAzfM1j1wiVA0QvU\r\nnbRnQxNKISkdNNdyjoWveQIGuvO773RPglGdt7ZhID7QOpwTdjrVjFIn9RPE\r\n0Vbko9iXreHtDfgYSrQygu9J0gaGwnNh1dW+pHN2aOMQG2QhfdNTpo2qQyH7\r\nmQWcwASGIWoSJOS7zUMnQSWK/nEF4MxWu94DI4g0pWGk1PjSY7zKu8c8exQu\r\nEmz1mAGhOfiCD+4r4kJsFaQna4JiOVdyYmun5//+QYUaa97koV5X0eggWI7F\r\npUGaTAZ+81D4KipVb1rdDrT6QxvPlV+7agpFsM4CebHF2M2ycg+dqqcrn1MY\r\nU+553LFN2feGQKs1VvGZX0//L9E3MZX4N2v1WSKmvQ5GVMSX1cGDGdjmEXrW\r\nwdAXiogTokyck9a3/1B8QRY8F+2B9YfrxkV7cpTgqr+SRvO4DuHF3Uh77LAI\r\nMHqEjS//Qnn2sP5VBPPn86pMr3GCnBmXYXDw98iFY4vnUUiTe0FKwb4CZK3T\r\nH52qwW+UHnyIgb9p+flSy4WVEj4xHe9k5JtCpVZX2p8etFZkLTBLsgvva9IA\r\nw3D4MahFsE1ORLbgof8oq4JdCymlJoRjcvY=\r\n=k5cH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mok0230","email":"dpmckeon@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.42.0_1681406318706_0.07246814003417934"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.43.0":{"name":"defender-autotask-client","version":"1.43.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.43.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"96af273d61e364103bde3b264595b9b835ef2f28","_id":"defender-autotask-client@1.43.0","_nodeVersion":"16.15.0","_npmVersion":"lerna/6.6.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-eLEnCpZlGfw3HtmaQ7NeZQ6g/pEAwY5mlAYlNvLKvLAryRtbZMkbNSabmbRr89mIIFUefY4z901TvPr/RPdNeA==","shasum":"4787f1613483c8287704eac3bf98684e37fd923f","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.43.0.tgz","fileCount":31,"unpackedSize":132927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLPA2A49hx1zqo9uX1k+sk3S3CAZ91oflp4K+Z4h3EAAiEA5k0vVKPd4krZ8bPKf7Gl+A2jBPonrMuGodrxsEZQKI0="}]},"_npmUser":{"name":"mok0230","email":"dpmckeon@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.43.0_1683318523120_0.002976599144367098"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.44.0-rc.1":{"name":"defender-autotask-client","version":"1.44.0-rc.1","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.44.0-rc.1","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"33ea2a4b9f0193a31557c0bd6ca1e0c3d9b3d54e","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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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","_id":"defender-autotask-client@1.44.0-rc.1","_nodeVersion":"16.15.0","_npmVersion":"lerna/6.6.1/node@v16.15.0+arm64 (darwin)","dist":{"integrity":"sha512-hnDrGvQck925NCOaRCw9SkZq2RUYJFBk5aS+rpp0vW4nGABEz4fRmyRR/MwsNnDgmBieEGpYh9TMiqAKVFSFVA==","shasum":"d1a00db3efb62ce1f102d14325219050ebfcef7c","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.44.0-rc.1.tgz","fileCount":31,"unpackedSize":132937,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJqOQpXcfU0jiZowS/CEfwpZ9kHy16H09lQeKTGSAZ+AiASHWnLKvd6tul5wGIV7wzEDlnSEQnacN8pSpVS+4H88A=="}]},"_npmUser":{"name":"mok0230","email":"dpmckeon@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.44.0-rc.1_1683746847840_0.6435040030986205"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.44.0":{"name":"defender-autotask-client","version":"1.44.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.44.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"bb8525ac2852496666cbe662f61805f6ccee5849","_id":"defender-autotask-client@1.44.0","_nodeVersion":"16.14.0","_npmVersion":"lerna/6.6.1/node@v16.14.0+arm64 (darwin)","dist":{"integrity":"sha512-IOEju6vi3i/4blzFRFzxrk/PLzHeoCh4tltp6/8fnTenWP3A+miGIEq6US2KLkrDMOYFhEfW9R3ZDO/3L0ckCg==","shasum":"72842f585e611a99eb1c0b6a108069b53f26a40e","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.44.0.tgz","fileCount":31,"unpackedSize":132927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6v3pDZ9Wc/VgVEyQ3sRW5EHZYpkTMZsrpX5IFstA7IwIhAKZVLjlxz66rQVW6ELzvpP0L+z/sDDSro4J8Go2xvdLU"}]},"_npmUser":{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.44.0_1684154982004_0.47837893400941356"},"_hasShrinkwrap":false,"deprecated":"defender-autotask-client is deprecated, please install @openzeppelin/defender-autotask-client"},"1.38.1-rc.0":{"name":"defender-autotask-client","version":"1.38.1-rc.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.1-rc.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"e828861fdd32bcc19811d307b245986240e6c494","_id":"defender-autotask-client@1.38.1-rc.0","_nodeVersion":"16.20.1","_npmVersion":"lerna/3.22.1/node@v16.20.1+arm64 (darwin)","dist":{"integrity":"sha512-lz9t3GSlgV8Jw020Mdhr4XHzJ/GfN9X14XURjKWmzwMNhrIKANFLm6AimVcxFCaraCuLfEbY8gNfWDy+EHnIhA==","shasum":"46fd45608e96a5f9038e80860e8568ea1eff6ddf","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.1-rc.0.tgz","fileCount":28,"unpackedSize":140105,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsPboPOCwK5o8J0ccIcOAOSx4TBzuSJyajzxzQhYawVAIhALmeKwM2jqDaojtPt+u4XR3BWQdnhDIgXw4Nc/Jvmic9"}]},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.1-rc.0_1712863187553_0.4040506847307781"},"_hasShrinkwrap":false},"1.38.2-rc.0":{"name":"defender-autotask-client","version":"1.38.2-rc.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.2-rc.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"8588fbc0bfa0bf406cadf3cfe98861112b5c3acf","_id":"defender-autotask-client@1.38.2-rc.0","_nodeVersion":"16.20.1","_npmVersion":"lerna/3.22.1/node@v16.20.1+arm64 (darwin)","dist":{"integrity":"sha512-W4teotfrhA4DYeM4ujKjo+FtpSohudx3qhwtsz1upjzp5lq4ZVEFLpV34y229Xr46YojMg5LfOzUehSQZp59Dw==","shasum":"492f938911078de10d9ec7be907f9314138b0a46","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.2-rc.0.tgz","fileCount":28,"unpackedSize":141101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGOOt+JI+od7qGf3YMi3BYlxA5M1+6qJM+sHdbuSWRuUAiEAp6G8DZmQdJRm1RU3EyVzMxox4rqnrMzigvFN+YeAc9E="}]},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.2-rc.0_1716414601569_0.5786399121295311"},"_hasShrinkwrap":false},"1.38.3-rc.0":{"name":"defender-autotask-client","version":"1.38.3-rc.0","description":"Client library for managing Defender Autotasks","bin":{"defender-autotask":"lib/bin.js"},"main":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"build":"rm -rf lib && tsc && chmod a+x ./lib/bin.js","test":"yarn test:unit","test:unit":"jest --verbose --passWithNoTests","watch":"tsc -w","prepare":"yarn build"},"author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","dependencies":{"axios":"^0.21.2","defender-base-client":"1.38.3-rc.0","dotenv":"^10.0.0","glob":"^7.1.6","jszip":"^3.5.0","lodash":"^4.17.19","node-fetch":"^2.6.0"},"gitHead":"7fd90342e764cbeb794ec62e6a05ffa33a5432a1","_id":"defender-autotask-client@1.38.3-rc.0","_nodeVersion":"16.20.1","_npmVersion":"lerna/3.22.1/node@v16.20.1+arm64 (darwin)","dist":{"integrity":"sha512-zL2ry3IegN+2qc0TAK1Ri9kaAxmxUl+iOrR1DxWh06e2/pk5X0P72bURAo2FRr90Rk8yvqELj2nMx15y7f+oZQ==","shasum":"6666529a5a00fce6f51d522c18f8c5ec0a729cf1","tarball":"https://registry.npmjs.org/defender-autotask-client/-/defender-autotask-client-1.38.3-rc.0.tgz","fileCount":28,"unpackedSize":141101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5ycCQoJGWnugf4ipHKnxNnlFrvWMceX7/+WZeQc+q5AiEAur1OuNNXjDVD2HFh47y8XtCkewWxZe2g/C3hD2C5fgw="}]},"_npmUser":{"name":"tirumerla","email":"tirumerla@gmail.com"},"directories":{},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defender-autotask-client_1.38.3-rc.0_1716452280281_0.24846974645902686"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-08T19:20:37.253Z","1.4.1-rc.0":"2021-02-08T19:20:37.478Z","modified":"2024-05-23T08:18:00.643Z","1.4.1":"2021-02-08T19:34:59.410Z","1.5.0":"2021-03-18T20:56:19.875Z","1.5.1":"2021-04-08T14:30:17.307Z","1.7.0-store.0":"2021-05-12T14:49:19.116Z","1.7.0":"2021-05-13T18:21:59.203Z","1.10.0":"2021-07-07T19:57:48.148Z","1.12.0":"2021-11-24T15:59:33.613Z","1.12.1":"2021-11-25T15:23:53.803Z","1.14.0":"2022-02-10T11:45:23.966Z","1.16.0":"2022-02-17T09:47:14.959Z","1.17.0":"2022-02-25T10:01:43.277Z","1.18.0":"2022-03-10T17:31:14.763Z","1.20.1":"2022-04-26T16:45:52.163Z","1.21.0":"2022-05-02T17:09:32.378Z","1.21.2":"2022-05-09T19:05:06.280Z","1.21.3":"2022-05-10T21:02:35.000Z","1.22.0":"2022-05-26T15:13:04.729Z","1.23.0":"2022-06-03T10:23:37.977Z","1.24.0":"2022-06-09T15:58:38.422Z","1.25.0":"2022-06-23T20:40:17.339Z","1.27.0":"2022-08-04T16:08:21.551Z","1.27.1":"2022-08-05T16:03:37.833Z","1.28.1":"2022-08-18T17:21:11.224Z","1.30.0-rc.1":"2022-09-01T18:22:38.721Z","1.30.0":"2022-09-06T20:25:09.286Z","1.31.0-rc.1":"2022-09-07T22:06:06.606Z","1.31.0-rc.2":"2022-09-09T10:50:29.328Z","1.31.0-rc.3":"2022-09-12T12:18:26.692Z","1.31.1":"2022-09-12T18:18:19.059Z","1.34.0-rc.2":"2022-10-25T15:21:49.619Z","1.34.0-rc.3":"2022-10-25T15:24:41.244Z","1.34.0":"2022-10-25T15:47:15.914Z","1.35.0-rc.1":"2022-10-31T17:14:11.087Z","1.35.0-rc.2":"2022-10-31T17:18:57.489Z","1.36.0-rc.1":"2022-11-02T19:37:21.527Z","1.37.0-rc.1":"2022-11-05T02:59:12.300Z","1.37.0-rc.2":"2022-11-05T03:52:25.393Z","1.37.0":"2022-11-09T11:28:22.611Z","1.38.0-rc.1":"2022-12-02T08:37:07.859Z","1.38.0-rc.2":"2022-12-08T11:16:46.408Z","1.38.0":"2023-01-17T12:56:29.501Z","1.39.0":"2023-02-14T17:35:51.485Z","1.40.0":"2023-03-31T19:15:09.199Z","1.41.0":"2023-04-04T22:03:06.973Z","1.42.0":"2023-04-13T17:18:38.901Z","1.43.0":"2023-05-05T20:28:43.282Z","1.44.0-rc.1":"2023-05-10T19:27:28.035Z","1.44.0":"2023-05-15T12:49:42.218Z","1.38.1-rc.0":"2024-04-11T19:19:47.748Z","1.38.2-rc.0":"2024-05-22T21:50:01.859Z","1.38.3-rc.0":"2024-05-23T08:18:00.459Z"},"maintainers":[{"name":"zeljkox","email":"zeljko89markovic@gmail.com"},{"name":"frangio","email":"frangio.1@gmail.com"},{"name":"ernestognw","email":"ernesto@openzeppelin.com"},{"name":"bjmrq","email":"bmarquiscom@gmail.com"},{"name":"mok0230","email":"dpmckeon@gmail.com"},{"name":"tirumerla","email":"tirumerla@gmail.com"},{"name":"dylkil","email":"dylankilkenny95@gmail.com"},{"name":"namis","email":"me@nami.sh"},{"name":"collins-oz","email":"collins.wekesa@openzeppelin.com"}],"description":"Client library for managing Defender Autotasks","author":{"name":"Santiago Palladino","email":"santiago@openzeppelin.com"},"license":"MIT","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 or via webhooks 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\n$ defender-autotask update-code 19ef0257-bba4-4723-a18f-67d96726213e ./lib/my-autotask\n```\n\n## Install\n\n```bash\nnpm install defender-autotask-client\n```\n\n```bash\nyarn add 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\n$ defender-autotask update-code $AUTOTASK_ID $PATH_TO_CODE\n$ defender-autotask execute-run $AUTOTASK_ID\n$ defender-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('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',\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',\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\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. For instance, in the following URL, the ID is `19ef0257-bba4-4723-a18f-67d96726213e`.\n\n```\nhttps://defender.openzeppelin.com/#/autotask/19ef0257-bba4-4723-a18f-67d96726213e\n```\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"}