@avallon-labs/sdk 55.0.0-staging.1273 → 55.2.0-staging.1277
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.ts +12 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -340,6 +340,8 @@ declare const AnalyticsTimeSeriesMetric: {
|
|
|
340
340
|
readonly finished_worker_runs: "finished_worker_runs";
|
|
341
341
|
readonly avg_worker_run_duration_ms: "avg_worker_run_duration_ms";
|
|
342
342
|
readonly avg_worker_run_artifacts: "avg_worker_run_artifacts";
|
|
343
|
+
readonly worker_run_cost_usd: "worker_run_cost_usd";
|
|
344
|
+
readonly avg_worker_run_cost_usd: "avg_worker_run_cost_usd";
|
|
343
345
|
};
|
|
344
346
|
|
|
345
347
|
/**
|
|
@@ -5966,6 +5968,8 @@ declare const GetAnalyticsTimeSeriesMetric: {
|
|
|
5966
5968
|
readonly finished_worker_runs: "finished_worker_runs";
|
|
5967
5969
|
readonly avg_worker_run_duration_ms: "avg_worker_run_duration_ms";
|
|
5968
5970
|
readonly avg_worker_run_artifacts: "avg_worker_run_artifacts";
|
|
5971
|
+
readonly worker_run_cost_usd: "worker_run_cost_usd";
|
|
5972
|
+
readonly avg_worker_run_cost_usd: "avg_worker_run_cost_usd";
|
|
5969
5973
|
};
|
|
5970
5974
|
|
|
5971
5975
|
/**
|
|
@@ -7114,6 +7118,7 @@ declare const ProfilePermissionsItem: {
|
|
|
7114
7118
|
readonly "schedules:read": "schedules:read";
|
|
7115
7119
|
readonly "schedules:write": "schedules:write";
|
|
7116
7120
|
readonly "tenants:write": "tenants:write";
|
|
7121
|
+
readonly "analytics:view-cost": "analytics:view-cost";
|
|
7117
7122
|
};
|
|
7118
7123
|
|
|
7119
7124
|
/**
|
|
@@ -8857,6 +8862,11 @@ type ListCasesParams = {
|
|
|
8857
8862
|
* @minLength 1
|
|
8858
8863
|
*/
|
|
8859
8864
|
id?: string;
|
|
8865
|
+
/**
|
|
8866
|
+
* Filter by case type slug.
|
|
8867
|
+
* @minLength 1
|
|
8868
|
+
*/
|
|
8869
|
+
type_slug?: string;
|
|
8860
8870
|
/**
|
|
8861
8871
|
* Filter by case subject. Case-insensitive substring match against the case subject.
|
|
8862
8872
|
* @minLength 1
|
|
@@ -14522,10 +14532,11 @@ declare const getGetAnalyticsTimeSeriesUrl: (params: GetAnalyticsTimeSeriesParam
|
|
|
14522
14532
|
* Pick a `metric`, a date range, a bucket `granularity` (day/week/month), and optionally a `group_by` dimension and filters. The series is sparse (only buckets with data) over the half-open window `[from, to)`.
|
|
14523
14533
|
*
|
|
14524
14534
|
* - `worker_runs`, `documents`, `pages`: processing volume, bucketed by creation time. `worker_runs` can be grouped by `worker_id` and filtered by `worker_id` and `environment`. Documents are shared across environments and cannot be filtered by them.
|
|
14525
|
-
* - `finished_worker_runs`, `avg_worker_run_duration_ms`, `avg_worker_run_artifacts`: worker runs that ended as completed, failed or canceled, windowed and bucketed by completion time. Runs created by worker evals and benchmarks are excluded. These can be filtered by `worker_id` and `environment`.
|
|
14535
|
+
* - `finished_worker_runs`, `avg_worker_run_duration_ms`, `avg_worker_run_artifacts`, `worker_run_cost_usd`, `avg_worker_run_cost_usd`: worker runs that ended as completed, failed or canceled, windowed and bucketed by completion time. Runs created by worker evals and benchmarks are excluded. These can be filtered by `worker_id` and `environment`.
|
|
14526
14536
|
* - `finished_worker_runs`: number of finished runs. Can be grouped by `outcome` (`goal_reached`, `goal_not_reached`, `failed`, `canceled`); a completed run without a reported outcome counts as `goal_reached`.
|
|
14527
14537
|
* - `avg_worker_run_duration_ms`: average time from start to completion, in milliseconds. Runs that never started are excluded.
|
|
14528
14538
|
* - `avg_worker_run_artifacts`: average number of input artifacts resolved from the run's scope. Runs without a recorded artifact resolution are excluded.
|
|
14539
|
+
* - `worker_run_cost_usd`, `avg_worker_run_cost_usd`: total and average estimated LLM cost of the runs, in USD. Canceled runs, runs that never reported the cost of their extraction, and runs that used a model without published pricing are excluded. Requires the `analytics:view-cost` permission.
|
|
14529
14540
|
*
|
|
14530
14541
|
* `data` is an array of per-metric results; today it always contains exactly one entry (the requested metric).
|
|
14531
14542
|
* @summary Get analytics time series
|
package/dist/index.js
CHANGED
|
@@ -6478,7 +6478,9 @@ var AnalyticsTimeSeriesMetric = {
|
|
|
6478
6478
|
pages: "pages",
|
|
6479
6479
|
finished_worker_runs: "finished_worker_runs",
|
|
6480
6480
|
avg_worker_run_duration_ms: "avg_worker_run_duration_ms",
|
|
6481
|
-
avg_worker_run_artifacts: "avg_worker_run_artifacts"
|
|
6481
|
+
avg_worker_run_artifacts: "avg_worker_run_artifacts",
|
|
6482
|
+
worker_run_cost_usd: "worker_run_cost_usd",
|
|
6483
|
+
avg_worker_run_cost_usd: "avg_worker_run_cost_usd"
|
|
6482
6484
|
};
|
|
6483
6485
|
|
|
6484
6486
|
// generated/models/apiKeyCreatedRole.ts
|
|
@@ -6917,7 +6919,9 @@ var GetAnalyticsTimeSeriesMetric = {
|
|
|
6917
6919
|
pages: "pages",
|
|
6918
6920
|
finished_worker_runs: "finished_worker_runs",
|
|
6919
6921
|
avg_worker_run_duration_ms: "avg_worker_run_duration_ms",
|
|
6920
|
-
avg_worker_run_artifacts: "avg_worker_run_artifacts"
|
|
6922
|
+
avg_worker_run_artifacts: "avg_worker_run_artifacts",
|
|
6923
|
+
worker_run_cost_usd: "worker_run_cost_usd",
|
|
6924
|
+
avg_worker_run_cost_usd: "avg_worker_run_cost_usd"
|
|
6921
6925
|
};
|
|
6922
6926
|
|
|
6923
6927
|
// generated/models/getBenchmarkEnvelopeDataRunsItemConfiguration.ts
|
|
@@ -7601,7 +7605,8 @@ var ProfilePermissionsItem = {
|
|
|
7601
7605
|
"secrets:write": "secrets:write",
|
|
7602
7606
|
"schedules:read": "schedules:read",
|
|
7603
7607
|
"schedules:write": "schedules:write",
|
|
7604
|
-
"tenants:write": "tenants:write"
|
|
7608
|
+
"tenants:write": "tenants:write",
|
|
7609
|
+
"analytics:view-cost": "analytics:view-cost"
|
|
7605
7610
|
};
|
|
7606
7611
|
|
|
7607
7612
|
// generated/models/profileRole.ts
|