@or-sdk/hitl 0.35.2-beta.3695.0 → 0.35.2-beta.3697.0
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/api/Agents.js.map +1 -1
- package/dist/cjs/types/agents.js.map +1 -1
- package/dist/esm/api/Agents.js.map +1 -1
- package/dist/esm/types/agents.js +3 -1
- package/dist/esm/types/agents.js.map +1 -1
- package/dist/types/api/Agents.d.ts.map +1 -1
- package/dist/types/types/agents.d.ts +3 -1
- package/dist/types/types/agents.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/Agents.ts +91 -153
- package/src/types/agents.ts +8 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../../../src/api/Agents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,0CAAmD;AAmBnD,uCAAsC;AAEtC;IAA4B,0BAAQ;IAApC;;
|
|
1
|
+
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../../../src/api/Agents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,0CAAmD;AAmBnD,uCAAsC;AAEtC;IAA4B,0BAAQ;IAApC;;IAqdA,CAAC;IA/ZqB,gBAAS,GAA7B;4DACE,OAA8B;;YAA9B,wBAAA,EAAA,YAA8B;;gBAExB,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACjC,MAAM,GAAG,MAAM,CAAC,WAAW,CAC/B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,UAAC,EAAK;wBAAJ,GAAG,QAAA;oBAAM,OAAA,CAAC,+B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|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/agents.ts"],"names":[],"mappings":";;;AAAA,2DAKkC;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/agents.ts"],"names":[],"mappings":";;;AAAA,2DAKkC;AAqEzB,6FAxEP,6BAAY,OAwEO;AAGZ,uGA1EP,uCAAsB,OA0EO;AAGtB,0FA5EP,0BAAS,OA4EO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../../../src/api/Agents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAmBnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,MAAO,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"Agents.js","sourceRoot":"","sources":["../../../src/api/Agents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAmBnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAsD3B,MAAM,CAAO,SAAS;6DAC3B,UAA4B,EAAE;YAE9B,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAC/B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC9E,CAAC;YAEF,OAAO,IAAI,CAAC,OAAO,iBACjB,KAAK;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AAiC,CAAC;iBAC/C,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,CAC7B,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC9E,CAAC;YAEF,IAAI,MAAM,CAAC;YACX,IAAI,QAAQ,GAAG,CAAC,CAAC;YAEjB,OAAO,MAAM,KAAK,SAAS,IAAI,QAAQ,GAAG,UAAU,EAAE,CAAC;gBACrD,QAAQ,EAAE,CAAC;gBACX,IAAI,CAAC;oBACH,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,iBACzB,MAAM,EAAE,KAAK,EACb,KAAK;wBACL,IAAI,IACD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;gBAEL,CAAC;gBAAC,OAAO,CAAM,EAAE,CAAC;oBAChB,IAAI,CAAC,CAAC,OAAO,KAAK,qDAAqD;wBAAE,MAAM,CAAC,CAAC;gBACnF,CAAC;YACH,CAAC;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;;AAndgB,iBAAU,GAAG,QAAQ,CAAC;AACtB,uBAAgB,GAAG,QAAQ,CAAC;AAC5B,sBAAe,GAAG,UAAU,CAAC;AAC7B,2BAAoB,GAAG,cAAc,CAAC;AACtC,4BAAqB,GAAG,aAAa,CAAC;AACtC,4BAAqB,GAAG,mBAAmB,CAAC;AAC5C,uBAAgB,GAAG,QAAQ,CAAC;AAC5B,wCAAiC,GAAG,cAAc,CAAC"}
|
package/dist/esm/types/agents.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { AGENT_STATUS, AGENT_BROADCAST_EVENTS, USER_ROLE, } from '@onereach/types-hitl-api';
|
|
2
|
-
export { AGENT_STATUS
|
|
2
|
+
export { AGENT_STATUS };
|
|
3
|
+
export { AGENT_BROADCAST_EVENTS };
|
|
4
|
+
export { USER_ROLE };
|
|
3
5
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,sBAAsB,EACtB,SAAS,GACV,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../src/types/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,sBAAsB,EACtB,SAAS,GACV,MAAM,0BAA0B,CAAC;AAqElC,OAAO,EAAE,YAAY,EAAE,CAAC;AAGxB,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAGlC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Agents.d.ts","sourceRoot":"","sources":["../../../src/api/Agents.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EACL,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,6BAA6B,EAC7B,gCAAgC,EACjC,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,MAAO,SAAQ,QAAQ;IAClC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAY;IACvC,SAAS,CAAC,MAAM,CAAC,gBAAgB,SAAY;IAC7C,SAAS,CAAC,MAAM,CAAC,eAAe,SAAc;IAC9C,SAAS,CAAC,MAAM,CAAC,oBAAoB,SAAkB;IACvD,SAAS,CAAC,MAAM,CAAC,qBAAqB,SAAiB;IACvD,SAAS,CAAC,MAAM,CAAC,qBAAqB,SAAuB;IAC7D,SAAS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AAC,oBAAoB,CAAC;WA4CZ,WAAW,CAC7B,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,kBAAkB,GAC1C,OAAO,CAAC,mBAAmB,CAAC;WAwCX,qBAAqB,CACvC,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,4BAA4B,GACpD,OAAO,CAAC,6BAA6B,CAAC;WAsCrB,cAAc,CAChC,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC;WAkCd,eAAe,CACjC,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC;WAsDd,cAAc,CAChC,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,qBAAqB,GAC7C,OAAO,CAAC,IAAI,CAAC;WAyCI,yBAAyB,CAC3C,EAAE,UAAc,EAAE,GAAG,OAAO,EAAE,EAAE,gCAAgC;CA8BnE"}
|
|
@@ -42,5 +42,7 @@ export interface SetAgentStatusOptions extends ApiVersionOptions, NoAccountId<Ag
|
|
|
42
42
|
export interface UpdateAgentsStatusByQueryOptions extends ApiVersionOptions, NoAccountId<Agents.IUpdateAgentsStatusQuery>, Agents.IUpdateAgentsStatusBody {
|
|
43
43
|
readonly maxRetries?: number;
|
|
44
44
|
}
|
|
45
|
-
export { AGENT_STATUS
|
|
45
|
+
export { AGENT_STATUS };
|
|
46
|
+
export { AGENT_BROADCAST_EVENTS };
|
|
47
|
+
export { USER_ROLE };
|
|
46
48
|
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../src/types/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACV,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG1D,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC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package/src/api/Agents.ts
CHANGED
|
@@ -34,25 +34,21 @@ export class Agents extends HITLBase {
|
|
|
34
34
|
/**
|
|
35
35
|
* Gets a list of agents with HITL (Human in the Loop) information
|
|
36
36
|
*
|
|
37
|
-
* @param options - Configuration options for the agent list request
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param [options
|
|
37
|
+
* @param {Object} options - Configuration options for the agent list request
|
|
38
|
+
* @param {string[]} [options.agentIds] - List of specific agent identifiers to retrieve
|
|
39
|
+
* @param {string[]} [options.projection] - List of fields to include in the response
|
|
40
|
+
* @param {number} [options.limit] - Maximum number of agents to return
|
|
41
|
+
* @param {number} [options.offset] - Number of agents to skip for pagination
|
|
42
|
+
* @param {string} [options.orderBy] - Field name to order the results by
|
|
43
|
+
* @param {('asc'|'desc')} [options.order] - Order direction
|
|
44
|
+
* @param {number} [options.version] - API version
|
|
45
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
45
46
|
*
|
|
46
47
|
* @returns {Promise<GetAgentsResponse>} Promise resolving to:
|
|
47
48
|
* - `data` - Array of partial agent objects {@link Agent}
|
|
48
49
|
* - `last` - Optional pagination information:
|
|
49
50
|
* - `id` - Optional ID of the last agent in the list
|
|
50
51
|
* - `accountId` - Optional account ID of the last agent
|
|
51
|
-
* See {@link GetAgentsResponse} in types/agents.ts for complete type definition
|
|
52
|
-
*
|
|
53
|
-
* @throws HITLAuthenticationError
|
|
54
|
-
* @throws HITLValidationError
|
|
55
|
-
* @throws HITLApiError
|
|
56
52
|
*
|
|
57
53
|
* @example
|
|
58
54
|
* ```typescript
|
|
@@ -95,20 +91,15 @@ export class Agents extends HITLBase {
|
|
|
95
91
|
}
|
|
96
92
|
|
|
97
93
|
/**
|
|
98
|
-
*
|
|
94
|
+
* Get Agents list with full info (additional data from Users API DB)
|
|
99
95
|
*
|
|
100
|
-
* @param options - Configuration options for the complete agent list request
|
|
101
|
-
*
|
|
102
|
-
* @param [options
|
|
96
|
+
* @param {Object} options - Configuration options for the complete agent list request
|
|
97
|
+
* @param {number} [options.version] - API version
|
|
98
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
103
99
|
*
|
|
104
100
|
* @returns {Promise<GetAgentsResponse>} Promise resolving to:
|
|
105
101
|
* - `data` - Array of partial agent objects with complete information
|
|
106
102
|
* - `last` - Optional pagination information
|
|
107
|
-
* See {@link GetAgentsResponse} in types/agents.ts for complete type definition
|
|
108
|
-
*
|
|
109
|
-
* @throws HITLAuthenticationError
|
|
110
|
-
* @throws HITLValidationError
|
|
111
|
-
* @throws HITLApiError
|
|
112
103
|
*
|
|
113
104
|
* @example
|
|
114
105
|
* ```typescript
|
|
@@ -117,7 +108,6 @@ export class Agents extends HITLBase {
|
|
|
117
108
|
*
|
|
118
109
|
* @remarks
|
|
119
110
|
* Makes a GET request to the `/agents/complete` endpoint
|
|
120
|
-
*
|
|
121
111
|
* @public
|
|
122
112
|
*/
|
|
123
113
|
public static async getCompleteAgents(
|
|
@@ -135,35 +125,30 @@ export class Agents extends HITLBase {
|
|
|
135
125
|
}
|
|
136
126
|
|
|
137
127
|
/**
|
|
138
|
-
*
|
|
128
|
+
* Get Agent with full info (additional data from Users API DB)
|
|
139
129
|
*
|
|
140
|
-
* @param options - Configuration options for retrieving a complete agent
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
130
|
+
* @param {Object} options - Configuration options for retrieving a complete agent
|
|
131
|
+
* @param {string} options.agentId - Required identifier of the agent to retrieve
|
|
132
|
+
* @param {string} [options.multiUserId] - Optional multi-user identifier
|
|
133
|
+
* @param {string} [options.accountId] - Optional account identifier
|
|
134
|
+
* @param {number} [options.version] - Optional API version
|
|
135
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
144
136
|
*
|
|
145
137
|
* @returns {Promise<Agent>} Promise resolving to a complete agent object
|
|
146
|
-
* See {@link Agent} in types/agents.ts for complete type definition
|
|
147
|
-
*
|
|
148
|
-
* @throws HITLAuthenticationError
|
|
149
|
-
* @throws HITLValidationError
|
|
150
|
-
* @throws HITLApiError
|
|
151
138
|
*
|
|
152
139
|
* @example
|
|
153
140
|
* ```typescript
|
|
154
141
|
* const agent = await Agents.getCompleteAgentById({
|
|
155
|
-
* agentId: '
|
|
142
|
+
* agentId: 'agent-id',
|
|
156
143
|
* multiUserId: 'multi456'
|
|
157
144
|
* });
|
|
158
145
|
* ```
|
|
159
146
|
*
|
|
160
147
|
* @remarks
|
|
161
148
|
* Makes a GET request to the `/agents/complete/:agentId` endpoint
|
|
162
|
-
*
|
|
163
149
|
* @public
|
|
164
150
|
*/
|
|
165
151
|
public static async getCompleteAgentById(
|
|
166
|
-
// FIXME: not sure accountId can exist here. Added hack to make it build
|
|
167
152
|
{ accountId, multiUserId, ...options }: GetCompleteAgentByIdOptions & { accountId?: string; },
|
|
168
153
|
): Promise<Agent> {
|
|
169
154
|
const baseUrl = this.getBaseUrl(options);
|
|
@@ -183,36 +168,32 @@ export class Agents extends HITLBase {
|
|
|
183
168
|
}
|
|
184
169
|
|
|
185
170
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @param options - Configuration options for the agent search request
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
* -
|
|
194
|
-
* @param [options
|
|
171
|
+
* Search Agents by Rule Groups, status etc.
|
|
172
|
+
*
|
|
173
|
+
* @param {Object} options - Configuration options for the agent search request
|
|
174
|
+
* @param {string[]} [options.contactRuleGroupIds] - Array of contact rule group identifiers to filter by
|
|
175
|
+
* @param {string[]} [options.excludeAgentIds] - Array of agent IDs to exclude from search
|
|
176
|
+
* @param {string[]} [options.projection] - List of fields to include in the response
|
|
177
|
+
* @param {string[]} [options.ruleGroupIds] - Array of rule group identifiers to filter by
|
|
178
|
+
* @param {string[]} [options.ruleTags] - Array of rule tags to filter by
|
|
179
|
+
* @param {IAgentsStatusForSearch[]} [options.statuses] - Array of agent statuses to filter by
|
|
180
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
181
|
+
* @param {(string|number)} [options.version] - API version
|
|
195
182
|
*
|
|
196
183
|
* @returns {Promise<SearchAgentsResponse>} Promise resolving to:
|
|
197
184
|
* - `data` - Array of partial agent objects matching the search criteria
|
|
198
|
-
* See {@link SearchAgentsResponse} in types/agents.ts for complete type definition
|
|
199
|
-
*
|
|
200
|
-
* @throws HITLAuthenticationError
|
|
201
|
-
* @throws HITLValidationError
|
|
202
|
-
* @throws HITLApiError
|
|
203
185
|
*
|
|
204
186
|
* @example
|
|
205
|
-
* With projection:
|
|
206
187
|
* ```typescript
|
|
207
188
|
* const response = await Agents.searchAgents({
|
|
208
|
-
*
|
|
189
|
+
* ruleGroupIds: ['group1', 'group2'],
|
|
190
|
+
* statuses: ['AVAILABLE', 'BUSY'],
|
|
209
191
|
* projection: ['id', 'name', 'statusData']
|
|
210
192
|
* });
|
|
211
193
|
* ```
|
|
212
194
|
*
|
|
213
195
|
* @remarks
|
|
214
196
|
* Makes a POST request to the `/agents/search` endpoint
|
|
215
|
-
*
|
|
216
197
|
* @public
|
|
217
198
|
*/
|
|
218
199
|
public static async searchAgents(
|
|
@@ -233,27 +214,22 @@ export class Agents extends HITLBase {
|
|
|
233
214
|
}
|
|
234
215
|
|
|
235
216
|
/**
|
|
236
|
-
*
|
|
217
|
+
* Update Agent
|
|
237
218
|
*
|
|
238
|
-
* @param options - Configuration options for the agent update
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
* @param options
|
|
219
|
+
* @param {Object} options - Configuration options for the agent update
|
|
220
|
+
* @param {string} options.agentId - Required identifier of the agent to update
|
|
221
|
+
* @param {string[]} [options.ruleGroupIds] - Array of rule group identifiers to assign
|
|
222
|
+
* @param {string[]} [options.contactRuleGroupIds] - Array of contact rule group identifiers
|
|
223
|
+
* @param {Object} [options.meta] - Metadata object for the agent
|
|
224
|
+
* @param {number} [options.version] - API version
|
|
225
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
245
226
|
*
|
|
246
227
|
* @returns {Promise<UpdateAgentResponse>} Promise resolving to a partial agent object with updated information
|
|
247
|
-
* See {@link UpdateAgentResponse} in types/agents.ts for complete type definition
|
|
248
|
-
*
|
|
249
|
-
* @throws HITLAuthenticationError
|
|
250
|
-
* @throws HITLValidationError
|
|
251
|
-
* @throws HITLApiError
|
|
252
228
|
*
|
|
253
229
|
* @example
|
|
254
230
|
* ```typescript
|
|
255
231
|
* const updatedAgent = await Agents.updateAgent({
|
|
256
|
-
* agentId: '
|
|
232
|
+
* agentId: 'agent-id',
|
|
257
233
|
* ruleGroupIds: ['group1', 'group2'],
|
|
258
234
|
* meta: {
|
|
259
235
|
* department: 'Support',
|
|
@@ -264,7 +240,6 @@ export class Agents extends HITLBase {
|
|
|
264
240
|
*
|
|
265
241
|
* @remarks
|
|
266
242
|
* Makes a PUT request to the `/agents` endpoint with agentId as a query parameter
|
|
267
|
-
*
|
|
268
243
|
* @public
|
|
269
244
|
*/
|
|
270
245
|
public static async updateAgent(
|
|
@@ -285,36 +260,28 @@ export class Agents extends HITLBase {
|
|
|
285
260
|
}
|
|
286
261
|
|
|
287
262
|
/**
|
|
288
|
-
*
|
|
263
|
+
* Update Rule Groups for Agent
|
|
289
264
|
*
|
|
290
|
-
* @param options - Configuration options for updating agent rule groups
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
* @param options
|
|
265
|
+
* @param {Object} options - Configuration options for updating agent rule groups
|
|
266
|
+
* @param {string} options.agentId - Required identifier of the agent
|
|
267
|
+
* @param {string[]} [options.addRuleGroupIds] - Array of rule group IDs to add
|
|
268
|
+
* @param {string[]} [options.removeRuleGroupIds] - Array of rule group IDs to remove
|
|
269
|
+
* @param {number} [options.version] - API version
|
|
270
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
296
271
|
*
|
|
297
272
|
* @returns {Promise<UpdateAgentRuleGroupsResponse>} Promise resolving to a partial agent object with updated rule groups
|
|
298
|
-
* See {@link UpdateAgentRuleGroupsResponse} in types/agents.ts for complete type definition
|
|
299
|
-
*
|
|
300
|
-
* @throws HITLAuthenticationError
|
|
301
|
-
* @throws HITLValidationError
|
|
302
|
-
* @throws HITLApiError
|
|
303
273
|
*
|
|
304
274
|
* @example
|
|
305
|
-
* Adding and removing rule groups:
|
|
306
275
|
* ```typescript
|
|
307
276
|
* const updatedAgent = await Agents.updateAgentRuleGroups({
|
|
308
|
-
* agentId: '
|
|
277
|
+
* agentId: 'agent-id',
|
|
309
278
|
* addRuleGroupIds: ['group1', 'group2'],
|
|
310
279
|
* removeRuleGroupIds: ['group3', 'group4']
|
|
311
280
|
* });
|
|
312
281
|
* ```
|
|
313
282
|
*
|
|
314
283
|
* @remarks
|
|
315
|
-
* Makes a PUT request to the `/agents/rule-groups` endpoint with agentId as a query parameter
|
|
316
|
-
* This method allows for atomic modifications to an agent's rule groups, adding and removing groups in a single operation.
|
|
317
|
-
*
|
|
284
|
+
* Makes a PUT request to the `/agents/rule-groups` endpoint with agentId as a query parameter
|
|
318
285
|
* @public
|
|
319
286
|
*/
|
|
320
287
|
public static async updateAgentRuleGroups(
|
|
@@ -336,32 +303,25 @@ export class Agents extends HITLBase {
|
|
|
336
303
|
}
|
|
337
304
|
|
|
338
305
|
/**
|
|
339
|
-
*
|
|
306
|
+
* Get Agent status
|
|
340
307
|
*
|
|
341
|
-
* @param options - Configuration options for retrieving agent status
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* @param [options
|
|
308
|
+
* @param {Object} options - Configuration options for retrieving agent status
|
|
309
|
+
* @param {string} [options.agentId] - Identifier of the agent to get status for
|
|
310
|
+
* @param {number} [options.version] - API version
|
|
311
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
345
312
|
*
|
|
346
313
|
* @returns {Promise<GetAgentStatusResponse>} Promise resolving to agent status object
|
|
347
|
-
* See {@link GetAgentStatusResponse} in types/agents.ts for complete type definition
|
|
348
|
-
*
|
|
349
|
-
* @throws HITLAuthenticationError
|
|
350
|
-
* @throws HITLValidationError
|
|
351
|
-
* @throws HITLApiError
|
|
352
314
|
*
|
|
353
315
|
* @example
|
|
354
|
-
* Use API version 2:
|
|
355
316
|
* ```typescript
|
|
356
317
|
* const status = await Agents.getAgentStatus({
|
|
357
|
-
* agentId: '
|
|
318
|
+
* agentId: 'agent-id',
|
|
358
319
|
* version: 2
|
|
359
320
|
* });
|
|
360
321
|
* ```
|
|
361
322
|
*
|
|
362
323
|
* @remarks
|
|
363
324
|
* Makes a GET request to the `/agents/agent-status` endpoint or `/agents/status` endpoint if version is 2
|
|
364
|
-
*
|
|
365
325
|
* @public
|
|
366
326
|
*/
|
|
367
327
|
public static async getAgentStatus(
|
|
@@ -382,31 +342,22 @@ export class Agents extends HITLBase {
|
|
|
382
342
|
}
|
|
383
343
|
|
|
384
344
|
/**
|
|
385
|
-
*
|
|
345
|
+
* Send an Agent status "ping" message to keep Agent "online"
|
|
386
346
|
*
|
|
387
|
-
* @param options - Configuration options for the agent status ping
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* @param [options
|
|
347
|
+
* @param {Object} options - Configuration options for the agent status ping
|
|
348
|
+
* @param {string} [options.agentId] - Identifier of the agent to ping
|
|
349
|
+
* @param {number} [options.version] - API version
|
|
350
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
391
351
|
*
|
|
392
352
|
* @returns {Promise<GetAgentStatusResponse>} Promise resolving to updated agent status
|
|
393
|
-
* See {@link GetAgentStatusResponse} in types/agents.ts for complete type definition
|
|
394
|
-
*
|
|
395
|
-
* @throws HITLAuthenticationError
|
|
396
|
-
* @throws HITLValidationError
|
|
397
|
-
* @throws HITLApiError
|
|
398
353
|
*
|
|
399
354
|
* @example
|
|
400
355
|
* ```typescript
|
|
401
|
-
*
|
|
402
|
-
* const status = await Agents.pingAgentStatus({
|
|
403
|
-
* agentId: 'agent123'
|
|
404
|
-
* });
|
|
356
|
+
* const status = await Agents.pingAgentStatus();
|
|
405
357
|
* ```
|
|
406
358
|
*
|
|
407
359
|
* @remarks
|
|
408
360
|
* Makes a PUT request to the `/agents/ping-agent-status` endpoint
|
|
409
|
-
*
|
|
410
361
|
* @public
|
|
411
362
|
*/
|
|
412
363
|
public static async pingAgentStatus(
|
|
@@ -425,51 +376,44 @@ export class Agents extends HITLBase {
|
|
|
425
376
|
}
|
|
426
377
|
|
|
427
378
|
/**
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* @param options - Configuration options for setting agent status
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
*
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
* @param options
|
|
379
|
+
* Set Agent status
|
|
380
|
+
*
|
|
381
|
+
* @param {Object} options - Configuration options for setting agent status
|
|
382
|
+
* @param {string} options.agentId - Required identifier of the agent to update
|
|
383
|
+
* @param {Object} options.statusData - Required status data object
|
|
384
|
+
* @param {string} options.statusData.status - Agent status value
|
|
385
|
+
* @param {string} [options.statusData.busyReason] - Reason for busy status
|
|
386
|
+
* @param {number} [options.statusData.expireIn] - Time in seconds until status expires
|
|
387
|
+
* @param {boolean} [options.notifyStatusChange] - Flag to notify about status change
|
|
388
|
+
* @param {Object} [options.statusChangeContext] - Context data for status change
|
|
389
|
+
* @param {number} [options.version] - API version
|
|
390
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
441
391
|
*
|
|
442
392
|
* @returns {Promise<void>} Promise that resolves when status is successfully set
|
|
443
393
|
*
|
|
444
|
-
* @throws HITLAuthenticationError
|
|
445
|
-
* @throws HITLValidationError
|
|
446
|
-
* @throws HITLApiError
|
|
447
|
-
*
|
|
448
394
|
* @example
|
|
449
395
|
* ```typescript
|
|
450
396
|
* await Agents.setAgentStatus({
|
|
451
|
-
* agentId: '
|
|
452
|
-
|
|
453
|
-
* statusData: {
|
|
397
|
+
* agentId: 'agent-id',
|
|
398
|
+
* statusData: {
|
|
454
399
|
* key: 'busy',
|
|
455
|
-
* status: 'BUSY',
|
|
456
|
-
* expireIn: 60,
|
|
457
400
|
* order: 1,
|
|
401
|
+
* status: 'BUSY',
|
|
458
402
|
* isBasic: true,
|
|
403
|
+
* expireIn: 60,
|
|
459
404
|
* canToggle: ['on', 'off']
|
|
460
405
|
* },
|
|
461
406
|
* statusChangeContext: {
|
|
462
|
-
*
|
|
463
|
-
*
|
|
407
|
+
* type: 'Manual',
|
|
408
|
+
* source: 'Agent UI'
|
|
464
409
|
* },
|
|
410
|
+
* notifyStatusChange: false,
|
|
465
411
|
* version: 2
|
|
466
412
|
* });
|
|
467
413
|
* ```
|
|
468
414
|
*
|
|
469
415
|
* @remarks
|
|
470
|
-
* Makes a PUT request to the `/agents/status` endpoint with agentId as a query parameter
|
|
471
|
-
* The statusData object follows the AgentStatus interface which allows for flexible custom fields.
|
|
472
|
-
*
|
|
416
|
+
* Makes a PUT request to the `/agents/status` endpoint with agentId as a query parameter
|
|
473
417
|
* @public
|
|
474
418
|
*/
|
|
475
419
|
public static async setAgentStatus(
|
|
@@ -491,23 +435,18 @@ export class Agents extends HITLBase {
|
|
|
491
435
|
}
|
|
492
436
|
|
|
493
437
|
/**
|
|
494
|
-
*
|
|
438
|
+
* Update Agents status by providing a raw SQL query
|
|
495
439
|
*
|
|
496
|
-
* @param options - Configuration options for updating agents' status
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
*
|
|
501
|
-
* @param options
|
|
440
|
+
* @param {Object} options - Configuration options for updating agents' status
|
|
441
|
+
* @param {string} options.query - Required SQL query or filter conditions to select agents
|
|
442
|
+
* @param {Object} [options.statusChangeContext] - Context data for status change
|
|
443
|
+
* @param {number} [options.maxRetries=3] - Number of retry attempts for concurrent updates
|
|
444
|
+
* @param {number} [options.version] - API version
|
|
445
|
+
* @param {number} [options.timeout] - Search timeout in milliseconds
|
|
502
446
|
*
|
|
503
447
|
* @returns {Promise<any>} Promise resolving to the result of the batch update operation
|
|
504
448
|
*
|
|
505
|
-
* @throws HITLAuthenticationError
|
|
506
|
-
* @throws HITLValidationError
|
|
507
|
-
* @throws HITLApiError
|
|
508
|
-
*
|
|
509
449
|
* @example
|
|
510
|
-
* With retry configuration:
|
|
511
450
|
* ```typescript
|
|
512
451
|
* const result = await Agents.updateAgentsStatusByQuery({
|
|
513
452
|
* query: `UPDATE hitl.agents SET status_data = jsonb_set(status_data, '{key}', '"busy"') WHERE status_data->>'key'='available' RETURNING*`,
|
|
@@ -518,7 +457,6 @@ export class Agents extends HITLBase {
|
|
|
518
457
|
*
|
|
519
458
|
* @remarks
|
|
520
459
|
* Makes a PUT request to the `/agents/status/query` endpoint with retry mechanism for concurrent updates
|
|
521
|
-
*
|
|
522
460
|
* @public
|
|
523
461
|
*/
|
|
524
462
|
public static async updateAgentsStatusByQuery(
|
package/src/types/agents.ts
CHANGED
|
@@ -71,4 +71,11 @@ export interface UpdateAgentsStatusByQueryOptions extends
|
|
|
71
71
|
readonly maxRetries?: number;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
/** Agent status enumeration defining possible states of an agent */
|
|
75
|
+
export { AGENT_STATUS };
|
|
76
|
+
|
|
77
|
+
/** Events that can be broadcast related to agents */
|
|
78
|
+
export { AGENT_BROADCAST_EVENTS };
|
|
79
|
+
|
|
80
|
+
/** Available user role types */
|
|
81
|
+
export { USER_ROLE };
|