@aui.io/aui-client 3.2.1 → 3.2.3

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/README.md CHANGED
@@ -132,7 +132,7 @@ socket.on('message', (message) => console.log(message));
132
132
  socket.on('error', (error) => console.error(error));
133
133
  socket.on('close', (event) => console.log('closed', event.code));
134
134
 
135
- socket.sendSubmitMessage({
135
+ socket.sendMessage({
136
136
  type: 'message',
137
137
  agent_id: agentId,
138
138
  user_id: 'end-user-123',
@@ -143,7 +143,7 @@ socket.close();
143
143
  ```
144
144
 
145
145
  The socket exposes `waitForOpen()`, `on(event, handler)` (events: `open`, `message`,
146
- `error`, `close`), `sendSubmitMessage(request)`, `sendResume(request)`, and `close()`.
146
+ `error`, `close`), `sendMessage(request)`, `sendResume(request)`, and `close()`.
147
147
  Note that `on()` registers a single handler per event; calling it again for the same
148
148
  event replaces the previous handler. The socket type is exported as `SessionSocket`.
149
149
 
@@ -62,8 +62,8 @@ class ApolloClient {
62
62
  "x-organization-api-key": _options === null || _options === void 0 ? void 0 : _options.organizationApiKey,
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@aui.io/aui-client",
65
- "X-Fern-SDK-Version": "3.2.1",
66
- "User-Agent": "@aui.io/aui-client/3.2.1",
65
+ "X-Fern-SDK-Version": "3.2.3",
66
+ "User-Agent": "@aui.io/aui-client/3.2.3",
67
67
  "X-Fern-Runtime": core.RUNTIME.type,
68
68
  "X-Fern-Runtime-Version": core.RUNTIME.version,
69
69
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -33,7 +33,7 @@ export declare class SessionSocket {
33
33
  * ```
34
34
  */
35
35
  on<T extends keyof SessionSocket.EventHandlers>(event: T, callback: SessionSocket.EventHandlers[T]): void;
36
- sendSubmitMessage(message: Apollo.SubmitMessageRequest): void;
36
+ sendMessage(message: Apollo.SubmitMessageRequest): void;
37
37
  sendResume(message: Apollo.ResumeRequest): void;
38
38
  /** Connect to the websocket and register event handlers. */
39
39
  connect(): SessionSocket;
@@ -90,7 +90,7 @@ class SessionSocket {
90
90
  on(event, callback) {
91
91
  this.eventHandlers[event] = callback;
92
92
  }
93
- sendSubmitMessage(message) {
93
+ sendMessage(message) {
94
94
  this.assertSocketIsOpen();
95
95
  this.sendJson(message);
96
96
  }
@@ -1,4 +1,3 @@
1
- import type * as Apollo from "../index.js";
2
1
  /**
3
2
  * Send a message to your agent — the agent is identified by your access
4
3
  * token. ``thread_id`` is optional: present -> append to that thread; absent
@@ -11,5 +10,5 @@ export interface SendMessageRequest {
11
10
  /** Signed image URL for vision input. */
12
11
  image_url?: string;
13
12
  /** Per-message values for the agent's configured context variables. */
14
- agent_variables?: Apollo.AgentVariables;
13
+ agent_variables?: Record<string, unknown>;
15
14
  }
@@ -2,7 +2,6 @@ export * from "./Agent.js";
2
2
  export * from "./AgentCreateResponse.js";
3
3
  export * from "./AgentListFilters.js";
4
4
  export * from "./AgentUpdateResponse.js";
5
- export * from "./AgentVariables.js";
6
5
  export * from "./AgentVersion.js";
7
6
  export * from "./AgentVersionArchiveResponse.js";
8
7
  export * from "./AgentVersionCreateResponse.js";
@@ -18,7 +18,6 @@ __exportStar(require("./Agent.js"), exports);
18
18
  __exportStar(require("./AgentCreateResponse.js"), exports);
19
19
  __exportStar(require("./AgentListFilters.js"), exports);
20
20
  __exportStar(require("./AgentUpdateResponse.js"), exports);
21
- __exportStar(require("./AgentVariables.js"), exports);
22
21
  __exportStar(require("./AgentVersion.js"), exports);
23
22
  __exportStar(require("./AgentVersionArchiveResponse.js"), exports);
24
23
  __exportStar(require("./AgentVersionCreateResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.2.1";
1
+ export declare const SDK_VERSION = "3.2.3";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.2.1";
4
+ exports.SDK_VERSION = "3.2.3";
@@ -26,8 +26,8 @@ export class ApolloClient {
26
26
  "x-organization-api-key": _options === null || _options === void 0 ? void 0 : _options.organizationApiKey,
27
27
  "X-Fern-Language": "JavaScript",
28
28
  "X-Fern-SDK-Name": "@aui.io/aui-client",
29
- "X-Fern-SDK-Version": "3.2.1",
30
- "User-Agent": "@aui.io/aui-client/3.2.1",
29
+ "X-Fern-SDK-Version": "3.2.3",
30
+ "User-Agent": "@aui.io/aui-client/3.2.3",
31
31
  "X-Fern-Runtime": core.RUNTIME.type,
32
32
  "X-Fern-Runtime-Version": core.RUNTIME.version,
33
33
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -33,7 +33,7 @@ export declare class SessionSocket {
33
33
  * ```
34
34
  */
35
35
  on<T extends keyof SessionSocket.EventHandlers>(event: T, callback: SessionSocket.EventHandlers[T]): void;
36
- sendSubmitMessage(message: Apollo.SubmitMessageRequest): void;
36
+ sendMessage(message: Apollo.SubmitMessageRequest): void;
37
37
  sendResume(message: Apollo.ResumeRequest): void;
38
38
  /** Connect to the websocket and register event handlers. */
39
39
  connect(): SessionSocket;
@@ -54,7 +54,7 @@ export class SessionSocket {
54
54
  on(event, callback) {
55
55
  this.eventHandlers[event] = callback;
56
56
  }
57
- sendSubmitMessage(message) {
57
+ sendMessage(message) {
58
58
  this.assertSocketIsOpen();
59
59
  this.sendJson(message);
60
60
  }
@@ -1,4 +1,3 @@
1
- import type * as Apollo from "../index.mjs";
2
1
  /**
3
2
  * Send a message to your agent — the agent is identified by your access
4
3
  * token. ``thread_id`` is optional: present -> append to that thread; absent
@@ -11,5 +10,5 @@ export interface SendMessageRequest {
11
10
  /** Signed image URL for vision input. */
12
11
  image_url?: string;
13
12
  /** Per-message values for the agent's configured context variables. */
14
- agent_variables?: Apollo.AgentVariables;
13
+ agent_variables?: Record<string, unknown>;
15
14
  }
@@ -2,7 +2,6 @@ export * from "./Agent.mjs";
2
2
  export * from "./AgentCreateResponse.mjs";
3
3
  export * from "./AgentListFilters.mjs";
4
4
  export * from "./AgentUpdateResponse.mjs";
5
- export * from "./AgentVariables.mjs";
6
5
  export * from "./AgentVersion.mjs";
7
6
  export * from "./AgentVersionArchiveResponse.mjs";
8
7
  export * from "./AgentVersionCreateResponse.mjs";
@@ -2,7 +2,6 @@ export * from "./Agent.mjs";
2
2
  export * from "./AgentCreateResponse.mjs";
3
3
  export * from "./AgentListFilters.mjs";
4
4
  export * from "./AgentUpdateResponse.mjs";
5
- export * from "./AgentVariables.mjs";
6
5
  export * from "./AgentVersion.mjs";
7
6
  export * from "./AgentVersionArchiveResponse.mjs";
8
7
  export * from "./AgentVersionCreateResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.2.1";
1
+ export declare const SDK_VERSION = "3.2.3";
@@ -1 +1 @@
1
- export const SDK_VERSION = "3.2.1";
1
+ export const SDK_VERSION = "3.2.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/aui-client",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "private": false,
5
5
  "repository": "github:aui-io/aui-client-typescript",
6
6
  "type": "commonjs",
@@ -1,12 +0,0 @@
1
- /**
2
- * Per-message values for the agent's configured context variables:
3
- * ``static`` values substitute the static context's ``{{placeholders}}``;
4
- * ``dynamic`` values parameterize the dynamic-context API calls. On a key
5
- * collision, the ``dynamic`` value wins.
6
- */
7
- export interface AgentVariables {
8
- /** Values substituted into the agent's static context placeholders. */
9
- static?: Record<string, string>;
10
- /** Values for the variables of the agent's dynamic-context API calls. */
11
- dynamic?: Record<string, string>;
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * Per-message values for the agent's configured context variables:
3
- * ``static`` values substitute the static context's ``{{placeholders}}``;
4
- * ``dynamic`` values parameterize the dynamic-context API calls. On a key
5
- * collision, the ``dynamic`` value wins.
6
- */
7
- export interface AgentVariables {
8
- /** Values substituted into the agent's static context placeholders. */
9
- static?: Record<string, string>;
10
- /** Values for the variables of the agent's dynamic-context API calls. */
11
- dynamic?: Record<string, string>;
12
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};