Initial commit: Velum Raycast extension
Pseudonymize-and-AI workflow for handling PII-sensitive text via the Velum API and Raycast AI. Commands cover end-to-end email summary and reply, briefing/action-items/structured-data extraction, manual pseudonymize/depseudonymize on selection or clipboard, and session management. Includes Raycast 2.0 Beta workarounds for selection capture and rich-text clipboard. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
55
src/types.ts
Normal file
55
src/types.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
export type EntityType = string;
|
||||
|
||||
export type MappingEntry = {
|
||||
original: string;
|
||||
type: EntityType;
|
||||
};
|
||||
|
||||
export type PlaceholderMapping = Record<string, MappingEntry>;
|
||||
|
||||
export type PseudonymizeResponse = {
|
||||
pseudonymized_text: string;
|
||||
selected_entity_types: EntityType[];
|
||||
mapping: PlaceholderMapping;
|
||||
spans: Array<{
|
||||
start: number;
|
||||
end: number;
|
||||
type: EntityType;
|
||||
score: number;
|
||||
placeholder: string;
|
||||
original: string;
|
||||
}>;
|
||||
entity_count: number;
|
||||
};
|
||||
|
||||
export type DepseudonymizeResponse = {
|
||||
original_text: string;
|
||||
replacements_made: number;
|
||||
};
|
||||
|
||||
export type VelumSession = {
|
||||
id: string;
|
||||
name: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
mapping: PlaceholderMapping;
|
||||
entityTypes?: EntityType[];
|
||||
};
|
||||
|
||||
export type SessionMode = "reuse-active" | "new-each-request" | "daily";
|
||||
export type QuickOutput = "copy" | "paste";
|
||||
|
||||
export type ExtensionPreferences = {
|
||||
velumBaseUrl: string;
|
||||
authentikTokenUrl: string;
|
||||
clientId: string;
|
||||
serviceAccountUsername: string;
|
||||
serviceAccountPassword: string;
|
||||
scope?: string;
|
||||
sessionMode: SessionMode;
|
||||
quickOutput: QuickOutput;
|
||||
summaryModel: string;
|
||||
userFullName?: string;
|
||||
maxSessions: string;
|
||||
closeAfterAction: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user