chore(api): regenerate UI types — Deployment.createdBy + logs instanceIds

- Fetched fresh openapi.json from local backend (Tasks 3-5 changes)
- Regenerated schema.d.ts via openapi-typescript
- Added createdBy: string | null to Deployment interface in apps.ts
- Added instanceIds?: string[] to UseInfiniteApplicationLogsArgs with sort/serialize/queryKey/URLSearchParams wiring

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-23 13:00:16 +02:00
parent ed0e616109
commit 07099357af
4 changed files with 14 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@@ -47,6 +47,7 @@ export interface Deployment {
containerConfig: Record<string, unknown>; containerConfig: Record<string, unknown>;
sensitiveKeys: string[] | null; sensitiveKeys: string[] | null;
} | null; } | null;
createdBy: string | null;
} }
/** /**

View File

@@ -164,6 +164,7 @@ export interface UseInfiniteApplicationLogsArgs {
agentId?: string; agentId?: string;
sources?: string[]; // multi-select, server-side OR sources?: string[]; // multi-select, server-side OR
levels?: string[]; // multi-select, server-side OR levels?: string[]; // multi-select, server-side OR
instanceIds?: string[]; // multi-select instance_id filter, server-side OR (e.g. drawer scopes to one deployment's replicas)
exchangeId?: string; exchangeId?: string;
sort?: 'asc' | 'desc'; sort?: 'asc' | 'desc';
isAtTop: boolean; isAtTop: boolean;
@@ -191,8 +192,10 @@ export function useInfiniteApplicationLogs(
const sortedSources = (args.sources ?? []).slice().sort(); const sortedSources = (args.sources ?? []).slice().sort();
const sortedLevels = (args.levels ?? []).slice().sort(); const sortedLevels = (args.levels ?? []).slice().sort();
const sortedInstanceIds = (args.instanceIds ?? []).slice().sort();
const sourcesParam = sortedSources.join(','); const sourcesParam = sortedSources.join(',');
const levelsParam = sortedLevels.join(','); const levelsParam = sortedLevels.join(',');
const instanceIdsParam = sortedInstanceIds.join(',');
const pageSize = args.pageSize ?? 100; const pageSize = args.pageSize ?? 100;
const sort = args.sort ?? 'desc'; const sort = args.sort ?? 'desc';
@@ -204,6 +207,7 @@ export function useInfiniteApplicationLogs(
args.agentId ?? '', args.agentId ?? '',
args.exchangeId ?? '', args.exchangeId ?? '',
sourcesParam, sourcesParam,
instanceIdsParam,
levelsParam, levelsParam,
fromIso ?? '', fromIso ?? '',
toIso ?? '', toIso ?? '',
@@ -220,6 +224,7 @@ export function useInfiniteApplicationLogs(
if (args.exchangeId) qp.set('exchangeId', args.exchangeId); if (args.exchangeId) qp.set('exchangeId', args.exchangeId);
if (sourcesParam) qp.set('source', sourcesParam); if (sourcesParam) qp.set('source', sourcesParam);
if (levelsParam) qp.set('level', levelsParam); if (levelsParam) qp.set('level', levelsParam);
if (instanceIdsParam) qp.set('instanceIds', instanceIdsParam);
if (fromIso) qp.set('from', fromIso); if (fromIso) qp.set('from', fromIso);
const effectiveTo = isLiveRange ? new Date().toISOString() : toIso; const effectiveTo = isLiveRange ? new Date().toISOString() : toIso;
if (effectiveTo) qp.set('to', effectiveTo); if (effectiveTo) qp.set('to', effectiveTo);

View File

@@ -2745,6 +2745,7 @@ export interface components {
stoppedAt?: string; stoppedAt?: string;
/** Format: date-time */ /** Format: date-time */
createdAt?: string; createdAt?: string;
createdBy?: string;
}; };
DeploymentConfigSnapshot: { DeploymentConfigSnapshot: {
/** Format: uuid */ /** Format: uuid */
@@ -2753,6 +2754,7 @@ export interface components {
containerConfig?: { containerConfig?: {
[key: string]: Record<string, never>; [key: string]: Record<string, never>;
}; };
sensitiveKeys?: string[];
}; };
PromoteRequest: { PromoteRequest: {
targetEnvironment?: string; targetEnvironment?: string;
@@ -3703,7 +3705,7 @@ export interface components {
username?: string; username?: string;
action?: string; action?: string;
/** @enum {string} */ /** @enum {string} */
category?: "INFRA" | "AUTH" | "USER_MGMT" | "CONFIG" | "RBAC" | "AGENT" | "OUTBOUND_CONNECTION_CHANGE" | "OUTBOUND_HTTP_TRUST_CHANGE" | "ALERT_RULE_CHANGE" | "ALERT_SILENCE_CHANGE"; category?: "INFRA" | "AUTH" | "USER_MGMT" | "CONFIG" | "RBAC" | "AGENT" | "OUTBOUND_CONNECTION_CHANGE" | "OUTBOUND_HTTP_TRUST_CHANGE" | "ALERT_RULE_CHANGE" | "ALERT_SILENCE_CHANGE" | "DEPLOYMENT";
target?: string; target?: string;
detail?: { detail?: {
[key: string]: Record<string, never>; [key: string]: Record<string, never>;
@@ -3872,6 +3874,7 @@ export interface operations {
parameters: { parameters: {
query: { query: {
env: components["schemas"]["Environment"]; env: components["schemas"]["Environment"];
/** @description When to apply: 'live' (default) saves and pushes CONFIG_UPDATE to live agents immediately; 'staged' saves without pushing — the next successful deploy applies it. */
apply?: string; apply?: string;
}; };
header?: never; header?: never;
@@ -7028,6 +7031,7 @@ export interface operations {
exchangeId?: string; exchangeId?: string;
logger?: string; logger?: string;
source?: string; source?: string;
instanceIds?: string;
from?: string; from?: string;
to?: string; to?: string;
cursor?: string; cursor?: string;