diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..180b8ab --- /dev/null +++ b/.eslintrc @@ -0,0 +1,92 @@ +{ + "parser": "@typescript-eslint/parser", + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/eslint-recommended", + "plugin:@typescript-eslint/recommended" + ], + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module" + }, + "ignorePatterns": [ + "dist", + "server", + "portal", + "local-execution" + ], + "rules": { + "quotes": [ + "warn", + "single" + ], + "indent": [ + "warn", + 2, + { + "SwitchCase": 1 + } + ], + "semi": [ + "off" + ], + "comma-dangle": [ + "warn", + "always-multiline" + ], + "dot-notation": "off", + "eqeqeq": "warn", + "curly": [ + "warn", + "all" + ], + "brace-style": [ + "warn" + ], + "prefer-arrow-callback": [ + "warn" + ], + "max-len": [ + "warn", + 160 + ], + "no-console": [ + "warn" + ], // use the provided Homebridge log method instead + "no-non-null-assertion": [ + "off" + ], + "comma-spacing": [ + "error" + ], + "no-multi-spaces": [ + "warn", + { + "ignoreEOLComments": true + } + ], + "lines-between-class-members": [ + "warn", + "always", + { + "exceptAfterSingleLine": true + } + ], + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": [ + "off", + { + "args": "none" + } + ], + "@typescript-eslint/semi": [ + "warn" + ], + "@typescript-eslint/member-delimiter-style": [ + "warn" + ] + } +} \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..e234ac5 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +custom: https://paypal.me/oznu diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..027a51c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,49 @@ +--- +name: Bug Report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +--- + + + +**Describe The Bug:** + + +**To Reproduce:** + + +**Expected behavior:** + + +**Logs:** + + +``` +Show the Homebridge logs here. +Remove any sensitive information. +``` + +**Homebridge Config:** + +```json +Show your homebridge config.json here. +Remove any sensitive information, such as your homebridge-gsh / google-smarthome token. +``` + +**Screenshots:** + + +**Environment:** + +* **Node.js Version**: +* **NPM Version**: +* **Homebridge Version**: +* **Homebridge GSH Plugin Version**: +* **Homebridge Config UI X Plugin Version**: +* **Operating System**: + + + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..a50a7de --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Homebridge Discord Community + url: https://discord.gg/cFFBuvp + about: Ask your questions in the homebridge-gsh channel \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..f974b3b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,23 @@ +--- +name: Feature Request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe:** + + +**Describe the solution you'd like:** + + +**Describe alternatives you've considered:** + + +**Additional context:** + + + + diff --git a/.github/ISSUE_TEMPLATE/support-request.md b/.github/ISSUE_TEMPLATE/support-request.md new file mode 100644 index 0000000..8e39244 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/support-request.md @@ -0,0 +1,43 @@ +--- +name: Support Request +about: Need help? +title: '' +labels: question +assignees: '' + +--- + + + +**Describe Your Problem:** + + +**Logs:** + + +``` +Show the Homebridge logs here. +Remove any sensative information. +``` + +**Homebridge Config:** + +```json +Show your homebridge config.json here. +Remove any sensitive information, such as your homebridge-gsh / google-smarthome token. +``` + +**Screenshots:** + + +**Environment:** + +* **Node.js Version**: +* **NPM Version**: +* **Homebridge Version**: +* **Homebridge GSH Plugin Version**: +* **Homebridge Config UI X Plugin Version**: +* **Operating System**: + + + diff --git a/.github/SECURITY.md b/.github/SECURITY.md new file mode 100644 index 0000000..1152115 --- /dev/null +++ b/.github/SECURITY.md @@ -0,0 +1,41 @@ +# Security Policies and Procedures + +This document outlines security procedures and general policies for the `homebridge-gsh` project. + + * [Reporting a Bug](#reporting-a-bug) + * [Disclosure Policy](#disclosure-policy) + * [Comments on this Policy](#comments-on-this-policy) + +## Reporting a Bug + +The `homebridge-gsh` team and community take all security bugs in `homebridge-gsh` +seriously. Thank you for improving the security of `homebridge-gsh`. We appreciate +your efforts and responsible disclosure and will make every effort to acknowledge +your contributions. + +Report security bugs by emailing the maintainer at dev@oz.nu + +The maintainer will acknowledge your email within 48 hours, and will send a +more detailed response within 48 hours indicating the next steps in handling +your report. After the initial reply to your report, the security team will +endeavor to keep you informed of the progress towards a fix and full +announcement, and may ask for additional information or guidance. + +Report security bugs in third-party modules to the person or team maintaining +the module. + +## Disclosure Policy + +When the security team receives a security bug report, they will assign it to a +primary handler. This person will coordinate the fix and release process, +involving the following steps: + + * Confirm the problem and determine the affected versions. + * Audit code to find any potential similar problems. + * Prepare fixes for all releases still under maintenance. These fixes will be + released as fast as possible to npm. + +## Comments on this Policy + +If you have suggestions on how this process could be improved please submit a +pull request. diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..30a0b0b --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,17 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 30 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 5 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false \ No newline at end of file diff --git a/.github/workflows/homebridge.yml b/.github/workflows/homebridge.yml new file mode 100644 index 0000000..8e0f945 --- /dev/null +++ b/.github/workflows/homebridge.yml @@ -0,0 +1,31 @@ +name: Homebridge Build and Lint + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + # the Node.js versions to build on + node-version: [10.x, 12.x, 13.x, 14.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm install + + - name: Lint the project + run: npm run lint + + - name: Build the project + run: npm run build + env: + CI: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15fe8f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +.env +dist +homebridge-gsh-**.tgz \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..f94d624 --- /dev/null +++ b/.npmignore @@ -0,0 +1,14 @@ +node_modules +.vscode +.github +server +portal +src +scripts +local-execution +tsconfig.build.json +tsconfig.json +tslint.json +nodemon.json +.env +homebridge-gsh-**.tgz \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..fd1d9bf --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2fdfab8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "editor.tabSize": 2, + "editor.insertSpaces": true, + "files.eol": "\n", + "editor.codeActionsOnSave": { + "source.fixAll.tslint": true, + "source.fixAll.eslint": true + }, + "editor.formatOnSave": true +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..05270a0 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,39 @@ +# Contributing + +Pull requests are welcome from everyone. + +This project is written in [TypeScript](https://www.typescriptlang.org/) and [Angular](https://angular.io/) for the server portal UI. + +## Getting Setup + +First, remove any globally installed versions of `homebridge-gsh` you may have installed on your development machine: + +``` +npm uninstall -g homebridge-gsh +``` + +Fork, then clone the repo: + +``` +git clone git@github.com:your-username/homebridge-gsh.git +``` + +Install npm dependencies for the plugin: + +``` +npm install +``` + +Build the plugin: + +``` +npm run build:plugin +``` + +Symlink your development directory to global: + +``` +npm link +``` + +You can now run `homebridge` and it will use `homebridge-gsh` from your development directory. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e72bfdd --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5f508e9 --- /dev/null +++ b/README.md @@ -0,0 +1,141 @@ +

+
+ +

+ + + +# Homebridge to Google Smart Home + +[![npm](https://img.shields.io/npm/v/homebridge-gsh.svg)](https://www.npmjs.com/package/homebridge-gsh) +[![npm](https://img.shields.io/npm/dt/homebridge-gsh.svg)](https://www.npmjs.com/package/homebridge-gsh) +[![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=discord)](https://discord.gg/cFFBuvp) +[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins) +[![Donate](https://img.shields.io/badge/donate-paypal-yellowgreen.svg)](https://paypal.me/oznu) + + + + + +Control your supported [Homebridge](https://github.com/nfarina/homebridge) accessories from any Google Home speaker or the Google Home mobile app. Inspired by [homebridge-alexa](https://github.com/NorthernMan54/homebridge-alexa). + +* [Supported Device Types](#supported-device-types) +* [Installation Instructions](#installation-instructions) +* [Configuration](#configuration) +* [Known Issues](#known-issues) +* [Troubleshooting](#troubleshooting) +* [Credits](#credits) +* [License](#license) +* [Sponsors](#sponsors) + +## Supported Device Types + +* Switch +* Outlet +* Light Bulb + * On / Off + * Brightness + * Color (Hue/Saturation) +* Fan (On / Off) +* Fan v2 (On / Off) +* Window +* Window Coverings +* Door +* Garage Door (2FA required) +* Thermostat / Heater Cooler +* Television (On / Off) +* Lock Mechanism (2FA required) +* Security System (2FA required) +* Temperature Sensor +* Humidity Sensor + +*Note: Google Smart Home does not currently support all "sensor" devices such as Motion Sensors or Occupancy Sensors etc.* + +## Installation Instructions + +#### Option 1: Install via Homebridge Config UI X: + +Search for "Google Home" in [homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x) and install `homebridge-gsh`. + +#### Option 2: Manually Install: + +``` +sudo npm install -g homebridge-gsh +``` + +## Configuration + +To configure `homebridge-gsh` you must also be running [homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x). + +1. Navigate to the Plugins page in [homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x). +2. Click the **Settings** button for the Google Smart Home plugin. +3. Click the **Link Account** button. +4. Sign in with your Google or GitHub account. +5. Your account is now linked. +6. Restart Homebridge for the changes to take effect. +7. Add the [Homebridge Action](https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en) using the Google Home mobile app. [See Wiki](https://github.com/oznu/homebridge-gsh/wiki#add-homebridge-to-google-home-app) for detailed instructions. + +![homebridge-gsh-signup](https://user-images.githubusercontent.com/3979615/62948031-ff228d80-be26-11e9-9e07-ef1023f28fa8.gif) + +### Enabling Accessory Control + +Homebridge must be running in insecure mode to allow accessory control via this plugin. See [Enabling Accessory Control](https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control) for instructions. + +### Multiple Homebridge Instances + +This plugin **must** only be configured on one Homebridge instance on your network as the plugin will discover all your other Homebridge instances and be able to control them. For this to work: + +* all instances must be running [in insecure mode](https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control) +* all instances must have the same PIN defined in the `config.json` + +## Known Issues + +1. Only one Homebridge instance can be linked to an account (even across different local networks). You will experience unintended results if you try and link more than one instance to the same account. + +## Troubleshooting + +#### 1. Errors during installation + +Make sure you installed the package with `sudo` flag. Most installation errors can be fixed by removing the plugin and reinstalling: + +```shell +# cleanup +sudo npm uninstall -g homebridge-gsh + +# reinstall +sudo npm install -g homebridge-gsh +``` + +#### 2. Cannot control accessories + +See [Enabling Accessory Control](https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control) and [Multiple Homebridge Instances](#multiple-homebridge-instances). + +#### 3. Ask on Discord + +Join the [Official Homebridge Discord](https://discord.gg/cFFBuvp) community and ask in the [#homebridge-gsh](https://discord.gg/cFFBuvp) channel. + +## Contributing + +Please see [CONTRIBUTING.md](CONTRIBUTING.md). + +## Credits + +* [NorthernMan54](https://github.com/NorthernMan54) - developer of the [Hap-Node-Client](https://github.com/NorthernMan54/Hap-Node-Client) module which is used by this plugin. + +## License + +Copyright (C) 2019 oznu + +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [GNU General Public License](./LICENSE) for more details. + +## Sponsors + +JWT Auth for open source projects diff --git a/config.schema.json b/config.schema.json new file mode 100644 index 0000000..6cc4855 --- /dev/null +++ b/config.schema.json @@ -0,0 +1,138 @@ +{ + "pluginAlias": "google-smarthome", + "pluginType": "platform", + "singular": true, + "headerDisplay": "## Homebridge Config UI X Upgrade Required\nhomebridge-config-ui-x v4.6.0 or later is required to configure this plugin correctly. If you are seeing this message you need to upgrade (or reload the UI).\n", + "footerDisplay": "Search for [Homebridge in the Google Home app](https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en) and link the action to complete setup.", + "schema": { + "type": "object", + "properties": { + "name": { + "title": "Name", + "type": "string", + "default": "Google Smart Home", + "minLength": 1, + "required": true + }, + "token": { + "title": "Token", + "type": "string", + "required": true + }, + "notice": { + "title": "Notice", + "type": "string", + "required": true, + "default": "Keep your token a secret!" + }, + "twoFactorAuthPin": { + "placeholder": "Two Factor Authentication Pin Code", + "type": "string", + "pattern": "^[0-9]*$" + }, + "debug": { + "title": "Enable Debug Logging", + "type": "boolean" + }, + "instanceBlacklist": { + "title": "Instance", + "type": "array", + "items": { + "title": "Instance Username", + "type": "string", + "pattern": "^([A-Fa-f0-9]{2}:){5}[A-Fa-f0-9]{2}$" + } + }, + "accessoryFilter": { + "title": "Accessory", + "type": "array", + "items": { + "title": "Accessory Name", + "type": "string" + } + }, + "forceFahrenheit": { + "title": "Force Degrees Fahrenheit", + "type": "boolean" + } + } + }, + "layout": [ + { + "type": "fieldset", + "title": "Advanced Settings", + "expandable": true, + "expanded": false, + "items": [ + { + "type": "help", + "helpvalue": "
Debug Mode
Enabling debug mode can help troubleshoot problems. If you are experiencing problems with this plugin you should enable debug logging and include the results in your support request." + }, + "debug", + { + "type": "help", + "helpvalue": "
Two Factor Authentication
If you provide a two factor authentication code, the Google Assistant will prompt you for your code before performing certain actions. e.g. unlocking a Lock Mechanism." + }, + { + "notitle": true, + "key": "twoFactorAuthPin" + }, + { + "type": "help", + "helpvalue": "
Instance Blacklist
Enter the usernames of any Homebridge instances on your network that you don't want to be able to control from the Google Assistant." + }, + { + "nodescription": true, + "notitle": true, + "key": "instanceBlacklist", + "type": "array", + "items": [ + { + "type": "div", + "displayFlex": true, + "flex-direction": "row", + "items": [ + { + "key": "instanceBlacklist[]", + "flex": "1 1 50px", + "notitle": true, + "placeholder": "Enter homebridge username..." + } + ] + } + ] + }, + { + "type": "help", + "helpvalue": "
Accessory Filter
Enter the names (as displayed in the Google Home app) of the accessories you don't want to control from the Google Assistant." + }, + { + "nodescription": true, + "notitle": true, + "key": "accessoryFilter", + "type": "array", + "items": [ + { + "type": "div", + "displayFlex": true, + "flex-direction": "row", + "items": [ + { + "key": "accessoryFilter[]", + "flex": "1 1 50px", + "notitle": true, + "placeholder": "Enter accessory name..." + } + ] + } + ] + }, + { + "type": "help", + "helpvalue": "
Force Fahrenheit
Some Homebridge thermostat plugins do not correctly report they are using Fahrenheit temperature units. Enabling this option will force all thermostats accessories to display temperature units in Fahrenheit." + }, + "forceFahrenheit" + ] + } + ] +} \ No newline at end of file diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 0000000..43d9a23 --- /dev/null +++ b/nodemon.json @@ -0,0 +1,9 @@ +{ + "watch": [ + "src" + ], + "ext": "ts", + "ignore": [], + "exec": "tsc && homebridge -I -D", + "signal": "SIGTERM" +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..3afb627 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3829 @@ +{ + "name": "homebridge-gsh", + "version": "2.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@babel/code-frame": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz", + "integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg==", + "dev": true, + "requires": { + "@babel/highlight": "^7.10.4" + } + }, + "@babel/helper-validator-identifier": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz", + "integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==", + "dev": true + }, + "@babel/highlight": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", + "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.10.4", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@eslint/eslintrc": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.1.3.tgz", + "integrity": "sha512-4YVwPkANLeNtRjMekzux1ci8hIaH5eGKktGqR0d3LWsKNn5B2X/1Z6Trxy7jQXl9EBGE6Yj02O+t09FMeRllaA==", + "dev": true, + "requires": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "lodash": "^4.17.19", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + } + } + }, + "@homebridge/ciao": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/@homebridge/ciao/-/ciao-1.0.12.tgz", + "integrity": "sha512-1NJ8DWErRksMdCG3P/v3i7/kw6hy+wtrbfnJ4uTKCyRA+fx3bhh6Dw8iJYf7cf/Ke8JydnfGnzcZpjiPqrVB9g==", + "requires": { + "debug": "^4.1.1", + "fast-deep-equal": "^3.1.3" + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz", + "integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "2.0.3", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz", + "integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==", + "dev": true + }, + "@nodelib/fs.walk": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz", + "integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==", + "dev": true, + "requires": { + "@nodelib/fs.scandir": "2.1.3", + "fastq": "^1.6.0" + } + }, + "@oznu/ws-connect": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@oznu/ws-connect/-/ws-connect-2.2.0.tgz", + "integrity": "sha512-k1qCzK9FSZc2b7mmjH9EW6MMZTwbrqECF8qK6nCJwt7S6VvH3/lOWBwW/VgvPvb9sbMkNDAPD86uXVrF//UK8A==", + "requires": { + "ws": "^7.3.1" + } + }, + "@sindresorhus/is": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", + "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", + "dev": true + }, + "@szmarczak/http-timer": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", + "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", + "dev": true, + "requires": { + "defer-to-connect": "^1.0.1" + } + }, + "@types/aws-lambda": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-0.0.33.tgz", + "integrity": "sha512-p13MzAb/1ZJK1h0jDhRjdFqlRHC44HAOS7qYuVpn7NnFDv8UdNbRjExfhK69syvI9IoIR4NN4dRGjpVDsN6tEQ==", + "dev": true + }, + "@types/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==", + "dev": true, + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/connect": { + "version": "3.4.33", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.33.tgz", + "integrity": "sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/debug": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-0.0.30.tgz", + "integrity": "sha512-orGL5LXERPYsLov6CWs3Fh6203+dXzJkR7OnddIr2514Hsecwc8xRpzCapshBbKFImCsvS/mk6+FWiN5LyZJAQ==", + "dev": true + }, + "@types/express": { + "version": "4.17.8", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.8.tgz", + "integrity": "sha512-wLhcKh3PMlyA2cNAB9sjM1BntnhPMiM0JOBwPBqttjHev2428MLEB4AYVN+d8s2iyCVZac+o41Pflm/ZH5vLXQ==", + "dev": true, + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "*", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.17.13", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.13.tgz", + "integrity": "sha512-RgDi5a4nuzam073lRGKTUIaL3eF2+H7LJvJ8eUnCI0wA6SNjXc44DCmWNiTLs/AZ7QlsFWZiw/gTG3nSQGL0fA==", + "dev": true, + "requires": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*" + } + }, + "@types/fs-extra": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.2.tgz", + "integrity": "sha512-jp0RI6xfZpi5JL8v7WQwpBEQTq63RqW2kxwTZt+m27LcJqQdPVU1yGnT1ZI4EtCDynQQJtIGyQahkiCGCS7e+A==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/json-schema": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.6.tgz", + "integrity": "sha512-3c+yGKvVP5Y9TYBEibGNR+kLtijnj7mYrXRg+WpFb2X9xm04g/DXYkfg4hmzJQosc9snFNUPkbYIhu+KAm6jJw==", + "dev": true + }, + "@types/mime": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", + "integrity": "sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==", + "dev": true + }, + "@types/node": { + "version": "14.11.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.8.tgz", + "integrity": "sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxcUzsh2P2Pw==", + "dev": true + }, + "@types/qs": { + "version": "6.9.5", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.5.tgz", + "integrity": "sha512-/JHkVHtx/REVG0VVToGRGH2+23hsYLHdyG+GrvoUGlGAd0ErauXDyvHtRI/7H7mzLm+tBCKA7pfcpkQ1lf58iQ==", + "dev": true + }, + "@types/range-parser": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz", + "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==", + "dev": true + }, + "@types/serve-static": { + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.5.tgz", + "integrity": "sha512-6M64P58N+OXjU432WoLLBQxbA0LRGBCRm7aAGQJ+SMC1IMl0dgRVi9EFfoDcS2a7Xogygk/eGN94CfwU9UF7UQ==", + "dev": true, + "requires": { + "@types/express-serve-static-core": "*", + "@types/mime": "*" + } + }, + "@types/ws": { + "version": "7.2.7", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-7.2.7.tgz", + "integrity": "sha512-UUFC/xxqFLP17hTva8/lVT0SybLUrfSD9c+iapKb0fEiC8uoDbA+xuZ3pAN603eW+bY8ebSMLm9jXdIPnD0ZgA==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@typescript-eslint/eslint-plugin": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.4.1.tgz", + "integrity": "sha512-O+8Utz8pb4OmcA+Nfi5THQnQpHSD2sDUNw9AxNHpuYOo326HZTtG8gsfT+EAYuVrFNaLyNb2QnUNkmTRDskuRA==", + "dev": true, + "requires": { + "@typescript-eslint/experimental-utils": "4.4.1", + "@typescript-eslint/scope-manager": "4.4.1", + "debug": "^4.1.1", + "functional-red-black-tree": "^1.0.1", + "regexpp": "^3.0.0", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "dependencies": { + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } + } + }, + "@typescript-eslint/experimental-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.4.1.tgz", + "integrity": "sha512-Nt4EVlb1mqExW9cWhpV6pd1a3DkUbX9DeyYsdoeziKOpIJ04S2KMVDO+SEidsXRH/XHDpbzXykKcMTLdTXH6cQ==", + "dev": true, + "requires": { + "@types/json-schema": "^7.0.3", + "@typescript-eslint/scope-manager": "4.4.1", + "@typescript-eslint/types": "4.4.1", + "@typescript-eslint/typescript-estree": "4.4.1", + "eslint-scope": "^5.0.0", + "eslint-utils": "^2.0.0" + } + }, + "@typescript-eslint/parser": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.4.1.tgz", + "integrity": "sha512-S0fuX5lDku28Au9REYUsV+hdJpW/rNW0gWlc4SXzF/kdrRaAVX9YCxKpziH7djeWT/HFAjLZcnY7NJD8xTeUEg==", + "dev": true, + "requires": { + "@typescript-eslint/scope-manager": "4.4.1", + "@typescript-eslint/types": "4.4.1", + "@typescript-eslint/typescript-estree": "4.4.1", + "debug": "^4.1.1" + } + }, + "@typescript-eslint/scope-manager": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.4.1.tgz", + "integrity": "sha512-2oD/ZqD4Gj41UdFeWZxegH3cVEEH/Z6Bhr/XvwTtGv66737XkR4C9IqEkebCuqArqBJQSj4AgNHHiN1okzD/wQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.4.1", + "@typescript-eslint/visitor-keys": "4.4.1" + } + }, + "@typescript-eslint/types": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.4.1.tgz", + "integrity": "sha512-KNDfH2bCyax5db+KKIZT4rfA8rEk5N0EJ8P0T5AJjo5xrV26UAzaiqoJCxeaibqc0c/IvZxp7v2g3difn2Pn3w==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.4.1.tgz", + "integrity": "sha512-wP/V7ScKzgSdtcY1a0pZYBoCxrCstLrgRQ2O9MmCUZDtmgxCO/TCqOTGRVwpP4/2hVfqMz/Vw1ZYrG8cVxvN3g==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.4.1", + "@typescript-eslint/visitor-keys": "4.4.1", + "debug": "^4.1.1", + "globby": "^11.0.1", + "is-glob": "^4.0.1", + "lodash": "^4.17.15", + "semver": "^7.3.2", + "tsutils": "^3.17.1" + }, + "dependencies": { + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.4.1.tgz", + "integrity": "sha512-H2JMWhLaJNeaylSnMSQFEhT/S/FsJbebQALmoJxMPMxLtlVAMy2uJP/Z543n9IizhjRayLSqoInehCeNW9rWcw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.4.1", + "eslint-visitor-keys": "^2.0.0" + } + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dev": true, + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "acorn": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", + "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "dev": true + }, + "acorn-jsx": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.1.tgz", + "integrity": "sha512-K0Ptm/47OKfQRpNQ2J/oIN/3QYiK6FwW+eJbILhsdxh2WTLdl+30o8aGdTbm5JbffpFFAg/g+zi1E+jvJha5ng==", + "dev": true + }, + "actions-on-google": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/actions-on-google/-/actions-on-google-2.13.0.tgz", + "integrity": "sha512-Nt6nkaAurayTWDbtvP4k++esQvGVmPOy5y2DsBmM2TXrjU/PW8ZBuDw4MDI2RyJE5gMLejbgGHToxx7SY/Gc5A==", + "dev": true, + "requires": { + "@types/aws-lambda": "^0.0.33", + "@types/debug": "^0.0.30", + "@types/express": "~4.17.7", + "@types/express-serve-static-core": "~4.17.7", + "@types/node": "^9.4.6", + "debug": "^3.1.0", + "google-auth-library": "^1.6.1", + "googleapis": "^39.2.0" + }, + "dependencies": { + "@types/node": { + "version": "9.6.59", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.59.tgz", + "integrity": "sha512-TX/dHK9lFrXoMFtHdF3oyEw6EpfYfu+8AZ1zP6Oj3rOiQGbit2rgQlJzvBRx712b9ReaCfkSNPRXYzZDYI4YSw==", + "dev": true + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "agent-base": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", + "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "dev": true, + "requires": { + "es6-promisify": "^5.0.0" + } + }, + "ajv": { + "version": "6.12.3", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", + "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", + "dev": true, + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ansi-align": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", + "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", + "dev": true, + "requires": { + "string-width": "^3.0.0" + } + }, + "ansi-colors": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", + "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "dev": true + }, + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", + "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "array-filter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", + "integrity": "sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=", + "dev": true + }, + "array-flatten": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-2.1.2.tgz", + "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", + "dev": true + }, + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" + }, + "available-typed-arrays": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.2.tgz", + "integrity": "sha512-XWX3OX8Onv97LMk/ftVyBibpGwY5a8SmuxZPzeOxqmuEqUCOM9ZE+uIaD1VNJ5QnvU2UQusvmKbuM1FR8QWGfQ==", + "dev": true, + "requires": { + "array-filter": "^1.0.0" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==", + "dev": true + }, + "axios": { + "version": "0.18.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.1.tgz", + "integrity": "sha512-0BfJq4NSfQXd+SkFdrvFbG7addhYSBA2mQwISr46pD6E5iqkWg02RAs8vyTT/j0RTnoYmeXauBuSv1qKwR179g==", + "dev": true, + "requires": { + "follow-redirects": "1.5.10", + "is-buffer": "^2.0.2" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base64-js": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", + "integrity": "sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g==", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "better-queue": { + "version": "3.8.10", + "resolved": "https://registry.npmjs.org/better-queue/-/better-queue-3.8.10.tgz", + "integrity": "sha512-e3gwNZgDCnNWl0An0Tz6sUjKDV9m6aB+K9Xg//vYeo8+KiH8pWhLFxkawcXhm6FpM//GfD9IQv/kmvWCAVVpKA==", + "dev": true, + "requires": { + "better-queue-memory": "^1.0.1", + "node-eta": "^0.9.0", + "uuid": "^3.0.0" + } + }, + "better-queue-memory": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/better-queue-memory/-/better-queue-memory-1.0.4.tgz", + "integrity": "sha512-SWg5wFIShYffEmJpI6LgbL8/3Dqhku7xI1oEiy6FroP9DbcZlG0ZDjxvPdP9t7hTGW40IpIcC6zVoGT1oxjOuA==", + "dev": true + }, + "bignumber.js": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", + "integrity": "sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA==", + "dev": true + }, + "binary-extensions": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", + "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", + "dev": true + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "bonjour-hap": { + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/bonjour-hap/-/bonjour-hap-3.5.11.tgz", + "integrity": "sha512-pSYWWxjx3t2vh3sMkBMxQ0QaCqFgqWFz9he9U1JSQ6Lvwev5W19J+nBQWFj55dzUOcH0rPtZh/A+k/MvI5etQw==", + "dev": true, + "requires": { + "array-flatten": "^2.1.2", + "deep-equal": "^2.0.2", + "ip": "^1.1.5", + "multicast-dns": "^7.2.2", + "multicast-dns-service-types": "^1.1.0" + } + }, + "boxen": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", + "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", + "dev": true, + "requires": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "requires": { + "fill-range": "^7.0.1" + } + }, + "buffer": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz", + "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=", + "dev": true + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" + }, + "cacheable-request": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", + "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", + "dev": true, + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", + "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", + "dev": true + } + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "chokidar": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.3.tgz", + "integrity": "sha512-DtM3g7juCXQxFVSNPNByEC2+NImtBuxQQvWlHunpJIS5Ocr0lG306cC7FCi7cEA0fzmybPUIl4txBIobk1gGOQ==", + "dev": true, + "requires": { + "anymatch": "~3.1.1", + "braces": "~3.0.2", + "fsevents": "~2.1.2", + "glob-parent": "~5.1.0", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.5.0" + } + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "cli-boxes": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", + "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", + "dev": true + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "configstore": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", + "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", + "dev": true, + "requires": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-random-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", + "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", + "dev": true + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "requires": { + "ms": "^2.1.1" + } + }, + "decimal.js": { + "version": "10.2.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz", + "integrity": "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==" + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "deep-equal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.0.3.tgz", + "integrity": "sha512-Spqdl4H+ky45I9ByyJtXteOm9CaIrPmnIPmOhrkKGNYWeDgCvJ8jNYVCTjChxW4FqGuZnLHADc8EKRMX6+CgvA==", + "dev": true, + "requires": { + "es-abstract": "^1.17.5", + "es-get-iterator": "^1.1.0", + "is-arguments": "^1.0.4", + "is-date-object": "^1.0.2", + "is-regex": "^1.0.5", + "isarray": "^2.0.5", + "object-is": "^1.1.2", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "regexp.prototype.flags": "^1.3.0", + "side-channel": "^1.0.2", + "which-boxed-primitive": "^1.0.1", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.2" + } + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "defer-to-connect": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", + "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", + "dev": true + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "dev": true, + "requires": { + "object-keys": "^1.0.12" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "requires": { + "path-type": "^4.0.0" + } + }, + "dns-packet": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-4.2.0.tgz", + "integrity": "sha512-bn1AKpfkFbm0MIioOMHZ5qJzl2uypdBwI4nYNsqvhjsegBhcKJUlCrMPWLx6JEezRjxZmxhtIz/FkBEur2l8Cw==", + "dev": true, + "requires": { + "ip": "^1.1.5", + "safe-buffer": "^5.1.1" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dot-prop": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", + "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", + "dev": true, + "requires": { + "is-obj": "^2.0.0" + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "enquirer": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", + "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", + "dev": true, + "requires": { + "ansi-colors": "^4.1.1" + } + }, + "es-abstract": { + "version": "1.17.6", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", + "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", + "dev": true, + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.2.0", + "is-regex": "^1.1.0", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimend": "^1.0.1", + "string.prototype.trimstart": "^1.0.1" + } + }, + "es-get-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.0.tgz", + "integrity": "sha512-UfrmHuWQlNMTs35e1ypnvikg6jCz3SK8v8ImvmDsh36fCVUR1MqoFDiyn0/k52C8NqO3YsO8Oe0azeesNuqSsQ==", + "dev": true, + "requires": { + "es-abstract": "^1.17.4", + "has-symbols": "^1.0.1", + "is-arguments": "^1.0.4", + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-string": "^1.0.5", + "isarray": "^2.0.5" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "dev": true, + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "es6-promise": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", + "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", + "dev": true + }, + "es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", + "dev": true, + "requires": { + "es6-promise": "^4.0.3" + } + }, + "escape-goat": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", + "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "eslint": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.11.0.tgz", + "integrity": "sha512-G9+qtYVCHaDi1ZuWzBsOWo2wSwd70TXnU6UHA3cTYHp7gCTXZcpggWFoUVAMRarg68qtPoNfFbzPh+VdOgmwmw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@eslint/eslintrc": "^0.1.3", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.0", + "esquery": "^1.2.0", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.0.0", + "globals": "^12.1.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash": "^4.17.19", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^5.2.3", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "eslint-visitor-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz", + "integrity": "sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==", + "dev": true + }, + "espree": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.0.tgz", + "integrity": "sha512-dksIWsvKCixn1yrEXO8UosNSxaDoSYpq9reEjZSbHLpT5hpaCAKTLBwq0RHtLrIr+c0ByiYzWT8KTMRzoRCNlw==", + "dev": true, + "requires": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.2.0", + "eslint-visitor-keys": "^1.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esquery": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.3.1.tgz", + "integrity": "sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ==", + "dev": true, + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.2.0.tgz", + "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", + "dev": true + } + } + }, + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "dev": true + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-glob": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.4.tgz", + "integrity": "sha512-kr/Oo6PX51265qeuCYsyGypiO5uJFgBS0jksyG7FUeCyQzNwYnzrNIMR1NXfkZXsMYXYLRAHgISHBz8gQcxKHQ==", + "dev": true, + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.0", + "merge2": "^1.3.0", + "micromatch": "^4.0.2", + "picomatch": "^2.2.1" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fast-srp-hap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fast-srp-hap/-/fast-srp-hap-2.0.2.tgz", + "integrity": "sha512-wABhZRrFhlovqJQ1HygOUB4R6WZW2hmlpvVYh2dVCy8BPLabDrB/Tu6XI3B4QfmhtHk8s1OeiFqJHY7FBsphug==" + }, + "fast-text-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", + "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==", + "dev": true + }, + "fastq": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz", + "integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==", + "dev": true, + "requires": { + "reusify": "^1.0.4" + } + }, + "file-entry-cache": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "dev": true, + "requires": { + "flat-cache": "^2.0.1" + } + }, + "fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "flat-cache": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "dev": true, + "requires": { + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" + }, + "dependencies": { + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } + } + }, + "flatted": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.2.tgz", + "integrity": "sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==", + "dev": true + }, + "follow-redirects": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", + "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", + "dev": true, + "requires": { + "debug": "=3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "fs-extra": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz", + "integrity": "sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^1.0.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", + "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "futoin-hkdf": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/futoin-hkdf/-/futoin-hkdf-1.3.2.tgz", + "integrity": "sha512-3EVi3ETTyJg5PSXlxLCaUVVn0pSbDf62L3Gwxne7Uq+d8adOSNWQAad4gg7WToHkcgnCJb3Wlb1P8r4Evj4GPw==" + }, + "gaxios": { + "version": "1.8.4", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-1.8.4.tgz", + "integrity": "sha512-BoENMnu1Gav18HcpV9IleMPZ9exM+AvUjrAOV4Mzs/vfz2Lu/ABv451iEXByKiMPn2M140uul1txXCg83sAENw==", + "dev": true, + "requires": { + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^2.2.1", + "node-fetch": "^2.3.0" + } + }, + "gcp-metadata": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-0.6.3.tgz", + "integrity": "sha512-MSmczZctbz91AxCvqp9GHBoZOSbJKAICV7Ow/AIWSJZRrRchUd5NL1b2P4OfP+4m490BEUPhhARfpHdqCxuCvg==", + "dev": true, + "requires": { + "axios": "^0.18.0", + "extend": "^3.0.1", + "retry-axios": "0.3.2" + } + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", + "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, + "global-dirs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", + "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", + "dev": true, + "requires": { + "ini": "^1.3.5" + } + }, + "globals": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", + "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "dev": true, + "requires": { + "type-fest": "^0.8.1" + } + }, + "globby": { + "version": "11.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz", + "integrity": "sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + } + }, + "google-auth-library": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.6.1.tgz", + "integrity": "sha512-jYiWC8NA9n9OtQM7ANn0Tk464do9yhKEtaJ72pKcaBiEwn4LwcGYIYOfwtfsSm3aur/ed3tlSxbmg24IAT6gAg==", + "dev": true, + "requires": { + "axios": "^0.18.0", + "gcp-metadata": "^0.6.3", + "gtoken": "^2.3.0", + "jws": "^3.1.5", + "lodash.isstring": "^4.0.1", + "lru-cache": "^4.1.3", + "retry-axios": "^0.3.2" + } + }, + "google-p12-pem": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.4.tgz", + "integrity": "sha512-SwLAUJqUfTB2iS+wFfSS/G9p7bt4eWcc2LyfvmUXe7cWp6p3mpxDo6LLI29MXdU6wvPcQ/up298X7GMC5ylAlA==", + "dev": true, + "requires": { + "node-forge": "^0.8.0", + "pify": "^4.0.0" + }, + "dependencies": { + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + } + } + }, + "googleapis": { + "version": "39.2.0", + "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-39.2.0.tgz", + "integrity": "sha512-66X8TG1B33zAt177sG1CoKoYHPP/B66tEpnnSANGCqotMuY5gqSQO8G/0gqHZR2jRgc5CHSSNOJCnpI0SuDxMQ==", + "dev": true, + "requires": { + "google-auth-library": "^3.0.0", + "googleapis-common": "^0.7.0" + }, + "dependencies": { + "gcp-metadata": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-1.0.0.tgz", + "integrity": "sha512-Q6HrgfrCQeEircnNP3rCcEgiDv7eF9+1B+1MMgpE190+/+0mjQR8PxeOaRgxZWmdDAF9EIryHB9g1moPiw1SbQ==", + "dev": true, + "requires": { + "gaxios": "^1.0.2", + "json-bigint": "^0.3.0" + } + }, + "google-auth-library": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-3.1.2.tgz", + "integrity": "sha512-cDQMzTotwyWMrg5jRO7q0A4TL/3GWBgO7I7q5xGKNiiFf9SmGY/OJ1YsLMgI2MVHHsEGyrqYnbnmV1AE+Z6DnQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.0", + "fast-text-encoding": "^1.0.0", + "gaxios": "^1.2.1", + "gcp-metadata": "^1.0.0", + "gtoken": "^2.3.2", + "https-proxy-agent": "^2.2.1", + "jws": "^3.1.5", + "lru-cache": "^5.0.0", + "semver": "^5.5.0" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, + "googleapis-common": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-0.7.2.tgz", + "integrity": "sha512-9DEJIiO4nS7nw0VE1YVkEfXEj8x8MxsuB+yZIpOBULFSN9OIKcUU8UuKgSZFU4lJmRioMfngktrbkMwWJcUhQg==", + "dev": true, + "requires": { + "gaxios": "^1.2.2", + "google-auth-library": "^3.0.0", + "pify": "^4.0.0", + "qs": "^6.5.2", + "url-template": "^2.0.8", + "uuid": "^3.2.1" + }, + "dependencies": { + "gcp-metadata": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-1.0.0.tgz", + "integrity": "sha512-Q6HrgfrCQeEircnNP3rCcEgiDv7eF9+1B+1MMgpE190+/+0mjQR8PxeOaRgxZWmdDAF9EIryHB9g1moPiw1SbQ==", + "dev": true, + "requires": { + "gaxios": "^1.0.2", + "json-bigint": "^0.3.0" + } + }, + "google-auth-library": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-3.1.2.tgz", + "integrity": "sha512-cDQMzTotwyWMrg5jRO7q0A4TL/3GWBgO7I7q5xGKNiiFf9SmGY/OJ1YsLMgI2MVHHsEGyrqYnbnmV1AE+Z6DnQ==", + "dev": true, + "requires": { + "base64-js": "^1.3.0", + "fast-text-encoding": "^1.0.0", + "gaxios": "^1.2.1", + "gcp-metadata": "^1.0.0", + "gtoken": "^2.3.2", + "https-proxy-agent": "^2.2.1", + "jws": "^3.1.5", + "lru-cache": "^5.0.0", + "semver": "^5.5.0" + } + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + } + } + }, + "got": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", + "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", + "dev": true, + "requires": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + } + }, + "graceful-fs": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", + "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==" + }, + "gtoken": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.3.3.tgz", + "integrity": "sha512-EaB49bu/TCoNeQjhCYKI/CurooBKkGxIqFHsWABW0b25fobBYVTMe84A8EBVVZhl8emiUdNypil9huMOTmyAnw==", + "dev": true, + "requires": { + "gaxios": "^1.0.4", + "google-p12-pem": "^1.0.0", + "jws": "^3.1.5", + "mime": "^2.2.0", + "pify": "^4.0.0" + }, + "dependencies": { + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + } + } + }, + "hap-node-client": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/hap-node-client/-/hap-node-client-0.1.5.tgz", + "integrity": "sha512-L7SM11Yj7aQMyOBlTY0I8PMDIh60VVxpjUdca23JwUql8372PHEWk2X04lWCzlr6UGxTDfqQquf6xhLyV2RdgQ==", + "dev": true, + "requires": { + "better-queue": ">=3.8.10", + "bonjour-hap": "^3.5.10", + "buffer": "^5.6.0", + "debug": ">2.6.9", + "extend": ">=3.0.2", + "ip": ">=1.1.5", + "once": ">=1.4.0", + "request": "^2.88.2", + "requestretry": "^4.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "homebridge": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.2.3.tgz", + "integrity": "sha512-i0ERhvEqbry7UPntvdwDevQjdrMORhnZnspoOQI4a0fcvX1M8woffHCJj1E2bBgG+dn2glUWajBtmhqIFIyCKQ==", + "requires": { + "chalk": "^4.1.0", + "commander": "5.1.0", + "hap-nodejs": "~0.8.2", + "node-persist": "^0.0.11", + "qrcode-terminal": "^0.12.0", + "semver": "^7.3.2", + "source-map-support": "^0.5.19" + } + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "hap-nodejs": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/hap-nodejs/-/hap-nodejs-0.8.2.tgz", + "integrity": "sha512-OVy+wtcC3uXl5V0Ba3f4MtOYVOUS5J3kIB69AV4zvlo02kS41d9ZYKE3rvcTce8kj8ih0YBpYVWRL4a7uHEbjw==", + "requires": { + "@homebridge/ciao": "~1.0.5", + "debug": "^4.1.1", + "decimal.js": "^10.2.0", + "fast-srp-hap": "2.0.2", + "futoin-hkdf": "~1.3.2", + "ip": "^1.1.3", + "node-persist": "^0.0.11", + "tweetnacl": "^1.0.3" + }, + "dependencies": { + "tweetnacl": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.3.tgz", + "integrity": "sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==" + } + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "dev": true, + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==", + "dev": true + }, + "has-yarn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", + "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", + "dev": true + }, + "homebridge": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/homebridge/-/homebridge-1.2.3.tgz", + "integrity": "sha512-i0ERhvEqbry7UPntvdwDevQjdrMORhnZnspoOQI4a0fcvX1M8woffHCJj1E2bBgG+dn2glUWajBtmhqIFIyCKQ==", + "dev": true, + "requires": { + "chalk": "^4.1.0", + "commander": "5.1.0", + "hap-nodejs": "~0.8.2", + "node-persist": "^0.0.11", + "qrcode-terminal": "^0.12.0", + "semver": "^7.3.2", + "source-map-support": "^0.5.19" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "commander": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz", + "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "semver": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", + "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "http-cache-semantics": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", + "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "https-proxy-agent": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz", + "integrity": "sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==", + "dev": true, + "requires": { + "agent-base": "^4.3.0", + "debug": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "ieee754": { + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", + "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", + "dev": true + }, + "ignore": { + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", + "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", + "dev": true + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "import-fresh": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=" + }, + "is-arguments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.0.4.tgz", + "integrity": "sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA==", + "dev": true + }, + "is-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.0.tgz", + "integrity": "sha512-t5mGUXC/xRheCK431ylNiSkGGpBp8bHENBcENTkDT6ppwPzEVxNGZRvgvmOEfbWkFhA7D2GEuE2mmQTr78sl2g==", + "dev": true + }, + "is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.1.tgz", + "integrity": "sha512-TqZuVwa/sppcrhUCAYkGBk7w0yxfQQnxq28fjkO53tnK9FQXmdwz2JS5+GjsWQ6RByES1K40nI+yDic5c9/aAQ==", + "dev": true + }, + "is-buffer": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.4.tgz", + "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==", + "dev": true + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==", + "dev": true + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "is-date-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "is-glob": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", + "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-installed-globally": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", + "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", + "dev": true, + "requires": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + } + }, + "is-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz", + "integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==", + "dev": true + }, + "is-npm": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", + "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-number-object": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.4.tgz", + "integrity": "sha512-zohwelOAur+5uXtk8O3GPQ1eAcu4ZX3UwxQhUlfFFMNpUd83gXgjbhJh6HmB6LUNV/ieOLQuDwJO3dWJosUeMw==", + "dev": true + }, + "is-obj": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", + "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", + "dev": true + }, + "is-path-inside": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", + "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==", + "dev": true + }, + "is-regex": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", + "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-set": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.1.tgz", + "integrity": "sha512-eJEzOtVyenDs1TMzSQ3kU3K+E0GUS9sno+F0OBT97xsgcJsF9nXMBtkT9/kut5JEpM7oL7X/0qxR17K3mcwIAA==", + "dev": true + }, + "is-string": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.5.tgz", + "integrity": "sha512-buY6VNRjhQMiF1qWDouloZlQbRhDPCebwxSjxMjxgemYT46YMd2NR0/H+fBhEfWX4A/w9TBJ+ol+okqJKFE6vQ==", + "dev": true + }, + "is-symbol": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "dev": true, + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-typed-array": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.3.tgz", + "integrity": "sha512-BSYUBOK/HJibQ30wWkWold5txYwMUXQct9YHAQJr8fSwvZoiglcqB0pd7vEN23+Tsi9IUEjztdOSzl4qLVYGTQ==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.0", + "es-abstract": "^1.17.4", + "foreach": "^2.0.5", + "has-symbols": "^1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-weakmap": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.1.tgz", + "integrity": "sha512-NSBR4kH5oVj1Uwvv970ruUkCV7O1mzgVFO4/rev2cLRda9Tm9HrL70ZPut4rOHgY0FNrUu9BCbXA2sdQ+x0chA==", + "dev": true + }, + "is-weakset": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.1.tgz", + "integrity": "sha512-pi4vhbhVHGLxohUw7PhGsueT4vRGFoXhP7+RGN0jKIv9+8PWYCQTqtADngrxOm2g46hoH0+g8uZZBzMrvVGDmw==", + "dev": true + }, + "is-yarn-global": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", + "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", + "dev": true + }, + "isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.0.tgz", + "integrity": "sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "json-bigint": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.1.tgz", + "integrity": "sha512-DGWnSzmusIreWlEupsUelHrhwmPPE+FiQvg+drKfk2p+bdEYa5mp4PJ8JsCWqae0M2jQNb0HPvnwvf1qOTThzQ==", + "dev": true, + "requires": { + "bignumber.js": "^9.0.0" + } + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "jsonfile": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", + "integrity": "sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^1.0.0" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "dev": true, + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "dev": true, + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "keyv": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", + "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, + "latest-version": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", + "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", + "dev": true, + "requires": { + "package-json": "^6.3.0" + } + }, + "levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "dev": true + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=", + "dev": true + }, + "lowercase-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", + "dev": true + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true + }, + "micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.0.5" + } + }, + "mime": { + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", + "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==", + "dev": true + }, + "mime-db": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==", + "dev": true + }, + "mime-types": { + "version": "2.1.27", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", + "dev": true, + "requires": { + "mime-db": "1.44.0" + } + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "requires": { + "minimist": "^1.2.5" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "multicast-dns": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-7.2.2.tgz", + "integrity": "sha512-XqSMeO8EWV/nOXOpPV8ztIpNweVfE1dSpz6SQvDPp71HD74lMXjt4m/mWB1YBMG0kHtOodxRWc5WOb/UNN1A5g==", + "dev": true, + "requires": { + "dns-packet": "^4.0.0", + "thunky": "^1.0.2" + } + }, + "multicast-dns-service-types": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/multicast-dns-service-types/-/multicast-dns-service-types-1.1.0.tgz", + "integrity": "sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "node-eta": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/node-eta/-/node-eta-0.9.0.tgz", + "integrity": "sha1-n7CwmbzSoCGUDmA8ZCVNwAPZp6g=", + "dev": true + }, + "node-fetch": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", + "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==", + "dev": true + }, + "node-forge": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.8.5.tgz", + "integrity": "sha512-vFMQIWt+J/7FLNyKouZ9TazT74PRV3wgv9UT4cRjC8BffxFbKXkgIWR42URCPSnHm/QDz6BOlb2Q0U4+VQT67Q==", + "dev": true + }, + "node-persist": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/node-persist/-/node-persist-0.0.11.tgz", + "integrity": "sha1-1m66Pr72IPB5Uw+nsTB2qQZmWHQ=", + "requires": { + "mkdirp": "~0.5.1", + "q": "~1.1.1" + } + }, + "nodemon": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.5.tgz", + "integrity": "sha512-6/jqtZvJdk092pVnD2AIH19KQ9GQZAKOZVy/yT1ueL6aoV+Ix7a1lVZStXzvEh0fP4zE41DDWlkVoHjR6WlozA==", + "dev": true, + "requires": { + "chokidar": "^3.2.2", + "debug": "^3.2.6", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.0.4", + "pstree.remy": "^1.1.7", + "semver": "^5.7.1", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.3", + "update-notifier": "^4.1.0" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "normalize-url": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", + "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-inspect": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", + "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==", + "dev": true + }, + "object-is": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.2.tgz", + "integrity": "sha512-5lHCz+0uufF6wZ7CRFWJN3hp8Jqblpgve06U5CMQ3f//6iDjPr2PEo9MWCjEssDsa+UZEL4PkFpr+BMop6aKzQ==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "optionator": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", + "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", + "dev": true, + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "p-cancelable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", + "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", + "dev": true + }, + "package-json": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", + "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "dev": true, + "requires": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "dev": true + }, + "prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true + }, + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "dev": true + }, + "pstree.remy": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true + }, + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "pupa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", + "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", + "dev": true, + "requires": { + "escape-goat": "^2.0.0" + } + }, + "q": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/q/-/q-1.1.2.tgz", + "integrity": "sha1-Y1fikSBnAdmfGXq4TlforRlvKok=" + }, + "qrcode-terminal": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.12.0.tgz", + "integrity": "sha512-EXtzRZmC+YGmGlDFbXKxQiMZNwCLEO6BANKXG4iCtSIM0yqc/pappSx3RIKr4r0uh5JsBckOXeKrB3Iz7mdQpQ==" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + } + }, + "readdirp": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", + "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", + "dev": true, + "requires": { + "picomatch": "^2.2.1" + } + }, + "regexp.prototype.flags": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz", + "integrity": "sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.0-next.1" + } + }, + "regexpp": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.1.0.tgz", + "integrity": "sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==", + "dev": true + }, + "registry-auth-token": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz", + "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==", + "dev": true, + "requires": { + "rc": "^1.2.8" + } + }, + "registry-url": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", + "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", + "dev": true, + "requires": { + "rc": "^1.2.8" + } + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "request-promise": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.6.tgz", + "integrity": "sha512-HCHI3DJJUakkOr8fNoCc73E5nU5bqITjOYFMDrKHYOXWXrgD/SBaC7LjwuPymUprRyuF06UK7hd/lMHkmUXglQ==", + "dev": true, + "requires": { + "bluebird": "^3.5.0", + "request-promise-core": "1.1.4", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + } + }, + "request-promise-core": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", + "dev": true, + "requires": { + "lodash": "^4.17.19" + } + }, + "requestretry": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-4.1.1.tgz", + "integrity": "sha512-sV2lkWitASDXpIK+m0scC7dHBkW42EKj5iao6Cp8GCXsXY7qS4Q/min6PP5YBuqgV9W38lsA7LUhEkOezl1/Og==", + "dev": true, + "requires": { + "extend": "^3.0.2", + "lodash": "^4.17.15", + "when": "^3.7.7" + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "requires": { + "lowercase-keys": "^1.0.0" + } + }, + "retry-axios": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-0.3.2.tgz", + "integrity": "sha512-jp4YlI0qyDFfXiXGhkCOliBN1G7fRH03Nqy8YdShzGqbY5/9S2x/IR6C88ls2DFkbWuL3ASkP7QD3pVrNpPgwQ==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "dev": true + }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "run-parallel": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz", + "integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==", + "dev": true + }, + "rxjs": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.3.tgz", + "integrity": "sha512-trsQc+xYYXZ3urjOiJOuCOa5N3jAZ3eiSpQB5hIT8zGlL2QfnHLJ2r7GMkBGuIausdJN1OneaI6gQlsqNHHmZQ==", + "requires": { + "tslib": "^1.9.0" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "semver-diff": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", + "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", + "dev": true, + "requires": { + "semver": "^6.3.0" + }, + "dependencies": { + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "dev": true + } + } + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "side-channel": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.2.tgz", + "integrity": "sha512-7rL9YlPHg7Ancea1S96Pa8/QWb4BtXL/TZvS6B8XFetGBeuhAsfmUspK6DokBeZ64+Kj9TCNRD/30pVz1BvQNA==", + "dev": true, + "requires": { + "es-abstract": "^1.17.0-next.1", + "object-inspect": "^1.7.0" + } + }, + "signal-exit": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", + "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "slice-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "string.prototype.trimend": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", + "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string.prototype.trimstart": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", + "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "table": { + "version": "5.4.6", + "resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz", + "integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==", + "dev": true, + "requires": { + "ajv": "^6.10.2", + "lodash": "^4.17.14", + "slice-ansi": "^2.1.0", + "string-width": "^3.0.0" + } + }, + "term-size": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz", + "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==", + "dev": true + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "thunky": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", + "integrity": "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA==", + "dev": true + }, + "to-readable-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", + "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "touch": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", + "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", + "dev": true, + "requires": { + "nopt": "~1.0.10" + } + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "ts-node": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-9.0.0.tgz", + "integrity": "sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==", + "dev": true, + "requires": { + "arg": "^4.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + } + }, + "tslib": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", + "integrity": "sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q==" + }, + "tsutils": { + "version": "3.17.1", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz", + "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", + "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", + "dev": true, + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typescript": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", + "integrity": "sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==", + "dev": true + }, + "undefsafe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", + "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", + "dev": true, + "requires": { + "debug": "^2.2.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "unique-string": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", + "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", + "dev": true, + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "universalify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz", + "integrity": "sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug==" + }, + "update-notifier": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.3.tgz", + "integrity": "sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A==", + "dev": true, + "requires": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "requires": { + "prepend-http": "^2.0.0" + } + }, + "url-template": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz", + "integrity": "sha1-/FZaPMy/93MMd19WQflVV5FDnyE=", + "dev": true + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + }, + "v8-compile-cache": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.1.1.tgz", + "integrity": "sha512-8OQ9CL+VWyt3JStj7HX7/ciTL2V3Rl1Wf5OL+SNTm0yK1KvtReVulksyeRnCANHHuUxHlQig+JJDlUhBt1NQDQ==", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "when": { + "version": "3.7.8", + "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", + "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", + "dev": true + }, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.1.tgz", + "integrity": "sha512-7BT4TwISdDGBgaemWU0N0OU7FeAEJ9Oo2P1PHRm/FCWoEi2VLWC9b6xvxAA3C/NMpxg3HXVgi0sMmGbNUbNepQ==", + "dev": true, + "requires": { + "is-bigint": "^1.0.0", + "is-boolean-object": "^1.0.0", + "is-number-object": "^1.0.3", + "is-string": "^1.0.4", + "is-symbol": "^1.0.2" + } + }, + "which-collection": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz", + "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==", + "dev": true, + "requires": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + } + }, + "which-typed-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.2.tgz", + "integrity": "sha512-KT6okrd1tE6JdZAy3o2VhMoYPh3+J6EMZLyrxBQsZflI1QCZIxMrIYLkosd8Twf+YfknVIHmYQPgJt238p8dnQ==", + "dev": true, + "requires": { + "available-typed-arrays": "^1.0.2", + "es-abstract": "^1.17.5", + "foreach": "^2.0.5", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.1", + "is-typed-array": "^1.1.3" + } + }, + "widest-line": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", + "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", + "dev": true, + "requires": { + "string-width": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "string-width": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + } + } + }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", + "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "write-file-atomic": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "ws": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", + "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==" + }, + "xdg-basedir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", + "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..db96845 --- /dev/null +++ b/package.json @@ -0,0 +1,73 @@ +{ + "name": "homebridge-gsh", + "displayName": "Homebridge Google Smart Home", + "version": "2.0.1", + "description": "Google Smart Home", + "license": "GPL-3.0", + "author": "oznu ", + "repository": { + "type": "git", + "url": "git://github.com/oznu/homebridge-gsh.git" + }, + "bugs": { + "url": "https://github.com/oznu/homebridge-gsh/issues" + }, + "main": "dist/index.js", + "scripts": { + "watch": "nodemon", + "build": "tsc", + "lint": "eslint --ext .ts --max-warnings=0 .", + "prepublishOnly": "npm run build" + }, + "engines": { + "node": ">=10.17.0", + "homebridge": ">=1.0.0" + }, + "funding": [ + { + "type": "paypal", + "url": "https://paypal.me/oznu" + } + ], + "keywords": [ + "homebridge-plugin", + "google smart home", + "google-smart-home", + "google home", + "google-home", + "google assistant", + "google-assistant", + "google", + "android", + "homebridge", + "gsh" + ], + "bundledDependencies": [ + "@oznu/ws-connect", + "fs-extra", + "hap-node-client", + "rxjs" + ], + "dependencies": { + "@oznu/ws-connect": "^2.2.0", + "fs-extra": "^9.0.1", + "rxjs": "^6.6.3" + }, + "devDependencies": { + "@types/fs-extra": "^9.0.2", + "@types/node": "^14.11.8", + "@types/ws": "^7.2.7", + "@typescript-eslint/eslint-plugin": "^4.4.1", + "@typescript-eslint/parser": "^4.4.1", + "actions-on-google": "^2.13.0", + "eslint": "^7.11.0", + "hap-node-client": "^0.1.5", + "hap-nodejs": "^0.8.2", + "homebridge": "^1.2.3", + "nodemon": "^2.0.5", + "request-promise": "^4.2.6", + "rimraf": "^3.0.2", + "ts-node": "^9.0.0", + "typescript": "^4.0.3" + } +} diff --git a/scripts/gen-hap-types.ts b/scripts/gen-hap-types.ts new file mode 100644 index 0000000..4c9160a --- /dev/null +++ b/scripts/gen-hap-types.ts @@ -0,0 +1,53 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { Characteristic, Service } from 'hap-nodejs'; + +/** Generate Service Types */ + +let ServicesTypes = [ + 'export const ServicesTypes = {', +] as any; + +let Services = [ + 'export const Service = {', +] as any; + +for (const [name, value] of Object.entries(Service)) { + if (value.UUID) { + ServicesTypes.push(` '${value.UUID}': '${name}',`); + Services.push(` ${name}: '${value.UUID}',`); + } +} + +ServicesTypes.push('};\n\n'); +ServicesTypes = ServicesTypes.join('\n'); + +Services.push('};\n\n'); +Services = Services.join('\n'); + +/** Generate Characteristic Types */ + +let CharacteristicsTypes = [ + 'export const CharacteristicsTypes = {', +] as any; + +let Characteristics = [ + 'export const Characteristic = {', +] as any; + +for (const [name, value] of Object.entries(Characteristic)) { + if (value.UUID) { + CharacteristicsTypes.push(` '${value.UUID}': '${name}',`); + Characteristics.push(` ${name}: '${value.UUID}',`); + } +} + +CharacteristicsTypes.push('};\n\n'); +CharacteristicsTypes = CharacteristicsTypes.join('\n'); + +Characteristics.push('};\n'); +Characteristics = Characteristics.join('\n'); + +const out = '/* This file is automatically generated */\n\n' + ServicesTypes + Services + CharacteristicsTypes + Characteristics; + +fs.writeFileSync(path.resolve(__dirname, '../src/hap-types.ts'), out, 'utf8'); diff --git a/src/dev.ts b/src/dev.ts new file mode 100644 index 0000000..d403717 --- /dev/null +++ b/src/dev.ts @@ -0,0 +1,49 @@ +/** + * This is used to run the plugin during development + */ + +import * as fs from 'fs-extra'; +import * as os from 'os'; +import * as path from 'path'; +import * as chalk from 'chalk'; + +import { Plugin } from './main'; + +const configPath = path.resolve(os.homedir(), '.homebridge', 'config.json'); +const homebridgeConfig = fs.readJsonSync(configPath); + +const pluginConfig = homebridgeConfig.platforms.find(x => x.platform === 'google-smarthome'); +// pluginConfig.debug = true; + +class Log { + prefix: string; + + constructor(prefix) { + this.prefix = prefix; + } + + debug(msg) { + this.log('DEBUG', msg); + } + + info(msg) { + this.log('INFO', msg); + } + + warn(msg) { + this.log('WARN', msg); + } + + error(msg) { + this.log('ERROR', msg); + } + + log(level, msg) { + const date = new Date(); + const output = `[${level}] [${date.toLocaleString()}] [${this.prefix}]`; + // eslint-disable-next-line no-console + console.log(output, msg); + } +} + +new Plugin(new Log('Google Smart Home'), pluginConfig, homebridgeConfig); \ No newline at end of file diff --git a/src/hap-types.ts b/src/hap-types.ts new file mode 100644 index 0000000..8dd562d --- /dev/null +++ b/src/hap-types.ts @@ -0,0 +1,592 @@ +/* This file is automatically generated */ + +export const ServicesTypes = { + '000000DA-0000-1000-8000-0026BB765291': 'AccessControl', + '0000003E-0000-1000-8000-0026BB765291': 'AccessoryInformation', + '000000BB-0000-1000-8000-0026BB765291': 'AirPurifier', + '0000008D-0000-1000-8000-0026BB765291': 'AirQualitySensor', + '00000096-0000-1000-8000-0026BB765291': 'BatteryService', + '00000110-0000-1000-8000-0026BB765291': 'CameraRTPStreamManagement', + '00000097-0000-1000-8000-0026BB765291': 'CarbonDioxideSensor', + '0000007F-0000-1000-8000-0026BB765291': 'CarbonMonoxideSensor', + '00000080-0000-1000-8000-0026BB765291': 'ContactSensor', + '00000081-0000-1000-8000-0026BB765291': 'Door', + '00000121-0000-1000-8000-0026BB765291': 'Doorbell', + '00000040-0000-1000-8000-0026BB765291': 'Fan', + '000000B7-0000-1000-8000-0026BB765291': 'Fanv2', + '000000BA-0000-1000-8000-0026BB765291': 'FilterMaintenance', + '000000D7-0000-1000-8000-0026BB765291': 'Faucet', + '00000041-0000-1000-8000-0026BB765291': 'GarageDoorOpener', + '000000BC-0000-1000-8000-0026BB765291': 'HeaterCooler', + '000000BD-0000-1000-8000-0026BB765291': 'HumidifierDehumidifier', + '00000082-0000-1000-8000-0026BB765291': 'HumiditySensor', + '000000CF-0000-1000-8000-0026BB765291': 'IrrigationSystem', + '00000083-0000-1000-8000-0026BB765291': 'LeakSensor', + '00000084-0000-1000-8000-0026BB765291': 'LightSensor', + '00000043-0000-1000-8000-0026BB765291': 'Lightbulb', + '00000044-0000-1000-8000-0026BB765291': 'LockManagement', + '00000045-0000-1000-8000-0026BB765291': 'LockMechanism', + '00000112-0000-1000-8000-0026BB765291': 'Microphone', + '00000085-0000-1000-8000-0026BB765291': 'MotionSensor', + '00000086-0000-1000-8000-0026BB765291': 'OccupancySensor', + '00000047-0000-1000-8000-0026BB765291': 'Outlet', + '0000007E-0000-1000-8000-0026BB765291': 'SecuritySystem', + '000000CC-0000-1000-8000-0026BB765291': 'ServiceLabel', + '000000B9-0000-1000-8000-0026BB765291': 'Slat', + '00000087-0000-1000-8000-0026BB765291': 'SmokeSensor', + '00000228-0000-1000-8000-0026BB765291': 'SmartSpeaker', + '00000113-0000-1000-8000-0026BB765291': 'Speaker', + '00000089-0000-1000-8000-0026BB765291': 'StatelessProgrammableSwitch', + '00000049-0000-1000-8000-0026BB765291': 'Switch', + '0000008A-0000-1000-8000-0026BB765291': 'TemperatureSensor', + '0000004A-0000-1000-8000-0026BB765291': 'Thermostat', + '000000D0-0000-1000-8000-0026BB765291': 'Valve', + '0000008B-0000-1000-8000-0026BB765291': 'Window', + '0000008C-0000-1000-8000-0026BB765291': 'WindowCovering', + '0000021A-0000-1000-8000-0026BB765291': 'CameraOperatingMode', + '00000204-0000-1000-8000-0026BB765291': 'CameraEventRecordingManagement', + '0000020A-0000-1000-8000-0026BB765291': 'WiFiRouter', + '0000020F-0000-1000-8000-0026BB765291': 'WiFiSatellite', + '00000221-0000-1000-8000-0026BB765291': 'PowerManagement', + '00000203-0000-1000-8000-0026BB765291': 'TransferTransportManagement', + '00000203-0000-1000-8000-00000239': 'AccessoryRuntimeInformation', + '00000203-0000-1000-8000-00000237': 'Diagnostics', + '00000203-0000-1000-8000-0000022A': 'WiFiTransport', + '00000111-0000-1000-8000-0026BB765291': 'CameraControl', + '00000088-0000-1000-8000-0026BB765291': 'StatefulProgrammableSwitch', + '000000A1-0000-1000-8000-0026BB765291': 'BridgeConfiguration', + '00000062-0000-1000-8000-0026BB765291': 'BridgingState', + '00000055-0000-1000-8000-0026BB765291': 'Pairing', + '000000A2-0000-1000-8000-0026BB765291': 'ProtocolInformation', + '0000005A-0000-1000-8000-0026BB765291': 'Relay', + '00000099-0000-1000-8000-0026BB765291': 'TimeInformation', + '00000056-0000-1000-8000-0026BB765291': 'TunneledBTLEAccessoryService', + '000000D8-0000-1000-8000-0026BB765291': 'Television', + '000000D9-0000-1000-8000-0026BB765291': 'InputSource', + '00000122-0000-1000-8000-0026BB765291': 'TargetControlManagement', + '00000125-0000-1000-8000-0026BB765291': 'TargetControl', + '00000127-0000-1000-8000-0026BB765291': 'AudioStreamManagement', + '00000133-0000-1000-8000-0026BB765291': 'Siri', + '00000129-0000-1000-8000-0026BB765291': 'DataStreamTransportManagement', +}; + +export const Service = { + AccessControl: '000000DA-0000-1000-8000-0026BB765291', + AccessoryInformation: '0000003E-0000-1000-8000-0026BB765291', + AirPurifier: '000000BB-0000-1000-8000-0026BB765291', + AirQualitySensor: '0000008D-0000-1000-8000-0026BB765291', + BatteryService: '00000096-0000-1000-8000-0026BB765291', + CameraRTPStreamManagement: '00000110-0000-1000-8000-0026BB765291', + CarbonDioxideSensor: '00000097-0000-1000-8000-0026BB765291', + CarbonMonoxideSensor: '0000007F-0000-1000-8000-0026BB765291', + ContactSensor: '00000080-0000-1000-8000-0026BB765291', + Door: '00000081-0000-1000-8000-0026BB765291', + Doorbell: '00000121-0000-1000-8000-0026BB765291', + Fan: '00000040-0000-1000-8000-0026BB765291', + Fanv2: '000000B7-0000-1000-8000-0026BB765291', + FilterMaintenance: '000000BA-0000-1000-8000-0026BB765291', + Faucet: '000000D7-0000-1000-8000-0026BB765291', + GarageDoorOpener: '00000041-0000-1000-8000-0026BB765291', + HeaterCooler: '000000BC-0000-1000-8000-0026BB765291', + HumidifierDehumidifier: '000000BD-0000-1000-8000-0026BB765291', + HumiditySensor: '00000082-0000-1000-8000-0026BB765291', + IrrigationSystem: '000000CF-0000-1000-8000-0026BB765291', + LeakSensor: '00000083-0000-1000-8000-0026BB765291', + LightSensor: '00000084-0000-1000-8000-0026BB765291', + Lightbulb: '00000043-0000-1000-8000-0026BB765291', + LockManagement: '00000044-0000-1000-8000-0026BB765291', + LockMechanism: '00000045-0000-1000-8000-0026BB765291', + Microphone: '00000112-0000-1000-8000-0026BB765291', + MotionSensor: '00000085-0000-1000-8000-0026BB765291', + OccupancySensor: '00000086-0000-1000-8000-0026BB765291', + Outlet: '00000047-0000-1000-8000-0026BB765291', + SecuritySystem: '0000007E-0000-1000-8000-0026BB765291', + ServiceLabel: '000000CC-0000-1000-8000-0026BB765291', + Slat: '000000B9-0000-1000-8000-0026BB765291', + SmokeSensor: '00000087-0000-1000-8000-0026BB765291', + SmartSpeaker: '00000228-0000-1000-8000-0026BB765291', + Speaker: '00000113-0000-1000-8000-0026BB765291', + StatelessProgrammableSwitch: '00000089-0000-1000-8000-0026BB765291', + Switch: '00000049-0000-1000-8000-0026BB765291', + TemperatureSensor: '0000008A-0000-1000-8000-0026BB765291', + Thermostat: '0000004A-0000-1000-8000-0026BB765291', + Valve: '000000D0-0000-1000-8000-0026BB765291', + Window: '0000008B-0000-1000-8000-0026BB765291', + WindowCovering: '0000008C-0000-1000-8000-0026BB765291', + CameraOperatingMode: '0000021A-0000-1000-8000-0026BB765291', + CameraEventRecordingManagement: '00000204-0000-1000-8000-0026BB765291', + WiFiRouter: '0000020A-0000-1000-8000-0026BB765291', + WiFiSatellite: '0000020F-0000-1000-8000-0026BB765291', + PowerManagement: '00000221-0000-1000-8000-0026BB765291', + TransferTransportManagement: '00000203-0000-1000-8000-0026BB765291', + AccessoryRuntimeInformation: '00000203-0000-1000-8000-00000239', + Diagnostics: '00000203-0000-1000-8000-00000237', + WiFiTransport: '00000203-0000-1000-8000-0000022A', + CameraControl: '00000111-0000-1000-8000-0026BB765291', + StatefulProgrammableSwitch: '00000088-0000-1000-8000-0026BB765291', + BridgeConfiguration: '000000A1-0000-1000-8000-0026BB765291', + BridgingState: '00000062-0000-1000-8000-0026BB765291', + Pairing: '00000055-0000-1000-8000-0026BB765291', + ProtocolInformation: '000000A2-0000-1000-8000-0026BB765291', + Relay: '0000005A-0000-1000-8000-0026BB765291', + TimeInformation: '00000099-0000-1000-8000-0026BB765291', + TunneledBTLEAccessoryService: '00000056-0000-1000-8000-0026BB765291', + Television: '000000D8-0000-1000-8000-0026BB765291', + InputSource: '000000D9-0000-1000-8000-0026BB765291', + TelevisionSpeaker: '00000113-0000-1000-8000-0026BB765291', + TargetControlManagement: '00000122-0000-1000-8000-0026BB765291', + TargetControl: '00000125-0000-1000-8000-0026BB765291', + AudioStreamManagement: '00000127-0000-1000-8000-0026BB765291', + Siri: '00000133-0000-1000-8000-0026BB765291', + DataStreamTransportManagement: '00000129-0000-1000-8000-0026BB765291', +}; + +export const CharacteristicsTypes = { + '000000E5-0000-1000-8000-0026BB765291': 'AccessControlLevel', + '000000A6-0000-1000-8000-0026BB765291': 'AccessoryFlags', + '00000220-0000-1000-8000-0026BB765291': 'ProductData', + '000000B0-0000-1000-8000-0026BB765291': 'Active', + '00000001-0000-1000-8000-0026BB765291': 'AdministratorOnlyAccess', + '00000064-0000-1000-8000-0026BB765291': 'AirParticulateDensity', + '00000065-0000-1000-8000-0026BB765291': 'AirParticulateSize', + '00000095-0000-1000-8000-0026BB765291': 'AirQuality', + '00000005-0000-1000-8000-0026BB765291': 'AudioFeedback', + '00000068-0000-1000-8000-0026BB765291': 'BatteryLevel', + '00000008-0000-1000-8000-0026BB765291': 'Brightness', + '00000092-0000-1000-8000-0026BB765291': 'CarbonDioxideDetected', + '00000093-0000-1000-8000-0026BB765291': 'CarbonDioxideLevel', + '00000094-0000-1000-8000-0026BB765291': 'CarbonDioxidePeakLevel', + '00000069-0000-1000-8000-0026BB765291': 'CarbonMonoxideDetected', + '00000090-0000-1000-8000-0026BB765291': 'CarbonMonoxideLevel', + '00000091-0000-1000-8000-0026BB765291': 'CarbonMonoxidePeakLevel', + '0000008F-0000-1000-8000-0026BB765291': 'ChargingState', + '000000CE-0000-1000-8000-0026BB765291': 'ColorTemperature', + '0000006A-0000-1000-8000-0026BB765291': 'ContactSensorState', + '0000000D-0000-1000-8000-0026BB765291': 'CoolingThresholdTemperature', + '000000A9-0000-1000-8000-0026BB765291': 'CurrentAirPurifierState', + '0000006B-0000-1000-8000-0026BB765291': 'CurrentAmbientLightLevel', + '0000000E-0000-1000-8000-0026BB765291': 'CurrentDoorState', + '000000AF-0000-1000-8000-0026BB765291': 'CurrentFanState', + '000000B1-0000-1000-8000-0026BB765291': 'CurrentHeaterCoolerState', + '0000000F-0000-1000-8000-0026BB765291': 'CurrentHeatingCoolingState', + '0000006C-0000-1000-8000-0026BB765291': 'CurrentHorizontalTiltAngle', + '000000B3-0000-1000-8000-0026BB765291': 'CurrentHumidifierDehumidifierState', + '0000006D-0000-1000-8000-0026BB765291': 'CurrentPosition', + '00000010-0000-1000-8000-0026BB765291': 'CurrentRelativeHumidity', + '000000AA-0000-1000-8000-0026BB765291': 'CurrentSlatState', + '00000011-0000-1000-8000-0026BB765291': 'CurrentTemperature', + '000000C1-0000-1000-8000-0026BB765291': 'CurrentTiltAngle', + '0000006E-0000-1000-8000-0026BB765291': 'CurrentVerticalTiltAngle', + '0000011D-0000-1000-8000-0026BB765291': 'DigitalZoom', + '000000AC-0000-1000-8000-0026BB765291': 'FilterChangeIndication', + '000000AB-0000-1000-8000-0026BB765291': 'FilterLifeLevel', + '00000052-0000-1000-8000-0026BB765291': 'FirmwareRevision', + '00000053-0000-1000-8000-0026BB765291': 'HardwareRevision', + '00000012-0000-1000-8000-0026BB765291': 'HeatingThresholdTemperature', + '0000006F-0000-1000-8000-0026BB765291': 'HoldPosition', + '00000013-0000-1000-8000-0026BB765291': 'Hue', + '00000014-0000-1000-8000-0026BB765291': 'Identify', + '0000011F-0000-1000-8000-0026BB765291': 'ImageMirroring', + '0000011E-0000-1000-8000-0026BB765291': 'ImageRotation', + '000000D2-0000-1000-8000-0026BB765291': 'InUse', + '000000D6-0000-1000-8000-0026BB765291': 'IsConfigured', + '00000070-0000-1000-8000-0026BB765291': 'LeakDetected', + '00000019-0000-1000-8000-0026BB765291': 'LockControlPoint', + '0000001D-0000-1000-8000-0026BB765291': 'LockCurrentState', + '0000001C-0000-1000-8000-0026BB765291': 'LockLastKnownAction', + '0000001A-0000-1000-8000-0026BB765291': 'LockManagementAutoSecurityTimeout', + '000000A7-0000-1000-8000-0026BB765291': 'LockPhysicalControls', + '0000001E-0000-1000-8000-0026BB765291': 'LockTargetState', + '0000001F-0000-1000-8000-0026BB765291': 'Logs', + '00000020-0000-1000-8000-0026BB765291': 'Manufacturer', + '00000021-0000-1000-8000-0026BB765291': 'Model', + '00000022-0000-1000-8000-0026BB765291': 'MotionDetected', + '0000011A-0000-1000-8000-0026BB765291': 'Mute', + '00000023-0000-1000-8000-0026BB765291': 'Name', + '0000011B-0000-1000-8000-0026BB765291': 'NightVision', + '000000C4-0000-1000-8000-0026BB765291': 'NitrogenDioxideDensity', + '00000024-0000-1000-8000-0026BB765291': 'ObstructionDetected', + '00000071-0000-1000-8000-0026BB765291': 'OccupancyDetected', + '00000025-0000-1000-8000-0026BB765291': 'On', + '0000011C-0000-1000-8000-0026BB765291': 'OpticalZoom', + '00000026-0000-1000-8000-0026BB765291': 'OutletInUse', + '000000C3-0000-1000-8000-0026BB765291': 'OzoneDensity', + '0000004C-0000-1000-8000-0026BB765291': 'PairSetup', + '0000004E-0000-1000-8000-0026BB765291': 'PairVerify', + '0000004F-0000-1000-8000-0026BB765291': 'PairingFeatures', + '00000050-0000-1000-8000-0026BB765291': 'PairingPairings', + '000000E4-0000-1000-8000-0026BB765291': 'PasswordSetting', + '000000C7-0000-1000-8000-0026BB765291': 'PM10Density', + '000000C6-0000-1000-8000-0026BB765291': 'PM2_5Density', + '00000072-0000-1000-8000-0026BB765291': 'PositionState', + '000000D1-0000-1000-8000-0026BB765291': 'ProgramMode', + '00000073-0000-1000-8000-0026BB765291': 'ProgrammableSwitchEvent', + '000000C9-0000-1000-8000-0026BB765291': 'RelativeHumidityDehumidifierThreshold', + '000000CA-0000-1000-8000-0026BB765291': 'RelativeHumidityHumidifierThreshold', + '000000D4-0000-1000-8000-0026BB765291': 'RemainingDuration', + '000000AD-0000-1000-8000-0026BB765291': 'ResetFilterIndication', + '00000028-0000-1000-8000-0026BB765291': 'RotationDirection', + '00000029-0000-1000-8000-0026BB765291': 'RotationSpeed', + '0000002F-0000-1000-8000-0026BB765291': 'Saturation', + '0000008E-0000-1000-8000-0026BB765291': 'SecuritySystemAlarmType', + '00000066-0000-1000-8000-0026BB765291': 'SecuritySystemCurrentState', + '00000067-0000-1000-8000-0026BB765291': 'SecuritySystemTargetState', + '00000117-0000-1000-8000-0026BB765291': 'SelectedRTPStreamConfiguration', + '00000030-0000-1000-8000-0026BB765291': 'SerialNumber', + '000000CB-0000-1000-8000-0026BB765291': 'ServiceLabelIndex', + '000000CD-0000-1000-8000-0026BB765291': 'ServiceLabelNamespace', + '000000D3-0000-1000-8000-0026BB765291': 'SetDuration', + '00000118-0000-1000-8000-0026BB765291': 'SetupEndpoints', + '000000C0-0000-1000-8000-0026BB765291': 'SlatType', + '00000076-0000-1000-8000-0026BB765291': 'SmokeDetected', + '00000075-0000-1000-8000-0026BB765291': 'StatusActive', + '00000077-0000-1000-8000-0026BB765291': 'StatusFault', + '00000078-0000-1000-8000-0026BB765291': 'StatusJammed', + '00000079-0000-1000-8000-0026BB765291': 'StatusLowBattery', + '0000007A-0000-1000-8000-0026BB765291': 'StatusTampered', + '00000120-0000-1000-8000-0026BB765291': 'StreamingStatus', + '000000C5-0000-1000-8000-0026BB765291': 'SulphurDioxideDensity', + '00000115-0000-1000-8000-0026BB765291': 'SupportedAudioStreamConfiguration', + '00000116-0000-1000-8000-0026BB765291': 'SupportedRTPConfiguration', + '00000114-0000-1000-8000-0026BB765291': 'SupportedVideoStreamConfiguration', + '000000B6-0000-1000-8000-0026BB765291': 'SwingMode', + '000000A8-0000-1000-8000-0026BB765291': 'TargetAirPurifierState', + '000000AE-0000-1000-8000-0026BB765291': 'TargetAirQuality', + '00000032-0000-1000-8000-0026BB765291': 'TargetDoorState', + '000000BF-0000-1000-8000-0026BB765291': 'TargetFanState', + '000000B2-0000-1000-8000-0026BB765291': 'TargetHeaterCoolerState', + '00000033-0000-1000-8000-0026BB765291': 'TargetHeatingCoolingState', + '0000007B-0000-1000-8000-0026BB765291': 'TargetHorizontalTiltAngle', + '000000B4-0000-1000-8000-0026BB765291': 'TargetHumidifierDehumidifierState', + '0000007C-0000-1000-8000-0026BB765291': 'TargetPosition', + '00000034-0000-1000-8000-0026BB765291': 'TargetRelativeHumidity', + '000000BE-0000-1000-8000-0026BB765291': 'TargetSlatState', + '00000035-0000-1000-8000-0026BB765291': 'TargetTemperature', + '000000C2-0000-1000-8000-0026BB765291': 'TargetTiltAngle', + '0000007D-0000-1000-8000-0026BB765291': 'TargetVerticalTiltAngle', + '00000036-0000-1000-8000-0026BB765291': 'TemperatureDisplayUnits', + '000000D5-0000-1000-8000-0026BB765291': 'ValveType', + '00000037-0000-1000-8000-0026BB765291': 'Version', + '000000C8-0000-1000-8000-0026BB765291': 'VOCDensity', + '00000119-0000-1000-8000-0026BB765291': 'Volume', + '000000B5-0000-1000-8000-0026BB765291': 'WaterLevel', + '00000226-0000-1000-8000-0026BB765291': 'RecordingAudioActive', + '00000205-0000-1000-8000-0026BB765291': 'SupportedCameraRecordingConfiguration', + '00000206-0000-1000-8000-0026BB765291': 'SupportedVideoRecordingConfiguration', + '00000207-0000-1000-8000-0026BB765291': 'SupportedAudioRecordingConfiguration', + '00000209-0000-1000-8000-0026BB765291': 'SelectedCameraRecordingConfiguration', + '0000021D-0000-1000-8000-0026BB765291': 'CameraOperatingModeIndicator', + '00000223-0000-1000-8000-0026BB765291': 'EventSnapshotsActive', + '00000224-0000-1000-8000-0026BB765291': 'DiagonalFieldOfView', + '0000021B-0000-1000-8000-0026BB765291': 'HomeKitCameraActive', + '00000227-0000-1000-8000-0026BB765291': 'ManuallyDisabled', + '0000021C-0000-1000-8000-0026BB765291': 'ThirdPartyCameraActive', + '00000225-0000-1000-8000-0026BB765291': 'PeriodicSnapshotsActive', + '0000020C-0000-1000-8000-0026BB765291': 'NetworkClientProfileControl', + '0000020D-0000-1000-8000-0026BB765291': 'NetworkClientStatusControl', + '0000020E-0000-1000-8000-0026BB765291': 'RouterStatus', + '00000210-0000-1000-8000-0026BB765291': 'SupportedRouterConfiguration', + '00000211-0000-1000-8000-0026BB765291': 'WANConfigurationList', + '00000212-0000-1000-8000-0026BB765291': 'WANStatusList', + '00000215-0000-1000-8000-0026BB765291': 'ManagedNetworkEnable', + '0000021F-0000-1000-8000-0026BB765291': 'NetworkAccessViolationControl', + '0000021E-0000-1000-8000-0026BB765291': 'WiFiSatelliteStatus', + '00000222-0000-1000-8000-0026BB765291': 'WakeConfiguration', + '00000202-0000-1000-8000-0026BB765291': 'SupportedTransferTransportConfiguration', + '00000201-0000-1000-8000-0026BB765291': 'SetupTransferTransport', + '0000021E-0000-1000-8000-0000023B': 'ActivityInterval', + '0000021E-0000-1000-8000-00000246': 'CCAEnergyDetectThreshold', + '0000021E-0000-1000-8000-00000245': 'CCASignalDetectThreshold', + '0000021E-0000-1000-8000-00000143': 'CharacteristicValueTransitionControl', + '0000021E-0000-1000-8000-00000144': 'SupportedCharacteristicValueTransitionConfiguration', + '0000021E-0000-1000-8000-0000022B': 'CurrentTransport', + '0000021E-0000-1000-8000-00000138': 'DataStreamHAPTransport', + '0000021E-0000-1000-8000-00000139': 'DataStreamHAPTransportInterrupt', + '0000021E-0000-1000-8000-0000023D': 'EventRetransmissionMaximum', + '0000021E-0000-1000-8000-0000023E': 'EventTransmissionCounters', + '0000021E-0000-1000-8000-0000024A': 'HeartBeat', + '0000021E-0000-1000-8000-00000247': 'MACRetransmissionMaximum', + '0000021E-0000-1000-8000-00000248': 'MACTransmissionCounters', + '0000021E-0000-1000-8000-00000232': 'OperatingStateResponse', + '0000021E-0000-1000-8000-0000023C': 'Ping', + '0000021E-0000-1000-8000-00000244': 'ReceiverSensitivity', + '0000021E-0000-1000-8000-0000023F': 'ReceivedSignalStrengthIndication', + '0000021E-0000-1000-8000-0000023A': 'SleepInterval', + '0000021E-0000-1000-8000-00000241': 'SignalToNoiseRatio', + '0000021E-0000-1000-8000-00000238': 'SupportedDiagnosticsSnapshot', + '0000021E-0000-1000-8000-00000242': 'TransmitPower', + '0000021E-0000-1000-8000-00000243': 'TransmitPowerMaximum', + '0000021E-0000-1000-8000-00000229': 'VideoAnalysisActive', + '0000021E-0000-1000-8000-0000022C': 'WiFiCapabilities', + '0000021E-0000-1000-8000-0000022D': 'WiFiConfigurationControl', + '000000A4-0000-1000-8000-0026BB765291': 'AppMatchingIdentifier', + '00000074-0000-1000-8000-0026BB765291': 'ProgrammableSwitchOutputState', + '00000054-0000-1000-8000-0026BB765291': 'SoftwareRevision', + '00000057-0000-1000-8000-0026BB765291': 'AccessoryIdentifier', + '000000A3-0000-1000-8000-0026BB765291': 'Category', + '000000A0-0000-1000-8000-0026BB765291': 'ConfigureBridgedAccessory', + '0000009D-0000-1000-8000-0026BB765291': 'ConfigureBridgedAccessoryStatus', + '0000009B-0000-1000-8000-0026BB765291': 'CurrentTime', + '00000098-0000-1000-8000-0026BB765291': 'DayoftheWeek', + '0000009E-0000-1000-8000-0026BB765291': 'DiscoverBridgedAccessories', + '0000009F-0000-1000-8000-0026BB765291': 'DiscoveredBridgedAccessories', + '0000009C-0000-1000-8000-0026BB765291': 'LinkQuality', + '00000063-0000-1000-8000-0026BB765291': 'Reachable', + '0000005E-0000-1000-8000-0026BB765291': 'RelayControlPoint', + '0000005B-0000-1000-8000-0026BB765291': 'RelayEnabled', + '0000005C-0000-1000-8000-0026BB765291': 'RelayState', + '0000009A-0000-1000-8000-0026BB765291': 'TimeUpdate', + '00000061-0000-1000-8000-0026BB765291': 'TunnelConnectionTimeout', + '00000060-0000-1000-8000-0026BB765291': 'TunneledAccessoryAdvertising', + '00000059-0000-1000-8000-0026BB765291': 'TunneledAccessoryConnected', + '00000058-0000-1000-8000-0026BB765291': 'TunneledAccessoryStateNumber', + '000000E7-0000-1000-8000-0026BB765291': 'ActiveIdentifier', + '000000E3-0000-1000-8000-0026BB765291': 'ConfiguredName', + '000000E8-0000-1000-8000-0026BB765291': 'SleepDiscoveryMode', + '000000DD-0000-1000-8000-0026BB765291': 'ClosedCaptions', + '00000136-0000-1000-8000-0026BB765291': 'DisplayOrder', + '000000E0-0000-1000-8000-0026BB765291': 'CurrentMediaState', + '00000137-0000-1000-8000-0026BB765291': 'TargetMediaState', + '000000E2-0000-1000-8000-0026BB765291': 'PictureMode', + '000000DF-0000-1000-8000-0026BB765291': 'PowerModeSelection', + '000000E1-0000-1000-8000-0026BB765291': 'RemoteKey', + '000000DB-0000-1000-8000-0026BB765291': 'InputSourceType', + '000000DC-0000-1000-8000-0026BB765291': 'InputDeviceType', + '000000E6-0000-1000-8000-0026BB765291': 'Identifier', + '00000135-0000-1000-8000-0026BB765291': 'CurrentVisibilityState', + '00000134-0000-1000-8000-0026BB765291': 'TargetVisibilityState', + '000000E9-0000-1000-8000-0026BB765291': 'VolumeControlType', + '000000EA-0000-1000-8000-0026BB765291': 'VolumeSelector', + '00000123-0000-1000-8000-0026BB765291': 'TargetControlSupportedConfiguration', + '00000124-0000-1000-8000-0026BB765291': 'TargetControlList', + '00000126-0000-1000-8000-0026BB765291': 'ButtonEvent', + '00000128-0000-1000-8000-0026BB765291': 'SelectedAudioStreamConfiguration', + '00000132-0000-1000-8000-0026BB765291': 'SiriInputType', + '00000130-0000-1000-8000-0026BB765291': 'SupportedDataStreamTransportConfiguration', + '00000131-0000-1000-8000-0026BB765291': 'SetupDataStreamTransport', +}; + +export const Characteristic = { + AccessControlLevel: '000000E5-0000-1000-8000-0026BB765291', + AccessoryFlags: '000000A6-0000-1000-8000-0026BB765291', + ProductData: '00000220-0000-1000-8000-0026BB765291', + Active: '000000B0-0000-1000-8000-0026BB765291', + AdministratorOnlyAccess: '00000001-0000-1000-8000-0026BB765291', + AirParticulateDensity: '00000064-0000-1000-8000-0026BB765291', + AirParticulateSize: '00000065-0000-1000-8000-0026BB765291', + AirQuality: '00000095-0000-1000-8000-0026BB765291', + AudioFeedback: '00000005-0000-1000-8000-0026BB765291', + BatteryLevel: '00000068-0000-1000-8000-0026BB765291', + Brightness: '00000008-0000-1000-8000-0026BB765291', + CarbonDioxideDetected: '00000092-0000-1000-8000-0026BB765291', + CarbonDioxideLevel: '00000093-0000-1000-8000-0026BB765291', + CarbonDioxidePeakLevel: '00000094-0000-1000-8000-0026BB765291', + CarbonMonoxideDetected: '00000069-0000-1000-8000-0026BB765291', + CarbonMonoxideLevel: '00000090-0000-1000-8000-0026BB765291', + CarbonMonoxidePeakLevel: '00000091-0000-1000-8000-0026BB765291', + ChargingState: '0000008F-0000-1000-8000-0026BB765291', + ColorTemperature: '000000CE-0000-1000-8000-0026BB765291', + ContactSensorState: '0000006A-0000-1000-8000-0026BB765291', + CoolingThresholdTemperature: '0000000D-0000-1000-8000-0026BB765291', + CurrentAirPurifierState: '000000A9-0000-1000-8000-0026BB765291', + CurrentAmbientLightLevel: '0000006B-0000-1000-8000-0026BB765291', + CurrentDoorState: '0000000E-0000-1000-8000-0026BB765291', + CurrentFanState: '000000AF-0000-1000-8000-0026BB765291', + CurrentHeaterCoolerState: '000000B1-0000-1000-8000-0026BB765291', + CurrentHeatingCoolingState: '0000000F-0000-1000-8000-0026BB765291', + CurrentHorizontalTiltAngle: '0000006C-0000-1000-8000-0026BB765291', + CurrentHumidifierDehumidifierState: '000000B3-0000-1000-8000-0026BB765291', + CurrentPosition: '0000006D-0000-1000-8000-0026BB765291', + CurrentRelativeHumidity: '00000010-0000-1000-8000-0026BB765291', + CurrentSlatState: '000000AA-0000-1000-8000-0026BB765291', + CurrentTemperature: '00000011-0000-1000-8000-0026BB765291', + CurrentTiltAngle: '000000C1-0000-1000-8000-0026BB765291', + CurrentVerticalTiltAngle: '0000006E-0000-1000-8000-0026BB765291', + DigitalZoom: '0000011D-0000-1000-8000-0026BB765291', + FilterChangeIndication: '000000AC-0000-1000-8000-0026BB765291', + FilterLifeLevel: '000000AB-0000-1000-8000-0026BB765291', + FirmwareRevision: '00000052-0000-1000-8000-0026BB765291', + HardwareRevision: '00000053-0000-1000-8000-0026BB765291', + HeatingThresholdTemperature: '00000012-0000-1000-8000-0026BB765291', + HoldPosition: '0000006F-0000-1000-8000-0026BB765291', + Hue: '00000013-0000-1000-8000-0026BB765291', + Identify: '00000014-0000-1000-8000-0026BB765291', + ImageMirroring: '0000011F-0000-1000-8000-0026BB765291', + ImageRotation: '0000011E-0000-1000-8000-0026BB765291', + InUse: '000000D2-0000-1000-8000-0026BB765291', + IsConfigured: '000000D6-0000-1000-8000-0026BB765291', + LeakDetected: '00000070-0000-1000-8000-0026BB765291', + LockControlPoint: '00000019-0000-1000-8000-0026BB765291', + LockCurrentState: '0000001D-0000-1000-8000-0026BB765291', + LockLastKnownAction: '0000001C-0000-1000-8000-0026BB765291', + LockManagementAutoSecurityTimeout: '0000001A-0000-1000-8000-0026BB765291', + LockPhysicalControls: '000000A7-0000-1000-8000-0026BB765291', + LockTargetState: '0000001E-0000-1000-8000-0026BB765291', + Logs: '0000001F-0000-1000-8000-0026BB765291', + Manufacturer: '00000020-0000-1000-8000-0026BB765291', + Model: '00000021-0000-1000-8000-0026BB765291', + MotionDetected: '00000022-0000-1000-8000-0026BB765291', + Mute: '0000011A-0000-1000-8000-0026BB765291', + Name: '00000023-0000-1000-8000-0026BB765291', + NightVision: '0000011B-0000-1000-8000-0026BB765291', + NitrogenDioxideDensity: '000000C4-0000-1000-8000-0026BB765291', + ObstructionDetected: '00000024-0000-1000-8000-0026BB765291', + OccupancyDetected: '00000071-0000-1000-8000-0026BB765291', + On: '00000025-0000-1000-8000-0026BB765291', + OpticalZoom: '0000011C-0000-1000-8000-0026BB765291', + OutletInUse: '00000026-0000-1000-8000-0026BB765291', + OzoneDensity: '000000C3-0000-1000-8000-0026BB765291', + PairSetup: '0000004C-0000-1000-8000-0026BB765291', + PairVerify: '0000004E-0000-1000-8000-0026BB765291', + PairingFeatures: '0000004F-0000-1000-8000-0026BB765291', + PairingPairings: '00000050-0000-1000-8000-0026BB765291', + PasswordSetting: '000000E4-0000-1000-8000-0026BB765291', + PM10Density: '000000C7-0000-1000-8000-0026BB765291', + PM2_5Density: '000000C6-0000-1000-8000-0026BB765291', + PositionState: '00000072-0000-1000-8000-0026BB765291', + ProgramMode: '000000D1-0000-1000-8000-0026BB765291', + ProgrammableSwitchEvent: '00000073-0000-1000-8000-0026BB765291', + RelativeHumidityDehumidifierThreshold: '000000C9-0000-1000-8000-0026BB765291', + RelativeHumidityHumidifierThreshold: '000000CA-0000-1000-8000-0026BB765291', + RemainingDuration: '000000D4-0000-1000-8000-0026BB765291', + ResetFilterIndication: '000000AD-0000-1000-8000-0026BB765291', + RotationDirection: '00000028-0000-1000-8000-0026BB765291', + RotationSpeed: '00000029-0000-1000-8000-0026BB765291', + Saturation: '0000002F-0000-1000-8000-0026BB765291', + SecuritySystemAlarmType: '0000008E-0000-1000-8000-0026BB765291', + SecuritySystemCurrentState: '00000066-0000-1000-8000-0026BB765291', + SecuritySystemTargetState: '00000067-0000-1000-8000-0026BB765291', + SelectedRTPStreamConfiguration: '00000117-0000-1000-8000-0026BB765291', + SerialNumber: '00000030-0000-1000-8000-0026BB765291', + ServiceLabelIndex: '000000CB-0000-1000-8000-0026BB765291', + ServiceLabelNamespace: '000000CD-0000-1000-8000-0026BB765291', + SetDuration: '000000D3-0000-1000-8000-0026BB765291', + SetupEndpoints: '00000118-0000-1000-8000-0026BB765291', + SlatType: '000000C0-0000-1000-8000-0026BB765291', + SmokeDetected: '00000076-0000-1000-8000-0026BB765291', + StatusActive: '00000075-0000-1000-8000-0026BB765291', + StatusFault: '00000077-0000-1000-8000-0026BB765291', + StatusJammed: '00000078-0000-1000-8000-0026BB765291', + StatusLowBattery: '00000079-0000-1000-8000-0026BB765291', + StatusTampered: '0000007A-0000-1000-8000-0026BB765291', + StreamingStatus: '00000120-0000-1000-8000-0026BB765291', + SulphurDioxideDensity: '000000C5-0000-1000-8000-0026BB765291', + SupportedAudioStreamConfiguration: '00000115-0000-1000-8000-0026BB765291', + SupportedRTPConfiguration: '00000116-0000-1000-8000-0026BB765291', + SupportedVideoStreamConfiguration: '00000114-0000-1000-8000-0026BB765291', + SwingMode: '000000B6-0000-1000-8000-0026BB765291', + TargetAirPurifierState: '000000A8-0000-1000-8000-0026BB765291', + TargetAirQuality: '000000AE-0000-1000-8000-0026BB765291', + TargetDoorState: '00000032-0000-1000-8000-0026BB765291', + TargetFanState: '000000BF-0000-1000-8000-0026BB765291', + TargetHeaterCoolerState: '000000B2-0000-1000-8000-0026BB765291', + TargetHeatingCoolingState: '00000033-0000-1000-8000-0026BB765291', + TargetHorizontalTiltAngle: '0000007B-0000-1000-8000-0026BB765291', + TargetHumidifierDehumidifierState: '000000B4-0000-1000-8000-0026BB765291', + TargetPosition: '0000007C-0000-1000-8000-0026BB765291', + TargetRelativeHumidity: '00000034-0000-1000-8000-0026BB765291', + TargetSlatState: '000000BE-0000-1000-8000-0026BB765291', + TargetTemperature: '00000035-0000-1000-8000-0026BB765291', + TargetTiltAngle: '000000C2-0000-1000-8000-0026BB765291', + TargetVerticalTiltAngle: '0000007D-0000-1000-8000-0026BB765291', + TemperatureDisplayUnits: '00000036-0000-1000-8000-0026BB765291', + ValveType: '000000D5-0000-1000-8000-0026BB765291', + Version: '00000037-0000-1000-8000-0026BB765291', + VOCDensity: '000000C8-0000-1000-8000-0026BB765291', + Volume: '00000119-0000-1000-8000-0026BB765291', + WaterLevel: '000000B5-0000-1000-8000-0026BB765291', + RecordingAudioActive: '00000226-0000-1000-8000-0026BB765291', + SupportedCameraRecordingConfiguration: '00000205-0000-1000-8000-0026BB765291', + SupportedVideoRecordingConfiguration: '00000206-0000-1000-8000-0026BB765291', + SupportedAudioRecordingConfiguration: '00000207-0000-1000-8000-0026BB765291', + SelectedCameraRecordingConfiguration: '00000209-0000-1000-8000-0026BB765291', + CameraOperatingModeIndicator: '0000021D-0000-1000-8000-0026BB765291', + EventSnapshotsActive: '00000223-0000-1000-8000-0026BB765291', + DiagonalFieldOfView: '00000224-0000-1000-8000-0026BB765291', + HomeKitCameraActive: '0000021B-0000-1000-8000-0026BB765291', + ManuallyDisabled: '00000227-0000-1000-8000-0026BB765291', + ThirdPartyCameraActive: '0000021C-0000-1000-8000-0026BB765291', + PeriodicSnapshotsActive: '00000225-0000-1000-8000-0026BB765291', + NetworkClientProfileControl: '0000020C-0000-1000-8000-0026BB765291', + NetworkClientStatusControl: '0000020D-0000-1000-8000-0026BB765291', + RouterStatus: '0000020E-0000-1000-8000-0026BB765291', + SupportedRouterConfiguration: '00000210-0000-1000-8000-0026BB765291', + WANConfigurationList: '00000211-0000-1000-8000-0026BB765291', + WANStatusList: '00000212-0000-1000-8000-0026BB765291', + ManagedNetworkEnable: '00000215-0000-1000-8000-0026BB765291', + NetworkAccessViolationControl: '0000021F-0000-1000-8000-0026BB765291', + WiFiSatelliteStatus: '0000021E-0000-1000-8000-0026BB765291', + WakeConfiguration: '00000222-0000-1000-8000-0026BB765291', + SupportedTransferTransportConfiguration: '00000202-0000-1000-8000-0026BB765291', + SetupTransferTransport: '00000201-0000-1000-8000-0026BB765291', + ActivityInterval: '0000021E-0000-1000-8000-0000023B', + CCAEnergyDetectThreshold: '0000021E-0000-1000-8000-00000246', + CCASignalDetectThreshold: '0000021E-0000-1000-8000-00000245', + CharacteristicValueTransitionControl: '0000021E-0000-1000-8000-00000143', + SupportedCharacteristicValueTransitionConfiguration: '0000021E-0000-1000-8000-00000144', + CurrentTransport: '0000021E-0000-1000-8000-0000022B', + DataStreamHAPTransport: '0000021E-0000-1000-8000-00000138', + DataStreamHAPTransportInterrupt: '0000021E-0000-1000-8000-00000139', + EventRetransmissionMaximum: '0000021E-0000-1000-8000-0000023D', + EventTransmissionCounters: '0000021E-0000-1000-8000-0000023E', + HeartBeat: '0000021E-0000-1000-8000-0000024A', + MACRetransmissionMaximum: '0000021E-0000-1000-8000-00000247', + MACTransmissionCounters: '0000021E-0000-1000-8000-00000248', + OperatingStateResponse: '0000021E-0000-1000-8000-00000232', + Ping: '0000021E-0000-1000-8000-0000023C', + ReceiverSensitivity: '0000021E-0000-1000-8000-00000244', + ReceivedSignalStrengthIndication: '0000021E-0000-1000-8000-0000023F', + SleepInterval: '0000021E-0000-1000-8000-0000023A', + SignalToNoiseRatio: '0000021E-0000-1000-8000-00000241', + SupportedDiagnosticsSnapshot: '0000021E-0000-1000-8000-00000238', + TransmitPower: '0000021E-0000-1000-8000-00000242', + TransmitPowerMaximum: '0000021E-0000-1000-8000-00000243', + VideoAnalysisActive: '0000021E-0000-1000-8000-00000229', + WiFiCapabilities: '0000021E-0000-1000-8000-0000022C', + WiFiConfigurationControl: '0000021E-0000-1000-8000-0000022D', + AppMatchingIdentifier: '000000A4-0000-1000-8000-0026BB765291', + ProgrammableSwitchOutputState: '00000074-0000-1000-8000-0026BB765291', + SoftwareRevision: '00000054-0000-1000-8000-0026BB765291', + AccessoryIdentifier: '00000057-0000-1000-8000-0026BB765291', + Category: '000000A3-0000-1000-8000-0026BB765291', + ConfigureBridgedAccessory: '000000A0-0000-1000-8000-0026BB765291', + ConfigureBridgedAccessoryStatus: '0000009D-0000-1000-8000-0026BB765291', + CurrentTime: '0000009B-0000-1000-8000-0026BB765291', + DayoftheWeek: '00000098-0000-1000-8000-0026BB765291', + DiscoverBridgedAccessories: '0000009E-0000-1000-8000-0026BB765291', + DiscoveredBridgedAccessories: '0000009F-0000-1000-8000-0026BB765291', + LinkQuality: '0000009C-0000-1000-8000-0026BB765291', + Reachable: '00000063-0000-1000-8000-0026BB765291', + RelayControlPoint: '0000005E-0000-1000-8000-0026BB765291', + RelayEnabled: '0000005B-0000-1000-8000-0026BB765291', + RelayState: '0000005C-0000-1000-8000-0026BB765291', + TimeUpdate: '0000009A-0000-1000-8000-0026BB765291', + TunnelConnectionTimeout: '00000061-0000-1000-8000-0026BB765291', + TunneledAccessoryAdvertising: '00000060-0000-1000-8000-0026BB765291', + TunneledAccessoryConnected: '00000059-0000-1000-8000-0026BB765291', + TunneledAccessoryStateNumber: '00000058-0000-1000-8000-0026BB765291', + ActiveIdentifier: '000000E7-0000-1000-8000-0026BB765291', + ConfiguredName: '000000E3-0000-1000-8000-0026BB765291', + SleepDiscoveryMode: '000000E8-0000-1000-8000-0026BB765291', + ClosedCaptions: '000000DD-0000-1000-8000-0026BB765291', + DisplayOrder: '00000136-0000-1000-8000-0026BB765291', + CurrentMediaState: '000000E0-0000-1000-8000-0026BB765291', + TargetMediaState: '00000137-0000-1000-8000-0026BB765291', + PictureMode: '000000E2-0000-1000-8000-0026BB765291', + PowerModeSelection: '000000DF-0000-1000-8000-0026BB765291', + RemoteKey: '000000E1-0000-1000-8000-0026BB765291', + InputSourceType: '000000DB-0000-1000-8000-0026BB765291', + InputDeviceType: '000000DC-0000-1000-8000-0026BB765291', + Identifier: '000000E6-0000-1000-8000-0026BB765291', + CurrentVisibilityState: '00000135-0000-1000-8000-0026BB765291', + TargetVisibilityState: '00000134-0000-1000-8000-0026BB765291', + VolumeControlType: '000000E9-0000-1000-8000-0026BB765291', + VolumeSelector: '000000EA-0000-1000-8000-0026BB765291', + TargetControlSupportedConfiguration: '00000123-0000-1000-8000-0026BB765291', + TargetControlList: '00000124-0000-1000-8000-0026BB765291', + ButtonEvent: '00000126-0000-1000-8000-0026BB765291', + SelectedAudioStreamConfiguration: '00000128-0000-1000-8000-0026BB765291', + SiriInputType: '00000132-0000-1000-8000-0026BB765291', + SupportedDataStreamTransportConfiguration: '00000130-0000-1000-8000-0026BB765291', + SetupDataStreamTransport: '00000131-0000-1000-8000-0026BB765291', +}; diff --git a/src/hap.ts b/src/hap.ts new file mode 100644 index 0000000..8187b79 --- /dev/null +++ b/src/hap.ts @@ -0,0 +1,511 @@ +import { HAPNodeJSClient } from 'hap-node-client'; +import { ServicesTypes, Service, Characteristic } from './hap-types'; +import * as crypto from 'crypto'; +import { Subject } from 'rxjs'; +import { debounceTime, map } from 'rxjs/operators'; + +import { PluginConfig, HapInstance, HapService, HapCharacteristic, Instance } from './interfaces'; +import { toLongFormUUID } from './uuid'; +import { Log } from './logger'; + +import { Door } from './types/door'; +import { Fan } from './types/fan'; +import { Fanv2 } from './types/fan-v2'; +import { GarageDoorOpener } from './types/garage-door-opener'; +import { HeaterCooler } from './types/heater-cooler'; +import { HumiditySensor } from './types/humidity-sensor'; +import { Lightbulb } from './types/lightbulb'; +import { LockMechanism } from './types/lock-mechanism'; +import { SecuritySystem } from './types/security-system'; +import { Switch } from './types/switch'; +import { Television } from './types/television'; +import { TemperatureSensor } from './types/temperature-sensor'; +import { Thermostat } from './types/thermostat'; +import { Window } from './types/window'; +import { WindowCovering } from './types/window-covering'; + +export class Hap { + socket; + log: Log; + pin: string; + config: PluginConfig; + homebridge: HAPNodeJSClient; + services: HapService[] = []; + + public ready: boolean; + + /* init types */ + types = { + Door: new Door(), + Fan: new Fan(), + Fanv2: new Fanv2(), + GarageDoorOpener: new GarageDoorOpener(), + HeaterCooler: new HeaterCooler(this), + HumiditySensor: new HumiditySensor(), + Lightbulb: new Lightbulb(), + LockMechanism: new LockMechanism(), + Outlet: new Switch('action.devices.types.OUTLET'), + SecuritySystem: new SecuritySystem(), + Switch: new Switch('action.devices.types.SWITCH'), + Television: new Television(), + TemperatureSensor: new TemperatureSensor(this), + Thermostat: new Thermostat(this), + Window: new Window(), + WindowCovering: new WindowCovering(), + }; + + /* event tracking */ + evInstances: Instance[] = []; + evServices: HapService[] = []; + reportStateSubject = new Subject(); + pendingStateReport = []; + + /* types of characteristics to track */ + evTypes = [ + Characteristic.Active, + Characteristic.On, + Characteristic.CurrentPosition, + Characteristic.TargetPosition, + Characteristic.CurrentDoorState, + Characteristic.TargetDoorState, + Characteristic.Brightness, + Characteristic.HeatingThresholdTemperature, + Characteristic.Hue, + Characteristic.Saturation, + Characteristic.LockCurrentState, + Characteristic.LockTargetState, + Characteristic.TargetHeatingCoolingState, + Characteristic.TargetTemperature, + Characteristic.CoolingThresholdTemperature, + Characteristic.CurrentTemperature, + Characteristic.CurrentRelativeHumidity, + Characteristic.SecuritySystemTargetState, + Characteristic.SecuritySystemCurrentState, + ]; + + instanceBlacklist: Array = []; + accessoryFilter: Array = []; + deviceNameMap: Array<{ replace: string; with: string }> = []; + + constructor(socket, log, pin: string, config: PluginConfig) { + this.config = config; + this.socket = socket; + this.log = log; + this.pin = pin; + + this.accessoryFilter = config.accessoryFilter || []; + this.instanceBlacklist = config.instanceBlacklist || []; + + this.log.debug('Waiting 15 seconds before starting instance discovery...'); + setTimeout(() => { + this.discover(); + }, 15000); + + this.reportStateSubject + .pipe( + map((i) => { + if (!this.pendingStateReport.includes(i)) { + this.pendingStateReport.push(i); + } + }), + debounceTime(1000), + ) + .subscribe((data) => { + const pendingStateReport = this.pendingStateReport; + this.pendingStateReport = []; + this.processPendingStateReports(pendingStateReport); + }); + } + + /** + * Homebridge Instance Discovery + */ + async discover() { + this.homebridge = new HAPNodeJSClient({ + debug: this.config.debug, + pin: this.pin, + timeout: 10, + }); + + this.homebridge.once('Ready', () => { + this.ready = true; + this.log.info('Finished instance discovery'); + + setTimeout(() => { + this.requestSync(); + }, 15000); + }); + + this.homebridge.on('Ready', () => { + this.start(); + }); + + this.homebridge.on('hapEvent', ((event) => { + this.handleHapEvent(event); + })); + } + + /** + * Start processing + */ + async start() { + await this.getAccessories(); + await this.buildSyncResponse(); + await this.registerCharacteristicEventHandlers(); + } + + /** + * Build Google SYNC intent payload + */ + async buildSyncResponse() { + const devices = this.services.map((service) => { + return this.types[service.serviceType].sync(service); + }); + return devices; + } + + /** + * Ask google to send a sync request + */ + async requestSync() { + this.log.info('Sending Sync Request'); + this.socket.sendJson({ + type: 'request-sync', + }); + } + + /** + * Process the QUERY intent + * @param devices + */ + async query(devices) { + const response = {}; + + for (const device of devices) { + const service = this.services.find(x => x.uniqueId === device.id); + if (service) { + await this.getStatus(service); + response[device.id] = this.types[service.serviceType].query(service); + } else { + response[device.id] = {}; + } + } + + return response; + } + + /** + * Process the EXECUTE intent + * @param commands + */ + async execute(commands) { + const response = []; + + for (const command of commands) { + for (const device of command.devices) { + + const service = this.services.find(x => x.uniqueId === device.id); + + if (service) { + + // check if two factor auth is required, and if we have it + if (this.config.twoFactorAuthPin && this.types[service.serviceType].twoFactorRequired && + this.types[service.serviceType].is2faRequired(command) && + !(command.execution.length && command.execution[0].challenge && + command.execution[0].challenge.pin === this.config.twoFactorAuthPin.toString() + ) + ) { + this.log.info('Requesting Two Factor Authentication Pin'); + response.push({ + ids: [device.id], + status: 'ERROR', + errorCode: 'challengeNeeded', + challengeNeeded: { + type: 'pinNeeded', + }, + }); + } else { + // process the request + const { payload, states } = this.types[service.serviceType].execute(service, command); + + await new Promise((resolve, reject) => { + this.homebridge.HAPcontrol(service.instance.ipAddress, service.instance.port, JSON.stringify(payload), (err) => { + if (!err) { + response.push({ + ids: [device.id], + status: 'SUCCESS', + states, + }); + } else { + this.log.error('Failed to control an accessory. Make sure all your Homebridge instances are using the same PIN.'); + this.log.error(err.message); + response.push({ + ids: [device.id], + status: 'ERROR', + }); + } + return resolve(); + }); + }); + } + + } + } + } + return response; + } + + /** + * Request a status update from an accessory + * @param service + */ + async getStatus(service) { + const iids: number[] = service.characteristics.map(c => c.iid); + + const body = '?id=' + iids.map(iid => `${service.aid}.${iid}`).join(','); + + const characteristics = await new Promise((resolve, reject) => { + this.homebridge.HAPstatus(service.instance.ipAddress, service.instance.port, body, (err, status) => { + if (err) { + return reject(err); + } + return resolve(status.characteristics); + }); + }) as Array; + + for (const c of characteristics) { + const characteristic = service.characteristics.find(x => x.iid === c.iid); + characteristic.value = c.value; + } + } + + /** + * Check that it's possible to connect to the instance + */ + private async checkInstanceConnection(instance: HapInstance): Promise { + return new Promise((resolve) => { + this.homebridge.HAPcontrol(instance.ipAddress, instance.instance.port, JSON.stringify( + { characteristics: [{ aid: -1, iid: -1 }] }, + ), (err) => { + if (err) { + return resolve(false); + } + return resolve(true); + }); + }); + } + + /** + * Load accessories from Homebridge + */ + async getAccessories() { + return new Promise((resolve, reject) => { + this.homebridge.HAPaccessories(async (instances: HapInstance[]) => { + this.services = []; + + for (const instance of instances) { + if (!await this.checkInstanceConnection(instance)) { + this.instanceBlacklist.push(instance.instance.txt.id); + } + + if (!this.instanceBlacklist.find(x => x.toLowerCase() === instance.instance.txt.id.toLowerCase())) { + await this.parseAccessories(instance); + } else { + this.log.debug(`Instance [${instance.instance.txt.id}] on instance blacklist, ignoring.`); + } + } + + return resolve(true); + }); + }); + } + + /** + * Parse accessories from homebridge and filter out the ones we support + * @param instance + */ + async parseAccessories(instance: HapInstance) { + instance.accessories.accessories.forEach((accessory) => { + /** Ensure UUIDs are long form */ + for (const service of accessory.services) { + service.type = toLongFormUUID(service.type); + for (const characteristic of service.characteristics) { + characteristic.type = toLongFormUUID(characteristic.type); + } + } + + // get accessory information service + const accessoryInformationService = accessory.services.find(x => x.type === Service.AccessoryInformation); + const accessoryInformation = {}; + + if (accessoryInformationService && accessoryInformationService.characteristics) { + accessoryInformationService.characteristics.forEach((c) => { + if (c.value) { + accessoryInformation[c.description] = c.value; + } + }); + } + + // discover the service type + accessory.services + .filter(x => x.type !== Service.AccessoryInformation) + .filter(x => ServicesTypes[x.type]) + .filter(x => Object.prototype.hasOwnProperty.call(this.types, ServicesTypes[x.type])) + .forEach((service) => { + service.accessoryInformation = accessoryInformation; + service.aid = accessory.aid; + service.serviceType = ServicesTypes[service.type]; + + service.instance = { + ipAddress: instance.ipAddress, + port: instance.instance.port, + username: instance.instance.txt.id, + }; + + // generate unique id for service + service.uniqueId = crypto.createHash('sha256') + .update(`${service.instance.username}${service.aid}${service.iid}${service.type}`) + .digest('hex'); + + // discover name of service + const serviceNameCharacteristic = service.characteristics.find(x => [ + Characteristic.Name, + Characteristic.ConfiguredName, + ].includes(x.type)); + + service.serviceName = (serviceNameCharacteristic && serviceNameCharacteristic.value.length) ? + serviceNameCharacteristic.value : service.accessoryInformation.Name || service.serviceType; + + // perform user-defined name replacements + const nameMap = this.deviceNameMap.find(x => x.replace === service.serviceName); + if (nameMap) { + service.serviceName = nameMap.with; + } + + // perform user-defined service filters based on name + if (this.accessoryFilter.includes(service.serviceName)) { + return; + } + + // if 2fa is forced for this service type, but a pin has not been set ignore the service + if (this.types[service.serviceType].twoFactorRequired && !this.config.twoFactorAuthPin) { + this.log.warn(`Not registering ${service.serviceName} - Two Factor Authentication Pin has not been set and is required for ` + + `${service.serviceType} accessory types. See https://git.io/JUQWX`); + return; + } + + this.services.push(service); + }); + }); + } + + /** + * Register hap characteristic event handlers + */ + async registerCharacteristicEventHandlers() { + for (const service of this.services) { + // get a list of characteristics we can watch + const evCharacteristics = service.characteristics.filter(x => x.perms.includes('ev') && this.evTypes.includes(x.type)); + + if (evCharacteristics.length) { + // register the instance if it's not already there + if (!this.evInstances.find(x => x.username === service.instance.username)) { + const newInstance = Object.assign({}, service.instance); + newInstance.evCharacteristics = []; + this.evInstances.push(newInstance); + } + + const instance = this.evInstances.find(x => x.username === service.instance.username); + + for (const evCharacteristic of evCharacteristics) { + if (!instance.evCharacteristics.find(x => x.aid === service.aid && x.iid === evCharacteristic.iid)) { + instance.evCharacteristics.push({ aid: service.aid, iid: evCharacteristic.iid, ev: true }); + } + } + } + } + + // start listeners + for (const instance of this.evInstances) { + const unregistered = instance.evCharacteristics.filter(x => !x.registered); + if (unregistered.length) { + this.homebridge.HAPevent(instance.ipAddress, instance.port, JSON.stringify({ + characteristics: instance.evCharacteristics.filter(x => !x.registered), + }), (err, response) => { + if (err) { + this.log.error(err.message); + this.instanceBlacklist.push(instance.username); + this.evInstances.splice(this.evInstances.indexOf(instance), 1); + } else { + instance.evCharacteristics.forEach((c) => { + c.registered = true; + }); + this.log.debug('HAP Event listeners registered succesfully'); + } + }); + } + } + } + + /** + * Handle events from HAP + * @param event + */ + async handleHapEvent(events) { + for (const event of events) { + const accessories = this.services.filter(s => + s.instance.ipAddress === event.host && s.instance.port === event.port && s.aid === event.aid); + const service = accessories.find(x => x.characteristics.find(c => c.iid === event.iid)); + if (service) { + const characteristic = service.characteristics.find(c => c.iid === event.iid); + characteristic.value = event.value; + this.reportStateSubject.next(service.uniqueId); + } + } + } + + /** + * Generate a state report from the list pending + * @param pendingStateReport + */ + async processPendingStateReports(pendingStateReport) { + const states = {}; + + for (const uniqueId of pendingStateReport) { + const service = this.services.find(x => x.uniqueId === uniqueId); + states[service.uniqueId] = this.types[service.serviceType].query(service); + } + + return await this.sendStateReport(states); + } + + async sendFullStateReport() { + const states = {}; + + // don't report state if there are no services + if (!this.services.length) { + return; + } + + for (const service of this.services) { + states[service.uniqueId] = this.types[service.serviceType].query(service); + } + return await this.sendStateReport(states); + } + + /** + * Send the state report back to Google + * @param states + * @param requestId + */ + async sendStateReport(states, requestId?) { + const payload = { + requestId, + type: 'report-state', + body: states, + }; + this.log.debug('Sending State Report'); + this.log.debug(JSON.stringify(payload, null, 2)); + this.socket.sendJson(payload); + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..f1517bc --- /dev/null +++ b/src/index.ts @@ -0,0 +1,15 @@ +/** + * Homebridge Entry Point + */ + +import { API } from 'homebridge'; + +import { PLATFORM_NAME } from './settings'; +import { HomebridgeGoogleSmartHome } from './platform'; + +/** + * This method registers the platform with Homebridge + */ +export = (api: API) => { + api.registerPlatform(PLATFORM_NAME, HomebridgeGoogleSmartHome); +}; diff --git a/src/interfaces.ts b/src/interfaces.ts new file mode 100644 index 0000000..bd4bd85 --- /dev/null +++ b/src/interfaces.ts @@ -0,0 +1,100 @@ +import { PlatformConfig } from 'homebridge'; + +export interface PluginConfig extends PlatformConfig { + platform: string; + name: string; + token: string; + debug?: boolean; + twoFactorAuthPin: string; + instanceBlacklist?: Array; + accessoryFilter?: Array; + forceFahrenheit?: boolean; +} + +export interface Instance { + ipAddress: string; + port: number; + username: string; + evCharacteristics?: { + aid: number; + iid: number; + ev: boolean; + ipAddress?: string; + port?: number; + username?: string; + registered?: boolean; + }[]; +} + +export interface HapCharacteristic { + iid: number; + type: string; + perms: Array<'pr' | 'pw' | 'ev' | 'aa' | 'tw' | 'hd' | 'wr'>; + format: 'bool' | 'int' | 'float' | 'string' | 'uint8' | 'uin16' | 'uin32' | 'uint64' | 'data' | 'tlv8' | 'array' | 'dict'; + value: any; + description?: string; + unit?: 'celsius' | 'percentage' | 'arcdegrees' | 'lux' | 'seconds'; + maxValue?: number; + minValue?: number; + minStep?: number; + maxLen?: number; + maxDataLen?: number; + validValues?: number[]; + validValueRanges?: [number, number]; +} + +export interface HapService { + iid: number; + type: string; + characteristics: HapCharacteristic[]; + primary: boolean; + hidden: boolean; + + // custom + uniqueId?: string; + serviceName?: string; + accessoryInformation?: any; + aid?: number; + serviceType?: string; + instance?: Instance; +} + +export interface HapAccessory { + aid: number; + services: HapService[]; +} + +export interface HapInstance { + ipAddress: string; + instance: { + addresses: string[]; + name: string; + fqdn: string; + host: string; + referer: { + address: string; + family: string; + port: number; + size: number; + }; + port: number; + type: string; + protocol: string; + subtypes: any[]; + txt: { + md: string; + pv: string; + id: string; + }; + }; + accessories: { + accessories: HapAccessory[]; + }; +} + +export interface AccessoryTypeExecuteResponse { + payload: { + characteristics: { aid: number; iid: number; value: any }[]; + }; + states?: undefined | Record; +} \ No newline at end of file diff --git a/src/logger.ts b/src/logger.ts new file mode 100644 index 0000000..2cc2f9f --- /dev/null +++ b/src/logger.ts @@ -0,0 +1,29 @@ +export class Log { + private logger: any; + private debugMode: boolean; + + constructor(logger, debugMode: boolean) { + this.logger = logger; + this.debugMode = debugMode; + } + + debug(msg) { + if (this.debugMode) { + this.logger.info(msg); + } else { + this.logger.debug(msg); + } + } + + info(msg) { + this.logger.info(msg); + } + + warn(msg) { + this.logger.warn(msg); + } + + error(msg) { + this.logger.error(msg); + } +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..78bd4d5 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,160 @@ +import * as crypto from 'crypto'; +import { WebSocket } from '@oznu/ws-connect'; +import * as querystring from 'querystring'; +import * as fs from 'fs-extra'; +import * as path from 'path'; + +import { PluginConfig } from './interfaces'; +import { Log } from './logger'; +import { Hap } from './hap'; + +export class Plugin { + public log: Log; + public config; + public homebridgeConfig; + public hap: Hap; + + public package = fs.readJsonSync(path.resolve(__dirname, '../package.json')); + + constructor(log, config: PluginConfig, homebridgeConfig) { + this.log = new Log(log, config.debug); + this.config = config; + this.homebridgeConfig = homebridgeConfig; + + const qs = { + // generate unique id for service based on the username, sha256 for privacy + deviceId: crypto.createHash('sha256').update(this.homebridgeConfig.bridge.username).digest('hex'), + token: config.token, + v: this.package.version, + n: this.package.name, + }; + + // establish new websocket connection + const socket = new WebSocket(`wss://homebridge-gsh.iot.oz.nu/socket?${querystring.stringify(qs)}`); + + this.hap = new Hap(socket, this.log, this.homebridgeConfig.bridge.pin, this.config); + + // listen for websocket status events, connect and disconnect events, errors, etc. + socket.on('websocket-status', (status) => { + this.log.info(status); + }); + + socket.on('json', async (req) => { + if (req.serverMessage) { + this.log.warn(req.serverMessage); + } + + if (!req.body || !req.body.inputs) { + return; + } + + const res = (response) => { + socket.sendJson({ + type: 'response', + requestId: req.requestId, + body: response, + }); + }; + + // check we are ready to receive incoming request + if (!this.hap.ready) { + this.log.info('Devices Not Ready'); + return res(this.deviceNotReady(req.body)); + } + + for (const input of req.body.inputs) { + input.requestId = req.body.requestId; + switch (input.intent) { + case 'action.devices.SYNC': + setTimeout(() => { + this.log.debug('Sending full post-sync state report'); + this.hap.sendFullStateReport(); + }, 10000); + return res(await this.onSync(req.body)); + case 'action.devices.QUERY': + return res(await this.onQuery(req.body)); + case 'action.devices.EXECUTE': + return res(await this.onExecute(req.body)); + case 'action.devices.DISCONNECT': + return res(await this.onDisconnect(req.body)); + default: + this.log.error(`ERROR - Unknown Intent: ${input.intent}`); + break; + } + } + }); + } + + async onSync(body) { + this.log.info('Received SYNC intent'); + this.log.debug(JSON.stringify(body, null, 2)); + + const devices = await this.hap.buildSyncResponse() as any[]; + + if (!devices.length) { + this.log.warn('No supported devices found. See https://git.io/JfuHW'); + return this.deviceNotReady(body); + } + + this.log.debug(devices); + + return { + requestId: body.requestId, + payload: { + agentUserId: null, // this is populated by the server + devices, + }, + }; + } + + async onQuery(body) { + this.log.info('Received QUERY intent'); + this.log.debug(JSON.stringify(body, null, 2)); + + const devices = await this.hap.query(body.inputs[0].payload.devices); + + this.log.debug(devices); + + return { + requestId: body.requestId, + payload: { + devices, + }, + }; + } + + async onExecute(body) { + this.log.info('Received EXECUTE intent'); + this.log.debug(JSON.stringify(body, null, 2)); + + const commands = await this.hap.execute(body.inputs[0].payload.commands) as undefined; + + this.log.debug(commands); + + return { + requestId: body.requestId, + payload: { + commands, + }, + }; + } + + async onDisconnect(body) { + this.log.info('Received DISCONNECT intent'); + this.log.debug(JSON.stringify(body, null, 2)); + return { + requestId: body.requestId, + payload: {}, + }; + } + + deviceNotReady(body) { + return { + requestId: body.requestId, + payload: { + errorCode: 'deviceNotReady', + status: 'ERROR', + }, + }; + } +} diff --git a/src/platform.ts b/src/platform.ts new file mode 100644 index 0000000..462a718 --- /dev/null +++ b/src/platform.ts @@ -0,0 +1,26 @@ +/** + * Homebridge Entry Point + */ + +import * as path from 'path'; +import * as fs from 'fs-extra'; +import type { API } from 'homebridge'; +import { PluginConfig } from './interfaces'; + +export class HomebridgeGoogleSmartHome { + constructor( + public log, + public config: PluginConfig, + public api: API, + ) { + if (this.config.token) { + this.start(); + } + } + + async start() { + const { Plugin } = await import('./main'); + const homebridgeConfig = await fs.readJson(path.resolve(this.api.user.configPath())); + return new Plugin(this.log, this.config, homebridgeConfig); + } +} \ No newline at end of file diff --git a/src/settings.ts b/src/settings.ts new file mode 100644 index 0000000..263ac73 --- /dev/null +++ b/src/settings.ts @@ -0,0 +1,9 @@ +/** + * This is the name of the platform that users will use to register the plugin in the Homebridge config.json + */ +export const PLATFORM_NAME = 'google-smarthome'; + +/** + * This must match the name of your plugin as defined the package.json + */ +export const PLUGIN_NAME = 'homebridge-gsh'; \ No newline at end of file diff --git a/src/types/door.ts b/src/types/door.ts new file mode 100644 index 0000000..2062fc2 --- /dev/null +++ b/src/types/door.ts @@ -0,0 +1,66 @@ + +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Door { + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.DOOR', + traits: [ + 'action.devices.traits.OpenClose', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + openDirection: ['IN', 'OUT'], + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: true, + online: true, + openPercent: service.characteristics.find(x => x.type === Characteristic.CurrentPosition).value, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OpenClose'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetPosition).iid, + value: command.execution[0].params.openPercent, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/fan-v2.ts b/src/types/fan-v2.ts new file mode 100644 index 0000000..4e68176 --- /dev/null +++ b/src/types/fan-v2.ts @@ -0,0 +1,62 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Fanv2 { + sync(service: HapService) { + + return { + id: service.uniqueId, + type: 'action.devices.types.FAN', + traits: [ + 'action.devices.traits.OnOff', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: service.characteristics.find(x => x.type === Characteristic.Active).value ? true : false, + online: true, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OnOff'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Active).iid, + value: command.execution[0].params.on ? 1 : 0, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/fan.ts b/src/types/fan.ts new file mode 100644 index 0000000..91c8ecc --- /dev/null +++ b/src/types/fan.ts @@ -0,0 +1,62 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Fan { + sync(service: HapService) { + + return { + id: service.uniqueId, + type: 'action.devices.types.FAN', + traits: [ + 'action.devices.traits.OnOff', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: service.characteristics.find(x => x.type === Characteristic.On).value, + online: true, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OnOff'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.On).iid, + value: command.execution[0].params.on, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/garage-door-opener.ts b/src/types/garage-door-opener.ts new file mode 100644 index 0000000..b816f51 --- /dev/null +++ b/src/types/garage-door-opener.ts @@ -0,0 +1,94 @@ +import type { SmartHomeV1ExecuteRequestCommands, SmartHomeV1SyncDevices } from 'actions-on-google'; +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class GarageDoorOpener { + public twoFactorRequired = true; + + sync(service: HapService): SmartHomeV1SyncDevices { + return { + id: service.uniqueId, + type: 'action.devices.types.GARAGE', + traits: [ + 'action.devices.traits.OpenClose', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + openDirection: ['UP', 'DOWN'], + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + hwVersion: service.accessoryInformation.HardwareRevision, + swVersion: service.accessoryInformation.SoftwareRevision, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + /** + * GSH impliments garrage door as an open percentage, while HomeKit impliments it as open/closed/opening/closing + * To work around this we just set the values to something that works. + */ + const currentDoorState = service.characteristics.find(x => x.type === Characteristic.CurrentDoorState).value; + // open, closed, opening, closing, stopped + const openPercent = [100, 0, 50, 50, 50, 50][currentDoorState]; + + return { + on: true, + online: true, + openPercent, + } as any; + } + + execute(service: HapService, command: SmartHomeV1ExecuteRequestCommands): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OpenClose'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetDoorState).iid, + value: command.execution[0].params.openPercent ? 0 : 1, + }], + }; + return { payload }; + } + } + } + + is2faRequired(command: SmartHomeV1ExecuteRequestCommands): boolean { + if (!command.execution.length) { + return false; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OpenClose'): { + if (command.execution[0].params.openPercent > 0) { + return true; + } + } + } + + return false; + } + +} \ No newline at end of file diff --git a/src/types/heater-cooler.ts b/src/types/heater-cooler.ts new file mode 100644 index 0000000..fe8624d --- /dev/null +++ b/src/types/heater-cooler.ts @@ -0,0 +1,159 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; +import { Hap } from '../hap'; + +export class HeaterCooler { + constructor( + private hap: Hap, + ) { } + + sync(service: HapService) { + const availableThermostatModes = ['off', 'heat', 'cool']; + + if (service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature) && + service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature)) { + availableThermostatModes.push('heatcool'); + } else { + availableThermostatModes.push('auto'); + } + + return { + id: service.uniqueId, + type: 'action.devices.types.THERMOSTAT', + traits: [ + 'action.devices.traits.TemperatureSetting', + ], + attributes: { + availableThermostatModes: availableThermostatModes.join(','), + thermostatTemperatureUnit: this.hap.config.forceFahrenheit ? 'F' + : service.characteristics.find(x => x.type === Characteristic.TemperatureDisplayUnits)?.value ? 'F' : 'C', + }, + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + const targetHeatingCoolingState = service.characteristics.find(x => x.type === Characteristic.TargetHeaterCoolerState).value; + const activeState = service.characteristics.find(x => x.type === Characteristic.Active).value; + const thermostatMode = activeState ? ['auto', 'heat', 'cool'][targetHeatingCoolingState] : 'off'; + + const response = { + online: true, + thermostatMode, + thermostatTemperatureAmbient: service.characteristics.find(x => x.type === Characteristic.CurrentTemperature).value, + } as any; + + // check if device reports CoolingThresholdTemperature and HeatingThresholdTemperature + if (service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature) && + service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature)) { + + if (response.thermostatMode === 'heat') { + response.thermostatTemperatureSetpoint = service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).value; + } else if (response.thermostatMode === 'cool') { + response.thermostatTemperatureSetpoint = service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).value; + } else if (response.thermostatMode === 'auto') { + response.thermostatMode = 'heatcool'; + response.thermostatTemperatureSetpointLow = service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).value; + response.thermostatTemperatureSetpointHigh = service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).value; + } + } + + return response; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.ThermostatSetMode'): { + const mode = { + auto: 0, + heat: 1, + cool: 2, + heatcool: 0, + }; + let payload; + + if (command.execution[0].params.thermostatMode === 'off') { + payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Active).iid, + value: 0, + }], + }; + } else { + payload = { + characteristics: [ + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Active).iid, + value: 1, + }, { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetHeaterCoolerState).iid, + value: mode[command.execution[0].params.thermostatMode], + }, + ], + }; + } + return { payload }; + } + case ('action.devices.commands.ThermostatTemperatureSetpoint'): { + const payload = { + characteristics: [ + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpoint, + }, + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpoint, + }, + ], + }; + return { payload }; + } + case ('action.devices.commands.ThermostatTemperatureSetRange'): { + const payload = { + characteristics: [ + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpointHigh, + }, + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpointLow, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/humidity-sensor.ts b/src/types/humidity-sensor.ts new file mode 100644 index 0000000..cddaca1 --- /dev/null +++ b/src/types/humidity-sensor.ts @@ -0,0 +1,52 @@ +import type { SmartHomeV1ExecuteRequestCommands, SmartHomeV1SyncDevices } from 'actions-on-google'; +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class HumiditySensor { + sync(service: HapService): SmartHomeV1SyncDevices { + return { + id: service.uniqueId, + type: 'action.devices.types.SENSOR', + traits: [ + 'action.devices.traits.HumiditySetting', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + queryOnlyHumiditySetting: true, + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + hwVersion: service.accessoryInformation.HardwareRevision, + swVersion: service.accessoryInformation.SoftwareRevision, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + online: true, + humidityAmbientPercent: service.characteristics.find(x => x.type === Characteristic.CurrentRelativeHumidity)?.value, + } as any; + } + + execute(service: HapService, command: SmartHomeV1ExecuteRequestCommands): AccessoryTypeExecuteResponse { + return { payload: { characteristics: [] } }; + } + +} \ No newline at end of file diff --git a/src/types/lightbulb.ts b/src/types/lightbulb.ts new file mode 100644 index 0000000..c9bbccb --- /dev/null +++ b/src/types/lightbulb.ts @@ -0,0 +1,159 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Lightbulb { + sync(service: HapService) { + + const attributes = {} as any; + const traits = [ + 'action.devices.traits.OnOff', + ]; + + // check if the bulb has the brightness characteristic + if (service.characteristics.find(x => x.type === Characteristic.Brightness)) { + traits.push('action.devices.traits.Brightness'); + } + + // check if the bulb has color + if (service.characteristics.find(x => x.type === Characteristic.Hue)) { + traits.push('action.devices.traits.ColorSetting'); + attributes.colorModel = 'hsv'; + attributes.colorTemp; + } + + if (service.characteristics.find(x => x.type === Characteristic.ColorTemperature)) { + traits.push('action.devices.traits.ColorSetting'); + attributes.colorTemperatureRange = { + temperatureMinK: 2000, + temperatureMaxK: 6000, + }; + attributes.commandOnlyColorSetting = false; + } + + return { + id: service.uniqueId, + type: 'action.devices.types.LIGHT', + traits, + attributes, + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + const response = { + on: service.characteristics.find(x => x.type === Characteristic.On).value, + online: true, + } as any; + + // check if the bulb has the brightness characteristic + if (service.characteristics.find(x => x.type === Characteristic.Brightness)) { + response.brightness = service.characteristics.find(x => x.type === Characteristic.Brightness).value; + } + + // check if the bulb has color + if (service.characteristics.find(x => x.type === Characteristic.Hue)) { + response.color = { + spectrumHsv: { + hue: service.characteristics.find(x => x.type === Characteristic.Hue).value, + saturation: service.characteristics.find(x => x.type === Characteristic.Saturation).value / 100, + value: 1, + }, + }; + } + + // check if the bulb has cct + if (service.characteristics.find(x => x.type === Characteristic.ColorTemperature)) { + const min = service.characteristics.find(x => x.type === Characteristic.ColorTemperature).minValue; + const max = service.characteristics.find(x => x.type === Characteristic.ColorTemperature).maxValue; + const value = (max - min) - (service.characteristics.find(x => x.type === Characteristic.ColorTemperature).value - min) + min; + response.color = { + temperatureK: 2000 + (6000 - 2000) * ((value - min) / (max - min)), + }; + } + + return response; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OnOff'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.On).iid, + value: command.execution[0].params.on, + }], + }; + return { payload }; + } + case ('action.devices.commands.BrightnessAbsolute'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Brightness).iid, + value: command.execution[0].params.brightness, + }, + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.On).iid, + value: command.execution[0].params.brightness ? true : false, + }], + }; + return { payload }; + } + case ('action.devices.commands.ColorAbsolute'): { + + const payload = { characteristics: [] }; + + if (command.execution[0].params.color.spectrumHSV) { + payload.characteristics.push({ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Hue).iid, + value: command.execution[0].params.color.spectrumHSV.hue, + }, { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Saturation).iid, + value: command.execution[0].params.color.spectrumHSV.saturation * 100, + }); + } + + if (command.execution[0].params.color.temperature) { + const min = service.characteristics.find(x => x.type === Characteristic.ColorTemperature).minValue; + const max = service.characteristics.find(x => x.type === Characteristic.ColorTemperature).maxValue; + const value = command.execution[0].params.color.temperature; + const hbAccessoryValue = min + (max - min) * ((value - 2000) / (6000 - 2000)); + payload.characteristics.push({ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.ColorTemperature).iid, + value: (max - min) - (hbAccessoryValue - min) + min, + }); + } + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/lock-mechanism.ts b/src/types/lock-mechanism.ts new file mode 100644 index 0000000..30d82b4 --- /dev/null +++ b/src/types/lock-mechanism.ts @@ -0,0 +1,104 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class LockMechanism { + public twoFactorRequired = true; + + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.LOCK', + traits: [ + 'action.devices.traits.LockUnlock', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + const response = { + online: true, + } as any; + + const currentLockState = service.characteristics.find(x => x.type === Characteristic.LockCurrentState).value; + + switch (currentLockState) { + case (0): { + response.isLocked = false; + response.isJammed = false; + break; + } + case (1): { + response.isLocked = true; + response.isJammed = false; + break; + } + case (2): { + response.isLocked = false; + response.isJammed = true; + break; + } + case (3): { + response.isLocked = false; + response.isJammed = false; + break; + } + } + + return response; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.LockUnlock'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.LockTargetState).iid, + value: command.execution[0].params.lock ? 1 : 0, + }], + }; + return { payload }; + } + } + } + + is2faRequired(command): boolean { + if (!command.execution.length) { + return false; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.LockUnlock'): { + if (command.execution[0].params.lock === false) { + return true; + } + } + } + + return false; + } +} \ No newline at end of file diff --git a/src/types/security-system.ts b/src/types/security-system.ts new file mode 100644 index 0000000..04d4296 --- /dev/null +++ b/src/types/security-system.ts @@ -0,0 +1,153 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class SecuritySystem { + public twoFactorRequired = true; + public returnStateOnExecute = true; + + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.SECURITYSYSTEM', + traits: [ + 'action.devices.traits.ArmDisarm', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + availableArmLevels: { + levels: [ + { + level_name: 'HOME', + level_values: [{ + level_synonym: ['Home'], + lang: 'en', + }, { + level_synonym: ['Anwesend'], + lang: 'de', + }], + }, { + level_name: 'AWAY', + level_values: [{ + level_synonym: ['Away'], + lang: 'en', + }, { + level_synonym: ['Abwesend'], + lang: 'de', + }], + }, { + level_name: 'NIGHT', + level_values: [{ + level_synonym: ['Night'], + lang: 'en', + }, { + level_synonym: ['Nacht'], + lang: 'de', + }], + }, + ], + ordered: true, + }, + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + const availableSystemCurrentStates = ['HOME', 'AWAY', 'NIGHT', 'OFF']; + + const response = { + on: true, + online: true, + status: 'SUCCESS', + } as any; + + const securitySystemCurrentState = service.characteristics.find(x => x.type === Characteristic.SecuritySystemCurrentState).value; + + const currentArmLevel = availableSystemCurrentStates[securitySystemCurrentState]; + + if (currentArmLevel === 'OFF') { + response.isArmed = false; + } else { + response.isArmed = true; + response.currentArmLevel = currentArmLevel; + } + + return response; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.ArmDisarm'): { + const mode = { + HOME: 0, + AWAY: 1, + NIGHT: 2, + OFF: 3, + }; + + let securitySystemTargetState; + + if (command.execution[0].params.arm === true) { + securitySystemTargetState = mode[command.execution[0].params.armLevel]; + } else { + securitySystemTargetState = mode.OFF; + } + + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.SecuritySystemTargetState).iid, + value: securitySystemTargetState, + }], + }; + + const states = { + isArmed: command.execution[0].params.arm, + currentArmLevel: command.execution[0].params.armLevel, + }; + + return { payload, states }; + } + } + } + + is2faRequired(command): boolean { + if (!command.execution.length) { + return false; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.ArmDisarm'): { + if (command.execution[0].params.arm === true) { + return false; + } + + return true; + } + } + + return false; + } +} \ No newline at end of file diff --git a/src/types/switch.ts b/src/types/switch.ts new file mode 100644 index 0000000..2fd8e69 --- /dev/null +++ b/src/types/switch.ts @@ -0,0 +1,67 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Switch { + private deviceType: string; + + constructor(type) { + this.deviceType = type; + } + + sync(service: HapService) { + return { + id: service.uniqueId, + type: this.deviceType, + traits: [ + 'action.devices.traits.OnOff', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: service.characteristics.find(x => x.type === Characteristic.On).value, + online: true, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OnOff'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.On).iid, + value: command.execution[0].params.on, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/television.ts b/src/types/television.ts new file mode 100644 index 0000000..e9f24ec --- /dev/null +++ b/src/types/television.ts @@ -0,0 +1,61 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Television { + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.TV', + traits: [ + 'action.devices.traits.OnOff', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: service.characteristics.find(x => x.type === Characteristic.Active).value ? true : false, + online: true, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OnOff'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.Active).iid, + value: command.execution[0].params.on ? 1 : 0, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/temperature-sensor.ts b/src/types/temperature-sensor.ts new file mode 100644 index 0000000..6a958e1 --- /dev/null +++ b/src/types/temperature-sensor.ts @@ -0,0 +1,59 @@ +import type { SmartHomeV1ExecuteRequestCommands, SmartHomeV1SyncDevices } from 'actions-on-google'; +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; +import { Hap } from '../hap'; + +export class TemperatureSensor { + constructor( + private hap: Hap, + ) { } + + sync(service: HapService): SmartHomeV1SyncDevices { + return { + id: service.uniqueId, + type: 'action.devices.types.SENSOR', + traits: [ + 'action.devices.traits.TemperatureControl', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + queryOnlyTemperatureControl: true, + temperatureUnitForUX: this.hap.config.forceFahrenheit ? 'F' : 'C', + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + hwVersion: service.accessoryInformation.HardwareRevision, + swVersion: service.accessoryInformation.SoftwareRevision, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + online: true, + temperatureSetpointCelsius: service.characteristics.find(x => x.type === Characteristic.CurrentTemperature)?.value, + temperatureAmbientCelsius: service.characteristics.find(x => x.type === Characteristic.CurrentTemperature)?.value, + } as any; + } + + execute(service: HapService, command: SmartHomeV1ExecuteRequestCommands): AccessoryTypeExecuteResponse { + return { payload: { characteristics: [] } }; + } + +} \ No newline at end of file diff --git a/src/types/thermostat.ts b/src/types/thermostat.ts new file mode 100644 index 0000000..f50f454 --- /dev/null +++ b/src/types/thermostat.ts @@ -0,0 +1,138 @@ +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; +import { Hap } from '../hap'; + +export class Thermostat { + constructor( + private hap: Hap, + ) { } + + sync(service: HapService) { + const availableThermostatModes = ['off', 'heat', 'cool']; + + if (service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature) && + service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature)) { + availableThermostatModes.push('heatcool'); + } else { + availableThermostatModes.push('auto'); + } + + return { + id: service.uniqueId, + type: 'action.devices.types.THERMOSTAT', + traits: [ + 'action.devices.traits.TemperatureSetting', + ], + attributes: { + availableThermostatModes: availableThermostatModes.join(','), + thermostatTemperatureUnit: this.hap.config.forceFahrenheit ? 'F' + : service.characteristics.find(x => x.type === Characteristic.TemperatureDisplayUnits).value ? 'F' : 'C', + }, + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + const targetHeatingCoolingState = service.characteristics.find(x => x.type === Characteristic.TargetHeatingCoolingState).value; + const thermostatMode = ['off', 'heat', 'cool', 'auto'][targetHeatingCoolingState]; + + const response = { + online: true, + thermostatMode, + thermostatTemperatureSetpoint: service.characteristics.find(x => x.type === Characteristic.TargetTemperature).value, + thermostatTemperatureAmbient: service.characteristics.find(x => x.type === Characteristic.CurrentTemperature).value, + } as any; + + // check if device reports CurrentRelativeHumidity + if (service.characteristics.find(x => x.type === Characteristic.CurrentRelativeHumidity)) { + response.thermostatHumidityAmbient = service.characteristics.find(x => x.type === Characteristic.CurrentRelativeHumidity).value; + } + + // check if device reports CoolingThresholdTemperature and HeatingThresholdTemperature + if (service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature) && + service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature)) { + + // translate mode + if (response.thermostatMode === 'auto') { + response.thermostatMode = 'heatcool'; + } + + response.thermostatTemperatureSetpointLow = service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).value; + response.thermostatTemperatureSetpointHigh = service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).value; + } + + return response; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.ThermostatSetMode'): { + const mode = { + off: 0, + heat: 1, + cool: 2, + auto: 3, + heatcool: 3, + }; + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetHeatingCoolingState).iid, + value: mode[command.execution[0].params.thermostatMode], + }], + }; + return { payload }; + } + case ('action.devices.commands.ThermostatTemperatureSetpoint'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpoint, + }], + }; + return { payload }; + } + case ('action.devices.commands.ThermostatTemperatureSetRange'): { + const payload = { + characteristics: [ + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.CoolingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpointHigh, + }, + { + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.HeatingThresholdTemperature).iid, + value: command.execution[0].params.thermostatTemperatureSetpointLow, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/window-covering.ts b/src/types/window-covering.ts new file mode 100644 index 0000000..c933344 --- /dev/null +++ b/src/types/window-covering.ts @@ -0,0 +1,66 @@ + +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class WindowCovering { + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.BLINDS', + traits: [ + 'action.devices.traits.OpenClose', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + openDirection: ['UP', 'DOWN'], + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: true, + online: true, + openPercent: service.characteristics.find(x => x.type === Characteristic.CurrentPosition).value, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OpenClose'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetPosition).iid, + value: command.execution[0].params.openPercent, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/types/window.ts b/src/types/window.ts new file mode 100644 index 0000000..91b8630 --- /dev/null +++ b/src/types/window.ts @@ -0,0 +1,66 @@ + +import { Characteristic } from '../hap-types'; +import { HapService, AccessoryTypeExecuteResponse } from '../interfaces'; + +export class Window { + sync(service: HapService) { + return { + id: service.uniqueId, + type: 'action.devices.types.WINDOW', + traits: [ + 'action.devices.traits.OpenClose', + ], + name: { + defaultNames: [ + service.serviceName, + service.accessoryInformation.Name, + ], + name: service.serviceName, + nicknames: [], + }, + willReportState: true, + attributes: { + openDirection: ['LEFT', 'RIGHT'], + }, + deviceInfo: { + manufacturer: service.accessoryInformation.Manufacturer, + model: service.accessoryInformation.Model, + }, + customData: { + aid: service.aid, + iid: service.iid, + instanceUsername: service.instance.username, + instanceIpAddress: service.instance.ipAddress, + instancePort: service.instance.port, + }, + }; + } + + query(service: HapService) { + return { + on: true, + online: true, + openPercent: service.characteristics.find(x => x.type === Characteristic.CurrentPosition).value, + }; + } + + execute(service: HapService, command): AccessoryTypeExecuteResponse { + if (!command.execution.length) { + return { payload: { characteristics: [] } }; + } + + switch (command.execution[0].command) { + case ('action.devices.commands.OpenClose'): { + const payload = { + characteristics: [{ + aid: service.aid, + iid: service.characteristics.find(x => x.type === Characteristic.TargetPosition).iid, + value: command.execution[0].params.openPercent, + }], + }; + return { payload }; + } + } + } + +} \ No newline at end of file diff --git a/src/uuid.ts b/src/uuid.ts new file mode 100644 index 0000000..c6efad7 --- /dev/null +++ b/src/uuid.ts @@ -0,0 +1,22 @@ +// https://github.com/homebridge/HAP-NodeJS/blob/master/src/lib/util/uuid.ts + +const VALID_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; + +export function isValid(UUID: string) { + return VALID_UUID_REGEX.test(UUID); +} +const VALID_SHORT_REGEX = /^[0-9a-f]{1,8}$/i; + +export function toLongFormUUID(uuid: string, base = '-0000-1000-8000-0026BB765291') { + if (isValid(uuid)) { + return uuid.toUpperCase(); + } + if (!VALID_SHORT_REGEX.test(uuid)) { + throw new TypeError('uuid was not a valid UUID or short form UUID'); + } + if (!isValid('00000000' + base)) { + throw new TypeError('base was not a valid base UUID'); + } + + return (('00000000' + uuid).substr(-8) + base).toUpperCase(); +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3ac39f8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "declaration": true, + "removeComments": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "es6", + "sourceMap": true, + "outDir": "./dist", + "baseUrl": "./", + "esModuleInterop": true + }, + "exclude": [ + "scripts", + "node_modules", + "./dist", + ] +} \ No newline at end of file