From 8ac958065c13a6b0f2b84621133deeefd935ddcd Mon Sep 17 00:00:00 2001 From: Lambdius Date: Wed, 28 Oct 2026 20:23:01 +0000 Subject: [PATCH] feat(kafka): add locale to account creation & verification events --- package.json | 2 +- src/kafka/account.schema.json | 1 + src/types.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ab0dac6..b5ef35c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Shared Kafka/gRPC contracts and common enums between MonadIAM services", "author": "Daniil Egorov (https://github.com/Lambdius)", "license": "UNLICENSED", - "version": "3.1.1", + "version": "3.1.2", "types": "dist/index.d.ts", "main": "dist/index.js", "exports": { diff --git a/src/kafka/account.schema.json b/src/kafka/account.schema.json index abf7086..7b7953a 100644 --- a/src/kafka/account.schema.json +++ b/src/kafka/account.schema.json @@ -16,6 +16,7 @@ "required": ["account"], "properties": { "account": { "type": "string" }, + "locale": { "type": "string", "minLength": 1 }, "identifier": { "type": "object", "additionalProperties": false, diff --git a/src/types.ts b/src/types.ts index b3194e1..bb862f9 100644 --- a/src/types.ts +++ b/src/types.ts @@ -463,6 +463,7 @@ declare global { payload: { account: string; identifier: Identifier; + locale?: string; otp: string; }; }; @@ -472,6 +473,7 @@ declare global { payload: { account: string; identifier?: Identifier; + locale?: string; }; };