{"_id":"@azure-tools/cadl-typescript","_rev":"54-fb9e4ff638c702d09b5357cdfda24892","name":"@azure-tools/cadl-typescript","dist-tags":{"latest":"1.0.0-beta.10","dev":"1.0.0-alpha.10.20230306.1"},"versions":{"1.0.0-beta.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"1be2da2c51d388f576fe0cd92bcb1d2ef79db0f4","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.1.tgz","fileCount":291,"integrity":"sha512-64+OOgLhKnxKCTTY2+1e2Fxb0ZqpUWRVFiMr5LpXsre1gGYHO9eoqyKcYdmpxbK2D+oBZM4EZtvcynarTjJF3w==","signatures":[{"sig":"MEUCIQCM/oWbM7w5P//RZHd42Whx2eMXvRQSDLgxxCN5rw+zqQIgWgHhvUsoiBPntA/4ytmBAd/VQJLpuh0FCcTuZNN0mcI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":753816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTNBIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrfuw/+Jb6Mv8hICEfAGtgWHc4F+WVBw8cEfM64x6PQu4O0hH2OmApK\r\nPdJyIv4fbufE7G5QW4HxfY86PrKpuJs0JFf7j1cP5TS+U4qGkYhntioxbUdI\r\nMuyjXp/BXdL6KafvCbI8+9tSrceNtwK0p11BsRxnYZ7DUr75H4d8hTjMScVf\r\nSI60/esKW4QzanE2pq7KRy1sNV7HNjgq3uLrFkQuAgGDBGwUkgNmcC9gXWwG\r\nBJuMR8Vy8cCvnNSdIouEzfd7lmI3MkC8Whs+vppQG+OXfMWUGV+67jmkr2V0\r\nmW4e4XWfsNdHPSMDeVDGvC/Zgl0yFDtk3+GILh9otbMXZrQ1tLsKDMJt7W6Z\r\nSyqtL02daC9ueSPqYWtw0wH9sfLPWQ08JAXVRKe9Aeyw8S0JS8o3Sbb71AvS\r\nT204URnCV7qh2cDmin2tT4/UeY/0s+PzAhVpS2NcInB/CPACrOiCkDgROcjY\r\nYELJwujHjh4fUL+vyzW0WVT/+H1vpgJRtHqevWCo6GElDpaSBtfXba0XlRYb\r\ndFEZ1iY8tQFGzFUKCRn+kaYP8WwTD+1ALkIz34zIAqd6ISZaBVB9G5yBPyoE\r\nKqVfFS0MmPHzyBMOL4i1Gv3VlMtWEOkbnkpXYBK06/RmUyxzMIz9PveHtkYo\r\nHZjDjjLCdx6DQtQdOHbX6sxCeDse8c8ehyM=\r\n=3IiW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.1.tgz","_integrity":"sha512-64+OOgLhKnxKCTTY2+1e2Fxb0ZqpUWRVFiMr5LpXsre1gGYHO9eoqyKcYdmpxbK2D+oBZM4EZtvcynarTjJF3w==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.17.0","@cadl-lang/compiler":"0.35.0","@azure-tools/rlc-common":"1.0.0-beta.1","@azure-tools/cadl-azure-core":"~0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.4","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.2","@azure-tools/cadl-ranch-expect":"~0.1.10","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.1_1665978439825_0.24096969591856832","host":"s3://npm-registry-packages"}},"1.0.0-alpha.1.20221017.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.1.20221017.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.1.20221017.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"bf23d4e39119c092a7fe8c38a8f94d1cce444deb","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.1.20221017.1.tgz","fileCount":291,"integrity":"sha512-k/CpaDkg009dgptfq0yM/Z3Fytq7PqoYW7AkFdOHoOM3TL5QeXAzsjHsznlVKNZ/VHmSnThJhQOWq18mKZOgoQ==","signatures":[{"sig":"MEQCIGtOSkp/nX2uwbo5K6j0LHVnzktjISLeJaTD5wpk6mg7AiBlSUB5qxgae8d7Nz1ffk/D6d7Rrn2NzdpRrlydtvrgxQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":753828,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTqeMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyIw//URX5nILLaguQuc3i0i5bbdKVIfSF/5+t62WR+elR7CSSRkMo\r\n0avy6UUi/sgifzDFe3g/EghBMoRCLXnytphIVnPwezEAHeJHzfApY0JZe9MF\r\nGWIrvYypLHD6777VKbVkuydv7R5sGQugkWRwNJU2a+hiv+j11Y70b5o2LKKe\r\ntwfBsQL8nNNF+VSNkDstLMqF2qKIW8MWfNlDhSCvkMdxLTAzIruZfi49jT/N\r\nu+U+aB5htzU6dSzan1W61rr7ExlXhZS0irod1If3SQL/DvFqkunE8WJlatxT\r\nanrRPE/kWWA2TG5cr3ehw2ww6c+tkjMUu515X1dbBhqrmTwnlhEj5UR3RfWH\r\nrXPrcfafazLAzHxd/REzeU94WXQY8rBypd7fkvhOk4iReYO+H3AXhZ145q9d\r\n2XX2VepL9gUbOfYOM1pGyHM0Zs0I91i/iohzq3JhvzUrvwYVVWfYtbPoEzsq\r\nMcyxqb9+6hsYsHyMGIUtac2UjCr1+mGjsvQu8t+Ud+G6wX3NZhyMZb8HAcLH\r\n/g07AKnbgtPrOW50rhMK5MiFQOw8EBNyKNvy21LthohvMZKQiDR1McsG0n2B\r\nJuH92BmsDE0Cj8DFekyTtnSYMCwnV+B7nCwdNGX2bOqX6UkVEfz6/0q3OcLK\r\nKu5xyzW18iabOWE405otjXoGOfdFiNt6L2w=\r\n=dlTB\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.1.20221017.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.1.20221017.1.tgz","_integrity":"sha512-k/CpaDkg009dgptfq0yM/Z3Fytq7PqoYW7AkFdOHoOM3TL5QeXAzsjHsznlVKNZ/VHmSnThJhQOWq18mKZOgoQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.17.0","@cadl-lang/compiler":"0.35.0","@azure-tools/rlc-common":"1.0.0-beta.1","@azure-tools/cadl-azure-core":"~0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.4","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.2","@azure-tools/cadl-ranch-expect":"~0.1.10","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.1.20221017.1_1666099084580_0.873613006206073","host":"s3://npm-registry-packages"}},"1.0.0-alpha.1.20221018.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.1.20221018.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.1.20221018.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"885c946e72f7846249ccfa7183e4146217767c40","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.1.20221018.1.tgz","fileCount":291,"integrity":"sha512-n3eYxjLA3WbwFcePJnYWi/ywj5zkdooYyVQ95sdPmUhNw4RxtNn83pY6N6VzjM2Ub3VaLHp2skTVaZ/k5m5igQ==","signatures":[{"sig":"MEUCIQD2VDUahkQwSZmYj4D1XSjDUF+OvoJhzIjTUlxxhgbrxgIgBQRuXEGOPf8qy7ki3KyU3ieGxWuV/8tkks2/JFiPFGQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":754568,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTtwzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgvhAAnbPxmtRCnpPQH3H2Vyn17IDhaKbEQIAeQPq8BvMDJ5cARSr+\r\nV/AYle8r8QTmoFGb88+yeYoPRaJ1beTv+s1KgtDh1dtmC+VPG0+OeCSLguvu\r\nxJU124/VZ1Hh8vwTciZCyDvfPn9/so0cod8FzuC7iBwNnlkNTi9dJ2rrXzyl\r\nH/T2/P2Zm3v5179YP3M4Nx8GXJ2ms/8HkHPW+rDIYAQ8iJMSmHg2tvQQ5Ao8\r\nuLWgPWuZ6OJTdYG8+FR+1M54gb1pi4SuqRxVm1zSBgfATFcwwjWzyELDEEsf\r\n84XksFJu1z6P81fbPopdgQ5KaYI4fq7SAW6ScKSklws6wVNrdAIiJaLE1K6l\r\nh7twrCBYPd9izfyEIkWMGVRqeWq3xUzQpkna6dQ/8xKs6Eovob8NWIB+s/R8\r\nJvtLVG3ajLVGgIISIO4VYjsCZHxR0GvdltTxDn7mn2x+6O1XlYagzKqC02bO\r\n/z2l0YeIEdY3RsAhHCbwHAXoy4hyezAKP94owSvBsvW+exQQwzGZz+QISeup\r\nCdUmBbBgaxeclDfJvwIKoXr8X0mptIgZpmqnKLjIfe21tYSV0xlkPd/qQieT\r\nT2E8cG34jbzPu7uhsII/HQWjdstjkijPnrkOn/ZamZFUd6bb8rIugSb5/pTJ\r\nvzU0x0OfoyUXfLoH+wPWykx8mBrsp7p4YsE=\r\n=9I+f\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.1.20221018.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.1.20221018.1.tgz","_integrity":"sha512-n3eYxjLA3WbwFcePJnYWi/ywj5zkdooYyVQ95sdPmUhNw4RxtNn83pY6N6VzjM2Ub3VaLHp2skTVaZ/k5m5igQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.17.0","@cadl-lang/compiler":"0.35.0","@azure-tools/rlc-common":"1.0.0-beta.1","@azure-tools/cadl-azure-core":"~0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.4","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.2","@azure-tools/cadl-ranch-expect":"~0.1.10","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.1.20221018.1_1666112563107_0.37722134868255575","host":"s3://npm-registry-packages"}},"1.0.0-beta.2":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.2","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"7e5d45b534d1b0c41c28a29ce5018803c589f9d3","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.2.tgz","fileCount":291,"integrity":"sha512-e6XpuUrlS034JJj9tIZzqJhKHfXEqB6fc2MhszcN+Y6TPn2oUMdpWgG1VeVZMXqZ7YwNdDK25Y+ptocEA1w2MA==","signatures":[{"sig":"MEYCIQDsPVfa6bo+uk0az6+jxSgBwC8EixKbu73rKqFe5t7RBAIhALCGgaEihvMn8iXsOePEuNploLf79puEvtWzA3DxFPoa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":754921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjT+atACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVWQ/+M6r/rhOzwz6Up+WHzY9UTNLkyQv0J6HydoHwiNSztNtRsK9+\r\naUIncMuaaSLhtYScxsz6IdcKcUMZv+3TAShPVxn9J14oNSfp5GQSGN2mhfIo\r\n25Et5P6+JAaKWUseLQZCdMjAcqTJX4wCZV2iSFJ3eAA0YhIJnzeZuDTMxYug\r\not9vEur4T8pMf4U5rtFUDCFJ7sS0hBxxFQeXcQoZYzV/r1oxYEvTI5oQNdSm\r\n99aWa7qJGtcKYs79CcLFAWLO7MzN8BPSKZTWFWN8L7+k1PjoHMcK0oAhCh+I\r\nTH+0RVeu7K+D2REWcuiri5avyvGZ5eoCKsPg+NTHgKqMybQtYLdOxf0ZGyG9\r\nFlhH7Z3m4IaIPY0W8BnTAzZCLFsEJR97ByTs7K28bpC7hr6s1D96CMzTWtNk\r\ncLw7ftf2PniwBgLkoZZIZrsMX+jtoxZbqmSkCGQXLJQd2GxFDMhgw0S8xNpX\r\n/Rw5P/q/RhpdAN0lEYKDMe9NNSBs8EmztAy7eiQsqd0e21SUXjv5DLivzsx7\r\n5w/baVr7QrUov8UdrUyQsLzLijdSEwAjbJ6Nxl8SRwOq3m0cHk1Mmv4e0cQw\r\n0GmfVpe/zH3WQU4m3fBtYyQ++VzGr1tQUbGmihx9JxZPs+n6dT1eZBTu0YBY\r\n6xkSHy75LV69k3nTxJV2EE8KGhh/TQwynco=\r\n=vBkH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.2.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.2.tgz","_integrity":"sha512-e6XpuUrlS034JJj9tIZzqJhKHfXEqB6fc2MhszcN+Y6TPn2oUMdpWgG1VeVZMXqZ7YwNdDK25Y+ptocEA1w2MA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.17.0","@cadl-lang/compiler":"0.35.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.4","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.2","@azure-tools/cadl-ranch-expect":"~0.1.10","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.2_1666180780884_0.09548057454433412","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221019.3":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221019.3","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221019.3","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"6b15df51cae521486196a91d2306806348a79223","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221019.3.tgz","fileCount":291,"integrity":"sha512-+xUttgZvC9i6j/LAnkkFxd2uphTSxWUI9UL+ExOKkMCg0bPbUMLyHXaicPj02w/4EIH82yD5pyUqLDuTq7CsJw==","signatures":[{"sig":"MEUCIQDPaaY5R4Bz3QrvixMTHCmBFMx9PkE1ysPiNSguYQkQ1gIgZZu44bCUKKEqnG/zaWV3vfb/HafLnDuyEkpLp0deLXo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":754933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUC3iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu8w//Zkl32ywtVcKarGZWZgAVR3nzTU7GR0Zy8OrBOiASwZ66a4AI\r\nfWls6GSl0hDyiNPaxZMwe/QpZnbs7Y9gmLeDCKL3UI2oJaD5uc48/kunWKE4\r\ntHbjfK2HmpqNpYgceGZ47Vo3c9vsmFPeqi8cdUqWu7RnpPHWYcCcq83kWXil\r\nWypP4jv/wflnqc5kfdaeTabez9+U0vDLpBJAxZAgi0hlKV2uyFcSydFLnWvq\r\nEfviGCzZr7a5OpFo2zjp6xDUpKewegmbnZHfA8kc6cZKGT09f/hJe+Y73ppG\r\nf7f6kHQwOyFO5s93qz5oNvg/ZYqCkAU0NFgN+/PSP3ARAL7YQdlYH073k0ld\r\nAL6AOAoSZuO0idDhuTRtpwrg/qcRM4i6PgxfNcdZQCjCH6sQjb4GrBucGdlQ\r\n1N0ghdra/gUUkj5uvne2kiKSScran6HFQQPrJzd8t++2CKfasg3W9JpvbJDl\r\nY61AdOV7CjJ385cV2+EQ3OryR/ni7oZq8pCLWtwoX2XCbxag9ylL/hu1Z3Z+\r\nIxi1YwwKvzVaUOE+Ks5t2BrAcvhTZsSSB2YHRDOTeHrOLxZCfQs3jVFBqOih\r\n6VI2zNpg0ZVSSM/c0r27k2USrtDlEaWYKAWCM2v5T8oEVtbq8qmXOZgBNjmF\r\n8Dx8igcBnZ1bmkVo0jLCKddTscE9Im5gu5w=\r\n=Me0P\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221019.3.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221019.3.tgz","_integrity":"sha512-+xUttgZvC9i6j/LAnkkFxd2uphTSxWUI9UL+ExOKkMCg0bPbUMLyHXaicPj02w/4EIH82yD5pyUqLDuTq7CsJw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.17.0","@cadl-lang/compiler":"0.35.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.4","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.2","@azure-tools/cadl-ranch-expect":"~0.1.10","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221019.3_1666199009743_0.31775906065132586","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221020.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221020.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221020.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"ed2aa7d39ae4bbb382734cf33455e6ba7551b5e1","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221020.1.tgz","fileCount":308,"integrity":"sha512-chzrg00vVtaOg5BfPvf86XnvrvA2n94NaXj2Wf9mHjcIGZXp1OeCKg4bG0qeJdCJ7rk37caN3JqG1TVk/PNxpg==","signatures":[{"sig":"MEQCIARsb00dTyOQdzk5PumeGxEoHMbJGkeHQeCD3d8jSSXAAiAz8BgVQ3nfdxSEXjwT0lKo5cQrSNzXJjEHJ894A0jO7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":786136,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUYIEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooQxAAiNIN7A/Qx7q5AR442feOvHplmSI+oQwwGiToksN5PPbxBHLK\r\nhYUr5ZVP/9/DvO3qwO3OnGpr2fxaoeRjR+asdGjOOV+2gpqv3+ObAjb6iT4l\r\nutW8g7lLfjReIJsu3UeFjRZtQdKOBnCuVZ3JXE5+HApeR70Wz6GyyEqnqbhV\r\nfga1T50LjhaYoHZfw4EaJmBWIOoTwMfCAe36M/oEAkSNBHw9bpxBCPsNvrZE\r\nu3vP/0voUvsfuY72E0UlPJHOyYjbxakFOkSG0bL+HN9ELp9xeyOVY/UKufkv\r\nq06VnewtkXRuB4ETiZkS7y/8/OwRn4r+tALF6Vs3bz5zhZpZf/mBeaABa56I\r\nFArvLxrN+EJbxHdDZjcm3pDDU9MgYSyqMHP+TPwBZVugkUagIj2BXOiqYoXf\r\nA5gGT7FL0YVkwvw9PSabBZXUrXTlDVEkXaW3esmIbSTYwpdjLekBXZi1mRwN\r\nwFg7fMhvEY30ahRIhulB4rigcNbQLcKaF7mNJwxaIt61AW8Q7RFA5OYbiCtu\r\n0Lg2rG2mdDn2Ww2zB+bkUXshqH9A4D9fO+iGcqFpCY4BXIkOFafqkZrclz38\r\nUepyA5BjZ/Ddk10pYkar2LdnygjSU8tesxZMLvyeYvAG4I/CuzSkJKKbjfhl\r\nSvnG905wRN0vVK7QIlbFTBOPpY6EdyAknXY=\r\n=1zGE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221020.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221020.1.tgz","_integrity":"sha512-chzrg00vVtaOg5BfPvf86XnvrvA2n94NaXj2Wf9mHjcIGZXp1OeCKg4bG0qeJdCJ7rk37caN3JqG1TVk/PNxpg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.1.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"1.0.0-beta.10","@azure-tools/cadl-ranch":"~0.2.5","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.6","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221020.1_1666286084442_0.6038671182507549","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221026.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221026.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221026.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"324d9a90502a35c686b2e73aa12b74e96a191c29","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221026.1.tgz","fileCount":308,"integrity":"sha512-n/SxwzH/Lm9lr6UnvqVE6tsHvOigAIXZCTsjwqS13uV7NJHUBemVLXAvLInFaBA6Jf6HhDN0Y/p0srU0Blokrg==","signatures":[{"sig":"MEYCIQDq/nj+5k36QI5SV3UMD3siHLm7RlRZLwhEJF1WYq1tWAIhAIXXT3UVSsnLlGXHWv6NTLtS5EOJd/cgeOPwzE3Ygzmt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":813095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWWx+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6JBAAoAtrPUXhGY8/teFIgqPcgyf5S7yb3cJuMSFrWt1jEG5+MkX9\r\nlYSgZEEo7UFjQ9yjWkoiYNuCMhH1lFLK1JwNcPvetr/7PpmoEuqDWVHoFduQ\r\nldkI28nV5neyWykEZcQpRVl0vg5qQKq6+XyylogTCUfUUM/+TibjeJXOnX2i\r\n+0tnudsqaDP9qFoxs70stpsz9rd9+q5/pgy2kaBj2mwpaa/lmUHnOsMSncWg\r\ny3zmPdVGnnQLLpGpyeO1HNEiYCfTBlqPNxd0Q0EZzrsabI6WQZrCfxx8FSQt\r\n4hylZR0xD9zLBRi3AWkvRpTNCpdOkVTOLqS0jknAshwzUVNU+vFTLd7chT+I\r\ntE8Lz9zT/6G65OlsBhd2bsDT2uYH68FCo0yolVNeONnSRQWAChCWgrFFdeaX\r\nJY3mYMhXznOoYbdnQBwzBxYzjp3vHUFOlHRhvjny5dWF4dVNRlR076VvABVp\r\nBgkgH8Bol6X+zY7aFIEhgTuMKzlqb2sCnhJR2Bl6fLmTkjJmosdp1T6t0Ag1\r\n2dRSVBd8FAsi3TcWh5VLyfOCNf1Al6z7F39QBLfez9677jacVfojYJ554ccj\r\nsWH/yHljY7zIJsYBFQqeD8XRU6g+ixnSj3rlm7wb4U+SqvBn9RxUE8ZCbB6W\r\nCTI5rJK/pCBfumiGoUwUchpFVVRjAAVZZWU=\r\n=jbJ2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221026.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221026.1.tgz","_integrity":"sha512-n/SxwzH/Lm9lr6UnvqVE6tsHvOigAIXZCTsjwqS13uV7NJHUBemVLXAvLInFaBA6Jf6HhDN0Y/p0srU0Blokrg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.1.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.5","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.6","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221026.1_1666804862004_0.557958618244369","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221028.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221028.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221028.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"169cc7b19c0cd118f94873c29dede93eebe97c64","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221028.1.tgz","fileCount":308,"integrity":"sha512-XtGbJpRrQLzOrmQdmaVPQM10nVZDhNpHkDqZZFXVKWRtDnNdKqUUgmNITe3PAW6TAldJu1OEKOL+Yskx5wqhyQ==","signatures":[{"sig":"MEUCIQDgNbiFWcnLOTFgRn0qM5dL8euCvziXml6V3AkDJrVrLQIgKdfm2rbz94MROywJmD/CCGgWAbsAeblOUqj5gW/E41o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":813095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjXAs/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVRg//T7XCCg0KjwpTgwZJ5mgKdFNGK0foIIwNzZxO24Q6ZGPEj2zH\r\nvItJqTPS+9moxX5HZCtcXHYGPjjXi01CYhkTn0gfeYXr7cfkJCQISaFxK7mQ\r\nWttD0ye6OEbuCE58DGhH7LDunHsHR6r03QZ57JQFwuxYfN5cXdm1GTRA2HMk\r\n+3hWEbMruoNNNVq4J2cmF1YpzZMfb/sVjWnNeqw+iuNabOqziigxxIoXclqU\r\nEuhczjAtWPXypimPaTyqAOQ4BYPmHXQO4agRAZ4Si7rgmREB+NdOB7oI6l59\r\n8bHsTC3mjvBbk5yzpcVW90t5Xbe5yzmg/Mkf1lYr8bC14ur8nDihq70paeKW\r\nqXN1Y3BefAljSXyGN7q4ozWUHBQxo3XfXh6wjut+wCKj2H7sn37+NXJcCt/v\r\npY7kW67DNVXP1mYgBff76MXWiM1kCM1LUEULi/8fBVquPsQNb43zIkpRPQyG\r\nrabEfSskJiXHQ8zZvp79s8JLkJFWtdIqmxtwxT4zsHHD3fHvhIff8Jwu75gt\r\niW/ztuEQ33d/jeCysyFq+ixYfqYMzGUe27aNWGIcnoxrDC2LDBI9wWKEuAod\r\nzX0fCWxdbLE3lU6yIYtCAAi5ky42T4ZJYfKhRoDoTWjBrVkyN4sDMdsM5Y62\r\n/Oq2cdkwL90XKnHPeY1V7jeiIWawLR11/ek=\r\n=c5qX\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221028.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221028.1.tgz","_integrity":"sha512-XtGbJpRrQLzOrmQdmaVPQM10nVZDhNpHkDqZZFXVKWRtDnNdKqUUgmNITe3PAW6TAldJu1OEKOL+Yskx5wqhyQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.1.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.5","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.6","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221028.1_1666976575637_0.5170336474355015","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221031.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221031.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221031.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"68626985f7ec1c44d53d6ec7726ad67fe12abd91","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221031.1.tgz","fileCount":308,"integrity":"sha512-Hnx4//WzRVg9PyZquypebdrFSi9JSEU1up5n31R4cNWmcg8zsirNMM5jk3/doYdWcCk/PaSC/t+28SNBY1Rj+Q==","signatures":[{"sig":"MEQCIED/70xO9gWrXziQk71uPaSv7jXYI24M+6rVI1qxY96UAiAlOU+jtp9+p5owX8VwlyxWaEhTe9zLgmBOFq3IQFT+IQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":813371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjX/+7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrw4Q/9HrP9mIfu5bqw4BFHsMAkstoR0GANSnqlURYp9V6RkMKV0toJ\r\nFvjvXHEKGz+1tXcy8N70BgZUAQbBIUeGm1/pjOssL0SpHbUxL+pHMlpD23R0\r\nT6cgzCS9gYiPA0/QR3s+WMqeQ9dknMinM1RL7thVb9t6ob+xfvpZ4NythUKN\r\nw2F4G+sStv1y6/fhmqeOnv/qOLBbtM1IvKMqoh02Czcn1gll6zghIjo+NXUB\r\ngsOxMIE9YBbvSN/ENc0S9j8dY0RiM+q9amw5sGKpQvTAigRudh6fw801zF6U\r\no3YZg7X9UP6npWJuD5yX7Y6Pa8NZXD6L53p5hgVStUF/kGEbIg0Tr7ZHEV1z\r\n2V79/K+KrMNVU7J+46aHn08c8oqp8CFOs+KrSI748job+DTPAhre1weaXshr\r\nXukzOf/OxGkYydU17hzfLXq721ZlEovvcP4j+PnUgd/RHF7g77V7kdBj0Jrj\r\nHhYXnZIstlUDC4r32tE+fjXPpGuhhBGVErPAqg9OPdtF2pFf8lthMdwaWAiN\r\nppDX3Lj00mu1p81wKNo9SWVYikGBtsDtNq24wVSSB/rSM9Ot6frrkY97AJwF\r\nSWUDyKfPKemAHF+yPx9hQirMYOLZL6xGlLl3KN3AEOAE5qWkbxFbRbGWyS4+\r\n+B7Iqjp81dGih9EhDpwmO6CwjuZnviaxteU=\r\n=EEvS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221031.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"ERROR: No README data found!","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221031.1.tgz","_integrity":"sha512-Hnx4//WzRVg9PyZquypebdrFSi9JSEU1up5n31R4cNWmcg8zsirNMM5jk3/doYdWcCk/PaSC/t+28SNBY1Rj+Q==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.1.0","@cadl-lang/versioning":"0.8.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.5","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.3.6","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221031.1_1667235770939_0.4938558921306557","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221101.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221101.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221101.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"69d5a16566b3017c8a696badd0f052e216e203ee","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221101.1.tgz","fileCount":320,"integrity":"sha512-QZI6WQz0lQBA0RbG7AatFgbl1DAVjCxylKoJBPObw9pj82Xwn2Abs/HtajRogM6XjrJCcPukHU6ZL3ZrD35CJw==","signatures":[{"sig":"MEUCIQCySImfcr6CXagLpjwckdzMR7vdUFOLSnOUdQdeQCGkMwIgOlM4PvjiSybJu4C8WoIVP7akPApWMrC3X3hWRMTqzoI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":842840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYVPBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqhlw//Yww6y/R3+x3cTWhAGBLskvxw1gwaXvYyzo4Sideb5y5pRm3o\r\nhoqxDAugtewDmsWsA9qUmYMnU+wX4qoUjzVthOvdTcpz86r24p+VPkBIOjYQ\r\nCtpb3elW5iV041s/lqHHH0LwwbzGZlT34QEoJK0iouwQIq++pCMS3LB1PR8l\r\nu4DRwRkub1trbGpcwItZh8rRqqmwa/Ll4a6Dn3XLohGskAy57AmlT9mMcKGK\r\nKAsxXTQ7lIH+HUsY7AHTtjk009Pa9p5m9tzJzlGz6qcdH4o3rY2kphUgJ5Y1\r\nN2XJRCS6BwODQXA9STSgv69LMC4dJOUO3VApvYdSb2oefuWPQORbJIBG6LNX\r\naCrglpB3XIs6IoCNmo/1WQ+RrIHcKOO0rMhAr7FWR+fGnYb+/a6J/ggsKvhV\r\nKMI2xxPMnCuvt36T7RExsXTxqEHF6ZY94+NfnFLZzXyWtMgCD7DSJRYljDa5\r\n673rlYtPu90F7/pwRU5Z1FfJiycpFAyekBEVH6VLjI+4ahJLZyqDj2j6RYz7\r\nD9Ek/rKl/GY+JlD4+aJRd1DSWmEfaxhYPl3TQplWsK2tk91RUMR1xD1ASK5X\r\njk6JIvKWz2w6rbs1t9d/RUW7HS5UPAzd/sXkGb+DcCLdd3oiwo5y6r6P11JP\r\njvFgyJAgvjlkWN5goRH4UAFF29FsIm3gQoM=\r\n=/+5h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221101.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the cadl typescript emitter for Rest Level Client. It take [cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.  \n","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221101.1.tgz","_integrity":"sha512-QZI6WQz0lQBA0RbG7AatFgbl1DAVjCxylKoJBPObw9pj82Xwn2Abs/HtajRogM6XjrJCcPukHU6ZL3ZrD35CJw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.1","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221101.1_1667322817144_0.5587963620085095","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221103.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221103.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221103.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"5b78c784a1874bc250ed1733e0f218cdc06159a6","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221103.1.tgz","fileCount":320,"integrity":"sha512-nv3W+OmfqoYQ0Obi2fztOM5RlSr/Waa0GVMbkZ7RMyMEUMgsVM7QS/5WumE9E4a8gcpHcys0CzV03Qy5rExgIw==","signatures":[{"sig":"MEUCIFm1K+AdDAVNLHI+lmJ5Asg1eFrJTrNwEBPPyeuj7TnLAiEAnqUe3BuZIJa+IveFe3ZNFi245HMzNbR3p+F+Gi73JlA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":842843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY/QkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOUg//S1ZudLz897svU5RhpfBttJSGd7hBBlb73iBVv5FT9i2nJ07E\r\nBurz4DZJSJIInBU2ktyR7Sd91MH6EVcD1qvZWrnrxiM//yoCN590jXTB8ygB\r\n164vTMsMWaSyRBD3p7QTrbTZ92QqSfcAFYNgR+Pz4rsniSIDnBijqBqmkvJY\r\ni3SuiEoMfnpEnDv3MntKgXN0masFlik/RNZPDDiZmlIBsrK9dwf4/v6PeoSM\r\nITj0iiV9/Uw6K7G5CwfpvaqiUwRSPzFCj9X+uHjLwGbfOSzyDTmyudUXGRr8\r\naqzz0EWnApWnjg2I4912qwidff8H0HgJu5HN+9G1czxk3UZ/WGIZUy3ptaAc\r\nUhL61TCUB+wa9AXq0zkXoFq79j9sA7pVobnKXIubD99VgyAy3+VPeAMwxZI5\r\nMb9SPBOqDS5SxFv9HD0LoBb1BNZ8as2niI8ACPb6h68z1P838dOlHkxQIWnA\r\nJ459ykj+mcCKX3/fVnaoQxd0RZ9eHGMd8m6sK12GegPBcjAZqR61qzdL+mmr\r\nxP5nqzil8OmKTOobQr6z48MHnmg5sRv+WUEFKbP7PXeF9NxZh/N/tZwet4q+\r\noqXEagzzdGESU1d2oaSfqk5ruVdObnmVA3+Vr+Q/Ev5LOVMfBjQMBV77lk9b\r\nN0jT+W+jZ2DRYIBq6OhHpA6YGaKzNuvFFWg=\r\n=qnj/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221103.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the cadl typescript emitter for Rest Level Client. It take [cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.  \n","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221103.1.tgz","_integrity":"sha512-nv3W+OmfqoYQ0Obi2fztOM5RlSr/Waa0GVMbkZ7RMyMEUMgsVM7QS/5WumE9E4a8gcpHcys0CzV03Qy5rExgIw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"^4.6.3","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.1","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221103.1_1667494947768_0.39727625966039226","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221107.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221107.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221107.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"7f509a11eceff73b0131aa9e729128e07f55a913","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221107.1.tgz","fileCount":320,"integrity":"sha512-QalgUur9OVzrMUF7N2gH9tVLbL3aoyCKZ9DMVI2rXi3tqEYCSllYMwDb4jWtkAq+IJcRPPGQKwr/GEjE8/KHYA==","signatures":[{"sig":"MEUCIQCWEHAhDCrHP1SrDR4kVftwMLyFRNErJSNn+WUwI3P2zAIgIQQTAKjteYV10paSpeIJiBs+ylYQDDsOUn6c4UQdnxg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":842951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaUiqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLhxAAoLqo+3e4nGnYHh/3ZrmRnlMWE4jnM4479kT1Joz/qRxI2jRi\r\nafe7Cx9bGKwfops/B3Ms2xO+lq3PXJc837DbF8728OWhPDjiSYTQ5zbee+dC\r\nTNo85QD85sQS8Yal7BT4phK0wQ3FNf5dv3DQj1aFaZP8BdG0iP+k6hStSPFU\r\nFNKqh4GugS6YM7j/N6KDqmfbh9+NdWpX9UDqFkSl0WkCaUQcFvb7lPYY3Bl/\r\ntFQzUzDwgkkHT49SUb0WASXYhFoGjqXwU816x1yCmqP0kUTwApX2rCICOQVI\r\n85d3+yhJ6lrzopI9jZ4KTNZoKXmAQSSnbVd/PacvMeWnpIfLCEJbn06xH1U2\r\nXSxeeBRi/Hgymw/KG+FhFWJDpEipljcGlsS2aDoTaZmtmTjYzff9YFpQGoOS\r\n+Dg2HCAxNO0PnRe5C1zhX+3NNpf93lOGYlA6CXygzxIJIRFC2xwpO5TWCY57\r\nBQfUGLV1vfyu3im5+H8mIrCXiUxOLfh9hqX7E4+Jq6VL2WnAfIWrk3bCeol2\r\nHgGEXygRRW3kUf7LWeuyKMyGTdkcCt8RNSMTJusZvRAGlLkFHOYJZablPJAS\r\n9S/iPrP+EAtYAEaAid4QCsABq7+aQbX7CaoSjLs+XTD0oX/P9M3I9K06wvCi\r\nrHpDUJHoUgnfWFUy4drPYh59luchayp1IiY=\r\n=uacp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221107.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the cadl typescript emitter for Rest Level Client. It take [cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.  \n","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221107.1.tgz","_integrity":"sha512-QalgUur9OVzrMUF7N2gH9tVLbL3aoyCKZ9DMVI2rXi3tqEYCSllYMwDb4jWtkAq+IJcRPPGQKwr/GEjE8/KHYA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221107.1_1667844266223_0.4761665739307903","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221108.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221108.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221108.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"e37566690f3490c030028f93bfab9593f16a8d84","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221108.1.tgz","fileCount":320,"integrity":"sha512-eAQFEHw4R7ymwWfaVr8hZ8FwnEw3yjfxpNV/sWUjxNmrw5ISnAljePOdwARVXvvce4UFiRnw6Ie2b9Gegdq6IA==","signatures":[{"sig":"MEUCIQDpo1gupBGefFHYRbCzZrQ+/J1E7zQL6vZxoc/qbwTAiwIgZoppDGfpqcO3d8yFUxF3uOXCEO1T4505U2Wd3w/LdiY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":844131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjazyIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpuhw//ebjs3jqpnwgzGIaJx7dFJlSuXhU7jymByXFKbUtiqWYek2QU\r\nSSpr2zeR0cO6AWxI6MX1wvL2K1AkL+Wv+dy4AksJaRwX4O6TNx5b53pgcQiy\r\nPG4lt/E7O9HBQaHPUpvv4ncwOICODby5crME1FlMnvhj+OwaSIvm1kMwvGyT\r\nMoy74+r38owdSl6MwK50B3NNK/X8WHmEDc8gpjT+lI02rKIyJ9HxpyTthx28\r\n8Tb0wm0zRlanAQtUvAIxvK8WOy+HEKBXmJeQLgYJDtRCcLFhqo11dHp6x4Nv\r\nTxjSkeWNNdglKdKp3wmiVi0vezUDrvM646Z8ejZH4xJ/B/BpK/hgmkAyq156\r\nAcKgaLZy2NzZArLAE7mF/zVgKhJd+qD5jcZ2SUBN7vDu5JNfLoCi+smpst98\r\nYm1yn9X/tB6em/NlmOcrk8h0p5NYPJrp+y6P5rKrhTftOCT+MtLWbbBNhJQl\r\nDq9DoiS0ChyoCehQtkpq+8s07mfURy0HROkGozGpt4fzlhI8SNS1MydCnhnR\r\nj2QCIABwD644wsc7bOuVoC26Tuy3ttr/Dy82Dqtx+8OH++7Jhzy2MBSycasu\r\nCX1ZG+tgzeUaTa5alN9CSlAl0yvhpG9SA+IBzAm43355J5CGzQaO3hR86KyV\r\ngBpsIzLyheUH1Ar1odgyAPnTCGusof9lV8M=\r\n=qxYf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221108.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the cadl typescript emitter for Rest Level Client. It take [cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.  \n","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221108.1.tgz","_integrity":"sha512-eAQFEHw4R7ymwWfaVr8hZ8FwnEw3yjfxpNV/sWUjxNmrw5ISnAljePOdwARVXvvce4UFiRnw6Ie2b9Gegdq6IA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221108.1_1667972232644_0.5737535772662365","host":"s3://npm-registry-packages"}},"1.0.0-alpha.2.20221111.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.2.20221111.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.2.20221111.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"b828723495354e398b9c25ee01f73d534fad05ea","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.2.20221111.1.tgz","fileCount":320,"integrity":"sha512-81/Q2onqD3AkBA14TxV9judnU8QHNAbAUibJ5jXS29E+R4ZpTG/O/+Th42793DDfPq4COPNZCWvsO+Td0sYWig==","signatures":[{"sig":"MEQCIBcAQPU4cuflqF1BHR5oV2uAYTw/jQBQSXcNgVSnfDRVAiBlHdIPH6MagfJe/jnyCmkyiG6U7gqHF/72fQawq+kQzA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":844131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbo3dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqV7A/+KB1WpP7On+LQRGmE1RTvV4R4W3nKim029Jx3ONK8lX6vdye2\r\nnx2/qPFmPGGsWecIqshgB4DC9JABoqzAiuD10COuSpeUamLTiOerNPc82A2x\r\nu8ILAIt7G6T9WIRm1kvByyqSBrfdXs6NH7hw8Mdo1+G2D/LJ+puZWnHdrrOd\r\nEnrA8njqJ/h6hmES3D11xh/gCWRWAWOTSLsh9Tk1MnCL/sm28MPtSYubeuhK\r\noJw2G1WP+/XbZ4MY8O2BZsLMkc9DEDNx0PGRXoV15q6SEY0ZnIaKPSdgqevU\r\n9gpSe7jmZw5Sc1zNimsQ6v929bWCb/s/ggUuIa72FJIB2U6+Ja/TV7uw8pj2\r\nr1IelT3jAOpzrkhVVDEScTtoppjM7amYwrpHmbK6Zc/pyeRe0velzqWtNyJT\r\naaE8Ncq7JQYem0LMRqPFzkE2IfAb+PYqustFLlpxeKeaK2b2gG3Zq8IEB0mv\r\nw5bcQWaXlCvvtdtTFcbHBe0BqAkziotyAY3vdSlwl3bI1VmnEcXdj9MEhI+g\r\nFx7XdRwL3SbKAvc0bxNCoCyXYoMc77xauLpYfV1ClUPAGvnusZK8O7qTecwr\r\n1Tfb8fofLy0wFI1MOuQTVo4NifVtp/NL8VakiaImhbQK8mvLqT3iFhX5Cyal\r\nyRXX6wkTQJIz+G38gkkYstwBQLcR0f6hDS0=\r\n=7xxA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.2.20221111.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the cadl typescript emitter for Rest Level Client. It take [cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.  \n","scripts":{"lint":"eslint src","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","lint:fix":"eslint src --fix","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdir -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.2.20221111.1.tgz","_integrity":"sha512-81/Q2onqD3AkBA14TxV9judnU8QHNAbAUibJ5jXS29E+R4ZpTG/O/+Th42793DDfPq4COPNZCWvsO+Td0sYWig==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.2.20221111.1_1668189660984_0.6731221876997628","host":"s3://npm-registry-packages"}},"1.0.0-alpha.3.20221115.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.3.20221115.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.3.20221115.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"224b5dc903915ca64192ce29e4fc3d9abbb70a6c","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.3.20221115.1.tgz","fileCount":315,"integrity":"sha512-eqZcXd5nuUNpZ2huwy4ztnhgLuzMtzJKnV6UlU/piBsp7GILbiZkMe0QBIza2hH2WVF/YM50lm0bDSwLVQ0uGQ==","signatures":[{"sig":"MEUCIC1skV6GY8vl56lfzx+4w4nCKGIDe5v0TBdCtXH8GjxOAiEAnPzEa8n0BEKA+Tt2WSjhZYPztsMz4Ud64FKjQBSPyGc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":852521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjc9PWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGUw/9F6XEuKVu8SvIekTVDqiA6Wg3tx0GcKTgQEUcmWdP7hOWUhcQ\r\nAi6c68alBOIUO7lwLfz8BRlSP+Dclwa4NlbT2MUYRHJuyPTTOzSDBJm13Mfe\r\nBIcqLg23pEVCGgOOfBTAII/MMD0UGX1EkNm0G1LQR+Nwon02TOsByxlK+/TE\r\noukU8ORX17hIM8HMocByu6OhOkkKsvsozZXOw5Ttun7drxfWG1fUXs2T4xUN\r\ntZuLT/NPAxWncfSXfUfjxIZ9m4WS57EZlexcLkKZzq+j6dmI4/i5hYg5dyXX\r\n33D31XL+lT9USMoHFZUEKAojBWkgWcQwd2Y9X3miZo68rGMfMgh7p+CQa21B\r\n9uEajCwxkx1zd2c9pyLgFmBHCN5Vbdhu+OfAQ8V31Dnw/nTmA08zU8NXm/4t\r\nnk6wOZuokHZEi3pcq8M/7KVquVRT945E165c/YqVz+CiI1OCmlZNYQw4Tp8G\r\nZTybbyOC1+Vo3dZhxeM6P2d+1Pw/ilmqKo1Qm72+L4A6NiAwThBUwC3up/o/\r\nPuglLH9EHHYMcYbZ89kWWXvxpl1YQ5/U3A1tdAytb4L0oRLIWSVcLftHml/q\r\nUagv+vo5IcvU012yX4X0AQYmIU2q0pldm74FRVLFax1tzg69IbGwFc0LW9Vf\r\nrHAnLW1mRy9N853YkvPA1lDQKiQj+K/FSA0=\r\n=DrUa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.3.20221115.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.36.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.36.0\",\n      \"@cadl-lang/rest\": \"^0.18.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.8.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.3\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.3.20221115.1.tgz","_integrity":"sha512-eqZcXd5nuUNpZ2huwy4ztnhgLuzMtzJKnV6UlU/piBsp7GILbiZkMe0QBIza2hH2WVF/YM50lm0bDSwLVQ0uGQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.3.20221115.1_1668535254655_0.5622792435709953","host":"s3://npm-registry-packages"}},"1.0.0-beta.3":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.3","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.3","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"f765d750d46e2cb6cc1c0135b77aa9cfe0858aa6","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.3.tgz","fileCount":315,"integrity":"sha512-yOIq5Dog0YN0fZU9WnS87tI81OZpUK74g3p27ih5JDhw7DaLhur044A7fickjA9gWJ7ygi9L1Uhw7Y+loClC3Q==","signatures":[{"sig":"MEQCIGOpJKXX3E8GgmTaZXKAbIU+Qr7zUpu8Pg4NKVJlteOlAiAohbWe17AkUDN2ZpWrnH/wZKc4XqEh+BQ1fCewdBK1yQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":852509,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdG2xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXsw/+OgcCekc+LACnho8+3owPSsEj1QT+7fqQzgAKbjAvUsQuGI24\r\nvxPUgg6edm67Luf5cq9qDkKU331WLTsCHlQe3RuLvbgL4gGTxndIc+aTa+xL\r\nCHLOKb6kCXkdMKU3ouFcIeYmAXX2aV++AQsAllureoa2O6r0ylWZB8idXity\r\nkdMt2RVqkMlTGe1kEYb/J9LQxQf3oejf3tKgwRFVZz/nCQAUZKCQSKUXLKOD\r\nso2y/fNRUhunxO+rapLSJDcly3aS1F06++1BfFk5j359wAR5PuD8At0Rwj6/\r\nu6ItFzwepRzb6+ye8OvpH4CD/uPfxlgqbkG4jUqWbXaVjRT743TSQz/+FhWG\r\nY0K1cHItY0qEdeYzazW7Et3gku8RwFTdeur4TqjEph6JJu+691xoQ9lIETWO\r\nZLzQf2dMQm6HtDMJZLJb6pr8N1VNz2pWWpUZrojF0JyJJUUryERvH1qHR4hC\r\nVNlLKd02aPJLtOp/YkELTSjYV3DktBsEPA9gwiYEtV4WidHXaqFzOw1PO6W2\r\naNitJkWT7RHh9zssTxUDPvCsBrhuIECp0o2z8+F/IExHkFq95znXUaNX+8S9\r\nKPh+xDqQYpGZGwEA78foTl8u2GQR3WaUP/aF6nUKZ6qr7hw4nS5k06cK6iVD\r\nsf8zG3My8mnUp4yx/Rk0TZUzx+1d84WPECo=\r\n=p+id\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.3.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","integration-test":"npm run start-test-server & npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.3.tgz","_integrity":"sha512-yOIq5Dog0YN0fZU9WnS87tI81OZpUK74g3p27ih5JDhw7DaLhur044A7fickjA9gWJ7ygi9L1Uhw7Y+loClC3Q==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.2","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.3_1668574641566_0.3260604090672239","host":"s3://npm-registry-packages"}},"1.0.0-beta.4":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.4","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.4","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"e1847b0c9e62715a39575f4f72ad554d351e76c2","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.4.tgz","fileCount":315,"integrity":"sha512-vH0ZiSdf5q1mXAsLjQk26Faa3xQahnPM9vmKhJNKu7gvje9Vy0gwBHWtXu0+lbmxB2QhmDJeQzfzdUB1T/nxuw==","signatures":[{"sig":"MEUCIQC6DpukUBW0SZdKM6KGADHroYVF6tt4BoE99iWr6c7KfAIgEOMUAIp64a5vlPfR66S9zBaif+cGNihaNlr+aAUIstU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":862848,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjdP4zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6iw/+JfxclIdBaFTNManJs4OKqc6fPSmfyKcQU/YaA62VYyQnwd1i\r\ncOMG3/TcI54k76r0FYDRjHpnXiesOJGIfUH8ey3X7DnJleswgOYm4GtNGLqJ\r\nz+y7L9/HoVr8uNRtqe8KVTq2L9do79B3Kw/WL+MkYNDyYtyX8PHj3GqndPwj\r\n8Yf9du/T7E9p+7C8jnka8weNHauIgYhMiH5K0IYYTHXlGHCU/eo46m8sqm07\r\nIClwKBsDUN2owP9RWSQPbZVeBs/60y6B+L2T+mL8RMJkromAlzGvrKNr20ec\r\nBR2n++COB+a3pnIZrn+aKaV2XApikt1nXnahqsZK+Yh8Ps1mD1iQNu4rJvPA\r\nFnkCqwMWnTlFTeFPzCusDyhVZxJWx2RcGVLr/TH7t17H97JNRZyigxyOVyBw\r\nmPysUcy7uBHNs49jg75NpIZceA0xy+8e4mkYD20MX3HlOFY6gXVTsUI8TbXD\r\nyI0RQZ9TbSzShVeiOtuasVBhjND5u81GsXyObo85jjUEXRfuWM5FJLYXBdCg\r\nI/GmcIaLOoONbsnzeJdK9vfHPKv4NWeu0IwuxFa+3m+B41X+xcqnp6PwHgE4\r\n0wiFInadKEaqKZ4Gul6Qzlh5cOx6pMGjxxfRRHn37Y1jer9ZQ/SkClmdU1qj\r\n+rrifl0r3DBMR1FLyl9xi/8cbFK6LLlX1yE=\r\n=qbk+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.4.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.4.tgz","_integrity":"sha512-vH0ZiSdf5q1mXAsLjQk26Faa3xQahnPM9vmKhJNKu7gvje9Vy0gwBHWtXu0+lbmxB2QhmDJeQzfzdUB1T/nxuw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.4_1668611635081_0.7325705212671996","host":"s3://npm-registry-packages"}},"1.0.0-alpha.4.20221116.2":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.4.20221116.2","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.4.20221116.2","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"86081f2c474f542f5e05551d67bd1ee9ed9f7953","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.4.20221116.2.tgz","fileCount":315,"integrity":"sha512-KWd9Hx+i5EGTtPHSg054JclhHCKz7Z3BSo0CJdbg8ERK1TqDILnIigd7U/iCHEAXBW3mYor8JelqLdX9S4POEQ==","signatures":[{"sig":"MEUCIQDoyKg/qeAcqG2+USjJUz9IK/P/ogA9CXVHFZzipYUYnwIgWo4EkgaQKeR3OWKTFBFlX07WUb/7l1FKjYuoRCyU6yo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":862860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjda0pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojdg//WF2CHHaUfZKXLVrF7nEhM4gWzuVazOpUKD/kje1B3ORwa4qd\r\nU6ZHl66YYNq7OjkeOlX20iihz77dj6KAUGnqi5KCXi/jx53RN4xtZb7mhGaA\r\npbvWhkbnEOUZex8oMTOf2ws9ElbpPj80/Gj7bO1EUEu7nY7CDEJShMF9RE8r\r\nTPFBNRMbk4A6DVflOXVw6wreUlvjtiMfWJLFLzIbPY4wOO2slKtTGv/gEfep\r\nPkepuJcATdo3wwiFzprCDgdxZX6Ifzjea2msF5ke4Buu5qKmtHzUBG88R+w/\r\n4gkCNi1cDIZoQkOFe+7WBUNT4A0/6pnoE7cAami0+Yy4afRFsg0uDKncfOhN\r\nCt9gus4yhwixdbHHr8y80zUwlII26gdHaexRw6qiaat4znFnLYIc3gM7/EBr\r\nKNkKJc1fEzIrXpZX2mYmLAbRuRRRRHkeBpZLSh0/AzB3kvVWRoZd7cZp75ek\r\nWi/TxBeWgNX82DJgIE93ZRugsopJRhQd/OTacOo/e6ZQN0sVjVqksMFlXAMB\r\nRhgxOymJk2QeG02ihY4ZKmDKuFpFjtnIb78mOn9LLASq+3IbYxoUITQgIKMt\r\nBLNpnArk1kUFGImL8BQK8vD1pT9e5hg7dbNX2HrZKqOPllbmeSLEl4+DzCsL\r\nwQwCLzEk+pvkSn7bkNottQZXX1CsRg3SP90=\r\n=/Ivm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.4.20221116.2.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.36.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.36.0\",\n      \"@cadl-lang/rest\": \"^0.18.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.8.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.3\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.4.20221116.2.tgz","_integrity":"sha512-KWd9Hx+i5EGTtPHSg054JclhHCKz7Z3BSo0CJdbg8ERK1TqDILnIigd7U/iCHEAXBW3mYor8JelqLdX9S4POEQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.4.20221116.2_1668656425600_0.035955998859177773","host":"s3://npm-registry-packages"}},"1.0.0-alpha.4.20221121.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.4.20221121.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.4.20221121.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"4f9b4867afeaa4fb02a3ac9aecfa5e5ec3c635f1","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.4.20221121.1.tgz","fileCount":315,"integrity":"sha512-fjFjXWnDW+zX0YVCEpqRSanVhRKkHIRgYhWZ4t263G0ZupOC8TqwGjUsDhwcIe7bNslgntxA4hE9LmTx4bWxrA==","signatures":[{"sig":"MEUCIQDUNDnB1Orn2pMecMkwshNW02lUMl+phkbgibBa6pCknwIgZnURobXBCoiOzKvTTXu6mgUDy7G6cKOlwK6+1HJfdgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":862860,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJje74QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUGBAAlfJtRe8Ag5g9RlwIg5Uygc5iJy6xCSaUfrE9ffsFH7h2cfJB\r\nIRkNjq7efRQgGNMnwIzRIMW/LDMrXmUJq5VcoDG1qqE0yPposaLv59E3wQey\r\nYrX9C3wIfLXokUowuyIptJ3ZIIye+k9E37CZwUgaHaPMbEXcNca0B8rjfQj7\r\nJuOTlmg68kNgHPxfEUEKOH3YM1CPb5WCJOf80LsA3FpdH73y5bmLdS+1enPz\r\nvbd7WlCj8RLCOt4ns3f728wNgkqvpMk6E314g0SPLpmMTCVVygD2E3S9y8Ff\r\ntDRVHg7b7noLoP29FplaniILAl1q9B+IPzefcM0EKVAO5nQxQZFA+jamLoUq\r\ne9Ig0Ak+XXHCT72nHefYap1P/OWiewvcWmarnb5QkRF6sIMXfpOK2AQLz6q2\r\n0Nw8zaQVqUC5gMLwbdkCWVksAfywA9n+IzKr4VTqIDosWP6mBR11DiWm8uqp\r\n3vLWFmtZhTU8iWHqScPeiYmmCPGv6ap2CnjeIgfLujvokCe7Lv91/IIaJBz0\r\nUS/0VAfQeM5YRZR7IKl3Chty/PefslB3d6GPB7TDZLvc59OnTXeHNAo7HNFY\r\n4LE24/fnjftkpokdv1os4jah5gMn/ldWxz5JFURiSEbg+oLN037dtNQQQsNo\r\nif1nvkggnZvKLLwHXdceDI8fyp6wpykNpiI=\r\n=M9Wr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.4.20221121.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.36.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.36.0\",\n      \"@cadl-lang/rest\": \"^0.18.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.8.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.3\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.4.20221121.1.tgz","_integrity":"sha512-fjFjXWnDW+zX0YVCEpqRSanVhRKkHIRgYhWZ4t263G0ZupOC8TqwGjUsDhwcIe7bNslgntxA4hE9LmTx4bWxrA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.18.0","@cadl-lang/compiler":"0.36.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.8.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.2.0","@cadl-lang/versioning":"0.9.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.7","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.4.3","@azure-tools/cadl-ranch-expect":"~0.1.11","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.4.20221121.1_1669053967809_0.9657261302444833","host":"s3://npm-registry-packages"}},"1.0.0-alpha.4.20221122.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.4.20221122.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.4.20221122.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"d16c4416bda78c687147d6e673cd1cd090fbc09a","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.4.20221122.1.tgz","fileCount":324,"integrity":"sha512-ssSfRgQAGj8rMMESMPy6g3pq/00GO+KnZwm49aDcSJWLIreCatLDztBz0VQ05oiIf/Kye5svbR7O5qKePnjP9Q==","signatures":[{"sig":"MEQCIEDB9ysUPnJk9FAfcwLAx250TbBNayiKW9VN48n5egn8AiAi6p+F/q2fhoqgho/X4TwK2wTAqImb05Ti9YimZ3z65A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":887534,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfQ+OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaAA//ZWsYoCdeg4BSpOBY04KSXwU5xXz04wqNJ5Xm57iy0qIpOa3F\r\ned+qaPTSIg3MKaX9gYOLpUfNnUJint5xyrho5n58u1C+Zj2/m+K5/empwc9x\r\nT4opvca9eGuRwz+fwAg/dwVVZD+ffCAmElenJLLhl+jQpOtjfyClbsqLics+\r\nw98IkEcfMOd/KFyfw+vLOtoTwUUtd0yIlucsFr6CyBADVr5ErXCC+uEP02U5\r\nz3LlJIyFPNgQA8Km7JQkOQVR1LV8YkcvzkiikQEG7V2XcPgML9hSTO1M/lHZ\r\ni6UDMWVllHrzoa9dtMQTG7ys33hpsHs9g19gyP9AHhcWsIeZbhUboGR6sYBB\r\njs4EOcEtG8mAYloyRsfzRZCU+KxaMNN3VlW32kws1EYmZvzig9o9m/yxQP6B\r\nI6ICqmPIKlMLHgEnh1rOKrE8Rn4UncJXI4XycRPB1+5LQlJUsuAj3HSohtLy\r\nPbICLaWSanCzD17g03d7y3Be/KnddJVHafr1M7+qDQwpnTQ8RciL19QUWuUr\r\nupKQwHIdaf50E0s3DAa9L6NhH7ukABpD6Y/SFHm9+MUa/uvpaqERvHDEPcIc\r\no4d4sDoRvDDSexH9WK2jPp468Ch6cNyhqUmLc6FKSfjq8tIMNsF0Q8e7BHDc\r\nwNKxTPn1h6eIGZAVRrXVZyTJBUNoeRk+z74=\r\n=AK9E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.4.20221122.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.4\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.4.20221122.1.tgz","_integrity":"sha512-ssSfRgQAGj8rMMESMPy6g3pq/00GO+KnZwm49aDcSJWLIreCatLDztBz0VQ05oiIf/Kye5svbR7O5qKePnjP9Q==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.5.0","@azure-tools/cadl-ranch-expect":"~0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.4.20221122.1_1669140366432_0.09352543989776008","host":"s3://npm-registry-packages"}},"1.0.0-alpha.4.20221124.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.4.20221124.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.4.20221124.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"c49f5ea57bd2bf1bfbf46c9242c90b7bccbd3998","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.4.20221124.1.tgz","fileCount":324,"integrity":"sha512-hkl4E2lFvVVyik+cZ9713Tgt/dvi1wIayds9AqogQZXUt/iCE8FPvmxTcuf4QBbQeDjTBGSlYsLnU5WO63jmHg==","signatures":[{"sig":"MEQCIGoVkn3OnflYX9QJ3HlTO/B+N7uibhNT7qM51Mcgp4yJAiAx8482+HH1gOXcT0XVcDSnBVZvbD2pwDYv5F4aAUGbJA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":890128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf7COACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpsbQ//RVOLKgNNENlsz3iY/7dUhUw/fXecUgTge1Vl8xo+Kw1Njqgv\r\npFTQ1Qxfr69mj1+tv9v63uL6weKLUFiWgnSw1nZG1siZbLYkre6+B2fe+irV\r\nQ4ZdOdRdmDmxemvXuw3pA1Lb4Nagh7ZZQcix+Wg7QuOZ9We69ylA9hbslNol\r\nQ3/sP44752qabEyQ5MmLnk1/y8MJnEAFAifKlQ4gR5mpXEnD4GLz4z+p7t/U\r\nnXmRhB8Itfz50/BRrnuYWuYqvy3/H8qBwFxHMyY9nIJiTGbJyhdwPHl59m/E\r\nF+ST7bu0ZzT7x1y4+PFDi6rnrfpDKkLghJfSkIVjrOonAQxwp4vhsOjRhLFq\r\nWxQ2X/Xr6KADbqPejyevVu54UL8wRuTgdc6f8+0ft+kPlUgo+8OJupDqLnpD\r\nnlKhcFnzpN2SeI5hiWylwEnEFxwxpVc0qfrlNqT1E7BPquDwI6R5xK6DAi7A\r\ne9sS33xgcO4ZR2SpvK2ns8kFWV3DBDHM2LOE9mMKcSNe+0K+R8/icPhYVxtF\r\nJCJcnT0pV+8J5yT/a34s74pvcyUwb9mL0/u7Un+hllXzGs1SS7twdL1XJWa4\r\npI+M3xkyabZn0XXU0CzwT5ozSCzmRElZ5hYUCOB/dl+8PmMQeZ02By8CNr1V\r\nZ1b3XCHHrHyIWAek+nJNWgEvm9W4rRo9zW0=\r\n=DXnv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.4.20221124.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.4\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.4.20221124.1.tgz","_integrity":"sha512-hkl4E2lFvVVyik+cZ9713Tgt/dvi1wIayds9AqogQZXUt/iCE8FPvmxTcuf4QBbQeDjTBGSlYsLnU5WO63jmHg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.5.0","@azure-tools/cadl-ranch-expect":"~0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.4.20221124.1_1669312654152_0.346479569031652","host":"s3://npm-registry-packages"}},"1.0.0-alpha.4.20221125.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.4.20221125.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.4.20221125.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"5a8cbc7cf5cc970353dfbbcb1c84ba9ada495b09","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.4.20221125.1.tgz","fileCount":324,"integrity":"sha512-J6+fYq6W1rsjHFGxR/fJGF4avteDxT3NIeV5UCAX3p0JSm7WPIfAdnv01PWV0jHoqtGbSqaKa9SFdlWCHxSMYQ==","signatures":[{"sig":"MEQCIDe/2aRltdzcP4h2WI3aTKd6Cs3fimRGd+yq+XcD421sAiAx/P+DNWxwrUc+AQnB3IdfamVnnFo6ee/HNylp+Y2ILQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":890128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjgQL4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6sQ//TOPDESWdltsDsn7CWqZfsoZ3rinIXKbCfNNWqWEw3fyqewl9\r\n4hPNvj+VnSpoQcSIsxhr9eeSGY7xxsOZNK6ewzlGkZsxnauWr0+JDPsFIe42\r\nV5q5NfRoXBkQ3NC8sZhN95ijDkCk3+farFSvEFZ1j6hiwgNqj4HUTlUqCjpL\r\nSFfXaKctNfdQoYKLZEuI/wjEc/Zc266b1wLzZS7c/H4YTxQhVeSBbmyf/0HJ\r\n5cxmiASgUochHCFFqj4m08Y5Jb1Fbb6wObJoUNqtyC0/kwL5RfnxlEf/fI3/\r\nv+v16F/Ywfewu52IWGD8NT5A6m82zUA60DOzvOxxvSJwEjK0NtmWh2K3D9jB\r\nETsA14niMmsBT7Acxrc9tBZdLS/fPDzb1rddoYdQlXugaubCBwJiFZaw71k7\r\nWM8LE/ZlCX3ySOnv9zrEfdaa96aRlu6OVTr2WrEA92LaZr3q+MgjnI1f+YNd\r\nDbWJnwtFwnmgnx6jYLHh6oKAmlM7Thj8enjuwVBhHPSYDdIbj+QhBy1Dbn5M\r\nRVxLHEeQ+hs3lV5Zg39GoztW+GckrSh2W/25O5YaILRESqIU7jHeuqBA1ulT\r\nilaX6JBx46QyTrTvuIDqQ+D4bEufBELRqQ+3JKtECBhtFnSZEKKxWOa2caCZ\r\noLTMvcHZWJ/hRBI8+3rsW/ljohYCjseNe8I=\r\n=2Akw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.4.20221125.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"1.0.0-beta.4\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.4.20221125.1.tgz","_integrity":"sha512-J6+fYq6W1rsjHFGxR/fJGF4avteDxT3NIeV5UCAX3p0JSm7WPIfAdnv01PWV0jHoqtGbSqaKa9SFdlWCHxSMYQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/rlc-common":"1.0.0-beta.4","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"~0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.5.0","@azure-tools/cadl-ranch-expect":"~0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.4.20221125.1_1669399288291_0.581750022982817","host":"s3://npm-registry-packages"}},"1.0.0-beta.5":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.5","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.5","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"d132822d10d439433b09e3013e0381967121432c","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.5.tgz","fileCount":324,"integrity":"sha512-fNqAo/hQT8+OVzbTg7HtECgSgsUczWCzmR0oR4LunqqoDV9B4GGQFOKuwAD3gfDVFhJogHXpI7A6S/516dY5bg==","signatures":[{"sig":"MEUCIQCP4kOKGxhPdN1jz8rYY7YmyQKqojqLQ5Wexd3ftNiwTAIgRBfpbz5aq/gqiRXZex5pNfFFai2dRRNJFzviLX4Igi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":872984,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhvb8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYIBAAg69VNO/kfgFgpwOpI1tgE5YTsttpSNJ9gQjo3QF6b61E8a1v\r\nEYEy12WIQcU5egn+2zIAyur+PUheG9YFQ8EJXJqrzGzVY5Zh/q1rnvRdejmd\r\nXyoxHL2hDK7UgKHb9YXnyunCShv4+xkyo2LRyspH44HthaZ5oKiiypCa5clu\r\n6LF5YcMKzPgVKTp/p4pt2dCrl6dzp0sjc8P/6BhuCdRoWffmNXU6aHYmMjhB\r\nkHIgIe8c2jFtDCb2W6dt/Tizq8BFig6wxu04iIFveawfdmlbenOHG1xN1LT4\r\nqgOutyByQmsk8MeXvOC1VjI4jWCFMF+KXi0gHAmVBgUOlDYol9GX8tSRTKDC\r\nTivjU9LhG7P7RbGZ5zufF/I2jEberN2K4zgAGINKDSq6taLGOZaG7j2LOhOu\r\nK/TrQv5DBYvu6xYMCPEHv+85Sxp4krjTESinfkJK/ow+I41RqFjY/NRP0RlJ\r\nA1jD7mTeVcZFGSehEmk9UV2HUoXs0LqeckUCO7bIsgUqZvZTMmKq3DRAXOLn\r\nj3gWRyqHAmypPPCR+Se5LIRXmU9+Y7QgURFIzwXGE4sYpSo8cG/cGYAUiFb4\r\ns+ZszljOFzyy8vDVPum7+miQGpD0U+fNIqIQG+L/D+7mU3CCnfZwEajirlbt\r\nUQ9+HFeaRSUPfO2zCvuUId8nbefM0nRxu4Q=\r\n=Qifc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.5.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.5.tgz","_integrity":"sha512-fNqAo/hQT8+OVzbTg7HtECgSgsUczWCzmR0oR4LunqqoDV9B4GGQFOKuwAD3gfDVFhJogHXpI7A6S/516dY5bg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.5_1669789435789_0.186777371861246","host":"s3://npm-registry-packages"}},"1.0.0-alpha.5.20221130.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.5.20221130.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.5.20221130.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"0c6a3be326f1fa8dc9cbc736c67933a13d7f5c2d","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.5.20221130.1.tgz","fileCount":324,"integrity":"sha512-2oYz1X3Hd+DuvdGzZHRzvybLv4sEje5pTr/cteTHzl7Gn863/P/SAxWEG+cbnG0hpQDva73bIXWg+KvRn9IHyQ==","signatures":[{"sig":"MEUCIQCdTG9t4/fbTW1KKuM8ARH2PS70uimof13JaAenOWWYuwIgGJs4GiccVwXllqz284w3se/OtWSwwBhmQju/5sXgptY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":872996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjh5qxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUZQ/8CmrtZZsB09nzUE2E2vXT8OspohwWMRbNEyFi3oexuOSTXJ9W\r\nAj7KRDP4u0J/7vfYxhoUOHLblXbhfxIupOApCNKlAekyxyIz2XY9m1wsJmV7\r\nLZIb7ChdqXjZabfqFuPbDPfYlt5Ni0OBzKA25/piSuDiFUesUsmOJ+92AtEt\r\nlVB9szJJFbFbqR5XlPbtpyNj0RkNKqy5P44pYJc93UGp0P3eP+P7XaHQAT8R\r\nUwm8CSi2uvf1Xxe0fqzPaZCHAVN39QVdan5LzOZQRFt7297DyDf4liVVM2Ig\r\nY4Xgmf69sLbdhqJ6FH/79vip0nFdB42mtGlnMXX7RmdZnVk/K3TNpRaSUddY\r\nAioduVnkepXW3Lk8C5mCN+RDYXUxF8ZkKpdvJrsIjS8hfltGgz2Ijjs02doT\r\nkWyc0f2yBMNSPUhzliJJzz3wkH+bMEnMTPRmHsYPcbtLILJjt3Xonxh68LzG\r\nUu99tTHT+agAJOrUkxVVi24K/+D6K0blNfnfH0v6m4WPNVXc2pCLCn/cMjzb\r\nI9FSJ36HSJ/Mz6rGPFcycxmwrRheA+RG8J6MrJ/xwjeIhgtH36CEGIdVJC51\r\nuiX/BM2qKZq3LsYQELR7TUVBAQKW3+n9fn3zeBxASJ7kmpA35fv2m3NaEnvS\r\n79QMaCP+4wOSiWiRSvd7X6pi7lzGsjtcmgc=\r\n=OAhx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.5.20221130.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.5.20221130.1.tgz","_integrity":"sha512-2oYz1X3Hd+DuvdGzZHRzvybLv4sEje5pTr/cteTHzl7Gn863/P/SAxWEG+cbnG0hpQDva73bIXWg+KvRn9IHyQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.5.20221130.1_1669831345157_0.8616536774125496","host":"s3://npm-registry-packages"}},"1.0.0-alpha.5.20221201.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.5.20221201.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.5.20221201.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"fa621f6814d884ea5e3b35d47dd18cdc8a07b6db","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.5.20221201.1.tgz","fileCount":324,"integrity":"sha512-rebeGrgFV3zVGZt8cJeooefvQkKToIamFi/g1vL01bPmjmseDF7fqszJcmgn+sH/tEm8bIwZZV2OD/8OIcG7PA==","signatures":[{"sig":"MEUCIGw/PVF0iymBPHfs0NYkc1jY+G8+yYy74yzbrwxrOm+gAiEApGY8CD/CYXwR1QGiZOwL8EVdkX8gzmzIuUL84fHMh+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":872996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjiOzFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHTg//UYzQkEVhgKxswXYs/T3SMnWUU0XS8Bp+nKo2aQXZSFvq73/L\r\nl0EFhpb2N5l/hdf1r1RTejup7GbJEezVnLRCXPiFJjvGwOH4Ju93HcwI/PmN\r\n49/c0bqCmR1wDKaduj5Hm7Zk/COP1vLg4L4e/yQnPpepaiInMBwanMzdtwZC\r\ncpKtctR9gFqi+qdQwyv1K/R+jMoxKqXeg9BtfIfQPJ0M6sjrEKZubIruE9R7\r\ngWAx8qvaaJMKxY11M3M6cp/P3E7EZcu6QEJpVBLBCwnOkHu/+tF7iO/pVQXm\r\ns5pPcv9weLK1XE7nV+qvXLiO2J2cSRh/8lWU5Evo6O6dKc9ByFiynQnacU0x\r\n6i+GAUCXJkWLBLgTf2Mx6BxkClNVAk6DZ5+1qDdgGRMyIAGorTmPZomQD333\r\nrooWLhebFbeKamQK4B40Sb2fl0DkcjYsK9Zy9Nxc6xu9WEp1Kjl0PSkcSG+n\r\n9PncnfTm2rlmFeR0DaNuSO3ynlaghBHQ01pwzXb3LvlFZpScdbyVUKM450sy\r\n9L1Sb8CCo6eZG9kumxYjTD09Gz7WbOoUbLyS829/vVSOtyIu30RVhaEFRci1\r\nXMfMQGyJAShkoMHytrZZ46zyzFNxZn1u0dZhsB3HA1UFCpgyjlLrx6ioanx1\r\nVeErzge3p82VypLBST9Y2jHWWpEYeuZ42Vw=\r\n=s352\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.5.20221201.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.5.20221201.1.tgz","_integrity":"sha512-rebeGrgFV3zVGZt8cJeooefvQkKToIamFi/g1vL01bPmjmseDF7fqszJcmgn+sH/tEm8bIwZZV2OD/8OIcG7PA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.5.20221201.1_1669917892926_0.42315832638540707","host":"s3://npm-registry-packages"}},"1.0.0-alpha.5.20221202.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.5.20221202.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.5.20221202.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"984eb69091c2acce733522c399aa625aa4b05289","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.5.20221202.1.tgz","fileCount":324,"integrity":"sha512-suAVG4u0ozINCKbijcojHl6CroILqFc5oAXr/6waVWARKnGBkYLZW/jwrHBE13Cu8nPmMT7PPj0yLOj4PlBgdQ==","signatures":[{"sig":"MEUCIQC+4EsEBdZT9WtNlfmLtlvUYrq4pcHG2GMjUyBgw3E1WAIgFnw7aCNmfimmTjfBq5FjvxxToSznqUaYkDkOaCh8AEA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":872996,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjij6QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk5A//T5UiewCHszSk+AbkFfMqohENXrkcEj4nj1fkF/xDkljwTwIs\r\n9wwJM+Sw8GTihaPwm5wqGIyHHPo5seT6P/mTmwXz/xHw13rZXHaNZfZSFMDZ\r\nFl1arHH6t28mL3xx7DHwUFxHc4B9u9KoH80K/bWiiPPJKlRFa62OCsG5dY8G\r\n5fGab1KoTV6ZLLlu+i+0BOLzIOr7m8RrpsnsAtrNIe/3kIjK0WvyNvo6grpy\r\ntJSzJvYokXJJNhhAYxPDPW/AYI3i3Uj4gt3R4+b+cUmEyPwvQZFl0W78E6dF\r\nHAIyt8+YWtxjgaU5sA/ZiRIqC5pic5aR4HQ13ucj3PfC3xu++tYjTO9UbSiP\r\n/Hvana9rlsl/y2Sx8NIJ1R7cHfB6K4cVeRFu2xprODf7COgWLXeP/XvLiAz3\r\nPPsiF3CoX3yirGcFmkTRDCSITt7TjfOwDoor1VZWh8BHCqRXT5Sre9gZ9MBS\r\nPrArybO2OYzvj+RZLJ1BS4tMG6bra2jlPzCkX16/UOUCFetz7B8b2ESXPo6t\r\nC43vZt9pTnt0FAt8zUQg3/0pCut1ClGs8/bec16WhfpatfIiry2I+hJ9hbD1\r\nYYB/lKCPHXoKVI527w8pzNUCtzz/Y+irC5AY1qbZ5CID8g+KABcAwxXZztU6\r\n00kfz459FNZsRfGU+YkRN1dNdFlt3TBYxzU=\r\n=ijz3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.5.20221202.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.5.20221202.1.tgz","_integrity":"sha512-suAVG4u0ozINCKbijcojHl6CroILqFc5oAXr/6waVWARKnGBkYLZW/jwrHBE13Cu8nPmMT7PPj0yLOj4PlBgdQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.5.20221202.1_1670004367854_0.6097891661374788","host":"s3://npm-registry-packages"}},"1.0.0-alpha.5.20221205.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.5.20221205.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.5.20221205.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"257074e78d889f9d5e67918be4e9e9056f54d219","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.5.20221205.1.tgz","fileCount":324,"integrity":"sha512-tBgvQHdPDUal2hC61Yb6crP8ZAN9eh7Om7d20hGncI8yx3m0MGPzl9orEnu/SFhnXYhip4NqTzzixk8WVXIWqQ==","signatures":[{"sig":"MEYCIQDlCA3n8HCbMVuavxsriiH78fDAmjJTnrVtMxD4AKcHRwIhAItsODn81lRTvc2WdL53m9MP6GcRZXW82a5XPG5yq9aX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":874028,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjjjF7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaXg//bWCxjHiTb8+7D8hkvoX8GCwg9ED06NodaGI1WPQxjA1ChGbC\r\nOj876PfXVPhgx8Gjqna7/2iDWUbRxZgoD5iuJw9EOFAYzZ7MYNG+aMBMD+ps\r\nASwSAh4je45TV8AABh1WPO2Y7T6yCE4C6fgB2+LF/u8fiE38dzK/Tt15hGNu\r\nwwz8hF+Az3Hh/sIZJcO6/06Tp3rXTevxvb2qFwyhr+yJ6ORUcCZGIa4fW+4k\r\nu/xgIeE5cUTRrdQS0hqHGPE+y/HYuMfG6pZGWU4tKlNs475oNZqkt5sOMW9Z\r\nzDrjhTeOiF6OrkcgwBEzXgAogPkUmcGwwF//LAUXGxHvR1zsc5lc3op+xgNG\r\n7Ei9UXKnqE8jeaASeUIRJ1GFJ1FgR1dVpwEB1V+ddGV0ZV/VCv6UL/qQaxu9\r\ni1jowziaz0GLvSEe5lJ4Or0VMRRFIq8+QqnxFXVuikAFzgKJi6rkUJBs94SS\r\nXCp2/kE5MZNpt1ma2zZYukcvh6itvxZLGY0LFqHGsUitb+PWIGH0bQv6St3n\r\nwoGqAUqJ6pJqPSM0JObcH3er18Kyvv+t2fOOniqziNXv8muM5bFJtnFutDcG\r\nfB0SeH7OfJ8wvLAT6BBsIDYRcs0IDz3VtbLz0bavERKut/IPFO4a++318EwS\r\nAjruM9jO4Dpf2oA4kmll5px0D/qNFH+Iijk=\r\n=5Qmi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.5.20221205.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.5.20221205.1.tgz","_integrity":"sha512-tBgvQHdPDUal2hC61Yb6crP8ZAN9eh7Om7d20hGncI8yx3m0MGPzl9orEnu/SFhnXYhip4NqTzzixk8WVXIWqQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.5.20221205.1_1670263163523_0.44994393807767374","host":"s3://npm-registry-packages"}},"1.0.0-alpha.5.20221207.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.5.20221207.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.5.20221207.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"6e8b1cd3114d6fdf273465906c7559a551e71a6e","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.5.20221207.1.tgz","fileCount":324,"integrity":"sha512-Fu4yTVb+4Y6jIY0o7M/lC1m2+ueAlftZslnJ/sww+a5pwd3SnypVUTPjCar0M+Rh3TY8UIT0BWmzxdP8UdTrDg==","signatures":[{"sig":"MEUCIQCmD4RTZW4uygcl7D7T73sJxmo9HwwQIHOhnCtytwhiogIgCeCLXhnkEBO2mYouX5wZG8IBv5YGLLI7PLwSy+3fBk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":878315,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjkNUsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0zRAAnxLpfm2edNKNuCnFBAro4OLKYneqsoEt/8Pf8r3ESgWggVhW\r\nNhp6/p9vH+IjCyCmMTE8E5bdYr6gZx/XUNVYggBWrfQm5FctYVxc3caHRThA\r\n53DCRF21FwM9DjytGmkPI9YMcThjScCkBIulbMwBU6NLW2i1C8NZoxgxCBqR\r\n1mLHAUQeBuoYQugBpzCzXFH+rK1nfetVQWhwhn10SqcYMyFhE22kWGJ3Z/eq\r\nDdRBoU9EiNi7vdM82bMwZVVkROSEm+2jrOLS8rd0ezB0q7szIJAqHHbYnCUd\r\nx4UUV2ZAF4VCmX1ey4GFBlB7KIC+S86wb5ke/SIKF9rvwDcQx3q/271xVTlM\r\nsA3fBmGMOPMEl4J7FWC5vk+3DLytGaqTFh8ix6IZ8qGa6SrlbrWSipFcoGOd\r\n0znYemNt8+If5JKraIPmiZpvX4O2OX6DoZScU/JKRuLnM2fqzJSvFRNtikTg\r\njalq8s56jfzO/FtgokhUZADppF97jZ+3+/XGJs6nOOz016RNjlbuMozHl/w9\r\nyImzri6zwoK4opbIS6aUd4MNAwXGFl7XaJnYPtV3iMGorBIZTwFA1dOU6JAU\r\nQQODxMRDRctWerUDDPQPv67nAxqzmtocv5e2C3ynKoabmhU2/s0VKLzvYBT1\r\nREyMwmmlz72LsLQm0NuxoYNDYYmCqSmIXPQ=\r\n=F97E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.5.20221207.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.5.20221207.1.tgz","_integrity":"sha512-Fu4yTVb+4Y6jIY0o7M/lC1m2+ueAlftZslnJ/sww+a5pwd3SnypVUTPjCar0M+Rh3TY8UIT0BWmzxdP8UdTrDg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.5","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.5.20221207.1_1670436140066_0.047038762260665834","host":"s3://npm-registry-packages"}},"1.0.0-beta.6":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.6","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.6","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"78b360c4dc7c9bee007a1aa26e4fb6b996cd3a02","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.6.tgz","fileCount":324,"integrity":"sha512-5TO5mnqp+5qTez0c6vsQbR4KIa2Uf9sQuHC8iR8JlHwY+0cHfeXDdI9+vJZlh3WxMs5xk1WJaylp7GPIoUqzbw==","signatures":[{"sig":"MEUCIQChAJDhgSKo1SbHXLCVUlEb+daI7SzX/iY+NGDx/DbWvQIgP3MZD0iWfYV76qkoYNyfA912CZUnVz2TjFhb55IRL0g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":884435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjmWAzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqE4Q/9FKfa60jew4GcyQ80zQPatftwXo1/pwuMgD2w80AN7qx0IeP1\r\nfAqS1LKPHPvd87tzWd6A2u8MkwudtNKBr5l2KySF+YO7vvAHQEEWWguVpDWk\r\nwZumr0GlDMGHQ428ljP5vmnsIm5MWj4sEYWasHgv3s6yHlaTvLvAEG52nrWY\r\nPT3A5FxIQUu6+UxpLYEzSoPqZwSfoPWlF8fHt+XxHmGmoesQKoPEEVaCHIf0\r\neseqPELJEc8rl9F8H/Hd4tuFlDkZ0JcmfH47cquAbw/WCdyJ1e0zRiWKA4Io\r\n3oTEchQI6DPFrNXFTvJE0VI+hO5LfMUW/UixZGz/Zjlrzf1VmfPJVOysakJh\r\nQH5raNT/YEOOKMRNmOJ17TjDybEyYbrc37vtmHQ4lD6565Ay5UJ1j/NCS5kp\r\n9BC9H1/irhMM5TUKH8yBJUeVPQ0lgUdI26+QBH5VmEpJiSnKWyyACBQGf+AY\r\nxgYp48odIMLhsEzn3XTB0YY6nMXodYfJG/p5M8yK+D0XGHwTBHpuDH7+v/KL\r\nNX7wsNZMfwfgBpW+IZK6MnyxA0C0nbI5kP7idNBxL97VLgMIXaiHIvOOOJMj\r\np6Ck16dNFjw+4rsS5zaVLUDRyQg9t4HPLaUgXO/juTyWSTJjcfbzcCHXt/OR\r\nGiSJ595SUS0qnaYmQ7OL3zh4oNndtKn1KWQ=\r\n=GKK2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.6.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.6.tgz","_integrity":"sha512-5TO5mnqp+5qTez0c6vsQbR4KIa2Uf9sQuHC8iR8JlHwY+0cHfeXDdI9+vJZlh3WxMs5xk1WJaylp7GPIoUqzbw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.6","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.6_1670996018868_0.12790127133383233","host":"s3://npm-registry-packages"}},"1.0.0-alpha.6.20221215.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.6.20221215.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.6.20221215.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"67d6fab0925c463b3b2ce1a2cf76d4172808a9b6","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.6.20221215.1.tgz","fileCount":324,"integrity":"sha512-5ImaGQ/RPFywYxeihSlgfSIf/1sdajmis0HzUq14JWSvXlZs+yYVij/Olc/3fWJvRRpBHdEh7mAQ0wvlWKBZBw==","signatures":[{"sig":"MEUCICHfheNKcd6Wt+XRau/FaOow5ODVaftfli+aFPMzOVXiAiEAgAN/rntMDvI+hwoPEUB+b3tOx9Kn3cvoTxV4MIRxPm0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":888839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnAhAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozkhAAiZQkXZ0RX+Z9kdtv0bHD1zLmHT8TKPIf50B9JE/myeUOeHhL\r\nnuFyBAXKeuNEqCAC+cG8hAsni9vQmv99vv3vkM9atgaD178FKhvAO9ISInT7\r\nxBczX3Hh3f0wn7oBW1dn18JKVmTIAawDgcJpK7/UXXSlQKkZVZoJJvTA+XN2\r\nlEmfkV1sUeqDWDWH+ULH7SW2hyHV2h5mu0tI5HQUWNLZbb0Mkv944JPitL3i\r\nWUdSCigQU/hCN2bI8GjbaKHGCVb0R/krSCOMdedPg759WujA3Wa91md0kVPd\r\n29TupK6RmHmyHdxKJj0MNFuxP8g81JBADOlRAliVAEUjsvr9NbbMe1tAdwbk\r\nmq20t3wXsoCEJiOlsj4PU5CDJ3V0fR9R0ZnfmNsAfmlS/jlaSvw8eBGDdEWR\r\nPSNh6wQ7os3qldRMa6MntD9zW5ij1Wne4hFFw/+6eWLaKVa4BpA2riqKi6jf\r\nW5qzhILobe9H3LsdphhdGBzlp4WBet6uD3DvBdXdQGQftNvZK5RN/zNxguEg\r\n8xp46ZKq3A/w7h008koBCDr4OWSfEfjFTaI0Tucs+NU7CSA5LNVU1smiK7NJ\r\nRzDDbmYk6oM5BYDncOjmoVxzLekMFZchZjU+aGv3F0vlYsUEl3OH/9sHkmvI\r\nunAQijy9fGJN1k87osZPUtZJ01SvT9b9b/c=\r\n=MYq1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.6.20221215.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.6.20221215.1.tgz","_integrity":"sha512-5ImaGQ/RPFywYxeihSlgfSIf/1sdajmis0HzUq14JWSvXlZs+yYVij/Olc/3fWJvRRpBHdEh7mAQ0wvlWKBZBw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.6","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.6.20221215.1_1671170112158_0.013112873305200834","host":"s3://npm-registry-packages"}},"1.0.0-alpha.6.20221219.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.6.20221219.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.6.20221219.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"6c011baca1e16a7b557a1dc7ea7803dac7c0a4c7","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.6.20221219.1.tgz","fileCount":324,"integrity":"sha512-DfpmGOcxqDGHq6RSttyUvUjGm1LVmVWC9Yx6nXDtObeB6u18C7mdnHAS4uCZAJ9uwNttH2azAPV0jP4x78neGQ==","signatures":[{"sig":"MEYCIQCKETaTwpvTUD8mz9BBKVK+7t0iO8CDNBIyU47YjbPwTgIhAIPUrX/w7wGPdpLsRuoy/3mFXzQylBBY5CqM608sqfQA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":888839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjoKcIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtdQ/+MlML0L1YXIgXj74Fz69WhJCmViMQse7+scwpXXKQWONW324O\r\nnS9Rq5BSMxqmzCH0nbcpVbvw9xQpH8VTnRYRT3d/HsV5AFJz/yvLR5bS4Jfs\r\nYZaG3rONrljmw7m2/0bIN7Qnn/oqBk1sf6rrQExuOzY4qSmACjbb2SUzhqvJ\r\nQXC4iliX6ZIqQOmUp9oevZkA8HStux8lwtEmMYY0gNX43nqlWJfHmh9tummR\r\nDki/zjRj4BtkniKKWkhcmwD3OejvfoiXew7VXNWBjZGd81L7lVKeIdE6e6se\r\nS1DuYwrXnCE0yf55lUepEeWeNc0lj3tYllfjjZlXoAN3h7CoIQMoCSkcEvTB\r\nqWjXF/A4kT00jfna2rIpWsyvZ0ftyzcomTluQhKZSdkYTnPZE0o6CbHYVefX\r\n2Jk6OhKVIITbYjjykvtKEJWgMRqmPPba0PtluRiaXTZZrWLfYIPLpx5LNF+x\r\nbdpHvo1w1w6BrrhU7SvTNLynp0bCpRxtYCh/KHrFI7nCfUdw9slksc7jTODt\r\nZTk+rHTqqfgGZWVgmaL5q+mYhtG9PVgwmrSOTEJXC5lKX1dDrZf/QFlyOsyq\r\nITP2ivR3xG5WOiSjC62+Qxe8pwnXj1MHKMM2ZHsx+AysIKUGiDPEhmyDa9fB\r\nijGdNXpBlQRlWpF7AA4LscMqPl0P2mG7dp4=\r\n=O8zJ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.6.20221219.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.37.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.37.0\",\n      \"@cadl-lang/rest\": \"^0.19.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.9.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emitters`:\n\n```diff\nemitters:\n+  \"@azure-tools/cadl-typescript\": true\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\nemitters:\n  \"@azure-tools/cadl-typescript\":\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.6.20221219.1.tgz","_integrity":"sha512-DfpmGOcxqDGHq6RSttyUvUjGm1LVmVWC9Yx6nXDtObeB6u18C7mdnHAS4uCZAJ9uwNttH2azAPV0jP4x78neGQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.19.0","@cadl-lang/compiler":"0.37.0","@azure-tools/cadl-dpg":"0.3.0","@azure-tools/rlc-common":"1.0.0-beta.6","@azure-tools/cadl-azure-core":"~0.9.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.3.0","@cadl-lang/versioning":"0.10.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.9","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.5.0","@azure-tools/cadl-ranch-expect":"0.1.12","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.6.20221219.1_1671472904511_0.9252198710814501","host":"s3://npm-registry-packages"}},"1.0.0-beta.7":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.7","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.7","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"7a997323236cce788b8e7ad3fa6ce77c80c853c4","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.7.tgz","fileCount":330,"integrity":"sha512-KAIzhHFtTHpKPZ9Ubg9IQPtSZrtRdj0UmN/VZ6F+PsF+vn+A3EXlJJaqaHwF4B8GDomlp4yBuuMgtgsS6u65+w==","signatures":[{"sig":"MEYCIQDylM8ApxplcXfrOcbLgxZLPC0SvXYkh5tHTEzM0Ay9oQIhAIZPBcOw6mVvotH/kWMU2zH/ockmgXJLUtiABJ/Nr+uR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjosM8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGXA//ZTFlKHcKkf0ki7Ou+NFWVOIEheL1puF7Hb5q8Q4GeNUIWRvL\r\nbV43gf2XmS26tYpnDf7BZTqwzp6K92iuJ6yYLWUj3ePR5TF2KmnK4Va4UDhr\r\nYHi4ZtloPBaISUoqElUBo7KNWxSbp5bsgvCkO3u/u/ffpba0Oc297EaKxoT1\r\nmzBHeMWwPvi4OWbAVkiLfr7tZC5mdYXGxqwSnNHKPS+Sp2DgkbC0HJNGEqDP\r\nJCcvxjph6iY1CPBnEI35hOfkSo0j/mwqGTx9OjyADWG/otAEi2nsao87zdjp\r\nnRpT8ituLH8ZbZhBYOkudLyh0en9XyyWfz/h3o3c6Gu04e83Ik1cYztzRATA\r\n9Bi6bGcuDo96HljppJXlr/U5tVT0APC7pIC8Mq23RNrsSFRAkYqAA9nthpdD\r\nRv4t3Top4Uzwvgl4zyUTZBF5RVOrePe8uZEyLamwpvyGEYjsCC1UVQffYnDc\r\nMXzVB3QAOtPIwVsC5UtcbsxwL9pUzH3ZGmtP86fPqOF6vvv4i+nz9NpCmC2i\r\nGK/q7XjEHdwb3bAstHLtwQTuHNo1NveMaOUWr6XLfwAoovVwIdGSSC/NV71x\r\nQASRZacoOz3q3Wj3EIvLBuo/gDTES17hklmMd0fKpenUIhOLDabKqskLH43r\r\n6apSgqPLHLIy/t6/QwwvbAsQgSH/sE3/yYk=\r\n=oTw/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.7.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.7.tgz","_integrity":"sha512-KAIzhHFtTHpKPZ9Ubg9IQPtSZrtRdj0UmN/VZ6F+PsF+vn+A3EXlJJaqaHwF4B8GDomlp4yBuuMgtgsS6u65+w==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.7","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.11","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.1","@azure-tools/cadl-ranch-expect":"0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.7_1671611196135_0.7297696059534615","host":"s3://npm-registry-packages"}},"1.0.0-alpha.7.20221221.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.7.20221221.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.7.20221221.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"9e7174c0950d8fe8e7c0be68d3ebd98813bc4bd8","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.7.20221221.1.tgz","fileCount":330,"integrity":"sha512-Q7Q2VHysV9c4MWwnJ3KcBVMG8sTRpHu9NYOxZ4r2pSZgyvHu/Uz6LZMZc3N/3/muL8NQYEyAn1d0OEMSKvZ09w==","signatures":[{"sig":"MEYCIQCH7dU14HLIVUgZuhNX5u/LB5ush7zvfIDcBqOHzjev2QIhAL6DoyOp5ZYLqxci6tGHNyx+Uzg63/Da3arKaSTvdEhH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjo0nUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVKQ//RO5hj1Haoy2k4NcuoGX59+Ky1K/lC7HvgNsuCImgHhFkF6vk\r\ntmbGKf/Svm3DtDZy/pILEi6ojyYXVkmlmp+oG4w5s0C8v9dDDkOyNak+Ypv6\r\noqimdtyVPYC2rQeIAtpreDBw8BcVq1rGqjEXVx0bg+9/FM3LoTbFdp/+oLSi\r\n5cEmw4EfbnN0E/V9B0xg+qnZPzsqF6ZmIx8fooyPz0cZhb7niVYt1olhX0wc\r\niu5ZHAJ4+H3ckmwwVD7d89pFjWuAtda3YtAowzvBJhKFCLvzOnWOLuR1UmEh\r\nVTcHFH1hhNe41UIN92HcKpmE8gZn0N1i4t+W0bUXiUwwNs7clfnvVM+6NeKh\r\nM5TcoldAJf+OcVNOGbfFUeMMdAJCmUlGxZdvKknfR3HMVXH0FpQVtcnhsXtu\r\nGu2NRivWzqxO4ylSSwOLYFVuHoROlRgH4DzRVHpFuf16Z/X8fSp+zVWBzjug\r\nqZBNzfIdqqnbQqFL4foYLM+k9ed8EVIXGH51AKPqgDKluCK8KY4YlnSERVzD\r\n3lpn8QJ2VgMy2qEGvChqWRWObZAIdwjiS6y/jBlEfzR+RliZVGE0+Q7KUYAR\r\n5rm2Sb4VRRKXwdst7oEBln/ZawRMGgkpGpYT1It88qSeg62cE/rIC7roSClt\r\nb7GtuzVETh39lXVIf+hhusd9J9aL0zJlJfE=\r\n=XdZW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.7.20221221.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.7.20221221.1.tgz","_integrity":"sha512-Q7Q2VHysV9c4MWwnJ3KcBVMG8sTRpHu9NYOxZ4r2pSZgyvHu/Uz6LZMZc3N/3/muL8NQYEyAn1d0OEMSKvZ09w==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.7","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.11","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.1","@azure-tools/cadl-ranch-expect":"0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.7.20221221.1_1671645652155_0.9998840423503195","host":"s3://npm-registry-packages"}},"1.0.0-alpha.7.20221223.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.7.20221223.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.7.20221223.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"6fb3d104999957e0aa2ea10f3c8630787893443e","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.7.20221223.1.tgz","fileCount":330,"integrity":"sha512-XrMSmisxY5e35gsR8+PFngA/1si+6P9lT1f1dbOJakmkQMMRxejUmgQ6it+fLYMuO6KtVkErJj8stqSREYU+/Q==","signatures":[{"sig":"MEQCIEhPSkyEAKYcy8JHUfvcaevtsHDOgq/zbzHktu7ryy8RAiBq4r7pfnETtz85jYPq5J6M7UTO1tjtThfQkFljPvTHNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpewfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpe8A//bo8GgUlV9z/U3U6qLO4fxmiwFhBOx5MyAQnMrN3T1cSJyFKK\r\ntOw0aKQZxBUSGYO5kSJngQ6GtitN3BVDtbJBdcIDrOMncB/1cRYEDH/3cILT\r\n93O5QMV3NT++7OXaMQwpQiFcxHM7Lhwlwm1P6f2D3vBxLJ37xR3AfpkjnC0+\r\n/OO3UJWrDoat16q4+jTA4G7fCA77vLbER1OjvJfn6KK2VUjKSTnU1NIZcutb\r\n2cO/QoNqoOEJ4MKnmC14Pntw4XfoaEgyPeOR/zHQMwOILSk6vv06Y2FEnYee\r\nPsa0H9gMnrbYZnrY/Gp/q64HqSOD1OA1rxFc9Fadm3Px6bvt9Tbl1c8hrDBh\r\nY/gKgb7LSOS57dYN7wud/IalzJ2hS0hJaZGTDHvHn8hcsttE1t+z4YKMUj4/\r\n2WwmBxC9xxZr1ZKlEoRhWjBZzBQKC6RIkBJEPwTSdrP67uzGK+8glj06YDQt\r\nVyH1Y/s+oF3F9o7g4hUR9+mXo4IsMQEkCZmmGHioM4Udku/ekqS/C9eizPi7\r\nRzZ3FduFrM+c4+M/hSl10fY7xWFNObPBfcuOjMICvMr22hU34C6AfQp/6lpm\r\ntrnxUwuHil2rnotFB2kenQBqIVxUyqakTG3ehxUyT0SbTJ/Qnszsp8vmYuEg\r\nHcslBraJEU7gfxN2S6Hs7K5mVKQ/jUaZ2yA=\r\n=VYK1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.7.20221223.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.7.20221223.1.tgz","_integrity":"sha512-XrMSmisxY5e35gsR8+PFngA/1si+6P9lT1f1dbOJakmkQMMRxejUmgQ6it+fLYMuO6KtVkErJj8stqSREYU+/Q==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.7","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.11","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.1","@azure-tools/cadl-ranch-expect":"0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.7.20221223.1_1671818270924_0.8843876439272609","host":"s3://npm-registry-packages"}},"1.0.0-alpha.7.20221226.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.7.20221226.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.7.20221226.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"ce67dc50f8ab6dbea565e4f444afbb44e722076a","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.7.20221226.1.tgz","fileCount":330,"integrity":"sha512-jfbKMVpYC5KmEYa1EiivANU5wjlgzf2sLFYgQ3WMrXqYP0N8MCVVa8v96bn5Jav2NHoHW5nGJqVuMLqN4XAAzA==","signatures":[{"sig":"MEUCIQC6yKddc1hyjotqvHFznj23qAkollSbU889KeWVxujjiAIgOTwvDXEjUWFPUwwERGrWfYqG0hAnyIa7kgxxPp4XjJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":893024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqeDLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrDsQ//csdVGrKeFzx+xa5Cc+klvkpm20qKKAo/gKasV+mnVkX1u+CV\r\n0OcC2CEj3AesGEm2RAoO79WmF3gZZRoDXcIkzURzeLtZFuS+d3JusxKnreYL\r\nN2fn8+0ToXiRnzPDiLMoybg4HKiPSZcjYH5EYF1oRmNrX80bTftT8a3AKNk2\r\n2fUTEK6vz8T+cw3LVOW2GpULG/baXwDryqi7PHcUFwbo0r8shtY2Dg8yT/BQ\r\nNnhDHleuuvUXKqKBgbmKQZiiV8e8N1gtKXSjyY6+U9JJmc9/Som48wjs2Dfp\r\n1oCZdjpmnqMejzegg6SWejDtEKsT5FKsfJRKgCt9dQyCoUbf5t/wZJmPKQJ+\r\nQcdL3XY/5FlEPL6wbp6anhz1Pxemq4g/ELvE41rIPcWhf8Sq9snEVCcDUbRO\r\n3YITD3pTOYY+lTLhYaitXKAkHKp+UZUgkCxcjtHbj24GuWhSgD0RyVRFPz4u\r\nTB3posuPBW7v5TDJIaf8tBaXNMcRhoQFmowPTbQCABG+uZ+D0JSn5YXo41IR\r\n0kCD44roZr5rV1LRFa8xyHzyrD2SROidGqsZ1gCou3zqth5a433NRVoSiKMd\r\nau1bkvzQhq89XIRF+SS4UqN2d7w++HBCGiohL+HP3pEQHMV8NI7JfQRgdPpu\r\nakGmqNM9FEavoFLFOHTb1CtFPDoNQEARfKs=\r\n=8cRZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.7.20221226.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.7.20221226.1.tgz","_integrity":"sha512-jfbKMVpYC5KmEYa1EiivANU5wjlgzf2sLFYgQ3WMrXqYP0N8MCVVa8v96bn5Jav2NHoHW5nGJqVuMLqN4XAAzA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.7","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.11","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.1","@azure-tools/cadl-ranch-expect":"0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.7.20221226.1_1672077515212_0.47214834703467323","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230109.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230109.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230109.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"bcaf6971bc433a2c0ff4111420a5a0e096ce86e0","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230109.1.tgz","fileCount":343,"integrity":"sha512-ekyB67aBiwzmZFaHNP/VdSVpc8L/odbpf4UXLaH/6OlUwYTC6sqmfdlEK6mUeBBuVOvyKKfs/BNsOa/A8rR0Sw==","signatures":[{"sig":"MEUCIDYVR6Zc5LiIRR5NlSpHPDTfeUtK63GKk3YMmWos25RdAiEA3h+QyGOwUDomJsJuubv5Pi4XCVS2H9CAtsi9xYAJShQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":915215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvFbjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWng/9FiL3/0VDLtWELVCNkLa5ZwKVknONtSfvGeBRn9XV2Rc12bPM\r\nmkGs0vYcg8L7X62usmaWwXEItE2LId+GXunzKXUmtziyNjCR/WcHUQg7nyD3\r\nGurDsagvyxqDt+gf3+CGyedrS6RnBSYcjeDaklTioxdHmkH+rY3VqRnh31/Y\r\nD1lY0ajZ6IhheXxU8FHQlrCeeYotTUE51DiWZZbR80/29QeV7lqF7o6hSWos\r\nuX+HwCv3TSDfhK8EY+P2phInXo6eGIopCiHi6buAIZKgUq+CtdfU4uE676ZQ\r\nTVszgh/M6ull73rQ4GId5ObCmth8KJttN65uIFLAzh6minPIKYbd54567Kw6\r\nE1KWQ6TTJwdgpP96LZfbtnMIluASvUR+hBVcYpcVzlhQo7bFz6BZ3BDsD4pb\r\nsZ2bGyJDIIfNM3kcTlW6O0gwaPdZ7vBpJNrSpoSMvGGJWXpWnt3fyz3xvpAM\r\ncqklXJcm31dMMriaeDenDUjswPY8NVKPKx6D4dbomsXgVpySsAZ/q9gQc3MO\r\nMy7fonZJQel21D1DQkYZUCybmQvI5o+rMSgKxjppDumO1KF6HdphAUdxnu3s\r\nhzLTy5ogDhHETrxbkPGob7uVj3yAH9ltm/pJLhdSseuZSmFoVpB/pyPDN0eE\r\njVmIra0CbkEV12dnoaQphYkB4+XGNZiruzs=\r\n=Va3k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230109.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230109.1.tgz","_integrity":"sha512-ekyB67aBiwzmZFaHNP/VdSVpc8L/odbpf4UXLaH/6OlUwYTC6sqmfdlEK6mUeBBuVOvyKKfs/BNsOa/A8rR0Sw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230109.1_1673287394709_0.9362338061603466","host":"s3://npm-registry-packages"}},"1.0.0-beta.8":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.8","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.8","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"186645c7fe248669663cd2eb8e2334e07bc7cf86","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.8.tgz","fileCount":343,"integrity":"sha512-iW1tuJAbZQU4UECYziLAhN4gQwRwxLCgejdMpDrnEIAUe2A3+en3JWg8ybuoxUrCFn1QwkrWyFw5A3JoAu0RGA==","signatures":[{"sig":"MEYCIQD54bCRycKoyeTNQYWh4lOhrnfE+opxSIhLi9MAd4kYnQIhAOb1tshAU8Z/sXYDVSHzZmg0iVv8pRn14r347EeF9FHa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":915203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvNpoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+IQ/+OGLqgs2jlxysRk8RFoxJ8U1H1Vy8dYCk2Ip7sScyZv4Qogv3\r\nz5V5IVAdvXcvDOd+Aj+DPGI1vARG3T3oJbxvosK+C2C3pSkPe4IGsP3lF752\r\no3QfOIQW/JxzaY3TU837NcXUJTqeGdJWPt3CpnkmZV+xBaSIdvBmc+g+Zr5V\r\nytAu4SbPFfGLyLlxPPmy8ijm9PyBxQ+fDbsxbZZX4aRSpxtgMjP0vI+SXBba\r\n3+AK47Sf9WeITvx0T7j+TvYiocL6xL61emEC2QMxHwG/lpUXb9B5VX7NLjAr\r\nRBs0lk+vB3v4q99Yf+2GvFkFLdf+BXOV+jycEFRQnedlXoZ7FG36RNWH1qN5\r\n+IEJ/y8ia1s7EQkQkcZmermEENOdKWOfJf3/h4P0V8E0XMF285yX2by39HbQ\r\nOoryviOcEfoNu16iiNPDcZlnNrPxS6jzozIRrayPbl+aVALNTwHxIYj2FZVC\r\nIHe9a91Dr2XwIMRYGix8KXv5GDTO5dYWGEDF2yFE+JEN48byNGDQUxUuYgz1\r\nCPw6IuVmurtUfvdRKnvFaEXB39AX4Pud8XFWtQHjNMZpAj0M+SI0D5vOE+C5\r\nwkiSOmWXD3fT5MdudMO7ueDkdIoFZXp2A7eBEz31PJLsfDxV6PPc8mG3XEDN\r\nVtqa2h6AiOdZosUI4FHdrVdrIBTYWkxLsAA=\r\n=jEws\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.8.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.8.tgz","_integrity":"sha512-iW1tuJAbZQU4UECYziLAhN4gQwRwxLCgejdMpDrnEIAUe2A3+en3JWg8ybuoxUrCFn1QwkrWyFw5A3JoAu0RGA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.8_1673321064559_0.3205927760711076","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230111.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230111.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230111.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"79b692e67a15a7484c05805330e58ffa01e9f01d","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230111.1.tgz","fileCount":343,"integrity":"sha512-Qz7lpZMtn3GDdEFMTZyewMljpOp47Io5wDTtR8xiG4bArVJPZiiZFbQ4jeyFXOIViP37VnvnbCU0RffRP91yaA==","signatures":[{"sig":"MEUCIQC6/15pm5VBSohClHLTcAut8kDRJIKdDFk/LkuQSQ1EQgIgBw2W+sHA+InLjls5FL2pU1nzrr0JMPUMAaw/H32NAwI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":915215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvvntACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR8Q//cpZDdYcL5YcNo+EoLPB2iZQ9FfOCAnw6OsXYeKubnOpXj53Y\r\n1Hk8E5lEeM3ptBKL31ol9yvGRFi0HBDhE0+gAVzv627f+I6P7v5C+gBbqki8\r\n+jL7bkgbDJluhKhsDCH22McdYDRM2GBHvYU8T0HP/BvvLr+kYWox96aR7Mi4\r\nhs4SQzTuklh3KXlP0xp7CJCp2omMafei4S7b+5RCrqFiCv+E+hLA1WVmH5Va\r\nLAVlDwR3kYhGW4UpKYdPy9uH5P1VE03M8oBSKpchLeRDyvIcIzgZtSwpjZr1\r\nJzuovUMa2pCWHWp0D844+3GzkPnxYHYxJlVXl0f6cJbX502C+h7r6a7cXRDe\r\nKpGIQ7kIPmlLUPDj9ta+76o0ogvVDdVdjoYZfqxslwGOvvmgl6QXXA1RIvpf\r\nypf+YwxlCHtyzd5bV1nOJYMzvptMg79BG2Gz4BERFb8UZPNSZ02q4UeavWJh\r\n69+FdbD01AapsVzxD535334MxdnfM4vyEu8X0t5AqqymbtSrBHkrtyDfe/Rk\r\n5uwhR7lS6lGFKMdPojn93xdxC0fU9LOq1X2bwJPYhNlfXWsTBOoMI3rS8JL1\r\nqCSA9uG9brRtjUSdLbyVzDIvLiHmin0US/eEW9rrpKovyNUY1adyh8HOcN7e\r\nRj+WI2mUe8/tBBkYeiwBEd2jAZ8uwlFY08I=\r\n=bDEs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230111.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230111.1.tgz","_integrity":"sha512-Qz7lpZMtn3GDdEFMTZyewMljpOp47Io5wDTtR8xiG4bArVJPZiiZFbQ4jeyFXOIViP37VnvnbCU0RffRP91yaA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230111.1_1673460205340_0.223003226847037","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230117.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230117.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230117.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"1a4d81a99f3779dba1c902cd19c7b4fc6c77d896","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230117.1.tgz","fileCount":343,"integrity":"sha512-o06KmwsFnXQ5FMd8pCiFxryuLCTiAqqe7Ci+bMtKtLkADAj7iS6bezxRvqieRcDNSGUQDtPbCtHHwm5w0AG2lQ==","signatures":[{"sig":"MEUCIBwytzg55ohZ0fM2vdM8dVBTCyVuNg2MrWLnNMBN4YBrAiEA68gLZdI6k3aQxRe7HwjOpmeFIhe2tn8OJ3XFmfHyp48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":914797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxuMxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYoQ/5APfZ+0phKn0r2aIxkYblGY0KoPmhx6PuriGG7oEHZwrUEsO0\r\nBe+QlIwKAFe0Kw+0MUo/++OONOoMbFNSuxfmixgJay3+uHAdeYM46qh/K3ir\r\nwd6BPYbD/XPtKQyN8TYfMt1swG3gq0jEhB/40stLToNVi5Ik7ao/olqPalV5\r\n0aHoTN29gpZLxAEvForG4hrUvEcZfbhe5h/uuLsg0JO/fIUYWz6/Wr3vrQR/\r\nBg/QH6uDBKK8i4xjZkRCFLMVDMbcAzpXDWZl7Af0izliu5TQU4H5JfzyM85n\r\nJny6ObV8VfRnhcD34Nw9GeXPvBrwpD/VW0s8SWEm826+DwCIsUEBhq0Zy/TU\r\n/Ym4gf+GCi/TzXVLQCWxwYmUEmlD7GjLByhKntXnbMKxkkpbsGdkxZzGDu3W\r\nsHUqn29IyYbWpS6PBL90aZCpl0raGAMyUOxDHgyDgN4UQfyOZ70PTF10YAQM\r\nHSqdkZnzpyfsL8IE0fpCg36IU5zrIAgTGVVfBSC+Ua5ErLhK6wYDUVVc66zk\r\n+z6sfFyP0OXWUXBZV9fqKGh9lfT8Fe3V1vDokNYgoZlFqOyv8kQ1tZlLo2RM\r\naLWr0DN+YHT017QlE3QdsVlYStzRF0Ruyav/Nt+d87c3FdhAjHxUf/65pyn1\r\nmxQTANtbruBq+nQiURoUCeaDq2eyvWJc/Sc=\r\n=5r9h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230117.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230117.1.tgz","_integrity":"sha512-o06KmwsFnXQ5FMd8pCiFxryuLCTiAqqe7Ci+bMtKtLkADAj7iS6bezxRvqieRcDNSGUQDtPbCtHHwm5w0AG2lQ==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.15.0","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.17.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230117.1_1673978673247_0.680933871585389","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230120.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230120.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230120.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"8f475d372732e3170145d18dae449d31f43cbf92","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230120.1.tgz","fileCount":343,"integrity":"sha512-APtD558rOz96sxuEe1IPZIfhBVXNEw6+CTnBsvCyIRvkbgGGECQ4j0Qqpjui4VPhBZRZOe8V7yDCPnwAXBUtHw==","signatures":[{"sig":"MEYCIQDx8TZlYYgslkoqE5/J1bBa+OFXNuQpinXu5Zvr9I7X3gIhALYC5aZR5Jq2M7GBNWTR2tyv58hijl+DbG9FK1ZoQSY2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":914797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjytaMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFHw//fNm7VW3bLhYmeDfB4jRXM1yp5YMB9kSMHqvGFYI6F6AeKep9\r\n8cRCX362/6r/Je6m7aMQIVl83F+0dl3dyDlnQw2EpqGeUgW14/L0hnY+WZxv\r\nzsgl+9F0WZIt7Ty634R1CSMKq09qV/rqieZOcrbJpjStg1qevLRnWRHfo0CU\r\n4OYgDySGr11NeD6VEpv0IVv1Yekr07OIXpjqqEm9h2lAlWbh/WNU+Yo01O3v\r\nwmo0mcWMks+LZJKQBE5r2qtQUXxAjGv1asSlOlgublX2tolKgTLf+DCkja+Z\r\njIXEWKWRnWgTY5UqOYVGDUA677v6R//pwGzR+fdPbkjGhAQSLstQ2DjoOoQK\r\ngc4/to0/lTA8Xw4soGfY1EpTOv+pQdsvE2NPeRjwZ8BoLpdtlOrtr16Ew9Fp\r\nVshm3yE0HYltOgUKSwSF22IcxJ4rTXlfbAggtGYkT8BTL6UE9KTy/3g490Q1\r\nvepIMKlxar8GxICcKz3XMow98E0jgIGzunfyo0WAliDOcBzM6b4Qo18sL6Hh\r\n/PJkUekogjPPFiBgN1O/3mDxIa48w+i2Ov6+q10d+u8IyvndmyIC9mcBy0wO\r\nMF4GfsFBVyJeLkAURCfXcIwUBmDJAFjWV73+Wg/y17R6cuZLfamssPw56ffG\r\ngmho8f/z3LtbiT6V78vdTgEM6qr3DwjvDgw=\r\n=AKkR\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230120.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230120.1.tgz","_integrity":"sha512-APtD558rOz96sxuEe1IPZIfhBVXNEw6+CTnBsvCyIRvkbgGGECQ4j0Qqpjui4VPhBZRZOe8V7yDCPnwAXBUtHw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^1.0.4","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230120.1_1674237580648_0.5278494596231078","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230127.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230127.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230127.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"9d97db6ba0be135a1a2b8504731cc3d29085f8bd","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230127.1.tgz","fileCount":343,"integrity":"sha512-W2CGnjLlM6utukD/paxXFk7dCe8mk3CZGGBSjuSZx/PDeR04R26oVCJnUgzq2bEcQKD2lo94vk+8ub+fL5Widg==","signatures":[{"sig":"MEUCIAgII+TXtAwLuhrSz6zPB6bB0v9UvpE1K5Y7achfGCWNAiEAlxJl+nYgaCqVOyFMwwYoeHTnCxosgIjGrBXLLA2f65E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":914928,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1BUKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwGg/9Hw0cFBGieEMT7D+2hjj0zFzxtbRCPjItV6ms4iI9IoWk8XpR\r\nwD8WN86rXbYDLRH3+7RSzStU5w+191g7ROLlBJw3xTey79Th6X4K6muyYLM3\r\n4MzjS/AmjyGNcdeBuYE9l+31WnrFH9wCNC1UTkl95cbCoMITGjSYS1eIPwZo\r\nLClR9wMGT+pUGA1FJTSlXZtk0ItSq/624Gi+d0eN4UxKsCLBj+C3GtGXMppv\r\nCy8wvMRk1qqtpZ8f/oWWYAzZfdZlIsSDXlPcps3OTx5l8oCD4WUKyogc4hKi\r\ncsnBx2LyrpTImJ8hKNXUuA9PY/ldny+8hrBwMM1y1cGZJdkpFYs4ttW/ktgk\r\nsQRl6rbGxJ6JKkeC9XG3u6NZtLzbKPDe9p5Gf2KS8AMpwTAqHpacxvOqliZ/\r\ngXWTejeMgGqVZvP/raPY/TCz+rqn5omX07kSk8+qytEtquolU0Hgsx66VJH5\r\nOCujU6tVYOSQ8sYsfD1LMZAUY6d/9flu4WjUYoQEXlwyLD/QwcwRTHzbZ2VN\r\n9j09qUfKEAVvTu/rxOG685vDv1MgZCnOXTeK2WDDnMhcptG+fQDgvq7pxIBQ\r\n5rG5PXl/WnoKPFD/YWmbVPiXs2jjYvgACWaPp5rsgWOWXbFNZVo+BIIpbHmf\r\n8GiBRNh0SYW6wN8mxeZDL9eSKakywd8zdFE=\r\n=44ft\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230127.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230127.1.tgz","_integrity":"sha512-W2CGnjLlM6utukD/paxXFk7dCe8mk3CZGGBSjuSZx/PDeR04R26oVCJnUgzq2bEcQKD2lo94vk+8ub+fL5Widg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230127.1_1674843401836_0.7110604776393226","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230130.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230130.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230130.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"62a0c08d17c4cb1e6ad5b90359d65b7925652493","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230130.1.tgz","fileCount":345,"integrity":"sha512-z8XEsZPSEJwAvjeRFKGaeilW9lV8Ku/yNdcXQbGzDcWnN7NkgNtyIUuToqTpPx/4XRNLQtY82g18tqgiG+xS4Q==","signatures":[{"sig":"MEUCIBgqAzl5L2eBxmkf+blH5ATK48qcWU2lqJN6/6Y7bDzBAiEA8TnhR/DCpreHo1RQuImJUvnHEHD+bG/LVjANTnF1458=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":932134,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj2AahACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjQw//YTrH+1eu9faZqbFvyBH2yzCWtls929EgH5KiHDdeMe+Tkw5D\r\na+omGDPphcuBmltn9/tLnr/YpIWfWCep+WMWEo4/hzwYLWLZLfvCYc3n1tAy\r\nKyLsZrkZ/cNMDxrROPySnZ65dSGVHM8V0jtdx0lWMmpoWpcflOR2V3r4z0Kw\r\n6thJzBprjbGg/224Y7WrnkHA6SbqTQOSP14N2KyRosrp5eOvXT7f8J15lVM8\r\nZN/iV/hQWKB1jL9XCPuJHfg3a2C8FeZpUQ/+k9hJYW1E1riMckBy1l8KAWXH\r\ns/i7wQi7US+kpwWwL9bRhd0iC4mTMKa9SFqtcvRdyWttMHlOLK6yWxrdrZmk\r\n6POvR75Z8OrUtU4r4++9X0XUwMChLJhzk8rIGt/iO1CevDsRpQOerXOcXEFz\r\n9ZJnDbetlVoOEJI4Yfqc2Kqttnt3L2DnaG+opEzHhymGdu23vpXjeCRRr+G+\r\nBDqREM1bjkXNJrroTIXGkN++JxPUQ3SwTsoh0PBt9iK3D6/+IqsR8LX+CG9H\r\nUnjfYjTcLdlkgAOvYCKa/z+Q4WdXWO0dV4Ii+UPd7aNYD1MN4QT3lNThyir/\r\nga/GocW/zTDVWw3pzvjrIDiYW6pq+MMrnBT5ZEBAuY2nPo2inhfujIfP22Ra\r\nk5X7pFw4erRIyZ9FPlHeyP61cJYOMFgE5Zo=\r\n=Ivw3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230130.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230130.1.tgz","_integrity":"sha512-z8XEsZPSEJwAvjeRFKGaeilW9lV8Ku/yNdcXQbGzDcWnN7NkgNtyIUuToqTpPx/4XRNLQtY82g18tqgiG+xS4Q==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"0.38.0","@cadl-lang/compiler":"~0.38.5","@azure-tools/cadl-dpg":"0.24.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.24.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@azure-tools/cadl-dpg":"0.24.0","@cadl-lang/versioning":"0.38.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"0.2.12","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"0.6.3","@azure-tools/cadl-ranch-expect":"^0.1.13","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230130.1_1675101856742_0.9544362215367033","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230203.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230203.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230203.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"679c88395da6a4b7d474e19b787c3896ec623e83","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230203.1.tgz","fileCount":345,"integrity":"sha512-xeMZef8PAyEtKyTcopNstNEJZtx9g0Zt5QQ55U783zAfpNiltUUDCdNlVuqsqB/Qt7ca4itK/PlGeV9MFAx+Ow==","signatures":[{"sig":"MEYCIQDa3mUuYNWSLVhwbCRJ1Ae8VRLFIvuXpK/gXysLZqDsFQIhAPtLtFeBNa0DwP9yxhY66NXWZr9XfdFiRw5DG0UIg+7s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":933305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj3Uy9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo61A/+KQ77ohCSEartOFL+wP5uYdJ7O4LvbnS1+mDR1MotFd5lDahI\r\nQucHgrADVc6MEsUk3IIZcz0lEGY77eAIXT7xcBMWCmigAK8K4M4gmVABq4si\r\nPE2lN703UUjmT3ddsM+kW8Z1ILj2W0fKgFLNBz/4d4uer5BYRwRsuRb1oKGq\r\nhque64UO0nrtQ7nST1v/7qArJbd+H4G7JsPF+4ych8tyrypiXEfsHpI4/JYN\r\ni1u2yJxn/62m2net8XNC5P4OPMP2bPNK99AO7zwYgkAHhL3Hb/LqH8qtCf6T\r\nhzC3FIuuPRCpyByMhrArcuSnVZzOflU2dmkfkqOAJFEGRAXxH4cWZg7u36zJ\r\nzyhqgEX2TZNGK8rN4tMcEX8SkWaBIhsyNUD0RdFsv04VjJ6uybhUO+/PbsX3\r\n4pefCKCRgyUkaP4AzhBlQSZHImo+1Z1gJUxT37yFN36EQ3MN6ZJXsC5dEBjz\r\nLkLIGvN32qO2OV5Qgipvhvo6SvpPqw6N6CP9RrgL1zEqwsTfdquB9GMq1fdi\r\nZlkYDwoNRgnnWdXegFpcaT3HoJdP+tZLnH2276iQ2cwC3ZFni4e3+azTHcuu\r\nqC/JIfx129KkDmrE8D+YH6CxfewnrN62VFOczq764zqpv4i+yfxiiWjMqakw\r\naDVr+ac3ZRxV6OhkBmWjxdlm+YV+Nypu8ro=\r\n=vIrW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230203.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230203.1.tgz","_integrity":"sha512-xeMZef8PAyEtKyTcopNstNEJZtx9g0Zt5QQ55U783zAfpNiltUUDCdNlVuqsqB/Qt7ca4itK/PlGeV9MFAx+Ow==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.39.0","@cadl-lang/compiler":"~0.39.0","@azure-tools/cadl-dpg":"~0.25.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.25.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"~0.39.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.15","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.6.6","@azure-tools/cadl-ranch-expect":"^0.1.15","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230203.1_1675447484774_0.5182374363009041","host":"s3://npm-registry-packages"}},"1.0.0-alpha.8.20230206.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.8.20230206.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.8.20230206.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"4c85a3682c08f0e852ce7aca604c66ff0a3f23f9","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.8.20230206.1.tgz","fileCount":345,"integrity":"sha512-AeqMtVGaQsE8GN9Xc/htfSuWQe9fsPnaWsNsm/DgFQU1r/YK3bl7cBih+AnfZZHwE/IFbDbxwDMsZhsyr6EaTg==","signatures":[{"sig":"MEQCICWEb5QJ6kqgBhpUU98nypzXqivXdrSMeVKFMNw4fiAJAiACXJzMPsgA9tqvws9B7+JETtwdG8I35G6A7jxQWMzV5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":933319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4UFPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpd9A/8CHUG6yo0DwF/iFLjOlTsHOIwrxIYjx7Zb5ImMMa+dg2DEiFA\r\n3dzsThoh0LaO2wdj+bTqe9YfJC4026QAq59OQhHxuyrkO3GbLIXELUhedq+s\r\nq2ddLOZOScKs85DsYER/2bapJFTtCIcPlG8ntZbLHefCNzgLMIgW6X9mvru0\r\nwxA1rozynmEuF4bmH2o7bWnAW+fCrixd1Q0dJWgQ3nMHFAqv/EumhGODlV5f\r\n6kZQA2zWLW45oVmLcclh6Hh4B91DnbwudSCtrUumneikysorZl6JCqevy4QY\r\nxZSPJ1urbdOn0HOOUYac71JZ2pgZyg0LAMGiVnUnEoJaTewoVl0pXJBShix2\r\nIzx58hqmiMfxpPBPbwg53MOm28DIoLn/SHjHnBm7kA64glC+RmRXEnfCtIsT\r\nCI0rRnjtq7N72mjhwXdD/Xx2xIBM6DTuyMMeT1ayBJ5fJeDY7eq9lnEUdOe4\r\ngl4F9ytLmEBsj5DktM7BO4+JUl9f83ktqbcYrN/yrt6kJGT5IORMEmZWacKt\r\nZpw3Q8xP9IPd/nFwb3ir4mzcWDXoc5fP+09H4jbnTy/diOqAHarEsdB9+8cK\r\nPmbfV51R6XEylBmoM+WQLK6xAHbNO26NC78lzsuIgdvV3FaLyT3hPjk1u/q3\r\nIR8phXlAb5W3pFmHjMRrBwBP37sekrIF8gQ=\r\n=Qk1m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.8.20230206.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"^0.38.5\",\n      \"@cadl-lang/rest\": \"^0.38.0\",\n      \"@azure-tools/cadl-azure-core\": \"^0.24.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.8.20230206.1.tgz","_integrity":"sha512-AeqMtVGaQsE8GN9Xc/htfSuWQe9fsPnaWsNsm/DgFQU1r/YK3bl7cBih+AnfZZHwE/IFbDbxwDMsZhsyr6EaTg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.39.0","@cadl-lang/compiler":"~0.39.0","@azure-tools/cadl-dpg":"~0.25.0","@azure-tools/rlc-common":"1.0.0-beta.8","@azure-tools/cadl-azure-core":"~0.25.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"~0.39.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.15","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.6.6","@azure-tools/cadl-ranch-expect":"^0.1.15","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.8.20230206.1_1675706703027_0.8542380030122143","host":"s3://npm-registry-packages"}},"1.0.0-beta.9":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.9","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.9","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"b3b83fc5d8ffc91a51e16f2a1cf3e114dad8797a","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.9.tgz","fileCount":345,"integrity":"sha512-8BXeLlN+0k2WqrhrNodyQ8MibUeGosqNhrMhyaLI6Bw2WXTF2/t4ccUj3Aujoq0GnMScJPczko9R2ioTzIRsig==","signatures":[{"sig":"MEYCIQDpd67x7m1oKuMLnnUwgWIQkfjd6aT/ZPQbqEeptX/50wIhAPiEkJZROcOr5cMCP8GxRywD5cC3SXwwPqIUafVhXSth","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":949694,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj4nVwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9qA/+M9yJe1Y69DLPSvCD73u8uZ9bhuLKPKy2mpcNARnvj48eM6V5\r\nW8AGs3HNizgTVS5YV3OFv2jlBIrKbtEjSQZYAsuWj8g4sWwHg7UUZc1SUz54\r\n8c9bA8agQFyFGoLWYv4O5d9Y7ERtrAiDEURRlwjyYPAG4aBnZNjXnOMTX1WB\r\nyVSRNk0auYNpPXLgdvy62dpIPPyQL6rxNeeb4auOzxdv9hFCDLdJFxIA3KK2\r\nPnPoOqhphHlgucRMa8Rdz/q2O072zg4h9z+6VNQQ5Sd3WTRO/w0Yz6eRbxcR\r\nBRPN1wp5xKay3rvVijLBMhsQJ7t/M90t8nCFm7xZ6blwUhJxl839KlOQMGwD\r\nwN9Anw0Def0XL9CUZV9Cq66iQw0lj9ayQd+xowkup35Z2ZFJsCG7h67cPB9f\r\nvNiOJZNA+l8RuueCCqr4Ls4iq5wkuzJ9UPLxwoQwP7zEduznCjTmK4fPZpOn\r\nRwU7plXi/0lTEfFRplOYG6oKz3a5H3z/yUkeTjMJH2byEBVdZXySw2YlScit\r\nvPew7SVo1VA5hwSD1NK5uUZWnL7+toWIAtwR27boCvnSqx6BtU4x+EfgQr6f\r\n2Pld9wlOZlZ3UUdyIPdh5PppR7rjCjUCA4Rkar3ovas9cxNt+D94SlVbKLWT\r\nJmC7EFrOlKn+jeFWmWmK21IWsRsu7ODTMg0=\r\n=2Krc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.9.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.9.tgz","_integrity":"sha512-8BXeLlN+0k2WqrhrNodyQ8MibUeGosqNhrMhyaLI6Bw2WXTF2/t4ccUj3Aujoq0GnMScJPczko9R2ioTzIRsig==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.39.0","@cadl-lang/compiler":"~0.39.0","@azure-tools/cadl-dpg":"~0.25.0","@azure-tools/rlc-common":"1.0.0-beta.9","@azure-tools/cadl-azure-core":"~0.25.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"~0.39.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.15","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.6.6","@azure-tools/cadl-ranch-expect":"^0.1.15","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.9_1675785584189_0.13386171183301343","host":"s3://npm-registry-packages"}},"1.0.0-alpha.9.20230209.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.9.20230209.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.9.20230209.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"5b5a83220dcdcf342b21e07f53adde569765b80a","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.9.20230209.1.tgz","fileCount":345,"integrity":"sha512-cKTzTBuCXguK7Sw2M2G+GdJry00dJQLeP92v7/XOybUffLSjSRK8QekDY3++/NlWUAOSOlZeEB2CLvpQfE+CPw==","signatures":[{"sig":"MEYCIQC2lFlPPebDUHxaLsllWhrh+cU9dvVWhhqM0JS1BKF21gIhAOHfLsXFsoS5j+Am6JjMW0bY5leqZZVvM0XtMlzKrH4o","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":950780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5TYRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohGRAAj2vwDlQ1zoFepiRhVN8Mq8YZ7rEugHI9vT9r12QEri8CCi0B\r\n2kNMwOFDR1VSGTxedwJnr8kw3oiD/YzArDn+dT/NvkzcejmsVT9/2gWea2oy\r\nYI0Fp0xNpgDgjXpQAWnsdFeOp5MSoS1mChAIrvgDbUwMspL2+BZ6/cVh1FgT\r\nbNJGL3nyk30ljAXKD9gtgyCR7ccgkFDBYw6Mss6C+q5buK8OGK2q/3SPnvoB\r\n7QDHKs3Oa5CwDnOASUCx+qauuEgqCrXYnPne6KbVzvzjHil7i/BMc5Gs/oap\r\nATMDcrcWap03T44WD36kqkzSMSucSO1VND/6c0GBJjAxKcQjrAJYa9Aokz5p\r\nmraRCgzOgcZXsbZBZy3AcWKg1aRR3iXG5bdhYHkgyzf6Qv3KrpcNILiTmMfV\r\nAbzvndf8lB7ZuvGjlvZgjeZK8IKF9iSk3/PcV/18rW/S5dKhbbkcO5C84gdg\r\nXr+fzgpUfNeSZnlEZ2pnREW+fxlTd/oQWwTGJQn4AzA6eBVqlQA/5+2nWrq8\r\nJx4jY4ZrC2pl0ywBNh9vqPnhJz2z5MY4ZB0V9O63Ogz6S55MlsmRND1LzDzQ\r\nIWvBGuLk7/uBdcMR2RyVKA0aUG4l/FzsLA12N51beIe0cLfJKZUvrrv7og5f\r\nAkLU8iBWd7ffYQfKLO9vjmvEKKkZJI8ZTwc=\r\n=6bdo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.9.20230209.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) 0.38.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"~0.39.0\",\n      \"@cadl-lang/rest\": \"~0.39.0\",\n      \"@azure-tools/cadl-azure-core\": \"~0.25.0\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.9.20230209.1.tgz","_integrity":"sha512-cKTzTBuCXguK7Sw2M2G+GdJry00dJQLeP92v7/XOybUffLSjSRK8QekDY3++/NlWUAOSOlZeEB2CLvpQfE+CPw==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.39.0","@cadl-lang/compiler":"~0.39.0","@azure-tools/cadl-dpg":"~0.25.0","@azure-tools/rlc-common":"1.0.0-beta.9","@azure-tools/cadl-azure-core":"~0.25.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.2.0","@cadl-lang/versioning":"~0.39.0","@azure-rest/core-client":"^1.0.0","@azure-tools/cadl-ranch":"~0.2.15","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.6.6","@azure-tools/cadl-ranch-expect":"^0.1.15","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.9.20230209.1_1675965968928_0.2205824500048239","host":"s3://npm-registry-packages"}},"1.0.0-beta.10":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-beta.10","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-beta.10","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"116d8ea527e681c228548c65883ced479b1ca698","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-beta.10.tgz","fileCount":345,"integrity":"sha512-73BqQT7S+MyDy47Ussw6vtB4amFQjY97Kjvj8aE4OYnNKg8vmQOmLnslYEp57QkseXyj/Wen3kh74Q+dfv6iog==","signatures":[{"sig":"MEQCIE2XJ7/+QI11H8FKIHe/KgMpxSEdkHl0c6ZzYG/WifgPAiAwgiziXXMHlfofYhiO5PxSpz7/alVNpEtqQVmXQHoeMQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":961669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6wByACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgfQ//VguYcqtd+ySqtz+M8IZfFDkSy4Mc4i02BNXB0Yt1WBUgc2pg\r\npn9Kx0GNczg7SxIkJU/utkI8FbxFlb4s2EgG2KXOi3lBF6+GeJgq9K2iIn9m\r\nK2tjf3fwCaOnJoB4SP2DeaXp2Emh09t7HqbvX7F4weUFw5MtwiOjbpkbanij\r\n43YWGdOPeRgX+Wp5m2/7sV6mmUKG87rhV6odn61Qk0FBFS0GO6FcLdqaWqEt\r\n4JB3JJJsbxhYOcm8BPQB35RYdX10fpEe25i2siXO2bQ+3ZD0jdJSe1ZJ0fWX\r\nBBd/8t+zn+KKqQ1A2EHrMT5FnDhS2WCC/QYskxtvHRRQljoJuixkUcyipCZd\r\nVo8zT4MIm7Rmuc9/f3gs1VliWcXUTRR75H1h7+I4QKqqG+f0cYLnDzjprtCh\r\nSjMY5nbOvWyMTO6uMxfFskR+BdL+lLwp+39LosgirH1jHDfx1oQ1mdOYlak2\r\nQHMrWSxICP/PVyHQYcV/NTXfX8Z97uHdHcaloGa+oxHt+0w5qnANCivb5GhZ\r\nNCgIxgzvqScA5jvDYJDtBFlOL0FlNg3bFmwJn3pL/4C+YukMq5MmwpC6xxtB\r\nE5VVhKOPjzHhfXHn3Fc0v6uJjOFrV5aDgA+xuo+nnQic9zYz+M0MBOUQqage\r\nodT/9x/EINlvgcOvBTV/xSfdayeLbGXQrt8=\r\n=5x21\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-beta.10.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-beta.10.tgz","_integrity":"sha512-73BqQT7S+MyDy47Ussw6vtB4amFQjY97Kjvj8aE4OYnNKg8vmQOmLnslYEp57QkseXyj/Wen3kh74Q+dfv6iog==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.40.0","@cadl-lang/compiler":"~0.40.0","@azure-tools/cadl-dpg":"~0.26.0","@azure-tools/rlc-common":"1.0.0-beta.10","@azure-tools/cadl-azure-core":"~0.26.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.5.0","@cadl-lang/versioning":"~0.40.0","@azure-rest/core-client":"^1.1.0","@azure-tools/cadl-ranch":"~0.3.0","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.7.0","@azure-tools/cadl-ranch-expect":"^0.1.16","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-beta.10_1676345457757_0.2181583534234659","host":"s3://npm-registry-packages"}},"1.0.0-alpha.10.20230216.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.10.20230216.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.10.20230216.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"defa4e584f37e0bbabe177e5de80f95cb67ebd0f","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.10.20230216.1.tgz","fileCount":345,"integrity":"sha512-JPIc216qAoKihS6ZWWoX/t0iIzprBPhgM/HoogPULd8EfqRTbsW+tjJclDFKjtM+VMSKRtZ4GlFb7lnXLkuGVg==","signatures":[{"sig":"MEUCIQC9aQTLEokwTsrFNc6uILWHrmCOhtxTyraqJ1PTmJaJ+AIgLzGoJI2kMriKRFVNpMztEa20icTJXRkgv/yQN50u6Ks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":961681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7nDdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLtA/9Hltql2/MpnpRkZVmPqBcscj7JxauCgVkQH919ZZyLg6mGnnG\r\n8XnRB81vSdrqaq6BSnEDRfxSiZdswajUlEKJix4Q+oC18mhb4ymofGhgLjXU\r\n+e6Yu2SzMxAIMhhIZf+lIFRbsEvtFFUo4nvL67Y1PBBx16nXFGfHtMk5uWC+\r\nK12mt71whqo6OQoTH2LftvYUnT3rrBc75I2pUIOcOXhToQwHyUN/vUDRNv+5\r\nRAbDLtqVY4VLL/BJIWLKHG0DfSmx60F48XVRKwQVaARxjZV+6bwR6N49a1iJ\r\nNGQURlXhR7INBKVUUOHQDn/pIPQiJYhHKE6mE9R5Je9h1PE0hDkVpA8a5+oD\r\nOn/eb+equNr6urTfPVCW3KOA+QfggMgZQH+MPwlRH1rBdRMJr5fOzXxhJZaw\r\n8UD5fnTlFur/rAPCWRVCaXZgT8WdsCZEABvlgtXJBFqS6D/1oCeaTtSguNRs\r\njLx0IpKKyyEWCw0MOgfldsIV8vq0ZvrjM1bB1W0ucBYw+qYqW/2pO/v+I7Us\r\nAXapRdlBuiB5z6PkJAMlaqPVKXY0NnNP7Tlv8Z8ed7+0JTK8AFBCGOnxNCuX\r\n0XsqkU9T08djNL0ATR+szjaD/RGa8bIEcWbzPC49jE948BlEWeQOKsfNY8+C\r\n8/POST5uVLDD0fCQiRk/I0lOuEQ+IiX1fvE=\r\n=dQzF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.10.20230216.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) latest.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"latest\",\n      \"@cadl-lang/rest\": \"latest\",\n      \"@azure-tools/cadl-azure-core\": \"latest\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.10.20230216.1.tgz","_integrity":"sha512-JPIc216qAoKihS6ZWWoX/t0iIzprBPhgM/HoogPULd8EfqRTbsW+tjJclDFKjtM+VMSKRtZ4GlFb7lnXLkuGVg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.40.0","@cadl-lang/compiler":"~0.40.0","@azure-tools/cadl-dpg":"~0.26.0","@azure-tools/rlc-common":"1.0.0-beta.10","@azure-tools/cadl-azure-core":"~0.26.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.5.0","@cadl-lang/versioning":"~0.40.0","@azure-rest/core-client":"^1.1.0","@azure-tools/cadl-ranch":"~0.3.0","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.7.0","@azure-tools/cadl-ranch-expect":"^0.1.16","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.10.20230216.1_1676570844960_0.5336417185190765","host":"s3://npm-registry-packages"}},"1.0.0-alpha.10.20230217.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.10.20230217.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.10.20230217.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"e69f35a0e7b6cb321b27c21cb866c9094dac18d7","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.10.20230217.1.tgz","fileCount":353,"integrity":"sha512-oIWn1+MAuYF6zVJHPTvdzQpcVkSA3r+YLCTxcEF3AAuMg+Gb64Fb2CAZYLHYG4/N1fz4oLN2g5QYt+puHLBLgg==","signatures":[{"sig":"MEUCIHgFKvUPpY2nzDxGl6jOiubG26KC/sYftk8g4NSOV39QAiEA7HqpGAaTP32DWcczDkwanKyl0m8oLarFE7i4xN9s3Y0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":977935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj78G/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpimQ/+OORssGndpDzTbqWBarpqzOXY/x5x5H17yTWirA3LYkjE4dpY\r\nQvvDlnRXYTvhDATFgUXs9EKzJwpVGHy43TpyJPcKL1rcF7ndxRXLR0HGtvyY\r\nk3bLBWNgcYboz7Nn6CFPsvdiO1N1nseFvcsjrUUQ9pzKtEHjwD2MdZsbH7tV\r\nxCsS2SBzIBqQOgCvXbLCHn4gVwGo30/XoNv9JGmiaRVdVhJQkX7+HE6cmOiL\r\nh4odIlmsWlIfkJ84f7fxlkOJYbKG7ohxZeG5R/5GSKuymQ4o+hiyUUca92ML\r\nWVoBQtKAkv16SqdXXJNPGhIFB/2so1W7WAbiNAoUg64sOkwC9GZKIO+J9BFH\r\n5wLk7x2zivnrxte3EHzaz73WC5qdz2BiM1BLHqQd/yDwjZIUyqOzevHaEGid\r\nL5mUHnY3V7iIVEn1rjzfp/cswtE0qQO/2Lo3REgbdTpNZQxYLQccnhTiJpQv\r\nnsAfshVoMYPp+C0W0hbK2dR++7wuRReUIWQyo54e3QS5/b3zwaLD06slnuNF\r\nPImrCMDAV1e3mvG9iQjsdk6hd5vMHhxisAnLwxI26LEvKmcKzwbJDnrvdJnT\r\ny43B2+P+7XJJvZzzMRZm0ph2xzaI9SygK2QQ0IlElaPSVW5GOCggp4uDUl0U\r\nAvKYxKG/cv4aqLyGxCbZIXiWd9XW4psfJyE=\r\n=TADD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.10.20230217.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) latest.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"latest\",\n      \"@cadl-lang/rest\": \"latest\",\n      \"@azure-tools/cadl-azure-core\": \"latest\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.10.20230217.1.tgz","_integrity":"sha512-oIWn1+MAuYF6zVJHPTvdzQpcVkSA3r+YLCTxcEF3AAuMg+Gb64Fb2CAZYLHYG4/N1fz4oLN2g5QYt+puHLBLgg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.0","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.40.0","@cadl-lang/compiler":"~0.40.0","@azure-tools/cadl-dpg":"~0.26.0","@azure-tools/rlc-common":"1.0.0-beta.10","@azure-tools/cadl-azure-core":"~0.26.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.5.0","@cadl-lang/versioning":"~0.40.0","@azure-rest/core-client":"^1.1.0","@azure-tools/cadl-ranch":"~0.3.1","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.8.0","@azure-tools/cadl-ranch-expect":"^0.1.16","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.10.20230217.1_1676657087341_0.6655334547193412","host":"s3://npm-registry-packages"}},"1.0.0-alpha.10.20230222.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.10.20230222.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.10.20230222.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"cf8d439633143377acfae0ab39c363e8cda8e959","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.10.20230222.1.tgz","fileCount":353,"integrity":"sha512-LKvNgUZG01EaL0S3NfexT8Fntr4BIT7uzIj4KhuCezg6OU7LCjsKIDBG8BGHtjE6K4e5cF6KeONb9Mifbrz1Fg==","signatures":[{"sig":"MEYCIQDNf1R8RwJ3GGzRuLyYiVwWB57+0htKxe0Uj4yZ1zVT7QIhAOaxSGZL33zgNCCHGToJMNpKb4aPIk0H6M8HXdCDOBkL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9lyiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrR1RAAlsvv/jA1tVR+YMKR5yOzvlAr7Gwjd1RFiT+ASYvWIvplkqar\r\ncQCneyZ0HKSv/n1XUL5tFewoYZsdFnnvKgGMNO8b49kUHnEKQ4yXqXbAeG0k\r\nCgQFJ8DGiDDE4lbaIgd3nLRj15leeIxh6rau2l4SkMwwrQyfpHbgiJo5nr5/\r\n1nCqyraeJDERDeOaevOEwPdHCJ94KjuJ81kIgwh/dvcDoXtltkjEmDWu+g2y\r\nSTwv4/e04ZxsqmM+RWmRHkz6Lk9CjzXjPI8YEhOoPso7WCRPQkyLG7tfaqRz\r\n66kD/XX9y3dLSZRjUcjySbggtRLF30Vi6yG4dkCyILu2wRYGAmPacIfzf18D\r\nnOgPP3j8h/wPu3d/eVvZVAEOALrYrOEDj0lzjEqnv5AKiaM4BbBiuotws2pR\r\ncPD1a/xfuLwFSLqUVU4/f1ngeWg1R4/1U6f62dF/O3Lyq6V5e3sX+vlw3yOA\r\n0NraqW9WUZ/jCkGSwb/E410Ee0KUsjK9pktP00jrcZ1g40rWXeDfGJJ51Xhg\r\nqqnmFs7mc1sXN9/JJhTYyHg9yeExJQRsgFwpNo+IBdYiOqRSwaducvJmdB3L\r\nt4rcoFbW5P1wDY8bPwpZ8EyDrd0+yi9H1dsaLRm1LYRuR/S8tRpKz+4tE3SJ\r\ngcUWYq/ksyqmoK+ae+CsTLJp5LBOhYOcFXw=\r\n=kcT1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.10.20230222.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) latest.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"latest\",\n      \"@cadl-lang/rest\": \"latest\",\n      \"@azure-tools/cadl-azure-core\": \"latest\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.10.20230222.1.tgz","_integrity":"sha512-LKvNgUZG01EaL0S3NfexT8Fntr4BIT7uzIj4KhuCezg6OU7LCjsKIDBG8BGHtjE6K4e5cF6KeONb9Mifbrz1Fg==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.40.0","@cadl-lang/compiler":"~0.40.0","@azure-tools/cadl-dpg":"~0.26.0","@azure-tools/rlc-common":"1.0.0-beta.10","@azure-tools/cadl-azure-core":"~0.26.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.5.0","@cadl-lang/versioning":"~0.40.0","@azure-rest/core-client":"^1.1.0","@azure-tools/cadl-ranch":"~0.3.1","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.8.0","@azure-tools/cadl-ranch-expect":"^0.1.16","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.10.20230222.1_1677089954722_0.773004602430422","host":"s3://npm-registry-packages"}},"1.0.0-alpha.10.20230306.1":{"name":"@azure-tools/cadl-typescript","version":"1.0.0-alpha.10.20230306.1","author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","_id":"@azure-tools/cadl-typescript@1.0.0-alpha.10.20230306.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"dist":{"shasum":"b4ed345e6524277bba442681d10d90d33cf1e6c4","tarball":"https://registry.npmjs.org/@azure-tools/cadl-typescript/-/cadl-typescript-1.0.0-alpha.10.20230306.1.tgz","fileCount":353,"integrity":"sha512-ovntIlT2nILpEcNC5G7x+PP/G94MQseH68QSu8w1FMGN63Gy7qZdFd4NEzDXurWX+OOcBlFnUfZ5qQE8ZPStNA==","signatures":[{"sig":"MEUCIQDdQ7nA2XsWiOvqasRTsHfJxUzCiXddy2b3L+XWJooSnAIgSbZlJxuuOdLg6jVHJ1RlUua9PofHOnoo3hy/XCZcwoU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":985170,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBixJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlHw//Yuqh2IGu1u0XOkKNKQ2b1zuWMrrpbCj3fvGB1Qps10fneCf+\r\n9Z1Bjyl4pxmUnTEFjo9RwIiVV4h77QSx1Kbw/+zsjg57FVW0LkYgZzCJd8KM\r\nYj2fZBHSGltFAMQg3XVKTB2mTcEHxgM/Y8havdjBX/I/AGuSTF5PkWVtWP9f\r\nvOIMB5nkr4OC3O4Csx6lmpClP0ubkSw5BzDN6/6m3x5K3Aa1hVLHg2Fk36f3\r\nXr8nCe/J5EUrFMZ2KqVgfUdxak2OrOz3raGqZZnhYN5rj5jZc3T1NKSRn40B\r\neceygLMnvU5g4QQQA+m8GqmbMf823nBRJoyZSTXEISFKCC3Kfany4bdLxOlI\r\nt6oxl4hhCOLLb/6ALQqbsGeVGyDKsLrSxr3Jpna2peW2zBqU0JHFKjIbMRd4\r\n5XKF7FmhhZXvMcwLHEGq0VsWWiZlxTarvUc4tD3/GLa7TpAXICAuQ+h2ZbJI\r\nLbm4h41WanLZSZ84CwFd29x6pPNnwgDkjPF9srlJj2OB0gwTl3/80j9mtHej\r\nU1PY+j0ojx/JBPG20eZjEJ6ifyfP+Q/C9u8piW6sqOGOy6ySVh31hxGNG1dP\r\nQCDcO15FP7vpfAY15I0BcXMxcWLMe7bnuumCCFRnrnMHIXm6DBBVT5/amVYK\r\ny5EodFBVXjPcx7ohDpQ0n9ZuiThOGiDUqoE=\r\n=+RTf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","type":"module","_from":"file:azure-tools-cadl-typescript-1.0.0-alpha.10.20230306.1.tgz","mocha":{"loader":"ts-node/esm","extension":["ts"]},"types":"./dist/src/index.d.ts","readme":"# Introduction\n\nThis library is the Cadl typescript emitter for Rest Level Client. It take [Cadl](https://github.com/microsoft/cadl) as input, transform it into RLCModel, then call rlc-common library to generate the RLC code.\n\nOn a high level, the entire Rest Level Client generation process would be:\n\nCadl Input -> Cadl Compiler -> Cadl Program -> Transform RLCModel -> Call RLC Common library to Generate Code\n\nWithin the Transform RLCModel, it has the following stages:\n\nCadl Program + User Options -> Transform RLCModel Paths -> Transform RLCModel Options -> Transform RLCModel Schemas -> Transform RLCModel Response and Parameter Types -> call RLCCommon libraries to generate the code.\n\n# How to use\n\n## Prerequisite\n\nInstall [Node.js](https://nodejs.org/en/download/) 16 or above. (Verify by `node --version`)\n\nInstall [Cadl](https://github.com/microsoft/cadl/) latest.\n\n## Initialize Cadl Project\n\nFollow [Cadl Getting Started](https://github.com/microsoft/cadl/#using-node--npm) to initialize your Cadl project.\n\nMake sure `npx cadl compile .` runs correctly.\n\n## Add cadl-typescript\n\nMake sure the version of [cadl-typescript release](https://www.npmjs.com/package/@azure-tools/cadl-typescript) depends on the same version of \"@cadl-lang/compiler\" as in your Cadl project.\n\nModify `package.json`, add one line under `dependencies`:\n\n```diff\n    \"dependencies\": {\n      \"@cadl-lang/compiler\": \"latest\",\n      \"@cadl-lang/rest\": \"latest\",\n      \"@azure-tools/cadl-azure-core\": \"latest\",\n+      \"@azure-tools/cadl-typescript\": \"latest\"\n    },\n```\n\nRun `npm install` again to install `@azure-tools/cadl-typescript`.\n\nModify (or create) `cadl-project.yaml`, add one line under `emit`:\n\n```diff\nemit:\n+  - \"@azure-tools/cadl-typescript\"\n```\n\n## Modify cadl-project.yaml\n\nOne can further configure the SDK generated, using the emitter options on `@azure-tools/cadl-typescript`.\n\n```yaml\noptions:\n  \"@azure-tools/cadl-typescript\":\n    \"emitter-output-dir\": \"{output-dir}\"\n    packageDetails:\n      name: \"@azure-rest/confidential-ledger\"\n      description: \"Confidential Ledger Service\"\n```\n\n## Generate Typescript\n\nSame `npx cadl compile .` or `npx cadl compile . --outputPath=<target-folder>`.\n\nIf `outputPath` option is not provided, generated code will be under `cadl-output` folder.\n\n## Emitter Options\n\n### packageDetails\n\nProvide the metadata for `package.json`, `README.md` and user-agent information. And it's highly recommanded to set up this detail for your package.\n\n| Property    | Description                                                                                      |\n| ----------- | ------------------------------------------------------------------------------------------------ |\n| name        | the name of package.json file, usually start with `@azure-rest` if this is data-plane RLC client |\n| description | description used in package.json file                                                            |\n| version     | detailed version for your released package, the default vaule is `1.0.0-beta.1`                  |\n\n### title\n\nGenerally the codegen will leverage the title defined in `@service` decorator in Cadl to name our client. But if you'd like to override it you could config the `title` info.\n\n```yaml\ntitle: AnomalyDetectorRest\n```\n\n### generateMetadata\n\nTo indicate if the codegen needs to generate metadata files which includes `package.json`, `README.md` and `tsconfig.json` etc.\n\nBy default we'll enable the option but if you'd like to disable this feature you could set it as `false`.\n\n```yaml\ngenerateMetadata: false\n```\n\n### generateTest\n\nTo allow the codegen generating test sample files and updating testing configuration. And the default value is `true` and you could also turn it off as `false`.\n\n### includeShortcuts\n\nTo allow the codegen generating shortcut methods in client definition. This is an experimental feature so we disable it by default. If you want to try it just turn it on.\n\n```yaml\nincludeShortcuts: true\n```\n\n### azureSdkForJs\n\nThis is used to indicate your project is generated in [azure-sdk-for-js](https://github.com/Azure/azure-sdk-for-js) repo or not. If your package is located in that repo we'll leverage `dev-tool` to accelerate our building and testing, however if not we'll remove the dependency for that tool.\n\nUsually the released JS sdk will be put into azure-sdk-for-js so we enable this option by default.\n\n### addCredentials\n\nWe support two types of authentication: Azure Key Credential(AzureKey) and Token credential(AADToken), any other will need to be handled manually.\n\nThere are two ways to set up our credential details\n\n- To use `@useAuth` decorator in Cadl\n- To config in yaml file\n\nPlease notice defining in Cadl is recommanded and also has higher priority than second one.\n\nTo enable credential in `cadl-project.yaml` and we need to provide more details to let codegen know types.\n\n### credentialScopes\n\nIf we enable the option `addCredentials` and specify `credentialScopes` the details we would enable the AADToken authentication.\n\n```yaml\naddCredentials: true\ncredentialScopes: https://yourendpoint.azure.com/.default\n```\n\n### credentialKeyHeaderName\n\nIf we enable the option `addCredentials` and specify `credentialKeyHeaderName` the details we would enable the AzureKey authentication.\n\n```yaml\naddCredentials: true\ncredentialKeyHeaderName: Your-Subscription-Key\n```\n\n# Contributing\n\nIf you want to contribute on this project read the [contrubuting document](./CONTRIBUTING.md) for more details.\n","scripts":{"lint":"eslint src --ext .ts --max-warnings=0","test":"npm run unit-test && npm run integration-test-ci","build":"tsc -p .","clean":"rimraf ./dist ./cadl-output","format":"npm run -s prettier -- --write","lint:fix":"eslint src --fix --ext .ts","prettier":"prettier --config ./.prettierrc src/**/*.ts","unit-test":"cross-env TS_NODE_PROJECT=tsconfig.json mocha -r ts-node/register --experimental-specifier-resolution=node --experimental-modules=true './test/unit/**/*.spec.ts'","check:tree":"ts-node ./test/commands/check-clean-tree.ts","check-format":"npm run prettier -- --check","generate-and-run":"npm run generate-cadl-only && npm run integration-test:alone && npm run stop-test-server","stop-test-server":"npx cadl-ranch server stop","start-test-server":"mkdirp -p coverage && npx cadl-ranch serve ./node_modules/@azure-tools/cadl-ranch-specs/http  --coverageFile ./coverage/cadl-ranch-coverage-typescript.json","generate-cadl-only":"ts-node ./test/commands/gen-cadl-ranch.ts","integration-test-ci":"npm run start-test-server & npm run generate-and-run","integration-test:alone":"cross-env TS_NODE_PROJECT=tsconfig.test.json mocha -r ts-node/register --experimental-specifier-resolution=node --timeout 2000 ./test/integration/*.spec.ts"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"_resolved":"/mnt/vss/_work/1/packages/azure-tools-cadl-typescript-1.0.0-alpha.10.20230306.1.tgz","_integrity":"sha512-ovntIlT2nILpEcNC5G7x+PP/G94MQseH68QSu8w1FMGN63Gy7qZdFd4NEzDXurWX+OOcBlFnUfZ5qQE8ZPStNA==","deprecated":"This library is deprecated in favor of @azure-tools/typespec-ts","_npmVersion":"8.19.3","description":"An experimental CADL emitter for TypeScript RLC","directories":{},"_nodeVersion":"16.19.1","dependencies":{"tslib":"^2.3.1","fs-extra":"^11.1.0","prettier":"^2.6.1","ts-morph":"^15.1.0","@cadl-lang/rest":"~0.40.0","@cadl-lang/compiler":"~0.40.0","@azure-tools/cadl-dpg":"~0.26.0","@azure-tools/rlc-common":"1.0.0-beta.10","@azure-tools/cadl-azure-core":"~0.26.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^4.3.6","chalk":"^4.0.0","mocha":"^9.2.2","eslint":"^8.9.0","mkdirp":"^2.1.2","rimraf":"^3.0.2","ts-node":"^10.7.0","prettier":"~2.7.1","cross-env":"^7.0.3","typescript":"~4.8.0","@types/chai":"^4.3.1","@types/node":"^18.0.0","@types/mocha":"^9.1.1","@azure/core-lro":"^2.2.0","@types/fs-extra":"^9.0.13","@types/prettier":"^2.6.0","@azure/core-auth":"^1.3.2","@azure/core-paging":"^1.5.0","@cadl-lang/versioning":"~0.40.0","@azure-rest/core-client":"^1.1.0","@azure-tools/cadl-ranch":"~0.3.1","@azure/core-rest-pipeline":"^1.9.2","@typescript-eslint/parser":"^5.12.1","@azure-tools/cadl-ranch-specs":"~0.8.0","@azure-tools/cadl-ranch-expect":"^0.1.16","@typescript-eslint/eslint-plugin":"^5.12.1"},"_npmOperationalInternal":{"tmp":"tmp/cadl-typescript_1.0.0-alpha.10.20230306.1_1678126153263_0.009703380836743491","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-10-17T03:47:19.759Z","modified":"2024-07-10T01:28:11.047Z","1.0.0-beta.1":"2022-10-17T03:47:20.097Z","1.0.0-alpha.1.20221017.1":"2022-10-18T13:18:04.858Z","1.0.0-alpha.1.20221018.1":"2022-10-18T17:02:43.282Z","1.0.0-beta.2":"2022-10-19T11:59:41.140Z","1.0.0-alpha.2.20221019.3":"2022-10-19T17:03:30.009Z","1.0.0-alpha.2.20221020.1":"2022-10-20T17:14:44.775Z","1.0.0-alpha.2.20221026.1":"2022-10-26T17:21:02.224Z","1.0.0-alpha.2.20221028.1":"2022-10-28T17:02:55.901Z","1.0.0-alpha.2.20221031.1":"2022-10-31T17:02:51.150Z","1.0.0-alpha.2.20221101.1":"2022-11-01T17:13:37.508Z","1.0.0-alpha.2.20221103.1":"2022-11-03T17:02:28.092Z","1.0.0-alpha.2.20221107.1":"2022-11-07T18:04:26.470Z","1.0.0-alpha.2.20221108.1":"2022-11-09T05:37:12.848Z","1.0.0-alpha.2.20221111.1":"2022-11-11T18:01:01.190Z","1.0.0-alpha.3.20221115.1":"2022-11-15T18:00:54.957Z","1.0.0-beta.3":"2022-11-16T04:57:21.747Z","1.0.0-beta.4":"2022-11-16T15:13:55.434Z","1.0.0-alpha.4.20221116.2":"2022-11-17T03:40:25.854Z","1.0.0-alpha.4.20221121.1":"2022-11-21T18:06:08.079Z","1.0.0-alpha.4.20221122.1":"2022-11-22T18:06:06.671Z","1.0.0-alpha.4.20221124.1":"2022-11-24T17:57:34.329Z","1.0.0-alpha.4.20221125.1":"2022-11-25T18:01:28.509Z","1.0.0-beta.5":"2022-11-30T06:23:56.031Z","1.0.0-alpha.5.20221130.1":"2022-11-30T18:02:25.515Z","1.0.0-alpha.5.20221201.1":"2022-12-01T18:04:53.185Z","1.0.0-alpha.5.20221202.1":"2022-12-02T18:06:08.106Z","1.0.0-alpha.5.20221205.1":"2022-12-05T17:59:23.806Z","1.0.0-alpha.5.20221207.1":"2022-12-07T18:02:20.377Z","1.0.0-beta.6":"2022-12-14T05:33:39.048Z","1.0.0-alpha.6.20221215.1":"2022-12-16T05:55:12.320Z","1.0.0-alpha.6.20221219.1":"2022-12-19T18:01:44.768Z","1.0.0-beta.7":"2022-12-21T08:26:36.410Z","1.0.0-alpha.7.20221221.1":"2022-12-21T18:00:52.369Z","1.0.0-alpha.7.20221223.1":"2022-12-23T17:57:51.132Z","1.0.0-alpha.7.20221226.1":"2022-12-26T17:58:35.474Z","1.0.0-alpha.8.20230109.1":"2023-01-09T18:03:15.014Z","1.0.0-beta.8":"2023-01-10T03:24:24.859Z","1.0.0-alpha.8.20230111.1":"2023-01-11T18:03:25.642Z","1.0.0-alpha.8.20230117.1":"2023-01-17T18:04:33.453Z","1.0.0-alpha.8.20230120.1":"2023-01-20T17:59:40.923Z","1.0.0-alpha.8.20230127.1":"2023-01-27T18:16:42.084Z","1.0.0-alpha.8.20230130.1":"2023-01-30T18:04:17.011Z","1.0.0-alpha.8.20230203.1":"2023-02-03T18:04:45.034Z","1.0.0-alpha.8.20230206.1":"2023-02-06T18:05:03.422Z","1.0.0-beta.9":"2023-02-07T15:59:44.401Z","1.0.0-alpha.9.20230209.1":"2023-02-09T18:06:09.255Z","1.0.0-beta.10":"2023-02-14T03:30:58.001Z","1.0.0-alpha.10.20230216.1":"2023-02-16T18:07:25.218Z","1.0.0-alpha.10.20230217.1":"2023-02-17T18:04:47.646Z","1.0.0-alpha.10.20230222.1":"2023-02-22T18:19:14.911Z","1.0.0-alpha.10.20230306.1":"2023-03-06T18:09:13.448Z"},"author":{"name":"Jose Heredia","email":"joheredi@microsoft.com"},"license":"MIT","description":"An experimental CADL emitter for TypeScript RLC","maintainers":[{"email":"xidi@microsoft.com","name":"azure-powershell"},{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"azure-sdk-npmjs@microsoft.com","name":"azure-sdk"}],"readme":"","readmeFilename":""}