@ciridae/ui 1.0.2 → 1.0.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/app/auth.d.ts +10 -0
- package/dist/app/auth.js +60 -0
- package/dist/app/error-boundary.d.ts +18 -0
- package/dist/app/error-boundary.js +45 -0
- package/dist/app/feedback.d.ts +12 -0
- package/dist/app/feedback.js +128 -0
- package/dist/app/index.d.ts +8 -0
- package/dist/app/index.js +8 -0
- package/dist/app/request-errors.d.ts +63 -0
- package/dist/app/request-errors.js +172 -0
- package/dist/app/sentry.d.ts +18 -0
- package/dist/app/sentry.js +52 -0
- package/dist/app/telemetry.d.ts +7 -0
- package/dist/app/telemetry.js +28 -0
- package/dist/app/trail.d.ts +9 -0
- package/dist/app/trail.js +18 -0
- package/dist/chat/chat-query-keys.d.ts +3 -3
- package/dist/chat/contract.d.ts +15 -15
- package/dist/chat/conversation-items-query-options.d.ts +114 -114
- package/dist/chat/conversation-source.d.ts +75 -0
- package/dist/chat/conversation-source.js +1 -0
- package/dist/chat/message-text.d.ts +1 -1
- package/dist/chat/message-text.js +114 -46
- package/dist/chat/use-conversation-list.d.ts +6 -6
- package/dist/components/activity-feed.d.ts +2 -2
- package/dist/components/agent-work.d.ts +3 -3
- package/dist/components/app-frame.d.ts +79 -0
- package/dist/components/app-frame.js +92 -0
- package/dist/components/app-navigation.d.ts +3 -3
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/brand-icons.d.ts +3 -3
- package/dist/components/bulk-action-bar.d.ts +1 -1
- package/dist/components/button.d.ts +4 -4
- package/dist/components/calendar.d.ts +1 -1
- package/dist/components/centered-page.d.ts +1 -1
- package/dist/components/chart.d.ts +22 -2
- package/dist/components/chart.js +239 -44
- package/dist/components/chat-client-source.d.ts +16 -0
- package/dist/components/chat-client-source.js +256 -0
- package/dist/components/chat-page.d.ts +9 -8
- package/dist/components/chat-page.js +7 -11
- package/dist/components/chat-sheet-controller.d.ts +10 -14
- package/dist/components/chat-sheet-controller.js +2 -3
- package/dist/components/chat-sheet.d.ts +10 -11
- package/dist/components/chat-sheet.js +135 -273
- package/dist/components/chat.d.ts +22 -8
- package/dist/components/chat.js +128 -33
- package/dist/components/checkbox-item.d.ts +1 -1
- package/dist/components/checkbox-list.d.ts +1 -1
- package/dist/components/chip.d.ts +1 -1
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/color-theme.d.ts +1 -1
- package/dist/components/column-settings.d.ts +1 -1
- package/dist/components/command-menu.d.ts +1 -1
- package/dist/components/command-palette.d.ts +3 -3
- package/dist/components/command-palette.js +1 -2
- package/dist/components/copyable-id.d.ts +22 -5
- package/dist/components/copyable-id.js +46 -6
- package/dist/components/data-display.d.ts +4 -4
- package/dist/components/data-grid.d.ts +10 -10
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-time.d.ts +1 -1
- package/dist/components/dialog-height-context.d.ts +1 -1
- package/dist/components/document-viewer.d.ts +2 -2
- package/dist/components/drawer.d.ts +6 -6
- package/dist/components/dropzone.d.ts +4 -4
- package/dist/components/editable-field.d.ts +2 -2
- package/dist/components/email-input.d.ts +1 -1
- package/dist/components/environment-frame.d.ts +1 -1
- package/dist/components/expandable-text.d.ts +1 -1
- package/dist/components/feedback-screenshot.d.ts +1 -1
- package/dist/components/feedback-sheet.d.ts +18 -3
- package/dist/components/feedback-sheet.js +216 -55
- package/dist/components/field-context.d.ts +1 -1
- package/dist/components/filter-bar.d.ts +3 -3
- package/dist/components/filter-bar.js +4 -1
- package/dist/components/form-controls.d.ts +3 -3
- package/dist/components/form-layout.d.ts +7 -7
- package/dist/components/hotkeys.d.ts +2 -2
- package/dist/components/icon.d.ts +1 -1
- package/dist/components/input.d.ts +4 -4
- package/dist/components/input.js +3 -2
- package/dist/components/keyboard-shortcuts.d.ts +2 -2
- package/dist/components/keycap.d.ts +2 -2
- package/dist/components/layout.d.ts +13 -13
- package/dist/components/lightbox.d.ts +9 -3
- package/dist/components/lightbox.js +11 -8
- package/dist/components/link.d.ts +1 -1
- package/dist/components/locale.d.ts +32 -2
- package/dist/components/locale.js +25 -1
- package/dist/components/log-list.d.ts +3 -3
- package/dist/components/mention-input.d.ts +2 -2
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/meter.d.ts +1 -1
- package/dist/components/navigation.d.ts +2 -2
- package/dist/components/notification-tray.d.ts +1 -1
- package/dist/components/overlays.d.ts +4 -4
- package/dist/components/page-frame.d.ts +4 -4
- package/dist/components/panel.d.ts +3 -3
- package/dist/components/profile-header.d.ts +1 -1
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/project-avatar.d.ts +1 -1
- package/dist/components/radio-card.d.ts +2 -2
- package/dist/components/record.d.ts +4 -4
- package/dist/components/resolved-file-url.d.ts +19 -0
- package/dist/components/resolved-file-url.js +49 -0
- package/dist/components/scroll-area.d.ts +1 -1
- package/dist/components/secret-dialog.d.ts +1 -1
- package/dist/components/segmented-bar.d.ts +1 -1
- package/dist/components/select.d.ts +4 -4
- package/dist/components/settings.d.ts +4 -4
- package/dist/components/shell-skeleton.d.ts +1 -1
- package/dist/components/shell.d.ts +19 -19
- package/dist/components/shell.js +3 -1
- package/dist/components/side-panel.d.ts +3 -3
- package/dist/components/sidebar.d.ts +6 -6
- package/dist/components/site-banner.d.ts +1 -1
- package/dist/components/skeleton.d.ts +1 -1
- package/dist/components/skeletons.d.ts +5 -5
- package/dist/components/stages.d.ts +5 -5
- package/dist/components/stat-card.d.ts +3 -3
- package/dist/components/status-banner.d.ts +1 -1
- package/dist/components/status.d.ts +2 -2
- package/dist/components/steps.d.ts +1 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/tabs.d.ts +8 -8
- package/dist/components/theme-customizer.d.ts +2 -2
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/use-new-version-available.d.ts +6 -0
- package/dist/components/use-new-version-available.js +29 -0
- package/dist/components/user-chip.d.ts +3 -3
- package/dist/components/wizard.d.ts +2 -2
- package/dist/feedback/contract.d.ts +136 -136
- package/dist/feedback/feedback-controller.d.ts +6 -6
- package/dist/feedback/generated/zod.gen.d.ts +28 -28
- package/dist/feedback/operator-contract.d.ts +11 -11
- package/dist/feedback/operator-controller.d.ts +32 -13
- package/dist/feedback/operator-controller.js +44 -11
- package/dist/styled-system/styles.css +203 -59
- package/package.json +32 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { DotsThreeIcon } from "@phosphor-icons/react";
|
|
3
|
+
import { Fragment } from "react";
|
|
4
|
+
import { Link as RouterLink, useNavigate } from "react-router-dom";
|
|
5
|
+
import { icon } from "../components/icon.js";
|
|
6
|
+
import { Link } from "../components/link.js";
|
|
7
|
+
import { Menu } from "../components/menu.js";
|
|
8
|
+
import { AppBreadcrumbButton, AppBreadcrumbCurrent, AppBreadcrumbParents, AppBreadcrumbSeparator, } from "../components/shell.js";
|
|
9
|
+
/** A page's breadcrumbs for `AppFrame`'s title: links to where it sits, then the page itself. */
|
|
10
|
+
export function PageTrail({ parents = [], children, }) {
|
|
11
|
+
const navigate = useNavigate();
|
|
12
|
+
return (_jsxs(_Fragment, { children: [parents.length > 0 && (_jsx(AppBreadcrumbParents, { compact: _jsxs(_Fragment, { children: [_jsx(Menu, { align: "start", trigger: _jsx(AppBreadcrumbButton, { "aria-label": "Parent pages", children: _jsx(DotsThreeIcon, { className: icon(), weight: "bold" }) }), items: parents.map((parent) => ({
|
|
13
|
+
label: parent.label,
|
|
14
|
+
onSelect: () => {
|
|
15
|
+
void navigate(parent.to);
|
|
16
|
+
},
|
|
17
|
+
})) }), _jsx(AppBreadcrumbSeparator, {})] }), children: parents.map((parent) => (_jsxs(Fragment, { children: [_jsx(Link, { tone: "muted", render: _jsx(RouterLink, { to: parent.to }), children: parent.label }), _jsx(AppBreadcrumbSeparator, {})] }, parent.to))) })), _jsx(AppBreadcrumbCurrent, { children: children })] }));
|
|
18
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { ConversationId, ResponseId } from "./contract.js";
|
|
|
4
4
|
export declare const chatQueryKeys: {
|
|
5
5
|
all: (client: ChatClient) => readonly ["ciridae-chat", string];
|
|
6
6
|
conversationList: (client: ChatClient) => readonly ["ciridae-chat", string, "conversation-list"];
|
|
7
|
-
conversation: (client: ChatClient, conversationId: ConversationId | null) => readonly ["ciridae-chat", string, "conversation", (string & import("zod
|
|
8
|
-
conversationItems: (client: ChatClient, conversationId: ConversationId | null) => readonly ["ciridae-chat", string, "conversation-items", (string & import("zod
|
|
9
|
-
response: (client: ChatClient, responseId: ResponseId | null) => readonly ["ciridae-chat", string, "response", (string & import("zod
|
|
7
|
+
conversation: (client: ChatClient, conversationId: ConversationId | null) => readonly ["ciridae-chat", string, "conversation", (string & import("zod").$brand<"ConversationId">) | null];
|
|
8
|
+
conversationItems: (client: ChatClient, conversationId: ConversationId | null) => readonly ["ciridae-chat", string, "conversation-items", (string & import("zod").$brand<"ConversationId">) | null];
|
|
9
|
+
response: (client: ChatClient, responseId: ResponseId | null) => readonly ["ciridae-chat", string, "response", (string & import("zod").$brand<"ResponseId">) | null];
|
|
10
10
|
};
|
package/dist/chat/contract.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ export type AttachmentId = z.infer<typeof AttachmentIdSchema>;
|
|
|
12
12
|
export declare const QuestionIdSchema: z.core.$ZodBranded<z.ZodString, "QuestionId", "out">;
|
|
13
13
|
export type QuestionId = z.infer<typeof QuestionIdSchema>;
|
|
14
14
|
export declare const ResponseStatusSchema: z.ZodEnum<{
|
|
15
|
-
|
|
15
|
+
failed: "failed";
|
|
16
16
|
in_progress: "in_progress";
|
|
17
|
-
requires_action: "requires_action";
|
|
18
17
|
completed: "completed";
|
|
19
|
-
|
|
18
|
+
queued: "queued";
|
|
19
|
+
requires_action: "requires_action";
|
|
20
20
|
cancelled: "cancelled";
|
|
21
21
|
}>;
|
|
22
22
|
export type ResponseStatus = z.infer<typeof ResponseStatusSchema>;
|
|
@@ -37,11 +37,11 @@ export declare const ResponseSchema: z.ZodObject<{
|
|
|
37
37
|
id: z.core.$ZodBranded<z.ZodString, "ResponseId", "out">;
|
|
38
38
|
conversation_id: z.core.$ZodBranded<z.ZodString, "ConversationId", "out">;
|
|
39
39
|
status: z.ZodEnum<{
|
|
40
|
-
|
|
40
|
+
failed: "failed";
|
|
41
41
|
in_progress: "in_progress";
|
|
42
|
-
requires_action: "requires_action";
|
|
43
42
|
completed: "completed";
|
|
44
|
-
|
|
43
|
+
queued: "queued";
|
|
44
|
+
requires_action: "requires_action";
|
|
45
45
|
cancelled: "cancelled";
|
|
46
46
|
}>;
|
|
47
47
|
output_item_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ItemId", "out">>;
|
|
@@ -67,11 +67,11 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
67
67
|
id: z.core.$ZodBranded<z.ZodString, "ResponseId", "out">;
|
|
68
68
|
conversation_id: z.core.$ZodBranded<z.ZodString, "ConversationId", "out">;
|
|
69
69
|
status: z.ZodEnum<{
|
|
70
|
-
|
|
70
|
+
failed: "failed";
|
|
71
71
|
in_progress: "in_progress";
|
|
72
|
-
requires_action: "requires_action";
|
|
73
72
|
completed: "completed";
|
|
74
|
-
|
|
73
|
+
queued: "queued";
|
|
74
|
+
requires_action: "requires_action";
|
|
75
75
|
cancelled: "cancelled";
|
|
76
76
|
}>;
|
|
77
77
|
output_item_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ItemId", "out">>;
|
|
@@ -101,11 +101,11 @@ export declare const ConversationPageSchema: z.ZodObject<{
|
|
|
101
101
|
id: z.core.$ZodBranded<z.ZodString, "ResponseId", "out">;
|
|
102
102
|
conversation_id: z.core.$ZodBranded<z.ZodString, "ConversationId", "out">;
|
|
103
103
|
status: z.ZodEnum<{
|
|
104
|
-
|
|
104
|
+
failed: "failed";
|
|
105
105
|
in_progress: "in_progress";
|
|
106
|
-
requires_action: "requires_action";
|
|
107
106
|
completed: "completed";
|
|
108
|
-
|
|
107
|
+
queued: "queued";
|
|
108
|
+
requires_action: "requires_action";
|
|
109
109
|
cancelled: "cancelled";
|
|
110
110
|
}>;
|
|
111
111
|
output_item_ids: z.ZodArray<z.core.$ZodBranded<z.ZodString, "ItemId", "out">>;
|
|
@@ -172,8 +172,8 @@ export declare const FunctionCallOutputItemSchema: z.ZodObject<{
|
|
|
172
172
|
type: z.ZodLiteral<"function_call_output">;
|
|
173
173
|
call_id: z.ZodString;
|
|
174
174
|
status: z.ZodEnum<{
|
|
175
|
-
completed: "completed";
|
|
176
175
|
failed: "failed";
|
|
176
|
+
completed: "completed";
|
|
177
177
|
}>;
|
|
178
178
|
output: z.ZodString;
|
|
179
179
|
id: z.core.$ZodBranded<z.ZodString, "ItemId", "out">;
|
|
@@ -288,8 +288,8 @@ export declare const ItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
288
288
|
type: z.ZodLiteral<"function_call_output">;
|
|
289
289
|
call_id: z.ZodString;
|
|
290
290
|
status: z.ZodEnum<{
|
|
291
|
-
completed: "completed";
|
|
292
291
|
failed: "failed";
|
|
292
|
+
completed: "completed";
|
|
293
293
|
}>;
|
|
294
294
|
output: z.ZodString;
|
|
295
295
|
id: z.core.$ZodBranded<z.ZodString, "ItemId", "out">;
|
|
@@ -375,8 +375,8 @@ export declare const ItemPageSchema: z.ZodObject<{
|
|
|
375
375
|
type: z.ZodLiteral<"function_call_output">;
|
|
376
376
|
call_id: z.ZodString;
|
|
377
377
|
status: z.ZodEnum<{
|
|
378
|
-
completed: "completed";
|
|
379
378
|
failed: "failed";
|
|
379
|
+
completed: "completed";
|
|
380
380
|
}>;
|
|
381
381
|
output: z.ZodString;
|
|
382
382
|
id: z.core.$ZodBranded<z.ZodString, "ItemId", "out">;
|
|
@@ -2,21 +2,21 @@ import { type QueryClient } from "@tanstack/react-query";
|
|
|
2
2
|
import type { ChatClient } from "./chat-client.js";
|
|
3
3
|
import type { ConversationId } from "./contract.js";
|
|
4
4
|
/** A conversation's items, shared by the open conversation and the prefetches that warm it. */
|
|
5
|
-
export declare function conversationItemsQueryOptions(queryClient: QueryClient, client: ChatClient, conversationId: ConversationId | null): import("@tanstack/react-query
|
|
5
|
+
export declare function conversationItemsQueryOptions(queryClient: QueryClient, client: ChatClient, conversationId: ConversationId | null): import("@tanstack/react-query").UseQueryOptions<({
|
|
6
6
|
type: "message";
|
|
7
7
|
role: "user" | "assistant";
|
|
8
8
|
content: string;
|
|
9
9
|
attachments: {
|
|
10
|
-
id: string & import("zod
|
|
10
|
+
id: string & import("zod").$brand<"AttachmentId">;
|
|
11
11
|
name: string;
|
|
12
12
|
media_type: string;
|
|
13
13
|
size_bytes: number;
|
|
14
14
|
url: string | null;
|
|
15
15
|
}[];
|
|
16
|
-
id: string & import("zod
|
|
17
|
-
conversation_id: string & import("zod
|
|
16
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
17
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
18
18
|
seq: number;
|
|
19
|
-
response_id: string & import("zod
|
|
19
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
20
20
|
created_at: string;
|
|
21
21
|
read_at?: string | null | undefined;
|
|
22
22
|
} | {
|
|
@@ -24,43 +24,43 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
24
24
|
call_id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
arguments: string;
|
|
27
|
-
id: string & import("zod
|
|
28
|
-
conversation_id: string & import("zod
|
|
27
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
28
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
29
29
|
seq: number;
|
|
30
|
-
response_id: string & import("zod
|
|
30
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
31
31
|
created_at: string;
|
|
32
32
|
} | {
|
|
33
33
|
type: "function_call_output";
|
|
34
34
|
call_id: string;
|
|
35
|
-
status: "
|
|
35
|
+
status: "failed" | "completed";
|
|
36
36
|
output: string;
|
|
37
|
-
id: string & import("zod
|
|
38
|
-
conversation_id: string & import("zod
|
|
37
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
38
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
39
39
|
seq: number;
|
|
40
|
-
response_id: string & import("zod
|
|
40
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
41
41
|
created_at: string;
|
|
42
42
|
} | {
|
|
43
43
|
type: "reasoning";
|
|
44
44
|
content: string;
|
|
45
|
-
id: string & import("zod
|
|
46
|
-
conversation_id: string & import("zod
|
|
45
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
46
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
47
47
|
seq: number;
|
|
48
|
-
response_id: string & import("zod
|
|
48
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
49
49
|
created_at: string;
|
|
50
50
|
} | {
|
|
51
51
|
type: "approval_request";
|
|
52
|
-
approval_id: string & import("zod
|
|
52
|
+
approval_id: string & import("zod").$brand<"ApprovalId">;
|
|
53
53
|
tool: string;
|
|
54
54
|
arguments: string;
|
|
55
55
|
decision: "allow" | "deny" | null;
|
|
56
|
-
id: string & import("zod
|
|
57
|
-
conversation_id: string & import("zod
|
|
56
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
57
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
58
58
|
seq: number;
|
|
59
|
-
response_id: string & import("zod
|
|
59
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
60
60
|
created_at: string;
|
|
61
61
|
} | {
|
|
62
62
|
type: "question";
|
|
63
|
-
question_id: string & import("zod
|
|
63
|
+
question_id: string & import("zod").$brand<"QuestionId">;
|
|
64
64
|
questions: {
|
|
65
65
|
question: string;
|
|
66
66
|
header: string;
|
|
@@ -71,26 +71,26 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
71
71
|
multiple?: boolean | undefined;
|
|
72
72
|
}[];
|
|
73
73
|
answers: string[][] | null;
|
|
74
|
-
id: string & import("zod
|
|
75
|
-
conversation_id: string & import("zod
|
|
74
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
75
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
76
76
|
seq: number;
|
|
77
|
-
response_id: string & import("zod
|
|
77
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
78
78
|
created_at: string;
|
|
79
79
|
})[], Error, ({
|
|
80
80
|
type: "message";
|
|
81
81
|
role: "user" | "assistant";
|
|
82
82
|
content: string;
|
|
83
83
|
attachments: {
|
|
84
|
-
id: string & import("zod
|
|
84
|
+
id: string & import("zod").$brand<"AttachmentId">;
|
|
85
85
|
name: string;
|
|
86
86
|
media_type: string;
|
|
87
87
|
size_bytes: number;
|
|
88
88
|
url: string | null;
|
|
89
89
|
}[];
|
|
90
|
-
id: string & import("zod
|
|
91
|
-
conversation_id: string & import("zod
|
|
90
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
91
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
92
92
|
seq: number;
|
|
93
|
-
response_id: string & import("zod
|
|
93
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
94
94
|
created_at: string;
|
|
95
95
|
read_at?: string | null | undefined;
|
|
96
96
|
} | {
|
|
@@ -98,43 +98,43 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
98
98
|
call_id: string;
|
|
99
99
|
name: string;
|
|
100
100
|
arguments: string;
|
|
101
|
-
id: string & import("zod
|
|
102
|
-
conversation_id: string & import("zod
|
|
101
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
102
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
103
103
|
seq: number;
|
|
104
|
-
response_id: string & import("zod
|
|
104
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
105
105
|
created_at: string;
|
|
106
106
|
} | {
|
|
107
107
|
type: "function_call_output";
|
|
108
108
|
call_id: string;
|
|
109
|
-
status: "
|
|
109
|
+
status: "failed" | "completed";
|
|
110
110
|
output: string;
|
|
111
|
-
id: string & import("zod
|
|
112
|
-
conversation_id: string & import("zod
|
|
111
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
112
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
113
113
|
seq: number;
|
|
114
|
-
response_id: string & import("zod
|
|
114
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
115
115
|
created_at: string;
|
|
116
116
|
} | {
|
|
117
117
|
type: "reasoning";
|
|
118
118
|
content: string;
|
|
119
|
-
id: string & import("zod
|
|
120
|
-
conversation_id: string & import("zod
|
|
119
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
120
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
121
121
|
seq: number;
|
|
122
|
-
response_id: string & import("zod
|
|
122
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
123
123
|
created_at: string;
|
|
124
124
|
} | {
|
|
125
125
|
type: "approval_request";
|
|
126
|
-
approval_id: string & import("zod
|
|
126
|
+
approval_id: string & import("zod").$brand<"ApprovalId">;
|
|
127
127
|
tool: string;
|
|
128
128
|
arguments: string;
|
|
129
129
|
decision: "allow" | "deny" | null;
|
|
130
|
-
id: string & import("zod
|
|
131
|
-
conversation_id: string & import("zod
|
|
130
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
131
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
132
132
|
seq: number;
|
|
133
|
-
response_id: string & import("zod
|
|
133
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
134
134
|
created_at: string;
|
|
135
135
|
} | {
|
|
136
136
|
type: "question";
|
|
137
|
-
question_id: string & import("zod
|
|
137
|
+
question_id: string & import("zod").$brand<"QuestionId">;
|
|
138
138
|
questions: {
|
|
139
139
|
question: string;
|
|
140
140
|
header: string;
|
|
@@ -145,27 +145,27 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
145
145
|
multiple?: boolean | undefined;
|
|
146
146
|
}[];
|
|
147
147
|
answers: string[][] | null;
|
|
148
|
-
id: string & import("zod
|
|
149
|
-
conversation_id: string & import("zod
|
|
148
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
149
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
150
150
|
seq: number;
|
|
151
|
-
response_id: string & import("zod
|
|
151
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
152
152
|
created_at: string;
|
|
153
|
-
})[], readonly ["ciridae-chat", string, "conversation-items", (string & import("zod
|
|
153
|
+
})[], readonly ["ciridae-chat", string, "conversation-items", (string & import("zod").$brand<"ConversationId">) | null]> & {
|
|
154
154
|
initialData?: ({
|
|
155
155
|
type: "message";
|
|
156
156
|
role: "user" | "assistant";
|
|
157
157
|
content: string;
|
|
158
158
|
attachments: {
|
|
159
|
-
id: string & import("zod
|
|
159
|
+
id: string & import("zod").$brand<"AttachmentId">;
|
|
160
160
|
name: string;
|
|
161
161
|
media_type: string;
|
|
162
162
|
size_bytes: number;
|
|
163
163
|
url: string | null;
|
|
164
164
|
}[];
|
|
165
|
-
id: string & import("zod
|
|
166
|
-
conversation_id: string & import("zod
|
|
165
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
166
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
167
167
|
seq: number;
|
|
168
|
-
response_id: string & import("zod
|
|
168
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
169
169
|
created_at: string;
|
|
170
170
|
read_at?: string | null | undefined;
|
|
171
171
|
} | {
|
|
@@ -173,43 +173,43 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
173
173
|
call_id: string;
|
|
174
174
|
name: string;
|
|
175
175
|
arguments: string;
|
|
176
|
-
id: string & import("zod
|
|
177
|
-
conversation_id: string & import("zod
|
|
176
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
177
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
178
178
|
seq: number;
|
|
179
|
-
response_id: string & import("zod
|
|
179
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
180
180
|
created_at: string;
|
|
181
181
|
} | {
|
|
182
182
|
type: "function_call_output";
|
|
183
183
|
call_id: string;
|
|
184
|
-
status: "
|
|
184
|
+
status: "failed" | "completed";
|
|
185
185
|
output: string;
|
|
186
|
-
id: string & import("zod
|
|
187
|
-
conversation_id: string & import("zod
|
|
186
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
187
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
188
188
|
seq: number;
|
|
189
|
-
response_id: string & import("zod
|
|
189
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
190
190
|
created_at: string;
|
|
191
191
|
} | {
|
|
192
192
|
type: "reasoning";
|
|
193
193
|
content: string;
|
|
194
|
-
id: string & import("zod
|
|
195
|
-
conversation_id: string & import("zod
|
|
194
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
195
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
196
196
|
seq: number;
|
|
197
|
-
response_id: string & import("zod
|
|
197
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
198
198
|
created_at: string;
|
|
199
199
|
} | {
|
|
200
200
|
type: "approval_request";
|
|
201
|
-
approval_id: string & import("zod
|
|
201
|
+
approval_id: string & import("zod").$brand<"ApprovalId">;
|
|
202
202
|
tool: string;
|
|
203
203
|
arguments: string;
|
|
204
204
|
decision: "allow" | "deny" | null;
|
|
205
|
-
id: string & import("zod
|
|
206
|
-
conversation_id: string & import("zod
|
|
205
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
206
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
207
207
|
seq: number;
|
|
208
|
-
response_id: string & import("zod
|
|
208
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
209
209
|
created_at: string;
|
|
210
210
|
} | {
|
|
211
211
|
type: "question";
|
|
212
|
-
question_id: string & import("zod
|
|
212
|
+
question_id: string & import("zod").$brand<"QuestionId">;
|
|
213
213
|
questions: {
|
|
214
214
|
question: string;
|
|
215
215
|
header: string;
|
|
@@ -220,26 +220,26 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
220
220
|
multiple?: boolean | undefined;
|
|
221
221
|
}[];
|
|
222
222
|
answers: string[][] | null;
|
|
223
|
-
id: string & import("zod
|
|
224
|
-
conversation_id: string & import("zod
|
|
223
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
224
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
225
225
|
seq: number;
|
|
226
|
-
response_id: string & import("zod
|
|
226
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
227
227
|
created_at: string;
|
|
228
|
-
})[] | import("@tanstack/react-query
|
|
228
|
+
})[] | import("@tanstack/react-query").InitialDataFunction<({
|
|
229
229
|
type: "message";
|
|
230
230
|
role: "user" | "assistant";
|
|
231
231
|
content: string;
|
|
232
232
|
attachments: {
|
|
233
|
-
id: string & import("zod
|
|
233
|
+
id: string & import("zod").$brand<"AttachmentId">;
|
|
234
234
|
name: string;
|
|
235
235
|
media_type: string;
|
|
236
236
|
size_bytes: number;
|
|
237
237
|
url: string | null;
|
|
238
238
|
}[];
|
|
239
|
-
id: string & import("zod
|
|
240
|
-
conversation_id: string & import("zod
|
|
239
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
240
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
241
241
|
seq: number;
|
|
242
|
-
response_id: string & import("zod
|
|
242
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
243
243
|
created_at: string;
|
|
244
244
|
read_at?: string | null | undefined;
|
|
245
245
|
} | {
|
|
@@ -247,43 +247,43 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
247
247
|
call_id: string;
|
|
248
248
|
name: string;
|
|
249
249
|
arguments: string;
|
|
250
|
-
id: string & import("zod
|
|
251
|
-
conversation_id: string & import("zod
|
|
250
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
251
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
252
252
|
seq: number;
|
|
253
|
-
response_id: string & import("zod
|
|
253
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
254
254
|
created_at: string;
|
|
255
255
|
} | {
|
|
256
256
|
type: "function_call_output";
|
|
257
257
|
call_id: string;
|
|
258
|
-
status: "
|
|
258
|
+
status: "failed" | "completed";
|
|
259
259
|
output: string;
|
|
260
|
-
id: string & import("zod
|
|
261
|
-
conversation_id: string & import("zod
|
|
260
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
261
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
262
262
|
seq: number;
|
|
263
|
-
response_id: string & import("zod
|
|
263
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
264
264
|
created_at: string;
|
|
265
265
|
} | {
|
|
266
266
|
type: "reasoning";
|
|
267
267
|
content: string;
|
|
268
|
-
id: string & import("zod
|
|
269
|
-
conversation_id: string & import("zod
|
|
268
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
269
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
270
270
|
seq: number;
|
|
271
|
-
response_id: string & import("zod
|
|
271
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
272
272
|
created_at: string;
|
|
273
273
|
} | {
|
|
274
274
|
type: "approval_request";
|
|
275
|
-
approval_id: string & import("zod
|
|
275
|
+
approval_id: string & import("zod").$brand<"ApprovalId">;
|
|
276
276
|
tool: string;
|
|
277
277
|
arguments: string;
|
|
278
278
|
decision: "allow" | "deny" | null;
|
|
279
|
-
id: string & import("zod
|
|
280
|
-
conversation_id: string & import("zod
|
|
279
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
280
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
281
281
|
seq: number;
|
|
282
|
-
response_id: string & import("zod
|
|
282
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
283
283
|
created_at: string;
|
|
284
284
|
} | {
|
|
285
285
|
type: "question";
|
|
286
|
-
question_id: string & import("zod
|
|
286
|
+
question_id: string & import("zod").$brand<"QuestionId">;
|
|
287
287
|
questions: {
|
|
288
288
|
question: string;
|
|
289
289
|
header: string;
|
|
@@ -294,29 +294,29 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
294
294
|
multiple?: boolean | undefined;
|
|
295
295
|
}[];
|
|
296
296
|
answers: string[][] | null;
|
|
297
|
-
id: string & import("zod
|
|
298
|
-
conversation_id: string & import("zod
|
|
297
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
298
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
299
299
|
seq: number;
|
|
300
|
-
response_id: string & import("zod
|
|
300
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
301
301
|
created_at: string;
|
|
302
302
|
})[]> | undefined;
|
|
303
303
|
} & {
|
|
304
|
-
queryKey: readonly ["ciridae-chat", string, "conversation-items", (string & import("zod
|
|
304
|
+
queryKey: readonly ["ciridae-chat", string, "conversation-items", (string & import("zod").$brand<"ConversationId">) | null] & {
|
|
305
305
|
[dataTagSymbol]: ({
|
|
306
306
|
type: "message";
|
|
307
307
|
role: "user" | "assistant";
|
|
308
308
|
content: string;
|
|
309
309
|
attachments: {
|
|
310
|
-
id: string & import("zod
|
|
310
|
+
id: string & import("zod").$brand<"AttachmentId">;
|
|
311
311
|
name: string;
|
|
312
312
|
media_type: string;
|
|
313
313
|
size_bytes: number;
|
|
314
314
|
url: string | null;
|
|
315
315
|
}[];
|
|
316
|
-
id: string & import("zod
|
|
317
|
-
conversation_id: string & import("zod
|
|
316
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
317
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
318
318
|
seq: number;
|
|
319
|
-
response_id: string & import("zod
|
|
319
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
320
320
|
created_at: string;
|
|
321
321
|
read_at?: string | null | undefined;
|
|
322
322
|
} | {
|
|
@@ -324,43 +324,43 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
324
324
|
call_id: string;
|
|
325
325
|
name: string;
|
|
326
326
|
arguments: string;
|
|
327
|
-
id: string & import("zod
|
|
328
|
-
conversation_id: string & import("zod
|
|
327
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
328
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
329
329
|
seq: number;
|
|
330
|
-
response_id: string & import("zod
|
|
330
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
331
331
|
created_at: string;
|
|
332
332
|
} | {
|
|
333
333
|
type: "function_call_output";
|
|
334
334
|
call_id: string;
|
|
335
|
-
status: "
|
|
335
|
+
status: "failed" | "completed";
|
|
336
336
|
output: string;
|
|
337
|
-
id: string & import("zod
|
|
338
|
-
conversation_id: string & import("zod
|
|
337
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
338
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
339
339
|
seq: number;
|
|
340
|
-
response_id: string & import("zod
|
|
340
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
341
341
|
created_at: string;
|
|
342
342
|
} | {
|
|
343
343
|
type: "reasoning";
|
|
344
344
|
content: string;
|
|
345
|
-
id: string & import("zod
|
|
346
|
-
conversation_id: string & import("zod
|
|
345
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
346
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
347
347
|
seq: number;
|
|
348
|
-
response_id: string & import("zod
|
|
348
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
349
349
|
created_at: string;
|
|
350
350
|
} | {
|
|
351
351
|
type: "approval_request";
|
|
352
|
-
approval_id: string & import("zod
|
|
352
|
+
approval_id: string & import("zod").$brand<"ApprovalId">;
|
|
353
353
|
tool: string;
|
|
354
354
|
arguments: string;
|
|
355
355
|
decision: "allow" | "deny" | null;
|
|
356
|
-
id: string & import("zod
|
|
357
|
-
conversation_id: string & import("zod
|
|
356
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
357
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
358
358
|
seq: number;
|
|
359
|
-
response_id: string & import("zod
|
|
359
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
360
360
|
created_at: string;
|
|
361
361
|
} | {
|
|
362
362
|
type: "question";
|
|
363
|
-
question_id: string & import("zod
|
|
363
|
+
question_id: string & import("zod").$brand<"QuestionId">;
|
|
364
364
|
questions: {
|
|
365
365
|
question: string;
|
|
366
366
|
header: string;
|
|
@@ -371,10 +371,10 @@ export declare function conversationItemsQueryOptions(queryClient: QueryClient,
|
|
|
371
371
|
multiple?: boolean | undefined;
|
|
372
372
|
}[];
|
|
373
373
|
answers: string[][] | null;
|
|
374
|
-
id: string & import("zod
|
|
375
|
-
conversation_id: string & import("zod
|
|
374
|
+
id: string & import("zod").$brand<"ItemId">;
|
|
375
|
+
conversation_id: string & import("zod").$brand<"ConversationId">;
|
|
376
376
|
seq: number;
|
|
377
|
-
response_id: string & import("zod
|
|
377
|
+
response_id: string & import("zod").$brand<"ResponseId">;
|
|
378
378
|
created_at: string;
|
|
379
379
|
})[];
|
|
380
380
|
[dataTagErrorSymbol]: Error;
|