@altimateai/ui-components 0.0.29 → 0.0.31-beta.1
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/CoachForm.js +13101 -12780
- package/dist/Form.js +2883 -1992
- package/dist/Stack.js +86 -62
- package/dist/chatbotV2/index.d.ts +88 -3
- package/dist/chatbotV2/index.js +26 -18
- package/dist/flowchart-elk-definition-170a3958.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/is_dark.js +1 -1
- package/dist/lineage/index.js +1 -1
- package/dist/main.css +1 -1
- package/dist/main.js +655 -659
- package/dist/mindmap-definition-44684416.js +1 -1
- package/dist/redux-toolkit.modern.js +1 -1
- package/dist/shadcn/index.d.ts +18 -2
- package/dist/shadcn/index.js +1695 -1626
- package/dist/storybook/DebouncedInput.stories.tsx +179 -0
- package/dist/storybook/Input.stories.tsx +89 -2
- package/dist/storybook/Tabs.stories.tsx +147 -0
- package/dist/timeline-definition-8e5a9bc6.js +16 -16
- package/dist/types-rSkEslHb.d.ts +545 -0
- package/package.json +1 -1
- package/dist/types-Dr98SsnM.d.ts +0 -304
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
import { ReactNode, Dispatch, ComponentType } from 'react';
|
|
2
|
+
import { UnknownAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
interface AgentAction {
|
|
6
|
+
id?: string;
|
|
7
|
+
type: "info" | "analysis";
|
|
8
|
+
content: string;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
artifacts?: Artifact[];
|
|
11
|
+
}
|
|
12
|
+
declare enum LoadingState {
|
|
13
|
+
LOADING = "LOADING",
|
|
14
|
+
LOADED = "LOADED",
|
|
15
|
+
ERROR = "ERROR",
|
|
16
|
+
UNINITIALIZED = "UNINITIALIZED"
|
|
17
|
+
}
|
|
18
|
+
interface AssistantMeta {
|
|
19
|
+
avatar: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
interface Feedback {
|
|
23
|
+
rating?: "up" | "down";
|
|
24
|
+
comment?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ContextOption {
|
|
27
|
+
label: string;
|
|
28
|
+
key: string;
|
|
29
|
+
options?: {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
customComponent?: React.ComponentType<{
|
|
34
|
+
onUpdateContext: (_context: Record<string, unknown>) => void;
|
|
35
|
+
closePopover: () => void;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
interface ChatSession {
|
|
39
|
+
id: string;
|
|
40
|
+
messages: ChatMessage[];
|
|
41
|
+
context?: {
|
|
42
|
+
files?: File[];
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
selectedModel?: string | null;
|
|
46
|
+
mode?: string;
|
|
47
|
+
datamates?: string[];
|
|
48
|
+
}
|
|
49
|
+
interface FileUploadProps {
|
|
50
|
+
allowedFiles: string;
|
|
51
|
+
contextFieldKey: string;
|
|
52
|
+
}
|
|
53
|
+
interface ChatbotUrls {
|
|
54
|
+
origin?: string;
|
|
55
|
+
askPath?: string;
|
|
56
|
+
proceedPath?: string;
|
|
57
|
+
frontendUrl?: string;
|
|
58
|
+
followupPath?: string;
|
|
59
|
+
}
|
|
60
|
+
interface Datamate {
|
|
61
|
+
id: string;
|
|
62
|
+
label: string;
|
|
63
|
+
}
|
|
64
|
+
interface Mode {
|
|
65
|
+
value: string;
|
|
66
|
+
label: string;
|
|
67
|
+
isComingSoon?: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface ChatbotProps {
|
|
70
|
+
helloMessage?: React.ReactNode;
|
|
71
|
+
assistantMeta?: AssistantMeta;
|
|
72
|
+
context?: Record<string, unknown>;
|
|
73
|
+
fileUploadProps?: FileUploadProps;
|
|
74
|
+
contextOptions?: ContextOption[];
|
|
75
|
+
placeholder?: string;
|
|
76
|
+
enableDatamatesSelection?: boolean;
|
|
77
|
+
datamates?: Datamate[];
|
|
78
|
+
modes?: Mode[];
|
|
79
|
+
classNames?: {
|
|
80
|
+
chatbot?: string;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
interface ChatbotProviderProps extends ChatbotProps {
|
|
84
|
+
taskLabel?: keyof typeof TaskLabels;
|
|
85
|
+
initialValidation?: ChatState["initialValidation"];
|
|
86
|
+
onError?: (error: unknown) => void;
|
|
87
|
+
urls?: ChatbotUrls;
|
|
88
|
+
disableContext?: boolean;
|
|
89
|
+
requestParams?: RequestInit;
|
|
90
|
+
components?: {
|
|
91
|
+
feedback?: ReactNode;
|
|
92
|
+
questionFormButtons?: (userPrompt: string, onAccept: (improvedPrompt: string) => void) => ReactNode;
|
|
93
|
+
};
|
|
94
|
+
contextOptions?: ContextOption[];
|
|
95
|
+
isMarkdownResponse?: boolean;
|
|
96
|
+
models?: {
|
|
97
|
+
label: string;
|
|
98
|
+
value: string;
|
|
99
|
+
}[];
|
|
100
|
+
placeholder?: string;
|
|
101
|
+
sessions?: Record<string, ChatSession>;
|
|
102
|
+
currentSessionId?: string;
|
|
103
|
+
}
|
|
104
|
+
type InteractionType = "text" | "select" | "multiSelect" | "confirm";
|
|
105
|
+
interface InteractionChoice {
|
|
106
|
+
id: string;
|
|
107
|
+
label: string;
|
|
108
|
+
value: string;
|
|
109
|
+
}
|
|
110
|
+
interface InteractionRequest {
|
|
111
|
+
type: InteractionType;
|
|
112
|
+
id: string;
|
|
113
|
+
prompt: string;
|
|
114
|
+
required?: boolean;
|
|
115
|
+
choices?: InteractionChoice[];
|
|
116
|
+
validation?: {
|
|
117
|
+
pattern?: string;
|
|
118
|
+
message?: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
interface ChatMessage {
|
|
122
|
+
id: string;
|
|
123
|
+
content: string;
|
|
124
|
+
role: "user" | "assistant";
|
|
125
|
+
timestamp: number;
|
|
126
|
+
actions?: AgentAction[];
|
|
127
|
+
interaction?: InteractionRequest;
|
|
128
|
+
artifacts?: Artifact[];
|
|
129
|
+
heading: string;
|
|
130
|
+
citations?: Citation[];
|
|
131
|
+
todos?: TodoItem[];
|
|
132
|
+
}
|
|
133
|
+
interface Artifact {
|
|
134
|
+
content: string;
|
|
135
|
+
entity: string;
|
|
136
|
+
name: string;
|
|
137
|
+
type: string;
|
|
138
|
+
}
|
|
139
|
+
interface ChatResponse {
|
|
140
|
+
content: string;
|
|
141
|
+
actions?: AgentAction[];
|
|
142
|
+
interaction?: InteractionRequest;
|
|
143
|
+
role: "assistant" | "user";
|
|
144
|
+
timestamp: number;
|
|
145
|
+
artifacts?: Artifact[];
|
|
146
|
+
heading: string;
|
|
147
|
+
todos?: TodoItem[];
|
|
148
|
+
}
|
|
149
|
+
interface ChatState {
|
|
150
|
+
sessions: Record<string, ChatSession>;
|
|
151
|
+
currentSessionId: string | null;
|
|
152
|
+
loadingState: LoadingState;
|
|
153
|
+
error: string | null;
|
|
154
|
+
abortController: AbortController | null;
|
|
155
|
+
currentActions: AgentAction[];
|
|
156
|
+
currentTodos: TodoItem[];
|
|
157
|
+
taskLabel?: keyof typeof TaskLabels;
|
|
158
|
+
initialValidation?: (data: {
|
|
159
|
+
context: ChatSession["context"];
|
|
160
|
+
}) => Promise<void>;
|
|
161
|
+
urls?: ChatbotUrls;
|
|
162
|
+
disableContext?: boolean;
|
|
163
|
+
requestParams?: RequestInit;
|
|
164
|
+
isMarkdownResponse?: boolean;
|
|
165
|
+
models?: {
|
|
166
|
+
label: string;
|
|
167
|
+
value: string;
|
|
168
|
+
}[];
|
|
169
|
+
components?: {
|
|
170
|
+
feedback?: ReactNode;
|
|
171
|
+
questionFormButtons?: (userPrompt: string, onAccept: (improvedPrompt: string) => void) => ReactNode;
|
|
172
|
+
};
|
|
173
|
+
enableDatamatesSelection?: boolean;
|
|
174
|
+
datamates?: Datamate[];
|
|
175
|
+
modes?: Mode[];
|
|
176
|
+
classNames?: {
|
|
177
|
+
chatbot?: string;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
declare const todoItemSchema: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
content: z.ZodString;
|
|
183
|
+
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
184
|
+
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
id: string;
|
|
187
|
+
content: string;
|
|
188
|
+
status: "pending" | "in_progress" | "completed";
|
|
189
|
+
priority: "high" | "low" | "medium";
|
|
190
|
+
}, {
|
|
191
|
+
id: string;
|
|
192
|
+
content: string;
|
|
193
|
+
status: "pending" | "in_progress" | "completed";
|
|
194
|
+
priority: "high" | "low" | "medium";
|
|
195
|
+
}>;
|
|
196
|
+
type TodoItem = z.infer<typeof todoItemSchema>;
|
|
197
|
+
interface ToolUsageData {
|
|
198
|
+
tool: string;
|
|
199
|
+
id: string;
|
|
200
|
+
}
|
|
201
|
+
interface ProgressUpdate {
|
|
202
|
+
timestamp: string;
|
|
203
|
+
todos: TodoItem[];
|
|
204
|
+
}
|
|
205
|
+
interface FinalResponseData {
|
|
206
|
+
tool_usage?: ToolUsageData[];
|
|
207
|
+
turns?: number;
|
|
208
|
+
tools_used?: number;
|
|
209
|
+
progress_updates?: ProgressUpdate[];
|
|
210
|
+
total_progress_updates?: number;
|
|
211
|
+
}
|
|
212
|
+
declare const agentStreamResponseSchema: z.ZodObject<{
|
|
213
|
+
id: z.ZodOptional<z.ZodString>;
|
|
214
|
+
type: z.ZodEnum<["info", "agent_outcome", "require_user_action", "analysis", "error", "citations", "text", "tool_use", "final_response", "complete"]>;
|
|
215
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
216
|
+
content: z.ZodOptional<z.ZodString>;
|
|
217
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
218
|
+
todos: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
content: z.ZodString;
|
|
221
|
+
status: z.ZodEnum<["pending", "in_progress", "completed"]>;
|
|
222
|
+
priority: z.ZodEnum<["high", "medium", "low"]>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
id: string;
|
|
225
|
+
content: string;
|
|
226
|
+
status: "pending" | "in_progress" | "completed";
|
|
227
|
+
priority: "high" | "low" | "medium";
|
|
228
|
+
}, {
|
|
229
|
+
id: string;
|
|
230
|
+
content: string;
|
|
231
|
+
status: "pending" | "in_progress" | "completed";
|
|
232
|
+
priority: "high" | "low" | "medium";
|
|
233
|
+
}>, "many">>;
|
|
234
|
+
response: z.ZodOptional<z.ZodString>;
|
|
235
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
236
|
+
tool_usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
|
+
tool: z.ZodString;
|
|
238
|
+
id: z.ZodString;
|
|
239
|
+
}, "strip", z.ZodTypeAny, {
|
|
240
|
+
id: string;
|
|
241
|
+
tool: string;
|
|
242
|
+
}, {
|
|
243
|
+
id: string;
|
|
244
|
+
tool: string;
|
|
245
|
+
}>, "many">>;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
tool_usage?: {
|
|
248
|
+
id: string;
|
|
249
|
+
tool: string;
|
|
250
|
+
}[] | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
tool_usage?: {
|
|
253
|
+
id: string;
|
|
254
|
+
tool: string;
|
|
255
|
+
}[] | undefined;
|
|
256
|
+
}>>;
|
|
257
|
+
interaction: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
type: z.ZodEnum<["text", "multiSelect", "confirm", "select"]>;
|
|
259
|
+
id: z.ZodString;
|
|
260
|
+
prompt: z.ZodString;
|
|
261
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
label: z.ZodString;
|
|
265
|
+
value: z.ZodString;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
id: string;
|
|
268
|
+
value: string;
|
|
269
|
+
label: string;
|
|
270
|
+
}, {
|
|
271
|
+
id: string;
|
|
272
|
+
value: string;
|
|
273
|
+
label: string;
|
|
274
|
+
}>, "many">>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
id: string;
|
|
277
|
+
type: "text" | "select" | "multiSelect" | "confirm";
|
|
278
|
+
prompt: string;
|
|
279
|
+
required?: boolean | undefined;
|
|
280
|
+
choices?: {
|
|
281
|
+
id: string;
|
|
282
|
+
value: string;
|
|
283
|
+
label: string;
|
|
284
|
+
}[] | undefined;
|
|
285
|
+
}, {
|
|
286
|
+
id: string;
|
|
287
|
+
type: "text" | "select" | "multiSelect" | "confirm";
|
|
288
|
+
prompt: string;
|
|
289
|
+
required?: boolean | undefined;
|
|
290
|
+
choices?: {
|
|
291
|
+
id: string;
|
|
292
|
+
value: string;
|
|
293
|
+
label: string;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
}>>;
|
|
296
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
297
|
+
content: z.ZodString;
|
|
298
|
+
entity: z.ZodString;
|
|
299
|
+
name: z.ZodString;
|
|
300
|
+
type: z.ZodString;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
content: string;
|
|
303
|
+
name: string;
|
|
304
|
+
type: string;
|
|
305
|
+
entity: string;
|
|
306
|
+
}, {
|
|
307
|
+
content: string;
|
|
308
|
+
name: string;
|
|
309
|
+
type: string;
|
|
310
|
+
entity: string;
|
|
311
|
+
}>, "many">>;
|
|
312
|
+
citations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
+
content: z.ZodString;
|
|
314
|
+
entity: z.ZodString;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
type: z.ZodString;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
content: string;
|
|
319
|
+
name: string;
|
|
320
|
+
type: string;
|
|
321
|
+
entity: string;
|
|
322
|
+
}, {
|
|
323
|
+
content: string;
|
|
324
|
+
name: string;
|
|
325
|
+
type: string;
|
|
326
|
+
entity: string;
|
|
327
|
+
}>, "many">>;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
type: "text" | "info" | "error" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
|
|
330
|
+
id?: string | undefined;
|
|
331
|
+
content?: string | undefined;
|
|
332
|
+
heading?: string | undefined;
|
|
333
|
+
data?: {
|
|
334
|
+
tool_usage?: {
|
|
335
|
+
id: string;
|
|
336
|
+
tool: string;
|
|
337
|
+
}[] | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
citations?: {
|
|
340
|
+
content: string;
|
|
341
|
+
name: string;
|
|
342
|
+
type: string;
|
|
343
|
+
entity: string;
|
|
344
|
+
}[] | undefined;
|
|
345
|
+
tool?: string | undefined;
|
|
346
|
+
todos?: {
|
|
347
|
+
id: string;
|
|
348
|
+
content: string;
|
|
349
|
+
status: "pending" | "in_progress" | "completed";
|
|
350
|
+
priority: "high" | "low" | "medium";
|
|
351
|
+
}[] | undefined;
|
|
352
|
+
response?: string | undefined;
|
|
353
|
+
interaction?: {
|
|
354
|
+
id: string;
|
|
355
|
+
type: "text" | "select" | "multiSelect" | "confirm";
|
|
356
|
+
prompt: string;
|
|
357
|
+
required?: boolean | undefined;
|
|
358
|
+
choices?: {
|
|
359
|
+
id: string;
|
|
360
|
+
value: string;
|
|
361
|
+
label: string;
|
|
362
|
+
}[] | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
artifacts?: {
|
|
365
|
+
content: string;
|
|
366
|
+
name: string;
|
|
367
|
+
type: string;
|
|
368
|
+
entity: string;
|
|
369
|
+
}[] | undefined;
|
|
370
|
+
}, {
|
|
371
|
+
type: "text" | "info" | "error" | "analysis" | "agent_outcome" | "require_user_action" | "citations" | "tool_use" | "final_response" | "complete";
|
|
372
|
+
id?: string | undefined;
|
|
373
|
+
content?: string | undefined;
|
|
374
|
+
heading?: string | undefined;
|
|
375
|
+
data?: {
|
|
376
|
+
tool_usage?: {
|
|
377
|
+
id: string;
|
|
378
|
+
tool: string;
|
|
379
|
+
}[] | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
citations?: {
|
|
382
|
+
content: string;
|
|
383
|
+
name: string;
|
|
384
|
+
type: string;
|
|
385
|
+
entity: string;
|
|
386
|
+
}[] | undefined;
|
|
387
|
+
tool?: string | undefined;
|
|
388
|
+
todos?: {
|
|
389
|
+
id: string;
|
|
390
|
+
content: string;
|
|
391
|
+
status: "pending" | "in_progress" | "completed";
|
|
392
|
+
priority: "high" | "low" | "medium";
|
|
393
|
+
}[] | undefined;
|
|
394
|
+
response?: string | undefined;
|
|
395
|
+
interaction?: {
|
|
396
|
+
id: string;
|
|
397
|
+
type: "text" | "select" | "multiSelect" | "confirm";
|
|
398
|
+
prompt: string;
|
|
399
|
+
required?: boolean | undefined;
|
|
400
|
+
choices?: {
|
|
401
|
+
id: string;
|
|
402
|
+
value: string;
|
|
403
|
+
label: string;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
} | undefined;
|
|
406
|
+
artifacts?: {
|
|
407
|
+
content: string;
|
|
408
|
+
name: string;
|
|
409
|
+
type: string;
|
|
410
|
+
entity: string;
|
|
411
|
+
}[] | undefined;
|
|
412
|
+
}>;
|
|
413
|
+
interface AgentStreamResponse {
|
|
414
|
+
id?: string;
|
|
415
|
+
type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations" | "text" | "tool_use" | "final_response" | "complete";
|
|
416
|
+
heading?: string;
|
|
417
|
+
content?: string;
|
|
418
|
+
tool?: string;
|
|
419
|
+
todos?: TodoItem[];
|
|
420
|
+
response?: string;
|
|
421
|
+
data?: FinalResponseData;
|
|
422
|
+
interaction?: {
|
|
423
|
+
type: "text" | "multiSelect" | "confirm" | "select";
|
|
424
|
+
id: string;
|
|
425
|
+
prompt: string;
|
|
426
|
+
required?: boolean;
|
|
427
|
+
choices?: Array<{
|
|
428
|
+
id: string;
|
|
429
|
+
label: string;
|
|
430
|
+
value: string;
|
|
431
|
+
}>;
|
|
432
|
+
};
|
|
433
|
+
artifacts?: Artifact[];
|
|
434
|
+
citations?: Citation[];
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface TeamMateState {
|
|
438
|
+
showCoachingForm: boolean;
|
|
439
|
+
}
|
|
440
|
+
interface TeamMateContextProps {
|
|
441
|
+
state: TeamMateState;
|
|
442
|
+
dispatch: Dispatch<UnknownAction>;
|
|
443
|
+
}
|
|
444
|
+
interface CoachAiResponse {
|
|
445
|
+
ai_response: string;
|
|
446
|
+
category: string;
|
|
447
|
+
personalizationScope: string;
|
|
448
|
+
}
|
|
449
|
+
interface CoachAiConfirmationResponse {
|
|
450
|
+
ok: boolean;
|
|
451
|
+
train_doc_uid: string;
|
|
452
|
+
frontend_url: string;
|
|
453
|
+
}
|
|
454
|
+
declare enum ContentCategory {
|
|
455
|
+
TERM_CLARIFICATION = "TermClarification",
|
|
456
|
+
GENERAL_GUIDELINES = "GeneralGuidelines",
|
|
457
|
+
BUSINESS_EXPLANATION = "BusinessExplanation"
|
|
458
|
+
}
|
|
459
|
+
declare enum TaskLabels {
|
|
460
|
+
DocGen = "DocGen",
|
|
461
|
+
ChartBot = "ChartBot",
|
|
462
|
+
SqlBot = "SqlExpert",
|
|
463
|
+
OpportunitiesBot = "OpportunitiesBot",
|
|
464
|
+
ProjectGovernor = "ProjectGovernor",
|
|
465
|
+
TeradataToSnowflakeMigrator = "TeradataToSnowflakeMigrator",
|
|
466
|
+
AlertManager = "AlertManager"
|
|
467
|
+
}
|
|
468
|
+
declare enum PersonalizationScope {
|
|
469
|
+
USER_SPECIFIC = "UserSpecific",
|
|
470
|
+
ALL_USERS = "AllUsers"
|
|
471
|
+
}
|
|
472
|
+
declare const learningSchema: z.ZodObject<{
|
|
473
|
+
train_doc_uid: z.ZodString;
|
|
474
|
+
userId: z.ZodString;
|
|
475
|
+
display_name: z.ZodString;
|
|
476
|
+
taskLabel: z.ZodString;
|
|
477
|
+
category: z.ZodEnum<[string, ...string[]]>;
|
|
478
|
+
personalizationScope: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
479
|
+
createdDate: z.ZodString;
|
|
480
|
+
updatedDate: z.ZodString;
|
|
481
|
+
content: z.ZodString;
|
|
482
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
483
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
484
|
+
}, "strip", z.ZodTypeAny, {
|
|
485
|
+
content: string;
|
|
486
|
+
isActive: boolean;
|
|
487
|
+
display_name: string;
|
|
488
|
+
userId: string;
|
|
489
|
+
taskLabel: string;
|
|
490
|
+
category: string;
|
|
491
|
+
personalizationScope: string;
|
|
492
|
+
train_doc_uid: string;
|
|
493
|
+
createdDate: string;
|
|
494
|
+
updatedDate: string;
|
|
495
|
+
metadata?: Record<string, unknown> | undefined;
|
|
496
|
+
}, {
|
|
497
|
+
content: string;
|
|
498
|
+
display_name: string;
|
|
499
|
+
userId: string;
|
|
500
|
+
taskLabel: string;
|
|
501
|
+
category: string;
|
|
502
|
+
train_doc_uid: string;
|
|
503
|
+
createdDate: string;
|
|
504
|
+
updatedDate: string;
|
|
505
|
+
metadata?: Record<string, unknown> | undefined;
|
|
506
|
+
isActive?: boolean | undefined;
|
|
507
|
+
personalizationScope?: string | undefined;
|
|
508
|
+
}>;
|
|
509
|
+
interface Learning extends z.infer<typeof learningSchema> {
|
|
510
|
+
}
|
|
511
|
+
declare enum TeamMateAvailability {
|
|
512
|
+
EXTENSION = "VSCode Extension",
|
|
513
|
+
SAAS = "SaaS"
|
|
514
|
+
}
|
|
515
|
+
interface TeamMateComponentProps<T = void> {
|
|
516
|
+
onClose?: (data?: T) => void;
|
|
517
|
+
frontendUrl?: string;
|
|
518
|
+
urls?: ChatbotUrls;
|
|
519
|
+
requestParams?: RequestInit;
|
|
520
|
+
context?: ChatSession["context"];
|
|
521
|
+
contextOptions?: ContextOption[];
|
|
522
|
+
}
|
|
523
|
+
interface TeamMateConfig<T = unknown> {
|
|
524
|
+
name: string;
|
|
525
|
+
avatar: string;
|
|
526
|
+
description: string;
|
|
527
|
+
availability: TeamMateAvailability[];
|
|
528
|
+
key: TaskLabels;
|
|
529
|
+
seeInAction?: boolean;
|
|
530
|
+
comingSoon?: boolean | (() => boolean);
|
|
531
|
+
displayComponent?: ComponentType<TeamMateComponentProps<T>>;
|
|
532
|
+
formComponent?: ComponentType<TeamMateComponentProps<T>>;
|
|
533
|
+
}
|
|
534
|
+
declare enum TeamMateActionType {
|
|
535
|
+
SEE_IN_ACTION = "SEE_IN_ACTION",
|
|
536
|
+
REQUEST_ACCESS = "REQUEST_ACCESS",
|
|
537
|
+
VIEW_DETAILS = "VIEW_DETAILS"
|
|
538
|
+
}
|
|
539
|
+
interface Citation {
|
|
540
|
+
id: string;
|
|
541
|
+
content: string;
|
|
542
|
+
taskLabel: TaskLabels;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export { type Artifact as A, todoItemSchema as B, type CoachAiResponse as C, type Datamate as D, type ToolUsageData as E, type Feedback as F, type ProgressUpdate as G, type FinalResponseData as H, type InteractionRequest as I, agentStreamResponseSchema as J, type Learning as L, type Mode as M, PersonalizationScope as P, TaskLabels as T, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, type AgentStreamResponse as r, type TodoItem as s, LoadingState as t, type AssistantMeta as u, type ChatSession as v, type FileUploadProps as w, type ChatbotUrls as x, type InteractionType as y, type InteractionChoice as z };
|