Skip to content

Commit 92ea882

Browse files
Copilothotlong
andcommitted
Add missing view storage schemas to protocol.zod.ts
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5409d71 commit 92ea882

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

packages/spec/src/api/protocol.zod.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,33 @@ export const DeleteManyDataRequestSchema = z.object({
278278
*/
279279
export const DeleteManyDataResponseSchema = BatchUpdateResponseSchema;
280280

281+
// ==========================================
282+
// View Storage Operations
283+
// ==========================================
284+
285+
/**
286+
* Get View Request
287+
* Get a stored view configuration by ID
288+
*/
289+
export const GetViewRequestSchema = z.object({
290+
id: z.string().describe('View ID'),
291+
});
292+
293+
/**
294+
* Delete View Request
295+
* Delete a stored view configuration
296+
*/
297+
export const DeleteViewRequestSchema = z.object({
298+
id: z.string().describe('View ID to delete'),
299+
});
300+
301+
/**
302+
* Delete View Response
303+
*/
304+
export const DeleteViewResponseSchema = z.object({
305+
success: z.boolean().describe('Whether deletion succeeded'),
306+
});
307+
281308
// ==========================================
282309
// Protocol Interface Schema
283310
// ==========================================
@@ -412,6 +439,10 @@ export type UpdateManyDataResponse = z.infer<typeof UpdateManyDataResponseSchema
412439
export type DeleteManyDataRequest = z.input<typeof DeleteManyDataRequestSchema>;
413440
export type DeleteManyDataResponse = z.infer<typeof DeleteManyDataResponseSchema>;
414441

442+
export type GetViewRequest = z.infer<typeof GetViewRequestSchema>;
443+
export type DeleteViewRequest = z.infer<typeof DeleteViewRequestSchema>;
444+
export type DeleteViewResponse = z.infer<typeof DeleteViewResponseSchema>;
445+
415446
export type ObjectStackProtocol = z.infer<typeof ObjectStackProtocolSchema>;
416447

417448
/**

0 commit comments

Comments
 (0)