{"_id":"@4lch4/tailscale-lib","name":"@4lch4/tailscale-lib","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@4lch4/tailscale-lib","displayName":"Tailscale API Lib","version":"1.1.0","description":"A wrapper library for the Tailscale API.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","author":{"name":"4lch4","email":"hey@4lch4.email","url":"https://4lch4.com"},"publishConfig":{"access":"public"},"license":"MIT","homepage":"https://4lch4.link/Tailscale-Lib","keywords":["tailscale","api","wrapper","library","axios"],"repository":{"type":"git","url":"git+ssh://git@github.com/4lch4/Tailscale-API.git"},"scripts":{"build":"tsc","build:watch":"tsc --watch","pretty":"prettier --write .","prepublishOnly":"npm run build"},"dependencies":{"@4lch4/logger":"^1.9.2","axios":"^0.27.2","chalk":"^5.0.1","dotenv":"^16.0.1","fs-extra":"^10.1.0"},"devDependencies":{"@types/fs-extra":"^9.0.13","@types/node":"^18.0.0","prettier":"^2.7.1","ts-node":"^10.8.1","typescript":"^4.7.4"},"gitHead":"0e2bfe2d957a3f7dc8a621e057e0ff00ffa25f2c","bugs":{"url":"https://github.com/4lch4/Tailscale-API/issues"},"_id":"@4lch4/tailscale-lib@1.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-FhoEBBVm6zckAR+RUWxle7OTDxGyjY4ZEcaJMMn079k8kSSwBP3UrpQEt/ORfllU7D7lmupy3fkVuQJvNMK+Ig==","shasum":"d280aa16600a106729bc9c1d2c49083437e3d2a3","tarball":"https://registry.npmjs.org/@4lch4/tailscale-lib/-/tailscale-lib-1.1.0.tgz","fileCount":64,"unpackedSize":41913,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCujX7IedWmbWxcC5rb918QUOygtFEHaC2Jjm+2O2HYQAIhAJxnOJNOxjKwBSt3S0rq3UNFoZ1I10GUmBidh98Xx3AH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitHQFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBpg/+M9wAxdOl4hn7vaoA7T49UachGT23fJzGhOKN8H/b9E5TDS+p\r\n92kyUlTW8AaBvnVyoGead2z1Xyk11ngsTobs/AOW/WLk1F9BPfiPRONE7KrA\r\nW+/QDdUoXjedebyKWTU6LMZSy9Prd0NVVAPUoBG3DntcGbMbp0JXoFhCPZlb\r\nRX5j8WBysHjfMu3HmBF7q25AJAPk89L0rznbGtf9yU5DxMV4lT5LXzJ+0gYO\r\nzs6mBnxuvbwLMqd71FlxNlDo1zCPBqkSM0yZkNyKQmWveF2To/Od/zco2JtX\r\nG3QDkHWOViF9bQbhS1i1U+UIc1DcnlFllWsHvKziDx4KWRcLiwPd1teCXyZ8\r\nu/6ZbQLZF9koZbnWIxBmLYSvKeBd7o0qJtcDc3QCNf25UCunuwmOLM6jp1Rp\r\nFevIzAvTfPQgucmwZxX9/vAuGNTvuyUkA2QMoqJTHuv8zAJ69DCp4YjBM1pJ\r\naXWkDkk5Fvls7w+ebYg3Ulid4AhSWIZCXS0ov5+bZRYUDfoWrrKzn9dfztdw\r\n6ArG6DCDLKJRAiGESiZjSpBHjzp3YjTTUKpPGw+xLugZ+lZJoyj307mfSq4P\r\n/WsfIqKNCMgPi9OHqiacLJx4hWE/V7AOv11ICwrTphS6TorhiIxF8a8jqJI4\r\nRTkNBTH4Ey6FAJXpxRdd7FSeAjnLyEcJwTo=\r\n=ytfU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alcha","email":"npmjs@4lch4.email"},"directories":{},"maintainers":[{"name":"alcha","email":"npmjs@4lch4.email"},{"name":"4lch4-ci","email":"inbox@4lch4.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tailscale-lib_1.1.0_1655993348805_0.10959862215703509"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-23T14:09:08.742Z","1.1.0":"2022-06-23T14:09:09.003Z","modified":"2022-06-23T14:09:09.159Z"},"maintainers":[{"name":"alcha","email":"npmjs@4lch4.email"},{"name":"4lch4-ci","email":"inbox@4lch4.dev"}],"description":"A wrapper library for the Tailscale API.","homepage":"https://4lch4.link/Tailscale-Lib","keywords":["tailscale","api","wrapper","library","axios"],"repository":{"type":"git","url":"git+ssh://git@github.com/4lch4/Tailscale-API.git"},"author":{"name":"4lch4","email":"hey@4lch4.email","url":"https://4lch4.com"},"bugs":{"url":"https://github.com/4lch4/Tailscale-API/issues"},"license":"MIT","readme":"# Tailscale-Lib\n\nThis repository/package is a wrapper library for interacting with [the Tailscale API][0]. It's written in TypeScript and published to the [NPM registry][1] and [GitHub Package Repository][2].\n\n## ToDo\n\nThe following table lists all the routes/paths, and the associated HTTP method, along with the class & method to use to call the route/path.\n\n| Route/Path                                 | HTTP Method | Class & Method/Operation ID                     | Description                                                      |\n| ------------------------------------------ | ----------- | ----------------------------------------------- | ---------------------------------------------------------------- |\n| `/api/v2/device/:deviceID`                 | **GET**     | [DevicesRoutes#getDevice][3]                    | List the details for a device.                                   |\n| `/api/v2/device/:deviceID`                 | **DELETE**  | [DevicesRoutes#deleteDevice][3]                 | Deletes the device from its Tailnet.                             |\n| `/api/v2/device/:deviceID/routes`          | **GET**     | [DevicesRoutes#getDeviceRoutes][3]              | Fetch subnet routes that are advertised and enabled for a device |\n| `/api/v2/device/:deviceID/routes`          | **POST**    | [DevicesRoutes#setDeviceRoutes][3]              | Set the subnet routes that are enabled for a device.             |\n| `/api/v2/device/:deviceID/authorized`      | **POST**    | [DevicesRoutes#authorizeDevice][3]              | Authorize a device.                                              |\n| `/api/v2/device/:deviceID/tags`            | **POST**    | [DevicesRoutes#setDeviceTags][3]                | Update tags on a device.                                         |\n| `/api/v2/device/:deviceID/key`             | **POST**    | [DevicesRoutes#updateDeviceKey][3]              | Update device key.                                               |\n| `/api/v2/tailnet/:tailnet/acl`             | **GET**     | [TailnetsRoutes#getTailnetACL][4]               | Fetch ACL for a Tailnet.                                         |\n| `/api/v2/tailnet/:tailnet/acl`             | **POST**    | [TailnetsRoutes#updateTailnetACL][4]            | Set ACL for a Tailnet.                                           |\n| `/api/v2/tailnet/:tailnet/acl/preview`     | **POST**    | [TailnetsRoutes#previewTailnetACL][4]           | Preview rule matches on an ACL for a resource.                   |\n| `/api/v2/tailnet/:tailnet/acl/validate`    | **POST**    | [TailnetsRoutes#validateTailnetACL][4]          | Run validation tests against the Tailnet’s active ACL.           |\n| `/api/v2/tailnet/:tailnet/devices`         | **GET**     | [TailnetsRoutes#listTailnetDevices][4]          | List the devices for a Tailnet.                                  |\n| `/api/v2/tailnet/:tailnet/keys`            | **GET**     | [TailnetsRoutes#listTailnetKeys][4]             | List the keys for a Tailnet.                                     |\n| `/api/v2/tailnet/:tailnet/keys`            | **POST**    | [TailnetsRoutes#createTailnetKey][4]            | Create a new key for a Tailnet.                                  |\n| `/api/v2/tailnet/:tailnet/keys/:keyID`     | **GET**     | [TailnetsRoutes#getTailnetKey][4]               | Get information for a specific key.                              |\n| `/api/v2/tailnet/:tailnet/keys/:keyID`     | **DELETE**  | [TailnetsRoutes#deleteTailnetKey][4]            | Delete a specific key.                                           |\n| `/api/v2/tailnet/:tailnet/dns/nameservers` | **GET**     | [TailnetsRoutes#getTailnetNameservers][4]       | List the DNS nameservers for a Tailnet.                          |\n| `/api/v2/tailnet/:tailnet/dns/nameservers` | **POST**    | [TailnetsRoutes#updateTailnetNameservers][4]    | Replaces the list of DNS nameservers for a Tailnet.              |\n| `/api/v2/tailnet/:tailnet/dns/preferences` | **GET**     | [TailnetsRoutes#getTailnetDNSPreferences][4]    | Retrieves the DNS preferences for a Tailnet.                     |\n| `/api/v2/tailnet/:tailnet/dns/preferences` | **POST**    | [TailnetsRoutes#updateTailnetDNSPreferences][4] | Replaces the DNS preferences for a Tailnet.                      |\n| `/api/v2/tailnet/:tailnet/dns/searchpaths` | **GET**     | [TailnetsRoutes#getTailnetDNSSearchPaths][4]    | Retrieves the search paths for a Tailnet.                        |\n| `/api/v2/tailnet/:tailnet/dns/searchpaths` | **POST**    | [TailnetsRoutes#updateTailnetDNSSearchPaths][4] | Replaces the search paths for a Tailnet.                         |\n\n[0]: https://github.com/tailscale/tailscale/blob/main/api.md\n[1]: http://npmjs.com/\n[2]: https://github.com/features/packages\n[3]: ./src/routes/DevicesRoutes.ts\n[4]: ./src/routes/TailnetsRoutes.ts\n","readmeFilename":"README.md"}