Skip to main content
All types are exported from @libra/sdk. The built .d.ts files have no third-party type dependencies, so consumers need neither skipLibCheck nor Svelte/i18next in their dependencies.

Where each type is used

The SDK’s own README is currently incomplete on two of these types, so code written from it can miss real cases:
  • It omits LibraAuthErrorReason from the export list and prints only three of the five reasons. A switch on error.reason written from the README falls through on embedded_auth_failed and account_in_use.
  • Its printed ResearchSourceId union omits 'web_search', even though the same README excludes that member from ExternalDocument.source. web_search is valid in init({ researchSources }) and as a CitationClickEventData.source; it is excluded only from ExternalDocument.source.
The unions above are taken from the SDK source (packages/sdk/src/lib/types.ts), not from the README.