@or-sdk/hitl 0.37.0-beta.4142.0 → 0.37.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/CHANGELOG.md +9 -0
- package/dist/cjs/api/Commands.js +2 -1
- package/dist/cjs/api/Commands.js.map +1 -1
- package/dist/cjs/api/Sessions.js.map +1 -1
- package/dist/esm/api/Commands.js +2 -1
- package/dist/esm/api/Commands.js.map +1 -1
- package/dist/esm/api/Sessions.js.map +1 -1
- package/dist/types/HITL.d.ts +0 -13
- package/dist/types/HITL.d.ts.map +1 -1
- package/dist/types/api/Commands.d.ts +1 -47
- package/dist/types/api/Commands.d.ts.map +1 -1
- package/dist/types/api/Contacts.d.ts +0 -37
- package/dist/types/api/Contacts.d.ts.map +1 -1
- package/dist/types/api/ContactsMeta.d.ts +0 -33
- package/dist/types/api/ContactsMeta.d.ts.map +1 -1
- package/dist/types/api/Helpers.d.ts +0 -33
- package/dist/types/api/Helpers.d.ts.map +1 -1
- package/dist/types/api/Listeners.d.ts +0 -150
- package/dist/types/api/Listeners.d.ts.map +1 -1
- package/dist/types/api/ScheduledMessages.d.ts +0 -167
- package/dist/types/api/ScheduledMessages.d.ts.map +1 -1
- package/dist/types/api/SessionRelations.d.ts +0 -109
- package/dist/types/api/SessionRelations.d.ts.map +1 -1
- package/dist/types/api/Sessions.d.ts +3 -1
- package/dist/types/api/Sessions.d.ts.map +1 -1
- package/dist/types/api/Tasks.d.ts +0 -39
- package/dist/types/api/Tasks.d.ts.map +1 -1
- package/dist/types/api/Versions.d.ts +0 -80
- package/dist/types/api/Versions.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/api/Commands.ts +5 -2
- package/src/api/Sessions.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.37.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.36.5...@or-sdk/hitl@0.37.0) (2026-05-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **hitl:** add scheduled messages API and agentId command support ([dce43c9](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/dce43c97611a2b2efb070143277513b061ab19bf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [0.36.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/hitl@0.36.4...@or-sdk/hitl@0.36.5) (2026-04-30)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @or-sdk/hitl
|
package/dist/cjs/api/Commands.js
CHANGED
|
@@ -83,10 +83,11 @@ var Commands = (function (_super) {
|
|
|
83
83
|
Commands.applyCommandToSession = function (_a) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
85
|
var route;
|
|
86
|
-
var command = _a.command, sessionId = _a.sessionId, data = _a.data, options = __rest(_a, ["command", "sessionId", "data"]);
|
|
86
|
+
var command = _a.command, sessionId = _a.sessionId, agentId = _a.agentId, data = _a.data, options = __rest(_a, ["command", "sessionId", "agentId", "data"]);
|
|
87
87
|
return __generator(this, function (_b) {
|
|
88
88
|
route = this.getBaseUrl(options);
|
|
89
89
|
return [2, this.request(__assign({ method: 'POST', route: route, params: {
|
|
90
|
+
agentId: agentId,
|
|
90
91
|
command: command,
|
|
91
92
|
sessionId: sessionId,
|
|
92
93
|
}, data: { data: data } }, this.getBaseSettings(options)))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAsC;AActC;IAA8B,4BAAQ;IAAtC;;
|
|
1
|
+
{"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAsC;AActC;IAA8B,4BAAQ;IAAtC;;IAwDA,CAAC;IAjBqB,8BAAqB,GAAzC,UACE,EAAsE;;;YAApE,IAAA,OAAO,aAAA,EAAE,SAAS,eAAA,EAAE,OAAO,aAAA,EAAE,IAAI,UAAA,EAAK,OAAO,cAA/C,2CAAiD,CAAF;;gBAEzC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBAEvC,WAAO,IAAI,CAAC,OAAO,YACjB,MAAM,EAAE,MAAM,EACd,KAAK,OAAA,EACL,MAAM,EAAE;4BACN,OAAO,SAAA;4BACP,OAAO,SAAA;4BACP,SAAS,WAAA;yBACV,EACD,IAAI,EAAE,EAAE,IAAI,MAAA,EAAE,IACX,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,EAAC;;;KACJ;IAtDgB,mBAAU,GAAG,UAAU,CAAC;IAuD3C,eAAC;CAAA,AAxDD,CAA8B,mBAAQ,GAwDrC;AAxDY,4BAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../../../src/api/Sessions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,0CAAmD;AA4BnD,uCAAsC;AAgBtC;IAA8B,4BAAQ;IAAtC;;
|
|
1
|
+
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../../../src/api/Sessions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C;;;KACJ;IAyBmB,2BAAkB,GAAtC,UACE,EAAqD;;;YAAnD,IAAA,UAAU,gBAAA,EAAK,OAAO,cAAxB,cAA0B,CAAF;;gBAElB,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;gBACvC,WAAO,IAAI,CAAC,OAAO,YACjB,MAAM,EAAE,QAAQ,EAChB,KAAK,OAAA,EACL,MAAM,EAAE,EAAE,UAAU,YAAA,EAAE,IACnB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,EAAC;;;KACJ;IAjsBgB,mBAAU,GAAG,UAAU,CAAC;IAExB,mBAAU,GAAG,QAAiB,CAAC;IAC/B,iCAAwB,GAAG,sBAA+B,CAAC;IAC3D,yBAAgB,GAAG,kBAA2B,CAAC;IAC/C,8BAAqB,GAAG,eAAwB,CAAC;IAEjD,kBAAS,GAAG,OAAgB,CAAC;IAC7B,4BAAmB,GAAG,iBAA0B,CAAC;IACjD,+BAAsB,GAAG,oBAA6B,CAAC;IACvD,kBAAS,GAAG,OAAgB,CAAC;IAC7B,mBAAU,GAAG,QAAiB,CAAC;IAurBlD,eAAC;CAAA,AAnsBD,CAA8B,mBAAQ,GAmsBrC;AAnsBY,4BAAQ"}
|
package/dist/esm/api/Commands.js
CHANGED
|
@@ -22,9 +22,10 @@ import { HITLBase } from './HITLBase';
|
|
|
22
22
|
export class Commands extends HITLBase {
|
|
23
23
|
static applyCommandToSession(_a) {
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
var { command, sessionId, data } = _a, options = __rest(_a, ["command", "sessionId", "data"]);
|
|
25
|
+
var { command, sessionId, agentId, data } = _a, options = __rest(_a, ["command", "sessionId", "agentId", "data"]);
|
|
26
26
|
const route = this.getBaseUrl(options);
|
|
27
27
|
return this.request(Object.assign({ method: 'POST', route, params: {
|
|
28
|
+
agentId,
|
|
28
29
|
command,
|
|
29
30
|
sessionId,
|
|
30
31
|
}, data: { data } }, this.getBaseSettings(options)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AActC,MAAM,OAAO,QAAS,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"Commands.js","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AActC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IAuC7B,MAAM,CAAO,qBAAqB,CACvC,EAAsE;;gBAAtE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,OAAmC,EAA9B,OAAO,cAA/C,2CAAiD,CAAF;YAE/C,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAEvC,OAAO,IAAI,CAAC,OAAO,iBACjB,MAAM,EAAE,MAAM,EACd,KAAK,EACL,MAAM,EAAE;oBACN,OAAO;oBACP,OAAO;oBACP,SAAS;iBACV,EACD,IAAI,EAAE,EAAE,IAAI,EAAE,IACX,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;;AAtDgB,mBAAU,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../../../src/api/Sessions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA4BnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAgBtC,MAAM,OAAO,QAAS,SAAQ,QAAQ;IA6C7B,MAAM,CAAO,WAAW;6DAC7B,UAA8B,EAAE;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,KAAK,EACL,MAAM,EAAE,EAAE,UAAU,EAAE,IACnB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,EAChC,CAAC;QACL,CAAC;KAAA;;AAjsBgB,mBAAU,GAAG,UAAU,CAAC;AAExB,mBAAU,GAAG,QAAiB,CAAC;AAC/B,iCAAwB,GAAG,sBAA+B,CAAC;AAC3D,yBAAgB,GAAG,kBAA2B,CAAC;AAC/C,8BAAqB,GAAG,eAAwB,CAAC;AAEjD,kBAAS,GAAG,OAAgB,CAAC;AAC7B,4BAAmB,GAAG,iBAA0B,CAAC;AACjD,+BAAsB,GAAG,oBAA6B,CAAC;AACvD,kBAAS,GAAG,OAAgB,CAAC;AAC7B,mBAAU,GAAG,QAAiB,CAAC"}
|
package/dist/types/HITL.d.ts
CHANGED
|
@@ -2,13 +2,6 @@ import { AxiosError, Base } from '@or-sdk/base';
|
|
|
2
2
|
import { Migrations, Settings, Agents, RuleGroups, ContactRuleGroups, EventTemplates, Conferences, Filters, CannedMessages, Sessions, SessionEvents, Listeners, Commands, ContactsMeta, Helpers, Versions, Tasks, SessionRelations, Contacts, ScheduledMessages } from './api';
|
|
3
3
|
import { AppError } from './AppError';
|
|
4
4
|
import { HITLConfig, AppErrorObject } from './types';
|
|
5
|
-
/**
|
|
6
|
-
* OneReach HitL service client
|
|
7
|
-
* ## Installation:
|
|
8
|
-
* ```
|
|
9
|
-
* $ npm i @or-sdk/hitl
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
5
|
export declare class HITL extends Base {
|
|
13
6
|
readonly migrations: typeof Migrations;
|
|
14
7
|
readonly settings: typeof Settings;
|
|
@@ -30,12 +23,6 @@ export declare class HITL extends Base {
|
|
|
30
23
|
readonly sessionRelations: typeof SessionRelations;
|
|
31
24
|
readonly contacts: typeof Contacts;
|
|
32
25
|
readonly scheduledMessages: typeof ScheduledMessages;
|
|
33
|
-
/**
|
|
34
|
-
* ```typescript
|
|
35
|
-
* import { HITL } from '@or-sdk/hitl'
|
|
36
|
-
* const hitlApi = new HITL({token: 'my-account-token-string', discoveryUrl: 'http://example.hitl/endpoint'});
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
26
|
constructor(params: HITLConfig);
|
|
40
27
|
parseError(e: AxiosError<AppErrorObject>): AppError;
|
|
41
28
|
}
|
package/dist/types/HITL.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HITL.d.ts","sourceRoot":"","sources":["../../src/HITL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,OAAO,EACP,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EAClB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"HITL.d.ts","sourceRoot":"","sources":["../../src/HITL.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,OAAO,EACP,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EAClB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE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
/**
|
|
4
|
-
* Manages command operations in the HitL (Human-in-the-Loop) system
|
|
5
|
-
*
|
|
6
|
-
* This class provides functionality to send and manage commands within HitL sessions,
|
|
7
|
-
* allowing control and interaction with conversations or processes.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* - All methods in this class interact with the `/commands` endpoint
|
|
11
|
-
* - These methods are available only when you pass `{ version: 1 }` in the parameters.
|
|
12
|
-
*
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
3
|
export declare class Commands extends HITLBase {
|
|
16
4
|
protected static MODULE_URL: string;
|
|
17
|
-
|
|
18
|
-
* Sends a command to the flow currently controlling the HitL session
|
|
19
|
-
*
|
|
20
|
-
* This method allows sending specific commands to modify or control the behavior
|
|
21
|
-
* of a HitL session. The command is processed by the flow's subscription
|
|
22
|
-
* of the specified session.
|
|
23
|
-
*
|
|
24
|
-
* @param options - Configuration parameters for the command
|
|
25
|
-
*
|
|
26
|
-
* Required parameters:
|
|
27
|
-
* - `command` - (string) The command to be executed in the session
|
|
28
|
-
* - `sessionId` - (string) ID of the target HITL session
|
|
29
|
-
* - `data` - (object) Command-specific payload containing parameters for execution
|
|
30
|
-
*
|
|
31
|
-
* Optional parameters:
|
|
32
|
-
* - `version` - (number) API version to use for the request
|
|
33
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
34
|
-
*
|
|
35
|
-
* @returns Promise<void> that resolves when the command is successfully applied
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* await hitlApi.commands.applyCommandToSession({
|
|
40
|
-
* command: 'send_message',
|
|
41
|
-
* sessionId: 'session-id',
|
|
42
|
-
* data: {
|
|
43
|
-
* media: [],
|
|
44
|
-
* text: 'hello world'
|
|
45
|
-
* }
|
|
46
|
-
* });
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @public
|
|
50
|
-
*/
|
|
51
|
-
static applyCommandToSession({ command, sessionId, data, ...options }: ApplyCommandOptions): Promise<void>;
|
|
5
|
+
static applyCommandToSession({ command, sessionId, agentId, data, ...options }: ApplyCommandOptions): Promise<void>;
|
|
52
6
|
}
|
|
53
7
|
//# sourceMappingURL=Commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Commands.d.ts","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Commands.d.ts","sourceRoot":"","sources":["../../../src/api/Commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AActC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAc;WAsCrB,qBAAqB,CACvC,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,mBAAmB,GACrE,OAAO,CAAC,IAAI,CAAC;CAejB"}
|
|
@@ -1,44 +1,7 @@
|
|
|
1
1
|
import { SearchContactsOptions, SearchContactsResponse } from '../types/contacts';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* This class provides functionality to search contacts with respect to
|
|
5
|
-
* agent's permissions and rule groups.
|
|
6
|
-
*
|
|
7
|
-
* Key features:
|
|
8
|
-
* - Search contacts with filtering based on agent's contact rule groups
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* - All methods in this class interact with the `/contacts` endpoint
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
3
|
export declare class Contacts extends HITLBase {
|
|
15
4
|
protected static MODULE_URL: string;
|
|
16
|
-
/**
|
|
17
|
-
* Searches for contacts limited by the agent's contact rule groups
|
|
18
|
-
*
|
|
19
|
-
* Filters out contact records not visible to a given agent, according
|
|
20
|
-
* to the contact rule groups the agent is a member of
|
|
21
|
-
*
|
|
22
|
-
* @param options - Configuration parameters for the contacts search
|
|
23
|
-
*
|
|
24
|
-
* Optional parameters:
|
|
25
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
26
|
-
* - `version` - (string | number) API version to use
|
|
27
|
-
*
|
|
28
|
-
* @returns {Promise<SearchContactsResponse>} Promise resolving to the search results
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* const contacts = await hitlApi.contacts.searchContacts({
|
|
33
|
-
* contact_book: '0cc3f3bb-a064-4b2d-89d9-4c4846a061e2',
|
|
34
|
-
* contactIds: ['contact-id-1', 'contact-id-2']
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* Makes a POST request to the `/contacts` endpoint
|
|
40
|
-
* @public
|
|
41
|
-
*/
|
|
42
5
|
static searchContacts(options: SearchContactsOptions): Promise<SearchContactsResponse>;
|
|
43
6
|
}
|
|
44
7
|
//# sourceMappingURL=Contacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../../src/api/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../../src/api/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAatC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAc;WA4BrB,cAAc,CAChC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,sBAAsB,CAAC;CAUnC"}
|
|
@@ -1,41 +1,8 @@
|
|
|
1
1
|
import { SearchContactsMetaOptions, SearchContactsMetaResponse } from '../types/contacts-meta';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* This class provides functionality to retrieve metadata information about contacts.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* - All methods in this class interact with the `/contacts-meta` endpoint
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
3
|
export declare class ContactsMeta extends HITLBase {
|
|
11
4
|
protected static MODULE_URL: string;
|
|
12
5
|
protected static SEARCH_URL: string;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieves HitL-specific contact parameters (metadata)
|
|
15
|
-
*
|
|
16
|
-
* @param options - Configuration parameters for the metadata search
|
|
17
|
-
*
|
|
18
|
-
* Required parameters:
|
|
19
|
-
* - `contactIds` - (string[]) List of specific contact IDs to retrieve
|
|
20
|
-
*
|
|
21
|
-
* Optional parameters:
|
|
22
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
23
|
-
* - `version` - (string | number) API version to use
|
|
24
|
-
*
|
|
25
|
-
* @returns {Promise<SearchContactsMetaResponse>} Promise resolving to:
|
|
26
|
-
* - `data` - Contact last event timestamps
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```typescript
|
|
30
|
-
* const metadata = await hitlApi.contactsMeta.searchContactsMeta({
|
|
31
|
-
* contactIds: ['contact-id-1', 'contact-id-2']
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Makes a POST request to the `/contacts-meta/search` endpoint
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
6
|
static searchContactsMeta(options: SearchContactsMetaOptions): Promise<SearchContactsMetaResponse>;
|
|
40
7
|
}
|
|
41
8
|
//# sourceMappingURL=ContactsMeta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsMeta.d.ts","sourceRoot":"","sources":["../../../src/api/ContactsMeta.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactsMeta.d.ts","sourceRoot":"","sources":["../../../src/api/ContactsMeta.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAStC,qBAAa,YAAa,SAAQ,QAAQ;IACxC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAmB;IAC9C,SAAS,CAAC,MAAM,CAAC,UAAU,SAAY;WA4BnB,kBAAkB,CACpC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,0BAA0B,CAAC;CAcvC"}
|
|
@@ -1,42 +1,9 @@
|
|
|
1
1
|
import { ApiVersionOptions } from '../types';
|
|
2
2
|
import { CleanUpDuplicatesResponse } from '../types/helpers';
|
|
3
3
|
import { HITLBase } from './HITLBase';
|
|
4
|
-
/**
|
|
5
|
-
* Provides helper utilities for the HITL system
|
|
6
|
-
*
|
|
7
|
-
* This class contains utility methods for maintaining and cleaning up
|
|
8
|
-
* system data, such as removing duplicate contacts.
|
|
9
|
-
*
|
|
10
|
-
* Key features:
|
|
11
|
-
* - Clean up duplicate contacts
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* - All methods in this class interact with the `/helpers` endpoint
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
4
|
export declare class Helpers extends HITLBase {
|
|
18
5
|
protected static MODULE_URL: string;
|
|
19
6
|
protected static CLEAN_CONTACTS: string;
|
|
20
|
-
/**
|
|
21
|
-
* Deletes duplicate contacts from Tables-based contacts (v1)
|
|
22
|
-
*
|
|
23
|
-
* @param options - Configuration parameters for the cleanup operation
|
|
24
|
-
*
|
|
25
|
-
* Optional parameters:
|
|
26
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
27
|
-
* - `version` - (string | number) API version to use
|
|
28
|
-
*
|
|
29
|
-
* @returns {Promise<CleanUpDuplicatesResponse>} Promise resolving to the cleanup operation results
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```typescript
|
|
33
|
-
* const result = await hitlApi.helpers.deleteContactDuplicates();
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Makes a DELETE request to the `/helpers/clean-contact-duplicates` endpoint
|
|
38
|
-
* @public
|
|
39
|
-
*/
|
|
40
7
|
static deleteContactDuplicates(options: ApiVersionOptions): Promise<CleanUpDuplicatesResponse>;
|
|
41
8
|
}
|
|
42
9
|
//# sourceMappingURL=Helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Helpers.d.ts","sourceRoot":"","sources":["../../../src/api/Helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Helpers.d.ts","sourceRoot":"","sources":["../../../src/api/Helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAa;IACxC,SAAS,CAAC,MAAM,CAAC,cAAc,SAA8B;WAsBzC,uBAAuB,CACzC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,yBAAyB,CAAC;CAUtC"}
|
|
@@ -1,162 +1,12 @@
|
|
|
1
1
|
import { Listener, GetListenersOptions, GetListenerByIdOptions, GetListenersResponse, CreateListenersOptions, UpdateListenersOptions, DeleteListenersOptions } from '../types/listeners';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* Manages HitL event listeners in the system
|
|
5
|
-
*
|
|
6
|
-
* This class provides functionality to manage event listeners, which can be:
|
|
7
|
-
* - Active WebSocket connections in Agent UI
|
|
8
|
-
* - Flow event subscription callbacks
|
|
9
|
-
* - Mobile application push notification callbacks
|
|
10
|
-
*
|
|
11
|
-
* Key features:
|
|
12
|
-
* - Retrieve listeners (all or by ID)
|
|
13
|
-
* - Create new listeners
|
|
14
|
-
* - Update existing listeners
|
|
15
|
-
* - Delete listeners
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* - All methods in this class interact with the `/listeners` endpoint
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
3
|
export declare class Listeners extends HITLBase {
|
|
22
4
|
protected static MODULE_URL: string;
|
|
23
5
|
protected static LISTENER_VERSION_FIELD: "listenerVersion";
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves a list of HitL event listeners
|
|
26
|
-
*
|
|
27
|
-
* @param options - Configuration parameters for retrieving listeners
|
|
28
|
-
*
|
|
29
|
-
* Optional parameters:
|
|
30
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
31
|
-
* - `version` - (string | number) API version to use
|
|
32
|
-
*
|
|
33
|
-
* @returns {Promise<GetListenersResponse>} Promise resolving to the listeners list
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const listeners = await hitlApi.listeners.getListeners();
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Makes a GET request to the `/listeners` endpoint
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
6
|
static getListeners(options?: GetListenersOptions): Promise<GetListenersResponse>;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieves a specific HitL event listener by ID
|
|
47
|
-
*
|
|
48
|
-
* @param options - Configuration parameters for retrieving the listener
|
|
49
|
-
*
|
|
50
|
-
* Required parameters:
|
|
51
|
-
* - `callbackId` - (string) ID of the listener to retrieve
|
|
52
|
-
*
|
|
53
|
-
* Optional parameters:
|
|
54
|
-
* - `agentId` - (string) Agent ID to filter by
|
|
55
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
56
|
-
* - `version` - (string | number) API version to use
|
|
57
|
-
*
|
|
58
|
-
* @returns {Promise<GetListenersResponse>} Promise resolving to the listener details
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```typescript
|
|
62
|
-
* const listener = await hitlApi.listeners.getListenerById({
|
|
63
|
-
* callbackId: 'listener-1'
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*
|
|
67
|
-
* @remarks
|
|
68
|
-
* Makes a GET request to the `/listeners/{callbackId}` endpoint
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
7
|
static getListenerById({ agentId, callbackId, ...options }: GetListenerByIdOptions): Promise<GetListenersResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* Creates a new HitL event listener
|
|
74
|
-
*
|
|
75
|
-
* @param options - Configuration parameters for creating the listener
|
|
76
|
-
*
|
|
77
|
-
* Required parameters:
|
|
78
|
-
* - `callback` - ({@link ListenerCallback}) Callback configuration for the listener
|
|
79
|
-
*
|
|
80
|
-
* Optional parameters:
|
|
81
|
-
* - `agentId` - (string) ID of the agent associated with the listener
|
|
82
|
-
* - `listenerVersion` - (number) Version of the listener
|
|
83
|
-
* - `sessionIds` - (string[]) Array of session IDs to associate with the listener
|
|
84
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
85
|
-
* - `type` - (any) Type of the listener
|
|
86
|
-
* - `version` - (string | number) API version to use
|
|
87
|
-
*
|
|
88
|
-
* @returns {Promise<Listener>} Promise resolving to the created listener
|
|
89
|
-
*
|
|
90
|
-
* @example
|
|
91
|
-
* ```typescript
|
|
92
|
-
* const newListener = await hitlApi.listeners.createListener({
|
|
93
|
-
* callback: {
|
|
94
|
-
* type: "sync",
|
|
95
|
-
* expire: 1750940155085,
|
|
96
|
-
* name: "MxPMqfr4PHcCGCw=",
|
|
97
|
-
* v: 0
|
|
98
|
-
* }
|
|
99
|
-
* });
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* Makes a POST request to the `/listeners` endpoint
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
8
|
static createListener(options: CreateListenersOptions): Promise<Listener>;
|
|
107
|
-
/**
|
|
108
|
-
* Updates an existing HitL event listener
|
|
109
|
-
*
|
|
110
|
-
* @param options - Configuration parameters for updating the listener
|
|
111
|
-
*
|
|
112
|
-
* Required parameters:
|
|
113
|
-
* - `callbackId` - (string) ID of the listener to update
|
|
114
|
-
* - `sessionIds` - (string[]) list of subscribed sessions by this listener
|
|
115
|
-
*
|
|
116
|
-
* Optional parameters:
|
|
117
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
118
|
-
* - `version` - (string | number) API version to use
|
|
119
|
-
*
|
|
120
|
-
* @returns {Promise<Listener>} Promise resolving to the updated listener
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* const updatedListener = await hitlApi.listeners.updateListener({
|
|
125
|
-
* callbackId: 'listener-1',
|
|
126
|
-
* sessionIds: ['session-id-1']
|
|
127
|
-
* });
|
|
128
|
-
* ```
|
|
129
|
-
*
|
|
130
|
-
* @remarks
|
|
131
|
-
* Makes a PUT request to the `/listeners/{callbackId}` endpoint
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
9
|
static updateListener({ callbackId, ...options }: UpdateListenersOptions): Promise<Listener>;
|
|
135
|
-
/**
|
|
136
|
-
* Deletes a HitL event listener
|
|
137
|
-
*
|
|
138
|
-
* @param options - Configuration parameters for deleting the listener
|
|
139
|
-
*
|
|
140
|
-
* Required parameters:
|
|
141
|
-
* - `callbackId` - (string) ID of the listener to delete
|
|
142
|
-
*
|
|
143
|
-
* Optional parameters:
|
|
144
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
145
|
-
* - `version` - (string | number) API version to use
|
|
146
|
-
*
|
|
147
|
-
* @returns {Promise<void>} Promise that resolves when deletion is complete
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* await hitlApi.listeners.deleteListener({
|
|
152
|
-
* callbackId: 'listener-1',
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*
|
|
156
|
-
* @remarks
|
|
157
|
-
* Makes a DELETE request to the `/listeners/{callbackId}` endpoint
|
|
158
|
-
* @public
|
|
159
|
-
*/
|
|
160
10
|
static deleteListener({ callbackId, ...options }: DeleteListenersOptions): Promise<void>;
|
|
161
11
|
}
|
|
162
12
|
//# sourceMappingURL=Listeners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Listeners.d.ts","sourceRoot":"","sources":["../../../src/api/Listeners.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAGR,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Listeners.d.ts","sourceRoot":"","sources":["../../../src/api/Listeners.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAGR,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAoBtC,qBAAa,SAAU,SAAQ,QAAQ;IACrC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAe;IAC1C,SAAS,CAAC,MAAM,CAAC,sBAAsB,oBAA8B;WAsBjD,YAAY,CAC9B,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,oBAAoB,CAAC;WAwCZ,eAAe,CACjC,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GAC1D,OAAO,CAAC,oBAAoB,CAAC;WA8CZ,cAAc,CAChC,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,QAAQ,CAAC;WA4CA,cAAc,CAChC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GACjD,OAAO,CAAC,QAAQ,CAAC;WAwCA,cAAc,CAChC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,sBAAsB,GACjD,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|
|
@@ -1,177 +1,10 @@
|
|
|
1
1
|
import { ScheduledMessage, GetScheduledMessagesOptions, GetScheduledMessagesResponse, CreateScheduledMessageOptions, UpdateScheduledMessageOptions, DeleteScheduledMessageOptions } from '../types/scheduled-messages';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* Manages scheduled messages in the system
|
|
5
|
-
*
|
|
6
|
-
* This class provides functionality to create, retrieve, update, and delete scheduled messages.
|
|
7
|
-
* Scheduled messages are messages that can be sent at a specific time to contacts and sessions.
|
|
8
|
-
*
|
|
9
|
-
* Key features:
|
|
10
|
-
* - Schedule messages for future delivery
|
|
11
|
-
* - Target specific contacts and sessions
|
|
12
|
-
* - Support for various channel types for messages
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* Basic usage:
|
|
16
|
-
* ```typescript
|
|
17
|
-
* // Get all scheduled messages
|
|
18
|
-
* const messages = await hitlApi.scheduledMessages.getScheduledMessages();
|
|
19
|
-
*
|
|
20
|
-
* // Create a new scheduled message
|
|
21
|
-
* const newMessage = await hitlApi.scheduledMessages.createScheduledMessage({
|
|
22
|
-
* message: {
|
|
23
|
-
* message: 'Hello! This is a scheduled message.',
|
|
24
|
-
* media: []
|
|
25
|
-
* },
|
|
26
|
-
* type: 'SMS',
|
|
27
|
-
* contactIds: ['contact-1', 'contact-2'],
|
|
28
|
-
* timestamp: new Date('2024-12-25T10:00:00Z').toISOString()
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* - All methods in this class interact with the `/scheduled-messages` endpoint
|
|
34
|
-
* - These methods are available only when you pass `{ version: 1 }` in the parameters.
|
|
35
|
-
* @public
|
|
36
|
-
*/
|
|
37
3
|
export declare class ScheduledMessages extends HITLBase {
|
|
38
4
|
protected static MODULE_URL: string;
|
|
39
|
-
/**
|
|
40
|
-
* Gets a list of scheduled messages
|
|
41
|
-
*
|
|
42
|
-
* @param options - Configuration parameters for the scheduled messages list request
|
|
43
|
-
*
|
|
44
|
-
* Optional parameters:
|
|
45
|
-
* - `id` - (string) Get specific scheduled message by ID
|
|
46
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
47
|
-
* - `version` - (string | number) API version to use
|
|
48
|
-
*
|
|
49
|
-
* @returns {Promise<GetScheduledMessagesResponse | ScheduledMessage>} Promise resolving to:
|
|
50
|
-
* - `data` - Array of scheduled message objects {@link ScheduledMessage}
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* const response = await hitlApi.scheduledMessages.getScheduledMessages({
|
|
55
|
-
* id: 'message-id-1'
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* Makes a GET request to the `/scheduled-messages` endpoint
|
|
61
|
-
* @public
|
|
62
|
-
*/
|
|
63
5
|
static getScheduledMessages(options?: GetScheduledMessagesOptions): Promise<GetScheduledMessagesResponse | ScheduledMessage>;
|
|
64
|
-
/**
|
|
65
|
-
* Creates a new scheduled message
|
|
66
|
-
*
|
|
67
|
-
* @param options - Configuration parameters for creating the scheduled message
|
|
68
|
-
*
|
|
69
|
-
* Required parameters:
|
|
70
|
-
* - `message` - (Message) Message content and media
|
|
71
|
-
* - `type` - (string) Type of the scheduled message
|
|
72
|
-
* - `contactIds` - (string[]) Array of contact IDs to send the message to
|
|
73
|
-
* - `timestamp` - (Date) When the message should be sent
|
|
74
|
-
*
|
|
75
|
-
* Optional parameters:
|
|
76
|
-
* - `sessionId` - (string) Session ID to associate with
|
|
77
|
-
* - `toIdentifier` - (string) Identifier for message targeting
|
|
78
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
79
|
-
* - `version` - (string | number) API version to use
|
|
80
|
-
*
|
|
81
|
-
* @returns {Promise<ScheduledMessage>} Promise resolving to the created scheduled message
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* ```typescript
|
|
85
|
-
* const newMessage = await hitlApi.scheduledMessages.createScheduledMessage({
|
|
86
|
-
* message: {
|
|
87
|
-
* message: 'Your appointment is tomorrow at 3 PM',
|
|
88
|
-
* media: [
|
|
89
|
-
* {
|
|
90
|
-
* type: 'image',
|
|
91
|
-
* url: 'https://example.com/reminder.jpg'
|
|
92
|
-
* }
|
|
93
|
-
* ]
|
|
94
|
-
* },
|
|
95
|
-
* type: 'SMS',
|
|
96
|
-
* contactIds: ['contact-123'],
|
|
97
|
-
* timestamp: new Date('2024-12-24T15:00:00Z').toISOString(),
|
|
98
|
-
* sessionId: 'session-456'
|
|
99
|
-
* });
|
|
100
|
-
* ```
|
|
101
|
-
*
|
|
102
|
-
* @remarks
|
|
103
|
-
* Makes a POST request to the `/scheduled-messages` endpoint
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
6
|
static createScheduledMessage(options: CreateScheduledMessageOptions): Promise<ScheduledMessage>;
|
|
107
|
-
/**
|
|
108
|
-
* Updates an existing scheduled message
|
|
109
|
-
*
|
|
110
|
-
* @param options - Configuration parameters for updating the scheduled message
|
|
111
|
-
*
|
|
112
|
-
* Required parameters:
|
|
113
|
-
* - `id` - (string) Unique identifier of the message to update
|
|
114
|
-
*
|
|
115
|
-
* Optional parameters:
|
|
116
|
-
* - `message` - (Message) Updated message content and media
|
|
117
|
-
* - `type` - (string) Updated type of the scheduled message
|
|
118
|
-
* - `contactIds` - (string[]) Updated array of contact IDs
|
|
119
|
-
* - `sessionId` - (string) Updated session ID
|
|
120
|
-
* - `toIdentifier` - (string) Updated identifier for message targeting
|
|
121
|
-
* - `timestamp` - (Date) Updated send time
|
|
122
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
123
|
-
* - `version` - (string | number) API version to use
|
|
124
|
-
*
|
|
125
|
-
* System fields (automatically managed):
|
|
126
|
-
* - `createdAt` - (Date) Creation timestamp
|
|
127
|
-
* - `updatedAt` - (Date) Last update timestamp
|
|
128
|
-
* - `agentId` - (string) Agent who created the message
|
|
129
|
-
* - `status` - (string) Current status of the message
|
|
130
|
-
*
|
|
131
|
-
* @returns {Promise<ScheduledMessage>} Promise resolving to the updated scheduled message
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* const updatedMessage = await hitlApi.scheduledMessages.updateScheduledMessage({
|
|
136
|
-
* id: "msg-id-1",
|
|
137
|
-
* message: {
|
|
138
|
-
* message: "Updated reminder: Your appointment is at 4 PM",
|
|
139
|
-
* media: []
|
|
140
|
-
* },
|
|
141
|
-
* timestamp: new Date('2024-12-24T16:00:00Z').toISOString()
|
|
142
|
-
* });
|
|
143
|
-
* ```
|
|
144
|
-
*
|
|
145
|
-
* @remarks
|
|
146
|
-
* Makes a PUT request to the `/scheduled-messages` endpoint
|
|
147
|
-
* @public
|
|
148
|
-
*/
|
|
149
7
|
static updateScheduledMessage(options: UpdateScheduledMessageOptions): Promise<ScheduledMessage>;
|
|
150
|
-
/**
|
|
151
|
-
* Deletes a scheduled message
|
|
152
|
-
*
|
|
153
|
-
* @param options - Configuration parameters for deleting the scheduled message
|
|
154
|
-
*
|
|
155
|
-
* Required parameters:
|
|
156
|
-
* - `id` - (string) Unique identifier of the message to delete
|
|
157
|
-
*
|
|
158
|
-
* Optional parameters:
|
|
159
|
-
* - `version` - (string | number) API version to use
|
|
160
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
161
|
-
*
|
|
162
|
-
* @returns {Promise<void>} Promise that resolves when deletion is complete
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* await hitlApi.scheduledMessages.deleteScheduledMessage({
|
|
167
|
-
* id: "msg-id-1"
|
|
168
|
-
* });
|
|
169
|
-
* ```
|
|
170
|
-
*
|
|
171
|
-
* @remarks
|
|
172
|
-
* Makes a DELETE request to the `/scheduled-messages` endpoint
|
|
173
|
-
* @public
|
|
174
|
-
*/
|
|
175
8
|
static deleteScheduledMessage({ id, ...options }: DeleteScheduledMessageOptions): Promise<void>;
|
|
176
9
|
}
|
|
177
10
|
//# sourceMappingURL=ScheduledMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledMessages.d.ts","sourceRoot":"","sources":["../../../src/api/ScheduledMessages.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduledMessages.d.ts","sourceRoot":"","sources":["../../../src/api/ScheduledMessages.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAqCtC,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,SAAS,CAAC,MAAM,CAAC,UAAU,SAAwB;WA0B/B,oBAAoB,CACtC,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,4BAA4B,GAAG,gBAAgB,CAAC;WAwDvC,sBAAsB,CACxC,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,gBAAgB,CAAC;WAwDR,sBAAsB,CACxC,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,gBAAgB,CAAC;WAuCR,sBAAsB,CACxC,EAAE,EAAE,EAAE,GAAG,OAAO,EAAE,EAAE,6BAA6B,GAChD,OAAO,CAAC,IAAI,CAAC;CAUjB"}
|
|
@@ -1,118 +1,9 @@
|
|
|
1
1
|
import { GetSessionRelationsOptions, GetSessionRelationsResponse, CreateSessionRelationsOptions, CreateSessionRelationsResponse, DeleteSessionRelationsOptions } from '../types/session-relations';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* Manages relationships between HitL (Human-in-the-Loop) sessions
|
|
5
|
-
*
|
|
6
|
-
* This class provides functionality to:
|
|
7
|
-
* - Retrieve session relationships
|
|
8
|
-
* - Create new relationships between sessions
|
|
9
|
-
* - Remove existing relationships
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* - All methods in this class interact with the `/session-relations` endpoint
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
3
|
export declare class SessionRelations extends HITLBase {
|
|
16
4
|
protected static MODULE_URL: string;
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves a list of HitL session relations based on specified criteria
|
|
19
|
-
*
|
|
20
|
-
* @param options - Configuration parameters for retrieving HitL session relations
|
|
21
|
-
*
|
|
22
|
-
* Required parameters:
|
|
23
|
-
* - `sessionIds` - (string[]) Array of session IDs to retrieve relations for
|
|
24
|
-
*
|
|
25
|
-
* Optional parameters:
|
|
26
|
-
* - `relations` - (string[]) Array of specific relation types to retrieve
|
|
27
|
-
* - `skipSessions` - (boolean) Whether to skip retrieving session details
|
|
28
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
29
|
-
* - `version` - (string | number) API version to use
|
|
30
|
-
*
|
|
31
|
-
* @returns {Promise<GetSessionRelationsResponse>} Promise resolving to session relationships
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* // Get all relations and sessions from this relations for specific sessions
|
|
36
|
-
* const relations = await hitlApi.sessionRelations.getSessionRelations({
|
|
37
|
-
* sessionIds: ['session-id-1', 'session-id-2']
|
|
38
|
-
* });
|
|
39
|
-
*
|
|
40
|
-
* // Get specific relation types with session details skipped
|
|
41
|
-
* const relations = await hitlApi.sessionRelations.getSessionRelations({
|
|
42
|
-
* sessionIds: ['session-id-1'],
|
|
43
|
-
* relations: ['parent', 'child'],
|
|
44
|
-
* skipSessions: true
|
|
45
|
-
* });
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* Makes a GET request to the `/session-relations` endpoint
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
5
|
static getSessionRelations(options: GetSessionRelationsOptions): Promise<GetSessionRelationsResponse>;
|
|
53
|
-
/**
|
|
54
|
-
* Creates new relations between HitL sessions
|
|
55
|
-
*
|
|
56
|
-
* @param options - Configuration parameters for creating session relations
|
|
57
|
-
*
|
|
58
|
-
* Required parameters:
|
|
59
|
-
* - `relations` - ({@link SessionRelation}[]) Array of session relation objects to create
|
|
60
|
-
*
|
|
61
|
-
* Optional parameters:
|
|
62
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
63
|
-
* - `version` - (string | number) API version to use
|
|
64
|
-
*
|
|
65
|
-
* @returns {Promise<SessionRelation[]>} Promise resolving to array of created session relations
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```typescript
|
|
69
|
-
* const created = await hitlApi.sessionRelations.createSessionRelations({
|
|
70
|
-
* relations: [{
|
|
71
|
-
* aSessionId: 'session-id-1',
|
|
72
|
-
* bSessionId: 'session-id-2',
|
|
73
|
-
* relation: 'parent'
|
|
74
|
-
* }, {
|
|
75
|
-
* aSessionId: 'session-id-1',
|
|
76
|
-
* bSessionId: 'session-id-3',
|
|
77
|
-
* relation: 'parent'
|
|
78
|
-
* }]
|
|
79
|
-
* });
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @remarks
|
|
83
|
-
* Makes a POST request to the `/session-relations` endpoint
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
6
|
static createSessionRelations(options: CreateSessionRelationsOptions): Promise<CreateSessionRelationsResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* Deletes specified HitL session relationships
|
|
89
|
-
*
|
|
90
|
-
* @param options - Configuration parameters for deleting relationships
|
|
91
|
-
*
|
|
92
|
-
* Required parameters:
|
|
93
|
-
* - `relations` - ({@link SessionRelation}[]) Array of session relation objects to delete
|
|
94
|
-
*
|
|
95
|
-
* Optional parameters:
|
|
96
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
97
|
-
* - `version` - (string | number) API version to use
|
|
98
|
-
*
|
|
99
|
-
* @returns {Promise<void>} Promise that resolves when deletion is complete
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```typescript
|
|
103
|
-
* await hitlApi.sessionRelations.deleteSessionRelations({
|
|
104
|
-
* relations: [{
|
|
105
|
-
* aSessionId: 'session-id-1',
|
|
106
|
-
* bSessionId: 'session-id-2',
|
|
107
|
-
* relation: 'parent'
|
|
108
|
-
* }]
|
|
109
|
-
* });
|
|
110
|
-
* ```
|
|
111
|
-
*
|
|
112
|
-
* @remarks
|
|
113
|
-
* Makes a DELETE request to the `/session-relations` endpoint
|
|
114
|
-
* @public
|
|
115
|
-
*/
|
|
116
7
|
static deleteSessionRelations(options: DeleteSessionRelationsOptions): Promise<void>;
|
|
117
8
|
}
|
|
118
9
|
//# sourceMappingURL=SessionRelations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRelations.d.ts","sourceRoot":"","sources":["../../../src/api/SessionRelations.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionRelations.d.ts","sourceRoot":"","sources":["../../../src/api/SessionRelations.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AActC,qBAAa,gBAAiB,SAAQ,QAAQ;IAC5C,SAAS,CAAC,MAAM,CAAC,UAAU,SAAuB;WAqCpC,mBAAmB,CAC/B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,2BAA2B,CAAC;WA+CzB,sBAAsB,CAClC,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,8BAA8B,CAAC;WA2C5B,sBAAsB,CAClC,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,IAAI,CAAC;CAajB"}
|
|
@@ -117,7 +117,9 @@ export declare class Sessions extends HITLBase {
|
|
|
117
117
|
* status: ['ONGOING', 'CLAIMED'],
|
|
118
118
|
* tags: ['wait_for_agent'],
|
|
119
119
|
* type: 'SMS',
|
|
120
|
-
*
|
|
120
|
+
* sessionsSearchOptions: {
|
|
121
|
+
* limit: 25
|
|
122
|
+
* }
|
|
121
123
|
* });
|
|
122
124
|
*
|
|
123
125
|
* // Search by meta with conditions
|
|
@@ -1 +1 @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;;;;;;;;;;;;;;;;OA+BG;WACiB,aAAa,CAC/B,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,oBAAoB,GACrE,OAAO,CAAC,OAAO,CAAC;IAgBnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCG;WACiB,cAAc,CAChC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,qBAAqB,GAC9C,OAAO,CAAC,sBAAsB,CAAC;IAUlC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACiB,YAAY,CAC9B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,OAAO,CAAC;IAcnB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;WACiB,aAAa,CAC/B,EAAE,gBAAgB,EAAE,GAAG,OAAO,EAAE,EAAE,oBAAoB,GACrD,OAAO,CAAC,OAAO,CAAC;IAenB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;WACiB,mBAAmB,CACrC,OAAO,EAAE,0BAA0B;IAWrC;;OAEG;WACiB,kBAAkB,CACpC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,yBAAyB;IAQvD;;;;;;;;;;;;;;;;;;;;;;OAsBG;WACiB,kBAAkB,CACpC,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,EAAE,yBAAyB;CAUxD"}
|
|
@@ -1,46 +1,7 @@
|
|
|
1
1
|
import { RunTaskOptions } from '../types/tasks';
|
|
2
2
|
import { HITLBase } from './HITLBase';
|
|
3
|
-
/**
|
|
4
|
-
* Manages asynchronous task execution in the system
|
|
5
|
-
*
|
|
6
|
-
* This class provides functionality to:
|
|
7
|
-
* - Execute various system tasks like event sending, broadcasting, sharing cards to agents, etc.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* - All methods in this class interact with the `/tasks` endpoint
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
3
|
export declare class Tasks extends HITLBase {
|
|
14
4
|
protected static MODULE_URL: string;
|
|
15
|
-
/**
|
|
16
|
-
* Executes a specified task with provided data
|
|
17
|
-
*
|
|
18
|
-
* @param options - Configuration parameters for task execution
|
|
19
|
-
*
|
|
20
|
-
* Required parameters:
|
|
21
|
-
* - `task` - (string) The type/name of task to execute
|
|
22
|
-
* - `data` - (object) Task-specific data required for execution
|
|
23
|
-
*
|
|
24
|
-
* Optional parameters:
|
|
25
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
26
|
-
* - `version` - (string | number) API version to use
|
|
27
|
-
*
|
|
28
|
-
* @returns {Promise<void>} Promise that resolves when the task is initiated
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* await hitlApi.tasks.runTask({
|
|
33
|
-
* task: 'shareCardsToAgents',
|
|
34
|
-
* data: {
|
|
35
|
-
* cardIds: ['card-id-1', 'card-id-2'],
|
|
36
|
-
* }
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @remarks
|
|
41
|
-
* Makes a POST request to the `/tasks` endpoint
|
|
42
|
-
* @public
|
|
43
|
-
*/
|
|
44
5
|
static runTask({ task, data, ...options }: RunTaskOptions): Promise<void>;
|
|
45
6
|
}
|
|
46
7
|
//# sourceMappingURL=Tasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tasks.d.ts","sourceRoot":"","sources":["../../../src/api/Tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Tasks.d.ts","sourceRoot":"","sources":["../../../src/api/Tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAYtC,qBAAa,KAAM,SAAQ,QAAQ;IACjC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAW;WA+BlB,OAAO,CACzB,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,cAAc,GACzC,OAAO,CAAC,IAAI,CAAC;CAWjB"}
|
|
@@ -1,92 +1,12 @@
|
|
|
1
1
|
import { ApiVersionOptions } from '../types';
|
|
2
2
|
import { GetVersionsListResponse, GetVersionInfoResponse, GetStepsToUIVersionsMapOptions } from '../types/versions';
|
|
3
3
|
import { HITLBase } from './HITLBase';
|
|
4
|
-
/**
|
|
5
|
-
* Manages UI version information and compatibility
|
|
6
|
-
*
|
|
7
|
-
* This class provides functionality to:
|
|
8
|
-
* - Retrieve available UI versions
|
|
9
|
-
* - Get detailed version information
|
|
10
|
-
*
|
|
11
|
-
* Key features:
|
|
12
|
-
* - List all available UI versions
|
|
13
|
-
* - Get specific version details
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* - All methods in this class interact with the `/ui-versions` endpoint
|
|
17
|
-
* @public
|
|
18
|
-
*/
|
|
19
4
|
export declare class Versions extends HITLBase {
|
|
20
5
|
protected static MODULE_URL: string;
|
|
21
6
|
protected static VERSION_INFO: string;
|
|
22
7
|
protected static STEPS_TO_UI_VERSIONS_MAP: string;
|
|
23
|
-
/**
|
|
24
|
-
* Retrieves a list of available UI versions
|
|
25
|
-
*
|
|
26
|
-
* @param options - Configuration parameters for retrieving versions
|
|
27
|
-
*
|
|
28
|
-
* Optional parameters:
|
|
29
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
30
|
-
* - `version` - (string | number) API version to use
|
|
31
|
-
*
|
|
32
|
-
* @returns {Promise<GetVersionsListResponse>} Promise resolving to the list of available versions
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* const versions = await hitlApi.versions.getVersionsList();
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* Makes a GET request to the `/ui-versions` endpoint
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
8
|
static getVersionsList(options: ApiVersionOptions): Promise<GetVersionsListResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves detailed information about the last available version of HitL UI
|
|
46
|
-
*
|
|
47
|
-
* @param options - Configuration parameters for retrieving version information
|
|
48
|
-
*
|
|
49
|
-
* Optional parameters:
|
|
50
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
51
|
-
* - `version` - (string | number) API version to use
|
|
52
|
-
*
|
|
53
|
-
* @returns {Promise<GetVersionInfoResponse>} Promise resolving to the version information
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const versionInfo = await hitlApi.versions.getVersionInfo();
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @remarks
|
|
61
|
-
* Makes a GET request to the `/ui-versions/version-info` endpoint
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
9
|
static getVersionInfo(options: ApiVersionOptions): Promise<GetVersionInfoResponse>;
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves information about the compatibility of steps to UI versions
|
|
67
|
-
*
|
|
68
|
-
* @param options - Configuration parameters for retrieving steps to UI versions map
|
|
69
|
-
*
|
|
70
|
-
* Optional parameters:
|
|
71
|
-
* - `stepName` - (string) The name of the step to retrieve mapping information for
|
|
72
|
-
* - `timeout` - (number) Request timeout in milliseconds
|
|
73
|
-
* - `version` - (string | number) API version to use
|
|
74
|
-
*
|
|
75
|
-
* @returns {Promise<GetStepsToUIVersionsMapResponse>} Promise resolving to steps to UI versions map
|
|
76
|
-
*
|
|
77
|
-
* @example
|
|
78
|
-
* ```typescript
|
|
79
|
-
* const stepsToUIVesionsMap = await hitlApi.versions.getStepsToUIVersionsMap();
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* ```typescript
|
|
83
|
-
* const stepToUIVesionsMap = await hitlApi.versions.getStepsToUIVersionsMap({ stepName });
|
|
84
|
-
* ```
|
|
85
|
-
*
|
|
86
|
-
* @remarks
|
|
87
|
-
* Makes a GET request to the `/ui-versions/steps-to-ui-map` endpoint
|
|
88
|
-
* @public
|
|
89
|
-
*/
|
|
90
10
|
static getStepsToUIVersionsMap({ stepName, ...options }: GetStepsToUIVersionsMapOptions): Promise<object>;
|
|
91
11
|
}
|
|
92
12
|
//# sourceMappingURL=Versions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Versions.d.ts","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"Versions.d.ts","sourceRoot":"","sources":["../../../src/api/Versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,8BAA8B,EAC/B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,SAAS,CAAC,MAAM,CAAC,UAAU,SAAiB;IAC5C,SAAS,CAAC,MAAM,CAAC,YAAY,SAAkB;IAC/C,SAAS,CAAC,MAAM,CAAC,wBAAwB,SAAqB;WAsB1C,eAAe,CACjC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,uBAAuB,CAAC;WA6Bf,cAAc,CAChC,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,sBAAsB,CAAC;WAmCd,uBAAuB,CACzC,EAAE,QAAQ,EAAE,GAAG,OAAO,EAAE,EAAE,8BAA8B,GACvD,OAAO,CAAC,MAAM,CAAC;CAUnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/hitl",
|
|
3
|
-
"version": "0.37.0
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dev": "pnpm build:watch:esm"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@onereach/types-hitl-api": "1.0.6-rc.
|
|
21
|
+
"@onereach/types-hitl-api": "1.0.6-rc.10",
|
|
22
22
|
"@or-sdk/base": "^0.44.2",
|
|
23
23
|
"urijs": "^1.19.8"
|
|
24
24
|
},
|
|
@@ -29,5 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
|
-
}
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "89f0c99edd4e5aac5ca98ab6eb3bae7c459cae16"
|
|
33
34
|
}
|
package/src/api/Commands.ts
CHANGED
|
@@ -42,9 +42,11 @@ export class Commands extends HITLBase {
|
|
|
42
42
|
* await hitlApi.commands.applyCommandToSession({
|
|
43
43
|
* command: 'send_message',
|
|
44
44
|
* sessionId: 'session-id',
|
|
45
|
+
* agentId: 'agent-id' // use with flow or super_admin token
|
|
45
46
|
* data: {
|
|
46
47
|
* media: [],
|
|
47
|
-
*
|
|
48
|
+
* message: 'hello world',
|
|
49
|
+
* scheduledId: 'scheduled-message-id'
|
|
48
50
|
* }
|
|
49
51
|
* });
|
|
50
52
|
* ```
|
|
@@ -52,7 +54,7 @@ export class Commands extends HITLBase {
|
|
|
52
54
|
* @public
|
|
53
55
|
*/
|
|
54
56
|
public static async applyCommandToSession(
|
|
55
|
-
{ command, sessionId, data, ...options }: ApplyCommandOptions,
|
|
57
|
+
{ command, sessionId, agentId, data, ...options }: ApplyCommandOptions,
|
|
56
58
|
): Promise<void> {
|
|
57
59
|
const route = this.getBaseUrl(options);
|
|
58
60
|
|
|
@@ -60,6 +62,7 @@ export class Commands extends HITLBase {
|
|
|
60
62
|
method: 'POST',
|
|
61
63
|
route,
|
|
62
64
|
params: {
|
|
65
|
+
agentId,
|
|
63
66
|
command,
|
|
64
67
|
sessionId,
|
|
65
68
|
},
|
package/src/api/Sessions.ts
CHANGED
|
@@ -181,7 +181,9 @@ export class Sessions extends HITLBase {
|
|
|
181
181
|
* status: ['ONGOING', 'CLAIMED'],
|
|
182
182
|
* tags: ['wait_for_agent'],
|
|
183
183
|
* type: 'SMS',
|
|
184
|
-
*
|
|
184
|
+
* sessionsSearchOptions: {
|
|
185
|
+
* limit: 25
|
|
186
|
+
* }
|
|
185
187
|
* });
|
|
186
188
|
*
|
|
187
189
|
* // Search by meta with conditions
|