Merge branch 'heads/main' into daniel/request-ids

This commit is contained in:
Daniel Hougaard
2024-11-23 00:14:50 +04:00
56 changed files with 1361 additions and 128 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ export type TGetAuditLogsFilter = {
eventMetadata?: Record<string, string>;
actorType?: ActorType;
projectId?: string;
actorId?: string; // user ID format
actor?: string; // user ID format
startDate?: Date;
endDate?: Date;
limit: number;
+17 -1
View File
@@ -28,7 +28,8 @@ export enum DynamicSecretProviders {
AzureEntraId = "azure-entra-id",
Ldap = "ldap",
SapHana = "sap-hana",
Snowflake = "snowflake"
Snowflake = "snowflake",
Totp = "totp"
}
export enum SqlProviders {
@@ -230,6 +231,21 @@ export type TDynamicSecretProvider =
revocationStatement: string;
renewStatement?: string;
};
}
| {
type: DynamicSecretProviders.Totp;
inputs:
| {
configType: "url";
url: string;
}
| {
configType: "manual";
secret: string;
period?: number;
algorithm?: string;
digits?: number;
};
};
export type TCreateDynamicSecretDTO = {
projectSlug: string;
+14 -2
View File
@@ -1,3 +1,4 @@
import { PureAbility } from "@casl/ability";
import { ZodIssue } from "zod";
export type { TAccessApprovalPolicy } from "./accessApproval/types";
@@ -53,10 +54,21 @@ export type TApiErrors =
requestId: string;
error: ApiErrorTypes.ValidationError;
message: ZodIssue[];
statusCode: 401;
}
| {
requestId: string;
error: ApiErrorTypes.UnauthorizedError;
message: string;
statusCode: 401;
}
| {
requestId: string;
error: ApiErrorTypes.ForbiddenError;
message: string;
details: PureAbility["rules"];
statusCode: 403;
}
| { requestId: string; error: ApiErrorTypes.ForbiddenError; message: string; statusCode: 403 }
| { requestId: string; error: ApiErrorTypes.UnauthorizedError; message: string; statusCode: 401 }
| {
requestId: string;
statusCode: 400;