These examples mirror Python SDK coverage, adapted for TypeScript async APIs.
npm install
export ONCEONLY_API_KEY="once_live_..."general/basic_check_lock.tsgeneral/webhook_dedup.tsgeneral/with_ttl.tsgeneral/with_metadata.tsgeneral/usage_stats.tsgeneral/fail_open_demo.tsgeneral/decorator_basic.tsgeneral/decorator_sync.tsgeneral/decorator_async.ts
ai/ai_simple.tsai/run_and_wait.tsai/poll_status.tsai/get_result.tsai/run_debug_timeline.tsai/run_debug_failure.tsai/agent_action_local.tsai/governance.tsai/tool_permissions.tsai/budget_limits.tsai/policy_templates.tsai/kill_switch.tsai/audit_logs.tsai/metrics_monitoring.tsai/agent_full_flow_no_onceonly.tsai/agent_full_flow_onceonly.tsai/langchain_tool_ai_lease.ts
Use built-in npm example scripts:
npm run example:basic
npm run example:debug:timeline
npm run example:debug:failure