@@ -24,7 +24,7 @@ export const getSubscription = authenticatedProcedure
|
||||
)
|
||||
.output(
|
||||
z.object({
|
||||
subscription: subscriptionSchema.or(z.null()),
|
||||
subscription: subscriptionSchema.or(z.null().openapi({ type: 'string' })),
|
||||
})
|
||||
)
|
||||
.query(async ({ input: { workspaceId }, ctx: { user } }) => {
|
||||
|
||||
@@ -18,7 +18,11 @@ export const getUsage = authenticatedProcedure
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z
|
||||
.string()
|
||||
.describe(
|
||||
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
|
||||
),
|
||||
})
|
||||
)
|
||||
.output(z.object({ totalChatsUsed: z.number(), resetsAt: z.date() }))
|
||||
|
||||
@@ -20,7 +20,11 @@ export const listInvoices = authenticatedProcedure
|
||||
})
|
||||
.input(
|
||||
z.object({
|
||||
workspaceId: z.string(),
|
||||
workspaceId: z
|
||||
.string()
|
||||
.describe(
|
||||
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
|
||||
),
|
||||
})
|
||||
)
|
||||
.output(
|
||||
|
||||
Reference in New Issue
Block a user