@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
138 lines • 4.64 kB
TypeScript
/**
* Embedding Migration REST API Response Schemas
*
* PRD #384: Optional Local Embedding Service
* Schemas for the embedding migration endpoint (not exposed via MCP)
*/
import { z } from 'zod';
/**
* Embedding migration request body
*/
export declare const EmbeddingMigrationRequestSchema: z.ZodObject<{
collection: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type EmbeddingMigrationRequest = z.infer<typeof EmbeddingMigrationRequestSchema>;
/**
* Per-collection migration result
*/
export declare const CollectionMigrationResultSchema: z.ZodObject<{
collection: z.ZodString;
status: z.ZodEnum<{
failed: "failed";
migrated: "migrated";
skipped: "skipped";
}>;
previousDimensions: z.ZodNumber;
newDimensions: z.ZodNumber;
total: z.ZodNumber;
processed: z.ZodNumber;
failed: z.ZodNumber;
error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type CollectionMigrationResult = z.infer<typeof CollectionMigrationResultSchema>;
/**
* Embedding migration response data
*/
export declare const EmbeddingMigrationDataSchema: z.ZodObject<{
collections: z.ZodArray<z.ZodObject<{
collection: z.ZodString;
status: z.ZodEnum<{
failed: "failed";
migrated: "migrated";
skipped: "skipped";
}>;
previousDimensions: z.ZodNumber;
newDimensions: z.ZodNumber;
total: z.ZodNumber;
processed: z.ZodNumber;
failed: z.ZodNumber;
error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
summary: z.ZodObject<{
totalCollections: z.ZodNumber;
migrated: z.ZodNumber;
skipped: z.ZodNumber;
failed: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
export type EmbeddingMigrationData = z.infer<typeof EmbeddingMigrationDataSchema>;
/**
* Embedding migration success response
*/
export declare const EmbeddingMigrationResponseSchema: z.ZodObject<{
success: z.ZodLiteral<true>;
data: z.ZodObject<{
collections: z.ZodArray<z.ZodObject<{
collection: z.ZodString;
status: z.ZodEnum<{
failed: "failed";
migrated: "migrated";
skipped: "skipped";
}>;
previousDimensions: z.ZodNumber;
newDimensions: z.ZodNumber;
total: z.ZodNumber;
processed: z.ZodNumber;
failed: z.ZodNumber;
error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
summary: z.ZodObject<{
totalCollections: z.ZodNumber;
migrated: z.ZodNumber;
skipped: z.ZodNumber;
failed: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type EmbeddingMigrationResponse = z.infer<typeof EmbeddingMigrationResponseSchema>;
/**
* Embedding migration error responses
*/
export declare const EmbeddingMigrationBadRequestErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
code: z.ZodLiteral<"BAD_REQUEST">;
message: z.ZodString;
details: z.ZodOptional<z.ZodUnknown>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const EmbeddingMigrationServiceUnavailableErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
code: z.ZodEnum<{
PLUGIN_UNAVAILABLE: "PLUGIN_UNAVAILABLE";
EMBEDDING_SERVICE_UNAVAILABLE: "EMBEDDING_SERVICE_UNAVAILABLE";
}>;
message: z.ZodString;
details: z.ZodOptional<z.ZodUnknown>;
}, z.core.$strip>;
}, z.core.$strip>;
export declare const EmbeddingMigrationErrorSchema: z.ZodObject<{
success: z.ZodLiteral<false>;
meta: z.ZodOptional<z.ZodObject<{
timestamp: z.ZodString;
requestId: z.ZodOptional<z.ZodString>;
version: z.ZodString;
}, z.core.$strip>>;
error: z.ZodObject<{
code: z.ZodLiteral<"MIGRATION_ERROR">;
message: z.ZodString;
details: z.ZodOptional<z.ZodUnknown>;
}, z.core.$strip>;
}, z.core.$strip>;
//# sourceMappingURL=embeddings.d.ts.map