Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

refactor(ui): the app's secret card type is the wire type, so the store stays within its size pin

milind-soni63a6246734c8
diff --git a/src/state/store.tsx b/src/state/store.tsx
index d6f2eb7e3c..a685bc90d5 100644
--- a/src/state/store.tsx
+++ b/src/state/store.tsx
@@ -119,23 +119,7 @@ export interface ConnectorCardData {
stopped?: boolean;
}
-export interface SecretRequestCardData {
- target: import("../../shared/credential-request").CredentialTargetId | typeof import("../../shared/credential-request").CUSTOM_SECRET_TARGET;
- label: string;
- description: string;
- placeholder: string;
- helpUrl: string;
- delivery?: import("../../shared/credential-request").SecretDelivery;
- reason?: string;
- savedAt?: number;
- requestKey: string;
- provided?: boolean;
- dismissed?: boolean;
- superseded?: boolean;
- resumed?: boolean;
- error?: string;
- stopped?: boolean;
-}
+export type SecretRequestCardData = Omit<import("../../shared/wire").SecretRequestCardData, "phoneOperationId" | "vm">;
export type ComputerControlState = { held: boolean; helpReason: string | null; help?: import("../../shared/wire").ComputerHelpRef | null };