feat: define scoped sharing levels

This commit is contained in:
Marc-André Bombeck committed 2026-08-05 23:58:18 +02:00
1 parent ab14fdb6f3
commit e4e773d543
4 files changed
+106 -10

No files matched your search

+3
View File
@@ -80,6 +80,9 @@ export const inviteGrantSchema = z
scope: z
.array(z.enum(SHARE_DOMAINS))
.min(1)
.refine((scope) => new Set(scope).size === scope.length, {
message: "Each section can be selected only once",
})
.nullable()
.optional()
.describe(