@aui.io/aui-client 1.2.7 → 1.2.8

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
@@ -60,7 +60,7 @@ const userTasks = await client.externalApis.getTasksByUserId({
60
60
 
61
61
  ```typescript
62
62
  // Connect to WebSocket
63
- const socket = await client.apolloSession.connect();
63
+ const socket = await client.apolloWsSession.connect();
64
64
 
65
65
  // Listen for connection open
66
66
  socket.on('open', () => {
@@ -201,13 +201,13 @@ const response = await client.externalApis.getTasksByUserId({
201
201
 
202
202
  ### WebSocket API
203
203
 
204
- All WebSocket methods are accessed via `client.apolloSession.*`
204
+ All WebSocket methods are accessed via `client.apolloWsSession.*`
205
205
 
206
206
  #### `connect(args?)` - Establish Connection
207
207
  Connect to the WebSocket for real-time communication.
208
208
 
209
209
  ```typescript
210
- const socket = await client.externalSession.connect({
210
+ const socket = await client.apolloWsSession.connect({
211
211
  headers?: Record<string, string>, // Additional headers
212
212
  debug?: boolean, // Enable debug mode (default: false)
213
213
  reconnectAttempts?: number // Max reconnect attempts (default: 30)
@@ -278,7 +278,7 @@ async function searchProducts(userId: string, query: string) {
278
278
  console.log('Created task:', taskId);
279
279
 
280
280
  // Step 2: Connect to WebSocket
281
- const socket = await client.externalSession.connect();
281
+ const socket = await client.apolloWsSession.connect();
282
282
 
283
283
  // Step 3: Set up event handlers
284
284
  socket.on('open', () => {
@@ -485,7 +485,7 @@ const client = new ApolloClient({
485
485
  });
486
486
 
487
487
  // Or pass it per-request
488
- const socket = await client.externalSession.connect({
488
+ const socket = await client.apolloWsSession.connect({
489
489
  headers: {
490
490
  'x-network-api-key': 'API_KEY_YOUR_KEY_HERE'
491
491
  }
@@ -45,8 +45,8 @@ class ApolloClient {
45
45
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
46
46
  "X-Fern-Language": "JavaScript",
47
47
  "X-Fern-SDK-Name": "@aui.io/aui-client",
48
- "X-Fern-SDK-Version": "1.2.7",
49
- "User-Agent": "@aui.io/aui-client/1.2.7",
48
+ "X-Fern-SDK-Version": "1.2.8",
49
+ "User-Agent": "@aui.io/aui-client/1.2.8",
50
50
  "X-Fern-Runtime": core.RUNTIME.type,
51
51
  "X-Fern-Runtime-Version": core.RUNTIME.version,
52
52
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.7";
1
+ export declare const SDK_VERSION = "1.2.8";
@@ -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 = "1.2.7";
4
+ exports.SDK_VERSION = "1.2.8";
@@ -9,8 +9,8 @@ export class ApolloClient {
9
9
  "x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
10
10
  "X-Fern-Language": "JavaScript",
11
11
  "X-Fern-SDK-Name": "@aui.io/aui-client",
12
- "X-Fern-SDK-Version": "1.2.7",
13
- "User-Agent": "@aui.io/aui-client/1.2.7",
12
+ "X-Fern-SDK-Version": "1.2.8",
13
+ "User-Agent": "@aui.io/aui-client/1.2.8",
14
14
  "X-Fern-Runtime": core.RUNTIME.type,
15
15
  "X-Fern-Runtime-Version": core.RUNTIME.version,
16
16
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.2.7";
1
+ export declare const SDK_VERSION = "1.2.8";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.2.7";
1
+ export const SDK_VERSION = "1.2.8";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aui.io/aui-client",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "private": false,
5
5
  "repository": "github:aui-io/aui-client-typescript",
6
6
  "type": "commonjs",