feat: DEFAULT_LANGUAGE/DEFAULT_TIMEZONE config + public GET /api/config

This commit is contained in:
2026-06-05 14:52:09 +02:00
parent 4a76d6043a
commit 2460a1368d
16 changed files with 161 additions and 1 deletions
+44
View File
@@ -238,6 +238,22 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/config": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get: operations["get_config"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/api/public/objects": {
parameters: {
query?: never;
@@ -355,6 +371,15 @@ export interface components {
kind: components["schemas"]["AuthorityKind"];
labels: components["schemas"]["LabelView"][];
};
/** @description Public, non-sensitive instance configuration the SPA needs before login. */
ConfigView: {
/** @description User-facing product name. */
app_name: string;
/** @description Default UI/content language (i18n key, e.g. "sv"). */
default_language: string;
/** @description Default display timezone (IANA name). Storage is UTC; this is a display hint. */
default_timezone: string;
};
CreatedField: {
key: string;
};
@@ -1308,6 +1333,25 @@ export interface operations {
};
};
};
get_config: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody?: never;
responses: {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["ConfigView"];
};
};
};
};
list_objects: {
parameters: {
query?: {