UNPKG

@squarecloud/blob

Version:
85 lines (82 loc) 2.4 kB
import { z } from 'zod'; declare const listObjectsSchema: z.ZodObject<{ /** Filter by prefix */ prefix: z.ZodOptional<z.ZodString>; /** Return objects after this token */ continuationToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { prefix?: string | undefined; continuationToken?: string | undefined; }, { prefix?: string | undefined; continuationToken?: string | undefined; }>; declare const listObjectsPayloadSchema: z.ZodEffects<z.ZodOptional<z.ZodObject<{ /** Filter by prefix */ prefix: z.ZodOptional<z.ZodString>; /** Return objects after this token */ continuationToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { prefix?: string | undefined; continuationToken?: string | undefined; }, { prefix?: string | undefined; continuationToken?: string | undefined; }>>, { params: { prefix?: string | undefined; continuationToken?: string | undefined; } | undefined; }, { prefix?: string | undefined; continuationToken?: string | undefined; } | undefined>; declare const listObjectResponseSchema: z.ZodObject<{ id: z.ZodString; size: z.ZodNumber; created_at: z.ZodDate; expires_at: z.ZodOptional<z.ZodDate>; }, "strip", z.ZodTypeAny, { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }, { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }>; declare const listObjectsResponseSchema: z.ZodObject<{ objects: z.ZodDefault<z.ZodArray<z.ZodObject<{ id: z.ZodString; size: z.ZodNumber; created_at: z.ZodDate; expires_at: z.ZodOptional<z.ZodDate>; }, "strip", z.ZodTypeAny, { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }, { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { objects: { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }[]; }, { objects?: { size: number; id: string; created_at: Date; expires_at?: Date | undefined; }[] | undefined; }>; export { listObjectResponseSchema, listObjectsPayloadSchema, listObjectsResponseSchema, listObjectsSchema };