📝 Migrate from Docusaurus to Mintlify (#1115)

Closes #868
This commit is contained in:
Baptiste Arnaud
2023-12-22 09:13:53 +01:00
committed by GitHub
parent 512bb09282
commit 1e5fa5a575
450 changed files with 49522 additions and 104787 deletions

View File

@@ -19,7 +19,18 @@ export const createWorkspace = authenticatedProcedure
.input(z.object({ icon: z.string().optional(), name: z.string() }))
.output(
z.object({
workspace: workspaceSchema,
workspace: workspaceSchema.omit({
chatsLimitFirstEmailSentAt: true,
chatsLimitSecondEmailSentAt: true,
storageLimitFirstEmailSentAt: true,
storageLimitSecondEmailSentAt: true,
customChatsLimit: true,
customSeatsLimit: true,
customStorageLimit: true,
additionalChatsIndex: true,
additionalStorageIndex: true,
isQuarantined: true,
}),
})
)
.mutation(async ({ input: { name, icon }, ctx: { user } }) => {

View File

@@ -16,7 +16,11 @@ export const deleteWorkspace = 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(

View File

@@ -17,12 +17,26 @@ export const getWorkspace = 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({
workspace: workspaceSchema,
workspace: workspaceSchema.omit({
chatsLimitFirstEmailSentAt: true,
chatsLimitSecondEmailSentAt: true,
storageLimitFirstEmailSentAt: true,
storageLimitSecondEmailSentAt: true,
customChatsLimit: true,
customStorageLimit: true,
additionalChatsIndex: true,
additionalStorageIndex: true,
isQuarantined: true,
}),
})
)
.query(async ({ input: { workspaceId }, ctx: { user } }) => {

View File

@@ -17,7 +17,11 @@ export const listInvitationsInWorkspace = 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(

View File

@@ -17,7 +17,11 @@ export const listMembersInWorkspace = 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(

View File

@@ -19,12 +19,16 @@ export const updateWorkspace = authenticatedProcedure
z.object({
name: z.string().optional(),
icon: z.string().optional(),
workspaceId: z.string(),
workspaceId: z
.string()
.describe(
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
),
})
)
.output(
z.object({
workspace: workspaceSchema,
workspace: workspaceSchema.pick({ name: true, icon: true }),
})
)
.mutation(async ({ input: { workspaceId, ...updates }, ctx: { user } }) => {