@barndoor-ai/sdk 2.15.0-dev.g7e00668 → 2.15.0-dev.gd3be2cf

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.
@@ -25,6 +25,8 @@ import type { LongContextTier } from './LongContextTier.js';
25
25
  *
26
26
  * * field absent entirely → backend predates this annotation
27
27
  * * `source == "none"` → unpriced, bills at $0 because the rate is *unknown*
28
+ * * `source == "provider_reported"` → bills what the provider reports per
29
+ * request (BCP-4543, OpenRouter). No rates: the price varies per request.
28
30
  * * `source == "not_metered"` → bills at $0 *by decision* (BCP-3876): the
29
31
  * provider's `billing_mode` is `subscription`, so no rate is consulted.
30
32
  * Rates are `None` here too, but for the opposite reason, and the UI must
@@ -73,7 +75,8 @@ export interface EffectivePricing {
73
75
  pricingRuleId?: string | null;
74
76
  /**
75
77
  * Which resolution tier matched: `org_instance`, `org_catalog`,
76
- * `org_generic`, `barndoor_default`, or `none`. Mirrors
78
+ * `org_generic`, `barndoor_default`, `provider_reported`,
79
+ * `not_metered`, or `none`. Mirrors
77
80
  * [`PricingSource::as_str`] so the value matches what audit events
78
81
  * already record for the same decision.
79
82
  */
@@ -25,6 +25,8 @@ import type { LongContextTier } from './LongContextTier.js';
25
25
  *
26
26
  * * field absent entirely → backend predates this annotation
27
27
  * * `source == "none"` → unpriced, bills at $0 because the rate is *unknown*
28
+ * * `source == "provider_reported"` → bills what the provider reports per
29
+ * request (BCP-4543, OpenRouter). No rates: the price varies per request.
28
30
  * * `source == "not_metered"` → bills at $0 *by decision* (BCP-3876): the
29
31
  * provider's `billing_mode` is `subscription`, so no rate is consulted.
30
32
  * Rates are `None` here too, but for the opposite reason, and the UI must
@@ -73,7 +75,8 @@ export interface EffectivePricing {
73
75
  pricingRuleId?: string | null;
74
76
  /**
75
77
  * Which resolution tier matched: `org_instance`, `org_catalog`,
76
- * `org_generic`, `barndoor_default`, or `none`. Mirrors
78
+ * `org_generic`, `barndoor_default`, `provider_reported`,
79
+ * `not_metered`, or `none`. Mirrors
77
80
  * [`PricingSource::as_str`] so the value matches what audit events
78
81
  * already record for the same decision.
79
82
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barndoor-ai/sdk",
3
- "version": "2.15.0-dev.g7e00668",
3
+ "version": "2.15.0-dev.gd3be2cf",
4
4
  "description": "TypeScript client for the Barndoor Platform API",
5
5
  "author": "Barndoor AI, Inc. (https://barndoor.ai)",
6
6
  "homepage": "https://barndoor.ai",