{"_id":"@astrada.co/card-enrollment-sdk","_rev":"3-438b57d73cbb115cc3e45f32efbaeeb0","name":"@astrada.co/card-enrollment-sdk","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@astrada.co/card-enrollment-sdk","version":"1.0.0","author":{"name":"Astrada"},"license":"MIT","_id":"@astrada.co/card-enrollment-sdk@1.0.0","maintainers":[{"name":"astradaco","email":"cloud.operations@astrada.co"},{"name":"hmbarros-astrada","email":"hugo.barros@astrada.co"}],"homepage":"https://github.com/FidelLimited/card-enrollment-sdk/tree/main/types-pkg#readme","bugs":{"url":"https://github.com/FidelLimited/card-enrollment-sdk/issues"},"dist":{"shasum":"bf97127474b0f36ef356a8971b3ddee6574bb50a","tarball":"https://registry.npmjs.org/@astrada.co/card-enrollment-sdk/-/card-enrollment-sdk-1.0.0.tgz","fileCount":4,"integrity":"sha512-qrLJnOX90Aog0MMigJ7YiXjuSDt6UD9NfabzfKQd55ce6nr3NoAEElkDJoCdyqTYEO7bFKcKc++lvVYPoztznA==","signatures":[{"sig":"MEQCIDFUxo1VnQitO3qF6FcQ191MG7omkK3DMMC0TXyTtIwGAiBfBhZNuQDUvcAWhUH/N+IQHV/9+ZTqklSTT8IlY5jm7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16298},"types":"./dist/card-enrollment-sdk.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/card-enrollment-sdk.d.ts"},"./unified":{"types":"./dist/unified-enrollment-sdk.d.ts"}},"gitHead":"99cf85085c9c35e4cc6dad742aeb44c317abf391","scripts":{"build":"rm -rf dist && tsc && cp dist/iframe-with-sdk-src/public-api.d.ts dist/card-enrollment-sdk.d.ts && cp dist/unified-sdk/loader/public-api.d.ts dist/unified-enrollment-sdk.d.ts && rm -rf dist/iframe-with-sdk-src dist/unified-sdk","prepublishOnly":"yarn build"},"typings":"./dist/card-enrollment-sdk.d.ts","_npmUser":{"name":"astradaco","email":"cloud.operations@astrada.co"},"repository":{"url":"git+https://github.com/FidelLimited/card-enrollment-sdk.git","type":"git","directory":"types-pkg"},"_npmVersion":"11.16.0","description":"TypeScript types for the Astrada Card Enrollment SDK and Unified Enrollment SDK. Types only — the runtime loads from sdk.astrada.co via a <script> tag.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"unified":["./dist/unified-enrollment-sdk.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/card-enrollment-sdk_1.0.0_1785282254852_0.3744281296592691","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@astrada.co/card-enrollment-sdk","version":"1.0.1","author":{"name":"Astrada"},"license":"MIT","_id":"@astrada.co/card-enrollment-sdk@1.0.1","maintainers":[{"name":"astradaco","email":"cloud.operations@astrada.co"},{"name":"hmbarros-astrada","email":"hugo.barros@astrada.co"}],"homepage":"https://github.com/FidelLimited/card-enrollment-sdk/tree/main/types-pkg#readme","bugs":{"url":"https://github.com/FidelLimited/card-enrollment-sdk/issues"},"dist":{"shasum":"4d53e083e0c3ef7d1339c6b157fb5fe74ff42acd","tarball":"https://registry.npmjs.org/@astrada.co/card-enrollment-sdk/-/card-enrollment-sdk-1.0.1.tgz","fileCount":4,"integrity":"sha512-dvvRCUty+1QdD6jdtJA0dAIxe3kpscpN6D3aYK26B/kG2IppNRuK3ejQf/VxQMyL0Gl5DnGY6ptZQKKv711EcQ==","signatures":[{"sig":"MEYCIQDRdl/HK7Be+ap+Km3CgYtamoJoDs/oFc5S5jPJUKn2CgIhAObEN6EWL42O05Oyitm5LC5vgrGJujJw56M1nSKP09pk","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18245},"types":"./dist/card-enrollment-sdk.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/card-enrollment-sdk.d.ts"},"./unified":{"types":"./dist/unified-enrollment-sdk.d.ts"}},"gitHead":"44189351a3cffd02eb3691590802efb5fd36973a","scripts":{"build":"rm -rf dist && tsc && cp dist/iframe-with-sdk-src/public-api.d.ts dist/card-enrollment-sdk.d.ts && cp dist/unified-sdk/loader/public-api.d.ts dist/unified-enrollment-sdk.d.ts && rm -rf dist/iframe-with-sdk-src dist/unified-sdk","prepublishOnly":"yarn build"},"typings":"./dist/card-enrollment-sdk.d.ts","_npmUser":{"name":"astradaco","email":"cloud.operations@astrada.co"},"repository":{"url":"git+https://github.com/FidelLimited/card-enrollment-sdk.git","type":"git","directory":"types-pkg"},"_npmVersion":"11.16.0","description":"TypeScript types for the Astrada Card Enrollment SDK and Unified Enrollment SDK. Types only; the runtime loads from sdk.astrada.co via a <script> tag.","directories":{},"_nodeVersion":"24.18.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"unified":["./dist/unified-enrollment-sdk.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/card-enrollment-sdk_1.0.1_1785289481102_0.8473409560134662","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"_id":"@astrada.co/card-enrollment-sdk@1.1.0","bugs":{"url":"https://github.com/FidelLimited/card-enrollment-sdk/issues"},"dist":{"shasum":"66ff71af020f67a7562f3d3966ae8a84513b6dd7","tarball":"https://registry.npmjs.org/@astrada.co/card-enrollment-sdk/-/card-enrollment-sdk-1.1.0.tgz","fileCount":4,"integrity":"sha512-VrCi5e6VplZXQDGF3Od9TBG3Oh8d9phL/eJ1axQcptP0BuJhjKz4mQJkHbeiUV0AxzApIUy0xS376xSt1v+8CA==","signatures":[{"sig":"MEQCIEV1jLj+BaC8S7qplMAWdxfrPBMyAHzgbcmqzoboTGNvAiAvlo0h3ba+0q98SH1+iUupXNM8MNPJ1jJwmP9LdK0QQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAbbL34h2XFNF6RYuZ26yEhVON+26GfHydiLSSMjmcueAiEA0eXWh1YyHCOaaXBDffhxaGq1S7mRNcuhF6jV1P9VERc="}],"unpackedSize":23200},"name":"@astrada.co/card-enrollment-sdk","types":"./dist/card-enrollment-sdk.d.ts","author":{"name":"Astrada"},"engines":{"node":">=20"},"exports":{".":{"types":"./dist/card-enrollment-sdk.d.ts"},"./unified":{"types":"./dist/unified-enrollment-sdk.d.ts"}},"gitHead":"4259818a3f9ffd052b1a0d50e94d00c023a558cd","license":"MIT","scripts":{"build":"rm -rf dist && tsc && cp dist/iframe-with-sdk-src/public-api.d.ts dist/card-enrollment-sdk.d.ts && cp dist/unified-sdk/loader/public-api.d.ts dist/unified-enrollment-sdk.d.ts && rm -rf dist/iframe-with-sdk-src dist/unified-sdk","prepublishOnly":"yarn build"},"typings":"./dist/card-enrollment-sdk.d.ts","version":"1.1.0","_npmUser":{"name":"astradaco","email":"cloud.operations@astrada.co"},"homepage":"https://github.com/FidelLimited/card-enrollment-sdk/tree/main/types-pkg#readme","repository":{"url":"git+https://github.com/FidelLimited/card-enrollment-sdk.git","type":"git","directory":"types-pkg"},"_npmVersion":"11.19.0","description":"TypeScript types for the Astrada Card Enrollment SDK and Unified Enrollment SDK. Types only; the runtime loads from sdk.astrada.co via a <script> tag.","directories":{},"maintainers":[{"name":"astradaco","email":"cloud.operations@astrada.co"},{"name":"hmbarros-astrada","email":"hugo.barros@astrada.co"}],"_nodeVersion":"24.20.0","publishConfig":{"access":"public"},"typesVersions":{"*":{"unified":["./dist/unified-enrollment-sdk.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/card-enrollment-sdk_1.1.0_1789157922426_0.6740131339093018"}}},"time":{"created":"2026-07-28T23:44:14.679Z","modified":"2026-09-11T20:18:42.721Z","1.0.0":"2026-07-28T23:44:14.988Z","1.0.1":"2026-07-29T01:44:41.233Z","1.1.0":"2026-09-11T20:18:42.526Z"},"bugs":{"url":"https://github.com/FidelLimited/card-enrollment-sdk/issues"},"author":{"name":"Astrada"},"license":"MIT","homepage":"https://github.com/FidelLimited/card-enrollment-sdk/tree/main/types-pkg#readme","repository":{"url":"git+https://github.com/FidelLimited/card-enrollment-sdk.git","type":"git","directory":"types-pkg"},"description":"TypeScript types for the Astrada Card Enrollment SDK and Unified Enrollment SDK. Types only; the runtime loads from sdk.astrada.co via a <script> tag.","maintainers":[{"name":"astradaco","email":"cloud.operations@astrada.co"},{"name":"hmbarros-astrada","email":"hugo.barros@astrada.co"}],"readme":"# @astrada.co/card-enrollment-sdk\n\nOfficial TypeScript types for the Astrada **Card Enrollment SDK** and **Unified\nEnrollment SDK**.\n\nThese SDKs load at runtime from a hosted `<script>` tag (they are not npm\nruntime packages), so this package ships **types only**. Install it as a dev\ndependency to get a typed `window.CardEnrollmentSdk` / `window.UnifiedEnrollmentSdk`\nand typed config + callback payloads.\n\n```sh\nnpm install --save-dev @astrada.co/card-enrollment-sdk\n# or\nyarn add --dev @astrada.co/card-enrollment-sdk\n```\n\n## Card Enrollment SDK (legacy)\n\n```ts\nimport type {\n  CardEnrollmentSdkConfig,\n  EnrollmentSuccess,\n  OnErrorPayload,\n} from '@astrada.co/card-enrollment-sdk';\n\n// `window.CardEnrollmentSdk` is typed automatically once the package is imported.\nconst config: CardEnrollmentSdkConfig = {\n  companyName: 'Acme',\n  subaccountId: '…',\n  getAccessToken: () => fetchToken(),\n  onSuccess: (data: EnrollmentSuccess) => {\n    console.log(data.cardId, data.enrollmentGuidance.availableEnrollmentMethods);\n  },\n  onError: (data: OnErrorPayload) => {\n    console.log(data.type, data.verificationId);\n  },\n};\n\nwindow.CardEnrollmentSdk.openForm(config);\n```\n\n## Unified Enrollment SDK\n\n```ts\nimport type {\n  UnifiedEnrollmentSdkConfig,\n  SdkEvent,\n  EnrollmentSuccess,\n} from '@astrada.co/card-enrollment-sdk/unified';\n\nconst config: UnifiedEnrollmentSdkConfig = {\n  companyName: 'Acme',\n  subaccountId: '…',\n  getAccessToken: () => fetchToken(),\n  onEvent: (event: SdkEvent) => {\n    if (event.type === 'card-enrolled') console.log(event.cardId);\n  },\n  onSuccess: (data: EnrollmentSuccess) => {\n    console.log(Object.values(data.cards));\n  },\n};\n\nwindow.UnifiedEnrollmentSdk.open(config);\n```\n\n> The `./unified` entry tracks a pre-GA SDK and its types may change ahead of a\n> stable release; the top-level (Card Enrollment SDK) types are stable.\n\n## Versioning\n\nThese types are generated from the SDK source and checked against it in CI, so\nthey match what the runtime delivers. See\nthe SDK docs at <https://docs.astrada.co> for full integration guides.\n","readmeFilename":"README.md"}