@athenaintel/sdk 4.3.2276 → 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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/sessions/client/Client.js +1 -1
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +1 -1
- package/dist/cjs/api/types/CollabAgentPendingActionOut.d.ts +9 -0
- package/dist/cjs/api/types/CollabAgentPendingActionOut.js +3 -0
- package/dist/cjs/api/types/CollabAgentSendMessageResponseOut.d.ts +11 -2
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/sessions/client/Client.mjs +1 -1
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.d.mts +1 -1
- package/dist/esm/api/types/CollabAgentPendingActionOut.d.mts +9 -0
- package/dist/esm/api/types/CollabAgentPendingActionOut.mjs +2 -0
- package/dist/esm/api/types/CollabAgentSendMessageResponseOut.d.mts +11 -2
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
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
|
+
}
|
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2277";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@athenaintel/sdk/4.3.
|
|
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
|
+
}
|
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.3.
|
|
1
|
+
export declare const SDK_VERSION = "4.3.2277";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.2277";
|
package/package.json
CHANGED
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>
|