Skip to content

Commit e453fc4

Browse files
kruscheclaude
andauthored
chore(deps): apply remaining non-major Renovate updates + regenerate OpenAPI client (#1125)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent fdb29b3 commit e453fc4

17 files changed

Lines changed: 309 additions & 126 deletions

File tree

client/src/app/core/modules/openapi/client.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3-
import { type ClientOptions, type Config, createClient, createConfig } from './client';
3+
import { type Client, type ClientOptions, type Config, createClient, createConfig } from './client';
44
import type { ClientOptions as ClientOptions2 } from './types.gen';
55

66
/**
@@ -13,4 +13,4 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
1313
*/
1414
export type CreateClientConfig<T extends ClientOptions = ClientOptions2> = (override?: Config<ClientOptions & T>) => Config<Required<ClientOptions> & T>;
1515

16-
export const client = createClient(createConfig<ClientOptions2>());
16+
export const client: Client = createClient(createConfig<ClientOptions2>());

client/src/app/core/modules/openapi/client/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
55
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer } from '../core/bodySerializer.gen';
66
export { buildClientParams } from '../core/params.gen';
77
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
8+
export type { ServerSentEventsResult } from '../core/serverSentEvents.gen';
9+
export type { ClientMeta } from '../core/types.gen';
810
export { createClient } from './client.gen';
911
export type { Client, ClientOptions, Config, CreateClientConfig, Options, RequestOptions, RequestResult, ResolvedRequestOptions, ResponseStyle, TDataShape } from './types.gen';
1012
export { createConfig, mergeHeaders } from './utils.gen';

client/src/app/core/modules/openapi/client/utils.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } fr
77
import { getUrl } from '../core/utils.gen';
88
import type { Client, ClientOptions, Config, RequestOptions } from './types.gen';
99

