vibezcheck 0.4.2 → 0.5.3
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.
- package/LICENSE +21 -21
- package/README.md +249 -273
- package/bin/vibezcheck.js +4 -4
- package/dist/ai-sdk/index.d.mts +28 -59
- package/dist/ai-sdk/index.d.ts +28 -59
- package/dist/ai-sdk/index.js +307 -69
- package/dist/ai-sdk/index.js.map +1 -1
- package/dist/ai-sdk/index.mjs +307 -69
- package/dist/ai-sdk/index.mjs.map +1 -1
- package/dist/ai-sdk/middleware.d.mts +15 -0
- package/dist/ai-sdk/middleware.d.ts +15 -0
- package/dist/ai-sdk/middleware.js +1433 -0
- package/dist/ai-sdk/middleware.js.map +1 -0
- package/dist/ai-sdk/middleware.mjs +1396 -0
- package/dist/ai-sdk/middleware.mjs.map +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs.map +1 -1
- package/dist/billing/index.d.mts +90 -1
- package/dist/billing/index.d.ts +90 -1
- package/dist/billing/index.js +1542 -2
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/index.mjs +1537 -1
- package/dist/billing/index.mjs.map +1 -1
- package/dist/cli/index.js +59 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +59 -7
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{client-ynfWcHX6.d.ts → client-BORmJy8s.d.ts} +1 -1
- package/dist/{client-w_hWhQ6g.d.mts → client-CbuXmoXz.d.mts} +1 -1
- package/dist/compat/stripe-meter.d.mts +21 -0
- package/dist/compat/stripe-meter.d.ts +21 -0
- package/dist/compat/stripe-meter.js +1451 -0
- package/dist/compat/stripe-meter.js.map +1 -0
- package/dist/compat/stripe-meter.mjs +1414 -0
- package/dist/compat/stripe-meter.mjs.map +1 -0
- package/dist/compat/stripe-provider.d.mts +34 -0
- package/dist/compat/stripe-provider.d.ts +34 -0
- package/dist/compat/stripe-provider.js +1620 -0
- package/dist/compat/stripe-provider.js.map +1 -0
- package/dist/compat/stripe-provider.mjs +1587 -0
- package/dist/compat/stripe-provider.mjs.map +1 -0
- package/dist/compat/token-meter.d.mts +28 -0
- package/dist/compat/token-meter.d.ts +28 -0
- package/dist/compat/token-meter.js +1320 -0
- package/dist/compat/token-meter.js.map +1 -0
- package/dist/compat/token-meter.mjs +1283 -0
- package/dist/compat/token-meter.mjs.map +1 -0
- package/dist/customers/index.d.mts +1 -1
- package/dist/customers/index.d.ts +1 -1
- package/dist/customers/index.js.map +1 -1
- package/dist/customers/index.mjs.map +1 -1
- package/dist/index.d.mts +25 -11
- package/dist/index.d.ts +25 -11
- package/dist/index.js +810 -72
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +798 -72
- package/dist/index.mjs.map +1 -1
- package/dist/meter/index.d.mts +2 -2
- package/dist/meter/index.d.ts +2 -2
- package/dist/meter/index.js +176 -42
- package/dist/meter/index.js.map +1 -1
- package/dist/meter/index.mjs +176 -42
- package/dist/meter/index.mjs.map +1 -1
- package/dist/pricing/index.d.mts +15 -4
- package/dist/pricing/index.d.ts +15 -4
- package/dist/pricing/index.js +165 -29
- package/dist/pricing/index.js.map +1 -1
- package/dist/pricing/index.mjs +164 -29
- package/dist/pricing/index.mjs.map +1 -1
- package/dist/react/index.d.mts +46 -2
- package/dist/react/index.d.ts +46 -2
- package/dist/react/index.js +471 -29
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +469 -29
- package/dist/react/index.mjs.map +1 -1
- package/dist/{types-Mozk4-Mr.d.mts → types-6P71CXAD.d.mts} +16 -6
- package/dist/{types-Mozk4-Mr.d.ts → types-6P71CXAD.d.ts} +16 -6
- package/dist/with-billing-Bj6Ya_Iy.d.ts +49 -0
- package/dist/with-billing-DndWGxL8.d.mts +49 -0
- package/package.json +35 -10
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { W as WithBillingOptions } from '../with-billing-DndWGxL8.mjs';
|
|
2
|
+
import '../types-6P71CXAD.mjs';
|
|
3
|
+
import 'stripe';
|
|
4
|
+
import '../client-CbuXmoXz.mjs';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 100% Drop-In Replacement for @stripe/ai-sdk/meter
|
|
8
|
+
* Seamlessly supports LanguageModel V1, V2, V3, V4, and V5+
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface AIMeterConfig {
|
|
12
|
+
stripeApiKey: string;
|
|
13
|
+
stripeCustomerId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Wraps a Vercel AI SDK language model to automatically report usage to Stripe meter events.
|
|
17
|
+
* Enhanced to support all specification versions (V1, V2, V3, V4, V5+) without runtime errors.
|
|
18
|
+
*/
|
|
19
|
+
declare function meteredModel<T extends object>(model: T, arg2?: string | WithBillingOptions, arg3?: string | WithBillingOptions, arg4?: WithBillingOptions): T;
|
|
20
|
+
|
|
21
|
+
export { type AIMeterConfig, meteredModel as default, meteredModel };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { W as WithBillingOptions } from '../with-billing-Bj6Ya_Iy.js';
|
|
2
|
+
import '../types-6P71CXAD.js';
|
|
3
|
+
import 'stripe';
|
|
4
|
+
import '../client-BORmJy8s.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 100% Drop-In Replacement for @stripe/ai-sdk/meter
|
|
8
|
+
* Seamlessly supports LanguageModel V1, V2, V3, V4, and V5+
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
interface AIMeterConfig {
|
|
12
|
+
stripeApiKey: string;
|
|
13
|
+
stripeCustomerId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Wraps a Vercel AI SDK language model to automatically report usage to Stripe meter events.
|
|
17
|
+
* Enhanced to support all specification versions (V1, V2, V3, V4, V5+) without runtime errors.
|
|
18
|
+
*/
|
|
19
|
+
declare function meteredModel<T extends object>(model: T, arg2?: string | WithBillingOptions, arg3?: string | WithBillingOptions, arg4?: WithBillingOptions): T;
|
|
20
|
+
|
|
21
|
+
export { type AIMeterConfig, meteredModel as default, meteredModel };
|