@athenaintel/sdk 4.3.2275 → 4.3.2277

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@athenaintel/sdk",
46
- "X-Fern-SDK-Version": "4.3.2275",
47
- "User-Agent": "@athenaintel/sdk/4.3.2275",
46
+ "X-Fern-SDK-Version": "4.3.2277",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2277",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -12,7 +12,7 @@ export declare class SessionsClient {
12
12
  protected readonly _options: NormalizedClientOptionsWithAuth<SessionsClient.Options>;
13
13
  constructor(options?: SessionsClient.Options);
14
14
  /**
15
- * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
15
+ * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs, Automation runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
16
16
  *
17
17
  * @param {AthenaIntelligence.ListSessionsRequest} request
18
18
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,7 +56,7 @@ class SessionsClient {
56
56
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
57
57
  }
58
58
  /**
59
- * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
59
+ * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs, Automation runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
60
60
  *
61
61
  * @param {AthenaIntelligence.ListSessionsRequest} request
62
62
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -21,7 +21,7 @@ export interface ListSessionsRequest {
21
21
  app_id?: string | null;
22
22
  /** Include branched sub-sessions (excluded by default) */
23
23
  include_sub_sessions?: boolean;
24
- /** Include AOP/workflow task runs (excluded by default) */
24
+ /** Include AOP/workflow task runs and Automation runs (excluded by default) */
25
25
  include_task_sessions?: boolean;
26
26
  /** Only include task sessions originating from this AOP asset identifier */
27
27
  aop_asset_id?: string | null;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * One action a paused run is waiting for a person to approve.
