@tolinax/ayoune-interfaces 2026.10.0 → 2026.11.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/api/IAPIAction.d.ts +3 -0
- package/api/IAPIResult.d.ts +7 -0
- package/data/modelNames.d.ts +4 -0
- package/data/modelNames.js +4 -0
- package/data/modelsAndRights.d.ts +4 -0
- package/data/modelsAndRights.js +135 -0
- package/interfaces/IAIAgent.d.ts +12 -0
- package/interfaces/IAIConversation.d.ts +3 -0
- package/interfaces/IAIMessage.d.ts +10 -0
- package/interfaces/IAIModelCatalog.d.ts +19 -0
- package/interfaces/IAIModelCatalog.js +2 -0
- package/interfaces/IAIProvider.d.ts +17 -0
- package/interfaces/IAIProvider.js +2 -0
- package/interfaces/IChannel.d.ts +1 -0
- package/interfaces/IConsumer.d.ts +8 -0
- package/interfaces/IExternalConversation.d.ts +17 -0
- package/interfaces/IExternalConversation.js +2 -0
- package/interfaces/IExternalMessage.d.ts +19 -0
- package/interfaces/IExternalMessage.js +2 -0
- package/interfaces/ISelection.d.ts +6 -0
- package/interfaces/ISelectionResultsBucket.d.ts +1 -1
- package/interfaces/index.d.ts +4 -0
- package/interfaces/index.js +4 -0
- package/package.json +107 -107
package/api/IAPIAction.d.ts
CHANGED
package/api/IAPIResult.d.ts
CHANGED
|
@@ -63,6 +63,13 @@ export interface IAPIResultMeta {
|
|
|
63
63
|
code: number;
|
|
64
64
|
}[];
|
|
65
65
|
code?: number;
|
|
66
|
+
search?: {
|
|
67
|
+
query: string;
|
|
68
|
+
duration: number;
|
|
69
|
+
totalResults: number;
|
|
70
|
+
modelCounts: Record<string, number>;
|
|
71
|
+
aiEnabled: boolean;
|
|
72
|
+
};
|
|
66
73
|
}
|
|
67
74
|
export interface IAPIResult {
|
|
68
75
|
payload?: any | any[];
|
package/data/modelNames.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare enum aMN {
|
|
|
29
29
|
AIConversations = "AIConversations",
|
|
30
30
|
AILogs = "AILogs",
|
|
31
31
|
AIMessages = "AIMessages",
|
|
32
|
+
AIModelCatalog = "AIModelCatalog",
|
|
33
|
+
AIProviders = "AIProviders",
|
|
32
34
|
AIPrompts = "AIPrompts",
|
|
33
35
|
Alerts = "Alerts",
|
|
34
36
|
Announcements = "Announcements",
|
|
@@ -261,6 +263,8 @@ export declare enum aMN {
|
|
|
261
263
|
ExportConfigs = "ExportConfigs",
|
|
262
264
|
ExportLogs = "ExportLogs",
|
|
263
265
|
Exports = "Exports",
|
|
266
|
+
ExternalConversations = "ExternalConversations",
|
|
267
|
+
ExternalMessages = "ExternalMessages",
|
|
264
268
|
FailureMessages = "FailureMessages",
|
|
265
269
|
FamilyNames = "FamilyNames",
|
|
266
270
|
Faqs = "Faqs",
|
package/data/modelNames.js
CHANGED
|
@@ -33,6 +33,8 @@ var aMN;
|
|
|
33
33
|
aMN["AIConversations"] = "AIConversations";
|
|
34
34
|
aMN["AILogs"] = "AILogs";
|
|
35
35
|
aMN["AIMessages"] = "AIMessages";
|
|
36
|
+
aMN["AIModelCatalog"] = "AIModelCatalog";
|
|
37
|
+
aMN["AIProviders"] = "AIProviders";
|
|
36
38
|
aMN["AIPrompts"] = "AIPrompts";
|
|
37
39
|
aMN["Alerts"] = "Alerts";
|
|
38
40
|
aMN["Announcements"] = "Announcements";
|
|
@@ -265,6 +267,8 @@ var aMN;
|
|
|
265
267
|
aMN["ExportConfigs"] = "ExportConfigs";
|
|
266
268
|
aMN["ExportLogs"] = "ExportLogs";
|
|
267
269
|
aMN["Exports"] = "Exports";
|
|
270
|
+
aMN["ExternalConversations"] = "ExternalConversations";
|
|
271
|
+
aMN["ExternalMessages"] = "ExternalMessages";
|
|
268
272
|
aMN["FailureMessages"] = "FailureMessages";
|
|
269
273
|
aMN["FamilyNames"] = "FamilyNames";
|
|
270
274
|
aMN["Faqs"] = "Faqs";
|
|
@@ -10,6 +10,10 @@ interface IModelAction {
|
|
|
10
10
|
title: string;
|
|
11
11
|
action: string;
|
|
12
12
|
availability: "single" | "many" | "both";
|
|
13
|
+
method?: "POST" | "PUT";
|
|
14
|
+
icon?: string;
|
|
15
|
+
dangerous?: boolean;
|
|
16
|
+
confirmation?: string;
|
|
13
17
|
}
|
|
14
18
|
export interface IModelAndRight {
|
|
15
19
|
plural: string;
|
package/data/modelsAndRights.js
CHANGED
|
@@ -641,6 +641,8 @@ const modelsAndRights = [
|
|
|
641
641
|
importable: false,
|
|
642
642
|
allowDuplicate: false,
|
|
643
643
|
updateBy: "_id",
|
|
644
|
+
searchable: true,
|
|
645
|
+
searchableFields: ['subject', 'description'],
|
|
644
646
|
},
|
|
645
647
|
{
|
|
646
648
|
plural: "AdAccounts",
|
|
@@ -850,6 +852,26 @@ const modelsAndRights = [
|
|
|
850
852
|
allowDuplicate: false,
|
|
851
853
|
updateBy: "_id",
|
|
852
854
|
},
|
|
855
|
+
{
|
|
856
|
+
plural: "AIModelCatalog",
|
|
857
|
+
singular: "AIModelCatalogEntry",
|
|
858
|
+
module: "ai",
|
|
859
|
+
right: "ai.aimodelcatalog",
|
|
860
|
+
readOnly: false,
|
|
861
|
+
importable: false,
|
|
862
|
+
allowDuplicate: false,
|
|
863
|
+
updateBy: "_id",
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
plural: "AIProviders",
|
|
867
|
+
singular: "AIProvider",
|
|
868
|
+
module: "ai",
|
|
869
|
+
right: "ai.aiproviders",
|
|
870
|
+
readOnly: false,
|
|
871
|
+
importable: false,
|
|
872
|
+
allowDuplicate: false,
|
|
873
|
+
updateBy: "_id",
|
|
874
|
+
},
|
|
853
875
|
{
|
|
854
876
|
plural: "AIPrompts",
|
|
855
877
|
singular: "AIPrompt",
|
|
@@ -1049,6 +1071,12 @@ const modelsAndRights = [
|
|
|
1049
1071
|
importable: true,
|
|
1050
1072
|
allowDuplicate: false,
|
|
1051
1073
|
updateBy: "_id",
|
|
1074
|
+
searchable: true,
|
|
1075
|
+
searchableFields: ['firstname', 'lastname', 'email', 'phone', 'company'],
|
|
1076
|
+
actions: [
|
|
1077
|
+
{ title: "ARCHIVE", action: "archive", availability: "both", method: "PUT", icon: "archive" },
|
|
1078
|
+
{ title: "CONVERT_TO_CUSTOMER", action: "convert-to-customer", availability: "single", method: "POST", icon: "person_add" },
|
|
1079
|
+
],
|
|
1052
1080
|
},
|
|
1053
1081
|
{
|
|
1054
1082
|
plural: "ConsumerDatabases",
|
|
@@ -1169,6 +1197,8 @@ const modelsAndRights = [
|
|
|
1169
1197
|
importable: false,
|
|
1170
1198
|
allowDuplicate: true,
|
|
1171
1199
|
updateBy: "_id",
|
|
1200
|
+
searchable: true,
|
|
1201
|
+
searchableFields: ['name', 'sku', 'ean', 'description'],
|
|
1172
1202
|
},
|
|
1173
1203
|
{
|
|
1174
1204
|
plural: "Projects",
|
|
@@ -1179,6 +1209,13 @@ const modelsAndRights = [
|
|
|
1179
1209
|
importable: false,
|
|
1180
1210
|
allowDuplicate: true,
|
|
1181
1211
|
updateBy: "_id",
|
|
1212
|
+
searchable: true,
|
|
1213
|
+
searchableFields: ['subject', 'description'],
|
|
1214
|
+
actions: [
|
|
1215
|
+
{ title: "ARCHIVE", action: "archive", availability: "single", method: "PUT", icon: "archive" },
|
|
1216
|
+
{ title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done_all" },
|
|
1217
|
+
{ title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
|
|
1218
|
+
],
|
|
1182
1219
|
},
|
|
1183
1220
|
{
|
|
1184
1221
|
plural: "RunningPipelines",
|
|
@@ -1349,6 +1386,8 @@ const modelsAndRights = [
|
|
|
1349
1386
|
importable: false,
|
|
1350
1387
|
allowDuplicate: true,
|
|
1351
1388
|
updateBy: "_id",
|
|
1389
|
+
searchable: true,
|
|
1390
|
+
searchableFields: ['title', 'description'],
|
|
1352
1391
|
},
|
|
1353
1392
|
{
|
|
1354
1393
|
plural: "Assets",
|
|
@@ -1479,6 +1518,8 @@ const modelsAndRights = [
|
|
|
1479
1518
|
importable: false,
|
|
1480
1519
|
allowDuplicate: true,
|
|
1481
1520
|
updateBy: "_id",
|
|
1521
|
+
searchable: true,
|
|
1522
|
+
searchableFields: ['name', 'description'],
|
|
1482
1523
|
},
|
|
1483
1524
|
{
|
|
1484
1525
|
plural: "BankAccounts",
|
|
@@ -1729,6 +1770,14 @@ const modelsAndRights = [
|
|
|
1729
1770
|
importable: false,
|
|
1730
1771
|
allowDuplicate: true,
|
|
1731
1772
|
updateBy: "_id",
|
|
1773
|
+
searchable: true,
|
|
1774
|
+
searchableFields: ['name', 'subject'],
|
|
1775
|
+
actions: [
|
|
1776
|
+
{ title: "ACTIVATE", action: "activate", availability: "single", method: "PUT", icon: "play_arrow" },
|
|
1777
|
+
{ title: "PAUSE", action: "pause", availability: "single", method: "PUT", icon: "pause" },
|
|
1778
|
+
{ title: "STOP", action: "stop", availability: "single", method: "PUT", icon: "stop", dangerous: true },
|
|
1779
|
+
{ title: "ARCHIVE", action: "archive", availability: "both", method: "PUT", icon: "archive" },
|
|
1780
|
+
],
|
|
1732
1781
|
},
|
|
1733
1782
|
{
|
|
1734
1783
|
plural: "CancelReasons",
|
|
@@ -1789,6 +1838,8 @@ const modelsAndRights = [
|
|
|
1789
1838
|
importable: false,
|
|
1790
1839
|
allowDuplicate: false,
|
|
1791
1840
|
updateBy: "_id",
|
|
1841
|
+
searchable: true,
|
|
1842
|
+
searchableFields: ['name', 'description'],
|
|
1792
1843
|
},
|
|
1793
1844
|
{
|
|
1794
1845
|
plural: "ChatMessages",
|
|
@@ -1939,6 +1990,8 @@ const modelsAndRights = [
|
|
|
1939
1990
|
importable: false,
|
|
1940
1991
|
allowDuplicate: false,
|
|
1941
1992
|
updateBy: "_id",
|
|
1993
|
+
searchable: true,
|
|
1994
|
+
searchableFields: ['name', 'email', 'phone', 'domain'],
|
|
1942
1995
|
},
|
|
1943
1996
|
{
|
|
1944
1997
|
plural: "CompanyLocations",
|
|
@@ -2139,6 +2192,8 @@ const modelsAndRights = [
|
|
|
2139
2192
|
importable: false,
|
|
2140
2193
|
allowDuplicate: false,
|
|
2141
2194
|
updateBy: "_id",
|
|
2195
|
+
searchable: true,
|
|
2196
|
+
searchableFields: ['title', 'description'],
|
|
2142
2197
|
},
|
|
2143
2198
|
{
|
|
2144
2199
|
plural: "Contracts",
|
|
@@ -2149,6 +2204,8 @@ const modelsAndRights = [
|
|
|
2149
2204
|
importable: false,
|
|
2150
2205
|
allowDuplicate: false,
|
|
2151
2206
|
updateBy: "_id",
|
|
2207
|
+
searchable: true,
|
|
2208
|
+
searchableFields: ['name', 'contractNumber'],
|
|
2152
2209
|
},
|
|
2153
2210
|
{
|
|
2154
2211
|
plural: "ContentSnippets",
|
|
@@ -2219,6 +2276,8 @@ const modelsAndRights = [
|
|
|
2219
2276
|
importable: false,
|
|
2220
2277
|
allowDuplicate: false,
|
|
2221
2278
|
updateBy: "_id",
|
|
2279
|
+
searchable: true,
|
|
2280
|
+
searchableFields: ['code', 'name'],
|
|
2222
2281
|
},
|
|
2223
2282
|
{
|
|
2224
2283
|
plural: "CourseLessons",
|
|
@@ -2860,6 +2919,26 @@ const modelsAndRights = [
|
|
|
2860
2919
|
allowDuplicate: false,
|
|
2861
2920
|
updateBy: "_id",
|
|
2862
2921
|
},
|
|
2922
|
+
{
|
|
2923
|
+
plural: "ExternalConversations",
|
|
2924
|
+
singular: "ExternalConversation",
|
|
2925
|
+
module: "config",
|
|
2926
|
+
right: "config.externalconversations",
|
|
2927
|
+
readOnly: false,
|
|
2928
|
+
importable: false,
|
|
2929
|
+
allowDuplicate: false,
|
|
2930
|
+
updateBy: "_id",
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
plural: "ExternalMessages",
|
|
2934
|
+
singular: "ExternalMessage",
|
|
2935
|
+
module: "config",
|
|
2936
|
+
right: "config.externalmessages",
|
|
2937
|
+
readOnly: false,
|
|
2938
|
+
importable: false,
|
|
2939
|
+
allowDuplicate: false,
|
|
2940
|
+
updateBy: "_id",
|
|
2941
|
+
},
|
|
2863
2942
|
{
|
|
2864
2943
|
plural: "FailureMessages",
|
|
2865
2944
|
singular: "FailureMessage",
|
|
@@ -3429,6 +3508,13 @@ const modelsAndRights = [
|
|
|
3429
3508
|
importable: false,
|
|
3430
3509
|
allowDuplicate: false,
|
|
3431
3510
|
updateBy: "_id",
|
|
3511
|
+
searchable: true,
|
|
3512
|
+
searchableFields: ['invoiceNumber', 'subject', 'recipientName'],
|
|
3513
|
+
actions: [
|
|
3514
|
+
{ title: "MARK_PAID", action: "mark-paid", availability: "single", method: "PUT", icon: "paid" },
|
|
3515
|
+
{ title: "SEND_REMINDER", action: "send-reminder", availability: "single", method: "POST", icon: "notification_important" },
|
|
3516
|
+
{ title: "CANCEL", action: "cancel", availability: "single", method: "PUT", icon: "cancel", dangerous: true },
|
|
3517
|
+
],
|
|
3432
3518
|
},
|
|
3433
3519
|
{
|
|
3434
3520
|
plural: "JobOffers",
|
|
@@ -3759,6 +3845,16 @@ const modelsAndRights = [
|
|
|
3759
3845
|
importable: false,
|
|
3760
3846
|
allowDuplicate: true,
|
|
3761
3847
|
updateBy: "_id",
|
|
3848
|
+
searchable: true,
|
|
3849
|
+
searchableFields: ['name', 'shortID', 'serialNumber'],
|
|
3850
|
+
actions: [
|
|
3851
|
+
{ title: "DISABLE", action: "disable", availability: "single", method: "PUT", icon: "block", dangerous: true },
|
|
3852
|
+
{ title: "ENABLE", action: "enable", availability: "single", method: "PUT", icon: "check" },
|
|
3853
|
+
{ title: "SET_MAINTENANCE", action: "set-maintenance", availability: "single", method: "PUT", icon: "build" },
|
|
3854
|
+
{ title: "REPORT_FAILURE", action: "report-failure", availability: "single", method: "POST", icon: "warning", dangerous: true },
|
|
3855
|
+
{ title: "SET_RUNNING", action: "set-running", availability: "single", method: "PUT", icon: "play_arrow" },
|
|
3856
|
+
{ title: "SET_AVAILABLE", action: "set-available", availability: "single", method: "PUT", icon: "check_circle" },
|
|
3857
|
+
],
|
|
3762
3858
|
},
|
|
3763
3859
|
{
|
|
3764
3860
|
plural: "MachineTypes",
|
|
@@ -4209,6 +4305,13 @@ const modelsAndRights = [
|
|
|
4209
4305
|
importable: false,
|
|
4210
4306
|
allowDuplicate: false,
|
|
4211
4307
|
updateBy: "_id",
|
|
4308
|
+
searchable: true,
|
|
4309
|
+
searchableFields: ['name', 'description'],
|
|
4310
|
+
actions: [
|
|
4311
|
+
{ title: "WON", action: "won", availability: "single", method: "PUT", icon: "emoji_events" },
|
|
4312
|
+
{ title: "LOST", action: "lost", availability: "single", method: "PUT", icon: "thumb_down", dangerous: true },
|
|
4313
|
+
{ title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
|
|
4314
|
+
],
|
|
4212
4315
|
},
|
|
4213
4316
|
{
|
|
4214
4317
|
plural: "OpportunitySchemas",
|
|
@@ -4599,6 +4702,14 @@ const modelsAndRights = [
|
|
|
4599
4702
|
importable: false,
|
|
4600
4703
|
allowDuplicate: false,
|
|
4601
4704
|
updateBy: "_id",
|
|
4705
|
+
searchable: true,
|
|
4706
|
+
searchableFields: ['orderNumber', 'subject'],
|
|
4707
|
+
actions: [
|
|
4708
|
+
{ title: "START", action: "start", availability: "single", method: "POST", icon: "play_arrow" },
|
|
4709
|
+
{ title: "STOP", action: "stop", availability: "single", method: "POST", icon: "stop", dangerous: true },
|
|
4710
|
+
{ title: "COMPLETE", action: "complete", availability: "single", method: "POST", icon: "done_all" },
|
|
4711
|
+
{ title: "CANCEL", action: "cancel", availability: "single", method: "POST", icon: "cancel", dangerous: true },
|
|
4712
|
+
],
|
|
4602
4713
|
},
|
|
4603
4714
|
{
|
|
4604
4715
|
plural: "ProductionProcesses",
|
|
@@ -4959,6 +5070,8 @@ const modelsAndRights = [
|
|
|
4959
5070
|
importable: false,
|
|
4960
5071
|
allowDuplicate: false,
|
|
4961
5072
|
updateBy: "_id",
|
|
5073
|
+
searchable: true,
|
|
5074
|
+
searchableFields: ['name', 'repoSlug'],
|
|
4962
5075
|
},
|
|
4963
5076
|
{
|
|
4964
5077
|
plural: "Requirements",
|
|
@@ -5551,6 +5664,8 @@ const modelsAndRights = [
|
|
|
5551
5664
|
importable: false,
|
|
5552
5665
|
allowDuplicate: false,
|
|
5553
5666
|
updateBy: "_id",
|
|
5667
|
+
searchable: true,
|
|
5668
|
+
searchableFields: ['name', 'description'],
|
|
5554
5669
|
actions: [
|
|
5555
5670
|
{
|
|
5556
5671
|
title: "REGENERATE_STREAM",
|
|
@@ -5658,6 +5773,13 @@ const modelsAndRights = [
|
|
|
5658
5773
|
importable: false,
|
|
5659
5774
|
allowDuplicate: false,
|
|
5660
5775
|
updateBy: "_id",
|
|
5776
|
+
searchable: true,
|
|
5777
|
+
searchableFields: ['subject', 'description'],
|
|
5778
|
+
actions: [
|
|
5779
|
+
{ title: "ASSIGN", action: "assign", availability: "single", method: "PUT", icon: "person_add" },
|
|
5780
|
+
{ title: "COMPLETE", action: "complete", availability: "single", method: "PUT", icon: "done" },
|
|
5781
|
+
{ title: "REOPEN", action: "reopen", availability: "single", method: "PUT", icon: "replay" },
|
|
5782
|
+
],
|
|
5661
5783
|
},
|
|
5662
5784
|
{
|
|
5663
5785
|
plural: "TemplateGroups",
|
|
@@ -5708,6 +5830,8 @@ const modelsAndRights = [
|
|
|
5708
5830
|
importable: false,
|
|
5709
5831
|
allowDuplicate: false,
|
|
5710
5832
|
updateBy: "_id",
|
|
5833
|
+
searchable: true,
|
|
5834
|
+
searchableFields: ['subject', 'ticketNumber'],
|
|
5711
5835
|
},
|
|
5712
5836
|
{
|
|
5713
5837
|
plural: "Tips",
|
|
@@ -6028,6 +6152,8 @@ const modelsAndRights = [
|
|
|
6028
6152
|
importable: false,
|
|
6029
6153
|
allowDuplicate: true,
|
|
6030
6154
|
updateBy: "_id",
|
|
6155
|
+
searchable: true,
|
|
6156
|
+
searchableFields: ['title', 'content'],
|
|
6031
6157
|
actions: [
|
|
6032
6158
|
{
|
|
6033
6159
|
title: "REGENERATE_PERMALINKS",
|
|
@@ -6060,6 +6186,15 @@ const modelsAndRights = [
|
|
|
6060
6186
|
importable: false,
|
|
6061
6187
|
allowDuplicate: true,
|
|
6062
6188
|
updateBy: "_id",
|
|
6189
|
+
searchable: true,
|
|
6190
|
+
searchableFields: ['name', 'shortID'],
|
|
6191
|
+
actions: [
|
|
6192
|
+
{ title: "ACTIVATE", action: "activate", availability: "single", method: "PUT", icon: "check_circle" },
|
|
6193
|
+
{ title: "DEACTIVATE", action: "deactivate", availability: "single", method: "PUT", icon: "block", dangerous: true },
|
|
6194
|
+
{ title: "SET_OCCUPIED", action: "set-occupied", availability: "single", method: "PUT", icon: "person" },
|
|
6195
|
+
{ title: "SET_MAINTENANCE", action: "set-maintenance", availability: "single", method: "PUT", icon: "build" },
|
|
6196
|
+
{ title: "REPORT_FAILURE", action: "report-failure", availability: "single", method: "POST", icon: "warning", dangerous: true },
|
|
6197
|
+
],
|
|
6063
6198
|
},
|
|
6064
6199
|
{
|
|
6065
6200
|
plural: "WorkLogs",
|
package/interfaces/IAIAgent.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { AIProviderType } from "./IAIProvider";
|
|
2
3
|
export interface IAIAgent extends IDefaultFields {
|
|
3
4
|
_customerID: ObjectId;
|
|
4
5
|
_clientID?: ObjectId[];
|
|
@@ -14,6 +15,17 @@ export interface IAIAgent extends IDefaultFields {
|
|
|
14
15
|
temperature?: number;
|
|
15
16
|
maxTokens?: number;
|
|
16
17
|
maxContextTokens?: number;
|
|
18
|
+
provider?: AIProviderType;
|
|
19
|
+
_modelCatalog?: ObjectId;
|
|
20
|
+
_provider?: ObjectId;
|
|
21
|
+
multimodalConfig?: {
|
|
22
|
+
visionEnabled?: boolean;
|
|
23
|
+
imageGenEnabled?: boolean;
|
|
24
|
+
voiceEnabled?: boolean;
|
|
25
|
+
ttsVoice?: string;
|
|
26
|
+
ttsLocale?: string;
|
|
27
|
+
sttLanguage?: string;
|
|
28
|
+
};
|
|
17
29
|
scope?: {
|
|
18
30
|
modules?: string[];
|
|
19
31
|
collections?: string[];
|
|
@@ -22,4 +22,14 @@ export interface IAIMessage extends IDefaultFields {
|
|
|
22
22
|
dataFormat?: string;
|
|
23
23
|
};
|
|
24
24
|
tags?: any[];
|
|
25
|
+
attachments?: IAIMessageAttachment[];
|
|
26
|
+
contentType?: 'text' | 'image' | 'audio' | 'mixed';
|
|
27
|
+
}
|
|
28
|
+
export interface IAIMessageAttachment {
|
|
29
|
+
type?: 'image' | 'audio' | 'document';
|
|
30
|
+
url?: string;
|
|
31
|
+
mimeType?: string;
|
|
32
|
+
filename?: string;
|
|
33
|
+
size?: number;
|
|
34
|
+
metadata?: any;
|
|
25
35
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
import { AIProviderType } from "./IAIProvider";
|
|
3
|
+
export type AIModelCapability = 'text' | 'vision' | 'image-gen' | 'embedding' | 'tts' | 'stt' | 'code' | 'function-calling';
|
|
4
|
+
export interface IAIModelCatalog extends IDefaultFields {
|
|
5
|
+
_customerID?: ObjectId;
|
|
6
|
+
_clientID?: ObjectId[];
|
|
7
|
+
_subID?: ObjectId[];
|
|
8
|
+
modelId?: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
providerType?: AIProviderType;
|
|
11
|
+
_provider?: ObjectId;
|
|
12
|
+
capabilities?: AIModelCapability[];
|
|
13
|
+
contextWindow?: number;
|
|
14
|
+
maxOutputTokens?: number;
|
|
15
|
+
inputPricePer1M?: number;
|
|
16
|
+
outputPricePer1M?: number;
|
|
17
|
+
status?: 'active' | 'deprecated' | 'preview';
|
|
18
|
+
global?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
export type AIProviderType = 'openai' | 'anthropic' | 'google' | 'cohere' | 'ollama' | 'custom';
|
|
3
|
+
export interface IAIProvider extends IDefaultFields {
|
|
4
|
+
_customerID?: ObjectId;
|
|
5
|
+
_clientID?: ObjectId[];
|
|
6
|
+
_subID?: ObjectId[];
|
|
7
|
+
name?: string;
|
|
8
|
+
providerType?: AIProviderType;
|
|
9
|
+
status?: 'active' | 'inactive' | 'error';
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
apiEndpoint?: string;
|
|
12
|
+
organizationId?: string;
|
|
13
|
+
defaultModel?: string;
|
|
14
|
+
rateLimitRpm?: number;
|
|
15
|
+
global?: boolean;
|
|
16
|
+
enabledForCustomers?: ObjectId[];
|
|
17
|
+
}
|
package/interfaces/IChannel.d.ts
CHANGED
|
@@ -115,6 +115,13 @@ interface INotifications {
|
|
|
115
115
|
telegram?: boolean;
|
|
116
116
|
interface?: boolean;
|
|
117
117
|
}
|
|
118
|
+
interface IMessengerChannel {
|
|
119
|
+
platform?: 'telegram' | 'whatsapp' | 'slack' | 'discord' | 'facebook' | 'instagram' | 'teams';
|
|
120
|
+
externalId?: string;
|
|
121
|
+
username?: string;
|
|
122
|
+
active?: boolean;
|
|
123
|
+
connectedAt?: Date;
|
|
124
|
+
}
|
|
118
125
|
interface IConsumerToDo {
|
|
119
126
|
name?: string;
|
|
120
127
|
description?: string;
|
|
@@ -609,6 +616,7 @@ export interface IConsumer extends IDefaultFields, IFreeFields, IGeoIPLocationTr
|
|
|
609
616
|
onboardingChecklist?: ObjectId;
|
|
610
617
|
onboardingDone?: boolean;
|
|
611
618
|
notifications?: INotifications;
|
|
619
|
+
messengerChannels?: IMessengerChannel[];
|
|
612
620
|
isLocked?: boolean;
|
|
613
621
|
adressFormated?: string;
|
|
614
622
|
latitude?: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
export interface IExternalConversation extends IDefaultFields {
|
|
3
|
+
_customerID: ObjectId;
|
|
4
|
+
_clientID?: ObjectId[];
|
|
5
|
+
_subID?: ObjectId[];
|
|
6
|
+
platform: 'whatsapp' | 'telegram' | 'instagram' | 'slack' | 'discord' | 'facebook' | 'teams';
|
|
7
|
+
externalId: string;
|
|
8
|
+
contactName: string;
|
|
9
|
+
contactAvatar?: string;
|
|
10
|
+
contactExternalId?: string;
|
|
11
|
+
lastMessage?: string;
|
|
12
|
+
lastMessageAt?: Date;
|
|
13
|
+
unreadCount: number;
|
|
14
|
+
status: 'active' | 'archived' | 'closed';
|
|
15
|
+
_credentialID?: ObjectId;
|
|
16
|
+
metadata?: Record<string, any>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDefaultFields } from "./IDefaultFields";
|
|
2
|
+
export interface IExternalMessage extends IDefaultFields {
|
|
3
|
+
_customerID: ObjectId;
|
|
4
|
+
_conversationID: ObjectId;
|
|
5
|
+
platform: 'whatsapp' | 'telegram' | 'instagram' | 'slack' | 'discord' | 'facebook' | 'teams';
|
|
6
|
+
direction: 'inbound' | 'outbound';
|
|
7
|
+
externalMessageId?: string;
|
|
8
|
+
senderName: string;
|
|
9
|
+
message: string;
|
|
10
|
+
attachments?: IExternalMessageAttachment[];
|
|
11
|
+
status: 'sent' | 'delivered' | 'read' | 'failed';
|
|
12
|
+
}
|
|
13
|
+
export interface IExternalMessageAttachment {
|
|
14
|
+
type: 'image' | 'video' | 'audio' | 'document';
|
|
15
|
+
url: string;
|
|
16
|
+
filename?: string;
|
|
17
|
+
mimeType?: string;
|
|
18
|
+
size?: number;
|
|
19
|
+
}
|
|
@@ -23,4 +23,10 @@ export interface ISelection extends IDefaultFields {
|
|
|
23
23
|
segment?: ObjectId;
|
|
24
24
|
};
|
|
25
25
|
pipeline?: object[];
|
|
26
|
+
pipelineModel?: string;
|
|
27
|
+
pipelineVersion?: number;
|
|
28
|
+
lastExecutionTime?: number;
|
|
29
|
+
avgExecutionTime?: number;
|
|
30
|
+
executionCount?: number;
|
|
31
|
+
_lastRunResults?: ObjectId[];
|
|
26
32
|
}
|
package/interfaces/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from "./IAIAgent";
|
|
|
26
26
|
export * from "./IAIConversation";
|
|
27
27
|
export * from "./IAILog";
|
|
28
28
|
export * from "./IAIMessage";
|
|
29
|
+
export * from "./IAIModelCatalog";
|
|
30
|
+
export * from "./IAIProvider";
|
|
29
31
|
export * from "./IAIPrompt";
|
|
30
32
|
export * from "./IAlert";
|
|
31
33
|
export * from "./IEmbeddingJob";
|
|
@@ -279,6 +281,8 @@ export * from "./IExamResult";
|
|
|
279
281
|
export * from "./IExport";
|
|
280
282
|
export * from "./IExportConfig";
|
|
281
283
|
export * from "./IExportLog";
|
|
284
|
+
export * from "./IExternalConversation";
|
|
285
|
+
export * from "./IExternalMessage";
|
|
282
286
|
export * from "./IFailureMessage";
|
|
283
287
|
export * from "./IFamilyName";
|
|
284
288
|
export * from "./IFaq";
|
package/interfaces/index.js
CHANGED
|
@@ -42,6 +42,8 @@ __exportStar(require("./IAIAgent"), exports);
|
|
|
42
42
|
__exportStar(require("./IAIConversation"), exports);
|
|
43
43
|
__exportStar(require("./IAILog"), exports);
|
|
44
44
|
__exportStar(require("./IAIMessage"), exports);
|
|
45
|
+
__exportStar(require("./IAIModelCatalog"), exports);
|
|
46
|
+
__exportStar(require("./IAIProvider"), exports);
|
|
45
47
|
__exportStar(require("./IAIPrompt"), exports);
|
|
46
48
|
__exportStar(require("./IAlert"), exports);
|
|
47
49
|
__exportStar(require("./IEmbeddingJob"), exports);
|
|
@@ -295,6 +297,8 @@ __exportStar(require("./IExamResult"), exports);
|
|
|
295
297
|
__exportStar(require("./IExport"), exports);
|
|
296
298
|
__exportStar(require("./IExportConfig"), exports);
|
|
297
299
|
__exportStar(require("./IExportLog"), exports);
|
|
300
|
+
__exportStar(require("./IExternalConversation"), exports);
|
|
301
|
+
__exportStar(require("./IExternalMessage"), exports);
|
|
298
302
|
__exportStar(require("./IFailureMessage"), exports);
|
|
299
303
|
__exportStar(require("./IFamilyName"), exports);
|
|
300
304
|
__exportStar(require("./IFaq"), exports);
|
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tolinax/ayoune-interfaces",
|
|
3
|
-
"version": "2026.
|
|
4
|
-
"description": "Houses TypeScript interfaces for aYOUne",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "npx tsc",
|
|
9
|
-
"copy-package": "cpx package.json dist",
|
|
10
|
-
"copy-readme": "cpx README.md dist",
|
|
11
|
-
"prerelease": "npm run build",
|
|
12
|
-
"release": "release-it --ci",
|
|
13
|
-
"postrelease": "npm run release-package",
|
|
14
|
-
"prerelease-package": "npm run copy-package && npm run copy-readme",
|
|
15
|
-
"release-package": "cd dist && npm publish",
|
|
16
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/ayoune/ayoune-interfaces.git"
|
|
21
|
-
},
|
|
22
|
-
"keywords": [
|
|
23
|
-
"typescript",
|
|
24
|
-
"interfaces"
|
|
25
|
-
],
|
|
26
|
-
"author": "tolinax",
|
|
27
|
-
"license": "LGPL-3.0",
|
|
28
|
-
"bugs": {
|
|
29
|
-
"url": "https://github.com/ayoune/ayoune-interfaces/issues"
|
|
30
|
-
},
|
|
31
|
-
"homepage": "https://github.com/ayoune/ayoune-interfaces#readme",
|
|
32
|
-
"release-it": {
|
|
33
|
-
"git": {
|
|
34
|
-
"changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to}",
|
|
35
|
-
"requireCleanWorkingDir": false,
|
|
36
|
-
"addUntrackedFiles": true,
|
|
37
|
-
"commit": true,
|
|
38
|
-
"push": true,
|
|
39
|
-
"commitMessage": "ci(chore): release v${version}\n\n${changelog}",
|
|
40
|
-
"tag": true
|
|
41
|
-
},
|
|
42
|
-
"npm": {
|
|
43
|
-
"publish": false
|
|
44
|
-
},
|
|
45
|
-
"plugins": {
|
|
46
|
-
"@release-it/conventional-changelog": {
|
|
47
|
-
"preset": {
|
|
48
|
-
"name": "conventionalcommits",
|
|
49
|
-
"header": "# Changelog",
|
|
50
|
-
"types": [
|
|
51
|
-
{
|
|
52
|
-
"type": "feat",
|
|
53
|
-
"section": "Features"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"type": "fix",
|
|
57
|
-
"section": "Bug Fixes"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"type": "chore",
|
|
61
|
-
"section": "Chores"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"type": "docs",
|
|
65
|
-
"section": "Docs"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"type": "style",
|
|
69
|
-
"section": "Style changes"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"type": "refactor",
|
|
73
|
-
"section": "Refactorings"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "perf",
|
|
77
|
-
"section": "Performance"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"type": "test",
|
|
81
|
-
"section": "Tests"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "ci",
|
|
85
|
-
"section": "Continous Integration"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"type": "build",
|
|
89
|
-
"section": "Build Process"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"type": "infra",
|
|
93
|
-
"section": "Infrastructure"
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"infile": "CHANGELOG.md"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"dependencies": {},
|
|
102
|
-
"devDependencies": {
|
|
103
|
-
"@release-it/conventional-changelog": "^5.0.0",
|
|
104
|
-
"cpx": "^1.5.0",
|
|
105
|
-
"typescript": "^5.3.3"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tolinax/ayoune-interfaces",
|
|
3
|
+
"version": "2026.11.0",
|
|
4
|
+
"description": "Houses TypeScript interfaces for aYOUne",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "npx tsc",
|
|
9
|
+
"copy-package": "cpx package.json dist",
|
|
10
|
+
"copy-readme": "cpx README.md dist",
|
|
11
|
+
"prerelease": "npm run build",
|
|
12
|
+
"release": "release-it --ci",
|
|
13
|
+
"postrelease": "npm run release-package",
|
|
14
|
+
"prerelease-package": "npm run copy-package && npm run copy-readme",
|
|
15
|
+
"release-package": "cd dist && npm publish",
|
|
16
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/ayoune/ayoune-interfaces.git"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"typescript",
|
|
24
|
+
"interfaces"
|
|
25
|
+
],
|
|
26
|
+
"author": "tolinax",
|
|
27
|
+
"license": "LGPL-3.0",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/ayoune/ayoune-interfaces/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/ayoune/ayoune-interfaces#readme",
|
|
32
|
+
"release-it": {
|
|
33
|
+
"git": {
|
|
34
|
+
"changelog": "git log --pretty=format:\"* %s (%h)\" ${from}...${to}",
|
|
35
|
+
"requireCleanWorkingDir": false,
|
|
36
|
+
"addUntrackedFiles": true,
|
|
37
|
+
"commit": true,
|
|
38
|
+
"push": true,
|
|
39
|
+
"commitMessage": "ci(chore): release v${version}\n\n${changelog}",
|
|
40
|
+
"tag": true
|
|
41
|
+
},
|
|
42
|
+
"npm": {
|
|
43
|
+
"publish": false
|
|
44
|
+
},
|
|
45
|
+
"plugins": {
|
|
46
|
+
"@release-it/conventional-changelog": {
|
|
47
|
+
"preset": {
|
|
48
|
+
"name": "conventionalcommits",
|
|
49
|
+
"header": "# Changelog",
|
|
50
|
+
"types": [
|
|
51
|
+
{
|
|
52
|
+
"type": "feat",
|
|
53
|
+
"section": "Features"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "fix",
|
|
57
|
+
"section": "Bug Fixes"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "chore",
|
|
61
|
+
"section": "Chores"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "docs",
|
|
65
|
+
"section": "Docs"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "style",
|
|
69
|
+
"section": "Style changes"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "refactor",
|
|
73
|
+
"section": "Refactorings"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "perf",
|
|
77
|
+
"section": "Performance"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "test",
|
|
81
|
+
"section": "Tests"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "ci",
|
|
85
|
+
"section": "Continous Integration"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "build",
|
|
89
|
+
"section": "Build Process"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "infra",
|
|
93
|
+
"section": "Infrastructure"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"infile": "CHANGELOG.md"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"dependencies": {},
|
|
102
|
+
"devDependencies": {
|
|
103
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
104
|
+
"cpx": "^1.5.0",
|
|
105
|
+
"typescript": "^5.3.3"
|
|
106
|
+
}
|
|
107
|
+
}
|