@usagetap/sdk 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +1058 -863
  2. package/dist/adapters/anthropic.cjs +990 -24
  3. package/dist/adapters/anthropic.cjs.map +1 -1
  4. package/dist/adapters/anthropic.d.cts +45 -3
  5. package/dist/adapters/anthropic.d.ts +45 -3
  6. package/dist/adapters/anthropic.mjs +990 -25
  7. package/dist/adapters/anthropic.mjs.map +1 -1
  8. package/dist/adapters/openai.cjs +1164 -44
  9. package/dist/adapters/openai.cjs.map +1 -1
  10. package/dist/adapters/openai.d.cts +46 -3
  11. package/dist/adapters/openai.d.ts +46 -3
  12. package/dist/adapters/openai.mjs +1164 -45
  13. package/dist/adapters/openai.mjs.map +1 -1
  14. package/dist/adapters/openrouter.cjs +3899 -22
  15. package/dist/adapters/openrouter.cjs.map +1 -1
  16. package/dist/adapters/openrouter.d.cts +6 -3
  17. package/dist/adapters/openrouter.d.ts +6 -3
  18. package/dist/adapters/openrouter.mjs +3897 -23
  19. package/dist/adapters/openrouter.mjs.map +1 -1
  20. package/dist/anthropic/index.cjs +990 -24
  21. package/dist/anthropic/index.cjs.map +1 -1
  22. package/dist/anthropic/index.d.cts +2 -2
  23. package/dist/anthropic/index.d.ts +2 -2
  24. package/dist/anthropic/index.mjs +990 -25
  25. package/dist/anthropic/index.mjs.map +1 -1
  26. package/dist/client-CExQ8e1T.d.cts +1225 -0
  27. package/dist/client-CExQ8e1T.d.ts +1225 -0
  28. package/dist/express/index.cjs +421 -29
  29. package/dist/express/index.cjs.map +1 -1
  30. package/dist/express/index.d.cts +2 -2
  31. package/dist/express/index.d.ts +2 -2
  32. package/dist/express/index.mjs +421 -29
  33. package/dist/express/index.mjs.map +1 -1
  34. package/dist/index.cjs +680 -15
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +5 -3
  37. package/dist/index.d.ts +5 -3
  38. package/dist/index.mjs +680 -15
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/openai/index.cjs +1165 -45
  41. package/dist/openai/index.cjs.map +1 -1
  42. package/dist/openai/index.d.cts +2 -2
  43. package/dist/openai/index.d.ts +2 -2
  44. package/dist/openai/index.mjs +1165 -46
  45. package/dist/openai/index.mjs.map +1 -1
  46. package/dist/openrouter/index.cjs +1182 -47
  47. package/dist/openrouter/index.cjs.map +1 -1
  48. package/dist/openrouter/index.d.cts +3 -3
  49. package/dist/openrouter/index.d.ts +3 -3
  50. package/dist/openrouter/index.mjs +1180 -46
  51. package/dist/openrouter/index.mjs.map +1 -1
  52. package/dist/react/index.cjs +19 -1
  53. package/dist/react/index.cjs.map +1 -1
  54. package/dist/react/index.d.cts +17 -4
  55. package/dist/react/index.d.ts +17 -4
  56. package/dist/react/index.mjs +19 -1
  57. package/dist/react/index.mjs.map +1 -1
  58. package/package.json +84 -84
  59. package/dist/client-BD8O2J8Z.d.cts +0 -668
  60. package/dist/client-BD8O2J8Z.d.ts +0 -668
@@ -1,4 +1,4 @@
1
- export { CompressionWrappedOpenAI, OpenAICompressionOptions, WithMeteringOpenAIOptions, WrapOpenAIOptions, WrappedOpenAI, withCompression, withMetering, wrapOpenAI } from '../adapters/openai.cjs';
2
- export { OpenRouterAdapterInit, createOpenRouterAdapter } from '../adapters/openrouter.cjs';
1
+ export { CompressionWrappedOpenAI, MeteredOpenAISamplingOptions, OpenAICompressionOptions, OpenAISamplingOptions, SamplingWrappedOpenAI, WithMeteringOpenAIOptions, WrapOpenAIOptions, WrappedOpenAI, withCompression } from '../adapters/openai.cjs';
2
+ export { OpenRouterAdapterInit, createOpenRouterAdapter, withMetering, withSampling, wrapOpenAI } from '../adapters/openrouter.cjs';
3
3
  import 'openai';
4
- import '../client-BD8O2J8Z.cjs';
4
+ import '../client-CExQ8e1T.cjs';
@@ -1,4 +1,4 @@
1
- export { CompressionWrappedOpenAI, OpenAICompressionOptions, WithMeteringOpenAIOptions, WrapOpenAIOptions, WrappedOpenAI, withCompression, withMetering, wrapOpenAI } from '../adapters/openai.js';
2
- export { OpenRouterAdapterInit, createOpenRouterAdapter } from '../adapters/openrouter.js';
1
+ export { CompressionWrappedOpenAI, MeteredOpenAISamplingOptions, OpenAICompressionOptions, OpenAISamplingOptions, SamplingWrappedOpenAI, WithMeteringOpenAIOptions, WrapOpenAIOptions, WrappedOpenAI, withCompression } from '../adapters/openai.js';
2
+ export { OpenRouterAdapterInit, createOpenRouterAdapter, withMetering, withSampling, wrapOpenAI } from '../adapters/openrouter.js';
3
3
  import 'openai';
4
- import '../client-BD8O2J8Z.js';
4
+ import '../client-CExQ8e1T.js';