@agentforge-io/sdk-server 4.7.0 → 4.8.0

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
@@ -8,7 +8,7 @@ export { AnalyticsResource } from './resources/analytics';
8
8
  export type { GetSupportKpisInput, GetAgentAttentionLogInput, } from './resources/analytics';
9
9
  export { AppsResource } from './resources/apps';
10
10
  export { ChatResource } from './resources/chat';
11
- export type { AnthropicClientOptions, StreamMessageInput } from './resources/chat';
11
+ export type { AnthropicClientOptions, AppCallerClaims, StreamMessageInput, StreamMessageForAppUserInput, } from './resources/chat';
12
12
  export { ConnectorsResource } from './resources/connectors';
13
13
  export type { InboxChannelView } from './resources/connectors';
14
14
  export { InboxResource } from './resources/inbox';
@@ -42,6 +42,25 @@ export interface StreamMessageForAppUserInput {
42
42
  * here to turn the sanitizer OFF for this operator-facing surface.
43
43
  */
44
44
  channel?: ChannelContext;
45
+ /**
46
+ * AGF-OUTCOMES I5 — what the App declares about this end user for this
47
+ * turn. The platform shows it to the agent in the per-turn identity block
48
+ * as "declared by the App, not verified by AgentForge"; omit for no claims.
49
+ */
50
+ caller?: AppCallerClaims;
51
+ }
52
+ /** What an App declares about its end user on a chat turn (see `caller`). */
53
+ export interface AppCallerClaims {
54
+ displayName?: string;
55
+ email?: string;
56
+ phone?: string;
57
+ /** App-defined role slugs (e.g. `mayorista`); prompts can branch on them. */
58
+ roles?: string[];
59
+ /** `true` only when the App itself verified the email. */
60
+ emailVerified?: boolean;
61
+ /** Where the person is, in the App's words — e.g. the reference of a
62
+ * scanned QR code (`mesa-03`). */
63
+ location?: string;
45
64
  }
46
65
  export declare class ChatResource {
47
66
  private readonly client;
@@ -149,6 +149,7 @@ class ChatResource {
149
149
  externalUserId: input.externalUserId,
150
150
  content: input.content,
151
151
  ...(input.channel ? { channel: input.channel } : {}),
152
+ ...(input.caller ? { caller: input.caller } : {}),
152
153
  });
153
154
  if (!res.body) {
154
155
  throw new Error('chat.streamMessageForAppUser: response has no readable body');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentforge-io/sdk-server",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "Server-side SDK for backend apps integrating with AgentForge platform. Auth via ChatToken or ak_live_ API key.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",