From 865772ff0383c076b824a03422493a771d4a1a9c Mon Sep 17 00:00:00 2001 From: activitysmith-bot Date: Sun, 3 May 2026 12:07:35 +0000 Subject: [PATCH] chore: regenerate SDK --- generated/apis/MetricsApi.ts | 4 ++-- generated/models/index.ts | 23 ++++++++--------------- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/generated/apis/MetricsApi.ts b/generated/apis/MetricsApi.ts index 18896da..73924c6 100644 --- a/generated/apis/MetricsApi.ts +++ b/generated/apis/MetricsApi.ts @@ -32,7 +32,7 @@ export interface UpdateMetricValueRequest { export class MetricsApi extends runtime.BaseAPI { /** - * Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters. + * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. * Update a widget metric value */ async updateMetricValueRaw(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -76,7 +76,7 @@ export class MetricsApi extends runtime.BaseAPI { } /** - * Updates the latest value for a metric configured in ActivitySmith widgets. Create the metric in the web app first, then write values using its key. Numeric metric formats accept finite numbers. String metrics accept non-empty text up to 64 characters. + * Updates the latest value for a metric displayed in ActivitySmith widgets. Create the metric in the web app first, then update its value using the key. * Update a widget metric value */ async updateMetricValue(requestParameters: UpdateMetricValueRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { diff --git a/generated/models/index.ts b/generated/models/index.ts index a62f571..35661c4 100644 --- a/generated/models/index.ts +++ b/generated/models/index.ts @@ -1108,10 +1108,10 @@ export interface MetricValueUpdateResponse { [key: string]: any | any; /** * - * @type {WidgetMetric} + * @type {boolean} * @memberof MetricValueUpdateResponse */ - metric: WidgetMetric; + success: boolean; } /** * @@ -1533,13 +1533,13 @@ export interface WidgetMetric { * @type {string} * @memberof WidgetMetric */ - currency_code: string | null; + currency_code: string; /** * Present when format is unit. * @type {string} * @memberof WidgetMetric */ - unit: string | null; + unit: string; /** * * @type {MetricUnitSpacing} @@ -1553,17 +1553,17 @@ export interface WidgetMetric { */ format: MetricFormat; /** - * - * @type {WidgetMetricLatestValue} + * Latest metric value. Numeric formats return a number. String metrics return text. + * @type {number} * @memberof WidgetMetric */ - latest_value: WidgetMetricLatestValue | null; + latest_value: number; /** * * @type {string} * @memberof WidgetMetric */ - latest_value_at: string | null; + latest_value_at: string; /** * * @type {string} @@ -1577,10 +1577,3 @@ export interface WidgetMetric { */ updated_at: string; } -/** - * Latest metric value. Numeric formats return a number. String metrics return text. - * @export - * @interface WidgetMetricLatestValue - */ -export interface WidgetMetricLatestValue { -}