{"_id":"@fluid-experimental/frs-client","_rev":"34-15283f578231fde614bab11f5bc5e1dd","name":"@fluid-experimental/frs-client","dist-tags":{"canary":"0.42.4","next":"0.45.0-32948","latest":"0.45.4"},"versions":{"0.41.0-27154":{"name":"@fluid-experimental/frs-client","version":"0.41.0-27154","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.0-27154","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"sambroner","email":"sam.broner@gmail.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"00f357216f1328b2713187c0153a272b7989770d","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.0-27154.tgz","fileCount":75,"integrity":"sha512-iDm63myUWOn670Zg5rVpJYpzsxePnJfqdsNTWeBTdFv/m60QAq+f3HavnBFyu8rgOEaj7V7SVX2uiXgnHNm46A==","signatures":[{"sig":"MEYCIQDRb9e8WQ0keivIpXLDoxDUxasLFJgxJdHnZNAKQNk40gIhAPwARyuN1IFJF7CXnzvyk52qk4nCpAZBDbCxha8NZX0r","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw7G+CRA9TVsSAnZWagAAQs8QAJ2iHMbqQBX8fozsRUCn\nbulxMUkdvYMX8NSYJPGNcC1N2Pn0AJ1Rz6bCjAogaZFnr4MbnD3QgcRAFhBQ\niqmnAUzgYbRD+KpatbGql9k+m7bswZ1prUXQ1qx8QbLc9v4JuRNvTGK5d9ZF\nLesq4q63iXEdvzpBDJOpYTOyK1S213LL/6NjsSkIBYlD9vl1B//i/YsSxavV\nJNPqhfIi9xuRnECqEB88gqZvqAkZvJMMpOcl61XGAnvUHLk2cEwSAHR9wjCu\nQppQTZjUfzRjAeekDBuhyCf0SZ5zYD4dl85ogOvQrWVrCOFhL+kAlaQojI6r\njioFfbGOilUkbFW5XhGTTVnWoiFrrhHlNVixNcjR6jmcBod2OtS5npm5Cp5b\nsaCfQ76UgnrQY0VEKHIFbTPifJoxG/92rs7MTuDkH479lpP2ZORFVNpp0wYx\n+nlUzBalcbM5GGCdASJgZSHUuP0W1by6Tzcth/W2XzUyclT0NNWVnoi94Ykk\nZcu6h828M71bF7OR8Rsd5MSjSlV3c+FX5FPnpAf6JBa4houW+16FE1odtXhR\ntPMvsW0j2hcVgd/9rqutV7ISv539Re4QdRqduQ+DJuj+LQnyCvRAIo9vwV8O\nnKmpJDFiWc2po5EqrN0UE2JPBfTXZKKpDcyweVKdUfT5mT9rLAsRyZmtNJE8\ns0n2\r\n=49OS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.0-27154.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.41.0-27154","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.41.0-27154","@fluidframework/container-loader":"0.41.0-27154","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.41.0-27154","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.41.0-27154","@fluidframework/server-services-client":"^0.1026.0-0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.0-27154_1623437758696_0.5924817496976924","host":"s3://npm-registry-packages"}},"0.41.0":{"name":"@fluid-experimental/frs-client","version":"0.41.0","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.0","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"sambroner","email":"sam.broner@gmail.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"aeb4ae5f0ed14c41f0ed92ef8cceb36ca895b9a5","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.0.tgz","fileCount":75,"integrity":"sha512-6Kyp3ruHeG32+nnFeO2FklNqbhGOqmkgpl+BCLlwpsDR3nY1+HJwRDwA7Gdao2g+BudiPgFswaV+ij6IlLVyhQ==","signatures":[{"sig":"MEQCIH13nJUky9udUrlCVhfd7VICF7HWDVEtHaLf11mHBVmXAiBrh1jPdecL+vF8tQK7HRU36SjryDMPzN1p5MQDC3uHEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw/FjCRA9TVsSAnZWagAAMeIP/RMugLQDtt7sKfz50jZ/\nFDg3R5LsU2pKFbJzfpopRkpfNOjMUQ1UhRPASBQCiZHOFz0jX7JYMt1GX6Ub\nTJ3CNwK9AtzymBy++MNjiNcX9FdwTEj9ZRLNCnHQPtpbciaLRsXpmdG4E3zc\n+CEzc2HwAg05/LO717Cif7o5IZHULSN08pzkmqZZ5IRNNjhZyval/3+1TloB\ndx3Nq1Wa8/u29x6NOy9aNFFX7VM/QvDO285QDAgnsOOIbmdHc8u8Be+lhlz0\ncXdl9WiTdPqMTMgTzcAcjv5TPnOvDR/zBAvgsD5WnbOtm4gj4GDvXsEn5b5S\nEOU1NwP5JxL2KGCCO0KgpqFPYeCouK2S+rE5poB3uT/sxfmvIJl/nOosZ+Vo\noLLg3UTbodexQxrnUpybpX6WPP0KsOEjcX0fBOtGwah+njMU6+hJp8S4Aph5\nG4vDBDIxFvdshoTjeSuuYvHE9wuJ2wUDmMhANg/ZA/tpDwR270U//Q4XKrCX\nSQCcabWHkHJbnU2RNRO8dOaTmH+W1fH8lvsrrMWqIXb13c6zkNuVd3lSzH/k\nkAAnmcrxAFMWaQbJWp6FvNGwPrhiNK3z9/bkKp8+SMnfS7G5tJ/2cVBz/UH6\nhmaKH/8ROicj2mGcYArI8U7Mg0pCLDsXvpHDopfLrcPakH7tE/j9aMOW4vL6\nnP9X\r\n=zi+8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.0.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.41.0","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"^0.41.0","@fluidframework/container-loader":"^0.41.0","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.41.0","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.41.0","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.0_1623454050903_0.23822511983470296","host":"s3://npm-registry-packages"}},"0.41.1":{"name":"@fluid-experimental/frs-client","version":"0.41.1","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.1","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"sambroner","email":"sam.broner@gmail.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"b8231b45bf359023b67f60c5758daee2290e51bc","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.1.tgz","fileCount":75,"integrity":"sha512-a/vNQ2Gur3lDXpiZbnpAse2SQYO3x39KMDHsW9zyb26wNz+Zjidx+279lSbigVcjoxqwBLDpZHNyZpOT7D8ZWw==","signatures":[{"sig":"MEUCIQCdvdZdObI0h5RrTiJzMHV9tFeTkvm31eqSEwjj7dT4EwIgbq2BKgm2BthJ35hkxoHmWKAfMs0H0GhvbP5nICxKXCw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyVgdCRA9TVsSAnZWagAAsdEP/jW+hSl9yo3x6Q+B3fr2\nRPWgQjG0dhojo026ogcoUb7TpzHpV8+mGyzEK/c45SQwvxUMWheGtgj1plxU\n5qPZxkeKKB50rVuN5/AWrJ005NIuKnJjCr9Xydq1RbKlO79ILAE7v1gtiSxE\nCV4L/tZSBO67UmyaNxC9Jdq+iUIVqrHoDwlu2JgFbax7JepMSrL3YevAuNT0\nvMHIfhVjacqN+vBHRCXVnAgOjxbnJHdRkWxOSDzvqudY7HcjyRKOfspC1m+w\ng6UO9ocZT5LirYcNHPtXECB8IqfGKld65cPmC/I6ghiSR1QgCX7aJRJtcoYU\ndnfqikQU0GIfxvbzPS4nOGCBgDX6P/oSc2ktGjSBLBtLBTzMzclHGJp3n6Y5\nTQ7j+JyFhxqwzC8wVBsOiR6m1RSmc9B02/6wPOlMCzR4SbbSOMiHkVcPgELa\nmET79nTXZ+FM1k62i4e+L9WsJCVyNWiQL14H5CtQgxYzIPrqSx2cw3NnArts\n/VTv34C4LgWTFh0p5ADRJ3C5I5B+XWW5l78hEGBn/JRqvKEHv4pv+Z7ipKPk\n1C3Y3pMZ8YqHF0S8mdYNXnVXag/kIKtLQU47zIb41YaJKCq04c8yKrWN6FS2\nifZgIuQz5XDC2L4tUV4cMRJ14K8qwQCYkpxLJZOAXOG5p4O785HkANnAtvWU\ngrlH\r\n=7JOg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.1.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.41.1","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"^0.41.1","@fluidframework/container-loader":"^0.41.1","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.41.1","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.41.1","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.1_1623808029198_0.21200586515088538","host":"s3://npm-registry-packages"}},"0.42.0-27549":{"name":"@fluid-experimental/frs-client","version":"0.42.0-27549","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0-27549","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"sambroner","email":"sam.broner@gmail.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"b32b3543f5b1909b1ff44d15caf6d0fc057e0316","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0-27549.tgz","fileCount":75,"integrity":"sha512-ikUjHuI7l0HL9+Df7XdH5tBBfxMRHuf5haZJ+FWaYrb1LQpmJQadRVnJgu/cHfShB4z9+zGmeeeVEdHwLlrTMw==","signatures":[{"sig":"MEUCIDzhgEfCBerQMMJNoHUxiLw6VUabsfOxIBeMz606Ha4jAiEAgtMZXHoNV/mMaS21Fc8DngB/vwtiTomiIGT5IbZM0eY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyhiVCRA9TVsSAnZWagAAwI0P/iHJ/K8JpOyrAHPZtySG\nX+qW+qhUg8snC/iUMzSImcJKkM/YObue58tBU0pkRP0AF5ujF0rxU7lqUNZC\nA0YLDld2rUK/dAKtnSsF8nQqQOgrMVQIROzQCsN4keKgMdb//T/Jf/ZbTgfb\nuCQx8tX78XlF8OTnzw2WqSOZYGZAoVzOPOSuZ/MjmRyOrM5uWpZbZytDNxhn\nW3TPLhVLO3LpeB2V7Qn5h7aFDjKFGKdccy3hoYyy5q53peAiMU2ucKrBxzWh\nwKX2xz7C45BL2FVkLqjhjKKseU3Zk5ZHmUSXuHxlxDggh2m5bAj09crMfmO1\n141OfKeyXSp/hIEYtV5dLlO5wtMaMtK27w2ha42HgGyPJ5a+uE4dh8os83+6\n0H9t4E3jYHmlFpUdnhlE2Sw7PEa0SC3zCk4Y4Da5Lrb2SkiWGwIEv2U5+gUw\nmed+mML3TPZhegLHzCQGoQPvzvaP3KPyvxA7tzOy0qdESq574Kqm5+myegFO\n8mRNQ4JOfB/S9q1tLq/CYj+L552bsFc9667V7wIydSN5uhWTx3dLpJeOBGZa\nn0gAHULYuW8DouEIifRqWINJregyDy2WLNLuVCTODcwcmeUBU33m6DV51RyJ\nbsZ3+Bu6atwz7JWL/kvRaLoh3dDExHZIeOkerqwIVp9QvboaXQ7gN8t7lp5E\nwBPG\r\n=WPuA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0-27549.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.42.0-27549","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.42.0-27549","@fluidframework/container-loader":"0.42.0-27549","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.42.0-27549","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.42.0-27549","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0-27549_1623857300364_0.047518035212081644","host":"s3://npm-registry-packages"}},"0.42.0-27644":{"name":"@fluid-experimental/frs-client","version":"0.42.0-27644","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0-27644","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"2203ad54f4127d5793cc7ff1da2238bba0c10f9d","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0-27644.tgz","fileCount":75,"integrity":"sha512-wbPdDf7yVw/OjnK+2FRZUfwL59Ztm/pv3vsXWpQxyiYcJxwg9/ytgAav5yDbHHhfFEk+DYeGpZDD825dd8jRbg==","signatures":[{"sig":"MEUCIALPwbtebiKCRDZokJGMnxB+cGoIQw0odOMu/okh0rRPAiEAjqDm1EoAbsWjMQHG2d2ObeMjyG4WK5tVfQYtAAykjLI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgynIWCRA9TVsSAnZWagAAIxEP/2EEo9yU+nSCSwKKKW2J\nP82goDK2onuI5pgqJncE11WV9SfXvoWdgFp9p4Ytj1VICYdTplZco97nFzpc\nTf9cJ2R9O3WZRvlON9zR54KYBLM1HkfEsZC88bycasUh8o2FIuILo8UqlLQA\nkapwuzTIvfJ460ViN1p6OuTknd4KmZy/I4NCsI4XXjEdG0g51zqbdlEjpYZe\nMd0WClCnsU8NzIRDSPwzsnRxaZoKsNx983pOOFvQO72MghRXLSgLoKTy5Aig\nADygq9WefKZSDexkINCuNWDZKbSCDgPdmrWbU3q5t3QJ4l99G/SEeZDL7JfU\nXH+brTGJTLfGakTQ34KOkRo7jUByqiSn6RpEmYDCg/qWCk2XmJoRD9a7TdF8\n8F03HJOasVx/q8GGkx0qaxEMsYffAwvCw0+N85uka5N84e6eC2LdiD4Sw3Rd\nCNUH/S4SXF9qVCd5/3buzci3XGXRSWOINzkgmeKb97CWB6n+kSqUk093DRCJ\noKonQpwvpVH8KVU86lvIgt1GDFg5NbeuSLRbKpUG0cUeozU+DIV6HtrRgelJ\nr/3ZPoMxD7skOdzFm7oon+QYt+f0IzmOppbO/abtIQU2U2oM/Z401+yAD3aC\n4F0eaV0wSGjWPbE7x9FAR+CUmHOd2xdkrjyR1hlw2+SwObC1dAGOlSyVCtZN\nP7NT\r\n=YqWL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0-27644.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.42.0-27644","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.42.0-27644","@fluidframework/container-loader":"0.42.0-27644","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.42.0-27644","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.42.0-27644","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0-27644_1623880214364_0.8394879893187843","host":"s3://npm-registry-packages"}},"0.42.0-27677":{"name":"@fluid-experimental/frs-client","version":"0.42.0-27677","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0-27677","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"cb6c427a04af05846d3adda768baaa16755b695f","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0-27677.tgz","fileCount":75,"integrity":"sha512-PH4zrw4hA6yvFIu74jB0gu17Y8MBSoq+1UyxkcFmjIats5Za46CUmzYdcjvubElM9wBt/60MzXnZKe5hU4u7rQ==","signatures":[{"sig":"MEYCIQDn/yVqU6M0oKLTEOKtfNVDr5JEe+zeq9vo0ktMPvIM8wIhAO6DAP65Z4YBuqc1IpxYgwYVnbl642eGVvGoZ4PAr6pT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy2MmCRA9TVsSAnZWagAAJaoQAKUNj5NG8tLC9sp5reGj\nL7jojv9SRuZVWebmRotTtF2NGR8vR/CmmqHK5c445nZOg+6Ce6AMvqqDfUay\nE1lodslLYWszIrQl/j6PySHv9a8SqaFPB3usoCLXFrYotH73A5/jZ74+KqFw\nUkBmAZJxDnZopO/OW+kmJ+bEJ31Z1oVi+O3VwrJygJSjBBS+kNSyzkTi5i1a\nWngYho1ehENs291QSVS5e04dZ5VZDP5i8xduoc0qW/DY4FMrKk6KkQfeCK6I\nVrOqTGjjTz+OxlAuLgMh4acewD/S5D/odIt+1o7Qq4uGi9AEw8Q3Ub2UKsoA\nOuWhdIGX3qK8+UFzFvo/vTHf0hLz/0IBTva1kxRXuqH+YXGpvQRLoKSl9S+9\nWSwkURw53Ld4QGOwSg0JGJvlEuirfxmWGllSfIlxKroh0RW2sDS43pv+HCw+\nlV5iKitfZggqhSziQ3m4gSxMXVKhTYR/rk10nVv4vrbPKHa1HN1fB04YQO1E\nhOhiOGokgc3kMDlFVUQiynp8ZQf8MgL/DTzQvwLQPup0hYJ+lp7iPz9EsOmn\nJDzg/Wqb35AQnUl0yEiZ1MU05tFf1PN9OOXzowyDpd8QtKZZpFdn6bGVxipD\n97mSpVGC1RwWGPbZjjeD4C3eGM6TLkFHyDziqcQNQaECkdAg5fbk6CcvRYim\nwZXD\r\n=VrLk\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0-27677.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.42.0-27677","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.42.0-27677","@fluidframework/container-loader":"0.42.0-27677","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.42.0-27677","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.42.0-27677","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0-27677_1623941926184_0.6676231437794053","host":"s3://npm-registry-packages"}},"0.42.0-27683":{"name":"@fluid-experimental/frs-client","version":"0.42.0-27683","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0-27683","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"938d69227a49d582ef86f0029e2d11568fb9261a","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0-27683.tgz","fileCount":75,"integrity":"sha512-EUJAVj5uL/Ih84sGL4HlalpvkT7YFvOLpkY2t1UwkEum3jOzcbEwoZeaB+p7RS7e6/dwLjpufI1m57CCh0+YCA==","signatures":[{"sig":"MEYCIQCl7VHR1+c6ljgMTVgKJaN91EFCzdYenvqbx5yv+IGoBAIhAIcSykKq4o0vzP6aMZrjQPe4n/POtXs7mYhNeUajxZ5c","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy3gICRA9TVsSAnZWagAAuWMP/2TCJYRHOb9/zaBwB8q+\nzX5s8ohAxKtrFA8nGxI7G2TtF5ndSOcBUiSuINiNeMvNP3UzMOpYx4R7wU1L\nZeSoJbYwjgEbL1CIHTKFY5mmnrQ5605xU+DV1c/Y1ebafka+Gj+PiW38ejp/\nOvF3SKkp5Jqjwlb0mgPh/mahZZ6VaBrgstWwjI0CDzByz/AAANJwSZmFz8Ad\n5bTagzYhoBYcWJm9InYo245qmsQfls45xnew8GxSd/OLf3BUguOuBnO+F+jI\nWxBRQxHg7265Sjdc3xydkb7j0vW6oFzX+X0gCi/y0FPoTEvC/ZgDQ+VcOIn7\ne8Dz7KSLhpDdtlIJlVVK4UAz61wlDsjIgG+0PsAk3zx0HQgAOUbo+db5s7S1\n8AURAfOno9KK35Ag/3pcUlxclYO/PMPBsRL7EZ/+Ia4kK13N5Okz6Xb3aW5w\n4Y+N0BNLT+c6JpU6aKV7b5eshoTK+zmEEvWLH1/gftwdYfPOTtlC2O37rPti\nVJY8euQDoue2qHeB9V/7SKjCUJgDlX4CsjynJVK5Y6JLyj/JJFvyretw93x1\n96gmd7VtdzxnFiDsmSa31BN+b24D6tFNJwHNEIC4b86I8JOvVuVc3dZfut9u\nDG4Fy2nsM8LkJQdsn3lI5wE4fkf15t78ipzm+cMB6x60x7wJNPQvzjLPLi3R\n9GJY\r\n=Kr8B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0-27683.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.42.0-27683","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.42.0-27683","@fluidframework/container-loader":"0.42.0-27683","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.42.0-27683","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.42.0-27683","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0-27683_1623947271492_0.4720711644895388","host":"s3://npm-registry-packages"}},"0.41.2":{"name":"@fluid-experimental/frs-client","version":"0.41.2","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.2","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"cda801d3d1beb09f683df256eda889199f50b087","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.2.tgz","fileCount":75,"integrity":"sha512-BSosscUT/CCeBCzv14oEJ0nJyF8rWtj3jzMlw0bP65joIy0lEJlTlTl4/ww3YQCQyK62DEINUoEtgFn/qLCukQ==","signatures":[{"sig":"MEYCIQCgZDm5kNME0LtQkVV3sZp95AoT0cmbfMd5uRkD5Jgs9AIhAP6FukXc55SlZGuHdWm0PAt3C8Orkg1UbuJOKE1IavuA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0TBCCRA9TVsSAnZWagAAqsUP/2z47Gg2V7jBHXzl7G2/\nsAj77RKPuPW9Cf2j4CjDwnGSHFSz37yymzExX8NQX3d6yaaLmw35miuwyG9n\nbeGcjagS3u/HNhxKzJzmycy1vgb0OZg99ia/oXlDyBwi8Eq59dqISoLfqagR\nl6gLLHCZG61Mw5QsS3tZTWiRzHByvnec9F/L6p+fCpXxnSwCzD0UdGtoOsKj\nXa2AxOmBzObCNIa0Ysmw7MyiTDuu8KWkol59IJZdb7kaQRkZOB61X/T9J0BV\nQ2jwjYls8ZMRxHh9ew7xqeCL4K8B1Z2X4QL+HW72fssOwYIftj7GZ6CMPvGq\ns6XzRQydZv11UaiV4Yr3WPl743gX2kewP9wne0AQjPf13zLdK0YwlsE0U2Td\ntVoVAx6ORq/wpT0lFKxgdrRVQAoq2w2CirgbFlSHHpFi/DtFpMFMQl9+ML7L\nR2008u7Ny4NJX5Rh802jDT5EsJgbrtVm+VT7WE/7kTHzOpWSznTd/nTlXwrb\nfYocqfMFD119h/dvUcub/CUiYSzvAaG3T0bjVd/LKVEFn6C8fKIlVRYrLYFX\nqpw1RShWSFJJ8mgzRhqjhsWZkPcZ8DqlArqefJUZDJi0WMyTI3WVmNI+Eum+\nZtwF2kT+8UaGPVz/f9F/jn4SM5l1aZ0dWm3W4d4Uf+uteCSMyb6TWTFlvcLt\nfu5/\r\n=J9Ke\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.2.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.41.2","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"^0.41.2","@fluidframework/container-loader":"^0.41.2","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.41.2","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.41.2","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.2_1624322114209_0.8815362927101291","host":"s3://npm-registry-packages"}},"0.41.3":{"name":"@fluid-experimental/frs-client","version":"0.41.3","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.3","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"153c8af652528df437654c6b3af051c1c71f8065","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.3.tgz","fileCount":75,"integrity":"sha512-Lj1ceupGR+JHBzLt5O5+NbLi4d79mFVNe27xoyik5+d2pKmBsWhWJXk05pWZ2Yn80kiiPMMGEU50mAXzCWb1nw==","signatures":[{"sig":"MEQCIFuRerkgmCA1NLN+ouUwonhg22XJqCzxs17jy92dt+rEAiAxFzZxxS58p607i5qOGN4Km151PSqJTwgeKcPUv0cZ+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0myUCRA9TVsSAnZWagAAoJsP/1T1bSwpuHTOxz1gqIfm\nJE4CcDJtVs7nHIsjWaMChdzznTEhIIBPPF+j6iSo1TJsK+PKwxswLc5xTStl\n2JOohUUyZvXmnmmBtSiRWe9P7c7oYZswr3RrbsXiYVnIsQN1VfMhTaT/yqhK\nqwOSr2XcjR/zdbNkfoATx2I/CeMnCljY8kTGVkZiLAHEnACKUBQVqeQzQezA\nfjVHU1o+wEkaZYXSfK/wy6chOZzd3GIChfTlOY5IBfd5aK44SJHDKJdxSPil\ne9I6mjS/3BGW7N1iYGP2HGR3Qla9ti+4bJ8n7YCFuEXpwZ+IgZMRyB+3YN9A\nkan0XJMaoimllV0i2AuG375UcdWlMUYkhO6b5XhY9qAZeOxZMCzjkyt9R/5E\nhQITl9kH045AC8xlNLwe8sAczTy53bkswQwfSgBVCwK5yn7OGfX1taf6IHqq\nxddKjF81cVSJNcbdK67sZ9cvibwDB/T3GFj171lY5YpvIckz1PfrYn16L85T\nlvN6UVDQ5A6h9YHwz+xo38Hrm6Duw0GLYzNTWSNZSIPbsbbAcltjd9/XTWG9\npgKDCOW1Tm8CLYsJ1aH6F/gvB0wHk9sdz9QvqtU9Ds9GZtt2JYVHCca1ZwAo\npJxheGomQDTaPep74ZT+uy1HsGKBwrEf4gZrwLGcmaeY1Ks1ibwaY96doU7t\n1I+P\r\n=ntgC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.3.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.41.3","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"^0.41.3","@fluidframework/container-loader":"^0.41.3","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.41.3","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.41.3","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.3_1624403092080_0.7891070172445191","host":"s3://npm-registry-packages"}},"0.41.4":{"name":"@fluid-experimental/frs-client","version":"0.41.4","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.41.4","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"e9fbc1a316cb7df5d4df42d02335758c72f33050","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.41.4.tgz","fileCount":75,"integrity":"sha512-QvMLojVbnNj2SMUIZBGB/bwpu/W+3Ft76yP7AK5BAfXwbBshxbRNQM1AcVXvzA162q68Qu0smpXS2O0x0Y2Cww==","signatures":[{"sig":"MEUCIQCx8GBqRNP2FYmsaSMDlgemspSZ3jybA8/OZxw4/wbFGAIgYKhVqPCqz/UuFf+XYdto3BUFPwG6Zo5jhOlFKsEQXQI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99370,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg07hBCRA9TVsSAnZWagAADLIP/iMXIrIdFbFXpd/+PVs0\nIWRTxDrYusODwQIyg3CuKio28c0ydXfT903cLxKn91P29Yx5Lgm8x7qBuj2U\nA5FAQYtqGzjGPeSTq6LPoiX7qWacA4Ly8/QAIxYyFelaRXAlmyDuF5suEfSI\nQhvoXpbyKFb14FI3ngEtK719BfkzGmdjg9jPoh762SZxeP2EtAbei0nWVZRU\nfjG9wIBXbfUUewaWiGA4ytEycHAKRBvs6nwlKMehkIyTUaRrjR38UyKxD/Nx\niDoUwjVncEhrU+lHxRm/xH8Xo7Tt3u1jZBNq6eTrr6gWcklVqynpmKLpmtW/\nh59UUD+CTd5B5fLsgqJ21c1KsAt6oeQ40KoR3xCLC2GAaIR3D5jGAldQfVDx\nSBlmfbjwCZPDtV0l2ebI8ZptczpOepPNysCQmkwCKKXIROV8VSSd5kIEhvaz\nKWI1axsyfgMfMwEIuzMrAxMmv0WDLjFcY485I5+Jmzsy9bTCXj4o3ip6Loqa\nX8W+ZSNRrGYYfGwjdmAGcejZ32O/1QU8nnpWsF4Ppp8qYXqt02g8O3mk/jGX\ntTLLGkPklpg3N3u5MCvdDxLp43jyTQSWkgTQEUzEL4o77wXlOKQbUkVeFKSS\nl6VRNovV/fdbzSZOrSW9M0XAVobgnAlFWLFDhn9yOW7R9rK+UNIQi2KumUCh\nS98b\r\n=qSOI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.41.4.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.41.4","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"^0.41.4","@fluidframework/container-loader":"^0.41.4","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.41.4","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.41.4","@fluidframework/server-services-client":"^0.1026.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.41.4_1624488000852_0.20450493689654348","host":"s3://npm-registry-packages"}},"0.42.0-28410":{"name":"@fluid-experimental/frs-client","version":"0.42.0-28410","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0-28410","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"ee23e722348ef34205781e46a4428a5764f446c4","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0-28410.tgz","fileCount":75,"integrity":"sha512-jkhCIE4SGA9dTQAvTg4jhMcOVQ8BIylfclPe9p9B+df+dkLVVroG9M+1l/x0RFpUm7lTYF1yo0UucntKNS8X5A==","signatures":[{"sig":"MEQCIA7FSIddl4NjocuE5HTF3URMViJd9ACi9JhKLdph0kDQAiA4D/cYT7Ix7i0XISNppHdR1KHACQUEfTtQ9UsOGYenQA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1kHmCRA9TVsSAnZWagAAY7sQAI93sQN/Tf/HtfnIZpI4\nXLNDhH22JGRMWaLv2yAlCc+9rp/6ByNb09rAQrOHCF5u4p1DZqAes1R5e8ue\n99q2EwP+y0FUMvbtIBpBtPHZVKUieUOm2/F1CrfmpUyhl6rverq57UtJ7QmF\n+qYS33zVFbhh7YZkCvHacXHdYsH7zaEtdiLvvAz1nKbuV2c8R30PwxwlT0s+\ntSs/6TG+rIhWbw0zOIF7MldUeKD/9ShtxxFtoJWYFnBIciHaxS1JVrCpOk5I\n/DgQLdGjlUGyYgIOWpZrR7swaJUNPq4/WjQntqjGcb6N7YyZMRZ6YbjyeND6\ns9GxsiQyKEr13jLeb72El5Vaw0TKyxiSvI4SC5xMCIs0BzGPxzMVNJYbrXxA\ns0w6Hugzh6LG7kUlAdsFy4uNfpk8n6GGgFVurk8zuMvjEaTz77P6EZ62XuS+\n/eBZyBYXW2KNxbnMtJR8iAmMuYXtqzO7+dpmaVq3m6u7sFfhe7fLMjeR+Bau\nT6RLy36rejPOJQv+yoTWdt+oCSEq3O+wJAONoIP5FKXTprRNaGi4QkYYwyEZ\nGKg7wLQQiiV6BbSsXO47u6r7+2JALALx1qIEwdsoZf8MXIlH4E46InlJwzOs\ndJU0qsfMV5UOZUC5OLASpz9xNSkICDyCkYdc/H5CdT5gsFeTahisTbtMu1cM\nw1tY\r\n=F2W/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0-28410.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"0.42.0-28410","@fluidframework/core-interfaces":"^0.39.0","@fluid-experimental/fluid-static":"0.42.0-28410","@fluidframework/container-loader":"0.42.0-28410","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"0.42.0-28410","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.42.0-28410","@fluidframework/server-services-client":"^0.1027.0-0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0-28410_1624654310328_0.7241058536532512","host":"s3://npm-registry-packages"}},"0.42.0":{"name":"@fluid-experimental/frs-client","version":"0.42.0","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.0","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"e06ca9187a75338e519340ae34c72cfb9ff1f9f5","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.0.tgz","fileCount":75,"integrity":"sha512-7A/GuY1kna4mtRk/CqaOYD4O8q1Jo4W8ZuNMlYzgSIGA9WIiWpyT4hBxL904bq3uKoz9U8cYmwGx5D1TZ74IMw==","signatures":[{"sig":"MEQCIFV/9rfgeI9SGzKjknq0r6/6tu50hWohJdmp+MNf4APmAiBOZOw/bUgZdJx06TXewMJYlS6rAbUSuLETAIVj24uADQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1ohRCRA9TVsSAnZWagAAFcwQAJR60fVkx1wXwAnHXsRL\nRK20whg3Ov6N1yruFKnsqgP0hJfk36liHkzh+poUJ2Tr4UNQA8F3WfuGiot1\nuDbsQIlqKeDwmvJZOXgFeYdB/nnUR3aBDL59E1vjsWpApqstmuHievfg/Jld\n7V/KI0UsJKZ7K6Xn3OpCgC+ZiN2tFZ/AhwusameBgjjy4xkaRudKkl21SNGb\n7kblTUrRLC+eknyCo069tz5dPkeIuNmjc8LPXEuoY4w8wJBOn2r5AY/UV9YB\ny5X3N1qhaZfMg3lgV2sBPRQteqoQqDEA8sdJ0oKs1acCJxzKdsp9B3X8f5ND\nsVmY9eGMj7Effhj07NY02U4Ky1B9B6SzYdZLAtP0m4hb1SAzPbyDYENRnXA/\nQliEgG6FTTqHdU7bNNC6btFyC4H0XZkE6PlM21hTAq3hQJMQMUaRIJpgLBR1\nATm5SjyWOvO/EqcxvmrQa/YWCF+4IC0zqxCgJBsfaZQnZAE1Dh9myJk+V+l5\n2kcowNH+kgqi4Cvix0jNFB1siYMF7otcoAxo+yJiuNCT7DfZuq2E4Q2JuDEl\nPupxZmsgKpYX3lQvruMFWALzFF7ssb+fRgyQPZKaQFNIrnBDDgYLnr+rWa57\nL58bA8/9ht6KX78x+mwjYX04qwr3qUkN+Otnx0mB82Pm14jXBzZXhYvd1QH9\nUyEz\r\n=S1wu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.0.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.12","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.1","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.42.0","@fluidframework/core-interfaces":"^0.39.0","@fluidframework/container-loader":"^0.42.0","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.42.0","@fluid-experimental/fluid-framework":"^0.42.0","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.42.0","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.0_1624672336985_0.010249963806208573","host":"s3://npm-registry-packages"}},"0.42.1":{"name":"@fluid-experimental/frs-client","version":"0.42.1","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.1","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"667853de855df8e18715c2fc25be6c828e7534ff","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.1.tgz","fileCount":75,"integrity":"sha512-zZqo2k4IvMfPzT5J1gBXvltd0YvPk8eAl3ALOLPMtZmVJaLfY69f9rO+ZPpqRmQKWCmzD7oW1ihSTLSfYu/R/A==","signatures":[{"sig":"MEQCIFwIntLDAzVLKDiPTK0TTm9f175VCh+uhgDGGL50HnxRAiAh2g5GD1K3eW9XhjP7/li9Q5RaU7SywsAqI/t3rFdONw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5yeFCRA9TVsSAnZWagAAnPMP/0kkX7PJZmmpfUZl1puq\nqTviAEQM8DlZ76PD8OzOyr6/56i5gfsTaBn9AuWkPMxiMDL0hy7hZARTiAgy\nwbF28BreGqm/D81n5mbk7vvkEv3njzXt0xosiyChcV7Wd/gRz8En57Br1COp\nkMYbZVO2H2qe9HrCzW+5cvcKjoLIWiJVswn+zcJKV1e84EHSQD0Le2A44ZW6\nC5cZAKNmr3WWmbA7OakELuigJ0nInT8t9LWcFoNqNprr1XTx5paBE9IZIDe+\nBLAqkyC4U0CU2OBJBlTJAGpItfDn2y5eYOj2/7ql5u9vfw7CQQ1E8F4qRlZD\n7QC3KiLXICZh8WcgApK5VtV2xqZw0oLwhW4Xt6vZ44jtmittQY0PehzMglSM\nTHCdlT+zLR1Ou7GENQQG85lthAnXfRiSDjrLT2XPUSn8LCnuvvwrYB4Xr16r\nH0wURFz8hSeex+vNgjp1JhyMA7VpVaCnv1sLJD/EJZFiO9U77+KVhO0MAn1F\npVtAPnCd5pNGl5rPerWOT4d+yOPyKp5YLc6himGIM2ZrfJIh1UYNoNMSuQ8b\nTuM628sMqJ1QcFjALEkUMe1UJSRXtgSk6bDHPdwmXYIvZSl4hnLvKX6JzvFJ\n0LJbMVOkbJKtCOSvbiKIYOWRFbkBbsmRJ+p1Kqk+6V67up/FCn1BWF+zkKQq\n1ec3\r\n=Xv9V\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.1.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.42.1","@fluidframework/core-interfaces":"^0.39.0","@fluidframework/container-loader":"^0.42.1","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.42.1","@fluid-experimental/fluid-framework":"^0.42.1","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.42.1","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.1_1625761668966_0.6200316942618183","host":"s3://npm-registry-packages"}},"0.42.2":{"name":"@fluid-experimental/frs-client","version":"0.42.2","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.2","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"4f722582c90cf925fa440d5e3d80549e59b90fef","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.2.tgz","fileCount":75,"integrity":"sha512-q+GNOKiZLUccfn9zquLtIiCs7trfASnZjvFhQF44roGVO6I+87EolaMXAwK9cEeA0s1lrgCkyxVdIcdPPh4FPQ==","signatures":[{"sig":"MEUCIAS5zaAJg43IktVA/9JjVMFWT/lh8c/aLEKQhFqA+79rAiEAk/UbuYS+G1yWNHExj479SkvtUEMUxOuFVvPxRbeMKqw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg54GqCRA9TVsSAnZWagAAl7UP/0IKbcnDQKzR4lRpfttf\nuR0jjIH0u5jB8pUuanuqfP7Vs8rA2y64tNiLuevOFShQmt1PjZXHv+PrALbs\nIgAG0tF6Szy6Lsk4w/CwGxL31b7OyAY7RIFlFDoN6hOHXEnGcPOwvcFe9yi7\nhC+k3Q0kzXAzP4xxVCANlBsLmuLC1pEMJwVP5Gboewn7tY4LUhchrhoIbdBR\n45bGSP0f2vhrKVk7+7wC6hNoBDc13MlFnA3fTOTTftpo8KUCbRoJmcS/MUec\nTboYVzcfXh7TD2lYZIlD11O8yMDW2GwbtE6j+F8ME5sSduZS5QIFjv5p3OIO\nwDfxpI2SxD7zdqqek1OpFQLtSvaBS96YCO9IrgNCAwLB+KwifZDk3v6yOQdq\nFITuuHWxwgXR0M3w6++3WQcAWsW/xUaCXXmD53qUNlmaMpNpPa3vfgI7FScR\njpXk26gi8c2YzWSv5tyXG++glslMs3zIssicybO6skMkJKMvAAo88BMqIEey\n8sD5pCVXjeD1+B0MArkiM1pHTXwNppJEgHbIq2m01ZOFu7AAJTYVEpohnDz7\nAR2sJGryrHTRgbhKc1QyMCYpFczBESCgR9cCKEvqrnV3pFzSiOzW361KRD4p\nnln5Yn/YFf5B2N5gXc2eoKYG9aXcaalVHeFpV4TUQz6Ab4hQ8ZN4YKx2A/DP\nZreQ\r\n=DfSH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.2.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.42.2","@fluidframework/core-interfaces":"^0.39.0","@fluidframework/container-loader":"^0.42.2","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.42.2","@fluid-experimental/fluid-framework":"^0.42.2","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.42.2","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.2_1625784746517_0.9697578636066679","host":"s3://npm-registry-packages"}},"0.43.0":{"name":"@fluid-experimental/frs-client","version":"0.43.0","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.43.0","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"1fdb4dbb426ba021902fb731f9e14d134a1b1c67","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.43.0.tgz","fileCount":71,"integrity":"sha512-H9sn+p1HtFCpWxc2lwuZgA2ajNsYlviHWTxNRebpIrWkMq2iLy3MSdcTzFFYyKDD+33PfzUvnTnpdSKhXcwCHg==","signatures":[{"sig":"MEUCIGPPmu0MbpVQ5wa6sHScMVvSCzI1gvleC2cP6xLCuBajAiEA+I1BvPPgVc30+/U3U6RnEG84SdOp6a0l/yNwZ+wieIY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6Kh1CRA9TVsSAnZWagAAk1cP/j2joBHKAqT9XOphYNo7\nRIHXe62tfplG+wWPLYfnajblKUQjFgLF53Fu4MEHBhoWCGFFiWNb9glc8JQ3\nwIYLFygwdtsYvTT9G2rlfNtykYojG4v0gAfRctFGqrPp8P0CFpMhqHxEoD5o\nv/V2pTf1DTZiojgeIoJM0TeJAZUsAZoFRmL/6OOPSZQuQblV1InMogfX9Iwt\nCryBDIF+vcB9nhEXwBCHMCd620Xd1C+6+gq0gyH4BaCMbu1+e5bgoTD2Ftc5\nwgo3/G4uCXjo/jlj1Yk/t5BFS0mt21qkU0DC7uNuuRemeQtU+Q+jZ1rXmWVT\nRux4BzM09U5pSItdA+8dCq14CM3B/D/bxaeV3tDVOsEJkx64uBRy5UEM3dEm\nDUseQAruqX+kUbxjY3njKwbFuaVAZPSS9+VYuZzMRY921zEyC/ma3YzEOURI\nAUuIItuh9vHZVB0mrcIu51vFUTpQUrF9gG1T+270PJXvUoEUF127eiMUzfBW\nE+f3ltQ48ntP7MDzqNmcZxIt3wbmKBILyr78j1BIVmmSnYSed/5aImf1Gm7b\nDCLqsdlQwIGpU6wZ33vGRplFr7saYJJiWqipKyXEIt8axBGkl79dboECF2J9\nhd+n4PmukCJJSm7mmUIuabE5xoGZPOnne39UDetfwXrh15nq8fHmojlRscWu\nU/wi\r\n=PlrL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.43.0.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.43.0","@fluidframework/core-interfaces":"^0.39.5","@fluidframework/container-loader":"^0.43.0","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.43.0","@fluid-experimental/fluid-framework":"^0.43.0","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.43.0","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.43.0_1625860212660_0.48178261620115936","host":"s3://npm-registry-packages"}},"0.42.3":{"name":"@fluid-experimental/frs-client","version":"0.42.3","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.3","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"44f2593ceda7fa1f9e7d3cc89b4ea2f1b39bacca","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.3.tgz","fileCount":75,"integrity":"sha512-dFu1kaNJ8rr5yYsQb7mTz6CBNhsR5v9Yw5I5ySJTtgDhFJ6+Xnv0UXiEWaPoi1NJSQvrkLWXTB6kpOxkCvxKhQ==","signatures":[{"sig":"MEYCIQCmdYqQeEkqq/FP+brvjLP4HfowrsnSk5ULysB0ZgcHHgIhAMWJyGtVl9MlFgmPO6n6vnZDKrGYqJCU16aJugZwlqGj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6Le1CRA9TVsSAnZWagAAZr4P/3WdtRKzCwcYWPOKtJTr\nZb/+In/exI/dAMIYI58tYw7HMIkTiwLVdspuyjSOEZBOuKmpfJwSY387ON5G\nrwYVB3E0FUO/FFnfRHj9PG/zokLY0x7I+Z94Tt2yPZ/KthCkoxTJoyphCGR+\nY8tfYFjXA/P1heYBwnT7z57lWJuRbQ4JigmJh0Hxlfim66tEjuxCoj27/IKK\nBWHkxpmRhJHwW+X7t6B5fceBlsjzirdizz4adv3WM8tNKbncOxEjWIiJwrMs\nYrNDdC9UIucwcEFONIyArxnEOzzxa3mcLmHYBtTMYaeoOrAYMcHoq/9ZyhRa\ngjF7d1VFdDfIonLKeY3VvAwC1u0B+vx1WJot9aCHRqjMjLhNWz4C4X0HJ6Bz\nT8V3SBpmCE+j3MPUt4563sRFkoFhjXnzNi0txj5gLbYJQ6PTEdydOzj1hwip\nvAUbKZFLOxiY9dJZANkDx6p0IEnExuPBPxc6E/FcXhRSiJEWO8Vwk+4nEexh\nrausddyYvxzqPOM/Nof74QxFY7N6Pj8KYTNJfa5fV+eYILLNCSemwQL1/NXi\nhWYZQgCQ/kjoeWCWjUmB39Msxzz3r4xm+QFYc5q/xqIrB3HhCFFAouHKYsX2\nqpl2F+ZQKngSIYZKXZPlLU8bs5V5x9F20FV4nshzXEYwEYiOwXFsJ4mxsgCt\nJRER\r\n=6yKc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.3.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.42.3","@fluidframework/core-interfaces":"^0.39.0","@fluidframework/container-loader":"^0.42.3","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.42.3","@fluid-experimental/fluid-framework":"^0.42.3","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.42.3","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.3_1625864117365_0.6380466240435403","host":"s3://npm-registry-packages"}},"0.43.1":{"name":"@fluid-experimental/frs-client","version":"0.43.1","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.43.1","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"d31fd58bc71e0e7047de95967c31efc47ee68e66","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.43.1.tgz","fileCount":71,"integrity":"sha512-12ckCCoVzHybfZ5/afLkM0qNb8z2q+hIJ9m79FYdWcz+41fO3JUWfHURplazzGgizGwDrWpXu9C6/I9r78nmgw==","signatures":[{"sig":"MEYCIQCkBUnPMlj4BXsCpkfAJNq17R888GB74CHP85Bmh5z+HQIhAL7M/nvXzdkAnZcEn80VW8bzNpK+pRqL2ecnUaKp8FnK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9gbUCRA9TVsSAnZWagAAyRgP/A/jw9ARSE5vTR5m5tq7\nxQZGAe3TDDQJTPdvLQDa87nEnUAhS4dE+hTSbwQb0zteaj2brxMJ/K6PEmFu\ny7FlQtY96OpmBekjxb9O4u65D+qPjHvkk9NMKp2S7ye324HJ8w8WawJBHROY\nm5A2pJGwV7zh4kkUjmxLXclDP3bopUZzgUdI50NGNGB66IQxHjzc5q6Q7wQM\nfMhN5yG+ECTcXc28CfhhwYfbfD//Mib1dYiIFSzvWhqCHBFdYHeL4BTmQRjK\n8Liv1owhrguZHjUfmm35JflgUqy1+xppB8Pc4Dj0GhBUsz+TYhtLTiKx/RQo\nyfk/Fa03yVR1+2bDxaedCe7UcUFG5s8RYHNFEsW2L2RffViUuvZSxNBDSavY\nyEchMfL9cUXz8p9AKLckTLtGmwGQzC8Ym4t5H1hd4rUksQc29uWlUX88YDCB\nQDCJO6nPvSibe//rqxKVWOCSU4tw+RX4Mk+RsJJ+ZQZeKaLzqkmyyLFW4p2R\nXKU/DwnhQoJu9QzMcXrVXIDNLMRlvoRUBOEDf7eCqPiwtw8P/ipKfo6HnpHw\nCl0soPmogizIra5fXSTGQmz3btNrTAH7mdBHrp4jBo5qu2EcT3Anl+mLyoXE\n83Kq5t81uiXISiJ5v/gXy0gUhNSJ06hbAKW71Zd1rP5jG5HkNpIUZgXAnjoD\n5r9B\r\n=x8u7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.43.1.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.43.1","@fluidframework/core-interfaces":"^0.39.5","@fluidframework/container-loader":"^0.43.1","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.43.1","@fluid-experimental/fluid-framework":"^0.43.1","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.43.1","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.43.1_1626736340135_0.6623706272860737","host":"s3://npm-registry-packages"}},"0.42.4":{"name":"@fluid-experimental/frs-client","version":"0.42.4","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.42.4","maintainers":[{"name":"danroney","email":"daroney@microsoft.com"},{"name":"curtisman","email":"curtism@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"98e156a191ee6aae40c53edc243e7d9868be5b4d","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.42.4.tgz","fileCount":75,"integrity":"sha512-YV69oN+UnFdC4WB9NTMNxcATpZV3OL2Ie3tuDabLTea8N+ugUgJ1vxgCcy0+ZwBGrOw1C5HWtPQTPk9WjMPcCw==","signatures":[{"sig":"MEUCIQDuWQeJVFd9IYo8UcqAGOK7vs8DnuzoOIw7ZVBUR4DJZgIgQ8ojU5Jx2qlizi6VHNvV5pDzGFxQRIXfqErccAMLajI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":99445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9hU/CRA9TVsSAnZWagAAUIMP/0dJgKF7CggVKnh3LADT\nvE+AvRNJSPN3hNCnNJnJc+/nwPS5sZYmVy+ve6jpvhFOpehNF+ElUu6Db3cb\nxD6xUKl1s0zcrVNLLL7epp6slTtlupbRinD6wIpQIx+vPYUZH7B8iFLSEpoE\nVysVjoKBnna3gpYMWIt7JM9LsZC26kPrv0DAyZ8Y40Lgb+kxwPbkjzd7lChW\nD8I3apYxVe5cB2I3+kXye2+kIaF712tZLhswso4EyZTLraG0Zt0POvj4zEHR\n9ScZkMgfKtOncSj3dqcIo/psPNTUXHxOXSc1hT2FzQg1dOLxefC3SnEO3wED\n7B6g1ebCbJUvHmZdwH4TgYIl7AQYa52jj2lWcT2Cst8OU6uP3agpfA/VYi7q\nvvrUsFIrme70OVWRJLwWR+X6ozzbWpVlJmLXCl073rzSDG18BT0C4jD8r04z\n1L2toGbnYIe0AQRiYKJ3dpiU+vepZPVFgKHgapzrhBoAfNNEb+Vh/KESTb45\nFlMBHGGXTYbD8sye5qeNZEvQWpU0Jaon6g/UatfMpz1fzKGLyF6kOloLwcQj\nu8v+eWoqdiRcaAu91ZBC1rmBrXm+x7sRV715F5ZI0OAp+D4/U3gMDxkoJKV3\ndxfeeC6Tu1j5li0tOpMRiHQ3ULppR4Oh2PSlTmlkONIaMxPZzb2Xhd5joLPY\nXOP4\r\n=mOQB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.42.4.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` static class that allows you to interact with Fluid.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Initializing FrsClient\n\nFluid requires a backing service to enable collaborative communication. The FrsClient instance will be instantiated against the FRS service.\n\nIn the example below we are connecting to the FRS service by providing the tenantId and key that is uniquely generated for us when onboarding to the service, and the orderer and storage servers we wish to connect to. We can also optionally pass in our own user details instead of having the client designate a random GUID and a token provider for authentication.\n\n```javascript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = { \n    tenantId: \"\",\n    type: \"key\",\n    key: \"\",\n    orderer: \"\",\n    storage: \"\",\n};\nFrsClient.init(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```javascript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nawait FrsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nawait FrsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```javascript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = container.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```javascript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst [container, containerServices] = await FrsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"debug":"^4.1.1","@fluidframework/runtime-utils":"^0.42.4","@fluidframework/core-interfaces":"^0.39.0","@fluidframework/container-loader":"^0.42.4","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.0","@fluidframework/test-runtime-utils":"^0.42.4","@fluid-experimental/fluid-framework":"^0.42.4","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.42.4","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","assert":"^2.0.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","@types/assert":"^1.5.2","start-server-and-test":"^1.11.7","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.42.4_1626740031214_0.41575400879171","host":"s3://npm-registry-packages"}},"0.44.0-30858":{"name":"@fluid-experimental/frs-client","version":"0.44.0-30858","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.44.0-30858","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"c6a44a3bab3f92a8543eaf66dabfd87a8eb16a29","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.44.0-30858.tgz","fileCount":80,"integrity":"sha512-Bw6/N/yVP44X8pfbU78Aam6ZIVRtc80wq+M0I5uKl1EW10MO/4ATMCNlxAz06jzX9XhmKSFUXuWmDZJHxUnGCA==","signatures":[{"sig":"MEYCIQCzzYyetz6viwh438MhN2ChjsVTAS29MzzgFEezzpI03gIhALPCMEJw/REvNgI6H1n9lGG2cqoCw2yGIxW0kIgoeCL+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+ezYCRA9TVsSAnZWagAABNEP/iuCDYyybMcMV905DFdt\ni2sovzAnmo41Gtmp7p47Er/1iyvdqrX5cqask7/hIGw/NnduyHjrbqczg0zz\ntqPyBnyVp3QYF3ECfQRgQi10qprpd7cgTVdq6XXde+nt0txO5Acu0BWG75NN\nLiYpRYuv+7xcuFN2X1Dp8pxmkS0QU60015bssh44lEOYKATwDft6546r/gjy\nztmJaSw118OXlBg78cazR6iGlcNdrpyffqmdkIoCfYkleEWMTC2yEXQqMhoq\nG3fnrZDxL4pvw5Dr4Ej8HucAkV9y+VUrhKnzRB8GY9DvK+egot0rRgVVeJbz\n73H+NXf06n0xVa5ApjsE1ViUwI0FqiwmzRaD9n+nOOys5jy1EPoShbAZSd66\nZGGEmu+5HTwE2ZSQnY+4O7f6ILrD0C9f1K07kKte9dv4nJaDeNQqtLS9vkyx\nvHRnL3o7oorIuWvqtg/gEKMsi/Ze3wiFhw2ZqQoHL8Tyv3Y4Xl8IbKIEdr9l\nIs6FcLNMXPZsXr7I0JLS7KAHRQmWOgje8LuMSguf7+TryBxG30qDGA+7wRMq\npZGcq9c7BitUFk298bK5H7s3+sftvGYTdQTVW6OHU4Or1UMGC2Nc1aElROUC\n7LECTnEz3Roq6/i+q1mkQ/M5Ux/Hy3QSmpwNDr2n78B/okpTad1vEXUU95HD\nU3T/\r\n=ki11\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.44.0-30858.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` class that allows you to interact with Fluid.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Instantiating FrsClient\n\nFluid requires a backing service to enable collaborative communication. The `FrsClient` supports both instantiating against a deployed FRS service instance for production scenarios, as well as against a local, in-memory service instance, known as Tinylicious, for development purposes.\n\nNOTE: You can use one instance of the `FrsClient` to create/fetch multiple containers from the same FRS service instance.\n\nIn the example below we will walk through both connecting to a a live FRS service instance by providing the tenant ID and key that is uniquely generated for us when onboarding to the service, as well as using a tenant ID of \"local\" for development purposes to run our application against Tinylicious. We make use of `FrsAzFunctionTokenProvider` for token generation while running against a live FRS instance and `InsecureTokenProvider` to authenticate a given user for access to the service locally. The `FrsAzFunctionTokenProvider` is an implemention that fulfills the `ITokenProvider` interface without exposing the tenant key secret in client-side code.\n\n### Backed Locally\n\nTo run Tinylicious on the default values of `localhost:7070`, please enter the following into a terminal window:\n```\nnpx tinylicous\n```\n\nNow, with our local service running in the background, we need to connect the application to it. For this, we first need to create our `ITokenProvider` instance to authenticate the current user to the service. For this, we can use the `InsecureTokenProvider` where we can pass anything into the key (since we are running locally) and an object identifying the current user. Both our orderer and storage URLs will point to the domain and port that our Tinylicous instance is running at.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"local\",\n    tokenProvider: new InsecureTokenProvider(\"fooBar\", { id: \"123\", name: \"Test User\" }),\n    orderer: \"http://localhost:7070\",\n    storage: \"http://localhost:7070\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n### Backed by a Live FRS Instance\nWhen running against a live FRS instance, we can use the same interface as we do locally but instead using the tenant ID, orderer, and storage URLs that were provided as part of the FRS onboarding process. To ensure that the secret doesn't get exposed, it is passed to a secure, backend Azure function from which the token is fetched. We pass the Azure Function URL appended by `/api/GetFrsToken` along with the current user object to `FrsAzFunctionTokenProvider`. Later on, in `FrsAzFunctionTokenProvider` we make an axios `GET` request call to the Azure function by passing in the tenantID, documentId and userID/userName as optional parameters. Azure function is responsible for mapping between the tenant ID to a tenant key secret to generate and sign the token such that the service will accept it.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"YOUR-TENANT-ID-HERE\",\n    tokenProvider: new FrsAzFunctionTokenProvider(\"AZURE-FUNCTION-URL\"+\"/api/GetFrsToken\", { userId: \"test-user\",userName: \"Test User\" }),\n    orderer: \"ENTER-ORDERER-URL-HERE\",\n    storage: \"ENTER-STORAGE-URL-HERE\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\nNOTE: When using the `FrsClient` with tenant ID as \"local\", all containers that have been created will be deleted when the instance of the Tinylicious service (not client) that was run from the terminal window is closed. However, any containers created when running against the FRS service itself will be persisted. Container IDs can NOT be reused between Tinylicious and FRS to fetch back the same container.\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```typescript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = fluidContainer.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"0.44.0-30858","@fluidframework/core-interfaces":"^0.39.5","@fluidframework/container-loader":"0.44.0-30858","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"0.44.0-30858","@fluid-experimental/fluid-framework":"0.44.0-30858","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.44.0-30858","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.44.0-30858_1626991832188_0.2143794630397502","host":"s3://npm-registry-packages"}},"0.44.0":{"name":"@fluid-experimental/frs-client","version":"0.44.0","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.44.0","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"0b48af840e585ddf3b5cd02c96d59d938cfbc997","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.44.0.tgz","fileCount":80,"integrity":"sha512-jjmD3I9EhsQ64aIcPRT1ZL+3ySWZbL909PW6Wrym117QGEUpjy09qLVNjDg2qAhQ40XKFLWgCI+JVEQ4aTObmA==","signatures":[{"sig":"MEUCIClP4SrORu916c2/JS+hKUQtEsd96WiRTz7VZir29JApAiEA13j1KCqT1faKwHLLBYE31DqnKMnZQImiZfFtVd7aZ+8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+hwTCRA9TVsSAnZWagAAS/sQAIu8Dmr419mxIUE2IbCp\nuYG+97ApJ57P7p/YpKUcXtt0qoFti01GQWlQDD4zyJdghvxoLnFHq59CY4M+\n3AzF9DfaTH6LgHfSJNRx2CKmjDCvtMZWIBUEEw+7mmHKXzLt8KkZzzH/VPXU\npT6dV3qUXhR7qkIjdnY0cMnHVd191062WwxACqkkxwaaWNV1ppht5cR4iSqV\nq9UGTPDIaGS/nnyO8XriGRHYrlscXu4rG/lEhZHGiWHhn7GNAgYTjSyTOHLU\nh8CgOiTXmEW1QBuDAP5ogN8hGM/YXDkoZibTsa4hrHTSFG4IwXi930SOyXRb\nvsq9P6FN/AomQVmj/YMd6Gem9GlOekXVa6ACsSwjxLk58hb1l9f9lw73QX+X\ncBs+f4S4WxiwrmuD+DC4vYAnaifNPCiDw7ojRp8WZifwess82QMudt9zhiHt\nDP0pPC5OYgVpHEhImzeM0dVlHPjPY0//nSDktidu0oJGjkwHr1hkJ1qqApD7\nZV/cJh606yuyG8sL6fgRoW/NLVSKoFtxApvjHEfrVw1T466ZY96euo2+02U2\nsnsfe+qAT1o2yJih0CI/47pN4q8VCduVBDKZ4N4pBRhh4PlltKPHO0KS2y9k\nSe+l16XSdecl4fC59AkMirapY/cwYddvf/dfgX/2V8UubP5x19aNuBjj3EQs\nrHxf\r\n=UUQY\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.44.0.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.13","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.3","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.44.0","@fluidframework/core-interfaces":"^0.39.5","@fluidframework/container-loader":"^0.44.0","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.44.0","@fluid-experimental/fluid-framework":"^0.44.0","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.44.0","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.44.0_1627003923413_0.42188384965133396","host":"s3://npm-registry-packages"}},"0.44.1":{"name":"@fluid-experimental/frs-client","version":"0.44.1","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.44.1","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"6bd06c993284804a68f75ab0d522ceff12c1d535","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.44.1.tgz","fileCount":80,"integrity":"sha512-Dh2LYHk7t4ZZZLHfxRSUJEccbbFQSFX1jMLYAc4CYaSc0+JXVVe4VHuxncNpYj0/AfPsVXss/hz6PHnaEwTebQ==","signatures":[{"sig":"MEUCIBCFV1ElWcspymOKcQWJMrX83qumaBOZistkWoWVLS3dAiEApx7EH/Mmy4d6pHoHnSVQSob6uKdH67tpftnKehfFxPw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCeT9CRA9TVsSAnZWagAAdtIQAJp+JFJHC1N8LE67Dsgi\n5yNVXvcBMu5tCDdBkWbnIKKfNSOlS5xc+NMfDVMAcP4xhnb2ZkfqPAG1SM9f\nVY66EYH4TKX5m7SlTvmb+C77n5IvX9An67GKlcphnrSpMqBHy0sbE5ZQvn63\nvkef6YCv9Ly2hbTHbbp6KCDq4/6zLzQfLeuYVfd+pPzP3h3s9sAGNy04iKAB\nl1mKhzzfYRhOFhxYDXt4wfmZyjSP3Vb8spb51k23+/SF/8clyboxXHSUN8Ku\n++Bh/ErdZ1Q9h8MvsVZ4uiHpae0jEoP/0l8JbCQsPrRC7ZqrW0MIqbJIDtXP\nGU8PKNXQqzKMdtRIppRxpCRG8WvbPuA/M8FYd51gOggYAIazNdidhn5L9OCi\nJDrIvFEE2WJm01zQ+XHY6cUG6MVceauItjPbLPxpRCpjmii+Pdi/0fD2rgQ1\n8G9N7pGhvUmMyNZUcWdLU479K9HnbOw2B4cX/1Bk0X0EVbq4lxvEJ1o/K7Xt\nO/AP++Bx1mkzKAOIJkmMve8Mp6TzPPBm5KNMw/NbCDNSn5jyx9tEYiGnY2js\neVKLHOxMr63qftMAIai3MJEEZe5UJTsNXdSfColrucmndZ6AsXypZTwdudI/\nZAUF/zUCPF0SR2/crjtfGm62eufKx4lbCd0oNdvev4LGzj3+2Cfzh/aNujVx\nRXbZ\r\n=AxmE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.44.1.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","build:full:compile":"npm run build:compile"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.4","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.44.1","@fluidframework/core-interfaces":"^0.39.5","@fluidframework/container-loader":"^0.44.1","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.44.1","@fluid-experimental/fluid-framework":"^0.44.1","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.44.1","@fluidframework/server-services-client":"^0.1027.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","typescript":"~4.1.3","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.44.1_1628038397380_0.12294729028191975","host":"s3://npm-registry-packages"}},"0.45.0-32948":{"name":"@fluid-experimental/frs-client","version":"0.45.0-32948","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.0-32948","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"e34b8f480d0326bcbebb61baa7b0da6d6ade26ff","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.0-32948.tgz","fileCount":80,"integrity":"sha512-YjVbfbpCDVa4ygjeROAvFxsIDmCVmSb1l3bp2V2WvkPWng8JI4xIrpFwjv97SLyMUWa13KdbV81BvT6U2OBBOQ==","signatures":[{"sig":"MEUCIQCUBBPqhDLWaPrP3T4xtGsX2lVNUhF1H6dgXnLbWn90YwIgONkKYLhhZHMZLonazb1XAP41cMccNGeozA6NOvXl4Qk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDZAECRA9TVsSAnZWagAAftoQAKMF+dVt0Zd6RHyMu0FP\nSD1vV0xOL112BEVYNMSq7e0uxLHIrg0lcSDFKJ+Et6kqE54OvdTWp3FQ8gmb\n9+p3mTpZXcDTsoQuDX8gVh870ET/P2aSUDFm17NJdz7wA/tARJBp9PCguOXx\nyL17/yjfbWu6bn/ZR9oBtYVy7VuJPBkb0eb3wZcy7vgFXan1XG4xaoJuu5kU\njnGfcwZeYQJNI5cfZSeMSb40PbHJSLvOlx8A1ai7cWULhphtRuJnltwBM+8i\nRQFMUz/W1QHzeuCx8sf/RheB+uLKidY9nVe1kw586JU6avTmCvwavYMuxazM\ndh4fanySb03psOxtRkMuSjQp7N+z354YjV3s57M+lhSUw3OCkoGFWYBHW1Tl\n79KARoAjRUNvBb1g8Qpd/bU7+kKQwyUz7B1vVTjiBHnZaj3bkPQSaEUIxtQy\nShc1wheIVHt6lZg/CmpEZTVZcBlJV1J292UH58jh0FES+s1v9yQw+u5rVmU0\ni6PfFD6zFOePYVXR5HG8bz/qcZNXDfTnGo0GSkzkyDhImLmG1yiOERlFoLMT\nCkrHkQgbxsHWiK/r/Y3Gey3JgsV+qO8ryt2BWbugcBTVBQ5DhmX4CTuKG1h6\n4AgN9nPM4oGmvrq51oPRKXiI/Y31/fObhKpgPFe/Uddn6L9YXqPGfR1lByqp\njS0D\r\n=87Rb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.0-32948.tgz","types":"dist/index.d.ts","module":"lib/index.js","readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` class that allows you to interact with Fluid.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Instantiating FrsClient\n\nFluid requires a backing service to enable collaborative communication. The `FrsClient` supports both instantiating against a deployed FRS service instance for production scenarios, as well as against a local, in-memory service instance, known as Tinylicious, for development purposes.\n\nNOTE: You can use one instance of the `FrsClient` to create/fetch multiple containers from the same FRS service instance.\n\nIn the example below we will walk through both connecting to a a live FRS service instance by providing the tenant ID and key that is uniquely generated for us when onboarding to the service, as well as using a tenant ID of \"local\" for development purposes to run our application against Tinylicious. We make use of `FrsAzFunctionTokenProvider` for token generation while running against a live FRS instance and `InsecureTokenProvider` to authenticate a given user for access to the service locally. The `FrsAzFunctionTokenProvider` is an implemention that fulfills the `ITokenProvider` interface without exposing the tenant key secret in client-side code.\n\n### Backed Locally\n\nTo run Tinylicious on the default values of `localhost:7070`, please enter the following into a terminal window:\n```\nnpx tinylicous\n```\n\nNow, with our local service running in the background, we need to connect the application to it. For this, we first need to create our `ITokenProvider` instance to authenticate the current user to the service. For this, we can use the `InsecureTokenProvider` where we can pass anything into the key (since we are running locally) and an object identifying the current user. Both our orderer and storage URLs will point to the domain and port that our Tinylicous instance is running at.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"local\",\n    tokenProvider: new InsecureTokenProvider(\"fooBar\", { id: \"123\", name: \"Test User\" }),\n    orderer: \"http://localhost:7070\",\n    storage: \"http://localhost:7070\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n### Backed by a Live FRS Instance\nWhen running against a live FRS instance, we can use the same interface as we do locally but instead using the tenant ID, orderer, and storage URLs that were provided as part of the FRS onboarding process. To ensure that the secret doesn't get exposed, it is passed to a secure, backend Azure function from which the token is fetched. We pass the Azure Function URL appended by `/api/GetFrsToken` along with the current user object to `FrsAzFunctionTokenProvider`. Later on, in `FrsAzFunctionTokenProvider` we make an axios `GET` request call to the Azure function by passing in the tenantID, documentId and userID/userName as optional parameters. Azure function is responsible for mapping between the tenant ID to a tenant key secret to generate and sign the token such that the service will accept it.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"YOUR-TENANT-ID-HERE\",\n    tokenProvider: new FrsAzFunctionTokenProvider(\"AZURE-FUNCTION-URL\"+\"/api/GetFrsToken\", { userId: \"test-user\",userName: \"Test User\" }),\n    orderer: \"ENTER-ORDERER-URL-HERE\",\n    storage: \"ENTER-STORAGE-URL-HERE\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\nNOTE: When using the `FrsClient` with tenant ID as \"local\", all containers that have been created will be deleted when the instance of the Tinylicious service (not client) that was run from the terminal window is closed. However, any containers created when running against the FRS service itself will be persisted. Container IDs can NOT be reused between Tinylicious and FRS to fetch back the same container.\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```typescript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = fluidContainer.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.4","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"0.45.0-32948","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"0.45.0-32948","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"0.45.0-32948","@fluid-experimental/fluid-framework":"0.45.0-32948","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"0.45.0-32948","@fluidframework/server-services-client":"^0.1028.0-0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluid-experimental/fluid-framework":"^0.43.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.0-32948_1628278788784_0.5341050011530946","host":"s3://npm-registry-packages"}},"0.45.0":{"name":"@fluid-experimental/frs-client","version":"0.45.0","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.0","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"38f4d94500658dd9b9aba97e29029f5e6878bc64","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.0.tgz","fileCount":80,"integrity":"sha512-gx+JCSyXetHiHbQ8VB0+hV05lzPxXNDDPs+l031MR4sJCIdIEETOwCF5Ca3GFWL6xKLMUkeddGo+OCyx0i3SoA==","signatures":[{"sig":"MEYCIQD+UDP28p0YS/+pMRZCmPtOPcFoBfu8uG2qdN+ZVd4B4QIhAPgePoGLvDB5bCH2SR7RTJiEozIjun2NY7562vj33Ije","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94427,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDcPwCRA9TVsSAnZWagAA0cwP/AwTGQajUuId/PqkzeNb\nVJ37Efzi4lTXKUAL0TLzgub8MnzAOFeirwLJ3PZZVSIQqXjXS6ReEwMV9KFF\nwTEFv1wDiqfqVaygrTbqNftssInaSIeH+7gfpb9jHeYKMgqvpPtOsycb8H+H\neeX7V7bJMvKvxUNJQjUg6OQubWTqal7GFyvmqNQwMH5cJ4gWVb8zGAzI+0b+\nfzRENwX6S92IQ4X5Oz1/RvOQHtK3ep+XPYzIs/FCrrSS01A1tAdJG/i80cJK\nmD0kiAGk0tcCfQeng1YqzLISNTKaKvsjBf+9TRPf4/5g3+/Lo/Y3Lide/FMg\n4oi3cI6dWZJdjSWxTBeOhprcMBqwWrwCN3DwQ0dMCaQT0kTnRqClwgOaszvF\nzCNodyerTYAaEVaTTMARu19Poxdsm3ZDEgOQh98xfRF0E7mu9xZzHHdZYWmu\naNh7a/00zZWGhYH6OknXCM3wLmS05EwagTpqdZfz+3CaNXn20XTAQABOmL2E\nJcBnABCcqCJXXwCg7oBQq3Ukr4avr7SJ3MrPg08xwGDvZjyllrO3Qio4vGXB\nnPo/g5o0fHGh1jsD1vBC8jLFEisgGBaWl3nysxQAhRYDGL/0yJGrjCHNFT0p\niUiFhev0y0O43y/sGnqzFnTsW89i1ZLMaBBbkZ9d7J7wfFxE8CpG4p0E7ogU\nHiT1\r\n=kI4a\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.0.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.4","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.45.0","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"^0.45.0","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.45.0","@fluid-experimental/fluid-framework":"^0.45.0","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.45.0","@fluidframework/server-services-client":"^0.1028.0"},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluid-experimental/fluid-framework":"^0.45.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.0_1628292080574_0.7058001226225907","host":"s3://npm-registry-packages"}},"0.45.1":{"name":"@fluid-experimental/frs-client","version":"0.45.1","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.1","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"fc27242f9920b6b538615fbdcbfe3e9e26e183fb","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.1.tgz","fileCount":80,"integrity":"sha512-+hG+OiJ9DXNwferyYzBKkWPt+3pv1/t6z4I+eJFexyBkseH8IOPIi6lryriadIeDmg0cZLIQ8Z8iqIQTPShXBg==","signatures":[{"sig":"MEUCIQCEMxb4knFNoKCof9zW/rEVmjm65bocnxc0fJ5fpQE3DgIgD3KntPO6qjFUlQ3dJAvGn1BwjrnqqpEdjS0Ffp0XcdI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEdUyCRA9TVsSAnZWagAAOVkP/jUppbZ+t2MWQuE6CpHA\nZ6racj5RQVzXcErAd7Zmh48dGpbl2FnD0eFl/6a3NrGwv8nlI8I9Raau/97Q\nUuEGfacoh+v6wKqZ/YiDJ7M0+qwEUNB5P7bfN6+PLkbvZiT4PCTGrxKCsHAX\ny7RLT53ovZUtptLTqSWQuCNde7o/IQCMc6Y2XsPfg0DxdYrwYmFIqX5bhvgp\n1KZW1oSeLKqgXBaMHoJcO2Ds45LTbCFcCSSHI/8QLvoe8WS6kji4BxOkWSMV\nj+gXPSs373CcKXjrYRXLN8UIiydFi9iVtG2PkoKCeMHf/RIgg4uqB1QFYxXH\nqAm3OkdmErwBFhpEvPlKlA1k3B2CoQ/0pzxXLjLTCS3yCuf78Lx+LZEqWWk2\nhqsmxkgerCkp98uKAtkNC12sCb8c72QK+f5qaZTGK/ry2yPqhZEEDmgU63kO\nqE3W5QuBVyCifsQTcp+yt9IVIponDnGBz5r+MZ6gxpCqS3BrHHOnO1PzggrP\nQ2k8SVXBqJIDq1eAK219vHqT4fSmtDwo7u9VG2/pRCCBYlRXiqQ06qgC5sk3\nf2V6l4TuJ/Gt10aEpuQGhMXsq4kwI3xS4y9YXodreLSoIm0oz5DcnSryuwdp\nLLYlD5UFAscQCKIwyMCAff3F0izrD+PS4W054tNUs0y+ACGRmlJzp+YfjbaE\nj0D0\r\n=AI5L\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.1.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.4","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.45.1","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"^0.45.1","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.45.1","@fluid-experimental/fluid-framework":"^0.45.1","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.45.1","@fluidframework/server-services-client":"^0.1028.1"},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.1_1628558642000_0.7129726472805451","host":"s3://npm-registry-packages"}},"0.45.2":{"name":"@fluid-experimental/frs-client","version":"0.45.2","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.2","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"233af377ea52b32ffdc562cd9e6f52ab42dc4de2","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.2.tgz","fileCount":80,"integrity":"sha512-Ala42aB7yRZC6W04RDB3Fl9umQjL/qLp46maDTFzwwpo+K1k+bGmeYWw4N25+cMqAAqCH6gVOv4kJt2v4ccleA==","signatures":[{"sig":"MEUCIBGPIAJell3Ili7zQAvgezgUtbtzfIvVBzSs/FoSzzJaAiEA9CJrUDSiLPn5UmhrXj0zz2OawCZ++fb1yGB8e2RmWvM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFEiUCRA9TVsSAnZWagAAqGMP+gLaAHqNw7rhx9c+ftZ3\nzjVT0rzkP8Nu+tIShnL7Qof9ypIE4uEtwLiVoUK4DFvuIZnVznyNhBuOlaOC\nv0rVHuceENB4mbPLjnZM/Dzgkwr9Qclefq6ayi2AxJXr3mxl9bRLobHjgmOs\n9NqYWV1u/J5bsR6llE9wcdfcqYAdtrwrVYpcUFY97mgs2SEFWOaiePuO5I15\n+vWMtKT5NfRigs0DrndY5S/vFVkBRXcQaVbOsoLpQXLzVL+bLEsYY/AEL0dd\nj69vmmsPvUYbzD0gAIzKkhvtoe5vIu8P4xuHAeYh+sCMpX61mK+GK7LCDIKH\nX4DA/8ZeGyF4gINdnD72PtCetZyjMNHPd3FRwP5/RnuH47/edUFpEUmlRara\npF8nPCwpYOy2cePFYer5x8m4og7dtqHETGuY3MPQiqXA57wmv6Pr9rXRdoZL\nbyLWQ4HQwgboWNxRQBu9Lt90Pe/1DoZRbpXf6xaSWqzGNLYL/auNmt8uJ+Rm\nRPCnSkXsupJyYwmd5V3cbIjQyL9GuL3ci2qrJm8UNY+BHgz3aIyKUQaaOTZg\nsdSQBOpx5SAAbmXT/bX/yVnHD/zZLi8LDtzeni7dh66UTFIld+XcBDf8+ABI\n+Uppwoap+mj/QtjqJgyjOiAN24A1gwu/Zs2mFu96PN0yt7SzC7/WLMBl4qm/\nFnPJ\r\n=pxlN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.2.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.5","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.45.2","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"^0.45.2","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.45.2","@fluid-experimental/fluid-framework":"^0.45.2","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.45.2","@fluidframework/server-services-client":"^0.1028.1"},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.2_1628719252325_0.8045446670697738","host":"s3://npm-registry-packages"}},"0.45.3":{"name":"@fluid-experimental/frs-client","version":"0.45.3","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.3","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"6faef14bbdbe312ad671d299406143b8342b6629","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.3.tgz","fileCount":80,"integrity":"sha512-OqK/PBd2vLc28bCl41iYmmS29kkbTmnsmga5axnNF4rKHjs/RVLdtPaJ+jdEe4d3Lrei6B0GViFIAGnPn2oxDA==","signatures":[{"sig":"MEQCIChQurlniDOr5vme8IjaVPuXCwURGpgL9IsWyqMy5K9YAiBBvsZ6I6Fx4p9UrZ0RJoi/V4d7N6ycJrqxkA6x0fZ+4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFcGXCRA9TVsSAnZWagAAd30P/RijIkkzS22Ug3VlvXjb\nabqXQ8IIMAi0TtJ1GersfLINhUCcSyf3sSV1nu4N9lDK5FlasqG/NMmYZIhB\nkzWsW4FP8H/2QS1mf0pUR+mKpt/AB7db9zxx2E0dXt84PyZttBFbb9keAuSh\nJdXL1zZbGZq3iD3LNAYPGi4jQiac6dj9eAehk0q5/Al1uRY0JfQYyK6cFII+\n9qLrWf0gNKquSoBkieduaeeqEsy/uokXT3EYweXDO02zZe+NP92voZlEaRPG\n59D2294zMmVnJXMYCiMO2lGDVoSIBEtdcpveXUBucjcl8gYj1Ksn8oeXatJK\n5ynxL9pmA+JC7CQ0C0YVsRkzsrKYm6m9simaK6As+lonOtVxxej0MDOKZnGt\nPtIdDwDj+DAYHe3NDWDlbNUMib2s/JC5Nm4OdjwRwHax0oCsHznE1HOEVBXS\njqXq2ftt77L6w8X6KUEEnYeZa2GHyv7CZCkPbBmOmqlDqNlIdN+vuH5EtRZe\nqES8P5QXzCbEbLUjdDfU/+SmzfhfN/CXA0vVTrL/73ESHVZ7QFwVwyzGqry5\nn6HOTesAfklrL1qUWkmK1RgEFVvkoG2TUEe/U7pmXFSZObAYUFW0p+C4pMg1\nMDw3oPoI7n0JrxmDbBxzeF6IzP57fs3ued/+Zxas6qm6KSOKGrGHthdfbxKW\n9R9w\r\n=J7t6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.3.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.5","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.45.3","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"^0.45.3","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.45.3","@fluid-experimental/fluid-framework":"^0.45.3","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.45.3","@fluidframework/server-services-client":"^0.1028.1"},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.3_1628815767538_0.8035569734916033","host":"s3://npm-registry-packages"}},"0.45.4":{"name":"@fluid-experimental/frs-client","version":"0.45.4","author":{"name":"Microsoft and contributors"},"license":"MIT","_id":"@fluid-experimental/frs-client@0.45.4","maintainers":[{"name":"curtisman","email":"curtism@microsoft.com"},{"name":"danroney","email":"daroney@microsoft.com"}],"homepage":"https://fluidframework.com","bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"dist":{"shasum":"66dfd824a8947fe368d93b6e3876d50f5e9bf5dc","tarball":"https://registry.npmjs.org/@fluid-experimental/frs-client/-/frs-client-0.45.4.tgz","fileCount":80,"integrity":"sha512-Tk/7mgN1hZuVEkPDvjndxcf90F8Fy1j8q8+ZrnZbtNSqZ0UQN4DDtcTkd+zS7pJlGCaqUzyJRIrvmukOCjOz8w==","signatures":[{"sig":"MEUCIQCaRrL2jqtr3OaBX05CPt3qRiv30/Dpmgjnei84klmilAIgaficR1gXO7jZTSs7i1ruQSn4RhGmF9T1IZbSs57pw0o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhHACaCRA9TVsSAnZWagAAaNYP+gPLJfisJ/FWWI85AH+p\n0LxcUqOCilfOci7zbLd5Xi85RSgC4k3Vu5RwnENnjvMO2mwR4PM9GKWsVRpv\n3Qb2qKaFoMvBxH0n+2mtaRRoIfor0yjkI/Cp+qiPTuoV67Dbu975E7ocFRYA\n9ju73Zrnk0Siv58Ackb2rjayA6hR+jcSz/2L3YWEO2BJrOSAJQCL41GJpxtY\niLaHnKYHNYbqBINAsj9VWOwsSBCe2x0/uar4k2XHvN4gM/LUQlD0ajaYtc7+\nGtHELhpz3IpM4m4YoSCyRNMZjCZRjtmsVxGXBsNYPb5TkB8sAUSc5UP8Qu9M\nBLvK67KcgblzDqcXmxFvbbSJkAQe+5D5hTwQCf0EVlR6fDqZmjc48B4d56gd\nWFIxkc7MR2TppDVplz4ycb/fv0lMXFnifPgN9l4N0LqA5tjcO5p3eZEVvSK/\nG7/4F7I7ypzwBAPEthSeS3gwgpPI1viNg0IJKQ2zUksfzz3fIcdqBLMXvTJa\n577G9cwpMmEtmeNnfc59jF0hselQTCgUXLJeiCKKaBR+z8tyUIh02xfOyQfj\n8Q8brv/aC1NjeocSAxizLmnl1d9d5xc4m60Ed7s06th3d8qanR1cA+y9wPuJ\nl38mNEMA0LTlbtV0Ju3oi3SXlHmUd2wtpKtRRRqUlFO0XS5rHq/c/UExoKeu\nhcCD\r\n=BZJi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","_from":"file:fluid-experimental-frs-client-0.45.4.tgz","types":"dist/index.d.ts","module":"lib/index.js","scripts":{"tsc":"tsc","lint":"npm run eslint","build":"npm run build:genver && concurrently npm:build:compile npm:lint","clean":"rimraf dist *.tsbuildinfo *.build.log","tsfmt":"tsfmt --verify","eslint":"eslint --format stylish src","lint:fix":"npm run eslint:fix","tsfmt:fix":"tsfmt --replace","build:docs":"api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/","build:full":"npm run build","build:test":"tsc --project ./src/test/tsconfig.json","eslint:fix":"eslint --format stylish src --fix","build:esnext":"tsc --project ./tsconfig.esnext.json","build:genver":"gen-version","test:realsvc":"npm run test:realsvc:tinylicious","build:compile":"concurrently npm:build:commonjs npm:build:esnext","ci:build:docs":"api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/","build:commonjs":"npm run tsc && npm run build:test","test:realsvc:frs":"cross-env process.env.FLUID_CLIENT='\"frs\"' && npm run test:realsvc:frs:run","build:full:compile":"npm run build:compile","test:realsvc:frs:run":"mocha --unhandled-rejections=strict --recursive dist/test/**/*.spec.js --exit","start:tinylicious:test":"tinylicious > tinylicious.log 2>&1","test:realsvc:tinylicious":"start-server-and-test start:tinylicious:test 7070 test:realsvc:frs:run"},"_npmUser":{"name":"curtisman","email":"curtism@microsoft.com"},"_resolved":"","_integrity":"","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"_npmVersion":"6.14.14","description":"A tool to enable creation and loading of Fluid containers using the Frs service","directories":{},"sideEffects":false,"_nodeVersion":"12.22.5","dependencies":{"axios":"^0.21.1","debug":"^4.1.1","@fluidframework/runtime-utils":"^0.45.4","@fluidframework/core-interfaces":"^0.39.7","@fluidframework/container-loader":"^0.45.4","@fluidframework/common-definitions":"^0.20.1","@fluidframework/driver-definitions":"^0.39.6","@fluidframework/test-runtime-utils":"^0.45.4","@fluid-experimental/fluid-framework":"^0.45.4","@fluidframework/protocol-definitions":"^0.1024.0","@fluidframework/routerlicious-driver":"^0.45.4","@fluidframework/server-services-client":"^0.1028.1"},"_hasShrinkwrap":false,"devDependencies":{"uuid":"^8.3.1","mocha":"^8.4.0","eslint":"~7.18.0","rimraf":"^2.6.2","cross-env":"^7.0.2","typescript":"~4.1.3","tinylicious":"^0.4.21640","@types/mocha":"^8.2.2","concurrently":"^5.2.0","start-server-and-test":"^1.11.7","@microsoft/api-extractor":"^7.16.1","@fluidframework/build-common":"^0.22.0","@fluidframework/eslint-config-fluid":"^0.23.0"},"_npmOperationalInternal":{"tmp":"tmp/frs-client_0.45.4_1629225114049_0.8665804430117874","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-06-11T18:55:58.384Z","modified":"2026-07-29T21:13:28.573Z","0.41.0-27154":"2021-06-11T18:55:58.824Z","0.41.0":"2021-06-11T23:27:31.021Z","0.41.1":"2021-06-16T01:47:09.346Z","0.42.0-27549":"2021-06-16T15:28:20.755Z","0.42.0-27644":"2021-06-16T21:50:14.491Z","0.42.0-27677":"2021-06-17T14:58:46.322Z","0.42.0-27683":"2021-06-17T16:27:51.685Z","0.41.2":"2021-06-22T00:35:14.400Z","0.41.3":"2021-06-22T23:04:52.235Z","0.41.4":"2021-06-23T22:40:00.961Z","0.42.0-28410":"2021-06-25T20:51:50.494Z","0.42.0":"2021-06-26T01:52:17.102Z","0.42.1":"2021-07-08T16:27:49.200Z","0.42.2":"2021-07-08T22:52:26.659Z","0.43.0":"2021-07-09T19:50:12.817Z","0.42.3":"2021-07-09T20:55:17.510Z","0.43.1":"2021-07-19T23:12:20.481Z","0.42.4":"2021-07-20T00:13:51.398Z","0.44.0-30858":"2021-07-22T22:10:32.370Z","0.44.0":"2021-07-23T01:32:03.617Z","0.44.1":"2021-08-04T00:53:17.512Z","0.45.0-32948":"2021-08-06T19:39:48.980Z","0.45.0":"2021-08-06T23:21:20.731Z","0.45.1":"2021-08-10T01:24:02.157Z","0.45.2":"2021-08-11T22:00:52.501Z","0.45.3":"2021-08-13T00:49:27.752Z","0.45.4":"2021-08-17T18:31:54.225Z"},"bugs":{"url":"https://github.com/microsoft/FluidFramework/issues"},"author":{"name":"Microsoft and contributors"},"license":"MIT","homepage":"https://fluidframework.com","repository":{"url":"git+https://github.com/microsoft/FluidFramework.git","type":"git"},"description":"A tool to enable creation and loading of Fluid containers using the Frs service","maintainers":[{"email":"ffsa@microsoft.com","name":"ms-fluid-bot"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"},{"email":"npmjs@microsoft.com","name":"microsoft1es"}],"readme":"# @fluid-experimental/frs-client\n\nThe frs-client package provides a simple and powerful way to consume collaborative Fluid data with the Frs service.\n\nThis package is marked as experimental and currently under development. The API surface is currently under going drastic breaking changes with no guarantees on compatibility.\n\n## Using frs-client\n\nThe frs-client package has a `FrsClient` class that allows you to interact with Fluid.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n```\n\n## Instantiating FrsClient\n\nFluid requires a backing service to enable collaborative communication. The `FrsClient` supports both instantiating against a deployed FRS service instance for production scenarios, as well as against a local, in-memory service instance, known as Tinylicious, for development purposes.\n\nNOTE: You can use one instance of the `FrsClient` to create/fetch multiple containers from the same FRS service instance.\n\nIn the example below we will walk through both connecting to a a live FRS service instance by providing the tenant ID and key that is uniquely generated for us when onboarding to the service, as well as using a tenant ID of \"local\" for development purposes to run our application against Tinylicious. We make use of `FrsAzFunctionTokenProvider` for token generation while running against a live FRS instance and `InsecureTokenProvider` to authenticate a given user for access to the service locally. The `FrsAzFunctionTokenProvider` is an implemention that fulfills the `ITokenProvider` interface without exposing the tenant key secret in client-side code.\n\n### Backed Locally\n\nTo run Tinylicious on the default values of `localhost:7070`, please enter the following into a terminal window:\n```\nnpx tinylicous\n```\n\nNow, with our local service running in the background, we need to connect the application to it. For this, we first need to create our `ITokenProvider` instance to authenticate the current user to the service. For this, we can use the `InsecureTokenProvider` where we can pass anything into the key (since we are running locally) and an object identifying the current user. Both our orderer and storage URLs will point to the domain and port that our Tinylicous instance is running at.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"local\",\n    tokenProvider: new InsecureTokenProvider(\"fooBar\", { id: \"123\", name: \"Test User\" }),\n    orderer: \"http://localhost:7070\",\n    storage: \"http://localhost:7070\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n### Backed by a Live FRS Instance\nWhen running against a live FRS instance, we can use the same interface as we do locally but instead using the tenant ID, orderer, and storage URLs that were provided as part of the FRS onboarding process. To ensure that the secret doesn't get exposed, it is passed to a secure, backend Azure function from which the token is fetched. We pass the Azure Function URL appended by `/api/GetFrsToken` along with the current user object to `FrsAzFunctionTokenProvider`. Later on, in `FrsAzFunctionTokenProvider` we make an axios `GET` request call to the Azure function by passing in the tenantID, documentId and userID/userName as optional parameters. Azure function is responsible for mapping between the tenant ID to a tenant key secret to generate and sign the token such that the service will accept it.\n\n```typescript\nimport { FrsClient, FrsConnectionConfig } from \"@fluid-experimental/frs-client\";\n\nconst config: FrsConnectionConfig = {\n    tenantId: \"YOUR-TENANT-ID-HERE\",\n    tokenProvider: new FrsAzFunctionTokenProvider(\"AZURE-FUNCTION-URL\"+\"/api/GetFrsToken\", { userId: \"test-user\",userName: \"Test User\" }),\n    orderer: \"ENTER-ORDERER-URL-HERE\",\n    storage: \"ENTER-STORAGE-URL-HERE\",\n};\nconst frsClient = new FrsClient(config);\n```\n\n## Fluid Containers\n\nA Container instance is a organizational unit within Fluid. Each Container instance has a connection to the defined Fluid Service and contains a collection of collaborative objects.\n\nContainers are created and identified by unique IDs. Management and storage of these IDs are the responsibility of the developer.\n\n## Using Fluid Containers\n\nUsing the `FrsClient` object the developer can create and get Fluid containers. Because Fluid needs to be connected to a server, containers need to be created and retrieved asynchronously.\n\n```typescript\nimport { FrsClient } from \"@fluid-experimental/frs-client\";\n\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer( { id: \"_unique-id_\" }, /* schema */);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, /* schema */);\n```\n\nNOTE: When using the `FrsClient` with tenant ID as \"local\", all containers that have been created will be deleted when the instance of the Tinylicious service (not client) that was run from the terminal window is closed. However, any containers created when running against the FRS service itself will be persisted. Container IDs can NOT be reused between Tinylicious and FRS to fetch back the same container.\n\n## Defining Fluid Containers\n\nFluid Containers are defined by a schema. The schema includes initial properties of the Container as well as what collaborative objects can be dynamically created.\n\nSee [`ContainerSchema`](./src/types.ts) in [`./src/types/ts`](./src/types.ts) for details about the specific properties.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        /* ... */\n    },\n    dynamicObjectTypes: [ /*...*/ ],\n}\nconst frsClient = new FrsClient(config);\nawait frsClient.createContainer({ id: \"_unique-id_\" }, schema);\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n```\n\n## Using initial objects\n\nThe most common way to use Fluid is through initial collaborative objects that are created when the Container is created. DistributedDataStructures and DataObjects are both supported types of collaborative objects.\n\n`initialObjects` are loaded into memory when the Container is loaded and the developer can access them via the Container's `initialObjects` property. The `initialObjects` property has the same signature as the Container schema.\n\n```typescript\n// Define the keys and types of the initial list of collaborative objects. Here, we are using a SharedMap DDS on key \"map1\" and a KeyValueDataObject on key \"pair1\"\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n        pair1: KeyValueDataObject,\n    }\n}\n\n// Fetch back the container that had been created earlier with the same ID and schema\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\n\n// Get our list of initial objects that we had defined in the schema. initialObjects here will have the same signature\nconst initialObjects = fluidContainer.initialObjects;\n// Use the keys that we had set in the schema to load the individiual objects\nconst map1 = initialObjects.map1;\nconst pair1 = initialObjects[\"pair1\"];\n```\n\n## Using dynamic objects\n\nLoadableObjects can also be created dynamically during runtime. Dynamic object types need to be defined in the  `dynamicObjectTypes` property of the ContainerSchema.\n\nThe Container has a `create` method that will create a new instance of the provided type. This instance will be local to the user until attached to another LoadableObject. Dynamic objects created this way should be stored in initialObjects, which are attached when the Container is created. When storing a LoadableObject you must store a reference to the object and not the object itself. To do this use the `handle` property on the LoadableObject.\n\nDynamic objects are loaded on-demand to optimize for data virtualization. To get the LoadableObject, first get the stored handle then resolve that handle.\n\n```typescript\nconst schema = {\n    name: \"my-container\",\n    initialObjects: {\n        map1: SharedMap,\n    },\n    dynamicObjectTypes: [ KeyValueDataObject ],\n}\n\nconst { fluidContainer, containerServices } = await frsClient.getContainer({ id: \"_unique-id_\" }, schema);\nconst map1 = container.initialObjects.map1;\n\nconst newPair = await container.create(KeyValueDataObject);\nmap1.set(\"pair-unique-id\", newPair.handle);\n\n// ...\n\nconst pairHandle = map1.get(\"pair-unique-id\"); // Get the handle\nconst pair = await map1.get(); // Resolve the handle to get the object\n\n// or\n\nconst pair = await map1.get(\"pair-unique-id\").get();\n```\n\nSee [GitHub](https://github.com/microsoft/FluidFramework) for more details on the Fluid Framework and packages within.\n","readmeFilename":"README.md"}