{"_id":"@astronautlabs/is05","_rev":"3-59aa725312ad048a58ec338d665eb82f","name":"@astronautlabs/is05","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@astronautlabs/is05","version":"0.0.1","description":"AMWA IS-05 NMOS Device Connection Management","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","gen":"ts-node tools/generate-from-schema.ts spec/APIs/schemas src/schema","test":"npm run build","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/astronautlabs/is05.git"},"keywords":["amwa","nmos","is-05","is05","broadcast"],"author":{"name":"Astronaut Labs, LLC"},"license":"MIT","bugs":{"url":"https://github.com/astronautlabs/is05/issues"},"homepage":"https://github.com/astronautlabs/is05#readme","devDependencies":{"@types/express":"^4.17.11","@types/node":"^14.14.37","source-map-support":"^0.5.19","ts-node":"^9.1.1","typescript":"^4.2.4"},"dependencies":{"@1500cloud/taitimestamp":"^0.2.8","@alterior/web-server":"*","@astronautlabs/is04":"^0.0.3"},"gitHead":"060e580dc32c708c986257c747dde6f1533e4247","_id":"@astronautlabs/is05@0.0.1","_nodeVersion":"14.16.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-umP2pa2UFcm8kLxl3irSavwBXX8Jo28YIsBCzCID1+NcevFDRAF4GzSemg9EK+f8xiXy6QYwbZIX7eerrLPriw==","shasum":"8fb435addc1a80883790dd0d1f9695b786cd291e","tarball":"https://registry.npmjs.org/@astronautlabs/is05/-/is05-0.0.1.tgz","fileCount":168,"unpackedSize":141379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc7CaCRA9TVsSAnZWagAAwpgQAJKezOqhJFgsrzK7bmPR\nZZ9Ic/kIU22KLJQnsIuRRm0f5LJk0UWF0l/U0RbLOuGM/of2uk+C9VBe40Ke\nhABbqo6tiLAHZnP4fxjH79HYBqmgKrG0LmushjNsscvGh5S3DI84fyuFh5e2\nbmj5wcpx3BPtTbDikQYSvdd+OvL1DaYZOZeep/orh4o+eopjW+Sa4CB9z2iq\nxQCo2pujfWx2/fQ5l7Bic4jLQWkAB8qwNlOKyOPiwIo3/gKIcYfAsIXTKZj+\nPwUs1eaQe4kd/Fut1kIT5dnZflTvpJ3TKVuPfgtWCq9EYv6IBeEBoe/NKWYM\n4k15XGfzKk55tepmqIa9gzuzBFJOwK05kjnsI/gCdkdHCR4FalufWxpjQjmO\nXDt5NveS/EEJmfZYWUI1G1Wox1ASWV2GmqRatbVPNWRnrJP5XRJySIJP8LcK\nWUrl1mFYuR7h5Ty1smlcq47PbyQJkyiG+/PIp191WHktKj+8FT5nzi7L10pb\nnzAhfDkT29tLXOe+26y2W9DpTYBRzIp0JzRFTNd/uOSvXHpJbKuFXsevjF1O\nzUleCFH6k92KJF/kdmtTBTbFio9qNxpjKO4NnPaTgleZ++GWdT1UNwMO5F0a\ne7LFOa6K4nrO9KrNyCi+bYy+srx32zBsdB4QQkqMh8X62Me/KvB3VhMcMn+0\n/UuH\r\n=9doa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWG8ljzGelE+b2HctWOTYQR0CuFZ9/ijFGrp70qz7nEwIhAKfBgYoi1Zn7FjBmVfQwYmLeu7tc+MmgxCp5sSedmRor"}]},"_npmUser":{"name":"rezonant","email":"wilahti@gmail.com"},"directories":{},"maintainers":[{"name":"rezonant","email":"wilahti@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is05_0.0.1_1618194586525_0.33229048049168175"},"_hasShrinkwrap":false},"0.0.2":{"name":"@astronautlabs/is05","version":"0.0.2","description":"AMWA IS-05 NMOS Device Connection Management","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","gen":"ts-node tools/generate-from-schema.ts spec/APIs/schemas src/schema","test":"npm run build","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/astronautlabs/is05.git"},"keywords":["amwa","nmos","is-05","is05","broadcast"],"author":{"name":"Astronaut Labs, LLC"},"license":"MIT","bugs":{"url":"https://github.com/astronautlabs/is05/issues"},"homepage":"https://github.com/astronautlabs/is05#readme","devDependencies":{"@types/express":"^4.17.11","@types/node":"^14.14.37","source-map-support":"^0.5.19","ts-node":"^9.1.1","typescript":"^4.2.4"},"dependencies":{"@1500cloud/taitimestamp":"^0.2.8","@alterior/web-server":"*","@astronautlabs/is04":"^0.0.4"},"gitHead":"d1bc5ebd5201a8d85831a13b2b02cf94fba6d5a5","_id":"@astronautlabs/is05@0.0.2","_nodeVersion":"14.16.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-AanLSqvwqV2Gu1CTz/zazwDx8jSZFAcal789JLAHyV2+XZ5Y6QnSR7C/ZYa/77BiOz4A6/B5HAXFEnzlc7XcwQ==","shasum":"79c19194ce14ee9b0093b9da82445f2f9bcf3a06","tarball":"https://registry.npmjs.org/@astronautlabs/is05/-/is05-0.0.2.tgz","fileCount":168,"unpackedSize":141379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc7RNCRA9TVsSAnZWagAAVi4P/0NRI7eHuW5WZylxYM3N\nrUyMkrZr6Bk9yW3Qwi8RyDhaaJNLwOdWRvdULi4okWZUOTY0soAcgBoxSs1E\nou8OI5rudRWMn7AUYNkCKGKDNBpoUzOfD2joQdw6C8ZocWFy8LRYA1SfdSId\nREm/SABeGO6F+2OcRUkBgeciNWvmPZW3jIGctQiHWCilNwMnQDqKLxweO9WR\nGQcqlxtX8FBHMk3WcGY55tXKkYvGcKmN3Wg6R6u15Kj90Y26ZuVVHSX5EU6e\nIaMpSjAWfXKA7JNEa4UjOt2xxOOElX+isNLFu2wrBUBdepN0ZrMC3YB1LXq/\nH6zPxBumKhdUsDafdpTB2bEnCTnw9ai6a51Q27G4O0NmLPj2mnvMCXwb4qO3\n3RgFDewbgtXkqCf3PVg6lcSUxYWkrRV3LudxyWSp1BtiGWSJtlcQKdvtWSGO\n/zmk4roSeB7ynaZblRoDG23AAHk9sg7hGyB+POVKu11/lfAbiOTnV0EJCMTj\nsILRPDuIUOIiybpN1L9GIyFJI9/2zVG2oatPNeQOOnH3sq6iSxk4HBh38e28\nWL0CXvz7tiJN5UJ03ocFlPP2xdeinkLGMBjpYhNrGmgWWNa7gaibvLK4vMEn\nMFLJdr/AqIQTbWnOmIOCOEEGHAJRVImOeCx9LPNMW1515BqfWdwzNUCvdjVp\nDmlR\r\n=06cE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBQIyTd4iF3PK0FZivE6UE20JBXDDWEoRQjwJ/2HGpJAiEA//g7Iwpg/uP02ZgHFHbaXiOPcswJwhsqmBeUX7yxhzU="}]},"_npmUser":{"name":"rezonant","email":"wilahti@gmail.com"},"directories":{},"maintainers":[{"name":"rezonant","email":"wilahti@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is05_0.0.2_1618195532845_0.8339690871076777"},"_hasShrinkwrap":false},"0.0.3":{"name":"@astronautlabs/is05","version":"0.0.3","description":"AMWA IS-05 NMOS Device Connection Management","main":"dist/index.js","publishConfig":{"access":"public"},"scripts":{"build":"tsc -b","gen":"ts-node tools/generate-from-schema.ts spec/APIs/schemas src/schema","test":"npm run build","prepublishOnly":"npm test"},"repository":{"type":"git","url":"git+https://github.com/astronautlabs/is05.git"},"keywords":["amwa","nmos","is-05","is05","broadcast"],"author":{"name":"Astronaut Labs, LLC"},"license":"MIT","bugs":{"url":"https://github.com/astronautlabs/is05/issues"},"homepage":"https://github.com/astronautlabs/is05#readme","devDependencies":{"@types/express":"^4.17.11","@types/node":"^14.14.37","source-map-support":"^0.5.19","ts-node":"^9.1.1","typescript":"^4.2.4"},"dependencies":{"@1500cloud/taitimestamp":"^0.2.8","@alterior/web-server":"*","@astronautlabs/is04":"^0.0.5"},"gitHead":"f271ba0a1641fb8e77c48fa1162a2eac0df51d64","_id":"@astronautlabs/is05@0.0.3","_nodeVersion":"14.16.0","_npmVersion":"7.8.0","dist":{"integrity":"sha512-KO060z0k5WV96zz6q7igJXeFwy2rNPmhXro2Z15kKaqWbgXxSswdre2CZ4o/Lau8H3H8/BgMTvD33hm4rOhilg==","shasum":"b8248c049957435b7a8b02dc892ef956f3cea113","tarball":"https://registry.npmjs.org/@astronautlabs/is05/-/is05-0.0.3.tgz","fileCount":168,"unpackedSize":141379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgc7UmCRA9TVsSAnZWagAAgIQP/i7zbn6ojjHV9V8imy3O\nSZmHbd0pAEGP6h0CBB9MRSz6kTgFqGC9rwtruuIebx6b4/wf02WugI/p7xYA\n9kxY8bVrgLZd5odWrYR6bZvcJCjfCG9J5bn1wi3Yz4zN9bjDH8ki52GgZ+o2\nEHEqVy7pQDNoNtnjggTVZOHmzuuQ8Wh1UcU70IY1ex6DCCjQTGW8fT/Zirql\nlASqU+7b/JGZExYMI3vbT0jTHUvb773USSl1P+KF9q5LHLsI684q1WI+GAPb\neGEVI7+FWtFdTAhfp0n11CUlfSajLqH5J7iqtfc41DYt3/d6/rABtjbTUiz2\niAUhs2XMdbhBuRTuuVKp/OC8lVl2B96a9Vs7j7QKWtWSW6Aet57PZ7tWUE1O\nb3XHEUpdblA7wlTQ5qQVjTMCuRj9mZQKEYBWWZ1L4QANfzbzj7FY7Ol2KZ39\nZ+nTsDrmTzLTLJOOjLjJpUYqqBbR2vOQYFBQZdNgbl+CoE57gQ7/wGPJNMxf\nu+RkPiwvoKu6nqtzuKk8lAidSJOQmw1iVh7vnzb0ICjkatmxZNxZbVYultRf\nUdgM0hZ+xsbSeKH4Uvd4Pf9SXoQjbOCfIuJbPFai3bc2nI5NwChuyBOVd8s+\nYz+51rUX7WMYnv3fKJGPkzrOpiCuTmvoOuDSRV8cKcUYqzUxn0OePNsD/Njd\nkyGp\r\n=nsLm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9eGXQYZvlMsY9FtmEHwK5oxYXdeU3l9H5vFbrQ2mGyQIhANdWxE+BA9SKLGa9GGCUZPVvrRfzNtlA1HMqNFgVoHr5"}]},"_npmUser":{"name":"rezonant","email":"wilahti@gmail.com"},"directories":{},"maintainers":[{"name":"rezonant","email":"wilahti@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is05_0.0.3_1618195750297_0.42878443781330366"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-12T02:29:46.340Z","0.0.1":"2021-04-12T02:29:46.682Z","modified":"2022-04-04T15:54:55.280Z","0.0.2":"2021-04-12T02:45:32.970Z","0.0.3":"2021-04-12T02:49:10.463Z"},"maintainers":[{"name":"rezonant","email":"wilahti@gmail.com"}],"description":"AMWA IS-05 NMOS Device Connection Management","homepage":"https://github.com/astronautlabs/is05#readme","keywords":["amwa","nmos","is-05","is05","broadcast"],"repository":{"type":"git","url":"git+https://github.com/astronautlabs/is05.git"},"author":{"name":"Astronaut Labs, LLC"},"bugs":{"url":"https://github.com/astronautlabs/is05/issues"},"license":"MIT","readme":"# @/is05\r\n\r\n[![npm](https://img.shields.io/npm/v/@astronautlabs/is05)](https://npmjs.com/package/@astronautlabs/is05)\r\n[![CircleCI](https://circleci.com/gh/astronautlabs/is05.svg?style=svg)](https://circleci.com/gh/astronautlabs/is05)\r\n\r\n> **[📜 NMOS IS-05](https://specs.amwa.tv/is-05/)**  \r\n> AMWA IS-05 NMOS Device Connection Management Specification (Stable)\r\n\r\n> 📺 Part of the **Astronaut Labs Broadcast Suite**  \r\n> [@/is04](https://github.com/astronautlabs/is04) |\r\n> [@/is05](https://github.com/astronautlabs/is05) |\r\n> [@/is07](https://github.com/astronautlabs/is07) |\r\n> [@/rfc8331](https://github.com/astronautlabs/rfc8331) |\r\n> [@/rtp](https://github.com/astronautlabs/rtp) |\r\n> [@/scte104](https://github.com/astronautlabs/scte104) | \r\n> [@/scte35](https://github.com/astronautlabs/scte35) | \r\n> [@/st2010](https://github.com/astronautlabs/st2010) | \r\n> [@/st291](https://github.com/astronautlabs/st291)\r\n\r\n> ⚠ **Alpha Quality**  \r\n> This library is still in development and is subject to change\r\n\r\n---\r\n\r\nImplementation of AMWA's NMOS IS-05 standard for Connection Management\r\n\r\n# Usage\r\n\r\n```\r\nnpm install @astronautlabs/is04 @astronautlabs/is05\r\n```\r\n\r\nFirst, set up @astronautlabs/is04 as indicated by that package, including registering your senders and receivers.\r\n\r\nNow, mount the `ConnectionApi`:\r\n\r\n```typescript\r\n@Mount() connectionApi : ConnectionApi\r\n```\r\n\r\nFor each sender/receiver, use the `ConnectionService` to set up its _state_:\r\n\r\n```typescript\r\nlet sender = this.registryService.addSender({\r\n    // ...\r\n});\r\nlet senderState = this.connectionService.getSenderState(sender.id);\r\n\r\nsenderState.activate = () => {\r\n    let incomingChanges = senderState.staged;\r\n    // use incomingChanges to modify the configuration of the sender\r\n};\r\n```\r\n\r\nThe library will call `activate()` whenever a staged change is set to be applied (immediately). The library will \r\nalso handle relative and absolute timed activations for you, but you should note that it does so using regular Javascript\r\ntimers (`setTimeout`). If you need more accuracy for your activation scheduling, you can implement it yourself however \r\nyou deem necessary:\r\n\r\n```typescript\r\nsenderState.scheduleActivation = (completed) => {\r\n    let activationDetails = senderState.staged.activation;\r\n    // implement the various kinds of activation however you wish\r\n    // when the moment of activation comes, you can execute the change \r\n    // however you want\r\n\r\n    // ...\r\n\r\n    // once the activation is completed, you must call the completed() \r\n    // callback. This allows the library to update the state of the \r\n    // Connection API as well as the state of the Node API (IS-04) for \r\n    // you.\r\n\r\n    completed();\r\n\r\n    // When you specify scheduleActivation, the \"activate\" callback is \r\n    // ignored, you do not have to call it, nor will the library call\r\n    // it.\r\n};\r\n```\r\n\r\n# Transport Types and Files \r\n\r\nWhen serving the `/transporttype` endpoint of the Connection API, this library\r\nconsults the registration information for the related resource (sender or receiver). The value of `transport` on that resource is sent back in the API response.\r\n\r\nIS-05 also lets you indicate the _transport file_ for a sender. For RTP / ST 2110 this would be the SDP, for instance. To specify this, there is a `transportFile` property on the `ResourceState` object you get back from the `ConnectionService.getState()` family of methods.\r\n\r\n```typescript\r\nimport { Sender } from \"@astronautlabs/is04\";\r\nimport { SenderState } from \"@astronautlabs/is05\";\r\n\r\n// ...\r\n\r\nlet sender : Sender;\r\nlet senderState = connectionService.getSenderState(sender.id);\r\n\r\nsenderState.transportFile = {\r\n    contentType: 'application/sdp',\r\n    content: '...' // can also be a Node.js Buffer\r\n};\r\n```","readmeFilename":"README.md"}