Merge dev into fix/log-analytics-adjustments

This commit is contained in:
Fred KISSIE
2025-12-10 03:19:14 +01:00
parent 9db2feff77
commit d490cab48c
555 changed files with 9375 additions and 9287 deletions

View File

@@ -15,8 +15,8 @@ import logger from "@server/logger";
import { hashPassword } from "@server/auth/password";
const bodySchema = z.strictObject({
name: z.string().min(1).max(255)
});
name: z.string().min(1).max(255)
});
export type CreateRootApiKeyBody = z.infer<typeof bodySchema>;

View File

@@ -47,8 +47,7 @@ export type ListApiKeyActionsResponse = {
registry.registerPath({
method: "get",
path: "/org/{orgId}/api-key/{apiKeyId}/actions",
description:
"List all actions set for an API key.",
description: "List all actions set for an API key.",
tags: [OpenAPITags.Org, OpenAPITags.ApiKey],
request: {
params: paramsSchema,

View File

@@ -11,9 +11,10 @@ import { eq, and, inArray } from "drizzle-orm";
import { OpenAPITags, registry } from "@server/openApi";
const bodySchema = z.strictObject({
actionIds: z.tuple([z.string()], z.string())
.transform((v) => Array.from(new Set(v)))
});
actionIds: z
.tuple([z.string()], z.string())
.transform((v) => Array.from(new Set(v)))
});
const paramsSchema = z.object({
apiKeyId: z.string().nonempty()

View File

@@ -10,9 +10,10 @@ import { fromError } from "zod-validation-error";
import { eq, and, inArray } from "drizzle-orm";
const bodySchema = z.strictObject({
orgIds: z.tuple([z.string()], z.string())
.transform((v) => Array.from(new Set(v)))
});
orgIds: z
.tuple([z.string()], z.string())
.transform((v) => Array.from(new Set(v)))
});
const paramsSchema = z.object({
apiKeyId: z.string().nonempty()