+1
-2
@@ -8,14 +8,13 @@ const window = z.object({
|
||||
used: z.number(),
|
||||
resetsAt: z.number(),
|
||||
remaining: z.number(),
|
||||
sessionConsumed: z.number(),
|
||||
});
|
||||
|
||||
export const QuotaRpc = Rpc.define({
|
||||
id: "stanp-opencode.quota",
|
||||
methods: {
|
||||
status: {
|
||||
input: z.object({ sessionID: z.string() }),
|
||||
input: z.object({}),
|
||||
output: z
|
||||
.object({ plan: z.string(), fetchedAt: z.number(), windows: z.array(window) })
|
||||
.nullable(),
|
||||
|
||||
Reference in New Issue
Block a user