@umbraco-ai/core 18.3.1 → 18.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": "18.3.1",
3
+ "version": "18.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 { UmbCollectionActionBase } from '@umbraco-cms/backoffice/collection';
14
15
  import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
15
16
  import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
@@ -214,12 +215,18 @@ declare interface Config_2 {
214
215
  * own host so the `UmbAuthSignalerContext` is registered at `umb-app`
215
216
  * and emissions reach `UmbAuthContext` correctly.
216
217
  *
218
+ * Additionally sets `throwOnError: true` — every product sharing this function
219
+ * relies on `tryExecute` to turn a failed request into a user-facing notification,
220
+ * which only happens when the underlying call throws. `setConfig` merges onto the
221
+ * config `authContext.configureClient` already applied, so this doesn't clobber
222
+ * `baseUrl`/`credentials`/`auth`.
223
+ *
217
224
  * @param host The entry point's `host` parameter (`UmbElement`).
218
225
  * @param client The generated hey-api client to configure.
219
226
  * @returns A Promise that resolves once auth is configured on the client.
220
227
  * @public
221
228
  */
222
- export declare function configureAiClient(host: UmbElement, client: unknown): Promise<void>;
229
+ export declare function configureAiClient(host: UmbElement, client: UmbApiClient): Promise<void>;
223
230
 
224
231
  export declare const coreClientReady: Promise<void>;
225
232