Changelog
Version 2.0.0-beta.0
(preview release)
- Direct Widget Integration - New iframe-based integration option with JWT token authentication
- Documentation Restructure - SDK documentation reorganized under "SDKs" menu
- Expanded KYC Documentation - Complete verification status and rejection label reference
- KYT Webhook Documentation - Full wallet verification webhook payload documentation
Migration Notes
The TypeScript SDK API remains unchanged. The Direct Widget provides an alternative integration path:
- Use
generateKycSdkInitTokenGraphQL mutation to obtain a JWT token - Embed the widget iframe with URL query parameters
- No npm package installation required for Direct Widget integration
Version 1.1.6
(no breaking changes)
- Moved docs to docs.agiodigital.com
Version 1.1.5
(no breaking changes)
- devDep: generated updated types for
ClientUserQueryResult,ClientQueryResultandClientUserSubscriptionResult(doesn't affect SDK) - devDep: ability to run npm scripts codegen sub-commands
yarn codegen:download,yarn codegen:generare,yarn codegen(doesn't affect SDK) - devDep: import types with type keyword. ex:
import type { foo } from 'bar'(doesn't affect SDK) - SDK: it is recommended to use type
SdkConfiginstead ofConfigfor better intellisense support.Configis marked as deprecated - SDK: added new properties to
SdkConfiginterface. Use these to initialize the SDK widget with selected language, KYC/KYB, address disabled alternative KYC flow
ts
const config: SdkConfig = {
// ...other properties
/**
* @description 2-letter ISO 639-1 language code, case-insensitive
* @example "en"
* @example "pt-BR"
*/
lang?: string
/**
* @description disable wallet address input field, preventing user from changing it
* @example true
*/
walletAddressDisabled?: boolean;
/**
* @description use KYB flow instead of KYC
* @example true
*/
kyb?: boolean;
/**
* @description use alternative KYC level
* In case a user can't provide a valid ID document (passport), the alternative KYC level can be used
* @example false
*/
useAlternativeKycLevel?: boolean;
}