@naturali/sdk 0.86.2 → 0.86.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/dist/index.d.cts CHANGED
@@ -5237,10 +5237,15 @@ type UsageComponents = {
5237
5237
  };
5238
5238
  type UsageGroup = {
5239
5239
  /**
5240
- * The bucket's value in the chosen dimension (model id, meter type, agent/run id, or YYYY-MM-DD day); null when it does not apply.
5240
+ * The bucket's value in the chosen dimension (model, meter type, agent/run id, or YYYY-MM-DD day); null when it does not apply. Under `group_by=model` this is the model name, the same string `GET /v1/models` lists and an agent is configured with.
5241
5241
  *
5242
5242
  */
5243
5243
  key: string | null;
5244
+ /**
5245
+ * The AI provider that served the bucket's model, under `group_by=model`; null on every other dimension. The model dimension buckets on the model *and* its provider, so one model served by two providers is two groups — this is what tells them apart. The groups still sum to the totals.
5246
+ *
5247
+ */
5248
+ ai_provider_id: string | null;
5244
5249
  /**
5245
5250
  * Billing-grade cost in USD; null when nothing in the bucket was priced.
5246
5251
  */
package/dist/index.d.mts CHANGED
@@ -5237,10 +5237,15 @@ type UsageComponents = {
5237
5237
  };
5238
5238
  type UsageGroup = {
5239
5239
  /**
5240
- * The bucket's value in the chosen dimension (model id, meter type, agent/run id, or YYYY-MM-DD day); null when it does not apply.
5240
+ * The bucket's value in the chosen dimension (model, meter type, agent/run id, or YYYY-MM-DD day); null when it does not apply. Under `group_by=model` this is the model name, the same string `GET /v1/models` lists and an agent is configured with.
5241
5241
  *
5242
5242
  */
5243
5243
  key: string | null;
5244
+ /**
5245
+ * The AI provider that served the bucket's model, under `group_by=model`; null on every other dimension. The model dimension buckets on the model *and* its provider, so one model served by two providers is two groups — this is what tells them apart. The groups still sum to the totals.
5246
+ *
5247
+ */
5248
+ ai_provider_id: string | null;
5244
5249
  /**
5245
5250
  * Billing-grade cost in USD; null when nothing in the bucket was priced.
5246
5251
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.86.2",
3
+ "version": "0.86.3",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,7 +37,7 @@
37
37
  "tsx": "^4.23.1",
38
38
  "typescript": "~6.0.3",
39
39
  "vitest": "^4.1.10",
40
- "@naturali/api": "0.86.2"
40
+ "@naturali/api": "0.86.3"
41
41
  },
42
42
  "scripts": {
43
43
  "generate": "tsx scripts/generate.ts",