{"_id":"@agalin920/app-sdk","name":"@agalin920/app-sdk","dist-tags":{"latest":"1.0.0-alpha.1"},"versions":{"1.0.0-alpha.1":{"name":"@agalin920/app-sdk","version":"1.0.0-alpha.1","description":"SDK for building custom apps registered with Zesty.io","type":"module","module":"./es/index.js","types":"./es/index.d.ts","scripts":{"build":"npm run build:esm","build:esm":"tsc","release":"npm run build && npm publish","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Zesty.io","email":"developers@zesty.io"},"license":"ISC","devDependencies":{"prettier":"^2.3.2","pretty-quick":"^3.1.1","typescript":"^5.2.2"},"gitHead":"e1b6b8d7bcc6beda75345c8d61b0313c691d169e","_id":"@agalin920/app-sdk@1.0.0-alpha.1","_nodeVersion":"18.9.0","_npmVersion":"8.19.1","dist":{"integrity":"sha512-X50I1ALh5uOcoofn8U989YYcSy825et4xmEfiCEgnIDs/DQAaXQHx166Uv8vb2434VK9YXUh6NuY12XTs+VEQg==","shasum":"0a6bcc5ac512fb9128b7ecaac648908503579a8d","tarball":"https://registry.npmjs.org/@agalin920/app-sdk/-/app-sdk-1.0.0-alpha.1.tgz","fileCount":4,"unpackedSize":8490,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK0beQ9qSB0HlZ9BmKbmRfjuZwPwsWSY5Rc+pCqpTF4QIhAOA1J1mkdW0KWV9Yze2iomY5DLffFWuraqd7l6s7vMtQ"}]},"_npmUser":{"name":"agalin920","email":"agalin920@gmail.com"},"directories":{},"maintainers":[{"name":"agalin920","email":"agalin920@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-sdk_1.0.0-alpha.1_1701044258394_0.007117922625119011"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-27T00:17:38.319Z","1.0.0-alpha.1":"2023-11-27T00:17:38.568Z","modified":"2023-11-27T00:17:38.840Z"},"maintainers":[{"name":"agalin920","email":"agalin920@gmail.com"}],"description":"SDK for building custom apps registered with Zesty.io","author":{"name":"Zesty.io","email":"developers@zesty.io"},"license":"ISC","readme":"# app-sdk\n> SDK for building custom apps registered with Zesty.io\n\n## Authentication\nWhen the zesty.io manager-ui mounts a custom application it uses `postMessage` to communicate between the host(manager-ui) and guest app(your custom application). Once your application triggers the \"load\" event listener the manager-ui will send a message containing the users session token. The SDK will then hold on to that token and make all `SDK.request` function calls with an Authentication Bearer token header.\n\n## Security\nCustom applications are ran within a iframe inside of the manager-ui. This creates a JavaScript execution boundary between the two applications. Preventing guest application code from affecting the host and vica-versa. Communication between the isolated code envrionments is accomplished with `postMessage`","readmeFilename":"README.md"}