3
+ */
4
+ export interface CollabAgentPendingActionOut {
5
+ /** Bounded summary of the pending action, when available. */
6
+ summary?: string | null;
7
+ /** Name of the tool waiting for approval, when known. */
8
+ toolName?: string | null;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,22 @@
1
+ import type * as AthenaIntelligence from "../index.js";
1
2
  /**
2
3
  * Response for a programmatic message submission.
3
4
  */
4
5
  export interface CollabAgentSendMessageResponseOut {
5
- /** The agent's final message, verbatim. Null on 202 responses, and null on completed runs where the agent declined to reply (it invoked its dont_respond tool). */
6
+ /** True when the run paused for human input rather than finishing. */
7
+ awaitingInput?: boolean;
8
+ /** Tools and action summaries awaiting approval; empty when unavailable. */
9
+ pendingActions?: AthenaIntelligence.CollabAgentPendingActionOut[];
10
+ /** The agent's final message, or assistant text so far from the current turn when paused. Null on 202 responses, and null on completed runs where the agent declined to reply (it invoked its dont_respond tool). */
6
11
  reply?: string | null;
7
12
  /** Asset id of the Athena session that handled the submission. Null on 202 responses (the session is resolved asynchronously). */
8
13
  sessionId?: string | null;
9
- /** 'accepted' when the submission was queued (wait=false, HTTP 202); 'completed' when the agent run finished inline (wait=true, HTTP 200). */
14
+ /** Link to the session where the caller can review the pending input. */
15
+ sessionUrl?: string | null;
16
+ /** 'accepted' when the submission was queued (wait=false, HTTP 202); 'completed' when the inline wait ended (including a pause) (wait=true, HTTP 200). */
10
17
  status: string;
11
18
  /** The conversation key this submission was routed under — the clientThreadKey from the request, or 'default'. */
12
19
  threadKey: string;
20
+ /** True when the pending input is a human tool approval. */
21
+ waitingForApproval?: boolean;
13
22
  }
@@ -39,6 +39,7 @@ export * from "./CellFormat.js";
39
39
  export * from "./Chunk.js";
40
40
  export * from "./ChunkContentItem.js";
41
41
  export * from "./ChunkResult.js";
42
+ export * from "./CollabAgentPendingActionOut.js";
42
43
  export * from "./CollabAgentSendMessageResponseOut.js";
43
44
  export * from "./CollabTokenResponse.js";
44
45
  export * from "./ComputerInitializationResponse.js";
@@ -55,6 +55,7 @@ __exportStar(require("./CellFormat.js"), exports);
55
55
  __exportStar(require("./Chunk.js"), exports);
56
56
  __exportStar(require("./ChunkContentItem.js"), exports);
57
57
  __exportStar(require("./ChunkResult.js"), exports);
58
+ __exportStar(require("./CollabAgentPendingActionOut.js"), exports);
58
59
  __exportStar(require("./CollabAgentSendMessageResponseOut.js"), exports);
59
60
  __exportStar(require("./CollabTokenResponse.js"), exports);
60
61
  __exportStar(require("./ComputerInitializationResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2275";
1
+ export declare const SDK_VERSION = "4.3.2277";
@@ -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 = "4.3.2275";
4
+ exports.SDK_VERSION = "4.3.2277";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@athenaintel/sdk",
9
- "X-Fern-SDK-Version": "4.3.2275",
10
- "User-Agent": "@athenaintel/sdk/4.3.2275",
9
+ "X-Fern-SDK-Version": "4.3.2277",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2277",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Athena-Session-Credential": options === null || options === void 0 ? void 0 : options.sessionCredential,
@@ -12,7 +12,7 @@ export declare class SessionsClient {
12
12
  protected readonly _options: NormalizedClientOptionsWithAuth<SessionsClient.Options>;
13
13
  constructor(options?: SessionsClient.Options);
14
14
  /**
15
- * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
15
+ * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs, Automation runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
16
16
  *
17
17
  * @param {AthenaIntelligence.ListSessionsRequest} request
18
18
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -20,7 +20,7 @@ export class SessionsClient {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
23
- * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
23
+ * Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs, Automation runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
24
24
  *
25
25
  * @param {AthenaIntelligence.ListSessionsRequest} request
26
26
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -21,7 +21,7 @@ export interface ListSessionsRequest {
21
21
  app_id?: string | null;
22
22
  /** Include branched sub-sessions (excluded by default) */
23
23
  include_sub_sessions?: boolean;
24
- /** Include AOP/workflow task runs (excluded by default) */
24
+ /** Include AOP/workflow task runs and Automation runs (excluded by default) */
25
25
  include_task_sessions?: boolean;
26
26
  /** Only include task sessions originating from this AOP asset identifier */
27
27
  aop_asset_id?: string | null;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * One action a paused run is waiting for a person to approve.
3
+ */
4
+ export interface CollabAgentPendingActionOut {
5
+ /** Bounded summary of the pending action, when available. */
6
+ summary?: string | null;
7
+ /** Name of the tool waiting for approval, when known. */
8
+ toolName?: string | null;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,13 +1,22 @@
1
+ import type * as AthenaIntelligence from "../index.mjs";
1
2
  /**
2
3
  * Response for a programmatic message submission.
3
4
  */
4
5
  export interface CollabAgentSendMessageResponseOut {
5
- /** The agent's final message, verbatim. Null on 202 responses, and null on completed runs where the agent declined to reply (it invoked its dont_respond tool). */
6
+ /** True when the run paused for human input rather than finishing. */
7
+ awaitingInput?: boolean;
8
+ /** Tools and action summaries awaiting approval; empty when unavailable. */
9
+ pendingActions?: AthenaIntelligence.CollabAgentPendingActionOut[];
10
+ /** The agent's final message, or assistant text so far from the current turn when paused. Null on 202 responses, and null on completed runs where the agent declined to reply (it invoked its dont_respond tool). */
6
11
  reply?: string | null;
7
12
  /** Asset id of the Athena session that handled the submission. Null on 202 responses (the session is resolved asynchronously). */
8
13
  sessionId?: string | null;
9
- /** 'accepted' when the submission was queued (wait=false, HTTP 202); 'completed' when the agent run finished inline (wait=true, HTTP 200). */
14
+ /** Link to the session where the caller can review the pending input. */
15
+ sessionUrl?: string | null;
16
+ /** 'accepted' when the submission was queued (wait=false, HTTP 202); 'completed' when the inline wait ended (including a pause) (wait=true, HTTP 200). */
10
17
  status: string;
11
18
  /** The conversation key this submission was routed under — the clientThreadKey from the request, or 'default'. */
12
19
  threadKey: string;
20
+ /** True when the pending input is a human tool approval. */
21
+ waitingForApproval?: boolean;
13
22
  }
@@ -39,6 +39,7 @@ export * from "./CellFormat.mjs";
39
39
  export * from "./Chunk.mjs";
40
40
  export * from "./ChunkContentItem.mjs";
41
41
  export * from "./ChunkResult.mjs";
42
+ export * from "./CollabAgentPendingActionOut.mjs";
42
43
  export * from "./CollabAgentSendMessageResponseOut.mjs";
43
44
  export * from "./CollabTokenResponse.mjs";
44
45
  export * from "./ComputerInitializationResponse.mjs";
@@ -39,6 +39,7 @@ export * from "./CellFormat.mjs";
39
39
  export * from "./Chunk.mjs";
40
40
  export * from "./ChunkContentItem.mjs";
41
41
  export * from "./ChunkResult.mjs";
42
+ export * from "./CollabAgentPendingActionOut.mjs";
42
43
  export * from "./CollabAgentSendMessageResponseOut.mjs";
43
44
  export * from "./CollabTokenResponse.mjs";
44
45
  export * from "./ComputerInitializationResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2275";
1
+ export declare const SDK_VERSION = "4.3.2277";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2275";
1
+ export const SDK_VERSION = "4.3.2277";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2275",
3
+ "version": "4.3.2277",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -4606,7 +4606,7 @@ await client.semanticModel.query({
4606
4606
  <dl>
4607
4607
  <dd>
4608
4608
 
4609
- Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
4609
+ Retrieve a paginated list of agent sessions (conversations) with optional title search, state filtering, source channel filtering, date range filtering, and sorting. By default, AOP/workflow runs, Automation runs and branched sub-sessions are excluded, and only sessions in the caller's current workspace are visible — pass `workspace_id` to list sessions in another workspace the caller belongs to.
4610
4610
  </dd>
4611
4611
  </dl>
4612
4612
  </dd>