@squidcloud/client 1.0.433 → 1.0.434

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.
@@ -94,6 +94,18 @@ export interface AiQueryAnalyzeResultsOptions {
94
94
  */
95
95
  agentId?: AiAgentId;
96
96
  }
97
+ /**
98
+ * Information about an executed query in a multi-query scenario.
99
+ * @category AI
100
+ */
101
+ export interface ExecutedQueryInfo {
102
+ /** The executed query string. */
103
+ query: string;
104
+ /** Optional description of what this query retrieves. */
105
+ purpose?: string;
106
+ /** Whether this specific query executed successfully. */
107
+ success: boolean;
108
+ }
97
109
  /**
98
110
  * Response from an AI query execution.
99
111
  * Contains the generated answer, optional explanation, and executed query details.
@@ -104,8 +116,8 @@ export interface AiQueryResponse {
104
116
  answer: string;
105
117
  /** Optional explanation for the AI-generated answer. */
106
118
  explanation?: string;
107
- /** Query executed by the AI, if applicable. */
108
- executedQuery?: string;
119
+ /** All executed queries with their details. */
120
+ executedQueries?: ExecutedQueryInfo[];
109
121
  /** Markdown format type of the executed query response. */
110
122
  queryMarkdownType?: string;
111
123
  /** URL to access raw results from the query execution. */
@@ -7,6 +7,7 @@ import { ClientId } from '../../internal-common/src/public-types/communication.p
7
7
  export declare class ConnectionDetails {
8
8
  private readonly clientIdService;
9
9
  private readonly socketManager;
10
+ private readonly runtimeOptions;
10
11
  private isConnected;
11
12
  /** Whether the Squid Client SDK is currently connected to the Squid Server. */
12
13
  get connected(): boolean;
@@ -19,6 +20,7 @@ export declare class ConnectionDetails {
19
20
  /**
20
21
  * Returns an observable that emits true when the client is connected to the server and false when the client is
21
22
  * disconnected from the server.
23
+ * @throws Error if client is in passive mode.
22
24
  */
23
25
  observeConnected(): Observable<boolean>;
24
26
  }
@@ -50,6 +50,7 @@ export * from './query/snapshot-emitter';
50
50
  export * from './queue.manager';
51
51
  export * from './rate-limiter';
52
52
  export * from './rpc.manager';
53
+ export * from './runtime-options';
53
54
  export * from './scheduler-client';
54
55
  export * from './secret.client';
55
56
  export * from './socket.manager';
@@ -9,6 +9,7 @@ export declare class JobClient {
9
9
  private readonly socketManager;
10
10
  private readonly rpcManager;
11
11
  private readonly clientIdService;
12
+ private readonly runtimeOptions;
12
13
  private isListening;
13
14
  private readonly listeners;
14
15
  /**
@@ -0,0 +1 @@
1
+ export {};
@@ -65,6 +65,11 @@ export interface SquidOptions {
65
65
  * The console region (optional and used for on-prem deployments of Squid)
66
66
  */
67
67
  consoleRegion?: string;
68
+ /**
69
+ * Enable passive (HTTP-only) mode. Default: false.
70
+ * In passive mode, real-time features (WebSocket) are disabled.
71
+ */
72
+ isPassiveMode?: boolean;
68
73
  }
69
74
  /**
70
75
  * Authentication data provider for Squid requests.
@@ -125,6 +130,7 @@ export declare class Squid {
125
130
  private readonly schedulerClient;
126
131
  private readonly notificationClient;
127
132
  private readonly _appId;
133
+ private readonly runtimeOptions;
128
134
  /**
129
135
  * Creates a new instance of Squid with the given options.
130
136
  *
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.433";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.434";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.433",
3
+ "version": "1.0.434",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",