@athenaintel/sdk 4.3.2127 → 4.3.2128

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.2127",
47
- "User-Agent": "@athenaintel/sdk/4.3.2127",
46
+ "X-Fern-SDK-Version": "4.3.2128",
47
+ "User-Agent": "@athenaintel/sdk/4.3.2128",
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);
@@ -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.
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.
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.
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.
60
60
  *
61
61
  * @param {AthenaIntelligence.ListSessionsRequest} request
62
62
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -75,7 +75,7 @@ class SessionsClient {
75
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
76
76
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
77
77
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
78
- 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;
78
+ const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, aop_asset_id: aopAssetId, workspace_id: workspaceId, trigger_type: triggerType, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
79
79
  const _queryParams = {};
80
80
  if (query !== undefined) {
81
81
  _queryParams.query = query;
@@ -101,6 +101,9 @@ class SessionsClient {
101
101
  if (aopAssetId !== undefined) {
102
102
  _queryParams.aop_asset_id = aopAssetId;
103
103
  }
104
+ if (workspaceId !== undefined) {
105
+ _queryParams.workspace_id = workspaceId;
106
+ }
104
107
  if (triggerType !== undefined) {
105
108
  _queryParams.trigger_type = (0, json_js_1.toJson)(triggerType);
106
109
  }
@@ -25,6 +25,8 @@ export interface ListSessionsRequest {
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;
28
+ /** Workspace to list sessions from. Defaults to the caller's current workspace; any other workspace the caller is a member of can be requested explicitly. */
29
+ workspace_id?: string | null;
28
30
  /** Trigger type(s) to filter by (e.g. 'schedule', 'api', 'email'). Repeat the parameter or pass a comma-separated list. */
29
31
  trigger_type?: string[] | null;
30
32
  /** Only include sessions created at or after this ISO 8601 timestamp */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2127";
1
+ export declare const SDK_VERSION = "4.3.2128";
@@ -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.2127";
4
+ exports.SDK_VERSION = "4.3.2128";
@@ -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.2127",
10
- "User-Agent": "@athenaintel/sdk/4.3.2127",
9
+ "X-Fern-SDK-Version": "4.3.2128",
10
+ "User-Agent": "@athenaintel/sdk/4.3.2128",
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);
@@ -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.
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.
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.
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.
24
24
  *
25
25
  * @param {AthenaIntelligence.ListSessionsRequest} request
26
26
  * @param {SessionsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -39,7 +39,7 @@ export class SessionsClient {
39
39
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
40
40
  const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
- 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;
42
+ const { query, state, source_channel: sourceChannel, session_type: sessionType, app_id: appId, include_sub_sessions: includeSubSessions, include_task_sessions: includeTaskSessions, aop_asset_id: aopAssetId, workspace_id: workspaceId, trigger_type: triggerType, created_after: createdAfter, created_before: createdBefore, sort_by: sortBy, sort_direction: sortDirection, limit, offset, } = request;
43
43
  const _queryParams = {};
44
44
  if (query !== undefined) {
45
45
  _queryParams.query = query;
@@ -65,6 +65,9 @@ export class SessionsClient {
65
65
  if (aopAssetId !== undefined) {
66
66
  _queryParams.aop_asset_id = aopAssetId;
67
67
  }
68
+ if (workspaceId !== undefined) {
69
+ _queryParams.workspace_id = workspaceId;
70
+ }
68
71
  if (triggerType !== undefined) {
69
72
  _queryParams.trigger_type = toJson(triggerType);
70
73
  }
@@ -25,6 +25,8 @@ export interface ListSessionsRequest {
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;
28
+ /** Workspace to list sessions from. Defaults to the caller's current workspace; any other workspace the caller is a member of can be requested explicitly. */
29
+ workspace_id?: string | null;
28
30
  /** Trigger type(s) to filter by (e.g. 'schedule', 'api', 'email'). Repeat the parameter or pass a comma-separated list. */
29
31
  trigger_type?: string[] | null;
30
32
  /** Only include sessions created at or after this ISO 8601 timestamp */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.3.2127";
1
+ export declare const SDK_VERSION = "4.3.2128";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.3.2127";
1
+ export const SDK_VERSION = "4.3.2128";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/sdk",
3
- "version": "4.3.2127",
3
+ "version": "4.3.2128",
4
4
  "private": false,
5
5
  "repository": "github:Athena-Intel/athena-typescript",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -2836,7 +2836,7 @@ await client.semanticModel.query({
2836
2836
  <dl>
2837
2837
  <dd>
2838
2838
 
2839
- 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.
2839
+ 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.
2840
2840
  </dd>
2841
2841
  </dl>
2842
2842
  </dd>