Skip to content

Commit

Permalink
✨ feat: add plugin request payload function
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 20, 2023
1 parent a73bd98 commit b1ac976
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ export const marketIndexSchema = z.object({
plugins: z.array(z.any()),
version: z.number(),
});

export const pluginRequestPayloadSchema = z.object({
arguments: z.string().optional(),
indexUrl: z.string().optional(),
name: z.string(),
});

export type PluginRequestPayload = z.infer<typeof pluginRequestPayloadSchema>;

0 comments on commit b1ac976

Please sign in to comment.