@nomalism-com/types 0.43.71 → 0.43.73
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/index.cjs
CHANGED
|
@@ -5943,7 +5943,9 @@ var Route109 = "llm";
|
|
|
5943
5943
|
// src/modules/llm/llm/route.schema.ts
|
|
5944
5944
|
var route_schema_exports111 = {};
|
|
5945
5945
|
__export(route_schema_exports111, {
|
|
5946
|
-
|
|
5946
|
+
identifyLanguageSchema: () => identifyLanguageSchema,
|
|
5947
|
+
promptBody: () => promptBody,
|
|
5948
|
+
translateSchema: () => translateSchema
|
|
5947
5949
|
});
|
|
5948
5950
|
import joi112 from "joi";
|
|
5949
5951
|
var promptBodyKeys = {
|
|
@@ -5952,6 +5954,13 @@ var promptBodyKeys = {
|
|
|
5952
5954
|
document_header_id: joi112.string().required()
|
|
5953
5955
|
};
|
|
5954
5956
|
var promptBody = joi112.object().keys(promptBodyKeys).messages(messages);
|
|
5957
|
+
var translateSchema = joi112.object({
|
|
5958
|
+
message: joi112.string().required(),
|
|
5959
|
+
target_language: joi112.string().required()
|
|
5960
|
+
});
|
|
5961
|
+
var identifyLanguageSchema = joi112.object({
|
|
5962
|
+
message: joi112.string().required()
|
|
5963
|
+
});
|
|
5955
5964
|
|
|
5956
5965
|
// src/modules/integration/patchNotes/interfaces.ts
|
|
5957
5966
|
var interfaces_exports58 = {};
|
package/dist/index.js
CHANGED
|
@@ -5943,7 +5943,9 @@ var Route109 = "llm";
|
|
|
5943
5943
|
// src/modules/llm/llm/route.schema.ts
|
|
5944
5944
|
var route_schema_exports111 = {};
|
|
5945
5945
|
__export(route_schema_exports111, {
|
|
5946
|
-
|
|
5946
|
+
identifyLanguageSchema: () => identifyLanguageSchema,
|
|
5947
|
+
promptBody: () => promptBody,
|
|
5948
|
+
translateSchema: () => translateSchema
|
|
5947
5949
|
});
|
|
5948
5950
|
import joi112 from "joi";
|
|
5949
5951
|
var promptBodyKeys = {
|
|
@@ -5952,6 +5954,13 @@ var promptBodyKeys = {
|
|
|
5952
5954
|
document_header_id: joi112.string().required()
|
|
5953
5955
|
};
|
|
5954
5956
|
var promptBody = joi112.object().keys(promptBodyKeys).messages(messages);
|
|
5957
|
+
var translateSchema = joi112.object({
|
|
5958
|
+
message: joi112.string().required(),
|
|
5959
|
+
target_language: joi112.string().required()
|
|
5960
|
+
});
|
|
5961
|
+
var identifyLanguageSchema = joi112.object({
|
|
5962
|
+
message: joi112.string().required()
|
|
5963
|
+
});
|
|
5955
5964
|
|
|
5956
5965
|
// src/modules/integration/patchNotes/interfaces.ts
|
|
5957
5966
|
var interfaces_exports58 = {};
|
|
@@ -13,7 +13,16 @@ export interface IPromptResponse {
|
|
|
13
13
|
export interface IPromptAbortController {
|
|
14
14
|
abort(): void;
|
|
15
15
|
}
|
|
16
|
+
export interface ITranslateRequest {
|
|
17
|
+
message: string;
|
|
18
|
+
target_language: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IIdentifyLanguageRequest {
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
16
23
|
export interface IRepository {
|
|
17
24
|
prompt: (data: IPromptRequest, response: IPromptResponse) => IPromptAbortController;
|
|
25
|
+
translate(data: ITranslateRequest): Promise<string>;
|
|
26
|
+
identifyLanguage(data: IIdentifyLanguageRequest): Promise<string>;
|
|
18
27
|
}
|
|
19
28
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -143,12 +143,11 @@ export type Country = {
|
|
|
143
143
|
export type Language = {
|
|
144
144
|
id: string;
|
|
145
145
|
name: string;
|
|
146
|
+
native_name: string;
|
|
147
|
+
iso_code: string;
|
|
148
|
+
short_list: boolean;
|
|
146
149
|
created_at: Date;
|
|
147
150
|
updated_at: Date;
|
|
148
|
-
created_by: string;
|
|
149
|
-
updated_by: string;
|
|
150
|
-
origin_id: string | null;
|
|
151
|
-
external_id: string | null;
|
|
152
151
|
};
|
|
153
152
|
/**
|
|
154
153
|
* Model Clients
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.43.
|
|
4
|
+
"version": "0.43.73",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|