at-shared-types 1.1.2 → 1.1.3
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/ai/chat/chatRequestDTO.js +2 -0
- package/dist/cjs/ai/chat/chatResponseDTO.js +2 -0
- package/dist/cjs/ai/chat/chatWithIntentRequestDTO.js +2 -0
- package/dist/cjs/ai/chat/chatWithIntentResponseDTO.js +2 -0
- package/dist/cjs/ai/chat/index.js +20 -0
- package/dist/cjs/ai/engine.js +2 -0
- package/dist/cjs/ai/index.js +19 -0
- package/dist/cjs/ai/session/index.js +17 -0
- package/dist/cjs/ai/session/sessionsDTO.js +2 -0
- package/dist/cjs/core/errors/errorCodeDTO.js +8 -0
- package/dist/cjs/core/errors/index.js +17 -0
- package/dist/cjs/core/index.js +18 -0
- package/dist/cjs/core/routes/formattedResponseDTO.js +2 -0
- package/dist/cjs/core/routes/index.js +17 -0
- package/dist/cjs/index.js +18 -0
- package/dist/esm/ai/chat/chatRequestDTO.d.ts +6 -0
- package/dist/esm/ai/chat/chatResponseDTO.d.ts +9 -0
- package/dist/esm/ai/chat/chatWithIntentRequestDTO.d.ts +6 -0
- package/dist/esm/ai/chat/chatWithIntentResponseDTO.d.ts +5 -0
- package/dist/esm/ai/chat/index.js +4 -0
- package/dist/esm/ai/engine.d.ts +40 -0
- package/dist/esm/ai/index.js +3 -0
- package/dist/esm/ai/session/index.js +1 -0
- package/dist/esm/core/errors/errorCodeDTO.d.ts +5 -0
- package/dist/esm/core/errors/index.js +1 -0
- package/dist/esm/core/index.js +2 -0
- package/dist/esm/core/routes/formattedResponseDTO.d.ts +10 -0
- package/dist/esm/core/routes/index.js +1 -0
- package/dist/esm/index.js +2 -0
- package/package.json +20 -15
- /package/dist/{ai → cjs/ai}/chat/chatRequestDTO.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/chat/chatResponseDTO.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/chat/chatWithIntentRequestDTO.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/chat/chatWithIntentResponseDTO.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/chat/index.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/engine.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/index.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/session/index.d.ts +0 -0
- /package/dist/{ai → cjs/ai}/session/sessionsDTO.d.ts +0 -0
- /package/dist/{core → cjs/core}/errors/errorCodeDTO.d.ts +0 -0
- /package/dist/{core → cjs/core}/errors/index.d.ts +0 -0
- /package/dist/{core → cjs/core}/index.d.ts +0 -0
- /package/dist/{core → cjs/core}/routes/formattedResponseDTO.d.ts +0 -0
- /package/dist/{core → cjs/core}/routes/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{ai → esm/ai}/chat/chatRequestDTO.js +0 -0
- /package/dist/{ai → esm/ai}/chat/chatResponseDTO.js +0 -0
- /package/dist/{ai → esm/ai}/chat/chatWithIntentRequestDTO.js +0 -0
- /package/dist/{ai → esm/ai}/chat/chatWithIntentResponseDTO.js +0 -0
- /package/dist/{ai/chat/index.js → esm/ai/chat/index.d.ts} +0 -0
- /package/dist/{ai → esm/ai}/engine.js +0 -0
- /package/dist/{ai/index.js → esm/ai/index.d.ts} +0 -0
- /package/dist/{ai/session/index.js → esm/ai/session/index.d.ts} +0 -0
- /package/dist/{ai/session/session.d.ts → esm/ai/session/sessionsDTO.d.ts} +0 -0
- /package/dist/{ai → esm/ai}/session/sessionsDTO.js +0 -0
- /package/dist/{core → esm/core}/errors/errorCodeDTO.js +0 -0
- /package/dist/{core/errors/index.js → esm/core/errors/index.d.ts} +0 -0
- /package/dist/{core/index.js → esm/core/index.d.ts} +0 -0
- /package/dist/{core → esm/core}/routes/formattedResponseDTO.js +0 -0
- /package/dist/{core/routes/index.js → esm/core/routes/index.d.ts} +0 -0
- /package/dist/{index.js → esm/index.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./chatRequestDTO"), exports);
|
|
18
|
+
__exportStar(require("./chatResponseDTO"), exports);
|
|
19
|
+
__exportStar(require("./chatWithIntentRequestDTO"), exports);
|
|
20
|
+
__exportStar(require("./chatWithIntentResponseDTO"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./engine"), exports);
|
|
18
|
+
__exportStar(require("./chat/index"), exports);
|
|
19
|
+
__exportStar(require("./session/index"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./sessionsDTO"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./errorCodeDTO"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./routes/index"), exports);
|
|
18
|
+
__exportStar(require("./errors/index"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./formattedResponseDTO"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai/index"), exports);
|
|
18
|
+
__exportStar(require("./core/index"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export type ATChatMessageContentDTO = string | null;
|
|
2
|
+
/**
|
|
3
|
+
* Internal representation — can include nulls for assistant messages, etc.
|
|
4
|
+
*/
|
|
5
|
+
export type AIChatMessageDTO = {
|
|
6
|
+
role: "system";
|
|
7
|
+
content: ATChatMessageContentDTO;
|
|
8
|
+
} | {
|
|
9
|
+
role: "user";
|
|
10
|
+
content: ATChatMessageContentDTO;
|
|
11
|
+
} | {
|
|
12
|
+
role: "assistant";
|
|
13
|
+
content: ATChatMessageContentDTO;
|
|
14
|
+
};
|
|
15
|
+
export type AIChatOptionsResponseFormatDTO = {
|
|
16
|
+
type: "text";
|
|
17
|
+
} | {
|
|
18
|
+
type: "json";
|
|
19
|
+
jsonSchema?: Record<string, any>;
|
|
20
|
+
};
|
|
21
|
+
export interface AIChatOptionsDTO {
|
|
22
|
+
model?: string;
|
|
23
|
+
temperature?: number;
|
|
24
|
+
maxTokens?: number;
|
|
25
|
+
engineID?: string;
|
|
26
|
+
responseFormat?: AIChatOptionsResponseFormatDTO;
|
|
27
|
+
}
|
|
28
|
+
export interface AIIntentDTO {
|
|
29
|
+
capabilityID: string;
|
|
30
|
+
params?: object;
|
|
31
|
+
confidence?: number;
|
|
32
|
+
reason?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AICapabilityDTO {
|
|
35
|
+
id: string;
|
|
36
|
+
description: string;
|
|
37
|
+
}
|
|
38
|
+
export interface AIChatWithIntentOptionsDTO extends AIChatOptionsDTO {
|
|
39
|
+
capabilities?: AICapabilityDTO[];
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sessionsDTO";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./errorCodeDTO";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./formattedResponseDTO";
|
package/package.json
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "at-shared-types",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"main": "./dist/cjs/index.js",
|
|
5
|
+
"module": "./dist/esm/index.js",
|
|
6
|
+
"types": "./dist/esm/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist/esm",
|
|
9
|
+
"dist/cjs"
|
|
9
10
|
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
13
|
+
"build:esm": "tsc --project tsconfig.json",
|
|
14
|
+
"build": "npm run build:cjs && npm run build:esm"
|
|
15
|
+
},
|
|
10
16
|
"exports": {
|
|
11
17
|
".": {
|
|
12
|
-
"import": "./dist/index.js",
|
|
13
|
-
"
|
|
18
|
+
"import": "./dist/esm/index.js",
|
|
19
|
+
"require": "./dist/cjs/index.js",
|
|
20
|
+
"types": "./dist/esm/index.d.ts"
|
|
14
21
|
},
|
|
15
22
|
"./ai": {
|
|
16
|
-
"import": "./dist/ai/index.js",
|
|
17
|
-
"
|
|
23
|
+
"import": "./dist/esm/ai/index.js",
|
|
24
|
+
"require": "./dist/cjs/ai/index.js",
|
|
25
|
+
"types": "./dist/esm/ai/index.d.ts"
|
|
18
26
|
},
|
|
19
27
|
"./core": {
|
|
20
|
-
"import": "./dist/core/index.js",
|
|
21
|
-
"
|
|
28
|
+
"import": "./dist/esm/core/index.js",
|
|
29
|
+
"require": "./dist/cjs/core/index.js",
|
|
30
|
+
"types": "./dist/esm/core/index.d.ts"
|
|
22
31
|
}
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "tsc",
|
|
26
|
-
"prepublishOnly": "npm run build"
|
|
27
32
|
}
|
|
28
33
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|