Skip to content

Commit 73281ee

Browse files
committed
chore: regenerate client SDK
1 parent cee0a95 commit 73281ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export type Draft = Partial<{
3535
export type DatabaseObject = {
3636
id: number;
3737
created: string;
38-
updated?: string | undefined;
38+
updated?: (null | string) | undefined;
3939
};
4040
export type ProposalState =
4141
| {
@@ -119,7 +119,7 @@ const Draft: z.ZodType<Draft> = z
119119
const DatabaseObject: z.ZodType<DatabaseObject> = z.object({
120120
id: z.number().int(),
121121
created: z.string().datetime({ offset: true }),
122-
updated: z.string().datetime({ offset: true }).optional(),
122+
updated: z.union([z.null(), z.string()]).optional(),
123123
});
124124
const DraftIndex: z.ZodType<DraftIndex> = Paginated.and(
125125
z.object({ drafts: z.array(Draft.and(DatabaseObject)) }),
@@ -157,7 +157,7 @@ const ProposalIndex: z.ZodType<ProposalIndex> = Paginated.and(
157157
proposals: z.array(Proposal.and(ProposalState).and(DatabaseObject)),
158158
}),
159159
);
160-
const Expirable = z.object({ expires: z.string().datetime({ offset: true }) });
160+
const Expirable = z.object({ expires: z.union([z.null(), z.string()]) });
161161

162162
export const schemas = {
163163
Paginated,

0 commit comments

Comments
 (0)