@umbraco-ai/core 17.3.1 → 17.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ai/core",
3
- "version": "17.3.1",
3
+ "version": "17.3.4",
4
4
  "type": "module",
5
5
  "types": "./types/umbraco-ai-public-types.d.ts",
6
6
  "files": [
@@ -10,6 +10,7 @@ import { Observable as Observable_2 } from 'rxjs';
10
10
  import { TemplateResult } from 'lit-html';
11
11
  import { TemplateResult as TemplateResult_2 } from '@umbraco-cms/backoffice/external/lit';
12
12
  import { UmbApi } from '@umbraco-cms/backoffice/extension-api';
13
+ import type { UmbApiClient } from '@umbraco-cms/backoffice/http-client';
13
14
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
14
15
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
15
16
  import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
@@ -232,12 +233,18 @@ declare interface Config_2 {
232
233
  * own host so the `UmbAuthSignalerContext` is registered at `umb-app`
233
234
  * and emissions reach `UmbAuthContext` correctly.
234
235
  *
236
+ * Additionally sets `throwOnError: true` — every product sharing this function
237
+ * relies on `tryExecute` to turn a failed request into a user-facing notification,
238
+ * which only happens when the underlying call throws. `setConfig` merges onto the
239
+ * config `authContext.configureClient` already applied, so this doesn't clobber
240
+ * `baseUrl`/`credentials`/`auth`.
241
+ *
235
242
  * @param host The entry point's `host` parameter (`UmbElement`).
236
243
  * @param client The generated hey-api client to configure.
237
244
  * @returns A Promise that resolves once auth is configured on the client.
238
245
  * @public
239
246
  */
240
- export declare function configureAiClient(host: UmbElement, client: unknown): Promise<void>;
247
+ export declare function configureAiClient(host: UmbElement, client: UmbApiClient): Promise<void>;
241
248
 
242
249
  export declare const coreClientReady: Promise<void>;
243
250