Skip to content

Commit 2971127

Browse files
lint
1 parent c98c406 commit 2971127

File tree

6 files changed

+7
-226
lines changed

6 files changed

+7
-226
lines changed

apps/playground-web/src/app/ai/api/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type NebulaContext = {
99
sessionId: string | null;
1010
};
1111

12-
export type NebulaSwapData = {
12+
type NebulaSwapData = {
1313
action: string;
1414
transaction: {
1515
chainId: number;

apps/playground-web/src/app/ai/api/fetchWithAuthToken.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

apps/playground-web/src/app/ai/api/session.ts

Lines changed: 0 additions & 121 deletions
This file was deleted.

apps/playground-web/src/app/ai/api/types.ts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type NebulaUserMessageContentItem =
1919
chain_id: number;
2020
};
2121

22-
export type NebulaUserMessageContent = NebulaUserMessageContentItem[];
22+
type NebulaUserMessageContent = NebulaUserMessageContentItem[];
2323

2424
export type NebulaUserMessage = {
2525
role: "user";
@@ -53,25 +53,6 @@ export type SessionInfo = {
5353
context: SessionContextFilter | null;
5454
};
5555

56-
export type UpdatedSessionInfo = {
57-
title: string;
58-
modal_name: string;
59-
account_id: string;
60-
context: SessionContextFilter | null;
61-
};
62-
63-
export type DeletedSessionInfo = {
64-
id: string;
65-
deleted_at: string;
66-
};
67-
68-
export type TruncatedSessionInfo = {
69-
created_at: string;
70-
id: string;
71-
updated_at: string;
72-
title: string | null;
73-
};
74-
7556
export type NebulaTxData = {
7657
chainId: number;
7758
data: `0x${string}`;

apps/playground-web/src/app/ai/components/ChatPageContent.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import { examplePrompts } from "../data/examplePrompts";
4141
import { resolveSchemeWithErrorHandler } from "./resolveSchemeWithErrorHandler";
4242

4343
// Simplified types for the playground version
44-
export type WalletMeta = {
44+
type WalletMeta = {
4545
walletId: string;
4646
address: string;
4747
};
@@ -62,9 +62,9 @@ type NebulaUserMessageContentItem =
6262
chain_id: number;
6363
};
6464

65-
export type NebulaUserMessageContent = NebulaUserMessageContentItem[];
65+
type NebulaUserMessageContent = NebulaUserMessageContentItem[];
6666

67-
export type ChatMessage =
67+
type ChatMessage =
6868
| {
6969
type: "user";
7070
content: NebulaUserMessageContent;
@@ -105,14 +105,14 @@ export type ChatMessage =
105105
};
106106
};
107107

108-
export type NebulaTxData = {
108+
type NebulaTxData = {
109109
chainId: number;
110110
data: `0x${string}`;
111111
to: string;
112112
value?: string;
113113
};
114114

115-
export type NebulaSwapData = {
115+
type NebulaSwapData = {
116116
action: string;
117117
transaction: {
118118
chainId: number;

apps/playground-web/src/app/ai/stores.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)