fix: align workspace diagnostic contracts
This commit is contained in:
@@ -25,7 +25,11 @@ export interface CanonicalDiagnostics {
|
||||
metadata: RestDiagnosticRequest & {
|
||||
response: { collection: string; dimensions: string; distance: string };
|
||||
};
|
||||
reversible_probe?: RestDiagnosticRequest & { method: "POST" };
|
||||
reversible_probe?: RestDiagnosticRequest & {
|
||||
method: "POST";
|
||||
auth: Exclude<DiagnosticAuthMode, "none">;
|
||||
response: { operation: string };
|
||||
};
|
||||
};
|
||||
embedding?: RestDiagnosticRequest & { response: { model: string; dimensions: string } };
|
||||
}
|
||||
@@ -124,7 +128,11 @@ const vectorMetadataDiagnostic = restDiagnosticRequest.extend({
|
||||
distance: responseField,
|
||||
}).strict(),
|
||||
}).strict();
|
||||
const reversibleVectorProbe = restDiagnosticRequest.extend({ method: z.literal("POST") }).strict();
|
||||
const reversibleVectorProbe = restDiagnosticRequest.extend({
|
||||
method: z.literal("POST"),
|
||||
auth: z.enum(["bearer", "x-api-key"]),
|
||||
response: z.object({ operation: responseField }).strict(),
|
||||
}).strict();
|
||||
const embeddingDiagnostic = restDiagnosticRequest.extend({
|
||||
response: z.object({ model: responseField, dimensions: responseField }).strict(),
|
||||
}).strict();
|
||||
|
||||
Reference in New Issue
Block a user