@bentoforge/umami-iam 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -242,6 +242,12 @@ export interface CustomFieldDef {
242
242
  export interface CustomFieldsSchema {
243
243
  user: CustomFieldDef[];
244
244
  tenant: CustomFieldDef[];
245
+ /** Languages the deployment can actually answer in — the message catalogue, narrowed by
246
+ * `config.locales`. Render the language picker from this, never from a list of your own: a
247
+ * UI-side list offers languages the server will then answer in English. */
248
+ locales: string[];
249
+ /** Used when a user expresses no preference. */
250
+ defaultLocale: string;
245
251
  }
246
252
  export interface SecuritySettings {
247
253
  minPasswordLength: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bentoforge/umami-iam",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Typed client SDK for the umami micro-IAM service",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/types.ts CHANGED
@@ -277,6 +277,12 @@ export interface CustomFieldDef {
277
277
  export interface CustomFieldsSchema {
278
278
  user: CustomFieldDef[];
279
279
  tenant: CustomFieldDef[];
280
+ /** Languages the deployment can actually answer in — the message catalogue, narrowed by
281
+ * `config.locales`. Render the language picker from this, never from a list of your own: a
282
+ * UI-side list offers languages the server will then answer in English. */
283
+ locales: string[];
284
+ /** Used when a user expresses no preference. */
285
+ defaultLocale: string;
280
286
  }
281
287
  export interface SecuritySettings {
282
288
  minPasswordLength: number;