@naisys/supervisor-shared 3.0.0-beta.4 → 3.0.0-beta.6
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/package.json +5 -3
- package/dist/admin-types.d.ts +0 -103
- package/dist/agent-config-types.d.ts +0 -194
- package/dist/agents-types.d.ts +0 -332
- package/dist/api-types.d.ts +0 -5
- package/dist/auth-types.d.ts +0 -26
- package/dist/chat-types.d.ts +0 -125
- package/dist/controls-types.d.ts +0 -2
- package/dist/costs-types.d.ts +0 -38
- package/dist/error-types.d.ts +0 -7
- package/dist/index.d.ts +0 -16
- package/dist/log-types.d.ts +0 -55
- package/dist/mail-types.d.ts +0 -140
- package/dist/models-types.d.ts +0 -142
- package/dist/runs-types.d.ts +0 -105
- package/dist/status-types.d.ts +0 -32
- package/dist/user-types.d.ts +0 -42
- package/dist/variables-types.d.ts +0 -50
package/dist/chat-types.d.ts
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ChatConversationSchema: z.ZodObject<{
|
|
3
|
-
participants: z.ZodString;
|
|
4
|
-
participantNames: z.ZodArray<z.ZodString>;
|
|
5
|
-
participantTitles: z.ZodArray<z.ZodString>;
|
|
6
|
-
lastMessage: z.ZodString;
|
|
7
|
-
lastMessageAt: z.ZodString;
|
|
8
|
-
lastMessageFrom: z.ZodString;
|
|
9
|
-
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export declare const ChatAttachmentSchema: z.ZodObject<{
|
|
12
|
-
id: z.ZodString;
|
|
13
|
-
filename: z.ZodString;
|
|
14
|
-
fileSize: z.ZodNumber;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const ChatMessageSchema: z.ZodObject<{
|
|
17
|
-
id: z.ZodNumber;
|
|
18
|
-
fromUserId: z.ZodNumber;
|
|
19
|
-
fromUsername: z.ZodString;
|
|
20
|
-
fromTitle: z.ZodString;
|
|
21
|
-
body: z.ZodString;
|
|
22
|
-
createdAt: z.ZodString;
|
|
23
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
-
id: z.ZodString;
|
|
25
|
-
filename: z.ZodString;
|
|
26
|
-
fileSize: z.ZodNumber;
|
|
27
|
-
}, z.core.$strip>>>;
|
|
28
|
-
readBy: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
export declare const ChatConversationsRequestSchema: z.ZodObject<{
|
|
31
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
32
|
-
count: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export declare const ChatConversationsResponseSchema: z.ZodObject<{
|
|
35
|
-
success: z.ZodBoolean;
|
|
36
|
-
conversations: z.ZodArray<z.ZodObject<{
|
|
37
|
-
participants: z.ZodString;
|
|
38
|
-
participantNames: z.ZodArray<z.ZodString>;
|
|
39
|
-
participantTitles: z.ZodArray<z.ZodString>;
|
|
40
|
-
lastMessage: z.ZodString;
|
|
41
|
-
lastMessageAt: z.ZodString;
|
|
42
|
-
lastMessageFrom: z.ZodString;
|
|
43
|
-
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
-
}, z.core.$strip>>;
|
|
45
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
-
rel: z.ZodString;
|
|
48
|
-
href: z.ZodString;
|
|
49
|
-
method: z.ZodString;
|
|
50
|
-
title: z.ZodOptional<z.ZodString>;
|
|
51
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
52
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
54
|
-
contentType: z.ZodString;
|
|
55
|
-
description: z.ZodOptional<z.ZodString>;
|
|
56
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
60
|
-
}, z.core.$strip>>>;
|
|
61
|
-
}, z.core.$strip>;
|
|
62
|
-
export declare const ChatMessagesRequestSchema: z.ZodObject<{
|
|
63
|
-
updatedSince: z.ZodOptional<z.ZodString>;
|
|
64
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
65
|
-
count: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
export declare const ChatMessagesResponseSchema: z.ZodObject<{
|
|
68
|
-
success: z.ZodBoolean;
|
|
69
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
70
|
-
id: z.ZodNumber;
|
|
71
|
-
fromUserId: z.ZodNumber;
|
|
72
|
-
fromUsername: z.ZodString;
|
|
73
|
-
fromTitle: z.ZodString;
|
|
74
|
-
body: z.ZodString;
|
|
75
|
-
createdAt: z.ZodString;
|
|
76
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
-
id: z.ZodString;
|
|
78
|
-
filename: z.ZodString;
|
|
79
|
-
fileSize: z.ZodNumber;
|
|
80
|
-
}, z.core.$strip>>>;
|
|
81
|
-
readBy: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
timestamp: z.ZodString;
|
|
85
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
86
|
-
rel: z.ZodString;
|
|
87
|
-
href: z.ZodString;
|
|
88
|
-
method: z.ZodString;
|
|
89
|
-
title: z.ZodOptional<z.ZodString>;
|
|
90
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
91
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
93
|
-
contentType: z.ZodString;
|
|
94
|
-
description: z.ZodOptional<z.ZodString>;
|
|
95
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
99
|
-
}, z.core.$strip>>>;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
export declare const SendChatRequestSchema: z.ZodObject<{
|
|
102
|
-
fromId: z.ZodNumber;
|
|
103
|
-
toIds: z.ZodArray<z.ZodNumber>;
|
|
104
|
-
message: z.ZodString;
|
|
105
|
-
}, z.core.$strict>;
|
|
106
|
-
export declare const SendChatResponseSchema: z.ZodObject<{
|
|
107
|
-
success: z.ZodBoolean;
|
|
108
|
-
message: z.ZodOptional<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
export declare const ArchiveChatResponseSchema: z.ZodObject<{
|
|
111
|
-
success: z.ZodBoolean;
|
|
112
|
-
archivedCount: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
message: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
export type ArchiveChatResponse = z.infer<typeof ArchiveChatResponseSchema>;
|
|
116
|
-
export type ChatAttachment = z.infer<typeof ChatAttachmentSchema>;
|
|
117
|
-
export type ChatConversation = z.infer<typeof ChatConversationSchema>;
|
|
118
|
-
export type ChatMessage = z.infer<typeof ChatMessageSchema>;
|
|
119
|
-
export type ChatConversationsRequest = z.infer<typeof ChatConversationsRequestSchema>;
|
|
120
|
-
export type ChatConversationsResponse = z.infer<typeof ChatConversationsResponseSchema>;
|
|
121
|
-
export type ChatMessagesRequest = z.infer<typeof ChatMessagesRequestSchema>;
|
|
122
|
-
export type ChatMessagesResponse = z.infer<typeof ChatMessagesResponseSchema>;
|
|
123
|
-
export type SendChatRequest = z.infer<typeof SendChatRequestSchema>;
|
|
124
|
-
export type SendChatResponse = z.infer<typeof SendChatResponseSchema>;
|
|
125
|
-
//# sourceMappingURL=chat-types.d.ts.map
|
package/dist/controls-types.d.ts
DELETED
package/dist/costs-types.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const CostsHistogramRequestSchema: z.ZodObject<{
|
|
3
|
-
start: z.ZodOptional<z.ZodString>;
|
|
4
|
-
end: z.ZodOptional<z.ZodString>;
|
|
5
|
-
bucketHours: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
6
|
-
leadUsername: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type CostsHistogramRequest = z.infer<typeof CostsHistogramRequestSchema>;
|
|
9
|
-
export declare const CostBucketSchema: z.ZodObject<{
|
|
10
|
-
start: z.ZodString;
|
|
11
|
-
end: z.ZodString;
|
|
12
|
-
cost: z.ZodNumber;
|
|
13
|
-
byAgent: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
export type CostBucket = z.infer<typeof CostBucketSchema>;
|
|
16
|
-
export declare const CostByAgentSchema: z.ZodObject<{
|
|
17
|
-
username: z.ZodString;
|
|
18
|
-
title: z.ZodString;
|
|
19
|
-
cost: z.ZodNumber;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type CostByAgent = z.infer<typeof CostByAgentSchema>;
|
|
22
|
-
export declare const CostsHistogramResponseSchema: z.ZodObject<{
|
|
23
|
-
spendLimitDollars: z.ZodNullable<z.ZodNumber>;
|
|
24
|
-
spendLimitHours: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
buckets: z.ZodArray<z.ZodObject<{
|
|
26
|
-
start: z.ZodString;
|
|
27
|
-
end: z.ZodString;
|
|
28
|
-
cost: z.ZodNumber;
|
|
29
|
-
byAgent: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
byAgent: z.ZodArray<z.ZodObject<{
|
|
32
|
-
username: z.ZodString;
|
|
33
|
-
title: z.ZodString;
|
|
34
|
-
cost: z.ZodNumber;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export type CostsHistogramResponse = z.infer<typeof CostsHistogramResponseSchema>;
|
|
38
|
-
//# sourceMappingURL=costs-types.d.ts.map
|
package/dist/error-types.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ErrorResponseSchema: z.ZodObject<{
|
|
3
|
-
success: z.ZodLiteral<false>;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export type ErrorResponse = z.infer<typeof ErrorResponseSchema>;
|
|
7
|
-
//# sourceMappingURL=error-types.d.ts.map
|
package/dist/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./admin-types.js";
|
|
2
|
-
export * from "./agent-config-types.js";
|
|
3
|
-
export * from "./agents-types.js";
|
|
4
|
-
export * from "./api-types.js";
|
|
5
|
-
export * from "./auth-types.js";
|
|
6
|
-
export * from "./chat-types.js";
|
|
7
|
-
export * from "./costs-types.js";
|
|
8
|
-
export * from "./error-types.js";
|
|
9
|
-
export * from "./log-types.js";
|
|
10
|
-
export * from "./mail-types.js";
|
|
11
|
-
export * from "./models-types.js";
|
|
12
|
-
export * from "./runs-types.js";
|
|
13
|
-
export * from "./status-types.js";
|
|
14
|
-
export * from "./user-types.js";
|
|
15
|
-
export * from "./variables-types.js";
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/log-types.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const LogSourceSchema: z.ZodEnum<{
|
|
3
|
-
startPrompt: "startPrompt";
|
|
4
|
-
endPrompt: "endPrompt";
|
|
5
|
-
console: "console";
|
|
6
|
-
llm: "llm";
|
|
7
|
-
}>;
|
|
8
|
-
export declare const LogTypeSchema: z.ZodEnum<{
|
|
9
|
-
error: "error";
|
|
10
|
-
comment: "comment";
|
|
11
|
-
system: "system";
|
|
12
|
-
tool: "tool";
|
|
13
|
-
}>;
|
|
14
|
-
export declare const LogRoleSchema: z.ZodEnum<{
|
|
15
|
-
NAISYS: "NAISYS";
|
|
16
|
-
LLM: "LLM";
|
|
17
|
-
}>;
|
|
18
|
-
export declare const LogAttachmentSchema: z.ZodObject<{
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
filename: z.ZodString;
|
|
21
|
-
fileSize: z.ZodNumber;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
export declare const LogEntrySchema: z.ZodObject<{
|
|
24
|
-
id: z.ZodNumber;
|
|
25
|
-
username: z.ZodString;
|
|
26
|
-
role: z.ZodEnum<{
|
|
27
|
-
NAISYS: "NAISYS";
|
|
28
|
-
LLM: "LLM";
|
|
29
|
-
}>;
|
|
30
|
-
source: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
startPrompt: "startPrompt";
|
|
32
|
-
endPrompt: "endPrompt";
|
|
33
|
-
console: "console";
|
|
34
|
-
llm: "llm";
|
|
35
|
-
}>>;
|
|
36
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
37
|
-
error: "error";
|
|
38
|
-
comment: "comment";
|
|
39
|
-
system: "system";
|
|
40
|
-
tool: "tool";
|
|
41
|
-
}>>;
|
|
42
|
-
message: z.ZodString;
|
|
43
|
-
createdAt: z.ZodString;
|
|
44
|
-
attachment: z.ZodOptional<z.ZodObject<{
|
|
45
|
-
id: z.ZodString;
|
|
46
|
-
filename: z.ZodString;
|
|
47
|
-
fileSize: z.ZodNumber;
|
|
48
|
-
}, z.core.$strip>>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
export type LogAttachment = z.infer<typeof LogAttachmentSchema>;
|
|
51
|
-
export type LogSource = z.infer<typeof LogSourceSchema>;
|
|
52
|
-
export type LogType = z.infer<typeof LogTypeSchema>;
|
|
53
|
-
export type LogRole = z.infer<typeof LogRoleSchema>;
|
|
54
|
-
export type LogEntry = z.infer<typeof LogEntrySchema>;
|
|
55
|
-
//# sourceMappingURL=log-types.d.ts.map
|
package/dist/mail-types.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RecipientTypeEnum: z.ZodEnum<{
|
|
3
|
-
to: "to";
|
|
4
|
-
cc: "cc";
|
|
5
|
-
bcc: "bcc";
|
|
6
|
-
from: "from";
|
|
7
|
-
}>;
|
|
8
|
-
export type RecipientType = z.infer<typeof RecipientTypeEnum>;
|
|
9
|
-
export declare const MailRecipientSchema: z.ZodObject<{
|
|
10
|
-
userId: z.ZodNumber;
|
|
11
|
-
username: z.ZodString;
|
|
12
|
-
title: z.ZodString;
|
|
13
|
-
type: z.ZodEnum<{
|
|
14
|
-
to: "to";
|
|
15
|
-
cc: "cc";
|
|
16
|
-
bcc: "bcc";
|
|
17
|
-
from: "from";
|
|
18
|
-
}>;
|
|
19
|
-
readAt: z.ZodNullable<z.ZodString>;
|
|
20
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export declare const MailAttachmentSchema: z.ZodObject<{
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
filename: z.ZodString;
|
|
25
|
-
fileSize: z.ZodNumber;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export declare const MailMessageSchema: z.ZodObject<{
|
|
28
|
-
id: z.ZodNumber;
|
|
29
|
-
fromUserId: z.ZodNumber;
|
|
30
|
-
fromUsername: z.ZodString;
|
|
31
|
-
fromTitle: z.ZodString;
|
|
32
|
-
subject: z.ZodString;
|
|
33
|
-
body: z.ZodString;
|
|
34
|
-
createdAt: z.ZodString;
|
|
35
|
-
recipients: z.ZodArray<z.ZodObject<{
|
|
36
|
-
userId: z.ZodNumber;
|
|
37
|
-
username: z.ZodString;
|
|
38
|
-
title: z.ZodString;
|
|
39
|
-
type: z.ZodEnum<{
|
|
40
|
-
to: "to";
|
|
41
|
-
cc: "cc";
|
|
42
|
-
bcc: "bcc";
|
|
43
|
-
from: "from";
|
|
44
|
-
}>;
|
|
45
|
-
readAt: z.ZodNullable<z.ZodString>;
|
|
46
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
id: z.ZodString;
|
|
50
|
-
filename: z.ZodString;
|
|
51
|
-
fileSize: z.ZodNumber;
|
|
52
|
-
}, z.core.$strip>>>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const SendMailRequestSchema: z.ZodObject<{
|
|
55
|
-
fromId: z.ZodNumber;
|
|
56
|
-
toIds: z.ZodArray<z.ZodNumber>;
|
|
57
|
-
subject: z.ZodString;
|
|
58
|
-
message: z.ZodString;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
export declare const SendMailResponseSchema: z.ZodObject<{
|
|
61
|
-
success: z.ZodBoolean;
|
|
62
|
-
message: z.ZodOptional<z.ZodString>;
|
|
63
|
-
messageId: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
}, z.core.$strip>;
|
|
65
|
-
export declare const MailDataRequestSchema: z.ZodObject<{
|
|
66
|
-
updatedSince: z.ZodOptional<z.ZodString>;
|
|
67
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
68
|
-
count: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export declare const MailDataResponseSchema: z.ZodObject<{
|
|
71
|
-
success: z.ZodBoolean;
|
|
72
|
-
message: z.ZodString;
|
|
73
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
74
|
-
mail: z.ZodArray<z.ZodObject<{
|
|
75
|
-
id: z.ZodNumber;
|
|
76
|
-
fromUserId: z.ZodNumber;
|
|
77
|
-
fromUsername: z.ZodString;
|
|
78
|
-
fromTitle: z.ZodString;
|
|
79
|
-
subject: z.ZodString;
|
|
80
|
-
body: z.ZodString;
|
|
81
|
-
createdAt: z.ZodString;
|
|
82
|
-
recipients: z.ZodArray<z.ZodObject<{
|
|
83
|
-
userId: z.ZodNumber;
|
|
84
|
-
username: z.ZodString;
|
|
85
|
-
title: z.ZodString;
|
|
86
|
-
type: z.ZodEnum<{
|
|
87
|
-
to: "to";
|
|
88
|
-
cc: "cc";
|
|
89
|
-
bcc: "bcc";
|
|
90
|
-
from: "from";
|
|
91
|
-
}>;
|
|
92
|
-
readAt: z.ZodNullable<z.ZodString>;
|
|
93
|
-
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
-
}, z.core.$strip>>;
|
|
95
|
-
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
-
id: z.ZodString;
|
|
97
|
-
filename: z.ZodString;
|
|
98
|
-
fileSize: z.ZodNumber;
|
|
99
|
-
}, z.core.$strip>>>;
|
|
100
|
-
}, z.core.$strip>>;
|
|
101
|
-
timestamp: z.ZodString;
|
|
102
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
}, z.core.$strip>>;
|
|
104
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
-
rel: z.ZodString;
|
|
106
|
-
href: z.ZodString;
|
|
107
|
-
method: z.ZodOptional<z.ZodString>;
|
|
108
|
-
title: z.ZodOptional<z.ZodString>;
|
|
109
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, z.core.$strip>>>;
|
|
111
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
112
|
-
rel: z.ZodString;
|
|
113
|
-
href: z.ZodString;
|
|
114
|
-
method: z.ZodString;
|
|
115
|
-
title: z.ZodOptional<z.ZodString>;
|
|
116
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
117
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
118
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
119
|
-
contentType: z.ZodString;
|
|
120
|
-
description: z.ZodOptional<z.ZodString>;
|
|
121
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
122
|
-
}, z.core.$strip>>;
|
|
123
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
125
|
-
}, z.core.$strip>>>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
export declare const ArchiveMailResponseSchema: z.ZodObject<{
|
|
128
|
-
success: z.ZodBoolean;
|
|
129
|
-
archivedCount: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
message: z.ZodOptional<z.ZodString>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export type ArchiveMailResponse = z.infer<typeof ArchiveMailResponseSchema>;
|
|
133
|
-
export type MailAttachment = z.infer<typeof MailAttachmentSchema>;
|
|
134
|
-
export type MailRecipient = z.infer<typeof MailRecipientSchema>;
|
|
135
|
-
export type MailMessage = z.infer<typeof MailMessageSchema>;
|
|
136
|
-
export type SendMailRequest = z.infer<typeof SendMailRequestSchema>;
|
|
137
|
-
export type SendMailResponse = z.infer<typeof SendMailResponseSchema>;
|
|
138
|
-
export type MailDataRequest = z.infer<typeof MailDataRequestSchema>;
|
|
139
|
-
export type MailDataResponse = z.infer<typeof MailDataResponseSchema>;
|
|
140
|
-
//# sourceMappingURL=mail-types.d.ts.map
|
package/dist/models-types.d.ts
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const LlmModelDetailSchema: z.ZodObject<{
|
|
3
|
-
key: z.ZodString;
|
|
4
|
-
label: z.ZodString;
|
|
5
|
-
versionName: z.ZodString;
|
|
6
|
-
apiType: z.ZodString;
|
|
7
|
-
maxTokens: z.ZodNumber;
|
|
8
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
9
|
-
apiKeyVar: z.ZodString;
|
|
10
|
-
inputCost: z.ZodNumber;
|
|
11
|
-
outputCost: z.ZodNumber;
|
|
12
|
-
cacheWriteCost: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
cacheReadCost: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
cacheTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
supportsHearing: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
isCustom: z.ZodBoolean;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export type LlmModelDetail = z.infer<typeof LlmModelDetailSchema>;
|
|
20
|
-
export declare const ImageModelDetailSchema: z.ZodObject<{
|
|
21
|
-
key: z.ZodString;
|
|
22
|
-
label: z.ZodString;
|
|
23
|
-
versionName: z.ZodString;
|
|
24
|
-
size: z.ZodString;
|
|
25
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
26
|
-
apiKeyVar: z.ZodString;
|
|
27
|
-
cost: z.ZodNumber;
|
|
28
|
-
quality: z.ZodOptional<z.ZodString>;
|
|
29
|
-
isCustom: z.ZodBoolean;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export type ImageModelDetail = z.infer<typeof ImageModelDetailSchema>;
|
|
32
|
-
export declare const ModelsResponseSchema: z.ZodObject<{
|
|
33
|
-
llmModels: z.ZodArray<z.ZodObject<{
|
|
34
|
-
value: z.ZodString;
|
|
35
|
-
label: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
imageModels: z.ZodArray<z.ZodObject<{
|
|
38
|
-
value: z.ZodString;
|
|
39
|
-
label: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
llmModelDetails: z.ZodArray<z.ZodObject<{
|
|
42
|
-
key: z.ZodString;
|
|
43
|
-
label: z.ZodString;
|
|
44
|
-
versionName: z.ZodString;
|
|
45
|
-
apiType: z.ZodString;
|
|
46
|
-
maxTokens: z.ZodNumber;
|
|
47
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
48
|
-
apiKeyVar: z.ZodString;
|
|
49
|
-
inputCost: z.ZodNumber;
|
|
50
|
-
outputCost: z.ZodNumber;
|
|
51
|
-
cacheWriteCost: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
cacheReadCost: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
cacheTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
54
|
-
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
supportsHearing: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
isCustom: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
imageModelDetails: z.ZodArray<z.ZodObject<{
|
|
59
|
-
key: z.ZodString;
|
|
60
|
-
label: z.ZodString;
|
|
61
|
-
versionName: z.ZodString;
|
|
62
|
-
size: z.ZodString;
|
|
63
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
64
|
-
apiKeyVar: z.ZodString;
|
|
65
|
-
cost: z.ZodNumber;
|
|
66
|
-
quality: z.ZodOptional<z.ZodString>;
|
|
67
|
-
isCustom: z.ZodBoolean;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
-
rel: z.ZodString;
|
|
71
|
-
href: z.ZodString;
|
|
72
|
-
method: z.ZodString;
|
|
73
|
-
title: z.ZodOptional<z.ZodString>;
|
|
74
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
75
|
-
body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
76
|
-
alternateEncoding: z.ZodOptional<z.ZodObject<{
|
|
77
|
-
contentType: z.ZodString;
|
|
78
|
-
description: z.ZodOptional<z.ZodString>;
|
|
79
|
-
fileFields: z.ZodArray<z.ZodString>;
|
|
80
|
-
}, z.core.$strip>>;
|
|
81
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
-
disabledReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
83
|
-
}, z.core.$strip>>>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
export type ModelsResponse = z.infer<typeof ModelsResponseSchema>;
|
|
86
|
-
export declare const SaveLlmModelRequestSchema: z.ZodObject<{
|
|
87
|
-
model: z.ZodObject<{
|
|
88
|
-
key: z.ZodString;
|
|
89
|
-
label: z.ZodString;
|
|
90
|
-
versionName: z.ZodString;
|
|
91
|
-
apiType: z.ZodString;
|
|
92
|
-
maxTokens: z.ZodNumber;
|
|
93
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
94
|
-
apiKeyVar: z.ZodString;
|
|
95
|
-
inputCost: z.ZodDefault<z.ZodNumber>;
|
|
96
|
-
outputCost: z.ZodDefault<z.ZodNumber>;
|
|
97
|
-
cacheWriteCost: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
cacheReadCost: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
cacheTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
supportsVision: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
supportsHearing: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
}, z.core.$strip>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
export type SaveLlmModelRequest = z.infer<typeof SaveLlmModelRequestSchema>;
|
|
105
|
-
export declare const SaveImageModelRequestSchema: z.ZodObject<{
|
|
106
|
-
model: z.ZodObject<{
|
|
107
|
-
key: z.ZodString;
|
|
108
|
-
label: z.ZodString;
|
|
109
|
-
versionName: z.ZodString;
|
|
110
|
-
size: z.ZodString;
|
|
111
|
-
baseUrl: z.ZodOptional<z.ZodString>;
|
|
112
|
-
apiKeyVar: z.ZodString;
|
|
113
|
-
cost: z.ZodNumber;
|
|
114
|
-
quality: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.core.$strip>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
export type SaveImageModelRequest = z.infer<typeof SaveImageModelRequestSchema>;
|
|
118
|
-
export declare const SaveModelResponseSchema: z.ZodObject<{
|
|
119
|
-
success: z.ZodBoolean;
|
|
120
|
-
message: z.ZodString;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
export type SaveModelResponse = z.infer<typeof SaveModelResponseSchema>;
|
|
123
|
-
export declare const ModelTypeEnum: z.ZodEnum<{
|
|
124
|
-
llm: "llm";
|
|
125
|
-
image: "image";
|
|
126
|
-
}>;
|
|
127
|
-
export type ModelType = z.infer<typeof ModelTypeEnum>;
|
|
128
|
-
export declare const DeleteModelParamsSchema: z.ZodObject<{
|
|
129
|
-
type: z.ZodEnum<{
|
|
130
|
-
llm: "llm";
|
|
131
|
-
image: "image";
|
|
132
|
-
}>;
|
|
133
|
-
key: z.ZodString;
|
|
134
|
-
}, z.core.$strip>;
|
|
135
|
-
export type DeleteModelParams = z.infer<typeof DeleteModelParamsSchema>;
|
|
136
|
-
export declare const DeleteModelResponseSchema: z.ZodObject<{
|
|
137
|
-
success: z.ZodBoolean;
|
|
138
|
-
message: z.ZodString;
|
|
139
|
-
revertedToBuiltIn: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
export type DeleteModelResponse = z.infer<typeof DeleteModelResponseSchema>;
|
|
142
|
-
//# sourceMappingURL=models-types.d.ts.map
|
package/dist/runs-types.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const RunSessionSchema: z.ZodObject<{
|
|
3
|
-
userId: z.ZodNumber;
|
|
4
|
-
runId: z.ZodNumber;
|
|
5
|
-
sessionId: z.ZodNumber;
|
|
6
|
-
createdAt: z.ZodString;
|
|
7
|
-
lastActive: z.ZodString;
|
|
8
|
-
modelName: z.ZodString;
|
|
9
|
-
latestLogId: z.ZodNumber;
|
|
10
|
-
totalLines: z.ZodNumber;
|
|
11
|
-
totalCost: z.ZodNumber;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export declare const RunsDataRequestSchema: z.ZodObject<{
|
|
14
|
-
updatedSince: z.ZodOptional<z.ZodString>;
|
|
15
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
16
|
-
count: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export declare const RunsDataResponseSchema: z.ZodObject<{
|
|
19
|
-
success: z.ZodBoolean;
|
|
20
|
-
message: z.ZodString;
|
|
21
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
22
|
-
runs: z.ZodArray<z.ZodObject<{
|
|
23
|
-
userId: z.ZodNumber;
|
|
24
|
-
runId: z.ZodNumber;
|
|
25
|
-
sessionId: z.ZodNumber;
|
|
26
|
-
createdAt: z.ZodString;
|
|
27
|
-
lastActive: z.ZodString;
|
|
28
|
-
modelName: z.ZodString;
|
|
29
|
-
latestLogId: z.ZodNumber;
|
|
30
|
-
totalLines: z.ZodNumber;
|
|
31
|
-
totalCost: z.ZodNumber;
|
|
32
|
-
}, z.core.$strip>>;
|
|
33
|
-
timestamp: z.ZodString;
|
|
34
|
-
total: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
-
rel: z.ZodString;
|
|
38
|
-
href: z.ZodString;
|
|
39
|
-
method: z.ZodOptional<z.ZodString>;
|
|
40
|
-
title: z.ZodOptional<z.ZodString>;
|
|
41
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
42
|
-
}, z.core.$strip>>>;
|
|
43
|
-
_linkTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
-
rel: z.ZodString;
|
|
45
|
-
hrefTemplate: z.ZodString;
|
|
46
|
-
title: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$strip>>>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
export declare const ContextLogParamsSchema: z.ZodObject<{
|
|
50
|
-
username: z.ZodString;
|
|
51
|
-
runId: z.ZodCoercedNumber<unknown>;
|
|
52
|
-
sessionId: z.ZodCoercedNumber<unknown>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export declare const ContextLogRequestSchema: z.ZodObject<{
|
|
55
|
-
logsAfter: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
56
|
-
logsBefore: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
export declare const ContextLogResponseSchema: z.ZodObject<{
|
|
59
|
-
success: z.ZodBoolean;
|
|
60
|
-
message: z.ZodString;
|
|
61
|
-
data: z.ZodOptional<z.ZodObject<{
|
|
62
|
-
logs: z.ZodArray<z.ZodObject<{
|
|
63
|
-
id: z.ZodNumber;
|
|
64
|
-
username: z.ZodString;
|
|
65
|
-
role: z.ZodEnum<{
|
|
66
|
-
NAISYS: "NAISYS";
|
|
67
|
-
LLM: "LLM";
|
|
68
|
-
}>;
|
|
69
|
-
source: z.ZodNullable<z.ZodEnum<{
|
|
70
|
-
startPrompt: "startPrompt";
|
|
71
|
-
endPrompt: "endPrompt";
|
|
72
|
-
console: "console";
|
|
73
|
-
llm: "llm";
|
|
74
|
-
}>>;
|
|
75
|
-
type: z.ZodNullable<z.ZodEnum<{
|
|
76
|
-
error: "error";
|
|
77
|
-
comment: "comment";
|
|
78
|
-
system: "system";
|
|
79
|
-
tool: "tool";
|
|
80
|
-
}>>;
|
|
81
|
-
message: z.ZodString;
|
|
82
|
-
createdAt: z.ZodString;
|
|
83
|
-
attachment: z.ZodOptional<z.ZodObject<{
|
|
84
|
-
id: z.ZodString;
|
|
85
|
-
filename: z.ZodString;
|
|
86
|
-
fileSize: z.ZodNumber;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
timestamp: z.ZodString;
|
|
90
|
-
}, z.core.$strip>>;
|
|
91
|
-
_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
-
rel: z.ZodString;
|
|
93
|
-
href: z.ZodString;
|
|
94
|
-
method: z.ZodOptional<z.ZodString>;
|
|
95
|
-
title: z.ZodOptional<z.ZodString>;
|
|
96
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
97
|
-
}, z.core.$strip>>>;
|
|
98
|
-
}, z.core.$strip>;
|
|
99
|
-
export type RunSession = z.infer<typeof RunSessionSchema>;
|
|
100
|
-
export type RunsDataRequest = z.infer<typeof RunsDataRequestSchema>;
|
|
101
|
-
export type RunsDataResponse = z.infer<typeof RunsDataResponseSchema>;
|
|
102
|
-
export type ContextLogParams = z.infer<typeof ContextLogParamsSchema>;
|
|
103
|
-
export type ContextLogRequest = z.infer<typeof ContextLogRequestSchema>;
|
|
104
|
-
export type ContextLogResponse = z.infer<typeof ContextLogResponseSchema>;
|
|
105
|
-
//# sourceMappingURL=runs-types.d.ts.map
|
package/dist/status-types.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const StatusResponseSchema: z.ZodObject<{
|
|
3
|
-
hubConnected: z.ZodBoolean;
|
|
4
|
-
}, z.core.$strip>;
|
|
5
|
-
export type StatusResponse = z.infer<typeof StatusResponseSchema>;
|
|
6
|
-
export declare const AgentStatusEventSchema: z.ZodObject<{
|
|
7
|
-
agents: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8
|
-
status: z.ZodEnum<{
|
|
9
|
-
disabled: "disabled";
|
|
10
|
-
active: "active";
|
|
11
|
-
available: "available";
|
|
12
|
-
offline: "offline";
|
|
13
|
-
suspended: "suspended";
|
|
14
|
-
}>;
|
|
15
|
-
latestLogId: z.ZodNumber;
|
|
16
|
-
latestMailId: z.ZodNumber;
|
|
17
|
-
}, z.core.$strip>>;
|
|
18
|
-
agentsListChanged: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type AgentStatusEvent = z.infer<typeof AgentStatusEventSchema>;
|
|
21
|
-
export declare const HostStatusEventSchema: z.ZodObject<{
|
|
22
|
-
hosts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
23
|
-
online: z.ZodBoolean;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
hostsListChanged: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
}, z.core.$strip>;
|
|
27
|
-
export type HostStatusEvent = z.infer<typeof HostStatusEventSchema>;
|
|
28
|
-
export declare const HubStatusEventSchema: z.ZodObject<{
|
|
29
|
-
hubConnected: z.ZodBoolean;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export type HubStatusEvent = z.infer<typeof HubStatusEventSchema>;
|
|
32
|
-
//# sourceMappingURL=status-types.d.ts.map
|