sarvam-agents-client 0.2.1 → 0.2.2

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.
@@ -21,18 +21,20 @@ export interface AgentConversationArtifactDownloadUrlRequest {
21
21
  export interface GetAgentConversationRequest {
22
22
  agentId: string;
23
23
  conversationId: string;
24
+ sessionType?: Array<GetAgentConversationSessionTypeEnum>;
24
25
  }
25
26
  export interface ListAgentConversationMessagesRequest {
26
27
  agentId: string;
27
28
  conversationId: string;
28
29
  before: string;
30
+ sessionType?: Array<ListAgentConversationMessagesSessionTypeEnum>;
29
31
  turnLimit?: number | null;
30
32
  }
31
33
  export interface ListAgentConversationsRequest {
32
34
  agentId: string;
33
35
  limit?: number;
34
36
  cursor?: string | null;
35
- sessionType?: ListAgentConversationsSessionTypeEnum;
37
+ sessionType?: Array<ListAgentConversationsSessionTypeEnum>;
36
38
  workspaceId?: Array<string>;
37
39
  mine?: boolean | null;
38
40
  }
@@ -51,12 +53,12 @@ export declare class AgentConversationsApi extends runtime.BaseAPI {
51
53
  */
52
54
  agentConversationArtifactDownloadUrl(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadUrlResponse>;
53
55
  /**
54
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
56
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
55
57
  * Get Agent Conversation Route
56
58
  */
57
59
  getAgentConversationRaw(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentConversationDetail>>;
58
60
  /**
59
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
61
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
60
62
  * Get Agent Conversation Route
61
63
  */
62
64
  getAgentConversation(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentConversationDetail>;
@@ -71,12 +73,12 @@ export declare class AgentConversationsApi extends runtime.BaseAPI {
71
73
  */
72
74
  listAgentConversationMessages(requestParameters: ListAgentConversationMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessagesResponse>;
73
75
  /**
74
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
76
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
75
77
  * List Agent Conversations Route
76
78
  */
77
79
  listAgentConversationsRaw(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageAgentConversationView>>;
78
80
  /**
79
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
81
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
80
82
  * List Agent Conversations Route
81
83
  */
82
84
  listAgentConversations(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageAgentConversationView>;
@@ -89,12 +91,36 @@ export declare const AgentConversationArtifactDownloadUrlDispositionEnum: {
89
91
  readonly Attachment: "attachment";
90
92
  };
91
93
  export type AgentConversationArtifactDownloadUrlDispositionEnum = typeof AgentConversationArtifactDownloadUrlDispositionEnum[keyof typeof AgentConversationArtifactDownloadUrlDispositionEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const GetAgentConversationSessionTypeEnum: {
98
+ readonly Api: "api";
99
+ readonly Chat: "chat";
100
+ readonly Slack: "slack";
101
+ readonly Teams: "teams";
102
+ readonly All: "all";
103
+ };
104
+ export type GetAgentConversationSessionTypeEnum = typeof GetAgentConversationSessionTypeEnum[keyof typeof GetAgentConversationSessionTypeEnum];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const ListAgentConversationMessagesSessionTypeEnum: {
109
+ readonly Api: "api";
110
+ readonly Chat: "chat";
111
+ readonly Slack: "slack";
112
+ readonly Teams: "teams";
113
+ readonly All: "all";
114
+ };
115
+ export type ListAgentConversationMessagesSessionTypeEnum = typeof ListAgentConversationMessagesSessionTypeEnum[keyof typeof ListAgentConversationMessagesSessionTypeEnum];
92
116
  /**
93
117
  * @export
94
118
  */
95
119
  export declare const ListAgentConversationsSessionTypeEnum: {
96
120
  readonly Api: "api";
97
121
  readonly Chat: "chat";
122
+ readonly Slack: "slack";
123
+ readonly Teams: "teams";
98
124
  readonly All: "all";
99
125
  };
100
126
  export type ListAgentConversationsSessionTypeEnum = typeof ListAgentConversationsSessionTypeEnum[keyof typeof ListAgentConversationsSessionTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ListAgentConversationsSessionTypeEnum = exports.AgentConversationArtifactDownloadUrlDispositionEnum = exports.AgentConversationsApi = void 0;
16
+ exports.ListAgentConversationsSessionTypeEnum = exports.ListAgentConversationMessagesSessionTypeEnum = exports.GetAgentConversationSessionTypeEnum = exports.AgentConversationArtifactDownloadUrlDispositionEnum = exports.AgentConversationsApi = void 0;
17
17
  const runtime = require("../runtime.js");
18
18
  const index_js_1 = require("../models/index.js");
19
19
  /**
@@ -66,7 +66,7 @@ class AgentConversationsApi extends runtime.BaseAPI {
66
66
  return await response.value();
67
67
  }
68
68
  /**
69
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
69
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
70
70
  * Get Agent Conversation Route
71
71
  */
72
72
  async getAgentConversationRaw(requestParameters, initOverrides) {
@@ -77,6 +77,9 @@ class AgentConversationsApi extends runtime.BaseAPI {
77
77
  throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getAgentConversation().');
78
78
  }
79
79
  const queryParameters = {};
80
+ if (requestParameters['sessionType'] != null) {
81
+ queryParameters['sessionType'] = requestParameters['sessionType'];
82
+ }
80
83
  const headerParameters = {};
81
84
  if (this.configuration && this.configuration.accessToken) {
82
85
  const token = this.configuration.accessToken;
@@ -94,7 +97,7 @@ class AgentConversationsApi extends runtime.BaseAPI {
94
97
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.AgentConversationDetailFromJSON)(jsonValue));
95
98
  }
96
99
  /**
97
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
100
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
98
101
  * Get Agent Conversation Route
99
102
  */
100
103
  async getAgentConversation(requestParameters, initOverrides) {
@@ -116,6 +119,9 @@ class AgentConversationsApi extends runtime.BaseAPI {
116
119
  throw new runtime.RequiredError('before', 'Required parameter "before" was null or undefined when calling listAgentConversationMessages().');
117
120
  }
118
121
  const queryParameters = {};
122
+ if (requestParameters['sessionType'] != null) {
123
+ queryParameters['sessionType'] = requestParameters['sessionType'];
124
+ }
119
125
  if (requestParameters['before'] != null) {
120
126
  queryParameters['before'] = requestParameters['before'];
121
127
  }
@@ -147,7 +153,7 @@ class AgentConversationsApi extends runtime.BaseAPI {
147
153
  return await response.value();
148
154
  }
149
155
  /**
150
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
156
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
151
157
  * List Agent Conversations Route
152
158
  */
153
159
  async listAgentConversationsRaw(requestParameters, initOverrides) {
@@ -187,7 +193,7 @@ class AgentConversationsApi extends runtime.BaseAPI {
187
193
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.PageAgentConversationViewFromJSON)(jsonValue));
188
194
  }
189
195
  /**
190
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
196
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
191
197
  * List Agent Conversations Route
192
198
  */
193
199
  async listAgentConversations(requestParameters, initOverrides) {
@@ -203,11 +209,33 @@ exports.AgentConversationArtifactDownloadUrlDispositionEnum = {
203
209
  Inline: 'inline',
204
210
  Attachment: 'attachment'
205
211
  };
212
+ /**
213
+ * @export
214
+ */
215
+ exports.GetAgentConversationSessionTypeEnum = {
216
+ Api: 'api',
217
+ Chat: 'chat',
218
+ Slack: 'slack',
219
+ Teams: 'teams',
220
+ All: 'all'
221
+ };
222
+ /**
223
+ * @export
224
+ */
225
+ exports.ListAgentConversationMessagesSessionTypeEnum = {
226
+ Api: 'api',
227
+ Chat: 'chat',
228
+ Slack: 'slack',
229
+ Teams: 'teams',
230
+ All: 'all'
231
+ };
206
232
  /**
207
233
  * @export
208
234
  */
209
235
  exports.ListAgentConversationsSessionTypeEnum = {
210
236
  Api: 'api',
211
237
  Chat: 'chat',
238
+ Slack: 'slack',
239
+ Teams: 'teams',
212
240
  All: 'all'
213
241
  };
@@ -21,18 +21,20 @@ export interface AgentConversationArtifactDownloadUrlRequest {
21
21
  export interface GetAgentConversationRequest {
22
22
  agentId: string;
23
23
  conversationId: string;
24
+ sessionType?: Array<GetAgentConversationSessionTypeEnum>;
24
25
  }
25
26
  export interface ListAgentConversationMessagesRequest {
26
27
  agentId: string;
27
28
  conversationId: string;
28
29
  before: string;
30
+ sessionType?: Array<ListAgentConversationMessagesSessionTypeEnum>;
29
31
  turnLimit?: number | null;
30
32
  }
31
33
  export interface ListAgentConversationsRequest {
32
34
  agentId: string;
33
35
  limit?: number;
34
36
  cursor?: string | null;
35
- sessionType?: ListAgentConversationsSessionTypeEnum;
37
+ sessionType?: Array<ListAgentConversationsSessionTypeEnum>;
36
38
  workspaceId?: Array<string>;
37
39
  mine?: boolean | null;
38
40
  }
@@ -51,12 +53,12 @@ export declare class AgentConversationsApi extends runtime.BaseAPI {
51
53
  */
52
54
  agentConversationArtifactDownloadUrl(requestParameters: AgentConversationArtifactDownloadUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadUrlResponse>;
53
55
  /**
54
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
56
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
55
57
  * Get Agent Conversation Route
56
58
  */
57
59
  getAgentConversationRaw(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentConversationDetail>>;
58
60
  /**
59
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
61
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
60
62
  * Get Agent Conversation Route
61
63
  */
62
64
  getAgentConversation(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentConversationDetail>;
@@ -71,12 +73,12 @@ export declare class AgentConversationsApi extends runtime.BaseAPI {
71
73
  */
72
74
  listAgentConversationMessages(requestParameters: ListAgentConversationMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessagesResponse>;
73
75
  /**
74
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
76
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
75
77
  * List Agent Conversations Route
76
78
  */
77
79
  listAgentConversationsRaw(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageAgentConversationView>>;
78
80
  /**
79
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
81
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
80
82
  * List Agent Conversations Route
81
83
  */
82
84
  listAgentConversations(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageAgentConversationView>;
@@ -89,12 +91,36 @@ export declare const AgentConversationArtifactDownloadUrlDispositionEnum: {
89
91
  readonly Attachment: "attachment";
90
92
  };
91
93
  export type AgentConversationArtifactDownloadUrlDispositionEnum = typeof AgentConversationArtifactDownloadUrlDispositionEnum[keyof typeof AgentConversationArtifactDownloadUrlDispositionEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const GetAgentConversationSessionTypeEnum: {
98
+ readonly Api: "api";
99
+ readonly Chat: "chat";
100
+ readonly Slack: "slack";
101
+ readonly Teams: "teams";
102
+ readonly All: "all";
103
+ };
104
+ export type GetAgentConversationSessionTypeEnum = typeof GetAgentConversationSessionTypeEnum[keyof typeof GetAgentConversationSessionTypeEnum];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const ListAgentConversationMessagesSessionTypeEnum: {
109
+ readonly Api: "api";
110
+ readonly Chat: "chat";
111
+ readonly Slack: "slack";
112
+ readonly Teams: "teams";
113
+ readonly All: "all";
114
+ };
115
+ export type ListAgentConversationMessagesSessionTypeEnum = typeof ListAgentConversationMessagesSessionTypeEnum[keyof typeof ListAgentConversationMessagesSessionTypeEnum];
92
116
  /**
93
117
  * @export
94
118
  */
95
119
  export declare const ListAgentConversationsSessionTypeEnum: {
96
120
  readonly Api: "api";
97
121
  readonly Chat: "chat";
122
+ readonly Slack: "slack";
123
+ readonly Teams: "teams";
98
124
  readonly All: "all";
99
125
  };
100
126
  export type ListAgentConversationsSessionTypeEnum = typeof ListAgentConversationsSessionTypeEnum[keyof typeof ListAgentConversationsSessionTypeEnum];
@@ -63,7 +63,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
63
63
  return await response.value();
64
64
  }
65
65
  /**
66
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
66
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
67
67
  * Get Agent Conversation Route
68
68
  */
69
69
  async getAgentConversationRaw(requestParameters, initOverrides) {
@@ -74,6 +74,9 @@ export class AgentConversationsApi extends runtime.BaseAPI {
74
74
  throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getAgentConversation().');
75
75
  }
76
76
  const queryParameters = {};
77
+ if (requestParameters['sessionType'] != null) {
78
+ queryParameters['sessionType'] = requestParameters['sessionType'];
79
+ }
77
80
  const headerParameters = {};
78
81
  if (this.configuration && this.configuration.accessToken) {
79
82
  const token = this.configuration.accessToken;
@@ -91,7 +94,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
91
94
  return new runtime.JSONApiResponse(response, (jsonValue) => AgentConversationDetailFromJSON(jsonValue));
92
95
  }
93
96
  /**
94
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
97
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
95
98
  * Get Agent Conversation Route
96
99
  */
97
100
  async getAgentConversation(requestParameters, initOverrides) {
@@ -113,6 +116,9 @@ export class AgentConversationsApi extends runtime.BaseAPI {
113
116
  throw new runtime.RequiredError('before', 'Required parameter "before" was null or undefined when calling listAgentConversationMessages().');
114
117
  }
115
118
  const queryParameters = {};
119
+ if (requestParameters['sessionType'] != null) {
120
+ queryParameters['sessionType'] = requestParameters['sessionType'];
121
+ }
116
122
  if (requestParameters['before'] != null) {
117
123
  queryParameters['before'] = requestParameters['before'];
118
124
  }
@@ -144,7 +150,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
144
150
  return await response.value();
145
151
  }
146
152
  /**
147
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
153
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
148
154
  * List Agent Conversations Route
149
155
  */
150
156
  async listAgentConversationsRaw(requestParameters, initOverrides) {
@@ -184,7 +190,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
184
190
  return new runtime.JSONApiResponse(response, (jsonValue) => PageAgentConversationViewFromJSON(jsonValue));
185
191
  }
186
192
  /**
187
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
193
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
188
194
  * List Agent Conversations Route
189
195
  */
190
196
  async listAgentConversations(requestParameters, initOverrides) {
@@ -199,11 +205,33 @@ export const AgentConversationArtifactDownloadUrlDispositionEnum = {
199
205
  Inline: 'inline',
200
206
  Attachment: 'attachment'
201
207
  };
208
+ /**
209
+ * @export
210
+ */
211
+ export const GetAgentConversationSessionTypeEnum = {
212
+ Api: 'api',
213
+ Chat: 'chat',
214
+ Slack: 'slack',
215
+ Teams: 'teams',
216
+ All: 'all'
217
+ };
218
+ /**
219
+ * @export
220
+ */
221
+ export const ListAgentConversationMessagesSessionTypeEnum = {
222
+ Api: 'api',
223
+ Chat: 'chat',
224
+ Slack: 'slack',
225
+ Teams: 'teams',
226
+ All: 'all'
227
+ };
202
228
  /**
203
229
  * @export
204
230
  */
205
231
  export const ListAgentConversationsSessionTypeEnum = {
206
232
  Api: 'api',
207
233
  Chat: 'chat',
234
+ Slack: 'slack',
235
+ Teams: 'teams',
208
236
  All: 'all'
209
237
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sarvam-agents-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Client for the Sarvam Agents API: chat with an agent, exchange files with it, and set it up from your own code.",
5
5
  "author": "Sarvam AI <support@sarvam.ai>",
6
6
  "license": "MIT",
@@ -51,12 +51,14 @@ export interface AgentConversationArtifactDownloadUrlRequest {
51
51
  export interface GetAgentConversationRequest {
52
52
  agentId: string;
53
53
  conversationId: string;
54
+ sessionType?: Array<GetAgentConversationSessionTypeEnum>;
54
55
  }
55
56
 
56
57
  export interface ListAgentConversationMessagesRequest {
57
58
  agentId: string;
58
59
  conversationId: string;
59
60
  before: string;
61
+ sessionType?: Array<ListAgentConversationMessagesSessionTypeEnum>;
60
62
  turnLimit?: number | null;
61
63
  }
62
64
 
@@ -64,7 +66,7 @@ export interface ListAgentConversationsRequest {
64
66
  agentId: string;
65
67
  limit?: number;
66
68
  cursor?: string | null;
67
- sessionType?: ListAgentConversationsSessionTypeEnum;
69
+ sessionType?: Array<ListAgentConversationsSessionTypeEnum>;
68
70
  workspaceId?: Array<string>;
69
71
  mine?: boolean | null;
70
72
  }
@@ -140,7 +142,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
140
142
  }
141
143
 
142
144
  /**
143
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
145
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
144
146
  * Get Agent Conversation Route
145
147
  */
146
148
  async getAgentConversationRaw(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentConversationDetail>> {
@@ -160,6 +162,10 @@ export class AgentConversationsApi extends runtime.BaseAPI {
160
162
 
161
163
  const queryParameters: any = {};
162
164
 
165
+ if (requestParameters['sessionType'] != null) {
166
+ queryParameters['sessionType'] = requestParameters['sessionType'];
167
+ }
168
+
163
169
  const headerParameters: runtime.HTTPHeaders = {};
164
170
 
165
171
  if (this.configuration && this.configuration.accessToken) {
@@ -181,7 +187,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
181
187
  }
182
188
 
183
189
  /**
184
- * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s.
190
+ * One session from the log, with its projected history and tool calls. Read-only: unlike the self route this never marks the row read, because ``last_read_at`` is the owning user\'s unread state, not the agent owner\'s. A Slack or Teams session opens when ``sessionType`` is omitted or names its platform; its ``lastActiveAt`` / ``createdAt`` are those of the turns on the page.
185
191
  * Get Agent Conversation Route
186
192
  */
187
193
  async getAgentConversation(requestParameters: GetAgentConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentConversationDetail> {
@@ -217,6 +223,10 @@ export class AgentConversationsApi extends runtime.BaseAPI {
217
223
 
218
224
  const queryParameters: any = {};
219
225
 
226
+ if (requestParameters['sessionType'] != null) {
227
+ queryParameters['sessionType'] = requestParameters['sessionType'];
228
+ }
229
+
220
230
  if (requestParameters['before'] != null) {
221
231
  queryParameters['before'] = requestParameters['before'];
222
232
  }
@@ -255,7 +265,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
255
265
  }
256
266
 
257
267
  /**
258
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
268
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
259
269
  * List Agent Conversations Route
260
270
  */
261
271
  async listAgentConversationsRaw(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageAgentConversationView>> {
@@ -309,7 +319,7 @@ export class AgentConversationsApi extends runtime.BaseAPI {
309
319
  }
310
320
 
311
321
  /**
312
- * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first.
322
+ * The agent owner\'s session log: conversations every user in the tenant has had with this agent on the selected surface, newest-active first. ``sessionType`` is repeatable (``api``, ``chat``, ``slack``, ``teams``, ``all``) and the values add up.
313
323
  * List Agent Conversations Route
314
324
  */
315
325
  async listAgentConversations(requestParameters: ListAgentConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageAgentConversationView> {
@@ -327,12 +337,36 @@ export const AgentConversationArtifactDownloadUrlDispositionEnum = {
327
337
  Attachment: 'attachment'
328
338
  } as const;
329
339
  export type AgentConversationArtifactDownloadUrlDispositionEnum = typeof AgentConversationArtifactDownloadUrlDispositionEnum[keyof typeof AgentConversationArtifactDownloadUrlDispositionEnum];
340
+ /**
341
+ * @export
342
+ */
343
+ export const GetAgentConversationSessionTypeEnum = {
344
+ Api: 'api',
345
+ Chat: 'chat',
346
+ Slack: 'slack',
347
+ Teams: 'teams',
348
+ All: 'all'
349
+ } as const;
350
+ export type GetAgentConversationSessionTypeEnum = typeof GetAgentConversationSessionTypeEnum[keyof typeof GetAgentConversationSessionTypeEnum];
351
+ /**
352
+ * @export
353
+ */
354
+ export const ListAgentConversationMessagesSessionTypeEnum = {
355
+ Api: 'api',
356
+ Chat: 'chat',
357
+ Slack: 'slack',
358
+ Teams: 'teams',
359
+ All: 'all'
360
+ } as const;
361
+ export type ListAgentConversationMessagesSessionTypeEnum = typeof ListAgentConversationMessagesSessionTypeEnum[keyof typeof ListAgentConversationMessagesSessionTypeEnum];
330
362
  /**
331
363
  * @export
332
364
  */
333
365
  export const ListAgentConversationsSessionTypeEnum = {
334
366
  Api: 'api',
335
367
  Chat: 'chat',
368
+ Slack: 'slack',
369
+ Teams: 'teams',
336
370
  All: 'all'
337
371
  } as const;
338
372
  export type ListAgentConversationsSessionTypeEnum = typeof ListAgentConversationsSessionTypeEnum[keyof typeof ListAgentConversationsSessionTypeEnum];