From 64d3beb2b1707a096f96c2d5a38fbf7ba124c5d9 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Sat, 28 Dec 2024 22:20:45 +0000 Subject: [PATCH] Temporarily remove streak insurance --- frontend/openchat-agent/src/typebox.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/frontend/openchat-agent/src/typebox.ts b/frontend/openchat-agent/src/typebox.ts index 1c5738ea0d..849be40aff 100644 --- a/frontend/openchat-agent/src/typebox.ts +++ b/frontend/openchat-agent/src/typebox.ts @@ -1432,18 +1432,6 @@ export const MessageMatch = Type.Object({ score: Type.Number(), }); -export type OptionUpdateStreakInsurance = Static; -export const OptionUpdateStreakInsurance = Type.Union( - [ - Type.Literal("NoChange"), - Type.Literal("SetToNone"), - Type.Object({ - SetToSome: StreakInsurance, - }), - ], - { default: "NoChange" }, -); - export type DirectChatCreated = Static; export const DirectChatCreated = Type.Record(Type.String(), Type.Never()); @@ -9299,7 +9287,6 @@ export const UserUpdatesSuccessResult = Type.Object({ chit_balance: Type.Number(), streak: Type.Number(), streak_ends: Type.BigInt(), - streak_insurance: OptionUpdateStreakInsurance, next_daily_claim: Type.BigInt(), is_unique_person: Type.Optional(Type.Union([Type.Boolean(), Type.Undefined()])), wallet_config: Type.Optional(Type.Union([UserWalletConfig, Type.Undefined()])),