@pluno/product-agent-web 0.1.201 → 0.1.203

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/widget.d.ts CHANGED
@@ -1,14 +1,15 @@
1
- import { type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentPersonalChannelConnectionRequest, type ProductAgentInitOptions, type ProductAgentModel, type ProductAgentRuntimeAdapters, type ProductAgentRuntimeClient, type ProductAgentWidgetLifecycleTrigger } from "./index";
1
+ import { ProductAgentTokenProviderError, type ProductAgentAttachment, type ProductAgentIntegrationAuthRequest, type ProductAgentPersonalChannelConnectionRequest, type ProductAgentInitOptions, type ProductAgentModel, type ProductAgentRuntimeAdapters, type ProductAgentRuntimeClient, type ProductAgentWidgetLifecycleTrigger } from "./index";
2
2
  import { type PersonalProductAgentModel } from "./modelSelection";
3
3
  import { type ProductAgentShareCandidate } from "./shareCard";
4
4
  import { type ActiveUsersCounterValue } from "./activeUsersCounter";
5
5
  import { type ProductAgentInteraction, type ProductAgentAccountProjection } from "./runtimeState";
6
+ export { ProductAgentTokenProviderError };
6
7
  export type ProductAgentWidgetOptions = {
7
8
  runtimeClient?: ProductAgentRuntimeClient;
8
9
  layout?: "floating" | "page";
9
10
  mountTarget?: HTMLElement;
10
11
  token?: string;
11
- tokenProvider?: () => Promise<string>;
12
+ tokenProvider?: ProductAgentInitOptions["tokenProvider"];
12
13
  tokenEndpoint?: string;
13
14
  backendUrl?: string;
14
15
  metadata?: Record<string, unknown> | (() => Record<string, unknown> | undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluno/product-agent-web",
3
- "version": "0.1.201",
3
+ "version": "0.1.203",
4
4
  "description": "Browser SDK and default widget for embedding Pluno Product Agent into customer web apps.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",