@athenaintel/sdk 4.3.1958 → 4.3.1960
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.js +7 -1
- package/dist/cjs/api/resources/sessions/client/requests/ListSessionsRequest.d.ts +4 -0
- package/dist/cjs/api/types/SessionOut.d.ts +8 -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.mjs +7 -1
- package/dist/esm/api/resources/sessions/client/requests/ListSessionsRequest.d.mts +4 -0
- package/dist/esm/api/types/SessionOut.d.mts +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +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.1960",
|
|
47
|
+
"User-Agent": "@athenaintel/sdk/4.3.1960",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -70,7 +70,7 @@ class SessionsClient {
|
|
|
70
70
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
71
71
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
73
|
-
const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
|
|
73
|
+
const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, aop_asset_id: aopAssetId, trigger_type: triggerType, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
|
|
74
74
|
const _queryParams = {};
|
|
75
75
|
if (query !== undefined) {
|
|
76
76
|
_queryParams.query = query;
|
|
@@ -93,6 +93,12 @@ class SessionsClient {
|
|
|
93
93
|
if (includeTaskSessions != null) {
|
|
94
94
|
_queryParams.include_task_sessions = includeTaskSessions.toString();
|
|
95
95
|
}
|
|
96
|
+
if (aopAssetId !== undefined) {
|
|
97
|
+
_queryParams.aop_asset_id = aopAssetId;
|
|
98
|
+
}
|
|
99
|
+
if (triggerType !== undefined) {
|
|
100
|
+
_queryParams.trigger_type = (0, json_js_1.toJson)(triggerType);
|
|
101
|
+
}
|
|
96
102
|
if (createdAfter !== undefined) {
|
|
97
103
|
_queryParams.created_after = createdAfter;
|
|
98
104
|
}
|
|
@@ -18,6 +18,10 @@ export interface ListSessionsRequest {
|
|
|
18
18
|
include_sub_sessions?: boolean;
|
|
19
19
|
/** Include AOP/workflow task runs (excluded by default) */
|
|
20
20
|
include_task_sessions?: boolean;
|
|
21
|
+
/** Only include task sessions originating from this AOP asset identifier */
|
|
22
|
+
aop_asset_id?: string | null;
|
|
23
|
+
/** Trigger type(s) to filter by (e.g. 'schedule', 'api', 'email'). Repeat the parameter or pass a comma-separated list. */
|
|
24
|
+
trigger_type?: string[] | null;
|
|
21
25
|
/** Only include sessions created at or after this ISO 8601 timestamp */
|
|
22
26
|
created_after?: string | null;
|
|
23
27
|
/** Only include sessions created at or before this ISO 8601 timestamp */
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
export interface SessionOut {
|
|
5
5
|
/** Agent identity the session ran with, when set */
|
|
6
6
|
agent?: string | null;
|
|
7
|
+
/** Source AOP asset identifier for an AOP/workflow run */
|
|
8
|
+
aop_asset_id?: string | null;
|
|
9
|
+
/** Execution error recorded for a failed AOP run, when present */
|
|
10
|
+
aop_execution_error?: string | null;
|
|
11
|
+
/** Whether the AOP execution completed successfully, when known */
|
|
12
|
+
aop_execution_succeeded?: boolean | null;
|
|
7
13
|
/** Application identifier the session belongs to, when set */
|
|
8
14
|
app_id?: string | null;
|
|
9
15
|
/** Timestamp when the session was created (ISO 8601) */
|
|
@@ -34,6 +40,8 @@ export interface SessionOut {
|
|
|
34
40
|
title?: string | null;
|
|
35
41
|
/** Total LLM cost of the session in USD, when tracked */
|
|
36
42
|
total_cost_usd?: number | null;
|
|
43
|
+
/** Trigger that started an AOP/workflow run, such as schedule or api */
|
|
44
|
+
trigger_type?: string | null;
|
|
37
45
|
/** Timestamp when the session was last updated (ISO 8601) */
|
|
38
46
|
updated_at: string;
|
|
39
47
|
/** Unique identifier of the workspace this session belongs to */
|
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.1960";
|
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.1960",
|
|
10
|
+
"User-Agent": "@athenaintel/sdk/4.3.1960",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -34,7 +34,7 @@ export class SessionsClient {
|
|
|
34
34
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
35
35
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
37
|
-
const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
|
|
37
|
+
const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, aop_asset_id: aopAssetId, trigger_type: triggerType, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
|
|
38
38
|
const _queryParams = {};
|
|
39
39
|
if (query !== undefined) {
|
|
40
40
|
_queryParams.query = query;
|
|
@@ -57,6 +57,12 @@ export class SessionsClient {
|
|
|
57
57
|
if (includeTaskSessions != null) {
|
|
58
58
|
_queryParams.include_task_sessions = includeTaskSessions.toString();
|
|
59
59
|
}
|
|
60
|
+
if (aopAssetId !== undefined) {
|
|
61
|
+
_queryParams.aop_asset_id = aopAssetId;
|
|
62
|
+
}
|
|
63
|
+
if (triggerType !== undefined) {
|
|
64
|
+
_queryParams.trigger_type = toJson(triggerType);
|
|
65
|
+
}
|
|
60
66
|
if (createdAfter !== undefined) {
|
|
61
67
|
_queryParams.created_after = createdAfter;
|
|
62
68
|
}
|
|
@@ -18,6 +18,10 @@ export interface ListSessionsRequest {
|
|
|
18
18
|
include_sub_sessions?: boolean;
|
|
19
19
|
/** Include AOP/workflow task runs (excluded by default) */
|
|
20
20
|
include_task_sessions?: boolean;
|
|
21
|
+
/** Only include task sessions originating from this AOP asset identifier */
|
|
22
|
+
aop_asset_id?: string | null;
|
|
23
|
+
/** Trigger type(s) to filter by (e.g. 'schedule', 'api', 'email'). Repeat the parameter or pass a comma-separated list. */
|
|
24
|
+
trigger_type?: string[] | null;
|
|
21
25
|
/** Only include sessions created at or after this ISO 8601 timestamp */
|
|
22
26
|
created_after?: string | null;
|
|
23
27
|
/** Only include sessions created at or before this ISO 8601 timestamp */
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
export interface SessionOut {
|
|
5
5
|
/** Agent identity the session ran with, when set */
|
|
6
6
|
agent?: string | null;
|
|
7
|
+
/** Source AOP asset identifier for an AOP/workflow run */
|
|
8
|
+
aop_asset_id?: string | null;
|
|
9
|
+
/** Execution error recorded for a failed AOP run, when present */
|
|
10
|
+
aop_execution_error?: string | null;
|
|
11
|
+
/** Whether the AOP execution completed successfully, when known */
|
|
12
|
+
aop_execution_succeeded?: boolean | null;
|
|
7
13
|
/** Application identifier the session belongs to, when set */
|
|
8
14
|
app_id?: string | null;
|
|
9
15
|
/** Timestamp when the session was created (ISO 8601) */
|
|
@@ -34,6 +40,8 @@ export interface SessionOut {
|
|
|
34
40
|
title?: string | null;
|
|
35
41
|
/** Total LLM cost of the session in USD, when tracked */
|
|
36
42
|
total_cost_usd?: number | null;
|
|
43
|
+
/** Trigger that started an AOP/workflow run, such as schedule or api */
|
|
44
|
+
trigger_type?: string | null;
|
|
37
45
|
/** Timestamp when the session was last updated (ISO 8601) */
|
|
38
46
|
updated_at: string;
|
|
39
47
|
/** Unique identifier of the workspace this session belongs to */
|
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.1960";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.3.
|
|
1
|
+
export const SDK_VERSION = "4.3.1960";
|