10-
export const createQuerySerializer = <T = unknown>({ parameters = {}, ...args }: QuerySerializerOptions = {}) => {
11-
const querySerializer = (queryParams: T) => {
10+
export const createQuerySerializer = <T = unknown>({ parameters = {}, ...args }: QuerySerializerOptions = {}): ((queryParams: T) => string) => {
11+
const querySerializer = (queryParams: T): string => {
1212
const search: string[] = [];
1313
if (queryParams && typeof queryParams === 'object') {
1414
for (const name in queryParams) {

client/src/app/core/modules/openapi/core/auth.gen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ export interface Auth {
99
* @default 'header'
1010
*/
1111
in?: 'header' | 'query' | 'cookie';
12+
/**
13+
* A unique identifier for the security scheme.
14+
*
15+
* Defined only when there are multiple security schemes whose `Auth`
16+
* shape would otherwise be identical.
17+
*/
18+
key?: string;
1219
/**
1320
* Header or query parameter name.
1421
*

client/src/app/core/modules/openapi/core/params.gen.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type KeyMap = Map<
6262
}
6363
>;
6464

65-
const buildKeyMap = (fields: FieldsConfig, map?: KeyMap): KeyMap => {
65+
function buildKeyMap(fields: FieldsConfig, map?: KeyMap): KeyMap {
6666
if (!map) {
6767
map = new Map();
6868
}
@@ -85,7 +85,7 @@ const buildKeyMap = (fields: FieldsConfig, map?: KeyMap): KeyMap => {
8585
}
8686

8787
return map;
88-
};
88+
}
8989

9090
interface Params {
9191
body: unknown;
@@ -94,16 +94,18 @@ interface Params {
9494
query: Record<string, unknown>;
9595
}
9696

97-
const stripEmptySlots = (params: Params) => {
97+
type ParamsSlotMap = Record<Slot, unknown>;
98+
99+
function stripEmptySlots(params: ParamsSlotMap): void {
98100
for (const [slot, value] of Object.entries(params)) {
99101
if (value && typeof value === 'object' && !Array.isArray(value) && !Object.keys(value).length) {
100102
delete params[slot as Slot];
101103
}
102104
}
103-
};
105+
}
104106

105-
export const buildClientParams = (args: ReadonlyArray<unknown>, fields: FieldsConfig) => {
106-
const params: Params = {
107+
export function buildClientParams(args: ReadonlyArray<unknown>, fields: FieldsConfig): Params {
108+
const params: ParamsSlotMap = {
107109
body: Object.create(null),
108110
headers: Object.create(null),
109111
path: Object.create(null),
@@ -165,5 +167,5 @@ export const buildClientParams = (args: ReadonlyArray<unknown>, fields: FieldsCo
165167

166168
stripEmptySlots(params);
167169

168-
return params;
169-
};
170+
return params as Params;
171+
}

client/src/app/core/modules/openapi/core/pathSerializer.gen.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface SerializePrimitiveParam extends SerializePrimitiveOptions {
2525
value: string;
2626
}
2727

28-
export const separatorArrayExplode = (style: ArraySeparatorStyle) => {
28+
export const separatorArrayExplode = (style: ArraySeparatorStyle): '.' | ';' | ',' | '&' => {
2929
switch (style) {
3030
case 'label':
3131
return '.';
@@ -38,7 +38,7 @@ export const separatorArrayExplode = (style: ArraySeparatorStyle) => {
3838
}
3939
};
4040

41-
export const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {
41+
export const separatorArrayNoExplode = (style: ArraySeparatorStyle): ',' | '|' | '%20' => {
4242
switch (style) {
4343
case 'form':
4444
return ',';
@@ -51,7 +51,7 @@ export const separatorArrayNoExplode = (style: ArraySeparatorStyle) => {
5151
}
5252
};
5353

54-
export const separatorObjectExplode = (style: ObjectSeparatorStyle) => {
54+
export const separatorObjectExplode = (style: ObjectSeparatorStyle): '.' | ';' | ',' | '&' => {
5555
switch (style) {
5656
case 'label':
5757
return '.';
@@ -72,7 +72,7 @@ export const serializeArrayParam = ({
7272
value,
7373
}: SerializeOptions<ArraySeparatorStyle> & {
7474
value: unknown[];
75-
}) => {
75+
}): string => {
7676
if (!explode) {
7777
const joinedValues = (allowReserved ? value : value.map(v => encodeURIComponent(v as string))).join(separatorArrayNoExplode(style));
7878
switch (style) {
@@ -104,7 +104,7 @@ export const serializeArrayParam = ({
104104
return style === 'label' || style === 'matrix' ? separator + joinedValues : joinedValues;
105105
};
106106

107-
export const serializePrimitiveParam = ({ allowReserved, name, value }: SerializePrimitiveParam) => {
107+
export const serializePrimitiveParam = ({ allowReserved, name, value }: SerializePrimitiveParam): string => {
108108
if (value === undefined || value === null) {
109109
return '';
110110
}
@@ -126,7 +126,7 @@ export const serializeObjectParam = ({
126126
}: SerializeOptions<ObjectSeparatorStyle> & {
127127
value: Record<string, unknown> | Date;
128128
valueOnly?: boolean;
129-
}) => {
129+
}): string => {
130130
if (value instanceof Date) {
131131
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
132132
}

client/src/app/core/modules/openapi/core/queryKeySerializer.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type JsonValue = null | string | number | boolean | JsonValue[] | { [key:
88
/**
99
* Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
1010
*/
11-
export const queryKeyJsonReplacer = (_key: string, value: unknown) => {
11+
export const queryKeyJsonReplacer = (_key: string, value: unknown): unknown | undefined => {
1212
if (value === undefined || typeof value === 'function' || typeof value === 'symbol') {
1313
return undefined;
1414
}

client/src/app/core/modules/openapi/core/types.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ export interface Config {
7171
responseValidator?: (data: unknown) => Promise<unknown>;
7272
}
7373

74+
/**
75+
* Arbitrary metadata passed through the `meta` request option.
76+
*/
77+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
78+
export interface ClientMeta {}
79+
7480
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never] ? true : [T] extends [never | undefined] ? ([undefined] extends [T] ? false : true) : false;
7581

7682
export type OmitNever<T extends Record<string, unknown>> = {

client/src/app/core/modules/openapi/core/utils.gen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export interface PathSerializer {
88
url: string;
99
}
1010

11-
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
11+
export const PATH_PARAM_RE: RegExp = /\{[^{}]+\}/g;
1212

13-
export const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {
13+
export const defaultPathSerializer = ({ path, url: _url }: PathSerializer): string => {
1414
let url = _url;
1515
const matches = _url.match(PATH_PARAM_RE);
1616
if (matches) {
@@ -87,7 +87,7 @@ export const getUrl = ({
8787
query?: Record<string, unknown>;
8888
querySerializer: QuerySerializer;
8989
url: string;
90-
}) => {
90+
}): string => {
9191
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
9292
let url = (baseUrl ?? '') + pathUrl;
9393
if (path) {
@@ -103,7 +103,7 @@ export const getUrl = ({
103103
return url;
104104
};
105105

106-
export function getValidRequestBody(options: { body?: unknown; bodySerializer?: BodySerializer | null; serializedBody?: unknown }) {
106+
export function getValidRequestBody(options: { body?: unknown; bodySerializer?: BodySerializer | null; serializedBody?: unknown }): unknown {
107107
const hasBody = options.body !== undefined;
108108
const isSerializedBody = hasBody && options.bodySerializer;
109109

0 commit comments

Comments
 (0)