@avallon-labs/sdk 52.3.0-staging.1202 → 52.4.0-staging.1206

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 CHANGED
@@ -6560,6 +6560,8 @@ interface PublicChatAgent {
6560
6560
  id: string;
6561
6561
  name: string;
6562
6562
  greeting: string;
6563
+ /** External identity provider that must authenticate the user before a chat with this agent can be started, or `null` when no external authentication is required. When set, exchange the provider token via `POST /public/v1/identity/token` and pass the returned `identity_token` as the `X-External-Identity-Token` header on `POST /public/v1/chats`. */
6564
+ identity_provider_id: string | null;
6563
6565
  }
6564
6566
 
6565
6567
  /**
@@ -14541,7 +14543,7 @@ type Awaited$l<O> = O extends AwaitedInput$l<infer T> ? T : never;
14541
14543
  type SecondParameter$l<T extends (...args: never) => unknown> = Parameters<T>[1];
14542
14544
  declare const getCreateChatUrl: () => string;
14543
14545
  /**
14544
- * Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat.
14546
+ * Create a new chat against an existing chat agent. The chat agent's tenant becomes the owner of the chat. If the agent requires authentication (`identity_provider_id` on the public chat agent), send the identity token from `POST /public/v1/identity/token` in the `X-External-Identity-Token` header; without a valid token the request fails with 401.
14545
14547
  * @summary Create a chat
14546
14548
  */
14547
14549
  declare const createChat: (createChatBody?: CreateChatBody, options?: Parameters<typeof customFetch>[1]) => Promise<CreateChatEnvelope>;